diff --git a/dist/index-6738d64c.mjs b/dist/index-0bdca193.mjs similarity index 99% rename from dist/index-6738d64c.mjs rename to dist/index-0bdca193.mjs index f66bc07c4..4518f87cd 100644 --- a/dist/index-6738d64c.mjs +++ b/dist/index-0bdca193.mjs @@ -1,6 +1,6 @@ -import { j as $, k as M, s as xe, t as c, l as Ae, P as et, T as tt, m as E, n as rt, g as j, o as I, q as R, a as ae, r as nt, u as st, v as it, w as ot, x as at, y as lt, f as ht, i as ft, z as ut, A as dt, B as le, C as pt } from "./index-cfe56674.mjs"; -import { C as ct } from "./index-4d20bbe9.mjs"; -import { htmlCompletionSource as mt, html as gt } from "./index-9bdbca3f.mjs"; +import { j as $, k as M, s as xe, t as c, l as Ae, P as et, T as tt, m as E, n as rt, g as j, o as I, q as R, a as ae, r as nt, u as st, v as it, w as ot, x as at, y as lt, f as ht, i as ft, z as ut, A as dt, B as le, C as pt } from "./index-1cd978ce.mjs"; +import { C as ct } from "./index-5feb2974.mjs"; +import { htmlCompletionSource as mt, html as gt } from "./index-3e888653.mjs"; import "./Flex-93c26849.mjs"; import "react"; import "react-dom"; diff --git a/dist/index-cfe56674.mjs b/dist/index-1cd978ce.mjs similarity index 99% rename from dist/index-cfe56674.mjs rename to dist/index-1cd978ce.mjs index 9f5072634..64cf4186e 100644 --- a/dist/index-cfe56674.mjs +++ b/dist/index-1cd978ce.mjs @@ -5112,8 +5112,8 @@ function Xf(t, e, n) { var x = String(e), w = Na(), X = (i = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : w.locale) !== null && i !== void 0 ? i : v7, _ = Ue((o = (a = (O = (s = n == null ? void 0 : n.firstWeekContainsDate) !== null && s !== void 0 ? s : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && O !== void 0 ? O : w.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = w.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1); if (!(_ >= 1 && _ <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - var C = Ue((f = (p = ($ = (m = n == null ? void 0 : n.weekStartsOn) !== null && m !== void 0 ? m : n == null || (Q = n.locale) === null || Q === void 0 || (S = Q.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && $ !== void 0 ? $ : w.weekStartsOn) !== null && p !== void 0 ? p : (y = w.locale) === null || y === void 0 || (b = y.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && f !== void 0 ? f : 0); - if (!(C >= 0 && C <= 6)) + var R = Ue((f = (p = ($ = (m = n == null ? void 0 : n.weekStartsOn) !== null && m !== void 0 ? m : n == null || (Q = n.locale) === null || Q === void 0 || (S = Q.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && $ !== void 0 ? $ : w.weekStartsOn) !== null && p !== void 0 ? p : (y = w.locale) === null || y === void 0 || (b = y.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && f !== void 0 ? f : 0); + if (!(R >= 0 && R <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); if (!X.localize) throw new RangeError("locale must contain localize property"); @@ -5122,9 +5122,9 @@ function Xf(t, e, n) { var k = ne(t); if (!wf(k)) throw new RangeError("Invalid time value"); - var Z = bf(k), q = Q7(k, Z), W = { + var C = bf(k), q = Q7(k, C), W = { firstWeekContainsDate: _, - weekStartsOn: C, + weekStartsOn: R, locale: X, _originalDate: k }, D = x.match(yj).map(function(A) { @@ -6985,26 +6985,26 @@ var aA = /* @__PURE__ */ function(t) { function hp(t, e, n, i) { var r, o, a, O, s, l, c, u, d, f, p, $, m, Q, S, y, b, x; K(3, arguments); - var w = String(t), X = String(e), _ = Na(), C = (r = (o = i == null ? void 0 : i.locale) !== null && o !== void 0 ? o : _.locale) !== null && r !== void 0 ? r : v7; - if (!C.match) + var w = String(t), X = String(e), _ = Na(), R = (r = (o = i == null ? void 0 : i.locale) !== null && o !== void 0 ? o : _.locale) !== null && r !== void 0 ? r : v7; + if (!R.match) throw new RangeError("locale must contain match property"); var k = Ue((a = (O = (s = (l = i == null ? void 0 : i.firstWeekContainsDate) !== null && l !== void 0 ? l : i == null || (c = i.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : _.firstWeekContainsDate) !== null && O !== void 0 ? O : (d = _.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : 1); if (!(k >= 1 && k <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - var Z = Ue((p = ($ = (m = (Q = i == null ? void 0 : i.weekStartsOn) !== null && Q !== void 0 ? Q : i == null || (S = i.locale) === null || S === void 0 || (y = S.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && m !== void 0 ? m : _.weekStartsOn) !== null && $ !== void 0 ? $ : (b = _.locale) === null || b === void 0 || (x = b.options) === null || x === void 0 ? void 0 : x.weekStartsOn) !== null && p !== void 0 ? p : 0); - if (!(Z >= 0 && Z <= 6)) + var C = Ue((p = ($ = (m = (Q = i == null ? void 0 : i.weekStartsOn) !== null && Q !== void 0 ? Q : i == null || (S = i.locale) === null || S === void 0 || (y = S.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && m !== void 0 ? m : _.weekStartsOn) !== null && $ !== void 0 ? $ : (b = _.locale) === null || b === void 0 || (x = b.options) === null || x === void 0 ? void 0 : x.weekStartsOn) !== null && p !== void 0 ? p : 0); + if (!(C >= 0 && C <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); if (X === "") return w === "" ? ne(n) : /* @__PURE__ */ new Date(NaN); var q = { firstWeekContainsDate: k, - weekStartsOn: Z, - locale: C + weekStartsOn: C, + locale: R }, W = [new Uj()], D = X.match(wA).map(function(fe) { var Te = fe[0]; if (Te in A$) { var hn = A$[Te]; - return hn(fe, C.formatLong); + return hn(fe, R.formatLong); } return fe; }).join("").match(yA), A = [], H = ey(D), V; @@ -7027,7 +7027,7 @@ function hp(t, e, n, i) { token: hn, fullToken: Te }); - var tO = hr.run(w, Te, C.match, q); + var tO = hr.run(w, Te, R.match, q); if (!tO) return { v: /* @__PURE__ */ new Date(NaN) @@ -7494,17 +7494,17 @@ const Pn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( Array.isArray(q) && q.length === 0 ? (Q(!0), $(u.slice(0, -1))) : (Q(!1), $(u)); } }, [u]); - const [S, y] = de(), [b, x] = de([]), [w, X] = de(""), _ = _e(), C = () => { + const [S, y] = de(), [b, x] = de([]), [w, X] = de(""), _ = _e(), R = () => { _ && _.current.scrollIntoView(); }, k = (q, W) => { x(W ? (D) => [...D, q] : (D) => [ ...D.filter((A) => A !== q.attributes.name) ]); - }, Z = (q, W) => { + }, C = (q, W) => { W || X(q), X(q); }; return qe(() => { - C(); + R(); }, [p]), /* @__PURE__ */ h.jsxs(Nh, { ...d, sx: oI, children: [ /* @__PURE__ */ h.jsx(oE, { shortcutActions: n, title: t }), /* @__PURE__ */ h.jsxs( @@ -7535,7 +7535,7 @@ const Pn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ h.jsx( setColumns: $, index: W, isFileSelected: k, - selectPathListValue: Z, + selectPathListValue: C, fileListValue: b, setIsEmptyFolder: Q } @@ -8860,9 +8860,9 @@ class xa { */ extend(e, n = e) { if (e <= this.anchor && n >= this.anchor) - return R.range(e, n); + return Z.range(e, n); let i = Math.abs(e - this.anchor) > Math.abs(n - this.anchor) ? e : n; - return R.range(this.anchor, i); + return Z.range(this.anchor, i); } /** Compare this range to another range. @@ -8883,7 +8883,7 @@ class xa { static fromJSON(e) { if (!e || typeof e.anchor != "number" || typeof e.head != "number") throw new RangeError("Invalid JSON representation for SelectionRange"); - return R.range(e.anchor, e.head); + return Z.range(e.anchor, e.head); } /** @internal @@ -8892,7 +8892,7 @@ class xa { return new xa(e, n, i); } } -class R { +class Z { constructor(e, n) { this.ranges = e, this.mainIndex = n; } @@ -8901,7 +8901,7 @@ class R { position for changes. */ map(e, n = -1) { - return e.empty ? this : R.create(this.ranges.map((i) => i.map(e, n)), this.mainIndex); + return e.empty ? this : Z.create(this.ranges.map((i) => i.map(e, n)), this.mainIndex); } /** Compare this selection to another selection. @@ -8927,13 +8927,13 @@ class R { holding only the main range from this selection. */ asSingle() { - return this.ranges.length == 1 ? this : new R([this.main], 0); + return this.ranges.length == 1 ? this : new Z([this.main], 0); } /** Extend this selection with an extra range. */ addRange(e, n = !0) { - return R.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1); + return Z.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1); } /** Replace a given range with another range, and then normalize the @@ -8941,7 +8941,7 @@ class R { */ replaceRange(e, n = this.mainIndex) { let i = this.ranges.slice(); - return i[n] = e, R.create(i, this.mainIndex); + return i[n] = e, Z.create(i, this.mainIndex); } /** Convert this selection to an object that can be serialized to @@ -8956,13 +8956,13 @@ class R { static fromJSON(e) { if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length) throw new RangeError("Invalid JSON representation for EditorSelection"); - return new R(e.ranges.map((n) => xa.fromJSON(n)), e.main); + return new Z(e.ranges.map((n) => xa.fromJSON(n)), e.main); } /** Create a selection holding a single range. */ static single(e, n = e) { - return new R([R.range(e, n)], 0); + return new Z([Z.range(e, n)], 0); } /** Sort and merge the given set of ranges, creating a valid @@ -8974,10 +8974,10 @@ class R { for (let i = 0, r = 0; r < e.length; r++) { let o = e[r]; if (o.empty ? o.from <= i : o.from < i) - return R.normalized(e.slice(), n); + return Z.normalized(e.slice(), n); i = o.to; } - return new R(e, n); + return new Z(e, n); } /** Create a cursor selection range at the given position. You can @@ -9003,10 +9003,10 @@ class R { let o = e[r], a = e[r - 1]; if (o.empty ? o.from <= a.to : o.from < a.to) { let O = a.from, s = Math.max(o.to, a.to); - r <= n && n--, e.splice(--r, 2, o.anchor > o.head ? R.range(s, O) : R.range(O, s)); + r <= n && n--, e.splice(--r, 2, o.anchor > o.head ? Z.range(s, O) : Z.range(O, s)); } } - return new R(e, n); + return new Z(e, n); } } function z7(t, e) { @@ -9544,7 +9544,7 @@ function B$(t, e, n) { let i = e.selection, r = kO(e.annotations); return e.userEvent && (r = r.concat(It.userEvent.of(e.userEvent))), { changes: e.changes instanceof qt ? e.changes : qt.of(e.changes || [], n, t.facet(A7)), - selection: i && (i instanceof R ? i : R.single(i.anchor, i.head)), + selection: i && (i instanceof Z ? i : Z.single(i.anchor, i.head)), effects: kO(e.effects), annotations: r, scrollIntoView: !!e.scrollIntoView @@ -9682,7 +9682,7 @@ class ve { replaceSelection(e) { return typeof e == "string" && (e = this.toText(e)), this.changeByRange((n) => ({ changes: { from: n.from, to: n.to, insert: e }, - range: R.cursor(n.from + e.length) + range: Z.cursor(n.from + e.length) })); } /** @@ -9707,7 +9707,7 @@ class ve { } return { changes: r, - selection: R.create(o, n.mainIndex), + selection: Z.create(o, n.mainIndex), effects: a }; } @@ -9777,7 +9777,7 @@ class ve { } return ve.create({ doc: e.doc, - selection: R.fromJSON(e.selection), + selection: Z.fromJSON(e.selection), extensions: n.extensions ? r.concat([n.extensions]) : r }); } @@ -9787,7 +9787,7 @@ class ve { transactions. */ static create(e = {}) { - let n = Cf.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof Re ? e.doc : Re.of((e.doc || "").split(n.staticFacet(ve.lineSeparator) || D$)), r = e.selection ? e.selection instanceof R ? e.selection : R.single(e.selection.anchor, e.selection.head) : R.single(0); + let n = Cf.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof Re ? e.doc : Re.of((e.doc || "").split(n.staticFacet(ve.lineSeparator) || D$)), r = e.selection ? e.selection instanceof Z ? e.selection : Z.single(e.selection.anchor, e.selection.head) : Z.single(0); return z7(r, i.length), n.staticFacet(j7) || (r = r.asSingle()), new ve(n, i, r, n.dynamicSlots.map(() => null), (o, a) => a.create(o), null); } /** @@ -9892,7 +9892,7 @@ class ve { break; O = s; } - return a == O ? null : R.range(a + i, O + i); + return a == O ? null : Z.range(a + i, O + i); } } ve.allowMultipleSelections = j7; @@ -12347,9 +12347,9 @@ function tD(t, e, n, i, r) { a == s.side(r, n) && (s = e[O += r ? 1 : -1], a = s.side(!r, n)); let l = r == (s.dir == n), c = Ut(t.text, a, l); if (W6 = t.text.slice(Math.min(a, c), Math.max(a, c)), c != s.side(r, n)) - return R.cursor(c + t.from, l ? -1 : 1, s.level); + return Z.cursor(c + t.from, l ? -1 : 1, s.level); let u = O == (r ? e.length - 1 : 0) ? null : e[O + (r ? 1 : -1)]; - return !u && s.level != n ? R.cursor(r ? t.to : t.from, r ? -1 : 1, n) : u && u.level < s.level ? R.cursor(u.side(!r, n) + t.from, r ? 1 : -1, u.level) : R.cursor(c + t.from, r ? -1 : 1, s.level); + return !u && s.level != n ? Z.cursor(r ? t.to : t.from, r ? -1 : 1, n) : u && u.level < s.level ? Z.cursor(u.side(!r, n) + t.from, r ? 1 : -1, u.level) : Z.cursor(c + t.from, r ? -1 : 1, s.level); } const QO = "￿"; let q6 = class { @@ -12779,7 +12779,7 @@ function sD(t, e) { function lD(t, e, n = 1) { let i = t.charCategorizer(e), r = t.doc.lineAt(e), o = e - r.from; if (r.length == 0) - return R.cursor(e); + return Z.cursor(e); o == 0 ? n = 1 : o == r.length && (n = -1); let a = o, O = o; n < 0 ? a = Ut(r.text, o, !1) : O = Ut(r.text, o); @@ -12796,7 +12796,7 @@ function lD(t, e, n = 1) { break; O = l; } - return R.range(a + r.from, O + r.from); + return Z.range(a + r.from, O + r.from); } function cD(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); @@ -12956,9 +12956,9 @@ function hD(t, e, n, i) { y: (o.top + o.bottom) / 2 }); if (s != null) - return R.cursor(s, n ? -1 : 1); + return Z.cursor(s, n ? -1 : 1); } - return R.cursor(n ? r.to : r.from, n ? -1 : 1); + return Z.cursor(n ? r.to : r.from, n ? -1 : 1); } function Zy(t, e, n, i) { let r = t.state.doc.lineAt(e.head), o = t.bidiSpans(r), a = t.textDirectionAt(r.from); @@ -12968,7 +12968,7 @@ function Zy(t, e, n, i) { if (r.number == (n ? t.state.doc.lines : 1)) return O; c = ` -`, r = t.state.doc.line(r.number + (n ? 1 : -1)), o = t.bidiSpans(r), l = R.cursor(n ? r.from : r.to); +`, r = t.state.doc.line(r.number + (n ? 1 : -1)), o = t.bidiSpans(r), l = Z.cursor(n ? r.from : r.to); } if (s) { if (!s(c)) @@ -12991,7 +12991,7 @@ function pD(t, e, n) { function gD(t, e, n, i) { let r = e.head, o = n ? 1 : -1; if (r == (n ? t.state.doc.length : 0)) - return R.cursor(r, e.assoc); + return Z.cursor(r, e.assoc); let a = e.goalColumn, O, s = t.contentDOM.getBoundingClientRect(), l = t.coordsAtPos(r), c = t.documentTop; if (l) a == null && (a = l.left - s.left), O = o < 0 ? l.top : l.bottom; @@ -13003,7 +13003,7 @@ function gD(t, e, n, i) { for (let f = 0; ; f += 10) { let p = O + (d + f) * o, $ = U6(t, { x: u, y: p }, !1, o); if (p < s.top || p > s.bottom || (o < 0 ? $ < r : $ > r)) - return R.cursor($, e.assoc, void 0, a); + return Z.cursor($, e.assoc, void 0, a); } } function Vd(t, e, n) { @@ -13022,7 +13022,7 @@ function Vd(t, e, n) { } function bp(t, e, n) { let i = Vd(t.state.facet(TS).map((r) => r(t)), n.from, e.head > n.from ? -1 : 1); - return i == n.from ? n : R.cursor(i, i < n.from ? 1 : -1); + return i == n.from ? n : Z.cursor(i, i < n.from ? 1 : -1); } let $D = class { constructor(e) { @@ -13165,14 +13165,14 @@ let QD = class { let r = e.ranges[i], o = null; if (r.empty) { let a = Vd(this.atoms, r.from, 0); - a != r.from && (o = R.cursor(a, -1)); + a != r.from && (o = Z.cursor(a, -1)); } else { let a = Vd(this.atoms, r.from, -1), O = Vd(this.atoms, r.to, 1); - (a != r.from || O != r.to) && (o = R.range(r.from == r.anchor ? a : O, r.from == r.head ? a : O)); + (a != r.from || O != r.to) && (o = Z.range(r.from == r.anchor ? a : O, r.from == r.head ? a : O)); } o && (n || (n = e.ranges.slice()), n[i] = o); } - return n ? R.create(n, e.mainIndex) : e; + return n ? Z.create(n, e.mainIndex) : e; } select(e) { let { view: n } = this, i = this.skipAtoms(this.style.get(e, this.extend, this.multiple)); @@ -13240,7 +13240,7 @@ function j6(t, e) { let u = n.toText((a ? o.line(r++).text : e) + n.lineBreak); return { changes: { from: c.from, insert: u }, - range: R.cursor(l.from + u.length) + range: Z.cursor(l.from + u.length) }; }); } else @@ -13248,7 +13248,7 @@ function j6(t, e) { let l = o.line(r++); return { changes: { from: s.from, to: s.to, insert: l.text }, - range: R.cursor(s.from + l.length) + range: Z.cursor(s.from + l.length) }; }) : i = n.replaceSelection(o); t.dispatch(i, { @@ -13280,12 +13280,12 @@ Dt.mousedown = (t, e) => { }; function qy(t, e, n, i) { if (i == 1) - return R.cursor(e, n); + return Z.cursor(e, n); if (i == 2) return lD(t.state, e, n); { let r = Cr.find(t.docView, e), o = t.state.doc.lineAt(r ? r.posAtEnd : e), a = r ? r.posAtStart : o.from, O = r ? r.posAtEnd : o.to; - return O < t.state.doc.length && O == o.to && O++, R.range(a, O); + return O < t.state.doc.length && O == o.to && O++, Z.range(a, O); } } let A6 = (t, e) => t >= e.top && t <= e.bottom, Vy = (t, e, n) => A6(e, n) && t >= n.left && t <= n.right; @@ -13326,9 +13326,9 @@ function vD(t, e) { let s = Yy(t, o), l, c = qy(t, s.pos, s.bias, i); if (n.pos != s.pos && !a) { let u = qy(t, n.pos, n.bias, i), d = Math.min(u.from, c.from), f = Math.max(u.to, c.to); - c = d < c.from ? R.range(d, f) : R.range(f, d); + c = d < c.from ? Z.range(d, f) : Z.range(f, d); } - return a ? r.replaceRange(r.main.extend(c.from, c.to)) : O && i == 1 && r.ranges.length > 1 && (l = XD(r, s.pos)) ? l : O ? r.addRange(c) : R.create([c]); + return a ? r.replaceRange(r.main.extend(c.from, c.to)) : O && i == 1 && r.ranges.length > 1 && (l = XD(r, s.pos)) ? l : O ? r.addRange(c) : Z.create([c]); } }; } @@ -13336,7 +13336,7 @@ function XD(t, e) { for (let n = 0; n < t.ranges.length; n++) { let { from: i, to: r } = t.ranges[n]; if (i <= e && r >= e) - return R.create(t.ranges.slice(0, n).concat(t.ranges.slice(n + 1)), t.mainIndex == n ? 0 : t.mainIndex - (t.mainIndex > n ? 1 : 0)); + return Z.create(t.ranges.slice(0, n).concat(t.ranges.slice(n + 1)), t.mainIndex == n ? 0 : t.mainIndex - (t.mainIndex > n ? 1 : 0)); } return null; } @@ -14102,7 +14102,7 @@ let yp = class { let $ = ED(e, (m) => m.from >= u.from && m.to <= u.to && Math.abs(m.from - l) < o && Math.abs(m.to - c) < o && !p.some((Q) => m.from < Q && m.to > Q)); if (!$) { if (c < u.to && n && i && n.visibleRanges.some((m) => m.from <= c && m.to >= c)) { - let m = n.moveToLineBoundary(R.cursor(c), !1, !0).head; + let m = n.moveToLineBoundary(Z.cursor(c), !1, !0).head; m > l && (c = m); } $ = new yp(l, c, this.gapSize(u, l, c, d)); @@ -14523,7 +14523,7 @@ let ID = class { s.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = s.text, this.newSel = MD(O, this.bounds.from); } else { let O = e.observer.selectionRange, s = o && o.node == O.focusNode && o.offset == O.focusOffset || !MO(e.contentDOM, O.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(O.focusNode, O.focusOffset), l = a && a.node == O.anchorNode && a.offset == O.anchorOffset || !MO(e.contentDOM, O.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(O.anchorNode, O.anchorOffset); - this.newSel = R.single(l, s); + this.newSel = Z.single(l, s); } } }; @@ -14546,8 +14546,8 @@ function e3(t, e) { from: r.from, to: r.to, insert: t.state.doc.slice(r.from, n.from).append(n.insert).append(t.state.doc.slice(n.to, r.to)) - } : (ae.mac || ae.android) && n && n.from == n.to && n.from == r.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = R.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }) : ae.chrome && n && n.from == n.to && n.from == r.head && n.insert.toString() == ` - ` && t.lineWrapping && (i && (i = R.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }), n) { + } : (ae.mac || ae.android) && n && n.from == n.to && n.from == r.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = Z.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }) : ae.chrome && n && n.from == n.to && n.from == r.head && n.insert.toString() == ` + ` && t.lineWrapping && (i && (i = Z.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }), n) { let a = t.state; if (ae.ios && t.inputState.flushIOSKey(t) || ae.android && (n.from == r.from && n.to == r.to && n.insert.length == 1 && n.insert.lines == 2 && TO(t.contentDOM, "Enter", 13) || (n.from == r.from - 1 && n.to == r.to && n.insert.length == 0 || o == 8 && n.insert.length < n.to - n.from) && TO(t.contentDOM, "Backspace", 8) || n.from == r.from && n.to == r.to + 1 && n.insert.length == 0 && TO(t.contentDOM, "Delete", 46))) return !0; @@ -14576,7 +14576,7 @@ function e3(t, e) { let y = a.changes({ from: S, to: Q, insert: n.insert }), b = m.to - r.to; return { changes: y, - range: u ? R.range(Math.max(0, u.anchor + b), Math.max(0, u.head + b)) : m.map(y) + range: u ? Z.range(Math.max(0, u.anchor + b), Math.max(0, u.head + b)) : m.map(y) }; }); } else @@ -14626,7 +14626,7 @@ function MD(t, e) { if (t.length == 0) return null; let n = t[0].pos, i = t.length == 2 ? t[1].pos : n; - return n > -1 && i > -1 ? R.single(n + e, i + e) : null; + return n > -1 && i > -1 ? Z.single(n + e, i + e) : null; } const FD = { childList: !0, @@ -14975,7 +14975,7 @@ let pe = class t3 { for (let d of e) { if (u && (u = u.map(d.changes)), d.scrollIntoView) { let { main: f } = d.state.selection; - u = new yy(f.empty ? f : R.cursor(f.head, f.head > f.anchor ? -1 : 1)); + u = new yy(f.empty ? f : Z.cursor(f.head, f.head > f.anchor ? -1 : 1)); } for (let f of d.effects) f.is(wy) && (u = f.value); @@ -15430,7 +15430,7 @@ let pe = class t3 { cause it to scroll the given position or range into view. */ static scrollIntoView(e, n = {}) { - return wy.of(new yy(typeof e == "number" ? R.cursor(e) : e, n.y, n.x, n.yMargin, n.xMargin)); + return wy.of(new yy(typeof e == "number" ? Z.cursor(e) : e, n.y, n.x, n.yMargin, n.xMargin)); } /** Returns an extension that can be used to add DOM event handlers. @@ -15682,7 +15682,7 @@ function i3(t) { return { left: (t.textDirection == Ct.LTR ? e.left : e.right - t.scrollDOM.clientWidth) - t.scrollDOM.scrollLeft, top: e.top - t.scrollDOM.scrollTop }; } function Hy(t, e, n) { - let i = R.cursor(e); + let i = Z.cursor(e); return { from: Math.max(n.from, t.moveToLineBoundary(i, !1, !0).from), to: Math.min(n.to, t.moveToLineBoundary(i, !0, !0).from), @@ -15711,15 +15711,15 @@ function oL(t, e, n) { } function S({ top: x, bottom: w, horizontal: X }) { let _ = []; - for (let C = 0; C < X.length; C += 2) - _.push(Q(X[C], x, X[C + 1], w)); + for (let R = 0; R < X.length; R += 2) + _.push(Q(X[R], x, X[R + 1], w)); return _; } function y(x, w, X) { - let _ = 1e9, C = -1e9, k = []; - function Z(D, A, H, V, E) { + let _ = 1e9, R = -1e9, k = []; + function C(D, A, H, V, E) { let G = t.coordsAtPos(D, D == X.to ? -2 : 2), M = t.coordsAtPos(H, H == X.from ? 2 : -2); - !G || !M || (_ = Math.min(G.top, M.top, _), C = Math.max(G.bottom, M.bottom, C), E == Ct.LTR ? k.push(o && A ? u : G.left, o && V ? d : M.right) : k.push(!o && V ? u : M.left, !o && A ? d : G.right)); + !G || !M || (_ = Math.min(G.top, M.top, _), R = Math.max(G.bottom, M.bottom, R), E == Ct.LTR ? k.push(o && A ? u : G.left, o && V ? d : M.right) : k.push(!o && V ? u : M.left, !o && A ? d : G.right)); } let q = x ?? X.from, W = w ?? X.to; for (let D of t.visibleRanges) @@ -15730,12 +15730,12 @@ function oL(t, e, n) { let G = E.from + V.from, M = E.to + V.from; if (G >= H) break; - M > A && Z(Math.max(G, A), x == null && G <= q, Math.min(M, H), w == null && M >= W, E.dir); + M > A && C(Math.max(G, A), x == null && G <= q, Math.min(M, H), w == null && M >= W, E.dir); } if (A = V.to + 1, A >= H) break; } - return k.length == 0 && Z(q, x == null, W, w == null, t.textDirection), { top: _, bottom: C, horizontal: k }; + return k.length == 0 && C(q, x == null, W, w == null, t.textDirection), { top: _, bottom: R, horizontal: k }; } function b(x, w) { let X = O.top + (w ? x.top : x.bottom); @@ -15814,7 +15814,7 @@ const lL = /* @__PURE__ */ r3({ for (let r of e.selection.ranges) { let o = r == e.selection.main; if (r.empty ? !o || o3 : n.drawRangeCursor) { - let a = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", O = r.empty ? r : R.cursor(r.head, r.head > r.anchor ? -1 : 1); + let a = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", O = r.empty ? r : Z.cursor(r.head, r.head > r.anchor ? -1 : 1); for (let s of qc.forRange(t, a, O)) i.push(s); } @@ -16165,17 +16165,17 @@ function CL(t, e, n) { let a = Math.min(e.off, n.off), O = Math.max(e.off, n.off); for (let s = i; s <= r; s++) { let l = t.doc.line(s); - l.length <= O && o.push(R.range(l.from + a, l.to + O)); + l.length <= O && o.push(Z.range(l.from + a, l.to + O)); } } else { let a = Math.min(e.col, n.col), O = Math.max(e.col, n.col); for (let s = i; s <= r; s++) { let l = t.doc.line(s), c = Rf(l.text, a, t.tabSize, !0); if (c < 0) - o.push(R.cursor(l.to)); + o.push(Z.cursor(l.to)); else { let u = Rf(l.text, O, t.tabSize); - o.push(R.range(l.from + c, l.from + u)); + o.push(Z.range(l.from + c, l.from + u)); } } } @@ -16203,7 +16203,7 @@ function RL(t, e) { if (!O) return i; let s = CL(t.state, n, O); - return s.length ? a ? R.create(s.concat(i.ranges)) : R.create(s) : i; + return s.length ? a ? Z.create(s.concat(i.ranges)) : Z.create(s) : i; } } : null; } @@ -17838,75 +17838,75 @@ function iM(t) { var e; let { buffer: n, nodeSet: i, maxBufferLength: r = f3, reused: o = [], minRepeatType: a = i.types.length } = t, O = Array.isArray(n) ? new KL(n, n.length) : n, s = i.types, l = 0, c = 0; function u(b, x, w, X, _) { - let { id: C, start: k, end: Z, size: q } = O, W = c; + let { id: R, start: k, end: C, size: q } = O, W = c; for (; q < 0; ) if (O.next(), q == -1) { - let E = o[C]; + let E = o[R]; w.push(E), X.push(k - b); return; } else if (q == -3) { - l = C; + l = R; return; } else if (q == -4) { - c = C; + c = R; return; } else throw new RangeError(`Unrecognized record size: ${q}`); - let D = s[C], A, H, V = k - b; - if (Z - k <= r && (H = $(O.pos - x, _))) { + let D = s[R], A, H, V = k - b; + if (C - k <= r && (H = $(O.pos - x, _))) { let E = new Uint16Array(H.size - H.skip), G = O.pos - H.size, M = E.length; for (; O.pos > G; ) M = m(H.start, E, M); - A = new Vc(E, Z - H.start, i), V = H.start - b; + A = new Vc(E, C - H.start, i), V = H.start - b; } else { let E = O.pos - q; O.next(); - let G = [], M = [], te = C >= a ? C : -1, $e = 0, ge = Z; + let G = [], M = [], te = R >= a ? R : -1, $e = 0, ge = C; for (; O.pos > E; ) te >= 0 && O.id == te && O.size >= 0 ? (O.end <= ge - r && (f(G, M, k, $e, O.end, ge, te, W), $e = G.length, ge = O.end), O.next()) : u(k, E, G, M, te); if (te >= 0 && $e > 0 && $e < G.length && f(G, M, k, $e, k, ge, te, W), G.reverse(), M.reverse(), te > -1 && $e > 0) { let ke = d(D); - A = _S(D, G, M, 0, G.length, 0, Z - k, ke, ke); + A = _S(D, G, M, 0, G.length, 0, C - k, ke, ke); } else - A = p(D, G, M, Z - k, W - Z); + A = p(D, G, M, C - k, W - C); } w.push(A), X.push(V); } function d(b) { return (x, w, X) => { - let _ = 0, C = x.length - 1, k, Z; - if (C >= 0 && (k = x[C]) instanceof lt) { - if (!C && k.type == b && k.length == X) + let _ = 0, R = x.length - 1, k, C; + if (R >= 0 && (k = x[R]) instanceof lt) { + if (!R && k.type == b && k.length == X) return k; - (Z = k.prop(Me.lookAhead)) && (_ = w[C] + k.length + Z); + (C = k.prop(Me.lookAhead)) && (_ = w[R] + k.length + C); } return p(b, x, w, X, _); }; } - function f(b, x, w, X, _, C, k, Z) { + function f(b, x, w, X, _, R, k, C) { let q = [], W = []; for (; b.length > X; ) q.push(b.pop()), W.push(x.pop() + w - _); - b.push(p(i.types[k], q, W, C - _, Z - C)), x.push(_ - w); + b.push(p(i.types[k], q, W, R - _, C - R)), x.push(_ - w); } - function p(b, x, w, X, _ = 0, C) { + function p(b, x, w, X, _ = 0, R) { if (l) { let k = [Me.contextHash, l]; - C = C ? [k].concat(C) : [k]; + R = R ? [k].concat(R) : [k]; } if (_ > 25) { let k = [Me.lookAhead, _]; - C = C ? [k].concat(C) : [k]; + R = R ? [k].concat(R) : [k]; } - return new lt(b, x, w, X, C); + return new lt(b, x, w, X, R); } function $(b, x) { - let w = O.fork(), X = 0, _ = 0, C = 0, k = w.end - r, Z = { size: 0, start: 0, skip: 0 }; + let w = O.fork(), X = 0, _ = 0, R = 0, k = w.end - r, C = { size: 0, start: 0, skip: 0 }; e: for (let q = w.pos - b; w.pos > q; ) { let W = w.size; if (w.id == x && W >= 0) { - Z.size = X, Z.start = _, Z.skip = C, C += 4, X += 4, w.next(); + C.size = X, C.start = _, C.skip = R, R += 4, X += 4, w.next(); continue; } let D = w.pos - W; @@ -17923,20 +17923,20 @@ function iM(t) { w.id >= a && (A += 4); w.next(); } - _ = H, X += W, C += A; + _ = H, X += W, R += A; } - return (x < 0 || X == b) && (Z.size = X, Z.start = _, Z.skip = C), Z.size > 4 ? Z : void 0; + return (x < 0 || X == b) && (C.size = X, C.start = _, C.skip = R), C.size > 4 ? C : void 0; } function m(b, x, w) { - let { id: X, start: _, end: C, size: k } = O; + let { id: X, start: _, end: R, size: k } = O; if (O.next(), k >= 0 && X < a) { - let Z = w; + let C = w; if (k > 4) { let q = O.pos - (k - 4); for (; O.pos > q; ) w = m(b, x, w); } - x[--w] = Z, x[--w] = C - b, x[--w] = _ - b, x[--w] = X; + x[--w] = C, x[--w] = R - b, x[--w] = _ - b, x[--w] = X; } else k == -3 ? l = X : k == -4 && (c = X); return w; @@ -20210,9 +20210,9 @@ function qM(t, e, n, i, r) { a == s.side(r, n) && (s = e[O += r ? 1 : -1], a = s.side(!r, n)); let l = r == (s.dir == n), c = Ut(t.text, a, l); if (N3 = t.text.slice(Math.min(a, c), Math.max(a, c)), c != s.side(r, n)) - return R.cursor(c + t.from, l ? -1 : 1, s.level); + return Z.cursor(c + t.from, l ? -1 : 1, s.level); let u = O == (r ? e.length - 1 : 0) ? null : e[O + (r ? 1 : -1)]; - return !u && s.level != n ? R.cursor(r ? t.to : t.from, r ? -1 : 1, n) : u && u.level < s.level ? R.cursor(u.side(!r, n) + t.from, r ? 1 : -1, u.level) : R.cursor(c + t.from, r ? -1 : 1, s.level); + return !u && s.level != n ? Z.cursor(r ? t.to : t.from, r ? -1 : 1, n) : u && u.level < s.level ? Z.cursor(u.side(!r, n) + t.from, r ? 1 : -1, u.level) : Z.cursor(c + t.from, r ? -1 : 1, s.level); } class X5 extends pt { get length() { @@ -20628,7 +20628,7 @@ function jM(t, e) { function AM(t, e, n = 1) { let i = t.charCategorizer(e), r = t.doc.lineAt(e), o = e - r.from; if (r.length == 0) - return R.cursor(e); + return Z.cursor(e); o == 0 ? n = 1 : o == r.length && (n = -1); let a = o, O = o; n < 0 ? a = Ut(r.text, o, !1) : O = Ut(r.text, o); @@ -20645,7 +20645,7 @@ function AM(t, e, n = 1) { break; O = l; } - return R.range(a + r.from, O + r.from); + return Z.range(a + r.from, O + r.from); } function IM(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); @@ -20805,9 +20805,9 @@ function NM(t, e, n, i) { y: (o.top + o.bottom) / 2 }); if (s != null) - return R.cursor(s, n ? -1 : 1); + return Z.cursor(s, n ? -1 : 1); } - return R.cursor(n ? r.to : r.from, n ? -1 : 1); + return Z.cursor(n ? r.to : r.from, n ? -1 : 1); } function Z5(t, e, n, i) { let r = t.state.doc.lineAt(e.head), o = t.bidiSpans(r), a = t.textDirectionAt(r.from); @@ -20817,7 +20817,7 @@ function Z5(t, e, n, i) { if (r.number == (n ? t.state.doc.lines : 1)) return O; c = ` -`, r = t.state.doc.line(r.number + (n ? 1 : -1)), o = t.bidiSpans(r), l = R.cursor(n ? r.from : r.to); +`, r = t.state.doc.line(r.number + (n ? 1 : -1)), o = t.bidiSpans(r), l = Z.cursor(n ? r.from : r.to); } if (s) { if (!s(c)) @@ -20840,7 +20840,7 @@ function BM(t, e, n) { function HM(t, e, n, i) { let r = e.head, o = n ? 1 : -1; if (r == (n ? t.state.doc.length : 0)) - return R.cursor(r, e.assoc); + return Z.cursor(r, e.assoc); let a = e.goalColumn, O, s = t.contentDOM.getBoundingClientRect(), l = t.coordsAtPos(r, e.assoc || -1), c = t.documentTop; if (l) a == null && (a = l.left - s.left), O = o < 0 ? l.top : l.bottom; @@ -20853,7 +20853,7 @@ function HM(t, e, n, i) { let p = O + (d + f) * o, $ = J3(t, { x: u, y: p }, !1, o); if (p < s.top || p > s.bottom || (o < 0 ? $ < r : $ > r)) { let m = t.docView.coordsForChar($), Q = !m || p < m.top ? -1 : 1; - return R.cursor($, Q, void 0, a); + return Z.cursor($, Q, void 0, a); } } } @@ -20873,7 +20873,7 @@ function Ld(t, e, n) { } function _p(t, e, n) { let i = Ld(t.state.facet(YS).map((r) => r(t)), n.from, e.head > n.from ? -1 : 1); - return i == n.from ? n : R.cursor(i, i < n.from ? 1 : -1); + return i == n.from ? n : Z.cursor(i, i < n.from ? 1 : -1); } class JM { setSelectionOrigin(e) { @@ -21027,14 +21027,14 @@ class nF { let r = e.ranges[i], o = null; if (r.empty) { let a = Ld(this.atoms, r.from, 0); - a != r.from && (o = R.cursor(a, -1)); + a != r.from && (o = Z.cursor(a, -1)); } else { let a = Ld(this.atoms, r.from, -1), O = Ld(this.atoms, r.to, 1); - (a != r.from || O != r.to) && (o = R.range(r.from == r.anchor ? a : O, r.from == r.head ? a : O)); + (a != r.from || O != r.to) && (o = Z.range(r.from == r.anchor ? a : O, r.from == r.head ? a : O)); } o && (n || (n = e.ranges.slice()), n[i] = o); } - return n ? R.create(n, e.mainIndex) : e; + return n ? Z.create(n, e.mainIndex) : e; } select(e) { let { view: n } = this, i = this.skipAtoms(this.style.get(e, this.extend, this.multiple)); @@ -21102,7 +21102,7 @@ function n8(t, e) { let u = n.toText((a ? o.line(r++).text : e) + n.lineBreak); return { changes: { from: c.from, insert: u }, - range: R.cursor(l.from + u.length) + range: Z.cursor(l.from + u.length) }; }); } else @@ -21110,7 +21110,7 @@ function n8(t, e) { let l = o.line(r++); return { changes: { from: s.from, to: s.to, insert: l.text }, - range: R.cursor(s.from + l.length) + range: Z.cursor(s.from + l.length) }; }) : i = n.replaceSelection(o); t.dispatch(i, { @@ -21146,12 +21146,12 @@ Vr.mousedown = (t, e) => { }; function q5(t, e, n, i) { if (i == 1) - return R.cursor(e, n); + return Z.cursor(e, n); if (i == 2) return AM(t.state, e, n); { let r = Ht.find(t.docView, e), o = t.state.doc.lineAt(r ? r.posAtEnd : e), a = r ? r.posAtStart : o.from, O = r ? r.posAtEnd : o.to; - return O < t.state.doc.length && O == o.to && O++, R.range(a, O); + return O < t.state.doc.length && O == o.to && O++, Z.range(a, O); } } let i8 = (t, e) => t >= e.top && t <= e.bottom, V5 = (t, e, n) => i8(e, n) && t >= n.left && t <= n.right; @@ -21192,9 +21192,9 @@ function cF(t, e) { let s = Y5(t, o), l, c = q5(t, s.pos, s.bias, i); if (n.pos != s.pos && !a) { let u = q5(t, n.pos, n.bias, i), d = Math.min(u.from, c.from), f = Math.max(u.to, c.to); - c = d < c.from ? R.range(d, f) : R.range(f, d); + c = d < c.from ? Z.range(d, f) : Z.range(f, d); } - return a ? r.replaceRange(r.main.extend(c.from, c.to)) : O && i == 1 && r.ranges.length > 1 && (l = uF(r, s.pos)) ? l : O ? r.addRange(c) : R.create([c]); + return a ? r.replaceRange(r.main.extend(c.from, c.to)) : O && i == 1 && r.ranges.length > 1 && (l = uF(r, s.pos)) ? l : O ? r.addRange(c) : Z.create([c]); } }; } @@ -21202,7 +21202,7 @@ function uF(t, e) { for (let n = 0; n < t.ranges.length; n++) { let { from: i, to: r } = t.ranges[n]; if (i <= e && r >= e) - return R.create(t.ranges.slice(0, n).concat(t.ranges.slice(n + 1)), t.mainIndex == n ? 0 : t.mainIndex - (t.mainIndex > n ? 1 : 0)); + return Z.create(t.ranges.slice(0, n).concat(t.ranges.slice(n + 1)), t.mainIndex == n ? 0 : t.mainIndex - (t.mainIndex > n ? 1 : 0)); } return null; } @@ -21992,7 +21992,7 @@ class D5 { let $ = PF(e, (m) => m.from >= u.from && m.to <= u.to && Math.abs(m.from - l) < o && Math.abs(m.to - c) < o && !p.some((Q) => m.from < Q && m.to > Q)); if (!$) { if (c < u.to && n && i && n.visibleRanges.some((m) => m.from <= c && m.to >= c)) { - let m = n.moveToLineBoundary(R.cursor(c), !1, !0).head; + let m = n.moveToLineBoundary(Z.cursor(c), !1, !0).head; m > l && (c = m); } $ = new Rp(l, c, this.gapSize(u, l, c, d)); @@ -22495,7 +22495,7 @@ class CF { s.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = s.text, this.newSel = WF(O, this.bounds.from); } else { let O = e.observer.selectionRange, s = o && o.node == O.focusNode && o.offset == O.focusOffset || !Gm(e.contentDOM, O.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(O.focusNode, O.focusOffset), l = a && a.node == O.anchorNode && a.offset == O.anchorOffset || !Gm(e.contentDOM, O.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(O.anchorNode, O.anchorOffset); - this.newSel = R.single(l, s); + this.newSel = Z.single(l, s); } } } @@ -22518,8 +22518,8 @@ function d8(t, e) { from: r.from, to: r.to, insert: t.state.doc.slice(r.from, n.from).append(n.insert).append(t.state.doc.slice(n.to, r.to)) - } : (se.mac || se.android) && n && n.from == n.to && n.from == r.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = R.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }) : se.chrome && n && n.from == n.to && n.from == r.head && n.insert.toString() == ` - ` && t.lineWrapping && (i && (i = R.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }), n) { + } : (se.mac || se.android) && n && n.from == n.to && n.from == r.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (i && n.insert.length == 2 && (i = Z.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }) : se.chrome && n && n.from == n.to && n.from == r.head && n.insert.toString() == ` + ` && t.lineWrapping && (i && (i = Z.single(i.main.anchor - 1, i.main.head - 1)), n = { from: r.from, to: r.to, insert: Re.of([" "]) }), n) { if (se.ios && t.inputState.flushIOSKey() || se.android && (n.from == r.from && n.to == r.to && n.insert.length == 1 && n.insert.lines == 2 && WO(t.contentDOM, "Enter", 13) || (n.from == r.from - 1 && n.to == r.to && n.insert.length == 0 || o == 8 && n.insert.length < n.to - n.from && n.to > r.head) && WO(t.contentDOM, "Backspace", 8) || n.from == r.from && n.to == r.to + 1 && n.insert.length == 0 && WO(t.contentDOM, "Delete", 46))) return !0; let a = n.insert.toString(); @@ -22560,7 +22560,7 @@ function _F(t, e, n) { let Q = r.changes({ from: m, to: $, insert: e.insert }), S = p.to - o.to; return { changes: Q, - range: s ? R.range(Math.max(0, s.anchor + S), Math.max(0, s.head + S)) : p.map(Q) + range: s ? Z.range(Math.max(0, s.anchor + S), Math.max(0, s.head + S)) : p.map(Q) }; }); } else @@ -22605,7 +22605,7 @@ function WF(t, e) { if (t.length == 0) return null; let n = t[0].pos, i = t.length == 2 ? t[1].pos : n; - return n > -1 && i > -1 ? R.single(n + e, i + e) : null; + return n > -1 && i > -1 ? Z.single(n + e, i + e) : null; } const qF = { childList: !0, @@ -22960,7 +22960,7 @@ class we { for (let d of e) { if (u && (u = u.map(d.changes)), d.scrollIntoView) { let { main: f } = d.state.selection; - u = new Gf(f.empty ? f : R.cursor(f.head, f.head > f.anchor ? -1 : 1)); + u = new Gf(f.empty ? f : Z.cursor(f.head, f.head > f.anchor ? -1 : 1)); } for (let f of d.effects) f.is(P5) && (u = f.value); @@ -23451,7 +23451,7 @@ class we { cause it to scroll the given position or range into view. */ static scrollIntoView(e, n = {}) { - return P5.of(new Gf(typeof e == "number" ? R.cursor(e) : e, n.y, n.x, n.yMargin, n.xMargin)); + return P5.of(new Gf(typeof e == "number" ? Z.cursor(e) : e, n.y, n.x, n.yMargin, n.xMargin)); } /** Returns an extension that can be used to add DOM event handlers. @@ -25333,75 +25333,75 @@ function fN(t) { var e; let { buffer: n, nodeSet: i, maxBufferLength: r = Q8, reused: o = [], minRepeatType: a = i.types.length } = t, O = Array.isArray(n) ? new GS(n, n.length) : n, s = i.types, l = 0, c = 0; function u(b, x, w, X, _) { - let { id: C, start: k, end: Z, size: q } = O, W = c; + let { id: R, start: k, end: C, size: q } = O, W = c; for (; q < 0; ) if (O.next(), q == -1) { - let E = o[C]; + let E = o[R]; w.push(E), X.push(k - b); return; } else if (q == -3) { - l = C; + l = R; return; } else if (q == -4) { - c = C; + c = R; return; } else throw new RangeError(`Unrecognized record size: ${q}`); - let D = s[C], A, H, V = k - b; - if (Z - k <= r && (H = $(O.pos - x, _))) { + let D = s[R], A, H, V = k - b; + if (C - k <= r && (H = $(O.pos - x, _))) { let E = new Uint16Array(H.size - H.skip), G = O.pos - H.size, M = E.length; for (; O.pos > G; ) M = m(H.start, E, M); - A = new Ba(E, Z - H.start, i), V = H.start - b; + A = new Ba(E, C - H.start, i), V = H.start - b; } else { let E = O.pos - q; O.next(); - let G = [], M = [], te = C >= a ? C : -1, $e = 0, ge = Z; + let G = [], M = [], te = R >= a ? R : -1, $e = 0, ge = C; for (; O.pos > E; ) te >= 0 && O.id == te && O.size >= 0 ? (O.end <= ge - r && (f(G, M, k, $e, O.end, ge, te, W), $e = G.length, ge = O.end), O.next()) : u(k, E, G, M, te); if (te >= 0 && $e > 0 && $e < G.length && f(G, M, k, $e, k, ge, te, W), G.reverse(), M.reverse(), te > -1 && $e > 0) { let ke = d(D); - A = jS(D, G, M, 0, G.length, 0, Z - k, ke, ke); + A = jS(D, G, M, 0, G.length, 0, C - k, ke, ke); } else - A = p(D, G, M, Z - k, W - Z); + A = p(D, G, M, C - k, W - C); } w.push(A), X.push(V); } function d(b) { return (x, w, X) => { - let _ = 0, C = x.length - 1, k, Z; - if (C >= 0 && (k = x[C]) instanceof je) { - if (!C && k.type == b && k.length == X) + let _ = 0, R = x.length - 1, k, C; + if (R >= 0 && (k = x[R]) instanceof je) { + if (!R && k.type == b && k.length == X) return k; - (Z = k.prop(xe.lookAhead)) && (_ = w[C] + k.length + Z); + (C = k.prop(xe.lookAhead)) && (_ = w[R] + k.length + C); } return p(b, x, w, X, _); }; } - function f(b, x, w, X, _, C, k, Z) { + function f(b, x, w, X, _, R, k, C) { let q = [], W = []; for (; b.length > X; ) q.push(b.pop()), W.push(x.pop() + w - _); - b.push(p(i.types[k], q, W, C - _, Z - C)), x.push(_ - w); + b.push(p(i.types[k], q, W, R - _, C - R)), x.push(_ - w); } - function p(b, x, w, X, _ = 0, C) { + function p(b, x, w, X, _ = 0, R) { if (l) { let k = [xe.contextHash, l]; - C = C ? [k].concat(C) : [k]; + R = R ? [k].concat(R) : [k]; } if (_ > 25) { let k = [xe.lookAhead, _]; - C = C ? [k].concat(C) : [k]; + R = R ? [k].concat(R) : [k]; } - return new je(b, x, w, X, C); + return new je(b, x, w, X, R); } function $(b, x) { - let w = O.fork(), X = 0, _ = 0, C = 0, k = w.end - r, Z = { size: 0, start: 0, skip: 0 }; + let w = O.fork(), X = 0, _ = 0, R = 0, k = w.end - r, C = { size: 0, start: 0, skip: 0 }; e: for (let q = w.pos - b; w.pos > q; ) { let W = w.size; if (w.id == x && W >= 0) { - Z.size = X, Z.start = _, Z.skip = C, C += 4, X += 4, w.next(); + C.size = X, C.start = _, C.skip = R, R += 4, X += 4, w.next(); continue; } let D = w.pos - W; @@ -25418,20 +25418,20 @@ function fN(t) { w.id >= a && (A += 4); w.next(); } - _ = H, X += W, C += A; + _ = H, X += W, R += A; } - return (x < 0 || X == b) && (Z.size = X, Z.start = _, Z.skip = C), Z.size > 4 ? Z : void 0; + return (x < 0 || X == b) && (C.size = X, C.start = _, C.skip = R), C.size > 4 ? C : void 0; } function m(b, x, w) { - let { id: X, start: _, end: C, size: k } = O; + let { id: X, start: _, end: R, size: k } = O; if (O.next(), k >= 0 && X < a) { - let Z = w; + let C = w; if (k > 4) { let q = O.pos - (k - 4); for (; O.pos > q; ) w = m(b, x, w); } - x[--w] = Z, x[--w] = C - b, x[--w] = _ - b, x[--w] = X; + x[--w] = C, x[--w] = R - b, x[--w] = _ - b, x[--w] = X; } else k == -3 ? l = X : k == -4 && (c = X); return w; @@ -28136,7 +28136,7 @@ function z(t) { return new zc(I8.define(t)); } function go(t) { - return import("./index-aba189ae.mjs").then((e) => e.sql({ dialect: e[t] })); + return import("./index-3e17e8a4.mjs").then((e) => e.sql({ dialect: e[t] })); } const wB = [ // New-style language modes @@ -28167,7 +28167,7 @@ const wB = [ name: "CSS", extensions: ["css"], load() { - return import("./index-30e836c6.mjs").then((t) => t.css()); + return import("./index-1f957282.mjs").then((t) => t.css()); } }), /* @__PURE__ */ Y.of({ @@ -28175,7 +28175,7 @@ const wB = [ alias: ["xhtml"], extensions: ["html", "htm", "handlebars", "hbs"], load() { - return import("./index-9bdbca3f.mjs").then((t) => t.html()); + return import("./index-3e888653.mjs").then((t) => t.html()); } }), /* @__PURE__ */ Y.of({ @@ -28190,7 +28190,7 @@ const wB = [ alias: ["ecmascript", "js", "node"], extensions: ["js", "mjs", "cjs"], load() { - return import("./index-4d20bbe9.mjs").then((t) => t.i).then((t) => t.javascript()); + return import("./index-5feb2974.mjs").then((t) => t.i).then((t) => t.javascript()); } }), /* @__PURE__ */ Y.of({ @@ -28205,7 +28205,7 @@ const wB = [ name: "JSX", extensions: ["jsx"], load() { - return import("./index-4d20bbe9.mjs").then((t) => t.i).then((t) => t.javascript({ jsx: !0 })); + return import("./index-5feb2974.mjs").then((t) => t.i).then((t) => t.javascript({ jsx: !0 })); } }), /* @__PURE__ */ Y.of({ @@ -28225,7 +28225,7 @@ const wB = [ name: "Markdown", extensions: ["md", "markdown", "mkd"], load() { - return import("./index-6738d64c.mjs").then((t) => t.markdown()); + return import("./index-0bdca193.mjs").then((t) => t.markdown()); } }), /* @__PURE__ */ Y.of({ @@ -28306,7 +28306,7 @@ const wB = [ name: "TSX", extensions: ["tsx"], load() { - return import("./index-4d20bbe9.mjs").then((t) => t.i).then((t) => t.javascript({ jsx: !0, typescript: !0 })); + return import("./index-5feb2974.mjs").then((t) => t.i).then((t) => t.javascript({ jsx: !0, typescript: !0 })); } }), /* @__PURE__ */ Y.of({ @@ -28314,7 +28314,7 @@ const wB = [ alias: ["ts"], extensions: ["ts"], load() { - return import("./index-4d20bbe9.mjs").then((t) => t.i).then((t) => t.javascript({ typescript: !0 })); + return import("./index-5feb2974.mjs").then((t) => t.i).then((t) => t.javascript({ typescript: !0 })); } }), /* @__PURE__ */ Y.of({ @@ -30647,7 +30647,7 @@ const jc = /* @__PURE__ */ Qe.define({ provide: (t) => pe.decorations.from(t, (e) => e ? e.deco : Ge.none) }); function ib(t, e) { - return R.create(t.filter((n) => n.field == e).map((n) => R.range(n.from, n.to))); + return Z.create(t.filter((n) => n.field == e).map((n) => Z.range(n.from, n.to))); } function iH(t) { let e = KB.parse(t); @@ -34887,17 +34887,17 @@ const vK = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi let { head: s } = a, l = bt(r).resolveInner(s, -1), c; if (l.name == "JSXStartTag" && (l = l.parent), !(l.name == "JSXAttributeValue" && l.to > s)) { if (i == ">" && l.name == "JSXFragmentTag") - return { range: R.cursor(s + 1), changes: { from: s, insert: ">" } }; + return { range: Z.cursor(s + 1), changes: { from: s, insert: ">" } }; if (i == "/" && l.name == "JSXFragmentTag") { let u = l.parent, d = u == null ? void 0 : u.parent; if (u.from == s - 1 && ((O = d.lastChild) === null || O === void 0 ? void 0 : O.name) != "JSXEndTag" && (c = ax(r.doc, d == null ? void 0 : d.firstChild, s))) { let f = `/${c}>`; - return { range: R.cursor(s + f.length), changes: { from: s, insert: f } }; + return { range: Z.cursor(s + f.length), changes: { from: s, insert: f } }; } } else if (i == ">") { let u = xK(l); if (u && !PK(u.lastChild) && r.sliceDoc(s, s + 2) != "` } }; + return { range: Z.cursor(s + 1), changes: { from: s, insert: `>` } }; } } return { range: a }; @@ -35534,13 +35534,13 @@ const lx = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb if ((u.name == "TagName" || u.name == "StartTag") && (u = u.parent), i == ">" && u.name == "OpenTag") { if (((s = (O = u.parent) === null || O === void 0 ? void 0 : O.lastChild) === null || s === void 0 ? void 0 : s.name) != "CloseTag" && (d = is(r.doc, u.parent, c)) && !lx.has(d)) { let f = t.state.doc.sliceString(c, c + 1) === ">", p = `${f ? "" : ">"}`; - return { range: R.cursor(c + 1), changes: { from: c + (f ? 1 : 0), insert: p } }; + return { range: Z.cursor(c + 1), changes: { from: c + (f ? 1 : 0), insert: p } }; } } else if (i == "/" && u.name == "OpenTag") { let f = u.parent, p = f == null ? void 0 : f.parent; if (f.from == c - 1 && ((l = p.lastChild) === null || l === void 0 ? void 0 : l.name) != "CloseTag" && (d = is(r.doc, p, c)) && !lx.has(d)) { let $ = t.state.doc.sliceString(c, c + 1) === ">", m = `/${d}${$ ? "" : ">"}`, Q = c + m.length + ($ ? 1 : 0); - return { range: R.cursor(Q), changes: { from: c, insert: m } }; + return { range: Z.cursor(Q), changes: { from: c, insert: m } }; } } return { range: a }; @@ -35681,12 +35681,12 @@ const zK = ({ state: t, dispatch: e }) => { let m = l.length > 1 ? l[l.length - 2] : null, Q, S = ""; m && m.item ? (Q = s.from + m.from, S = m.marker(i, 1)) : Q = s.from + (m ? m.to : 0); let y = [{ from: Q, to: O, insert: S }]; - return c.node.name == "OrderedList" && ig(c.item, i, y, -2), m && m.node.name == "OrderedList" && ig(m.item, i, y), { range: R.cursor(Q + S.length), changes: y }; + return c.node.name == "OrderedList" && ig(c.item, i, y, -2), m && m.node.name == "OrderedList" && ig(m.item, i, y), { range: Z.cursor(Q + S.length), changes: y }; } else { let m = ""; for (let Q = 0, S = l.length - 2; Q <= S; Q++) m += l[Q].blank(Q < S ? l[Q + 1].from - m.length : null, Q < S); - return m += t.lineBreak, { range: R.cursor(O + m.length), changes: { from: s.from, insert: m } }; + return m += t.lineBreak, { range: Z.cursor(O + m.length), changes: { from: s.from, insert: m } }; } if (c.node.name == "Blockquote" && u && s.from) { let m = i.lineAt(s.from - 1), Q = />\s*$/.exec(m.text); @@ -35707,7 +35707,7 @@ const zK = ({ state: t, dispatch: e }) => { let $ = O; for (; $ > s.from && /\s/.test(s.text.charAt($ - s.from - 1)); ) $--; - return p = t.lineBreak + p, d.push({ from: $, to: O, insert: p }), { range: R.cursor($ + p.length), changes: d }; + return p = t.lineBreak + p, d.push({ from: $, to: O, insert: p }), { range: Z.cursor($ + p.length), changes: d }; }); return r ? !1 : (e(t.update(o, { scrollIntoView: !0, userEvent: "input" })), !0); }; @@ -35735,7 +35735,7 @@ const EK = ({ state: t, dispatch: e }) => { let c = l[l.length - 1], u = c.to - c.spaceAfter.length + (c.spaceAfter ? 1 : 0); if (a - s.from > u && !/\S/.test(s.text.slice(u, a - s.from))) return { - range: R.cursor(s.from + u), + range: Z.cursor(s.from + u), changes: { from: s.from + u, to: a } }; if (a - s.from == u && // Only apply this if we're on the line that has the @@ -35746,7 +35746,7 @@ const EK = ({ state: t, dispatch: e }) => { if (c.item && c.node.from < c.item.from && /\S/.test(s.text.slice(c.from, c.to))) return { range: o, changes: { from: d, to: s.from + c.to, insert: c.blank(c.to - c.from) } }; if (d < a) - return { range: R.cursor(d), changes: { from: d, to: a } }; + return { range: Z.cursor(d), changes: { from: d, to: a } }; } } } @@ -36883,7 +36883,7 @@ const Ic = /* @__PURE__ */ Qe.define({ provide: (t) => pe.decorations.from(t, (e) => e ? e.deco : Ge.none) }); function bb(t, e) { - return R.create(t.filter((n) => n.field == e).map((n) => R.range(n.from, n.to))); + return Z.create(t.filter((n) => n.field == e).map((n) => Z.range(n.from, n.to))); } function _ne(t) { let e = Xne.parse(t); @@ -40397,7 +40397,7 @@ function iOe(t, e, n, i) { let { main: r } = t.selection, o = n - r.from, a = i - r.from; return Object.assign(Object.assign({}, t.changeByRange((O) => O != r && n != i && t.sliceDoc(O.from + o, O.from + a) != t.sliceDoc(n, i) ? { range: O } : { changes: { from: O.from + o, to: i == r.from ? O.to : O.from + a, insert: e }, - range: R.cursor(O.from + o + e.length) + range: Z.cursor(O.from + o + e.length) })), { scrollIntoView: !0, userEvent: "input.complete" }); } const dP = /* @__PURE__ */ new WeakMap(); @@ -41300,7 +41300,7 @@ const Lc = /* @__PURE__ */ Qe.define({ provide: (t) => pe.decorations.from(t, (e) => e ? e.deco : Ge.none) }); function Cb(t, e) { - return R.create(t.filter((n) => n.field == e).map((n) => R.range(n.from, n.to))); + return Z.create(t.filter((n) => n.field == e).map((n) => Z.range(n.from, n.to))); } function XOe(t) { let e = Tb.parse(t); @@ -41412,7 +41412,7 @@ const qOe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav if (s == O && b1(t.doc, a.head) == jC(nn(s, 0))) return { changes: { from: a.head - s.length, to: a.head + s.length }, - range: R.cursor(a.head - s.length) + range: Z.cursor(a.head - s.length) }; } return { range: r = a }; @@ -41452,13 +41452,13 @@ function EOe(t, e, n, i) { return { changes: [{ insert: e, from: a.from }, { insert: n, from: a.to }], effects: va.of(a.to + e.length), - range: R.range(a.anchor + e.length, a.head + e.length) + range: Z.range(a.anchor + e.length, a.head + e.length) }; let O = b1(t.doc, a.head); return !O || /\s/.test(O) || i.indexOf(O) > -1 ? { changes: { insert: e + n, from: a.head }, effects: va.of(a.head + e.length), - range: R.cursor(a.head + e.length) + range: Z.cursor(a.head + e.length) } : { range: r = a }; }); return r ? null : t.update(o, { @@ -41469,7 +41469,7 @@ function EOe(t, e, n, i) { function jOe(t, e, n) { let i = null, r = t.changeByRange((o) => o.empty && b1(t.doc, o.head) == n ? { changes: { from: o.head, to: o.head + n.length, insert: n }, - range: R.cursor(o.head + n.length) + range: Z.cursor(o.head + n.length) } : i = { range: o }); return i ? null : t.update(r, { scrollIntoView: !0, @@ -41482,7 +41482,7 @@ function AOe(t, e, n, i) { return { changes: [{ insert: e, from: O.from }, { insert: e, from: O.to }], effects: va.of(O.to + e.length), - range: R.range(O.anchor + e.length, O.head + e.length) + range: Z.range(O.anchor + e.length, O.head + e.length) }; let s = O.head, l = b1(t.doc, s), c; if (l == e) { @@ -41490,13 +41490,13 @@ function AOe(t, e, n, i) { return { changes: { insert: e + e, from: s }, effects: va.of(s + e.length), - range: R.cursor(s + e.length) + range: Z.cursor(s + e.length) }; if (IC(t, s)) { let d = n && t.sliceDoc(s, s + e.length * 3) == e + e + e ? e + e + e : e; return { changes: { from: s, to: s + d.length, insert: d }, - range: R.cursor(s + d.length) + range: Z.cursor(s + d.length) }; } } else { @@ -41504,13 +41504,13 @@ function AOe(t, e, n, i) { return { changes: { insert: e + e + e + e, from: s }, effects: va.of(s + e.length), - range: R.cursor(s + e.length) + range: Z.cursor(s + e.length) }; if (t.charCategorizer(s)(l) != gt.Word && bP(t, s, r) > -1 && !IOe(t, s, e, r)) return { changes: { insert: e + e, from: s }, effects: va.of(s + e.length), - range: R.cursor(s + e.length) + range: Z.cursor(s + e.length) }; } return { range: o = O }; @@ -42347,7 +42347,7 @@ const wle = /* @__PURE__ */ pe.inputHandler.of((t, e, n, i) => { if (((s = (O = u.parent) === null || O === void 0 ? void 0 : O.lastChild) === null || s === void 0 ? void 0 : s.name) != "CloseTag" && (d = YP(r.doc, u.parent, c))) { let f = t.state.doc.sliceString(c, c + 1) === ">", p = `${f ? "" : ">"}`; return { - range: R.cursor(c + 1), + range: Z.cursor(c + 1), changes: { from: c + (f ? 1 : 0), insert: p } }; } @@ -42355,7 +42355,7 @@ const wle = /* @__PURE__ */ pe.inputHandler.of((t, e, n, i) => { let f = u.parent, p = f == null ? void 0 : f.parent; if (f.from == c - 1 && ((l = p.lastChild) === null || l === void 0 ? void 0 : l.name) != "CloseTag" && (d = YP(r.doc, p, c))) { let $ = t.state.doc.sliceString(c, c + 1) === ">", m = `/${d}${$ ? "" : ">"}`, Q = c + m.length + ($ ? 1 : 0); - return { range: R.cursor(Q), changes: { from: c, insert: m } }; + return { range: Z.cursor(Q), changes: { from: c, insert: m } }; } } return { range: a }; @@ -43251,15 +43251,15 @@ function wg(t) { } function Nn(t) { var e = t.statementIndentUnit, n = t.dontAlignCalls, i = t.keywords || {}, r = t.types || {}, o = t.builtin || {}, a = t.blockKeywords || {}, O = t.defKeywords || {}, s = t.atoms || {}, l = t.hooks || {}, c = t.multiLineStrings, u = t.indentStatements !== !1, d = t.indentSwitch !== !1, f = t.namespaceSeparator, p = t.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, $ = t.numberStart || /[\d\.]/, m = t.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, Q = t.isOperatorChar || /[+\-*&%=<>!?|\/]/, S = t.isIdentifierChar || /[\w\$_\xa1-\uffff]/, y = t.isReservedIdentifier || !1, b, x; - function w(k, Z) { + function w(k, C) { var q = k.next(); if (l[q]) { - var W = l[q](k, Z); + var W = l[q](k, C); if (W !== !1) return W; } if (q == '"' || q == "'") - return Z.tokenize = X(q), Z.tokenize(k, Z); + return C.tokenize = X(q), C.tokenize(k, C); if ($.test(q)) { if (k.backUp(1), k.match(m)) return "number"; @@ -43269,7 +43269,7 @@ function Nn(t) { return b = q, null; if (q == "/") { if (k.eat("*")) - return Z.tokenize = _, _(k, Z); + return C.tokenize = _, _(k, C); if (k.eat("/")) return k.skipToEnd(), "comment"; } @@ -43285,8 +43285,8 @@ function Nn(t) { return Nr(i, D) ? (Nr(a, D) && (b = "newstatement"), Nr(O, D) && (x = !0), "keyword") : Nr(r, D) ? "type" : Nr(o, D) || y && y(D) ? (Nr(a, D) && (b = "newstatement"), "builtin") : Nr(s, D) ? "atom" : "variable"; } function X(k) { - return function(Z, q) { - for (var W = !1, D, A = !1; (D = Z.next()) != null; ) { + return function(C, q) { + for (var W = !1, D, A = !1; (D = C.next()) != null; ) { if (D == k && !W) { A = !0; break; @@ -43296,18 +43296,18 @@ function Nn(t) { return (A || !(W || c)) && (q.tokenize = null), "string"; }; } - function _(k, Z) { + function _(k, C) { for (var q = !1, W; W = k.next(); ) { if (W == "/" && q) { - Z.tokenize = null; + C.tokenize = null; break; } q = W == "*"; } return "comment"; } - function C(k, Z) { - t.typeFirstDefinitions && k.eol() && wg(Z.context) && (Z.typeAtEndOfLine = DP(k, Z, k.pos)); + function R(k, C) { + t.typeFirstDefinitions && k.eol() && wg(C.context) && (C.typeAtEndOfLine = DP(k, C, k.pos)); } return { name: t.name, @@ -43320,45 +43320,45 @@ function Nn(t) { prevToken: null }; }, - token: function(k, Z) { - var q = Z.context; - if (k.sol() && (q.align == null && (q.align = !1), Z.indented = k.indentation(), Z.startOfLine = !0), k.eatSpace()) - return C(k, Z), null; + token: function(k, C) { + var q = C.context; + if (k.sol() && (q.align == null && (q.align = !1), C.indented = k.indentation(), C.startOfLine = !0), k.eatSpace()) + return R(k, C), null; b = x = null; - var W = (Z.tokenize || w)(k, Z); + var W = (C.tokenize || w)(k, C); if (W == "comment" || W == "meta") return W; if (q.align == null && (q.align = !0), b == ";" || b == ":" || b == "," && k.match(/^\s*(?:\/\/.*)?$/, !1)) - for (; Z.context.type == "statement"; ) - Ds(Z); + for (; C.context.type == "statement"; ) + Ds(C); else if (b == "{") - Iu(Z, k.column(), "}"); + Iu(C, k.column(), "}"); else if (b == "[") - Iu(Z, k.column(), "]"); + Iu(C, k.column(), "]"); else if (b == "(") - Iu(Z, k.column(), ")"); + Iu(C, k.column(), ")"); else if (b == "}") { for (; q.type == "statement"; ) - q = Ds(Z); - for (q.type == "}" && (q = Ds(Z)); q.type == "statement"; ) - q = Ds(Z); + q = Ds(C); + for (q.type == "}" && (q = Ds(C)); q.type == "statement"; ) + q = Ds(C); } else - b == q.type ? Ds(Z) : u && ((q.type == "}" || q.type == "top") && b != ";" || q.type == "statement" && b == "newstatement") && Iu(Z, k.column(), "statement", k.current()); - if (W == "variable" && (Z.prevToken == "def" || t.typeFirstDefinitions && DP(k, Z, k.start) && wg(Z.context) && k.match(/^\s*\(/, !1)) && (W = "def"), l.token) { - var D = l.token(k, Z, W); + b == q.type ? Ds(C) : u && ((q.type == "}" || q.type == "top") && b != ";" || q.type == "statement" && b == "newstatement") && Iu(C, k.column(), "statement", k.current()); + if (W == "variable" && (C.prevToken == "def" || t.typeFirstDefinitions && DP(k, C, k.start) && wg(C.context) && k.match(/^\s*\(/, !1)) && (W = "def"), l.token) { + var D = l.token(k, C, W); D !== void 0 && (W = D); } - return W == "def" && t.styleDefs === !1 && (W = "variable"), Z.startOfLine = !1, Z.prevToken = x ? "def" : W || b, C(k, Z), W; + return W == "def" && t.styleDefs === !1 && (W = "variable"), C.startOfLine = !1, C.prevToken = x ? "def" : W || b, R(k, C), W; }, - indent: function(k, Z, q) { + indent: function(k, C, q) { if (k.tokenize != w && k.tokenize != null || k.typeAtEndOfLine && wg(k.context)) return null; - var W = k.context, D = Z && Z.charAt(0), A = D == W.type; + var W = k.context, D = C && C.charAt(0), A = D == W.type; if (W.type == "statement" && D == "}" && (W = W.prev), t.dontIndentStatements) for (; W.type == "statement" && t.dontIndentStatements.test(W.info); ) W = W.prev; if (l.indent) { - var H = l.indent(k, W, Z, q.unit); + var H = l.indent(k, W, C, q.unit); if (typeof H == "number") return H; } @@ -43368,7 +43368,7 @@ function Nn(t) { W = W.prev; return W.indented; } - return W.type == "statement" ? W.indented + (D == "{" ? 0 : e || q.unit) : W.align && (!n || W.type != ")") ? W.column + (A ? 0 : 1) : W.type == ")" && !A ? W.indented + (e || q.unit) : W.indented + (A ? 0 : q.unit) + (!A && V && !/^(?:case|default)\b/.test(Z) ? q.unit : 0); + return W.type == "statement" ? W.indented + (D == "{" ? 0 : e || q.unit) : W.align && (!n || W.type != ")") ? W.column + (A ? 0 : 1) : W.type == ")" && !A ? W.indented + (e || q.unit) : W.indented + (A ? 0 : q.unit) + (!A && V && !/^(?:case|default)\b/.test(C) ? q.unit : 0); }, languageData: { indentOnInput: d ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/, @@ -55726,7 +55726,7 @@ function uq(t) { "urlencode" ], w = S.concat(Q); m = m.concat($), t.isASP && (m = m.concat(y), w = w.concat(x, b)); - var X = n(d), _ = n(f), C = n(p), k = n(m), Z = n(w), q = '"', W = n(s), D = n(l), A = n(c), H = n(["end"]), V = n(["do"]), E = n(["on error resume next", "exit"]), G = n(["rem"]); + var X = n(d), _ = n(f), R = n(p), k = n(m), C = n(w), q = '"', W = n(s), D = n(l), A = n(c), H = n(["end"]), V = n(["do"]), E = n(["on error resume next", "exit"]), G = n(["rem"]); function M(N, oe) { oe.currentIndent++; } @@ -55747,7 +55747,7 @@ function uq(t) { if (N.match(/^&H[0-9a-f]+/i) || N.match(/^&O[0-7]+/i) ? Te = !0 : N.match(/^[1-9]\d*F?/) ? (N.eat(/J/i), Te = !0) : N.match(/^0(?![\dx])/i) && (Te = !0), Te) return N.eat(/L/i), "number"; } - return N.match(q) ? (oe.tokenize = ge(N.current()), oe.tokenize(N, oe)) : N.match(r) || N.match(i) || N.match(u) ? "operator" : N.match(o) ? null : N.match(a) ? "bracket" : N.match(E) ? (oe.doInCurrentLine = !0, "keyword") : N.match(V) ? (M(N, oe), oe.doInCurrentLine = !0, "keyword") : N.match(W) ? (oe.doInCurrentLine ? oe.doInCurrentLine = !1 : M(N, oe), "keyword") : N.match(D) ? "keyword" : N.match(H) ? (te(N, oe), te(N, oe), "keyword") : N.match(A) ? (oe.doInCurrentLine ? oe.doInCurrentLine = !1 : te(N, oe), "keyword") : N.match(X) ? "keyword" : N.match(_) ? "atom" : N.match(Z) ? "variableName.special" : N.match(C) || N.match(k) ? "builtin" : N.match(O) ? "variable" : (N.next(), e); + return N.match(q) ? (oe.tokenize = ge(N.current()), oe.tokenize(N, oe)) : N.match(r) || N.match(i) || N.match(u) ? "operator" : N.match(o) ? null : N.match(a) ? "bracket" : N.match(E) ? (oe.doInCurrentLine = !0, "keyword") : N.match(V) ? (M(N, oe), oe.doInCurrentLine = !0, "keyword") : N.match(W) ? (oe.doInCurrentLine ? oe.doInCurrentLine = !1 : M(N, oe), "keyword") : N.match(D) ? "keyword" : N.match(H) ? (te(N, oe), te(N, oe), "keyword") : N.match(A) ? (oe.doInCurrentLine ? oe.doInCurrentLine = !1 : te(N, oe), "keyword") : N.match(X) ? "keyword" : N.match(_) ? "atom" : N.match(C) ? "variableName.special" : N.match(R) || N.match(k) ? "builtin" : N.match(O) ? "variable" : (N.next(), e); } function ge(N) { var oe = N.length == 1, le = "string"; @@ -55909,7 +55909,7 @@ function hq(t) { x[w] && (x[w] = void 0); } var _ = a("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while"); - function C(V, E) { + function R(V, E) { var G = V.peek(), M; if (o[G] && (M = o[G](V, E)) != !1 || o.tokenBase && (M = o.tokenBase(V, E)) != !1) return M; @@ -55927,7 +55927,7 @@ function hq(t) { return V.next(), E.tokenize = k(G), E.tokenize(V, E); if (G == "/") { if (V.next(), V.eat("*")) - return E.tokenize = Z, Z(V, E); + return E.tokenize = C, C(V, E); if (V.eat("/")) return V.skipToEnd(), "comment"; V.backUp(1); @@ -55951,13 +55951,13 @@ function hq(t) { } M = !M && te == "\\"; } - return ($e || !(M || r)) && (G.tokenize = C), "string"; + return ($e || !(M || r)) && (G.tokenize = R), "string"; }; } - function Z(V, E) { + function C(V, E) { for (var G = !1, M; M = V.next(); ) { if (M == "/" && G) { - E.tokenize = C; + E.tokenize = R; break; } G = M == "*"; @@ -56016,7 +56016,7 @@ function hq(t) { if (V.eatSpace()) return null; S = null, y = null; - var M = (E.tokenize || C)(V, E); + var M = (E.tokenize || R)(V, E); if (M == "comment" || M == "meta" || M == "variable") return M; if (G.align == null && (G.align = !0), S == G.type) @@ -56043,7 +56043,7 @@ function hq(t) { return E.startOfLine = !1, M; }, indent: function(V, E, G) { - if (V.tokenize != C && V.tokenize != null) + if (V.tokenize != R && V.tokenize != null) return null; if (o.indent) { var M = o.indent(V); @@ -57437,7 +57437,7 @@ const Wq = /* @__PURE__ */ Gt.define({ update(t, e) { let n = e.state.facet(Zq), i = e.annotation(Q0); if (i) { - let s = e.docChanged ? R.single(J0e(e.changes)) : void 0, l = Dn.fromTransaction(e, s), c = i.side, u = c == 0 ? t.undone : t.done; + let s = e.docChanged ? Z.single(J0e(e.changes)) : void 0, l = Dn.fromTransaction(e, s), c = i.side, u = c == 0 ? t.undone : t.done; return l ? u = Xh(u, u.length, n.minDepth, l) : u = Yq(u, e.startState.selection), new Rr(c == 0 ? i.rest : u, c == 0 ? u : i.rest); } let r = e.annotation(B0e); @@ -57494,7 +57494,7 @@ class Dn { }; } static fromJSON(e) { - return new Dn(e.changes && qt.fromJSON(e.changes), [], e.mapped && Wr.fromJSON(e.mapped), e.startSelection && R.fromJSON(e.startSelection), e.selectionsAfter.map(R.fromJSON)); + return new Dn(e.changes && qt.fromJSON(e.changes), [], e.mapped && Wr.fromJSON(e.mapped), e.startSelection && Z.fromJSON(e.startSelection), e.selectionsAfter.map(Z.fromJSON)); } // This does not check `addToHistory` and such, it assumes the // transaction needs to be converted to an item. Returns null when @@ -57619,7 +57619,7 @@ const sSe = [ { key: "Alt-u", mac: "Mod-Shift-u", run: tSe, preventDefault: !0 } ]; function Xs(t, e) { - return R.create(t.ranges.map(e), t.mainIndex); + return Z.create(t.ranges.map(e), t.mainIndex); } function Ir(t, e) { return t.update({ selection: e, scrollIntoView: !0, userEvent: "select" }); @@ -57629,7 +57629,7 @@ function dr({ state: t, dispatch: e }, n) { return i.eq(t.selection) ? !1 : (e(Ir(t, i)), !0); } function A1(t, e) { - return R.cursor(e ? t.to : t.from); + return Z.cursor(e ? t.to : t.from); } function Uq(t, e) { return dr(t, (n) => n.empty ? t.moveByChar(n, e) : A1(n, e)); @@ -57657,7 +57657,7 @@ function I1(t, e, n) { uSe(t, l, r) ? i = l : s = n ? l.to : l.from; } let o = i.type.prop(r), a, O; - return o && (a = n ? bO(t, i.from, 1) : bO(t, i.to, -1)) && a.matched ? O = n ? a.end.to : a.end.from : O = n ? i.to : i.from, R.cursor(O, n ? -1 : 1); + return o && (a = n ? bO(t, i.from, 1) : bO(t, i.to, -1)) && a.matched ? O = n ? a.end.to : a.end.from : O = n ? i.to : i.from, Z.cursor(O, n ? -1 : 1); } const dSe = (t) => dr(t, (e) => I1(t.state, e, !Xn(t))), fSe = (t) => dr(t, (e) => I1(t.state, e, Xn(t))); function jq(t, e) { @@ -57702,11 +57702,11 @@ function sa(t, e, n) { let i = t.lineBlockAt(e.head), r = t.moveToLineBoundary(e, n); if (r.head == e.head && r.head != (n ? i.to : i.from) && (r = t.moveToLineBoundary(e, n, !1)), !n && r.head == i.from && i.length) { let o = /^\s*/.exec(t.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length; - o && e.head != i.from + o && (r = R.cursor(i.from + o)); + o && e.head != i.from + o && (r = Z.cursor(i.from + o)); } return r; } -const hSe = (t) => dr(t, (e) => sa(t, e, !0)), pSe = (t) => dr(t, (e) => sa(t, e, !1)), gSe = (t) => dr(t, (e) => sa(t, e, !Xn(t))), $Se = (t) => dr(t, (e) => sa(t, e, Xn(t))), mSe = (t) => dr(t, (e) => R.cursor(t.lineBlockAt(e.head).from, 1)), QSe = (t) => dr(t, (e) => R.cursor(t.lineBlockAt(e.head).to, -1)); +const hSe = (t) => dr(t, (e) => sa(t, e, !0)), pSe = (t) => dr(t, (e) => sa(t, e, !1)), gSe = (t) => dr(t, (e) => sa(t, e, !Xn(t))), $Se = (t) => dr(t, (e) => sa(t, e, Xn(t))), mSe = (t) => dr(t, (e) => Z.cursor(t.lineBlockAt(e.head).from, 1)), QSe = (t) => dr(t, (e) => Z.cursor(t.lineBlockAt(e.head).to, -1)); function SSe(t, e, n) { let i = !1, r = Xs(t.selection, (o) => { let a = bO(t, o.head, -1) || bO(t, o.head, 1) || o.head > 0 && bO(t, o.head - 1, 1) || o.head < t.doc.length && bO(t, o.head + 1, -1); @@ -57714,7 +57714,7 @@ function SSe(t, e, n) { return o; i = !0; let O = a.start.from == o.head ? a.end.to : a.end.from; - return n ? R.range(o.anchor, O) : R.cursor(O); + return n ? Z.range(o.anchor, O) : Z.cursor(O); }); return i ? (e(Ir(t, r)), !0) : !1; } @@ -57722,7 +57722,7 @@ const bSe = ({ state: t, dispatch: e }) => SSe(t, e, !1); function Ei(t, e) { let n = Xs(t.state.selection, (i) => { let r = e(i); - return R.range(i.anchor, r.head, r.goalColumn, r.bidiLevel || void 0); + return Z.range(i.anchor, r.head, r.goalColumn, r.bidiLevel || void 0); }); return n.eq(t.state.selection) ? !1 : (t.dispatch(Ir(t.state, n)), !0); } @@ -57741,21 +57741,21 @@ const Jq = (t) => Hq(t, !1), Kq = (t) => Hq(t, !0); function eV(t, e) { return Ei(t, (n) => t.moveVertically(n, e, Dq(t).height)); } -const r9 = (t) => eV(t, !1), o9 = (t) => eV(t, !0), vSe = (t) => Ei(t, (e) => sa(t, e, !0)), XSe = (t) => Ei(t, (e) => sa(t, e, !1)), kSe = (t) => Ei(t, (e) => sa(t, e, !Xn(t))), TSe = (t) => Ei(t, (e) => sa(t, e, Xn(t))), CSe = (t) => Ei(t, (e) => R.cursor(t.lineBlockAt(e.head).from)), _Se = (t) => Ei(t, (e) => R.cursor(t.lineBlockAt(e.head).to)), a9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: 0 })), !0), O9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.doc.length })), !0), s9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.selection.main.anchor, head: 0 })), !0), l9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), RSe = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), ZSe = ({ state: t, dispatch: e }) => { - let n = L1(t).map(({ from: i, to: r }) => R.range(i, Math.min(r + 1, t.doc.length))); - return e(t.update({ selection: R.create(n), userEvent: "select" })), !0; +const r9 = (t) => eV(t, !1), o9 = (t) => eV(t, !0), vSe = (t) => Ei(t, (e) => sa(t, e, !0)), XSe = (t) => Ei(t, (e) => sa(t, e, !1)), kSe = (t) => Ei(t, (e) => sa(t, e, !Xn(t))), TSe = (t) => Ei(t, (e) => sa(t, e, Xn(t))), CSe = (t) => Ei(t, (e) => Z.cursor(t.lineBlockAt(e.head).from)), _Se = (t) => Ei(t, (e) => Z.cursor(t.lineBlockAt(e.head).to)), a9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: 0 })), !0), O9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.doc.length })), !0), s9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.selection.main.anchor, head: 0 })), !0), l9 = ({ state: t, dispatch: e }) => (e(Ir(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), RSe = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), ZSe = ({ state: t, dispatch: e }) => { + let n = L1(t).map(({ from: i, to: r }) => Z.range(i, Math.min(r + 1, t.doc.length))); + return e(t.update({ selection: Z.create(n), userEvent: "select" })), !0; }, WSe = ({ state: t, dispatch: e }) => { let n = Xs(t.selection, (i) => { var r; let o = bt(t).resolveInner(i.head, 1); for (; !(o.from < i.from && o.to >= i.to || o.to > i.to && o.from <= i.from || !(!((r = o.parent) === null || r === void 0) && r.parent)); ) o = o.parent; - return R.range(o.to, o.from); + return Z.range(o.to, o.from); }); return e(Ir(t, n)), !0; }, qSe = ({ state: t, dispatch: e }) => { let n = t.selection, i = null; - return n.ranges.length > 1 ? i = R.create([n.main]) : n.main.empty || (i = R.create([R.cursor(n.main.head)])), i ? (e(Ir(t, i)), !0) : !1; + return n.ranges.length > 1 ? i = Z.create([n.main]) : n.main.empty || (i = Z.create([Z.cursor(n.main.head)])), i ? (e(Ir(t, i)), !0) : !1; }; function D1(t, e) { if (t.state.readOnly) @@ -57767,7 +57767,7 @@ function D1(t, e) { s < a ? (n = "delete.backward", s = hd(t, s, !1)) : s > a && (n = "delete.forward", s = hd(t, s, !0)), a = Math.min(a, s), O = Math.max(O, s); } else a = hd(t, a, !1), O = hd(t, O, !0); - return a == O ? { range: o } : { changes: { from: a, to: O }, range: R.cursor(a) }; + return a == O ? { range: o } : { changes: { from: a, to: O }, range: Z.cursor(a) }; }); return r.changes.empty ? !1 : (t.dispatch(i.update(r, { scrollIntoView: !0, @@ -57819,7 +57819,7 @@ const tV = (t, e) => D1(t, (n) => { return !1; let n = t.changeByRange((i) => ({ changes: { from: i.from, to: i.to, insert: Re.of(["", ""]) }, - range: R.cursor(i.from) + range: Z.cursor(i.from) })); return e(t.update(n, { scrollIntoView: !0, userEvent: "input" })), !0; }, zSe = ({ state: t, dispatch: e }) => { @@ -57831,7 +57831,7 @@ const tV = (t, e) => D1(t, (n) => { let r = i.from, o = t.doc.lineAt(r), a = r == o.from ? r - 1 : Ut(o.text, r - o.from, !1) + o.from, O = r == o.to ? r + 1 : Ut(o.text, r - o.from, !0) + o.from; return { changes: { from: a, to: O, insert: t.doc.slice(r, O).append(t.doc.slice(a, r)) }, - range: R.cursor(O) + range: Z.cursor(O) }; }); return n.changes.empty ? !1 : (e(t.update(n, { scrollIntoView: !0, userEvent: "move.character" })), !0); @@ -57860,17 +57860,17 @@ function aV(t, e, n) { if (n) { i.push({ from: o.to, to: a.to }, { from: o.from, insert: a.text + t.lineBreak }); for (let s of o.ranges) - r.push(R.range(Math.min(t.doc.length, s.anchor + O), Math.min(t.doc.length, s.head + O))); + r.push(Z.range(Math.min(t.doc.length, s.anchor + O), Math.min(t.doc.length, s.head + O))); } else { i.push({ from: a.from, to: o.from }, { from: o.to, insert: t.lineBreak + a.text }); for (let s of o.ranges) - r.push(R.range(s.anchor - O, s.head - O)); + r.push(Z.range(s.anchor - O, s.head - O)); } } return i.length ? (e(t.update({ changes: i, scrollIntoView: !0, - selection: R.create(r, t.selection.mainIndex), + selection: Z.create(r, t.selection.mainIndex), userEvent: "move.line" })), !0) : !1; } @@ -57910,7 +57910,7 @@ function sV(t) { let u = ["", Hf(e, c)]; return s && u.push(Hf(e, l.lineIndent(O.from, -1))), { changes: { from: o, to: a, insert: Re.of(u) }, - range: R.cursor(o + 1 + u[1].length) + range: Z.cursor(o + 1 + u[1].length) }; }); return n(e.update(i, { scrollIntoView: !0, userEvent: "input" })), !0; @@ -57927,7 +57927,7 @@ function c2(t, e) { let o = t.changes(r); return { changes: r, - range: R.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1)) + range: Z.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1)) }; }); } @@ -58238,7 +58238,7 @@ function w0(t) { s && (m = m * (s == "-" ? -1 : 1) + O.number / a.doc.lines), f = Math.round(a.doc.lines * m); } else l && s && (f = f * (s == "-" ? -1 : 1) + O.number); - let p = a.doc.line(Math.max(1, Math.min(a.doc.lines, f))), $ = R.cursor(p.from + Math.max(0, Math.min(d, p.length))); + let p = a.doc.line(Math.max(1, Math.min(a.doc.lines, f))), $ = Z.cursor(p.from + Math.max(0, Math.min(d, p.length))); t.dispatch({ effects: [Th.of(!1), we.scrollIntoView($.from, { y: "center" })], selection: $ @@ -58339,7 +58339,7 @@ const Obe = /* @__PURE__ */ Mn.fromClass(class { ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } }), lbe = ({ state: t, dispatch: e }) => { - let { selection: n } = t, i = R.create(n.ranges.map((r) => t.wordAt(r.head) || R.cursor(r.head)), n.mainIndex); + let { selection: n } = t, i = Z.create(n.ranges.map((r) => t.wordAt(r.head) || Z.cursor(r.head)), n.mainIndex); return i.eq(n) ? !1 : (e(t.update({ selection: i })), !0); }; function cbe(t, e) { @@ -58369,7 +58369,7 @@ const ube = ({ state: t, dispatch: e }) => { return !1; let r = cbe(t, i); return r ? (e(t.update({ - selection: t.selection.addRange(R.range(r.from, r.to), !1), + selection: t.selection.addRange(Z.range(r.from, r.to), !1), effects: we.scrollIntoView(r.to) })), !0) : !1; }, ks = /* @__PURE__ */ L.define({ @@ -58586,7 +58586,7 @@ const Rh = /* @__PURE__ */ nu((t, { query: e }) => { let { to: n } = t.state.selection.main, i = e.nextMatch(t.state, n, n); if (!i) return !1; - let r = R.single(i.from, i.to), o = t.state.facet(ks); + let r = Z.single(i.from, i.to), o = t.state.facet(ks); return t.dispatch({ selection: r, effects: [h2(t, i), o.scrollToMatch(r.main, t)], @@ -58596,7 +58596,7 @@ const Rh = /* @__PURE__ */ nu((t, { query: e }) => { let { state: n } = t, { from: i } = n.selection.main, r = e.prevMatch(n, i, i); if (!r) return !1; - let o = R.single(r.from, r.to), a = t.state.facet(ks); + let o = Z.single(r.from, r.to), a = t.state.facet(ks); return t.dispatch({ selection: o, effects: [h2(t, r), a.scrollToMatch(o.main, t)], @@ -58605,7 +58605,7 @@ const Rh = /* @__PURE__ */ nu((t, { query: e }) => { }), Qbe = /* @__PURE__ */ nu((t, { query: e }) => { let n = e.matchAll(t.state, 1e3); return !n || !n.length ? !1 : (t.dispatch({ - selection: R.create(n.map((i) => R.range(i.from, i.to))), + selection: Z.create(n.map((i) => Z.range(i.from, i.to))), userEvent: "select.search.matches" }), !0); }), Sbe = ({ state: t, dispatch: e }) => { @@ -58616,10 +58616,10 @@ const Rh = /* @__PURE__ */ nu((t, { query: e }) => { for (let O = new us(t.doc, t.sliceDoc(i, r)); !O.next().done; ) { if (o.length > 1e3) return !1; - O.value.from == i && (a = o.length), o.push(R.range(O.value.from, O.value.to)); + O.value.from == i && (a = o.length), o.push(Z.range(O.value.from, O.value.to)); } return e(t.update({ - selection: R.create(o, a), + selection: Z.create(o, a), userEvent: "select.search.matches" })), !0; }, f9 = /* @__PURE__ */ nu((t, { query: e }) => { @@ -58632,7 +58632,7 @@ const Rh = /* @__PURE__ */ nu((t, { query: e }) => { let a = [], O, s, l = []; if (o.from == i && o.to == r && (s = n.toText(e.getReplacement(o)), a.push({ from: o.from, to: o.to, insert: s }), o = e.nextMatch(n, o.from, o.to), l.push(we.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(i).number) + "."))), o) { let c = a.length == 0 || a[0].from >= o.to ? 0 : o.to - o.from - s.length; - O = R.single(o.from - c, o.to - c), l.push(h2(t, o)), l.push(n.facet(ks).scrollToMatch(O.main, t)); + O = Z.single(o.from - c, o.to - c), l.push(h2(t, o)), l.push(n.facet(ks).scrollToMatch(O.main, t)); } return t.dispatch({ changes: a, @@ -59441,7 +59441,7 @@ function Kbe(t) { basicSetup: b = !0, root: x, initialState: w - } = t, [X, _] = de(), [C, k] = de(), [Z, q] = de(), W = pe.theme({ + } = t, [X, _] = de(), [R, k] = de(), [C, q] = de(), W = pe.theme({ "&": { height: c, minHeight: u, @@ -59470,13 +59470,13 @@ function Kbe(t) { basicSetup: b }), H = [D, W, ...A]; return a && typeof a == "function" && H.push(pe.updateListener.of(a)), H = H.concat(O), qe(() => { - if (X && !Z) { + if (X && !C) { var V = { doc: e, selection: n, extensions: H }, E = w ? ve.fromJSON(w.json, V, w.fields) : ve.create(V); - if (q(E), !C) { + if (q(E), !R) { var G = new pe({ state: E, parent: X, @@ -59486,20 +59486,20 @@ function Kbe(t) { } } return () => { - C && (q(void 0), k(void 0)); + R && (q(void 0), k(void 0)); }; - }, [X, Z]), qe(() => _(t.container), [t.container]), qe(() => () => { - C && (C.destroy(), k(void 0)); - }, [C]), qe(() => { - s && C && C.focus(); - }, [s, C]), qe(() => { - C && C.dispatch({ + }, [X, C]), qe(() => _(t.container), [t.container]), qe(() => () => { + R && (R.destroy(), k(void 0)); + }, [R]), qe(() => { + s && R && R.focus(); + }, [s, R]), qe(() => { + R && R.dispatch({ effects: Qe.reconfigure.of(H) }); }, [l, O, c, u, d, p, $, m, f, Q, S, y, b, i, a]), qe(() => { if (e !== void 0) { - var V = C ? C.state.doc.toString() : ""; - C && e !== V && C.dispatch({ + var V = R ? R.state.doc.toString() : ""; + R && e !== V && R.dispatch({ changes: { from: 0, to: V.length, @@ -59508,10 +59508,10 @@ function Kbe(t) { annotations: [y9.of(!0)] }); } - }, [e, C]), { - state: Z, + }, [e, R]), { + state: C, setState: q, - view: C, + view: R, setView: k, container: X, setContainer: _ @@ -59542,8 +59542,8 @@ var e2e = ["className", "value", "selection", "extensions", "onChange", "onStati readOnly: w, root: X, initialState: _ - } = t, C = j0e(t, e2e), k = _e(null), { - state: Z, + } = t, R = j0e(t, e2e), k = _e(null), { + state: C, view: q, container: W } = Kbe({ @@ -59573,15 +59573,15 @@ var e2e = ["className", "value", "selection", "extensions", "onChange", "onStati }); if (cz(e, () => ({ editor: k.current, - state: Z, + state: C, view: q - }), [k, W, Z, q]), typeof i != "string") + }), [k, W, C, q]), typeof i != "string") throw new Error("value must be typeof string but got " + typeof i); var D = typeof u == "string" ? "cm-theme-" + u : "cm-theme"; return /* @__PURE__ */ h.jsx("div", m0({ ref: k, className: "" + D + (n ? " " + n : "") - }, C)); + }, R)); }); g2.displayName = "CodeMirror"; const t2e = async (t) => { @@ -61633,9 +61633,9 @@ const $2e = ({ additionalTexts: w, noMathText: X = "No result", needSecondaryText: _ = !0, - deletabled: C, + deletabled: R, needSwap: k = !1, - appendToBody: Z = !1, + appendToBody: C = !1, ...q }) => { const W = _e(null), [D, A, H] = F1(!1), [V, E] = de(""), G = F(() => { @@ -61664,7 +61664,7 @@ const $2e = ({ /* @__PURE__ */ h.jsx( H2e, { - deletabled: C, + deletabled: R, hasPlaceholder: Q, intent: f, onChange: p, @@ -61682,12 +61682,12 @@ const $2e = ({ ZV, { containerRef: W, - appendToBody: Z, + appendToBody: C, onClickOutside: H, children: /* @__PURE__ */ h.jsxs( N1, { - sx: L2e(ke(), Z), + sx: L2e(ke(), C), width: N(), maxHeight: c, children: [ @@ -61995,10 +61995,10 @@ const o3e = ({ maxListHeight: w = "150px", needSecondaryText: X = !0, noMatchText: _ = "No result", - searchPlaceholder: C = "Find...", + searchPlaceholder: R = "Find...", ...k }) => { - const Z = _e(null), [q, W, D] = F1(!1), [A, H] = de(""), V = F(() => { + const C = _e(null), [q, W, D] = F1(!1), [A, H] = de(""), V = F(() => { q && W(); }, [q, W]); _V(V); @@ -62012,9 +62012,9 @@ const o3e = ({ return oe.label.toLowerCase().includes(le) || ((hr = oe.additionalText) == null ? void 0 : hr.toLowerCase().includes(le)); }) : n, [A, n]), G = F(() => { a || (q || W(), H("")); - }, [W, a, q]), M = F(() => Z != null && Z.current ? Z.current.offsetHeight + 1 : 33, []), te = F(() => ( + }, [W, a, q]), M = F(() => C != null && C.current ? C.current.offsetHeight + 1 : 33, []), te = F(() => ( // eslint-disable-next-line operator-linebreak - f === k0.fill && Z.current ? `${Z.current.offsetWidth - 2}px` : "max-content" + f === k0.fill && C.current ? `${C.current.offsetWidth - 2}px` : "max-content" ), [f]), $e = F(() => f === k0.fit ? "max-content" : "inherit", [f]), ge = De(() => c ? r && r !== "" ? /* @__PURE__ */ h.jsxs( j, { @@ -62060,13 +62060,13 @@ const o3e = ({ isMulti: i, noDataMessage: d, options: n, - ref: Z, + ref: C, needSecondaryText: X, needSwap: $, children: q && /* @__PURE__ */ h.jsx( ZV, { - containerRef: Z, + containerRef: C, appendToBody: b, onClickOutside: D, children: /* @__PURE__ */ h.jsxs( @@ -62104,7 +62104,7 @@ const o3e = ({ m: "10px", width: "100%", value: A, - placeholder: C, + placeholder: R, onChange: ({ target: oe }) => H(oe.value) } ) @@ -62277,7 +62277,7 @@ function Dr(t, e) { } var $ye = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"]; function VV(t) { - var e = t.defaultInputValue, n = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = t.defaultValue, a = o === void 0 ? null : o, O = t.inputValue, s = t.menuIsOpen, l = t.onChange, c = t.onInputChange, u = t.onMenuClose, d = t.onMenuOpen, f = t.value, p = Dr(t, $ye), $ = de(O !== void 0 ? O : n), m = oo($, 2), Q = m[0], S = m[1], y = de(s !== void 0 ? s : r), b = oo(y, 2), x = b[0], w = b[1], X = de(f !== void 0 ? f : a), _ = oo(X, 2), C = _[0], k = _[1], Z = F(function(E, G) { + var e = t.defaultInputValue, n = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = t.defaultValue, a = o === void 0 ? null : o, O = t.inputValue, s = t.menuIsOpen, l = t.onChange, c = t.onInputChange, u = t.onMenuClose, d = t.onMenuOpen, f = t.value, p = Dr(t, $ye), $ = de(O !== void 0 ? O : n), m = oo($, 2), Q = m[0], S = m[1], y = de(s !== void 0 ? s : r), b = oo(y, 2), x = b[0], w = b[1], X = de(f !== void 0 ? f : a), _ = oo(X, 2), R = _[0], k = _[1], C = F(function(E, G) { typeof l == "function" && l(E, G), k(E); }, [l]), q = F(function(E, G) { var M; @@ -62286,11 +62286,11 @@ function VV(t) { typeof d == "function" && d(), w(!0); }, [d]), D = F(function() { typeof u == "function" && u(), w(!1); - }, [u]), A = O !== void 0 ? O : Q, H = s !== void 0 ? s : x, V = f !== void 0 ? f : C; + }, [u]), A = O !== void 0 ? O : Q, H = s !== void 0 ? s : x, V = f !== void 0 ? f : R; return he(he({}, p), {}, { inputValue: A, menuIsOpen: H, - onChange: Z, + onChange: C, onInputChange: q, onMenuClose: D, onMenuOpen: W, @@ -62751,7 +62751,7 @@ function n5e(t) { }; if (!n || !n.offsetParent) return l; - var c = s.getBoundingClientRect(), u = c.height, d = n.getBoundingClientRect(), f = d.bottom, p = d.height, $ = d.top, m = n.offsetParent.getBoundingClientRect(), Q = m.top, S = a ? window.innerHeight : Iye(s), y = AV(s), b = parseInt(getComputedStyle(n).marginBottom, 10), x = parseInt(getComputedStyle(n).marginTop, 10), w = Q - x, X = S - $, _ = w + y, C = u - y - $, k = f - S + y + b, Z = y + $ - x, q = 160; + var c = s.getBoundingClientRect(), u = c.height, d = n.getBoundingClientRect(), f = d.bottom, p = d.height, $ = d.top, m = n.offsetParent.getBoundingClientRect(), Q = m.top, S = a ? window.innerHeight : Iye(s), y = AV(s), b = parseInt(getComputedStyle(n).marginBottom, 10), x = parseInt(getComputedStyle(n).marginTop, 10), w = Q - x, X = S - $, _ = w + y, R = u - y - $, k = f - S + y + b, C = y + $ - x, q = 160; switch (r) { case "auto": case "bottom": @@ -62760,14 +62760,14 @@ function n5e(t) { placement: "bottom", maxHeight: e }; - if (C >= p && !a) + if (R >= p && !a) return o && Qd(s, k, q), { placement: "bottom", maxHeight: e }; - if (!a && C >= i || a && X >= i) { + if (!a && R >= i || a && X >= i) { o && Qd(s, k, q); - var W = a ? X - b : C - b; + var W = a ? X - b : R - b; return { placement: "bottom", maxHeight: W @@ -62793,13 +62793,13 @@ function n5e(t) { maxHeight: e }; if (_ >= p && !a) - return o && Qd(s, Z, q), { + return o && Qd(s, C, q), { placement: "top", maxHeight: e }; if (!a && _ >= i || a && w >= i) { var H = e; - return (!a && _ >= i || a && w >= i) && (H = a ? w - x : _ - x), o && Qd(s, Z, q), { + return (!a && _ >= i || a && w >= i) && (H = a ? w - x : _ - x), o && Qd(s, C, q), { placement: "top", maxHeight: H }; @@ -62925,9 +62925,9 @@ var DV = function(e) { }; }, []), $ = de(null), m = oo($, 2), Q = m[0], S = m[1], y = F(function() { if (r) { - var X = Mye(r), _ = O === "fixed" ? 0 : window.pageYOffset, C = X[d] + _; - (C !== (Q == null ? void 0 : Q.offset) || X.left !== (Q == null ? void 0 : Q.rect.left) || X.width !== (Q == null ? void 0 : Q.rect.width)) && S({ - offset: C, + var X = Mye(r), _ = O === "fixed" ? 0 : window.pageYOffset, R = X[d] + _; + (R !== (Q == null ? void 0 : Q.offset) || X.left !== (Q == null ? void 0 : Q.rect.left) || X.width !== (Q == null ? void 0 : Q.rect.width)) && S({ + offset: R, rect: X }); } @@ -63556,7 +63556,7 @@ var Qwe = process.env.NODE_ENV === "production" ? { D = w.onFocus(V); } return D; - }, [i, r, u, p, w, o, O]), C = De(function() { + }, [i, r, u, p, w, o, O]), R = De(function() { var D = ""; if (m && Q.length && w.onFilter) { var A = S({ @@ -63582,11 +63582,11 @@ var Qwe = process.env.NODE_ENV === "production" ? { }); } return D; - }, [b, i, r, f, p, $, m, w, O, y]), Z = "".concat(_, " ").concat(C, " ").concat(k), q = ye(Y$, null, ye("span", { + }, [b, i, r, f, p, $, m, w, O, y]), C = "".concat(_, " ").concat(R, " ").concat(k), q = ye(Y$, null, ye("span", { id: "aria-selection" }, X), ye("span", { id: "aria-context" - }, Z)), W = (n == null ? void 0 : n.action) === "initial-input-focus"; + }, C)), W = (n == null ? void 0 : n.action) === "initial-input-focus"; return ye(Y$, null, ye(z9, { id: l }, W && q), ye(z9, { @@ -63908,8 +63908,8 @@ var Cwe = function(e) { function _we(t) { var e = t.isEnabled, n = t.onBottomArrive, i = t.onBottomLeave, r = t.onTopArrive, o = t.onTopLeave, a = _e(!1), O = _e(!1), s = _e(0), l = _e(null), c = F(function(m, Q) { if (l.current !== null) { - var S = l.current, y = S.scrollTop, b = S.scrollHeight, x = S.clientHeight, w = l.current, X = Q > 0, _ = b - x - y, C = !1; - _ > Q && a.current && (i && i(m), a.current = !1), X && O.current && (o && o(m), O.current = !1), X && Q > _ ? (n && !a.current && n(m), w.scrollTop = b, C = !0, a.current = !0) : !X && -Q > y && (r && !O.current && r(m), w.scrollTop = 0, C = !0, O.current = !0), C && Cwe(m); + var S = l.current, y = S.scrollTop, b = S.scrollHeight, x = S.clientHeight, w = l.current, X = Q > 0, _ = b - x - y, R = !1; + _ > Q && a.current && (i && i(m), a.current = !1), X && O.current && (o && o(m), O.current = !1), X && Q > _ ? (n && !a.current && n(m), w.scrollTop = b, R = !0, a.current = !0) : !X && -Q > y && (r && !O.current && r(m), w.scrollTop = 0, R = !0, O.current = !0), R && Cwe(m); } }, [n, i, r, o]), u = F(function(m) { c(m, m.deltaY); @@ -64833,8 +64833,8 @@ var cY = function(e) { } }), S); if (m) - return b.map(function(_, C) { - var k = _ === x, Z = "".concat(r.getOptionLabel(_), "-").concat(r.getOptionValue(_)); + return b.map(function(_, R) { + var k = _ === x, C = "".concat(r.getOptionLabel(_), "-").concat(r.getOptionValue(_)); return /* @__PURE__ */ ue.createElement(a, be({}, d, { components: { Container: O, @@ -64843,8 +64843,8 @@ var cY = function(e) { }, isFocused: k, isDisabled: $, - key: Z, - index: C, + key: C, + index: R, removeProps: { onClick: function() { return r.removeValue(_); @@ -64930,7 +64930,7 @@ var cY = function(e) { }, { key: "renderMenu", value: function() { - var r = this, o = this.getComponents(), a = o.Group, O = o.GroupHeading, s = o.Menu, l = o.MenuList, c = o.MenuPortal, u = o.LoadingMessage, d = o.NoOptionsMessage, f = o.Option, p = this.commonProps, $ = this.state.focusedOption, m = this.props, Q = m.captureMenuScroll, S = m.inputValue, y = m.isLoading, b = m.loadingMessage, x = m.minMenuHeight, w = m.maxMenuHeight, X = m.menuIsOpen, _ = m.menuPlacement, C = m.menuPosition, k = m.menuPortalTarget, Z = m.menuShouldBlockScroll, q = m.menuShouldScrollIntoView, W = m.noOptionsMessage, D = m.onMenuScrollToTop, A = m.onMenuScrollToBottom; + var r = this, o = this.getComponents(), a = o.Group, O = o.GroupHeading, s = o.Menu, l = o.MenuList, c = o.MenuPortal, u = o.LoadingMessage, d = o.NoOptionsMessage, f = o.Option, p = this.commonProps, $ = this.state.focusedOption, m = this.props, Q = m.captureMenuScroll, S = m.inputValue, y = m.isLoading, b = m.loadingMessage, x = m.minMenuHeight, w = m.maxMenuHeight, X = m.menuIsOpen, _ = m.menuPlacement, R = m.menuPosition, k = m.menuPortalTarget, C = m.menuShouldBlockScroll, q = m.menuShouldScrollIntoView, W = m.noOptionsMessage, D = m.onMenuScrollToTop, A = m.onMenuScrollToBottom; if (!X) return null; var H = function(ge, ke) { @@ -64997,7 +64997,7 @@ var cY = function(e) { minMenuHeight: x, maxMenuHeight: w, menuPlacement: _, - menuPosition: C, + menuPosition: R, menuShouldScrollIntoView: q }, te = /* @__PURE__ */ ue.createElement(o5e, be({}, p, M), function($e) { var ge = $e.ref, ke = $e.placerProps, N = ke.placement, oe = ke.maxHeight; @@ -65014,7 +65014,7 @@ var cY = function(e) { captureEnabled: Q, onTopArrive: D, onBottomArrive: A, - lockEnabled: Z + lockEnabled: C }, function(le) { return /* @__PURE__ */ ue.createElement(l, be({}, p, { innerRef: function(Te) { @@ -65026,11 +65026,11 @@ var cY = function(e) { }), V); })); }); - return k || C === "fixed" ? /* @__PURE__ */ ue.createElement(c, be({}, p, { + return k || R === "fixed" ? /* @__PURE__ */ ue.createElement(c, be({}, p, { appendTo: k, controlElement: this.controlRef, menuPlacement: _, - menuPosition: C + menuPosition: R }), te) : te; } }, { @@ -65414,8 +65414,8 @@ function Sxe(t) { * Notify the field context when the help text is rendered on screen, * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea). */ - ref: Tc(_, (C) => { - C && $(!0); + ref: Tc(_, (R) => { + R && $(!0); }) }), [u] @@ -65439,8 +65439,8 @@ function Sxe(t) { * Notify the field context when the error message is rendered on screen, * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea). */ - ref: Tc(_, (C) => { - C && f(!0); + ref: Tc(_, (R) => { + R && f(!0); }), "aria-live": "polite" }), @@ -65924,7 +65924,7 @@ var jxe = function(e) { variant: f, focusBorderColor: p, errorBorderColor: $ - }), b = y.field, x = b.height, w = b.h, X = Exe(b, Gxe), _ = x || w, C = lr({}, X, { + }), b = y.field, x = b.height, w = b.h, X = Exe(b, Gxe), _ = x || w, R = lr({}, X, { position: "relative", display: "flex", alignItems: "center", @@ -65936,7 +65936,7 @@ var jxe = function(e) { minH: _ }, O ? { pointerEvents: "none" - } : {}), k = u != null && u.control ? u.control(C, e) : C; + } : {}), k = u != null && u.control ? u.control(R, e) : R; return /* @__PURE__ */ T.createElement(Ft, lr({ ref: o, className: i({ @@ -66552,9 +66552,9 @@ function xPe(t = {}) { }, [y] ), x = F( - (k = {}, Z = null) => ({ + (k = {}, C = null) => ({ ...k, - ref: Tc(b, Z) + ref: Tc(b, C) }), [b] ), w = F( @@ -66563,9 +66563,9 @@ function xPe(t = {}) { }, [y] ), X = F( - (k = {}, Z = null) => ({ + (k = {}, C = null) => ({ ...k, - ref: Tc(w, Z), + ref: Tc(w, C), style: { ...k.style, position: r, @@ -66574,18 +66574,18 @@ function xPe(t = {}) { } }), [r, w, d] - ), _ = F((k = {}, Z = null) => { + ), _ = F((k = {}, C = null) => { const { size: q, shadowColor: W, bg: D, style: A, ...H } = k; return { ...H, - ref: Z, + ref: C, "data-popper-arrow": "", style: PPe(k) }; - }, []), C = F( - (k = {}, Z = null) => ({ + }, []), R = F( + (k = {}, C = null) => ({ ...k, - ref: Z, + ref: C, "data-popper-arrow-inner": "" }), [] @@ -66604,7 +66604,7 @@ function xPe(t = {}) { popperRef: w, getPopperProps: X, getArrowProps: _, - getArrowInnerProps: C, + getArrowInnerProps: R, getReferenceProps: x }; } @@ -66763,7 +66763,7 @@ function WPe(t = {}) { E.current.add(ge); }, [S]), w = F(() => { c == null || c(), o ? b() : y(); - }, [o, b, y, c]), { isOpen: X, onOpen: _, onClose: C, onToggle: k } = vPe({ + }, [o, b, y, c]), { isOpen: X, onOpen: _, onClose: R, onToggle: k } = vPe({ isOpen: O, defaultIsOpen: s, onClose: l, @@ -66774,10 +66774,10 @@ function WPe(t = {}) { ref: m, handler: (ge) => { var ke; - (ke = Q.current) != null && ke.contains(ge.target) || C(); + (ke = Q.current) != null && ke.contains(ge.target) || R(); } }); - const Z = xPe({ + const C = xPe({ ...$, enabled: X || p, placement: u, @@ -66818,15 +66818,15 @@ function WPe(t = {}) { onTransitionEnd: te, unstable__animationState: D, descendants: S, - popper: Z, + popper: C, buttonId: A, menuId: H, - forceUpdate: Z.forceUpdate, + forceUpdate: C.forceUpdate, orientation: "vertical", isOpen: X, onToggle: k, onOpen: _, - onClose: C, + onClose: R, menuRef: m, buttonRef: Q, focusedIndex: q, @@ -67015,7 +67015,7 @@ var GPe = function(e) { } }, s && S._disabled, s && { _active: {} - }), C = u != null && u.option ? u.option(_, e) : _; + }), R = u != null && u.option ? u.option(_, e) : _; return /* @__PURE__ */ T.createElement(Ft, mi({}, o, { role: "button", className: i({ @@ -67024,7 +67024,7 @@ var GPe = function(e) { "option--is-focused": O, "option--is-selected": l }, n), - sx: C, + sx: R, ref: r, "data-disabled": s ? !0 : void 0, "aria-disabled": s ? !0 : void 0 @@ -67057,17 +67057,17 @@ var MPe = function(e) { size: b, colorScheme: x || Q, variant: w || S || (X ? "solid" : "subtle") - }), C = Ki({}, _.container, { + }), R = Ki({}, _.container, { display: "flex", alignItems: "center", minWidth: 0, // resolves flex/text-overflow bug margin: "0.125rem" - }), k = m != null && m.multiValue ? m.multiValue(C, e) : C, Z = Ki({}, _.label, { + }), k = m != null && m.multiValue ? m.multiValue(R, e) : R, C = Ki({}, _.label, { overflow: "hidden", textOverflow: d || d === void 0 ? "ellipsis" : void 0, whiteSpace: "nowrap" - }), q = m != null && m.multiValueLabel ? m.multiValueLabel(Z, e) : Z, W = Ki({}, _.closeButton, { + }), q = m != null && m.multiValueLabel ? m.multiValueLabel(C, e) : C, W = Ki({}, _.closeButton, { display: "flex", alignItems: "center", justifyContent: "center" @@ -67231,7 +67231,7 @@ function Ove(t, e) { var sve = function(e) { var n, i = e.components, r = i === void 0 ? {} : i; e.theme; - var o = e.size, a = e.colorScheme, O = a === void 0 ? "gray" : a, s = e.isDisabled, l = e.isInvalid, c = e.isReadOnly, u = e.isRequired, d = e.inputId, f = e.tagVariant, p = e.selectedOptionStyle, $ = p === void 0 ? "color" : p, m = e.selectedOptionColorScheme, Q = e.selectedOptionColor, S = e.variant, y = e.focusBorderColor, b = e.errorBorderColor, x = e.chakraStyles, w = x === void 0 ? {} : x, X = e.onFocus, _ = e.onBlur, C = e.menuIsOpen, k = Ove(e, ave), Z = Cs(), q = Z.components.Input.defaultProps.variant, W = wxe({ + var o = e.size, a = e.colorScheme, O = a === void 0 ? "gray" : a, s = e.isDisabled, l = e.isInvalid, c = e.isReadOnly, u = e.isRequired, d = e.inputId, f = e.tagVariant, p = e.selectedOptionStyle, $ = p === void 0 ? "color" : p, m = e.selectedOptionColorScheme, Q = e.selectedOptionColor, S = e.variant, y = e.focusBorderColor, b = e.errorBorderColor, x = e.chakraStyles, w = x === void 0 ? {} : x, X = e.onFocus, _ = e.onBlur, R = e.menuIsOpen, k = Ove(e, ave), C = Cs(), q = C.components.Input.defaultProps.variant, W = wxe({ id: d, isDisabled: s, isInvalid: l, @@ -67239,7 +67239,7 @@ var sve = function(e) { isReadOnly: c, onFocus: X, onBlur: _ - }), D = C ?? (W.readOnly ? !1 : void 0), A = $, H = ["color", "check"]; + }), D = R ?? (W.readOnly ? !1 : void 0), A = $, H = ["color", "check"]; H.includes($) || (A = "color"); var V = m || Q || "blue"; typeof V != "string" && (V = "blue"); @@ -67312,18 +67312,18 @@ var cve = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel } }; function uve(t) { - var e = t.allowCreateWhileLoading, n = e === void 0 ? !1 : e, i = t.createOptionPosition, r = i === void 0 ? "last" : i, o = t.formatCreateLabel, a = o === void 0 ? m$.formatCreateLabel : o, O = t.isValidNewOption, s = O === void 0 ? m$.isValidNewOption : O, l = t.getNewOptionData, c = l === void 0 ? m$.getNewOptionData : l, u = t.onCreateOption, d = t.options, f = d === void 0 ? [] : d, p = t.onChange, $ = Dr(t, cve), m = $.getOptionValue, Q = m === void 0 ? nY : m, S = $.getOptionLabel, y = S === void 0 ? tY : S, b = $.inputValue, x = $.isLoading, w = $.isMulti, X = $.value, _ = $.name, C = De(function() { + var e = t.allowCreateWhileLoading, n = e === void 0 ? !1 : e, i = t.createOptionPosition, r = i === void 0 ? "last" : i, o = t.formatCreateLabel, a = o === void 0 ? m$.formatCreateLabel : o, O = t.isValidNewOption, s = O === void 0 ? m$.isValidNewOption : O, l = t.getNewOptionData, c = l === void 0 ? m$.getNewOptionData : l, u = t.onCreateOption, d = t.options, f = d === void 0 ? [] : d, p = t.onChange, $ = Dr(t, cve), m = $.getOptionValue, Q = m === void 0 ? nY : m, S = $.getOptionLabel, y = S === void 0 ? tY : S, b = $.inputValue, x = $.isLoading, w = $.isMulti, X = $.value, _ = $.name, R = De(function() { return s(b, zh(X), f, { getOptionValue: Q, getOptionLabel: y }) ? c(b, a(b)) : void 0; }, [a, c, y, Q, b, s, f, X]), k = De(function() { - return (n || !x) && C ? r === "first" ? [C].concat(El(f)) : [].concat(El(f), [C]) : f; - }, [n, r, x, C, f]), Z = F(function(q, W) { + return (n || !x) && R ? r === "first" ? [R].concat(El(f)) : [].concat(El(f), [R]) : f; + }, [n, r, x, R, f]), C = F(function(q, W) { if (W.action !== "select-option") return p(q, W); var D = Array.isArray(q) ? q : [q]; - if (D[D.length - 1] === C) { + if (D[D.length - 1] === R) { if (u) u(b); else { @@ -67337,10 +67337,10 @@ function uve(t) { return; } p(q, W); - }, [c, b, w, _, C, u, p, X]); + }, [c, b, w, _, R, u, p, X]); return he(he({}, $), {}, { options: k, - onChange: Z + onChange: C }); } var dve = /* @__PURE__ */ Yn(function(t, e) { @@ -70543,12 +70543,12 @@ const $3e = ({ } = t, y = e.length > 1 && !!e.slice(e.indexOf(o)).length, b = e.includes(o), x = `navigation.${l ? "subItem" : "item"}`, w = c && b && y ? "block" : "none", X = !p && !$, _ = De( () => T.Children.map( c, - (Z) => T.cloneElement(Z, { + (C) => T.cloneElement(C, { isSubItem: !0 }) ), [c] - ), C = F(() => { + ), R = F(() => { d(), n(o); }, [o, n, d]); qe(() => { @@ -70560,7 +70560,7 @@ const $3e = ({ tx: x, variant: EXe(f, b), sx: Il(GXe, Q ?? {}), - onClick: f ? void 0 : C, + onClick: f ? void 0 : R, className: o === "oldui" ? "oldui" : "", ...S, children: [ @@ -70603,7 +70603,7 @@ const $3e = ({ style: { textDecoration: "none" }, - onClick: (Z) => Z.stopPropagation(), + onClick: (C) => C.stopPropagation(), to: m, children: k } @@ -74128,7 +74128,7 @@ var dU = function(e, n, i) { }, []), Q = F(function(w) { var X; if (w = dU(w, c, 1), w === 1) { - var _, C; + var _, R; m(), (_ = p.current) == null || _.enqueue(function(k) { f({ progress: w, @@ -74137,7 +74137,7 @@ var dU = function(e, n, i) { return (q = $.current) == null ? void 0 : q.schedule(k, r); } }); - }), (C = p.current) == null || C.enqueue(function() { + }), (R = p.current) == null || R.enqueue(function() { f({ isFinished: !0, sideEffect: m @@ -74160,10 +74160,10 @@ var dU = function(e, n, i) { }, [d, Q]), y = F(function() { var w = function X() { var _; - S(), (_ = p.current) == null || _.enqueue(function(C) { + S(), (_ = p.current) == null || _.enqueue(function(R) { var k; (k = $.current) == null || k.schedule(function() { - X(), C(); + X(), R(); }, a); }); }; @@ -74471,33 +74471,35 @@ const Y4 = ({ animationDuration: t, progress: e, variant: n }) => /* @__PURE__ * labelPosition: f = "outside", invertLabelPosition: p = !1, isInvalid: $, - errorMessage: m = "", - menuPlacement: Q, - ...S + isDisabled: m, + isLoading: Q, + errorMessage: S = "", + menuPlacement: y, + ...b }) => { - const y = M4e(t) ? t.map((C) => ({ value: C, label: C })) : t, b = (C) => { + const x = M4e(t) ? t.map((C) => ({ value: C, label: C })) : t, w = (C) => { n(C == null ? void 0 : C.value); - }, x = { + }, X = { labelPosition: f, invertLabelPosition: p, label: o }; - let w = "column"; - f === "side" && (w = `row${p ? "-reverse" : ""}`); - const X = u ? XY : vY, _ = u ? { + let _ = "column"; + f === "side" && (_ = `row${p ? "-reverse" : ""}`); + const R = u ? XY : vY, k = u ? { formatCreateLabel: K4e } : {}; return /* @__PURE__ */ h.jsxs( H4, { - isDisabled: r, width: O, display: "flex", alignItems: "baseline", justifyContent: "start", - flexDirection: w, + flexDirection: _, isInvalid: $, - ...S, + isDisabled: r, + ...b, children: [ ["outside", "side"].includes(f) && o && /* @__PURE__ */ h.jsx(J4, { children: /* @__PURE__ */ h.jsx( an, @@ -74515,7 +74517,7 @@ const Y4 = ({ animationDuration: t, progress: e, variant: n }) => /* @__PURE__ * } ) }), /* @__PURE__ */ h.jsx( - X, + R, { isMulti: !1, variant: l, @@ -74524,10 +74526,10 @@ const Y4 = ({ animationDuration: t, progress: e, variant: n }) => /* @__PURE__ * isClearable: d, size: "sm", openMenuOnFocus: !0, - options: y, + options: x, placeholder: o && f === "inline" ? `${o} ${i ?? ""}` : i, - value: y.find((C) => C.value === e), - onChange: b, + value: x.find((C) => C.value === e), + onChange: w, selectedOptionColorScheme: "gray", closeMenuOnSelect: !0, noOptionsMessage: vO( @@ -74538,7 +74540,7 @@ const Y4 = ({ animationDuration: t, progress: e, variant: n }) => /* @__PURE__ * styles: { menuPortal: (C) => ({ ...C, zIndex: 2e3 }) }, - menuPlacement: Q ?? "auto", + menuPlacement: y ?? "auto", chakraStyles: { ...F4e, container: en({ @@ -74559,11 +74561,12 @@ const Y4 = ({ animationDuration: t, progress: e, variant: n }) => /* @__PURE__ * SingleValue: N4e, Option: H4e }, - ...x, - ..._ + isLoading: Q, + ...X, + ...k } ), - m && /* @__PURE__ */ h.jsx(K4, { m: 1, fontSize: "12px", children: m }) + S && /* @__PURE__ */ h.jsx(K4, { m: 1, fontSize: "12px", children: S }) ] } ); @@ -74853,7 +74856,7 @@ export { p3 as l, lt as m, oM as n, - R as o, + Z as o, DJ as p, Qs as q, Ui as r, diff --git a/dist/index-30e836c6.mjs b/dist/index-1f957282.mjs similarity index 99% rename from dist/index-30e836c6.mjs rename to dist/index-1f957282.mjs index c82ee324a..ae523d772 100644 --- a/dist/index-30e836c6.mjs +++ b/dist/index-1f957282.mjs @@ -1,4 +1,4 @@ -import { g as f, L as w, p as v, i as y, c as k, f as x, h as z, a as S, I as q, N as C } from "./index-cfe56674.mjs"; +import { g as f, L as w, p as v, i as y, c as k, f as x, h as z, a as S, I as q, N as C } from "./index-1cd978ce.mjs"; import "./Flex-93c26849.mjs"; import "react"; import "react-dom"; diff --git a/dist/index-aba189ae.mjs b/dist/index-3e17e8a4.mjs similarity index 99% rename from dist/index-aba189ae.mjs rename to dist/index-3e17e8a4.mjs index 7c4ca9818..3fc3cfaed 100644 --- a/dist/index-aba189ae.mjs +++ b/dist/index-3e17e8a4.mjs @@ -1,4 +1,4 @@ -import { i as J, c as ee, f as te, s as ae, t as i, L as re, a as ne, E as ie, b as se, d as oe, e as le, g as ce } from "./index-cfe56674.mjs"; +import { i as J, c as ee, f as te, s as ae, t as i, L as re, a as ne, E as ie, b as se, d as oe, e as le, g as ce } from "./index-1cd978ce.mjs"; import "./Flex-93c26849.mjs"; import "react"; import "react-dom"; diff --git a/dist/index-9bdbca3f.mjs b/dist/index-3e888653.mjs similarity index 99% rename from dist/index-9bdbca3f.mjs rename to dist/index-3e888653.mjs index 222f95daa..efa3dc1d8 100644 --- a/dist/index-9bdbca3f.mjs +++ b/dist/index-3e888653.mjs @@ -1,5 +1,5 @@ -import { D as qe, E as q, s as _e, t as b, b as Ce, n as Ae, L as se, p as Qe, i as oe, c as Ye, f as ie, h as Me, a as ue, g as E, I as Re, N as ze, F as Ze, G as Ee, o as Be } from "./index-cfe56674.mjs"; -import { t as We, j as Ne, a as De, b as B, c as Ge } from "./index-4d20bbe9.mjs"; +import { D as qe, E as q, s as _e, t as b, b as Ce, n as Ae, L as se, p as Qe, i as oe, c as Ye, f as ie, h as Me, a as ue, g as E, I as Re, N as ze, F as Ze, G as Ee, o as Be } from "./index-1cd978ce.mjs"; +import { t as We, j as Ne, a as De, b as B, c as Ge } from "./index-5feb2974.mjs"; import "./Flex-93c26849.mjs"; import "react"; import "react-dom"; diff --git a/dist/index-4d20bbe9.mjs b/dist/index-5feb2974.mjs similarity index 99% rename from dist/index-4d20bbe9.mjs rename to dist/index-5feb2974.mjs index 13bec7445..f3af56c5f 100644 --- a/dist/index-4d20bbe9.mjs +++ b/dist/index-5feb2974.mjs @@ -1,4 +1,4 @@ -import { g as b, H as ne, S as F, r as oe, u as ie, G as $, R as le, J as re, x as ae, K as k, M as se, o as T, O as ce, Q as j, W as fe, L as pe, U as me, i as de, c as I, V as ue, X as he, f as ge, h as ye, Y as V, a as be, I as we, y as xe, N as Se } from "./index-cfe56674.mjs"; +import { g as b, H as ne, S as F, r as oe, u as ie, G as $, R as le, J as re, x as ae, K as k, M as se, o as T, O as ce, Q as j, W as fe, L as pe, U as me, i as de, c as I, V as ue, X as he, f as ge, h as ye, Y as V, a as be, I as we, y as xe, N as Se } from "./index-1cd978ce.mjs"; class Ye { /** Create a new completion context. (Mostly useful for testing diff --git a/dist/index.mjs b/dist/index.mjs index aee394eac..23a839c8b 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,5 +1,5 @@ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.link-button:focus-visible{outline:none}.link-button:focus-visible>span{box-shadow:0 0 0 2px #21b18299;text-decoration:none}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid rgba(0,0,0,0);height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:#0000;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -import { bn as r, bo as b, bu as i, bq as l, am as n, bp as d, br as u, a6 as p, a7 as m, a8 as c, a0 as g, a2 as B, a1 as C, a5 as T, a9 as S, a3 as x, ao as v, bf as y, aa as I, aD as w, aE as P, bt as h, aL as D, aN as f, ab as k, ac as G, ad as R, aw as E, b1 as F, b2 as L, bm as N, aI as H, aX as M, _ as V, $ as O, ae as j, aU as A, bx as U, ai as $, af as q, b4 as z, b8 as K, b7 as W, aj as Y, ag as Z, al as _, an as J, a4 as Q, ap as X, bc as aa, ar as sa, as as ea, aq as oa, ak as ta, bb as ra, aP as ba, aR as ia, aT as la, aQ as na, aS as da, at as ua, aO as pa, aF as ma, aK as ca, bw as ga, aB as Ba, aC as Ca, aH as Ta, b3 as Sa, aY as xa, a$ as va, aZ as ya, a_ as Ia, au as wa, av as Pa, by as ha, aG as Da, bl as fa, be as ka, bd as Ga, ba as Ra, bh as Ea, bi as Fa, b0 as La, b6 as Na, bv as Ha, ax as Ma, aM as Va, b9 as Oa, ay as ja, az as Aa, aA as Ua, Z as $a, bs as qa, b5 as za, bk as Ka, bj as Wa, ah as Ya, bz as Za, aV as _a, aW as Ja, bg as Qa, aJ as Xa } from "./index-cfe56674.mjs"; +import { bn as r, bo as b, bu as i, bq as l, am as n, bp as d, br as u, a6 as p, a7 as m, a8 as c, a0 as g, a2 as B, a1 as C, a5 as T, a9 as S, a3 as x, ao as v, bf as y, aa as I, aD as w, aE as P, bt as h, aL as D, aN as f, ab as k, ac as G, ad as R, aw as E, b1 as F, b2 as L, bm as N, aI as H, aX as M, _ as V, $ as O, ae as j, aU as A, bx as U, ai as $, af as q, b4 as z, b8 as K, b7 as W, aj as Y, ag as Z, al as _, an as J, a4 as Q, ap as X, bc as aa, ar as sa, as as ea, aq as oa, ak as ta, bb as ra, aP as ba, aR as ia, aT as la, aQ as na, aS as da, at as ua, aO as pa, aF as ma, aK as ca, bw as ga, aB as Ba, aC as Ca, aH as Ta, b3 as Sa, aY as xa, a$ as va, aZ as ya, a_ as Ia, au as wa, av as Pa, by as ha, aG as Da, bl as fa, be as ka, bd as Ga, ba as Ra, bh as Ea, bi as Fa, b0 as La, b6 as Na, bv as Ha, ax as Ma, aM as Va, b9 as Oa, ay as ja, az as Aa, aA as Ua, Z as $a, bs as qa, b5 as za, bk as Ka, bj as Wa, ah as Ya, bz as Za, aV as _a, aW as Ja, bg as Qa, aJ as Xa } from "./index-1cd978ce.mjs"; import { G as ss, aK as es, $ as os, Y as ts, p as rs, u as bs } from "./Flex-93c26849.mjs"; import "react"; import "react-router-dom"; diff --git a/dist/src/components/single-select/index.d.ts b/dist/src/components/single-select/index.d.ts index 4729b11eb..3274c2371 100644 --- a/dist/src/components/single-select/index.d.ts +++ b/dist/src/components/single-select/index.d.ts @@ -38,11 +38,13 @@ export type Props = ParentProps & CleanBoxProps & Conditionals & { labelPosition?: 'side' | 'inline' | 'outside'; invertLabelPosition?: boolean; isInvalid?: boolean; + isDisabled?: boolean; + isLoading?: boolean; errorMessage?: ReactNode; intent?: Intents; customFilter?: React.ReactNode; bottomActionText?: string; bottomActionHandler?: () => void; }; -export declare const SingleSelect: ({ options: rawOptions, value, onChange, placeholder, disabled, label, labelAction, width, maxListHeight, variant, noDataMessage, editable, isClearable, labelPosition, invertLabelPosition, isInvalid, errorMessage, menuPlacement, ...props }: Props) => import("react/jsx-runtime").JSX.Element; +export declare const SingleSelect: ({ options: rawOptions, value, onChange, placeholder, disabled, label, labelAction, width, maxListHeight, variant, noDataMessage, editable, isClearable, labelPosition, invertLabelPosition, isInvalid, isDisabled, isLoading, errorMessage, menuPlacement, ...props }: Props) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/src/components/single-select/index.tsx b/src/components/single-select/index.tsx index 9420db9fa..62f9b3a0a 100644 --- a/src/components/single-select/index.tsx +++ b/src/components/single-select/index.tsx @@ -69,6 +69,8 @@ export type Props = ParentProps & labelPosition?: 'side' | 'inline' | 'outside'; invertLabelPosition?: boolean; isInvalid?: boolean; + isDisabled?: boolean; + isLoading?: boolean; errorMessage?: ReactNode; // out of scope rn @@ -99,6 +101,8 @@ export const SingleSelect = ({ labelPosition = 'outside', invertLabelPosition = false, isInvalid, + isDisabled, + isLoading, errorMessage = '', menuPlacement, ...props @@ -135,13 +139,13 @@ export const SingleSelect = ({ return ( {['outside', 'side'].includes(labelPosition) && label && ( @@ -209,6 +213,7 @@ export const SingleSelect = ({ Option, } as any } + isLoading={isLoading} // Additional customization can be added here // {...props} {...labelProps}