Skip to content

Instantly share code, notes, and snippets.

@acheong08
Last active September 1, 2023 09:17
Show Gist options
  • Save acheong08/3b527f5391097026079bb599f54a5227 to your computer and use it in GitHub Desktop.
Save acheong08/3b527f5391097026079bb599f54a5227 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
137c137
< 9357: (e) => {
---
> 9514: (e) => {
1096c1096
< (r.text = n(9514)),
---
> (r.text = n(1274)),
1104c1104
< var i = n(9514);
---
> var i = n(1274);
1109c1109
< 9514: (e, t, n) => {
---
> 1274: (e, t, n) => {
1248,1249c1248,1249
< x = c ? 0 : 3,
< E = c ? 1 : 2,
---
> E = c ? 0 : 3,
> x = c ? 1 : 2,
1353c1353
< (e[t + E] = 255 & n),
---
> (e[t + x] = 255 & n),
1355c1355
< (e[t + x] = 255 & n);
---
> (e[t + E] = 255 & n);
1359,1360c1359,1360
< 16777216 * e[t + x] +
< (e[t + E] << 16) +
---
> 16777216 * e[t + E] +
> (e[t + x] << 16) +
2132d2131
< x,
2133a2133
> x,
2152,2154c2152,2154
< _ = t.warningContext,
< j = t.position,
< W = t.indent || [],
---
> W = t.warningContext,
> _ = t.position,
> j = t.indent || [],
2158,2160c2158,2160
< X = j.column || 1,
< Z = j.line || 1,
< $ = "",
---
> X = _.column || 1,
> $ = _.line || 1,
> Z = "",
2163c2163
< (I = J()), (E = z ? ee : h), K--, G++;
---
> (I = J()), (x = z ? ee : h), K--, G++;
2165c2165
< if ((10 === k && (X = W[Y] || 1), 38 === (k = e.charCodeAt(K)))) {
---
> if ((10 === k && (X = j[Y] || 1), 38 === (k = e.charCodeAt(K)))) {
2167,2174c2167,2174
< 9 === (x = e.charCodeAt(K + 1)) ||
< 10 === x ||
< 12 === x ||
< 32 === x ||
< 38 === x ||
< 60 === x ||
< x != x ||
< (N && x === N)
---
> 9 === (E = e.charCodeAt(K + 1)) ||
> 10 === E ||
> 12 === E ||
> 32 === E ||
> 38 === E ||
> 60 === E ||
> E != E ||
> (N && E === N)
2176c2176
< ($ += u(k)), X++;
---
> (Z += u(k)), X++;
2182c2182
< 35 === x
---
> 35 === E
2184c2184
< 88 === (x = e.charCodeAt(B)) || 120 === x
---
> 88 === (E = e.charCodeAt(B)) || 120 === E
2193c2193
< ++B < G && P((x = e.charCodeAt(B)));
---
> ++B < G && P((E = e.charCodeAt(B)));
2196c2196
< (p += u(x)), L === d && c.call(i, p) && ((n = p), (T = i[p]));
---
> (p += u(E)), L === d && c.call(i, p) && ((n = p), (T = i[p]));
2204c2204
< ? E(5, 1)
---
> ? x(5, 1)
2210,2212c2210,2212
< ? 61 === (x = e.charCodeAt(B))
< ? (E(S, F), (T = null))
< : s(x)
---
> ? 61 === (E = e.charCodeAt(B))
> ? (x(S, F), (T = null))
> : s(E)
2214,2215c2214,2215
< : E(S, F)
< : E(S, F))),
---
> : x(S, F)
> : x(S, F))),
2217c2217
< : (a || E(2, F),
---
> : (a || x(2, F),
2219c2219
< ? (E(7, F), (C = u(65533)))
---
> ? (x(7, F), (C = u(65533)))
2221c2221
< ? (E(6, F), (C = r[C]))
---
> ? (x(6, F), (C = r[C]))
2223c2223
< w(C) && E(6, F),
---
> w(C) && x(6, F),
2228c2228
< : L !== d && E(4, F)),
---
> : L !== d && x(4, F)),
2240c2240
< ($ += p),
---
> (Z += p),
2244,2245c2244,2245
< 10 === k && (Z++, Y++, (X = 0)),
< k == k ? (($ += u(k)), X++) : te();
---
> 10 === k && ($++, Y++, (X = 0)),
> k == k ? ((Z += u(k)), X++) : te();
2248c2248
< return { line: Z, column: X, offset: K + (j.offset || 0) };
---
> return { line: $, column: X, offset: K + (_.offset || 0) };
2252c2252
< (n.column += t), (n.offset += t), z.call(_, y[e], n, e);
---
> (n.column += t), (n.offset += t), z.call(W, y[e], n, e);
2255,2258c2255,2258
< $ &&
< (Q.push($),
< H && H.call(q, $, { start: I, end: J() }),
< ($ = ""));
---
> Z &&
> (Q.push(Z),
> H && H.call(q, Z, { start: I, end: J() }),
> (Z = ""));
7716,7718c7716,7718
< x = 0;
< x < 10;
< x++
---
> E = 0;
> E < 10;
> E++
7720c7720
< if ("break" === C(x)) break;
---
> if ("break" === C(E)) break;
7722c7722
< var E = [].concat.apply(
---
> var x = [].concat.apply(
7733c7733
< return new r.default().encode(E);
---
> return new r.default().encode(x);
8094c8094
< return "number" != typeof e.length || Z(e.length) ? s(0) : p(e);
---
> return "number" != typeof e.length || $(e.length) ? s(0) : p(e);
8229c8229
< Z((n = +n)) && (n = r ? 0 : e.length - 1),
---
> $((n = +n)) && (n = r ? 0 : e.length - 1),
8296c8296
< if (Z(i)) return a;
---
> if ($(i)) return a;
8316c8316
< function x(e, t, n, i) {
---
> function E(e, t, n, i) {
8319c8319
< function E(e, t, n, i) {
---
> function x(e, t, n, i) {
8663c8663
< return x(this, e, t, n);
---
> return E(this, e, t, n);
8668c8668
< return E(this, e, t, n);
---
> return x(this, e, t, n);
8697c8697
< for (let i = t; i < n; ++i) r += $[e[i]];
---
> for (let i = t; i < n; ++i) r += Z[e[i]];
8851c8851
< _((e >>>= 0), "offset");
---
> W((e >>>= 0), "offset");
8854c8854
< (void 0 !== t && void 0 !== n) || j(e, this.length - 8);
---
> (void 0 !== t && void 0 !== n) || _(e, this.length - 8);
8861c8861
< _((e >>>= 0), "offset");
---
> W((e >>>= 0), "offset");
8864c8864
< (void 0 !== t && void 0 !== n) || j(e, this.length - 8);
---
> (void 0 !== t && void 0 !== n) || _(e, this.length - 8);
8924c8924
< _((e >>>= 0), "offset");
---
> W((e >>>= 0), "offset");
8927c8927
< (void 0 !== t && void 0 !== n) || j(e, this.length - 8);
---
> (void 0 !== t && void 0 !== n) || _(e, this.length - 8);
8938c8938
< _((e >>>= 0), "offset");
---
> W((e >>>= 0), "offset");
8941c8941
< (void 0 !== t && void 0 !== n) || j(e, this.length - 8);
---
> (void 0 !== t && void 0 !== n) || _(e, this.length - 8);
9290c9290
< _(t, "offset"),
---
> W(t, "offset"),
9292c9292
< j(t, e.length - (n + 1));
---
> _(t, e.length - (n + 1));
9295c9295
< function _(e, t) {
---
> function W(e, t) {
9299c9299
< function j(e, t, n) {
---
> function _(e, t, n) {
9302c9302
< (_(e, n), new V.ERR_OUT_OF_RANGE(n || "offset", "an integer", e))
---
> (W(e, n), new V.ERR_OUT_OF_RANGE(n || "offset", "an integer", e))
9347c9347
< const W = /[^+/0-9A-Za-z-_]/g;
---
> const j = /[^+/0-9A-Za-z-_]/g;
9399c9399
< if ((e = (e = e.split("=")[0]).trim().replace(W, "")).length < 2)
---
> if ((e = (e = e.split("=")[0]).trim().replace(j, "")).length < 2)
9421c9421
< function Z(e) {
---
> function $(e) {
9424c9424
< const $ = (function () {
---
> const Z = (function () {
9929,9932c9929,9932
< x = [],
< E = 0;
< for (; E < w && (" " === (a = t.charAt(E)) || "\t" === a); ) E++;
< if (">" !== t.charAt(E)) return;
---
> E = [],
> x = 0;
> for (; x < w && (" " === (a = t.charAt(x)) || "\t" === a); ) x++;
> if (">" !== t.charAt(x)) return;
9934c9934
< E = 0;
---
> x = 0;
9937c9937
< for (; E < w; ) {
---
> for (; x < w; ) {
9939,9940c9939,9940
< l = t.indexOf("\n", E), h = E, p = !1, -1 === l && (l = w);
< E < w && (" " === (a = t.charAt(E)) || "\t" === a);
---
> l = t.indexOf("\n", x), h = x, p = !1, -1 === l && (l = w);
> x < w && (" " === (a = t.charAt(x)) || "\t" === a);
9943c9943
< E++;
---
> x++;
9945,9948c9945,9948
< (">" === t.charAt(E)
< ? (E++, (p = !0), " " === t.charAt(E) && E++)
< : (E = h),
< (c = t.slice(E, l)),
---
> (">" === t.charAt(x)
> ? (x++, (p = !0), " " === t.charAt(x) && x++)
> : (x = h),
> (c = t.slice(x, l)),
9951c9951
< E = h;
---
> x = h;
9954c9954
< if (!p && ((s = t.slice(E)), r(v, g, f, [e, s, !0]))) break;
---
> if (!p && ((s = t.slice(x)), r(v, g, f, [e, s, !0]))) break;
9969c9969
< (E += D), (c = c.substr(D)).trim() && (M = !0);
---
> (x += D), (c = c.substr(D)).trim() && (M = !0);
9972,9973c9972,9973
< (u = h === E ? c : t.slice(h, l)),
< x.push(E - h),
---
> (u = h === x ? c : t.slice(h, l)),
> E.push(x - h),
9976c9976
< (E = l + 1);
---
> (x = l + 1);
9978,9979c9978,9979
< (E = -1), (w = x.length), (o = e(k.join("\n")));
< for (; ++E < w; ) (m[b] = (m[b] || 0) + x[E]), b++;
---
> (x = -1), (w = E.length), (o = e(k.join("\n")));
> for (; ++x < w; ) (m[b] = (m[b] || 0) + E[x]), b++;
10025c10025
< x = "";
---
> E = "";
10027c10027
< for (; C < k && ((l = r.charAt(C)) === i || l === n); ) (x += l), C++;
---
> for (; C < k && ((l = r.charAt(C)) === i || l === n); ) (E += l), C++;
10029,10030c10029,10030
< C++, (s = l), (a = 1), (x += l);
< for (; C < k && (l = r.charAt(C)) === s; ) (x += l), a++, C++;
---
> C++, (s = l), (a = 1), (E += l);
> for (; C < k && (l = r.charAt(C)) === s; ) (E += l), a++, C++;
10032c10032
< for (; C < k && ((l = r.charAt(C)) === i || l === n); ) (x += l), C++;
---
> for (; C < k && ((l = r.charAt(C)) === i || l === n); ) (E += l), C++;
10038,10040c10038,10040
< ((y = e.now()).column += x.length),
< (y.offset += x.length),
< (x += c),
---
> ((y = e.now()).column += E.length),
> (y.offset += E.length),
> (E += c),
10042c10042
< p && (x += p);
---
> p && (E += p);
10044c10044
< var E = !0;
---
> var x = !0;
10055c10055
< E ? ((x += l), (E = !1)) : ((m += l), (g += l)), p = "", C++;
---
> x ? ((E += l), (x = !1)) : ((m += l), (g += l)), p = "", C++;
10069c10069
< (x += d + m), (C = -1), (k = c.length);
---
> (E += d + m), (C = -1), (k = c.length);
10076c10076
< return e(x)({
---
> return e(E)({
10575,10576c10575,10576
< x = new RegExp("^</?(" + C + ")(?=(\\s|/?>|$))", "i"),
< E = t.length,
---
> E = new RegExp("^</?(" + C + ")(?=(\\s|/?>|$))", "i"),
> x = t.length,
10584c10584
< [x, f, !0],
---
> [E, f, !0],
10587c10587
< for (; S < E && ("\t" === (y = t.charAt(S)) || " " === y); ) S++;
---
> for (; S < x && ("\t" === (y = t.charAt(S)) || " " === y); ) S++;
10589c10589
< (i = -1 === (i = t.indexOf("\n", S + 1)) ? E : i),
---
> (i = -1 === (i = t.indexOf("\n", S + 1)) ? x : i),
10601c10601
< for (; S < E; ) {
---
> for (; S < x; ) {
10603c10603
< ((i = -1 === (i = t.indexOf("\n", S + 1)) ? E : i),
---
> ((i = -1 === (i = t.indexOf("\n", S + 1)) ? x : i),
10680d10679
< x,
10681a10681
> x,
10795c10795
< (E = {
---
> (x = {
10801,10805c10801,10805
< ? (E.alt = S.decode.raw(S.unescape(m), C) || null)
< : ((x = S.enterLink()),
< (E.children = S.tokenizeInline(m, C)),
< x()),
< e(M)(E))
---
> ? (x.alt = S.decode.raw(S.unescape(m), C) || null)
> : ((E = S.enterLink()),
> (x.children = S.tokenizeInline(m, C)),
> E()),
> e(M)(x))
10833d10832
< x,
10834a10834
> x,
10870c10870
< (H = 0), (x = []), (E = []), (S = []);
---
> (H = 0), (E = []), (x = []), (S = []);
10929c10929
< (M.value = M.value.concat(S, w)), (E = E.concat(S, w)), (S = []);
---
> (M.value = M.value.concat(S, w)), (x = x.concat(S, w)), (S = []);
10934,10935c10934,10935
< x.push(M),
< (E = E.concat(S, w)),
---
> E.push(M),
> (x = x.concat(S, w)),
10943c10943
< (M.value = M.value.concat(S, w)), (E = E.concat(S, w)), (S = []);
---
> (M.value = M.value.concat(S, w)), (x = x.concat(S, w)), (S = []);
10947c10947
< (A = e(E.join(u)).reset({
---
> (A = e(x.join(u)).reset({
10957c10957
< (V = x.length);
---
> (V = E.length);
10959c10959
< (M = x[H].value.join(u)),
---
> (M = E[H].value.join(u)),
10962c10962
< (M = x[H].trail.join(u)),
---
> (M = E[H].trail.join(u)),
11117d11116
< x = "",
11118a11118
> x = "",
11122c11122
< ("!" === w && ((S = "image"), (E = w), (w = t.charAt(++k))),
---
> ("!" === w && ((S = "image"), (x = w), (w = t.charAt(++k))),
11125c11125
< for (k++, E += w, m = "", v = 0; k < C; ) {
---
> for (k++, x += w, m = "", v = 0; k < C; ) {
11133,11134c11133,11134
< if (((x = m), (r = m), (w = t.charAt(k)) === u)) {
< if ((k++, (x += w), (m = ""), !b))
---
> if (((E = m), (r = m), (w = t.charAt(k)) === u)) {
> if ((k++, (E += w), (m = ""), !b))
11146c11146
< (x += m),
---
> (E += m),
11154c11154
< (x = E + x),
---
> (E = x + E),
11158,11159c11158,11159
< (((p = e.now()).column += E.length),
< (p.offset += E.length),
---
> (((p = e.now()).column += x.length),
> (p.offset += x.length),
11171c11171
< e(x)(d))
---
> e(E)(d))
11234c11234
< var a, s, l, c, u, h, p, d, f, m, g, v, y, b, w, k, C, x, E, S, M, T;
---
> var a, s, l, c, u, h, p, d, f, m, g, v, y, b, w, k, C, E, x, S, M, T;
11272,11273c11272,11273
< (x = []),
< (E = e(c).reset({ type: "table", align: g, children: x }));
---
> (E = []),
> (x = e(c).reset({ type: "table", align: g, children: E }));
11279c11279
< e(C).reset(u, E),
---
> e(C).reset(u, x),
11321c11321
< return E;
---
> return x;
11408,11409c11408,11409
< x = C.options.gfm,
< E = C.inlineTokenizers,
---
> E = C.options.gfm,
> x = C.inlineTokenizers,
11413c11413
< if (x) {
---
> if (E) {
11462c11462
< (C.inlineTokenizers = { text: E.text }),
---
> (C.inlineTokenizers = { text: x.text }),
11464c11464
< (C.inlineTokenizers = E),
---
> (C.inlineTokenizers = x),
11554c11554
< function x() {
---
> function E() {
11573c11573
< function E(e, r) {
---
> function x(e, r) {
11590c11590
< n = x(),
---
> n = E(),
11603c11603
< return n(E(n(e), i), t);
---
> return n(x(n(e), i), t);
11693c11693
< var i = n(9357);
---
> var i = n(9514);
11766,11778c11766,11778
< DefaultBufferLength: () => pn,
< IterMode: () => bn,
< MountedTree: () => gn,
< NodeProp: () => mn,
< NodeSet: () => wn,
< NodeType: () => yn,
< NodeWeakMap: () => zn,
< Parser: () => Un,
< Tree: () => xn,
< TreeBuffer: () => Sn,
< TreeCursor: () => Fn,
< TreeFragment: () => qn,
< parseMixed: () => jn,
---
> DefaultBufferLength: () => Bn,
> IterMode: () => Un,
> MountedTree: () => Vn,
> NodeProp: () => Hn,
> NodeSet: () => Wn,
> NodeType: () => qn,
> NodeWeakMap: () => ci,
> Parser: () => hi,
> Tree: () => Gn,
> TreeBuffer: () => Yn,
> TreeCursor: () => ii,
> TreeFragment: () => ui,
> parseMixed: () => di,
11783,11811c11783,11811
< Annotation: () => cr,
< AnnotationType: () => ur,
< ChangeDesc: () => Si,
< ChangeSet: () => Mi,
< CharCategory: () => kr,
< Compartment: () => $i,
< EditorSelection: () => Fi,
< EditorState: () => Er,
< Facet: () => Ri,
< Line: () => ui,
< MapMode: () => Ei,
< Prec: () => Xi,
< Range: () => Tr,
< RangeSet: () => Lr,
< RangeSetBuilder: () => Pr,
< RangeValue: () => Mr,
< SelectionRange: () => Oi,
< StateEffect: () => pr,
< StateEffectType: () => hr,
< StateField: () => _i,
< Text: () => ni,
< Transaction: () => dr,
< codePointAt: () => wi,
< codePointSize: () => Ci,
< combineConfig: () => Sr,
< countColumn: () => Ur,
< findClusterBreak: () => mi,
< findColumn: () => _r,
< fromCodePoint: () => ki,
---
> Annotation: () => Ir,
> AnnotationType: () => Or,
> ChangeDesc: () => Yi,
> ChangeSet: () => Xi,
> CharCategory: () => _r,
> Compartment: () => wr,
> EditorSelection: () => ir,
> EditorState: () => Kr,
> Facet: () => ar,
> Line: () => Oi,
> MapMode: () => Ki,
> Prec: () => yr,
> Range: () => $r,
> RangeSet: () => Jr,
> RangeSetBuilder: () => eo,
> RangeValue: () => Xr,
> SelectionRange: () => nr,
> StateEffect: () => Br,
> StateEffectType: () => Fr,
> StateField: () => pr,
> Text: () => Si,
> Transaction: () => Nr,
> codePointAt: () => Wi,
> codePointSize: () => ji,
> combineConfig: () => Yr,
> countColumn: () => ho,
> findClusterBreak: () => Hi,
> findColumn: () => po,
> fromCodePoint: () => _i,
11816,11858c11816,11858
< BidiSpan: () => os,
< BlockInfo: () => sl,
< BlockType: () => sa,
< Decoration: () => la,
< Direction: () => ja,
< EditorView: () => jl,
< GutterMarker: () => Eu,
< MatchDecorator: () => Mc,
< RectangleMarker: () => rc,
< ViewPlugin: () => Fa,
< ViewUpdate: () => _a,
< WidgetType: () => aa,
< __test: () => eh,
< closeHoverTooltips: () => mu,
< crosshairCursor: () => Xc,
< drawSelection: () => fc,
< dropCursor: () => Ec,
< getPanel: () => bu,
< getTooltip: () => pu,
< gutter: () => Du,
< gutterLineClass: () => Su,
< gutters: () => Lu,
< hasHoverTooltips: () => du,
< highlightActiveLine: () => Hc,
< highlightActiveLineGutter: () => Ku,
< highlightSpecialChars: () => Ic,
< highlightTrailingWhitespace: () => Ju,
< highlightWhitespace: () => $u,
< hoverTooltip: () => hu,
< keymap: () => Ql,
< layer: () => hc,
< lineNumberMarkers: () => Hu,
< lineNumbers: () => _u,
< logException: () => La,
< panels: () => yu,
< placeholder: () => Uc,
< rectangularSelection: () => Gc,
< repositionTooltips: () => gu,
< runScopeHandlers: () => tc,
< scrollPastEnd: () => Rc,
< showPanel: () => xu,
< showTooltip: () => ou,
< tooltips: () => Qc,
---
> BidiSpan: () => Ds,
> BlockInfo: () => Ll,
> BlockType: () => La,
> Decoration: () => Pa,
> Direction: () => ds,
> EditorView: () => dc,
> GutterMarker: () => Ku,
> MatchDecorator: () => Xc,
> RectangleMarker: () => Tc,
> ViewPlugin: () => is,
> ViewUpdate: () => ps,
> WidgetType: () => Aa,
> __test: () => Eh,
> closeHoverTooltips: () => Hu,
> crosshairCursor: () => yu,
> drawSelection: () => Rc,
> dropCursor: () => Kc,
> getPanel: () => Uu,
> getTooltip: () => Bu,
> gutter: () => Zu,
> gutterLineClass: () => Yu,
> gutters: () => Ju,
> hasHoverTooltips: () => Nu,
> highlightActiveLine: () => su,
> highlightActiveLineGutter: () => gh,
> highlightSpecialChars: () => tu,
> highlightTrailingWhitespace: () => Ch,
> highlightWhitespace: () => wh,
> hoverTooltip: () => Fu,
> keymap: () => kc,
> layer: () => Fc,
> lineNumberMarkers: () => sh,
> lineNumbers: () => ph,
> logException: () => Ja,
> panels: () => qu,
> placeholder: () => hu,
> rectangularSelection: () => mu,
> repositionTooltips: () => Vu,
> runScopeHandlers: () => xc,
> scrollPastEnd: () => au,
> showPanel: () => Gu,
> showTooltip: () => Du,
> tooltips: () => ku,
11863,11868c11863,11868
< Tag: () => nh,
< classHighlighter: () => Lh,
< highlightTree: () => hh,
< styleTags: () => ah,
< tagHighlighter: () => ch,
< tags: () => Ah,
---
> Tag: () => Sh,
> classHighlighter: () => Jh,
> highlightTree: () => Fh,
> styleTags: () => Ah,
> tagHighlighter: () => Ih,
> tags: () => Qh,
11873,11928c11873,11928
< HighlightStyle: () => Wp,
< IndentContext: () => op,
< LRLanguage: () => Nh,
< Language: () => Fh,
< LanguageDescription: () => Qh,
< LanguageSupport: () => $h,
< ParseContext: () => jh,
< StreamLanguage: () => vd,
< StringStream: () => fd,
< TreeIndentContext: () => up,
< bracketMatching: () => sd,
< bracketMatchingHandle: () => ld,
< codeFolding: () => Vp,
< continuedIndent: () => mp,
< defaultHighlightStyle: () => Jp,
< defineLanguageFacet: () => Ih,
< delimitedIndent: () => pp,
< ensureSyntaxTree: () => Hh,
< flatIndent: () => fp,
< foldAll: () => Ip,
< foldCode: () => Ap,
< foldEffect: () => Cp,
< foldGutter: () => _p,
< foldInside: () => bp,
< foldKeymap: () => Np,
< foldNodeProp: () => yp,
< foldService: () => vp,
< foldState: () => Sp,
< foldable: () => wp,
< foldedRanges: () => Mp,
< forceParsing: () => zh,
< getIndentUnit: () => tp,
< getIndentation: () => ip,
< highlightingFor: () => Zp,
< ignoreSpellcheckToken: () => Ld,
< indentNodeProp: () => ap,
< indentOnInput: () => gp,
< indentRange: () => rp,
< indentService: () => Jh,
< indentString: () => np,
< indentUnit: () => ep,
< language: () => Zh,
< languageDataProp: () => Ph,
< lineClassNodeProp: () => Td,
< lineHighlighter: () => Ad,
< matchBrackets: () => hd,
< sublanguageProp: () => Oh,
< syntaxHighlighting: () => Xp,
< syntaxParserRunning: () => qh,
< syntaxTree: () => Rh,
< syntaxTreeAvailable: () => Vh,
< toggleFold: () => Bp,
< tokenClassNodeProp: () => Md,
< unfoldAll: () => Op,
< unfoldCode: () => Lp,
< unfoldEffect: () => xp,
---
> HighlightStyle: () => fd,
> IndentContext: () => Dp,
> LRLanguage: () => op,
> Language: () => ip,
> LanguageDescription: () => kp,
> LanguageSupport: () => wp,
> ParseContext: () => dp,
> StreamLanguage: () => zd,
> StringStream: () => Rd,
> TreeIndentContext: () => Op,
> bracketMatching: () => Ld,
> bracketMatchingHandle: () => Pd,
> codeFolding: () => ld,
> continuedIndent: () => Hp,
> defaultHighlightStyle: () => Cd,
> defineLanguageFacet: () => tp,
> delimitedIndent: () => Bp,
> ensureSyntaxTree: () => sp,
> flatIndent: () => Rp,
> foldAll: () => td,
> foldCode: () => Qp,
> foldEffect: () => jp,
> foldGutter: () => pd,
> foldInside: () => Up,
> foldKeymap: () => od,
> foldNodeProp: () => qp,
> foldService: () => zp,
> foldState: () => Yp,
> foldable: () => Wp,
> foldedRanges: () => Xp,
> forceParsing: () => cp,
> getIndentUnit: () => xp,
> getIndentation: () => Mp,
> highlightingFor: () => bd,
> ignoreSpellcheckToken: () => Jd,
> indentNodeProp: () => Ap,
> indentOnInput: () => Vp,
> indentRange: () => Tp,
> indentService: () => Cp,
> indentString: () => Sp,
> indentUnit: () => Ep,
> language: () => bp,
> languageDataProp: () => ep,
> lineClassNodeProp: () => $d,
> lineHighlighter: () => Qd,
> matchBrackets: () => Fd,
> sublanguageProp: () => np,
> syntaxHighlighting: () => yd,
> syntaxParserRunning: () => up,
> syntaxTree: () => ap,
> syntaxTreeAvailable: () => lp,
> toggleFold: () => rd,
> tokenClassNodeProp: () => Xd,
> unfoldAll: () => nd,
> unfoldCode: () => Jp,
> unfoldEffect: () => Gp,
11933,12030c11933,12030
< blockComment: () => Uw,
< blockUncomment: () => _w,
< copyLineDown: () => sx,
< copyLineUp: () => ax,
< cursorCharBackward: () => Ak,
< cursorCharForward: () => Dk,
< cursorCharLeft: () => Mk,
< cursorCharRight: () => Tk,
< cursorDocEnd: () => BC,
< cursorDocStart: () => FC,
< cursorGroupBackward: () => Fk,
< cursorGroupForward: () => Ok,
< cursorGroupLeft: () => Pk,
< cursorGroupRight: () => Ik,
< cursorLineBoundaryBackward: () => Qk,
< cursorLineBoundaryForward: () => $k,
< cursorLineBoundaryLeft: () => Jk,
< cursorLineBoundaryRight: () => eC,
< cursorLineDown: () => Wk,
< cursorLineEnd: () => nC,
< cursorLineStart: () => tC,
< cursorLineUp: () => jk,
< cursorMatchingBracket: () => rC,
< cursorPageDown: () => Xk,
< cursorPageUp: () => Yk,
< cursorSubwordBackward: () => Hk,
< cursorSubwordForward: () => Rk,
< cursorSyntaxLeft: () => qk,
< cursorSyntaxRight: () => Uk,
< defaultKeymap: () => wx,
< deleteCharBackward: () => WC,
< deleteCharForward: () => GC,
< deleteGroupBackward: () => YC,
< deleteGroupForward: () => XC,
< deleteLine: () => lx,
< deleteToLineEnd: () => ZC,
< deleteToLineStart: () => $C,
< deleteTrailingWhitespace: () => QC,
< emacsStyleKeymap: () => yx,
< history: () => Jw,
< historyField: () => ek,
< historyKeymap: () => bk,
< indentLess: () => gx,
< indentMore: () => mx,
< indentSelection: () => fx,
< indentWithTab: () => kx,
< insertBlankLine: () => hx,
< insertNewline: () => cx,
< insertNewlineAndIndent: () => ux,
< insertTab: () => vx,
< invertedEffects: () => Zw,
< isolateHistory: () => Xw,
< lineComment: () => Vw,
< lineUncomment: () => zw,
< moveLineDown: () => rx,
< moveLineUp: () => ix,
< redo: () => ik,
< redoDepth: () => lk,
< redoSelection: () => ok,
< selectAll: () => HC,
< selectCharBackward: () => hC,
< selectCharForward: () => uC,
< selectCharLeft: () => lC,
< selectCharRight: () => cC,
< selectDocEnd: () => RC,
< selectDocStart: () => NC,
< selectGroupBackward: () => gC,
< selectGroupForward: () => mC,
< selectGroupLeft: () => dC,
< selectGroupRight: () => fC,
< selectLine: () => VC,
< selectLineBoundaryBackward: () => AC,
< selectLineBoundaryForward: () => DC,
< selectLineBoundaryLeft: () => LC,
< selectLineBoundaryRight: () => PC,
< selectLineDown: () => EC,
< selectLineEnd: () => OC,
< selectLineStart: () => IC,
< selectLineUp: () => xC,
< selectMatchingBracket: () => oC,
< selectPageDown: () => TC,
< selectPageUp: () => MC,
< selectParentSyntax: () => zC,
< selectSubwordBackward: () => bC,
< selectSubwordForward: () => yC,
< selectSyntaxLeft: () => wC,
< selectSyntaxRight: () => kC,
< simplifySelection: () => qC,
< splitLine: () => JC,
< standardKeymap: () => bx,
< toggleBlockComment: () => qw,
< toggleBlockCommentByLine: () => jw,
< toggleComment: () => Nw,
< toggleLineComment: () => Hw,
< transposeChars: () => ex,
< undo: () => nk,
< undoDepth: () => sk,
< undoSelection: () => rk,
---
> blockComment: () => om,
> blockUncomment: () => am,
> copyLineDown: () => xv,
> copyLineUp: () => Ev,
> cursorCharBackward: () => Gm,
> cursorCharForward: () => jm,
> cursorCharLeft: () => Wm,
> cursorCharRight: () => _m,
> cursorDocEnd: () => Qg,
> cursorDocStart: () => Zg,
> cursorGroupBackward: () => Zm,
> cursorGroupForward: () => $m,
> cursorGroupLeft: () => Ym,
> cursorGroupRight: () => Xm,
> cursorLineBoundaryBackward: () => mg,
> cursorLineBoundaryForward: () => fg,
> cursorLineBoundaryLeft: () => gg,
> cursorLineBoundaryRight: () => vg,
> cursorLineDown: () => lg,
> cursorLineEnd: () => bg,
> cursorLineStart: () => yg,
> cursorLineUp: () => sg,
> cursorMatchingBracket: () => kg,
> cursorPageDown: () => pg,
> cursorPageUp: () => hg,
> cursorSubwordBackward: () => tg,
> cursorSubwordForward: () => eg,
> cursorSyntaxLeft: () => rg,
> cursorSyntaxRight: () => og,
> defaultKeymap: () => Rv,
> deleteCharBackward: () => lv,
> deleteCharForward: () => cv,
> deleteGroupBackward: () => hv,
> deleteGroupForward: () => pv,
> deleteLine: () => Sv,
> deleteToLineEnd: () => dv,
> deleteToLineStart: () => fv,
> deleteTrailingWhitespace: () => mv,
> emacsStyleKeymap: () => Bv,
> history: () => gm,
> historyField: () => vm,
> historyKeymap: () => Nm,
> indentLess: () => Ov,
> indentMore: () => Iv,
> indentSelection: () => Pv,
> indentWithTab: () => Hv,
> insertBlankLine: () => Dv,
> insertNewline: () => Mv,
> insertNewlineAndIndent: () => Tv,
> insertTab: () => Fv,
> invertedEffects: () => dm,
> isolateHistory: () => pm,
> lineComment: () => nm,
> lineUncomment: () => im,
> moveLineDown: () => kv,
> moveLineUp: () => wv,
> redo: () => wm,
> redoDepth: () => Sm,
> redoSelection: () => Cm,
> selectAll: () => tv,
> selectCharBackward: () => Dg,
> selectCharForward: () => Tg,
> selectCharLeft: () => Sg,
> selectCharRight: () => Mg,
> selectDocEnd: () => ev,
> selectDocStart: () => Jg,
> selectGroupBackward: () => Og,
> selectGroupForward: () => Ig,
> selectGroupLeft: () => Lg,
> selectGroupRight: () => Pg,
> selectLine: () => nv,
> selectLineBoundaryBackward: () => Gg,
> selectLineBoundaryForward: () => jg,
> selectLineBoundaryLeft: () => Kg,
> selectLineBoundaryRight: () => Yg,
> selectLineDown: () => qg,
> selectLineEnd: () => $g,
> selectLineStart: () => Xg,
> selectLineUp: () => zg,
> selectMatchingBracket: () => Cg,
> selectPageDown: () => _g,
> selectPageUp: () => Wg,
> selectParentSyntax: () => iv,
> selectSubwordBackward: () => Ng,
> selectSubwordForward: () => Bg,
> selectSyntaxLeft: () => Rg,
> selectSyntaxRight: () => Hg,
> simplifySelection: () => rv,
> splitLine: () => gv,
> standardKeymap: () => Nv,
> toggleBlockComment: () => rm,
> toggleBlockCommentByLine: () => sm,
> toggleComment: () => Jf,
> toggleLineComment: () => tm,
> transposeChars: () => vv,
> undo: () => bm,
> undoDepth: () => xm,
> undoSelection: () => km,
12035,12053c12035,12053
< RegExpCursor: () => Dx,
< SearchCursor: () => Sx,
< SearchQuery: () => Xx,
< closeSearchPanel: () => CE,
< findNext: () => dE,
< findPrevious: () => fE,
< getSearchQuery: () => aE,
< gotoLine: () => Nx,
< highlightSelectionMatches: () => zx,
< openSearchPanel: () => kE,
< replaceAll: () => yE,
< replaceNext: () => vE,
< search: () => Yx,
< searchKeymap: () => xE,
< searchPanelOpen: () => sE,
< selectMatches: () => mE,
< selectNextOccurrence: () => Gx,
< selectSelectionMatches: () => gE,
< setSearchQuery: () => iE,
---
> RegExpCursor: () => jv,
> SearchCursor: () => Uv,
> SearchQuery: () => py,
> closeSearchPanel: () => qy,
> findNext: () => Ly,
> findPrevious: () => Py,
> getSearchQuery: () => Ey,
> gotoLine: () => Jv,
> highlightSelectionMatches: () => iy,
> openSearchPanel: () => zy,
> replaceAll: () => By,
> replaceNext: () => Fy,
> search: () => hy,
> searchKeymap: () => Uy,
> searchPanelOpen: () => xy,
> selectMatches: () => Iy,
> selectNextOccurrence: () => cy,
> selectSelectionMatches: () => Oy,
> setSearchQuery: () => wy,
12058,12085c12058,12085
< CompletionContext: () => mV,
< acceptCompletion: () => XV,
< autocompletion: () => Gz,
< clearSnippet: () => dz,
< closeBrackets: () => Lz,
< closeBracketsKeymap: () => Rz,
< closeCompletion: () => $V,
< completeAnyWord: () => Sz,
< completeFromList: () => vV,
< completionKeymap: () => Kz,
< completionStatus: () => Xz,
< currentCompletions: () => $z,
< deleteBracketPair: () => Nz,
< ifIn: () => yV,
< ifNotIn: () => bV,
< insertBracket: () => Hz,
< insertCompletionText: () => EV,
< moveCompletionSelection: () => YV,
< nextSnippetField: () => fz,
< pickedCompletion: () => xV,
< prevSnippetField: () => mz,
< selectedCompletion: () => Qz,
< selectedCompletionIndex: () => Jz,
< setSelectedCompletion: () => eq,
< snippet: () => hz,
< snippetCompletion: () => bz,
< snippetKeymap: () => vz,
< startCompletion: () => ZV,
---
> CompletionContext: () => Xz,
> acceptCompletion: () => Aq,
> autocompletion: () => MU,
> clearSnippet: () => Kq,
> closeBrackets: () => uU,
> closeBracketsKeymap: () => vU,
> closeCompletion: () => Pq,
> completeAnyWord: () => oU,
> completeFromList: () => Zz,
> completionKeymap: () => TU,
> completionStatus: () => AU,
> currentCompletions: () => PU,
> deleteBracketPair: () => gU,
> ifIn: () => Qz,
> ifNotIn: () => Jz,
> insertBracket: () => yU,
> insertCompletionText: () => rq,
> moveCompletionSelection: () => Dq,
> nextSnippetField: () => Yq,
> pickedCompletion: () => iq,
> prevSnippetField: () => Xq,
> selectedCompletion: () => IU,
> selectedCompletionIndex: () => OU,
> setSelectedCompletion: () => FU,
> snippet: () => jq,
> snippetCompletion: () => Jq,
> snippetKeymap: () => Zq,
> startCompletion: () => Lq,
12090,12094c12090,12094
< collab: () => aq,
< getClientID: () => uq,
< getSyncedVersion: () => cq,
< receiveUpdates: () => sq,
< sendableUpdates: () => lq,
---
> collab: () => zU,
> getClientID: () => _U,
> getSyncedVersion: () => WU,
> receiveUpdates: () => qU,
> sendableUpdates: () => UU,
12099,12109c12099,12109
< closeLintPanel: () => Mq,
< diagnosticCount: () => kq,
< forEachDiagnostic: () => $q,
< forceLinting: () => Iq,
< lintGutter: () => Zq,
< lintKeymap: () => Dq,
< linter: () => Pq,
< nextDiagnostic: () => Tq,
< openLintPanel: () => Sq,
< setDiagnostics: () => gq,
< setDiagnosticsEffect: () => vq,
---
> closeLintPanel: () => aW,
> diagnosticCount: () => tW,
> forEachDiagnostic: () => PW,
> forceLinting: () => pW,
> lintGutter: () => LW,
> lintKeymap: () => lW,
> linter: () => hW,
> nextDiagnostic: () => sW,
> openLintPanel: () => oW,
> setDiagnostics: () => $U,
> setDiagnosticsEffect: () => ZU,
12114,12118c12114,12118
< ContextTracker: () => wU,
< ExternalTokenizer: () => sU,
< InputStream: () => oU,
< LRParser: () => kU,
< Stack: () => Jq,
---
> ContextTracker: () => e_,
> ExternalTokenizer: () => qW,
> InputStream: () => VW,
> LRParser: () => t_,
> Stack: () => OW,
12123,12164c12123,12166
< AbstractTextComponent: () => jI,
< App: () => VJ,
< BaseComponent: () => VI,
< ButtonComponent: () => qI,
< ColorComponent: () => $I,
< Component: () => lf,
< DropdownComponent: () => XI,
< EditableFileView: () => vI,
< Editor: () => Ow,
< EditorSuggest: () => ag,
< Events: () => ug,
< ExtraButtonComponent: () => UI,
< FileManager: () => zj,
< FileSystemAdapter: () => Ud,
< FileView: () => mI,
< FuzzySuggestModal: () => Zj,
< HoverPopover: () => u_,
< ItemView: () => hI,
< Keymap: () => bm,
< MarkdownPreviewRenderer: () => GA,
< MarkdownPreviewSection: () => UA,
< MarkdownPreviewView: () => wP,
< MarkdownRenderChild: () => qA,
< MarkdownRenderer: () => vP,
< MarkdownSourceView: () => JU,
< MarkdownView: () => QW,
< Menu: () => rg,
< MenuItem: () => ng,
< MenuSeparator: () => ig,
< MetadataCache: () => KU,
< Modal: () => EU,
< MomentFormatComponent: () => YI,
< Notice: () => fI,
< Platform: () => ct,
< Plugin: () => MW,
< PluginSettingTab: () => TW,
< PopoverState: () => $U,
< PopoverSuggest: () => wm,
< Scope: () => vm,
< Setting: () => HI,
< SettingTab: () => Sj,
< SliderComponent: () => ZI,
---
> AbstractTextComponent: () => mO,
> App: () => K0,
> BaseComponent: () => uO,
> ButtonComponent: () => pO,
> ColorComponent: () => EO,
> Component: () => xb,
> DropdownComponent: () => wO,
> EditableFileView: () => zI,
> Editor: () => $f,
> EditorSuggest: () => vB,
> Events: () => rb,
> ExtraButtonComponent: () => dO,
> FileManager: () => jB,
> FileSystemAdapter: () => pf,
> FileView: () => HI,
> FuzzySuggestModal: () => $j,
> HoverPopover: () => W_,
> ItemView: () => FI,
> Keymap: () => Iw,
> MarkdownPreviewRenderer: () => HA,
> MarkdownPreviewSection: () => OA,
> MarkdownPreviewView: () => NP,
> MarkdownRenderChild: () => IA,
> MarkdownRenderer: () => OP,
> MarkdownSourceView: () => I_,
> MarkdownView: () => JG,
> Menu: () => Bw,
> MenuItem: () => Ow,
> MenuSeparator: () => Fw,
> MetadataCache: () => M_,
> Modal: () => jI,
> MomentFormatComponent: () => bO,
> Notice: () => RI,
> Platform: () => St,
> Plugin: () => MG,
> PluginSettingTab: () => TG,
> PopoverState: () => L_,
> PopoverSuggest: () => fB,
> ProgressBarComponent: () => kO,
> Scope: () => Lw,
> SearchComponent: () => vO,
> Setting: () => cO,
> SettingTab: () => zj,
> SliderComponent: () => CO,
12166,12239c12168,12242
< TAbstractFile: () => XE,
< TFile: () => $E,
< TFolder: () => QE,
< TextAreaComponent: () => KI,
< TextComponent: () => WI,
< TextFileView: () => e_,
< ToggleComponent: () => _I,
< ValueComponent: () => zI,
< Vault: () => JE,
< View: () => uI,
< ViewRegistry: () => L_,
< Workspace: () => gW,
< WorkspaceContainer: () => nj,
< WorkspaceFloating: () => hW,
< WorkspaceItem: () => Q_,
< WorkspaceLeaf: () => aj,
< WorkspaceParent: () => J_,
< WorkspaceRibbon: () => cW,
< WorkspaceRoot: () => uW,
< WorkspaceSidedock: () => tj,
< WorkspaceSplit: () => ej,
< WorkspaceTabs: () => rj,
< WorkspaceWindow: () => pW,
< addIcon: () => Cf,
< apiVersion: () => PJ,
< arrayBufferToBase64: () => q,
< arrayBufferToHex: () => G,
< base64ToArrayBuffer: () => z,
< debounce: () => qe,
< editorEditorField: () => BP,
< editorInfoField: () => RP,
< editorLivePreviewField: () => HP,
< editorViewField: () => NP,
< finishRenderMath: () => TA,
< fuzzySearch: () => Im,
< getAllTags: () => xS,
< getBlobArrayBuffer: () => We,
< getIcon: () => wf,
< getIconIds: () => Ef,
< getLinkpath: () => bS,
< hexToArrayBuffer: () => W,
< htmlToMarkdown: () => NE,
< iterateCacheRefs: () => kS,
< iterateRefs: () => CS,
< livePreviewState: () => iF,
< loadMathJax: () => kA,
< loadMermaid: () => vA,
< loadPdfJs: () => dA,
< loadPrism: () => bA,
< moment: () => tF,
< normalizePath: () => he,
< parseFrontMatterAliases: () => Jb,
< parseFrontMatterEntry: () => $b,
< parseFrontMatterStringArray: () => Qb,
< parseFrontMatterTags: () => ew,
< parseLinktext: () => wS,
< parseYaml: () => JO,
< prepareFuzzySearch: () => Am,
< prepareQuery: () => Dm,
< prepareSimpleSearch: () => Nm,
< removeIcon: () => xf,
< renderMatches: () => Hm,
< renderMath: () => CA,
< renderResults: () => Rm,
< request: () => v_,
< requestUrl: () => g_,
< requireApiVersion: () => OJ,
< resolveSubpath: () => DS,
< sanitizeHTMLToDom: () => OM,
< setIcon: () => kf,
< sortSearchResults: () => Om,
< stringifyYaml: () => eF,
< stripHeading: () => MS,
< stripHeadingForLink: () => TS,
---
> TAbstractFile: () => mb,
> TFile: () => vb,
> TFolder: () => yb,
> TextAreaComponent: () => yO,
> TextComponent: () => gO,
> TextFileView: () => O_,
> ToggleComponent: () => fO,
> ValueComponent: () => hO,
> Vault: () => bb,
> View: () => OI,
> ViewRegistry: () => ej,
> Workspace: () => gG,
> WorkspaceContainer: () => Dj,
> WorkspaceFloating: () => hG,
> WorkspaceItem: () => xj,
> WorkspaceLeaf: () => Ij,
> WorkspaceParent: () => Sj,
> WorkspaceRibbon: () => cG,
> WorkspaceRoot: () => uG,
> WorkspaceSidedock: () => Tj,
> WorkspaceSplit: () => Mj,
> WorkspaceTabs: () => Lj,
> WorkspaceWindow: () => pG,
> addIcon: () => Hb,
> apiVersion: () => V0,
> arrayBufferToBase64: () => ee,
> arrayBufferToHex: () => oe,
> base64ToArrayBuffer: () => J,
> debounce: () => et,
> editorEditorField: () => ZP,
> editorInfoField: () => JP,
> editorLivePreviewField: () => eI,
> editorViewField: () => QP,
> finishRenderMath: () => yA,
> fuzzySearch: () => sL,
> getAllTags: () => aS,
> getBlobArrayBuffer: () => rt,
> getIcon: () => Nb,
> getIconIds: () => zb,
> getLinkpath: () => tS,
> hexToArrayBuffer: () => re,
> htmlToMarkdown: () => tb,
> iterateCacheRefs: () => iS,
> iterateRefs: () => oS,
> livePreviewState: () => MF,
> loadMathJax: () => pA,
> loadMermaid: () => lA,
> loadPdfJs: () => nA,
> loadPrism: () => uA,
> moment: () => pI,
> normalizePath: () => xe,
> parseFrontMatterAliases: () => Bx,
> parseFrontMatterEntry: () => Ox,
> parseFrontMatterStringArray: () => Fx,
> parseFrontMatterTags: () => Nx,
> parseLinktext: () => nS,
> parseYaml: () => uI,
> prepareFuzzySearch: () => rL,
> prepareQuery: () => iL,
> prepareSimpleSearch: () => hL,
> removeIcon: () => Vb,
> renderMatches: () => dL,
> renderMath: () => dA,
> renderResults: () => pL,
> request: () => hn,
> requestUrl: () => un,
> requireApiVersion: () => q0,
> resolveSubpath: () => hS,
> sanitizeHTMLToDom: () => IM,
> setIcon: () => Rb,
> setTooltip: () => TS,
> sortSearchResults: () => lL,
> stringifyYaml: () => hI,
> stripHeading: () => cS,
> stripHeadingForLink: () => uS,
12485c12488
< function x(e) {
---
> function E(e) {
12516c12519
< const E = ((e) =>
---
> const x = ((e) =>
12544c12547
< E.addPlatform, E.setPlatform;
---
> x.addPlatform, x.setPlatform;
12781c12784,12824
< function B(e) {
---
> var B, N;
> !(function (e) {
> (e.Documents = "DOCUMENTS"),
> (e.Data = "DATA"),
> (e.Cache = "CACHE"),
> (e.External = "EXTERNAL"),
> (e.ExternalStorage = "EXTERNAL_STORAGE");
> })(B || (B = {})),
> (function (e) {
> (e.UTF8 = "utf8"), (e.ASCII = "ascii"), (e.UTF16 = "utf16");
> })(N || (N = {}));
> var R = window.Capacitor && "web" !== A.getPlatform(),
> H = !!R && "ios" === A.getPlatform(),
> V = !!R && "android" === A.getPlatform(),
> z = R ? L("App") : null,
> q = (R && L("Clipboard"), R ? L("Filesystem") : null),
> U = (R && L("SplashScreen"), R ? L("StatusBar") : null),
> W = R ? L("Device") : null,
> _ = R ? L("KeepAwake") : null,
> j = R ? L("Keyboard") : null,
> G = (R && L("Haptics"), []);
> function K() {
> if (0 === G.length)
> try {
> _.keepAwake().catch(console.error);
> } catch (e) {
> console.error(e);
> }
> var e = {
> release: function () {
> if ((G.remove(e), 0 === G.length))
> try {
> _.allowSleep().catch(console.error);
> } catch (e) {
> console.error(e);
> }
> },
> };
> return G.push(e), e;
> }
> function Y(e) {
12784c12827
< function N(e) {
---
> function X(e) {
12787c12830
< function R(e) {
---
> function $(e) {
12790,12791c12833,12834
< function H(e) {
< return R(new TextEncoder().encode(e));
---
> function Z(e) {
> return $(new TextEncoder().encode(e));
12793c12836
< function V(e) {
---
> function Q(e) {
12796c12839
< function z(e) {
---
> function J(e) {
12805,12806c12848,12849
< function q(e) {
< return U(new Uint8Array(e));
---
> function ee(e) {
> return te(new Uint8Array(e));
12808c12851
< function U(e) {
---
> function te(e) {
12813c12856
< function _(e) {
---
> function ne(e) {
12819c12862
< return (t = G), [4, j(e)];
---
> return (t = oe), [4, ie(e)];
12826c12869
< function j(e) {
---
> function ie(e) {
12833c12876
< function W(e) {
---
> function re(e) {
12845c12888
< function G(e) {
---
> function oe(e) {
12852,12854c12895,12900
< var K = "AES-GCM";
< function Y(e) {
< return crypto.subtle.importKey("raw", e, K, !1, ["encrypt", "decrypt"]);
---
> var ae = "AES-GCM";
> function se(e) {
> return crypto.subtle.importKey("raw", e, ae, !1, [
> "encrypt",
> "decrypt",
> ]);
12856c12902
< function X(e, t, n) {
---
> function le(e, t, n) {
12864c12910
< [4, crypto.subtle.encrypt({ name: K, iv: n }, t, e)]
---
> [4, crypto.subtle.encrypt({ name: ae, iv: n }, t, e)]
12878c12924
< function Z(e, t) {
---
> function ce(e, t) {
12889c12935
< [4, crypto.subtle.decrypt({ name: K, iv: n }, t, i)]);
---
> [4, crypto.subtle.decrypt({ name: ae, iv: n }, t, i)]);
12896,12898c12942,12944
< var $ = 32768,
< Q = { N: $, r: 8, p: 1, maxmem: 67108864 };
< function J(e, t) {
---
> var ue = 32768,
> he = { N: ue, r: 8, p: 1, maxmem: 67108864 };
> function pe(e, t) {
12915c12961
< Q,
---
> he,
12925c12971
< return [2, B(i.sent())];
---
> return [2, Y(i.sent())];
12930,12932c12976,12978
< new Uint8Array(H(e)),
< new Uint8Array(H(t)),
< $,
---
> new Uint8Array(Z(e)),
> new Uint8Array(Z(t)),
> ue,
12939c12985
< return [2, R(i.sent())];
---
> return [2, $(i.sent())];
12944c12990
< function ee(e) {
---
> function de(e) {
12982c13028
< var te =
---
> var fe =
12984,12985c13030,13031
< var ne = /\u00A0/g;
< function ie(e) {
---
> var me = /\u00A0/g;
> function ge(e) {
12989c13035
< function re(e) {
---
> function ve(e) {
12993c13039
< function oe(e) {
---
> function ye(e) {
12995,12996c13041,13042
< if (ie(e).startsWith(".")) return !0;
< e = re(e);
---
> if (ge(e).startsWith(".")) return !0;
> e = ve(e);
13000,13001c13046,13047
< function ae(e) {
< var t = ie(e),
---
> function be(e) {
> var t = ge(e),
13005c13051
< function se(e) {
---
> function we(e) {
13009c13055
< function le(e) {
---
> function ke(e) {
13015c13061
< function ce(e, t) {
---
> function Ce(e, t) {
13018,13019c13064,13065
< function ue(e, t) {
< return le(e) === t;
---
> function Ee(e, t) {
> return ke(e) === t;
13021,13022c13067,13068
< function he(e) {
< return ((t = pe(e)), t.replace(ne, " ")).normalize("NFC");
---
> function xe(e) {
> return ((t = Se(e)), t.replace(me, " ")).normalize("NFC");
13025c13071
< function pe(e) {
---
> function Se(e) {
13033,13042c13079,13088
< function de(e) {
< var t = ie(e);
< return "md" === le(t) ? ae(t) : t;
< }
< function fe(e) {
< return "md" === le(ie(e)) ? se(e) : e;
< }
< var me,
< ge =
< -1 !== (me = navigator.appVersion).indexOf("Win")
---
> function Me(e) {
> var t = ge(e);
> return "md" === ke(t) ? be(t) : t;
> }
> function Te(e) {
> return "md" === ke(ge(e)) ? we(e) : e;
> }
> var De,
> Ae =
> -1 !== (De = navigator.appVersion).indexOf("Win")
13044c13090
< : -1 !== me.indexOf("Mac")
---
> : -1 !== De.indexOf("Mac")
13046c13092
< : -1 !== me.indexOf("X11") || -1 !== me.indexOf("Linux")
---
> : -1 !== De.indexOf("X11") || -1 !== De.indexOf("Linux")
13049,13057c13095,13103
< ve = navigator.userAgent.toLowerCase(),
< ye = "MacOS" === ge,
< be = "Windows" === ge,
< we = "Linux" === ge,
< ke = ve.indexOf("firefox") > -1,
< Ce = /^((?!chrome|android).)*safari/i.test(ve),
< xe = /android/i.test(ve);
< function Ee(e) {
< return ye && 0 === e.button && e.ctrlKey;
---
> Le = navigator.userAgent.toLowerCase(),
> Pe = "MacOS" === Ae,
> Ie = "Windows" === Ae,
> Oe = "Linux" === Ae,
> Fe = Le.indexOf("firefox") > -1,
> Be = /^((?!chrome|android).)*safari/i.test(Le),
> Ne = /android/i.test(Le);
> function Re(e) {
> return Pe && 0 === e.button && e.ctrlKey;
13059c13105
< var Se = {
---
> var He = {
13066,13067c13112,13113
< Me = new WeakMap(),
< Te = (function () {
---
> Ve = new WeakMap(),
> ze = (function () {
13090c13136
< function De(e, t) {
---
> function qe(e, t) {
13093c13139
< function Ae(e) {
---
> function Ue(e) {
13096,13097c13142,13143
< for (var i in Se)
< if (Se.hasOwnProperty(i)) {
---
> for (var i in He)
> if (He.hasOwnProperty(i)) {
13106,13108c13152,13154
< function Le(e, t) {
< var n = Me.get(e);
< Me.delete(e),
---
> function We(e, t) {
> var n = Ve.get(e);
> Ve.delete(e),
13111c13157
< De(e, n.props.end),
---
> qe(e, n.props.end),
13116,13118c13162,13164
< var Pe = null;
< function Ie(e, t, n) {
< Le(e), De(e, t.from);
---
> var _e = null;
> function je(e, t, n) {
> We(e), qe(e, t.from);
13122c13168
< return Le(e);
---
> return We(e);
13128,13130c13174,13176
< Me.set(e, i);
< null === Pe &&
< ((Pe = []),
---
> Ve.set(e, i);
> null === _e &&
> ((_e = []),
13133,13134c13179,13180
< var e = Pe;
< Pe = null;
---
> var e = _e;
> _e = null;
13139c13185
< Pe.push(function () {
---
> _e.push(function () {
13141c13187
< De(e, t.to),
---
> qe(e, t.to),
13148c13194
< function Oe(e) {
---
> function Ge(e) {
13151,13153c13197,13199
< Le(e);
< var n = Ae(e),
< i = new Te({
---
> We(e);
> var n = Ue(e),
> i = new ze({
13159c13205
< Ie(e, i, t);
---
> je(e, i, t);
13163c13209
< function Fe(e) {
---
> function Ke(e) {
13166,13168c13212,13214
< Le(e);
< var n = Ae(e),
< i = new Te({
---
> We(e);
> var n = Ue(e),
> i = new ze({
13174c13220
< Ie(e, i, t);
---
> je(e, i, t);
13178c13224
< function Be(e, t, n) {
---
> function Ye(e, t, n) {
13183c13229
< return Le(e), t ? (n ? [4, Fe(e)] : [3, 2]) : [3, 3];
---
> return We(e), t ? (n ? [4, Ke(e)] : [3, 2]) : [3, 3];
13189c13235
< return e.show(), n ? [4, Oe(e)] : [3, 5];
---
> return e.show(), n ? [4, Ge(e)] : [3, 5];
13198c13244
< function Ne(e, t, n, i) {
---
> function Xe(e, t, n, i) {
13203c13249
< return n ? (i ? [4, Fe(e)] : [3, 2]) : [3, 3];
---
> return n ? (i ? [4, Ke(e)] : [3, 2]) : [3, 3];
13209c13255
< return e.show(), t.appendChild(e), i ? [4, Oe(e)] : [3, 5];
---
> return e.show(), t.appendChild(e), i ? [4, Ge(e)] : [3, 5];
13218,13220c13264,13266
< var Re = function () {};
< function He(e, t, n, i) {
< i = i || Re;
---
> var $e = function () {};
> function Ze(e, t, n, i) {
> i = i || $e;
13226c13272
< Le(o[r]);
---
> We(o[r]);
13234c13280
< Ie(
---
> je(
13236c13282
< new Te({ duration: 300, fn: "ease-out" }).addProp(
---
> new ze({ duration: 300, fn: "ease-out" }).addProp(
13243c13289
< Ie(
---
> je(
13245c13291
< new Te({ duration: 300, fn: "ease-out" }).addProp(
---
> new ze({ duration: 300, fn: "ease-out" }).addProp(
13256c13302
< Ie(
---
> je(
13258c13304
< new Te({ duration: 300, fn: "ease-out" }).addProp(
---
> new ze({ duration: 300, fn: "ease-out" }).addProp(
13268c13314
< Ie(
---
> je(
13270c13316
< new Te({ duration: 300, fn: "ease-out" }).addProp(
---
> new ze({ duration: 300, fn: "ease-out" }).addProp(
13281c13327
< function Ve(e) {
---
> function Qe(e) {
13292c13338
< function ze(e, t, n) {
---
> function Je(e, t, n) {
13303c13349
< Ie(
---
> je(
13305c13351
< new Te({ duration: 200, fn: "ease-out" })
---
> new ze({ duration: 200, fn: "ease-out" })
13314c13360
< function qe(e, t, n) {
---
> function et(e, t, n) {
13358c13404
< var Ue =
---
> var tt =
13363c13409
< function _e(e) {
---
> function nt(e) {
13379c13425
< function je(e) {
---
> function it(e) {
13390c13436
< function We(e) {
---
> function rt(e) {
13412c13458
< function Ge(e, t) {
---
> function ot(e, t) {
13439c13485
< function Ke(e) {
---
> function at(e) {
13462c13508
< function Ye(e, t) {
---
> function st(e, t) {
13486c13532
< function Xe(e, t) {
---
> function lt(e, t) {
13500c13546
< ? ((n.src = ""), e.removeChild(n), Ye(e, t).then(r, r))
---
> ? ((n.src = ""), e.removeChild(n), st(e, t).then(r, r))
13513c13559
< function Ze(e, t) {
---
> function ct(e, t) {
13532c13578
< function $e(e, t) {
---
> function ut(e, t) {
13536c13582
< function Qe(e) {
---
> function ht(e) {
13541c13587
< var Je;
---
> var pt;
13543,13544c13589,13590
< function et() {
< Je && Je();
---
> function dt() {
> pt && pt();
13546,13547c13592,13593
< var tt = { sx: 0, sy: 0, ex: 0, ey: 0, t: 0 };
< function nt(e, t) {
---
> var ft = { sx: 0, sy: 0, ex: 0, ey: 0, t: 0 };
> function mt(e, t) {
13564c13610
< var a = rt(e, n);
---
> var a = vt(e, n);
13602c13648
< function it(e) {
---
> function gt(e) {
13604,13609c13650,13655
< tt &&
< Date.now() - tt.t < 1e3 &&
< ((Math.abs(e.clientX - tt.sx) < 5 &&
< Math.abs(e.clientY - tt.sy) < 5) ||
< (Math.abs(e.clientX - tt.ex) < 5 &&
< Math.abs(e.clientY - tt.ey) < 5))
---
> ft &&
> Date.now() - ft.t < 1e3 &&
> ((Math.abs(e.clientX - ft.sx) < 5 &&
> Math.abs(e.clientY - ft.sy) < 5) ||
> (Math.abs(e.clientX - ft.ex) < 5 &&
> Math.abs(e.clientY - ft.ey) < 5))
13612c13658
< function rt(e, t) {
---
> function vt(e, t) {
13619c13665
< function ot(e, t, n, i, r, o, a) {
---
> function yt(e, t, n, i, r, o, a) {
13644c13690
< h || ((p = !0), e instanceof TouchEvent && ze(e.win, c, u));
---
> h || ((p = !0), e instanceof TouchEvent && Je(e.win, c, u));
13671c13717
< var x = s(o);
---
> var E = s(o);
13676,13677c13722,13723
< var E = n.childNodes[x];
< return n.insertBefore(t, E), !0;
---
> var x = n.childNodes[E];
> return n.insertBefore(t, x), !0;
13696c13742
< if (0 === e.button && !it(e)) {
---
> if (0 === e.button && !gt(e)) {
13715,13741c13761,13790
< l.addEventListener("touchstart", function (e) {
< if (!(e.touches.length > 1)) {
< var t = e.touches[0],
< n = c(e, t);
< if (n) {
< var i = t.identifier,
< r = function (e) {
< var t = rt(e, i);
< t && (l(), n.end(e, t));
< },
< o = function (e) {
< var t = rt(e, i);
< t && (l(), n.end(e, t));
< },
< a = function (e) {
< var t = rt(e, i);
< t && (n.move(e, t) || l());
< },
< s = e.win,
< l = function () {
< s.removeEventListener("touchcancel", o),
< s.removeEventListener("touchend", r),
< s.removeEventListener("touchmove", a);
< };
< s.addEventListener("touchcancel", o),
< s.addEventListener("touchend", r),
< s.addEventListener("touchmove", a, { passive: !1 });
---
> l.addEventListener(
> "touchstart",
> function (e) {
> if (!(e.touches.length > 1)) {
> var t = e.touches[0],
> n = c(e, t);
> if (n) {
> var i = t.identifier,
> r = function (e) {
> var t = vt(e, i);
> t && (l(), n.end(e, t));
> },
> o = function (e) {
> var t = vt(e, i);
> t && (l(), n.end(e, t));
> },
> a = function (e) {
> var t = vt(e, i);
> t && (n.move(e, t) || l());
> },
> s = e.win,
> l = function () {
> s.removeEventListener("touchcancel", o),
> s.removeEventListener("touchend", r),
> s.removeEventListener("touchmove", a);
> };
> s.addEventListener("touchcancel", o),
> s.addEventListener("touchend", r),
> s.addEventListener("touchmove", a, { passive: !1 });
> }
13743,13744c13792,13794
< }
< });
---
> },
> { passive: !1 }
> );
13746c13796
< function at(e) {
---
> function bt(e) {
13752c13802,13811
< function st(e) {
---
> function wt(e) {
> if (!e || e.contains(" ")) return !1;
> try {
> new URL(e);
> } catch (e) {
> return !1;
> }
> return !0;
> }
> function kt(e) {
13761c13820,13825
< function lt(e, t, n) {
---
> var Ct =
> /^(([^<>()[\]\\.,;:\s@\"`]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))\b/;
> function Et(e) {
> return Ct.test(e);
> }
> function xt(e, t, n) {
13773c13837
< var ct = {
---
> var St = {
13782,13785c13846,13849
< isMacOS: ye,
< isWin: be,
< isLinux: we,
< isSafari: Ce,
---
> isMacOS: Pe,
> isWin: Ie,
> isLinux: Oe,
> isSafari: Be,
13791,13793c13855,13857
< var ut = Object.prototype.hasOwnProperty;
< function ht(e, t) {
< return ut.call(e, t);
---
> var Mt = Object.prototype.hasOwnProperty;
> function Tt(e, t) {
> return Mt.call(e, t);
13795c13859
< function pt(e, t) {
---
> function Dt(e, t) {
13804,13807c13868,13871
< var dt = /&(amp|lt|gt|quot);/g,
< ft = { "&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"' };
< function mt(e) {
< return ft[e];
---
> var At = /&(amp|lt|gt|quot);/g,
> Lt = { "&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"' };
> function Pt(e) {
> return Lt[e];
13809,13810c13873,13874
< function gt(e) {
< return e.replace(dt, mt);
---
> function It(e) {
> return e.replace(At, Pt);
13812,13814c13876,13878
< var vt = /[.?*+^$[\]\\(){}|-]/g;
< function yt(e) {
< return e.replace(vt, "\\$&");
---
> var Ot = /[.?*+^$[\]\\(){}|-]/g;
> function Ft(e) {
> return e.replace(Ot, "\\$&");
13816c13880
< var bt = (function () {
---
> var Bt = (function () {
13859c13923
< function wt(e) {
---
> function Nt(e) {
13864c13928
< function kt(e, t) {
---
> function Rt(e, t) {
13892c13956
< var Ct = (function () {
---
> var Ht = (function () {
13918c13982
< function xt(e) {
---
> function Vt(e) {
13921c13985
< function Et(e, t) {
---
> function zt(e, t) {
13923c13987
< return St(e, t).join("\n");
---
> return qt(e, t).join("\n");
13925c13989
< function St(e, t) {
---
> function qt(e, t) {
13928c13992
< xt(e) ||
---
> Vt(e) ||
13934c13998
< if (e.every(xt)) return [JSON.stringify(e)];
---
> if (e.every(Vt)) return [JSON.stringify(e)];
13936c14000
< for (var o = (p = St(e[r], t)).length - 1, a = 0; a <= o; a++) {
---
> for (var o = (p = qt(e[r], t)).length - 1, a = 0; a <= o; a++) {
13945c14009
< if (e.hasOwnProperty(c) && !xt(e[c])) {
---
> if (e.hasOwnProperty(c) && !Vt(e[c])) {
13956c14020
< (p = St(h, t))[0] = JSON.stringify(c) + ":" + p[0];
---
> (p = qt(h, t))[0] = JSON.stringify(c) + ":" + p[0];
13967c14031
< function Mt(e, t) {
---
> function Ut(e, t) {
13977c14041
< function Tt(e) {
---
> function Wt(e) {
13985,13987c14049,14051
< var Dt = window.require;
< function At(e) {
< return Dt && Dt(e);
---
> var _t = window.require;
> function jt(e) {
> return _t && _t(e);
13989,13990c14053,14054
< function Lt(e) {
< var t = At("electron");
---
> function Gt(e) {
> var t = jt("electron");
13993c14057
< function Pt(e) {
---
> function Kt(e) {
13997c14061
< return (t = At("fs")) && t.existsSync(e)
---
> return (t = jt("fs")) && t.existsSync(e)
14003c14067
< function It(e) {
---
> function Yt(e) {
14007c14071
< if (!(t = At("electron"))) throw new Error("Not electron");
---
> if (!(t = jt("electron"))) throw new Error("Not electron");
14013c14077
< var r = wt(16);
---
> var r = Nt(16);
14024,14029c14088,14093
< var Ot = !1,
< Ft = 0;
< Lt(function (e) {
< (Ot = e.ipcRenderer.sendSync("is-dev")),
< (Ft = parseInt(process.versions.electron.split(".")[0])),
< (ct.resourcePathPrefix = e.ipcRenderer.sendSync("file-url"));
---
> var Xt = !1,
> $t = 0;
> Gt(function (e) {
> (Xt = e.ipcRenderer.sendSync("is-dev")),
> ($t = parseInt(process.versions.electron.split(".")[0])),
> (St.resourcePathPrefix = e.ipcRenderer.sendSync("file-url"));
14031,14033c14095,14097
< var Bt = Ot,
< Nt = Ft;
< function Rt() {
---
> var Zt = Xt,
> Qt = $t;
> function Jt() {
14036c14100
< function Ht(e, t) {
---
> function en(e, t) {
14048c14112
< function Vt(e) {
---
> function tn(e) {
14051c14115
< function zt(e) {
---
> function nn(e) {
14060c14124,14126
< ? [
---
> ? (e.stopPropagation(),
> e.stopImmediatePropagation(),
> [
14072c14138
< ]
---
> ])
14081,14082c14147,14148
< function qt(e) {
< if (!ye && electron) {
---
> function rn(e) {
> if (!Pe && electron) {
14092,14093c14158,14159
< Bt ||
< Lt(function (e) {
---
> Zt ||
> Gt(function (e) {
14098,14121c14164,14691
< var Ut = "https://api.obsidian.md";
< Bt && (Ut = "http://127.0.0.1:3000");
< var _t = Ut + "/user/info",
< jt = Ut + "/subscription/business",
< Wt = Ut + "/user/signin",
< Gt = Ut + "/user/signout",
< Kt = Ut + "/vault/list",
< Yt = Ut + "/vault/access",
< Xt = Ut + "/vault/create",
< Zt = Ut + "/vault/delete",
< $t = Ut + "/vault/share/list",
< Qt = Ut + "/vault/share/invite",
< Jt = Ut + "/vault/share/remove",
< en = Ut + "/publish/share/list",
< tn = Ut + "/publish/share/invite",
< nn = Ut + "/publish/share/remove",
< rn = Ut + "/publish/share/accept",
< on = Ut + "/publish/list",
< an = Ut + "/publish/create",
< sn = Ut + "/publish/delete",
< ln = Ut + "/publish/limit",
< cn = Ut + "/subscription/list",
< un = "obsidian-account",
< hn = (function () {
---
> var on = (function () {
> function e() {}
> return (
> (e.encodeUrlQuery = function (e) {
> if (!e) return "";
> var t = [];
> for (var n in e)
> e.hasOwnProperty(n) &&
> e[n] &&
> (!0 === e[n]
> ? t.push(encodeURIComponent(n))
> : t.push(
> encodeURIComponent(n) + "=" + encodeURIComponent(e[n])
> ));
> return t.join("&");
> }),
> (e.decodeUrlQuery = function (e) {
> var t = {};
> if (!e || "" === e.trim()) return t;
> for (var n = e.split("&"), i = 0; i < n.length; i++) {
> var r = n[i].split("=");
> if (r.length >= 1 && r[0]) {
> var o = decodeURIComponent(r[0]);
> 2 === r.length
> ? (t[o] = decodeURIComponent(r[1]))
> : (t[o] = "");
> }
> }
> return t;
> }),
> (e.decodeUrl = function (t) {
> t || (t = "");
> var n = t.split("#"),
> i = n.length > 1 ? n[1] : "",
> r = n[0].split("?"),
> o = r.length > 1 ? r[1] : "";
> return {
> path: r[0],
> query: e.decodeUrlQuery(o),
> hash: e.decodeUrlQuery(i),
> };
> }),
> (e.addQuery = function (t, n) {
> return t + (t.contains("?") ? "&" : "?") + e.encodeUrlQuery(n);
> }),
> e
> );
> })(),
> an = (function (e) {
> function t(n, i, r) {
> var o = e.call(this, n) || this;
> return (
> (o.status = i),
> (o.headers = r),
> Object.setPrototypeOf(o, t.prototype),
> o
> );
> }
> return f(t, e), t;
> })(Error);
> function sn(e, t, n, i) {
> var r;
> if ((null === (r = e.throw) || void 0 === r || r) && t >= 400)
> throw new an("Request failed, status " + t, t, n);
> return {
> status: t,
> headers: n,
> arrayBuffer: i,
> get json() {
> return JSON.parse(new TextDecoder().decode(i));
> },
> get text() {
> return new TextDecoder().decode(i);
> },
> };
> }
> function ln(e) {
> return v(this, void 0, Promise, function () {
> var t, n, i, r, o, a, s, l, c, u, h, p;
> return y(this, function (d) {
> switch (d.label) {
> case 0:
> return (
> String.isString(e) && (e = { url: e }),
> R
> ? ((n = !1),
> e.body instanceof ArrayBuffer
> ? ((t = ee(e.body)), (n = !0))
> : (t = e.body),
> [
> 4,
> z.requestUrl({
> url: e.url,
> method: e.method,
> contentType: e.contentType,
> headers: e.headers,
> body: t,
> binary: n,
> }),
> ])
> : [3, 2]
> );
> case 1:
> return (
> (i = d.sent()), [2, sn(e, i.status, i.headers, J(i.body))]
> );
> case 2:
> return jt("electron") ? [4, Yt(e)] : [3, 4];
> case 3:
> return (r = d.sent()), [2, sn(e, r.status, r.headers, r.body)];
> case 4:
> return (
> (o = e.url),
> (a = e.method),
> (s = e.contentType),
> (l = e.body),
> (c = null),
> s && (c = { "Content-Type": s }),
> [4, fetch(o, { method: a, headers: c, body: l })]
> );
> case 5:
> return [4, (u = d.sent()).arrayBuffer()];
> case 6:
> return (
> (h = d.sent()),
> (p = {}),
> u.headers.forEach(function (e, t) {
> return (p[t] = e);
> }),
> [2, sn(e, u.status, p, h)]
> );
> }
> });
> });
> }
> function cn(e) {
> var t = this,
> n = e;
> return (
> Object.defineProperty(n, "arrayBuffer", {
> get: function () {
> return v(t, void 0, void 0, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, e];
> case 1:
> return [2, t.sent().arrayBuffer];
> }
> });
> });
> },
> }),
> Object.defineProperty(n, "json", {
> get: function () {
> return v(t, void 0, void 0, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, e];
> case 1:
> return [2, t.sent().json];
> }
> });
> });
> },
> }),
> Object.defineProperty(n, "text", {
> get: function () {
> return v(t, void 0, void 0, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, e];
> case 1:
> return [2, t.sent().text];
> }
> });
> });
> },
> }),
> n
> );
> }
> function un(e) {
> return cn(ln(e));
> }
> function hn(e) {
> return v(this, void 0, Promise, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, ln(e)];
> case 1:
> return [2, t.sent().text];
> }
> });
> });
> }
> function pn(e) {
> return cn(
> (function (e) {
> return v(this, void 0, Promise, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return String.isString(e) && (e = { url: e }), [4, ln(e)];
> case 1:
> return [2, t.sent()];
> }
> });
> });
> })(e)
> );
> }
> function dn() {
> var e = "https://obsidian.md/download";
> if (St.isDesktopApp) {
> var t = window.process.platform,
> n = "win32" === t ? "win" : "darwin" === t ? "mac" : "linux",
> i = window.process.arch;
> return on.addQuery(e, { os: n, arch: i });
> }
> if (St.isMobileApp) {
> n = V ? "android" : "ios";
> return on.addQuery(e, { os: n });
> }
> return e;
> }
> (window.request = hn), (window.requestUrl = un);
> var fn =
> "https://" +
> [String.fromCharCode(97, 112, 105), "obsidian", "md"].join(".");
> Zt && (fn = "http://127.0.0.1:3000");
> var mn = "obsidian-account",
> gn = window.fetch;
> function vn(e, t) {
> return v(this, void 0, void 0, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [
> 4,
> gn(fn + e, {
> method: "POST",
> body: JSON.stringify(t),
> headers: { "Content-Type": "application/json" },
> }),
> ];
> case 1:
> return [4, n.sent().json()];
> case 2:
> return [2, n.sent()];
> }
> });
> });
> }
> function yn(e) {
> return v(this, void 0, void 0, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, vn("/user/signout", { token: e.token })];
> case 1:
> return (
> t.sent(),
> (e.token = ""),
> (e.email = ""),
> (e.name = ""),
> (e.license = ""),
> [2]
> );
> }
> });
> });
> }
> function bn(e) {
> return v(this, void 0, Promise, function () {
> var t;
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return e.token
> ? [4, vn("/user/info", { token: e.token })]
> : [2];
> case 1:
> return "Not logged in" === (t = n.sent()).error
> ? ((e.email = null),
> (e.name = null),
> (e.token = null),
> (e.license = null),
> e.save(),
> [2])
> : ((e.email = t.email),
> (e.name = t.name),
> (e.license = t.license),
> e.save(),
> [2, t]);
> }
> });
> });
> }
> function wn(e) {
> return v(this, void 0, void 0, function () {
> var t;
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return e.key
> ? [4, vn("/subscription/business", { key: e.key })]
> : [2];
> case 1:
> return (t = n.sent()).error
> ? ((e.key = null), (e.keyValidation = t.error), e.save(), [2])
> : ((e.keyValidation = "valid"),
> (e.company = t.company),
> (e.expiry = t.expiry),
> (e.seats = t.seats),
> e.save(),
> [2]);
> }
> });
> });
> }
> function kn(e, t, n, i) {
> return v(this, void 0, void 0, function () {
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> return [
> 4,
> vn("/vault/create", {
> token: e,
> name: t,
> keyhash: n,
> salt: i,
> }),
> ];
> case 1:
> return [2, r.sent()];
> }
> });
> });
> }
> function Cn(e, t, n) {
> return v(this, void 0, void 0, function () {
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return [
> 4,
> vn("/vault/rename", { token: e, vault_uid: t, name: n }),
> ];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }
> function En(e, t) {
> return v(this, void 0, void 0, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [4, vn("/vault/delete", { token: e, vault_uid: t })];
> case 1:
> return [2, n.sent()];
> }
> });
> });
> }
> function xn(e, t, n) {
> return v(this, void 0, void 0, function () {
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return [
> 4,
> vn("/publish/share/invite", {
> token: e,
> site_uid: t,
> email: n,
> }),
> ];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }
> function Sn(e, t, n) {
> return v(this, void 0, void 0, function () {
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return [
> 4,
> vn("/publish/share/remove", {
> token: e,
> site_uid: t,
> share_uid: n,
> }),
> ];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }
> function Mn(e, t) {
> return v(this, void 0, void 0, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [4, vn("/publish/share/accept", { token: e, code: t })];
> case 1:
> return [2, n.sent()];
> }
> });
> });
> }
> function Tn(e, t, n) {
> return v(this, void 0, void 0, function () {
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return [
> 4,
> vn("/vault/share/invite", {
> token: e,
> vault_uid: t,
> email: n,
> }),
> ];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }
> function Dn(e, t, n) {
> return v(this, void 0, void 0, function () {
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return [
> 4,
> vn("/vault/share/remove", {
> token: e,
> vault_uid: t,
> share_uid: n,
> }),
> ];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }
> function An(e, t, n, i) {
> return v(this, void 0, void 0, function () {
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> return [
> 4,
> vn("/vault/access", {
> token: e,
> vault_uid: t,
> keyhash: n,
> host: i,
> }),
> ];
> case 1:
> return [2, r.sent()];
> }
> });
> });
> }
> function Ln(e) {
> return v(this, void 0, Promise, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, vn("/publish/list", { token: e })];
> case 1:
> return [2, t.sent()];
> }
> });
> });
> }
> function Pn(e) {
> return v(this, void 0, void 0, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, vn("/publish/create", { token: e })];
> case 1:
> return [2, t.sent()];
> }
> });
> });
> }
> function In(e, t) {
> return v(this, void 0, void 0, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [4, vn("/publish/delete", { token: e, site_uid: t })];
> case 1:
> return [2, n.sent()];
> }
> });
> });
> }
> function On(e) {
> return v(this, void 0, Promise, function () {
> return y(this, function (t) {
> switch (t.label) {
> case 0:
> return [4, vn("/subscription/list", { token: e })];
> case 1:
> return [2, t.sent()];
> }
> });
> });
> }
> var Fn = (function () {
14128c14698
< var e = JSON.parse(localStorage.getItem(un));
---
> var e = JSON.parse(localStorage.getItem(mn));
14145,14481c14715
< localStorage.setItem(un, JSON.stringify(e));
< }),
< (e.prototype.login = function (e, t, n) {
< var i = this;
< ajax({
< url: Wt,
< method: "POST",
< withCredentials: !1,
< data: { email: e, password: t },
< success: function (e) {
< var t = JSON.parse(e);
< t.token &&
< ((i.token = t.token),
< (i.email = t.email),
< (i.name = t.name),
< (i.license = t.license),
< i.save()),
< n && n(t);
< },
< });
< }),
< (e.prototype.logout = function (e) {
< var t = this;
< ajax({
< url: Gt,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< success: function (n) {
< (t.token = ""),
< (t.email = ""),
< (t.name = ""),
< (t.license = ""),
< e && e(n);
< },
< });
< }),
< (e.prototype.getUserInfo = function () {
< return v(this, void 0, Promise, function () {
< var e, t;
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return this.token
< ? [
< 4,
< ajaxPromise({
< url: _t,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< }),
< ]
< : [2];
< case 1:
< return (
< (e = n.sent()),
< "Not logged in" === (t = JSON.parse(e)).error
< ? ((this.email = null),
< (this.name = null),
< (this.token = null),
< (this.license = null),
< this.save(),
< [2])
< : ((this.email = t.email),
< (this.name = t.name),
< (this.license = t.license),
< this.save(),
< [2, t])
< );
< }
< });
< });
< }),
< (e.prototype.checkKey = function (e) {
< var t = this;
< this.key
< ? ajax({
< url: jt,
< method: "POST",
< withCredentials: !1,
< data: { key: this.key },
< success: function (n) {
< var i = JSON.parse(n);
< if (i.error)
< return (t.keyValidation = i.error), void (e && e());
< (t.keyValidation = "valid"),
< (t.company = i.company),
< (t.expiry = i.expiry),
< (t.seats = i.seats),
< t.save(),
< e && e();
< },
< error: e,
< })
< : e();
< }),
< (e.prototype.getVaults = function (e) {
< ajax({
< url: Kt,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< success: function (t) {
< var n = JSON.parse(t);
< e && e(n);
< },
< });
< }),
< (e.prototype.createVault = function (e, t, n, i) {
< ajax({
< url: Xt,
< method: "POST",
< withCredentials: !1,
< data: { name: e, token: this.token, keyhash: t, salt: n },
< success: function (e) {
< var t = JSON.parse(e);
< i && i(t);
< },
< });
< }),
< (e.prototype.deleteVault = function (e, t) {
< ajax({
< url: Zt,
< method: "POST",
< withCredentials: !1,
< data: { vault_uid: e, token: this.token },
< success: function (e) {
< var n = JSON.parse(e);
< t && t(n);
< },
< });
< }),
< (e.prototype.getSiteShareList = function (e, t) {
< ajax({
< url: en,
< method: "POST",
< withCredentials: !1,
< data: { site_uid: e, token: this.token },
< success: function (e) {
< var n = JSON.parse(e);
< t && t(n.shares);
< },
< });
< }),
< (e.prototype.inviteToSite = function (e, t, n) {
< ajax({
< url: tn,
< method: "POST",
< withCredentials: !1,
< data: { site_uid: e, email: t, token: this.token },
< success: function (e) {
< var t = JSON.parse(e);
< n && n(t);
< },
< });
< }),
< (e.prototype.removeUserFromSite = function (e, t, n) {
< ajax({
< url: nn,
< method: "POST",
< withCredentials: !1,
< data: { site_uid: e, share_uid: t, token: this.token },
< success: function (e) {
< var t = JSON.parse(e);
< n && n(t);
< },
< });
< }),
< (e.prototype.acceptSiteInvite = function (e, t) {
< ajax({
< url: rn,
< method: "POST",
< withCredentials: !1,
< data: { code: e, token: this.token },
< success: function (e) {
< JSON.parse(e);
< t && t();
< },
< });
< }),
< (e.prototype.getVaultShareList = function (e, t) {
< ajax({
< url: $t,
< method: "POST",
< withCredentials: !1,
< data: { vault_uid: e, token: this.token },
< success: function (e) {
< var n = JSON.parse(e);
< t && t(n.shares);
< },
< });
< }),
< (e.prototype.inviteToVault = function (e, t, n) {
< ajax({
< url: Qt,
< method: "POST",
< withCredentials: !1,
< data: { vault_uid: e, email: t, token: this.token },
< success: function (e) {
< var t = JSON.parse(e);
< n && n(t);
< },
< });
< }),
< (e.prototype.removeUserFromVault = function (e, t, n) {
< ajax({
< url: Jt,
< method: "POST",
< withCredentials: !1,
< data: { vault_uid: e, share_uid: t, token: this.token },
< success: function (e) {
< var t = JSON.parse(e);
< n && n(t);
< },
< });
< }),
< (e.prototype.verifyVaultKey = function (e, t, n) {
< return v(this, void 0, void 0, function () {
< return y(this, function (i) {
< return [
< 2,
< ajaxPromise({
< url: Yt,
< method: "POST",
< withCredentials: !1,
< data: {
< token: this.token,
< vault_uid: e,
< keyhash: t,
< host: n,
< },
< }),
< ];
< });
< });
< }),
< (e.prototype.getSites = function () {
< return v(this, void 0, Promise, function () {
< var e, t;
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return (
< (t = (e = JSON).parse),
< [
< 4,
< ajaxPromise({
< url: on,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< }),
< ]
< );
< case 1:
< return [2, t.apply(e, [n.sent()])];
< }
< });
< });
< }),
< (e.prototype.createSite = function (e) {
< ajax({
< url: an,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< success: function (t) {
< var n = JSON.parse(t);
< e && e(n);
< },
< error: function (t) {
< e && e(t);
< },
< });
< }),
< (e.prototype.deleteSite = function (e, t) {
< ajax({
< url: sn,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token, site_uid: e },
< success: function (e) {
< var n = JSON.parse(e);
< t && t(n);
< },
< error: function (e) {
< t && t(e);
< },
< });
< }),
< (e.prototype.getSiteLimit = function () {
< return v(this, void 0, Promise, function () {
< var e, t;
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return (
< (t = (e = JSON).parse),
< [
< 4,
< ajaxPromise({
< url: ln,
< method: "POST",
< withCredentials: !1,
< data: { token: this.token },
< }),
< ]
< );
< case 1:
< return [2, t.apply(e, [n.sent()])];
< }
< });
< });
< }),
< (e.prototype.getSubscriptions = function () {
< return v(this, void 0, Promise, function () {
< var e, t;
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return (
< (t = (e = JSON).parse),
< [
< 4,
< ajaxPromise({
< url: cn,
< method: "POST",
< data: { token: this.token },
< }),
< ]
< );
< case 1:
< return [2, t.apply(e, [n.sent()])];
< }
< });
< });
---
> localStorage.setItem(mn, JSON.stringify(e));
14489,14491c14723,14725
< pn = 1024,
< dn = 0,
< fn = function (e, t) {
---
> Bn = 1024,
> Nn = 0,
> Rn = function (e, t) {
14494c14728
< mn = (function () {
---
> Hn = (function () {
14497c14731
< (this.id = dn++),
---
> (this.id = Nn++),
14513c14747
< "function" != typeof e && (e = yn.match(e)),
---
> "function" != typeof e && (e = qn.match(e)),
14523c14757
< (mn.closedBy = new mn({
---
> (Hn.closedBy = new Hn({
14528c14762
< (mn.openedBy = new mn({
---
> (Hn.openedBy = new Hn({
14533c14767
< (mn.group = new mn({
---
> (Hn.group = new Hn({
14538,14541c14772,14775
< (mn.contextHash = new mn({ perNode: !0 })),
< (mn.lookAhead = new mn({ perNode: !0 })),
< (mn.mounted = new mn({ perNode: !0 }));
< var gn = function (e, t, n) {
---
> (Hn.contextHash = new Hn({ perNode: !0 })),
> (Hn.lookAhead = new Hn({ perNode: !0 })),
> (Hn.mounted = new Hn({ perNode: !0 }));
> var Vn = function (e, t, n) {
14544,14545c14778,14779
< vn = Object.create(null),
< yn = (function () {
---
> zn = Object.create(null),
> qn = (function () {
14555c14789
< var n = t.props && t.props.length ? Object.create(null) : vn,
---
> var n = t.props && t.props.length ? Object.create(null) : zn,
14609c14843
< var t = this.prop(mn.group);
---
> var t = this.prop(Hn.group);
14623c14857
< var n = e.prop(mn.group), i = -1;
---
> var n = e.prop(Hn.group), i = -1;
14635,14637c14869,14871
< yn.none = new yn("", Object.create(null), 0, 8);
< var bn,
< wn = (function () {
---
> qn.none = new qn("", Object.create(null), 0, 8);
> var Un,
> Wn = (function () {
14658c14892
< i.push(s ? new yn(a.name, s, a.id, a.flags) : a);
---
> i.push(s ? new qn(a.name, s, a.id, a.flags) : a);
14665,14666c14899,14900
< kn = new WeakMap(),
< Cn = new WeakMap();
---
> _n = new WeakMap(),
> jn = new WeakMap();
14672,14673c14906,14907
< })(bn || (bn = {}));
< var xn = (function () {
---
> })(Un || (Un = {}));
> var Gn = (function () {
14694c14928
< var e = this.prop(mn.mounted);
---
> var e = this.prop(Hn.mounted);
14707c14941
< return void 0 === e && (e = 0), new Fn(this.topNode, e);
---
> return void 0 === e && (e = 0), new ii(this.topNode, e);
14711,14713c14945,14947
< var i = kn.get(this) || this.topNode,
< r = new Fn(i);
< return r.moveTo(e, t), kn.set(this, r._tree), r;
---
> var i = _n.get(this) || this.topNode,
> r = new ii(i);
> return r.moveTo(e, t), _n.set(this, r._tree), r;
14717c14951
< return new An(this, 0, 0, null);
---
> return new Qn(this, 0, 0, null);
14724,14725c14958,14959
< var n = Dn(kn.get(this) || this.topNode, e, t, !1);
< return kn.set(this, n), n;
---
> var n = Zn(_n.get(this) || this.topNode, e, t, !1);
> return _n.set(this, n), n;
14729,14730c14963,14964
< var n = Dn(Cn.get(this) || this.topNode, e, t, !0);
< return Cn.set(this, n), n;
---
> var n = Zn(jn.get(this) || this.topNode, e, t, !0);
> return jn.set(this, n), n;
14740c14974
< s = this.cursor((e.mode || 0) | bn.IncludeAnonymous);
---
> s = this.cursor((e.mode || 0) | Un.IncludeAnonymous);
14786,14787c15020,15021
< : Vn(
< yn.none,
---
> : li(
> qn.none,
14799c15033
< return new e(yn.none, t, n, i);
---
> return new e(qn.none, t, n, i);
14805c15039
< return Nn(e);
---
> return oi(e);
14810,14811c15044,15045
< xn.empty = new xn(yn.none, [], [], 0);
< var En = (function () {
---
> Gn.empty = new Gn(qn.none, [], [], 0);
> var Kn = (function () {
14860c15094
< Sn = (function () {
---
> Yn = (function () {
14867c15101
< return yn.none;
---
> return qn.none;
14894c15128
< s != t && !(Mn(r, i, o[s + 1], o[s + 2]) && ((a = s), n > 0));
---
> s != t && !(Xn(r, i, o[s + 1], o[s + 2]) && ((a = s), n > 0));
14914c15148
< function Mn(e, t, n, i) {
---
> function Xn(e, t, n, i) {
14930c15164
< function Tn(e, t) {
---
> function $n(e, t) {
14940c15174
< function Dn(e, t, n, i) {
---
> function Zn(e, t, n, i) {
14948c15182
< if (!(s = !i && e instanceof An && e.index < 0 ? null : e.parent))
---
> if (!(s = !i && e instanceof Qn && e.index < 0 ? null : e.parent))
14952c15186
< var o = i ? 0 : bn.IgnoreOverlays;
---
> var o = i ? 0 : Un.IgnoreOverlays;
14955c15189
< a instanceof An &&
---
> a instanceof Qn &&
14967c15201
< var An = (function () {
---
> var Qn = (function () {
15009,15011c15243,15245
< if (Mn(r, i, p, p + h.length))
< if (h instanceof Sn) {
< if (o & bn.ExcludeBuffers) continue;
---
> if (Xn(r, i, p, p + h.length))
> if (h instanceof Yn) {
> if (o & Un.ExcludeBuffers) continue;
15013c15247
< if (d > -1) return new On(new In(a, h, t, p), null, d);
---
> if (d > -1) return new ni(new ti(a, h, t, p), null, d);
15015c15249
< o & bn.IncludeAnonymous ||
---
> o & Un.IncludeAnonymous ||
15017c15251
< Bn(h)
---
> ri(h)
15021c15255
< !(o & bn.IgnoreMounts) &&
---
> !(o & Un.IgnoreMounts) &&
15023c15257
< (f = h.prop(mn.mounted)) &&
---
> (f = h.prop(Hn.mounted)) &&
15028c15262
< return o & bn.IncludeAnonymous || !m.type.isAnonymous
---
> return o & Un.IncludeAnonymous || !m.type.isAnonymous
15033c15267
< if (o & bn.IncludeAnonymous || !a.type.isAnonymous) return null;
---
> if (o & Un.IncludeAnonymous || !a.type.isAnonymous) return null;
15070,15071c15304,15305
< !(i & bn.IgnoreOverlays) &&
< (r = this._tree.prop(mn.mounted)) &&
---
> !(i & Un.IgnoreOverlays) &&
> (r = this._tree.prop(Hn.mounted)) &&
15117c15351
< return void 0 === e && (e = 0), new Fn(this, e);
---
> return void 0 === e && (e = 0), new ii(this, e);
15130c15364
< return void 0 === t && (t = 0), Dn(this, e, t, !1);
---
> return void 0 === t && (t = 0), Zn(this, e, t, !1);
15133c15367
< return void 0 === t && (t = 0), Dn(this, e, t, !0);
---
> return void 0 === t && (t = 0), Zn(this, e, t, !0);
15136c15370
< return Tn(this, e);
---
> return $n(this, e);
15140c15374
< var i = Ln(this, e, t, n);
---
> var i = Jn(this, e, t, n);
15147c15381
< Ln(this, e, t, n)
---
> Jn(this, e, t, n)
15161c15395
< return Pn(this, e);
---
> return ei(this, e);
15166c15400
< function Ln(e, t, n, i) {
---
> function Jn(e, t, n, i) {
15177c15411
< function Pn(e, t, n) {
---
> function ei(e, t, n) {
15188c15422
< var In = function (e, t, n, i) {
---
> var ti = function (e, t, n, i) {
15194c15428
< On = (function () {
---
> ni = (function () {
15261c15495
< if ((void 0 === i && (i = 0), i & bn.ExcludeBuffers)) return null;
---
> if ((void 0 === i && (i = 0), i & Un.ExcludeBuffers)) return null;
15321c15555
< return void 0 === e && (e = 0), new Fn(this, e);
---
> return void 0 === e && (e = 0), new ii(this, e);
15341c15575
< return new xn(this.type, e, t, this.to - this.from);
---
> return new Gn(this.type, e, t, this.to - this.from);
15344c15578
< return void 0 === t && (t = 0), Dn(this, e, t, !1);
---
> return void 0 === t && (t = 0), Zn(this, e, t, !1);
15347c15581
< return void 0 === t && (t = 0), Dn(this, e, t, !0);
---
> return void 0 === t && (t = 0), Zn(this, e, t, !0);
15350c15584
< return Tn(this, e);
---
> return $n(this, e);
15357c15591
< var i = Ln(this, e, t, n);
---
> var i = Jn(this, e, t, n);
15364c15598
< Ln(this, e, t, n)
---
> Jn(this, e, t, n)
15375c15609
< return Pn(this, e);
---
> return ei(this, e);
15380c15614
< Fn = (function () {
---
> ii = (function () {
15389c15623
< e instanceof An)
---
> e instanceof Qn)
15432c15666
< (e instanceof An
---
> (e instanceof Qn
15481c15715
< ? !(n & bn.ExcludeBuffers) && this.enterChild(1, e, t)
---
> ? !(n & Un.ExcludeBuffers) && this.enterChild(1, e, t)
15488c15722
< this.mode & bn.IncludeAnonymous
---
> this.mode & Un.IncludeAnonymous
15494c15728
< this.mode & bn.IncludeAnonymous
---
> this.mode & Un.IncludeAnonymous
15569,15570c15803,15804
< this.mode & bn.IncludeAnonymous ||
< l instanceof Sn ||
---
> this.mode & Un.IncludeAnonymous ||
> l instanceof Yn ||
15572c15806
< Bn(l)
---
> ri(l)
15621,15622c15855,15856
< t = new On(this.buffer, t, this.stack[a]);
< return (this.bufferNode = new On(this.buffer, t, this.index));
---
> t = new ni(this.buffer, t, this.stack[a]);
> return (this.bufferNode = new ni(this.buffer, t, this.index));
15657c15891
< if (!this.buffer) return Pn(this.node, e);
---
> if (!this.buffer) return ei(this.node, e);
15666c15900
< if (r < 0) return Pn(this.node, e, i);
---
> if (r < 0) return ei(this.node, e, i);
15678c15912
< function Bn(e) {
---
> function ri(e) {
15680c15914
< return e instanceof Sn || !e.type.isAnonymous || Bn(e);
---
> return e instanceof Yn || !e.type.isAnonymous || ri(e);
15683c15917
< function Nn(e) {
---
> function oi(e) {
15688c15922
< o = void 0 === r ? pn : r,
---
> o = void 0 === r ? Bn : r,
15693c15927
< u = Array.isArray(n) ? new En(n, n.length) : n,
---
> u = Array.isArray(n) ? new Kn(n, n.length) : n,
15711,15712c15945,15946
< var x,
< E,
---
> var E,
> x,
15717c15951
< (E = (function (e, t) {
---
> (x = (function (e, t) {
15753,15754c15987,15988
< var T = new Uint16Array(E.size - E.skip),
< D = u.pos - E.size,
---
> var T = new Uint16Array(x.size - x.skip),
> D = u.pos - x.size,
15759,15760c15993,15994
< A = v(E.start, T, A);
< (x = new Sn(T, b - E.start, i)), (M = E.start - e);
---
> A = v(x.start, T, A);
> (E = new Yn(T, b - x.start, i)), (M = x.start - e);
15788c16022
< if (s >= 0 && (r = t[s]) instanceof xn) {
---
> if (s >= 0 && (r = t[s]) instanceof Gn) {
15790c16024
< (o = r.prop(mn.lookAhead)) && (a = n[s] + r.length + o);
---
> (o = r.prop(Hn.lookAhead)) && (a = n[s] + r.length + o);
15795,15796c16029,16030
< x = Vn(S, L, P, 0, L.length, 0, b - y, B, B);
< } else x = g(S, L, P, b - y, k - b);
---
> E = li(S, L, P, 0, L.length, 0, b - y, B, B);
> } else E = g(S, L, P, b - y, k - b);
15798c16032
< n.push(x), r.push(M);
---
> n.push(E), r.push(M);
15807c16041
< var a = [mn.contextHash, p];
---
> var a = [Hn.contextHash, p];
15811c16045
< a = [mn.lookAhead, r];
---
> a = [Hn.lookAhead, r];
15814c16048
< return new xn(e, t, n, i, o);
---
> return new Gn(e, t, n, i, o);
15837c16071
< return new xn(h[e.topID], y.reverse(), b.reverse(), w);
---
> return new Gn(h[e.topID], y.reverse(), b.reverse(), w);
15839,15842c16073,16076
< var Rn = new WeakMap();
< function Hn(e, t) {
< if (!e.isAnonymous || t instanceof Sn || t.type != e) return 1;
< var n = Rn.get(t);
---
> var ai = new WeakMap();
> function si(e, t) {
> if (!e.isAnonymous || t instanceof Yn || t.type != e) return 1;
> var n = ai.get(t);
15847c16081
< if (o.type != e || !(o instanceof xn)) {
---
> if (o.type != e || !(o instanceof Gn)) {
15851c16085
< n += Hn(e, o);
---
> n += si(e, o);
15853c16087
< Rn.set(t, n);
---
> ai.set(t, n);
15857,15858c16091,16092
< function Vn(e, t, n, i, r, o, a, s, l) {
< for (var c = 0, u = i; u < r; u++) c += Hn(e, t[u]);
---
> function li(e, t, n, i, r, o, a, s, l) {
> for (var c = 0, u = i; u < r; u++) c += si(e, t[u]);
15867c16101
< m = Hn(e, n[c]);
---
> m = si(e, n[c]);
15869c16103
< var g = Hn(e, n[c]);
---
> var g = si(e, n[c]);
15882c16116
< p.push(Vn(e, n, i, u, c, f, y, null, l));
---
> p.push(li(e, n, i, u, c, f, y, null, l));
15890c16124
< var zn = (function () {
---
> var ci = (function () {
15904c16138
< e instanceof On
---
> e instanceof ni
15906c16140
< : e instanceof An && this.map.set(e.tree, t);
---
> : e instanceof Qn && this.map.set(e.tree, t);
15909c16143
< return e instanceof On
---
> return e instanceof ni
15911c16145
< : e instanceof An
---
> : e instanceof Qn
15928c16162
< qn = (function () {
---
> ui = (function () {
16001c16235
< Un = (function () {
---
> hi = (function () {
16006c16240
< "string" == typeof e && (e = new _n(e)),
---
> "string" == typeof e && (e = new pi(e)),
16010c16244
< return new fn(e.from, e.to);
---
> return new Rn(e.from, e.to);
16012,16013c16246,16247
< : [new fn(0, 0)]
< : [new fn(0, e.length)]),
---
> : [new Rn(0, 0)]
> : [new Rn(0, e.length)]),
16026c16260
< _n = (function () {
---
> pi = (function () {
16054c16288
< function jn(e) {
---
> function di(e) {
16056c16290
< return new Yn(t, e, n, i, r);
---
> return new vi(t, e, n, i, r);
16059c16293
< var Wn = function (e, t, n, i, r) {
---
> var fi = function (e, t, n, i, r) {
16066c16300
< Gn = function (e, t, n, i, r, o, a) {
---
> mi = function (e, t, n, i, r, o, a) {
16077,16078c16311,16312
< Kn = new mn({ perNode: !0 }),
< Yn = (function () {
---
> gi = new Hn({ perNode: !0 }),
> vi = (function () {
16109c16343
< (i = new xn(
---
> (i = new Gn(
16114c16348
< i.propValues.concat([[Kn, this.stoppedAt]])
---
> i.propValues.concat([[gi, this.stoppedAt]])
16124c16358
< (a[mn.mounted.id] = new gn(o, r.overlay, r.parser)),
---
> (a[Hn.mounted.id] = new Vn(o, r.overlay, r.parser)),
16152c16386
< var e = new Jn(this.fragments),
---
> var e = new Ci(this.fragments),
16155,16157c16389,16391
< i = new Fn(
< new An(this.baseTree, this.ranges[0].from, 0, null),
< bn.IncludeAnonymous | bn.IgnoreMounts
---
> i = new ii(
> new Qn(this.baseTree, this.ranges[0].from, 0, null),
> Un.IncludeAnonymous | Un.IgnoreMounts
16196c16430
< } else if (n && (o = Xn(n.ranges, i.from, i.to))) a = 2 != o;
---
> } else if (n && (o = yi(n.ranges, i.from, i.to))) a = 2 != o;
16202c16436
< i.tree || $n(i);
---
> i.tree || wi(i);
16205c16439
< t = new Gn(
---
> t = new mi(
16215c16449
< (d = ei(this.ranges, r.overlay || [new fn(i.from, i.to)]))
---
> (d = Ei(this.ranges, r.overlay || [new Rn(i.from, i.to)]))
16218c16452
< new Wn(
---
> new fi(
16220c16454
< r.parser.startParse(this.input, ti(p, d), d),
---
> r.parser.startParse(this.input, xi(p, d), d),
16223c16457
< return new fn(e.from - i.from, e.to - i.from);
---
> return new Rn(e.from - i.from, e.to - i.from);
16236c16470
< (!0 === s && (s = new fn(i.from, i.to)),
---
> (!0 === s && (s = new Rn(i.from, i.to)),
16245c16479
< ((d = ei(this.ranges, t.ranges)).length &&
---
> ((d = Ei(this.ranges, t.ranges)).length &&
16249c16483
< new Wn(
---
> new fi(
16251c16485
< t.parser.startParse(this.input, ti(t.mounts, d), d),
---
> t.parser.startParse(this.input, xi(t.mounts, d), d),
16253c16487
< return new fn(e.from - t.start, e.to - t.start);
---
> return new Rn(e.from - t.start, e.to - t.start);
16267c16501
< function Xn(e, t, n) {
---
> function yi(e, t, n) {
16275c16509
< function Zn(e, t, n, i, r, o) {
---
> function bi(e, t, n, i, r, o) {
16282c16516
< function $n(e) {
---
> function wi(e) {
16302c16536
< Zn(a, n, u, h, p, l);
---
> bi(a, n, u, h, p, l);
16311,16312c16545,16546
< Zn(a, s[u + 3], i, h, p, l),
< new xn(r, h, p, c)
---
> bi(a, s[u + 3], i, h, p, l),
> new Gn(r, h, p, c)
16314c16548
< })(0, s.length, yn.none, 0, a.length);
---
> })(0, s.length, qn.none, 0, a.length);
16317c16551
< var Qn = (function () {
---
> var ki = (function () {
16321c16555
< (this.cursor = e.cursor(bn.IncludeAnonymous | bn.IgnoreMounts));
---
> (this.cursor = e.cursor(Un.IncludeAnonymous | Un.IgnoreMounts));
16331c16565
< t.enter(n, 1, bn.IgnoreOverlays | bn.ExcludeBuffers)) ||
---
> t.enter(n, 1, Un.IgnoreOverlays | Un.ExcludeBuffers)) ||
16348c16582
< t.children[0] instanceof xn
---
> t.children[0] instanceof Gn
16359c16593
< Jn = (function () {
---
> Ci = (function () {
16370,16371c16604,16605
< null !== (t = n.tree.prop(Kn)) && void 0 !== t ? t : n.to),
< (this.inner = new Qn(n.tree, -n.offset));
---
> null !== (t = n.tree.prop(gi)) && void 0 !== t ? t : n.to),
> (this.inner = new ki(n.tree, -n.offset));
16391,16392c16625,16626
< null !== (e = t.tree.prop(Kn)) && void 0 !== e ? e : t.to),
< (this.inner = new Qn(t.tree, -t.offset));
---
> null !== (e = t.tree.prop(gi)) && void 0 !== e ? e : t.to),
> (this.inner = new ki(t.tree, -t.offset));
16404c16638
< : n.prop(mn.mounted);
---
> : n.prop(Hn.mounted);
16419c16653
< function ei(e, t) {
---
> function Ei(e, t) {
16427,16428c16661,16662
< ? ((n[o] = new fn(l.from, a)),
< l.to > s && n.splice(o + 1, 0, new fn(s, l.to)))
---
> ? ((n[o] = new Rn(l.from, a)),
> l.to > s && n.splice(o + 1, 0, new Rn(s, l.to)))
16430c16664
< ? (n[o--] = new fn(s, l.to))
---
> ? (n[o--] = new Rn(s, l.to))
16435c16669
< function ti(e, t) {
---
> function xi(e, t) {
16446c16680
< return new fn(t.from + e, t.to + e);
---
> return new Rn(t.from + e, t.to + e);
16459c16693
< p < d && c.push(new fn(p, d));
---
> p < d && c.push(new Rn(p, d));
16476c16710
< n.push(new qn(p, f, i.tree, -o, r.from >= p, r.to <= f)),
---
> n.push(new ui(p, f, i.tree, -o, r.from >= p, r.to <= f)),
16482c16716
< else n.push(new qn(s, l, i.tree, -o, r.from >= o, r.to <= a));
---
> else n.push(new ui(s, l, i.tree, -o, r.from >= o, r.to <= a));
16494c16728
< var ni = (function () {
---
> var Si = (function () {
16521c16755
< ri.from(i, this.length - (t - e) + n.length)
---
> Ti.from(i, this.length - (t - e) + n.length)
16530c16764
< return this.decompose(e, t, n, 0), ri.from(n, t - e);
---
> return this.decompose(e, t, n, 0), Ti.from(n, t - e);
16538,16539c16772,16773
< i = new si(this),
< r = new si(e),
---
> i = new Li(this),
> r = new Li(e),
16558c16792
< return void 0 === e && (e = 1), new si(this, e);
---
> return void 0 === e && (e = 1), new Li(this, e);
16561c16795
< return void 0 === t && (t = this.length), new li(this, e, t);
---
> return void 0 === t && (t = this.length), new Pi(this, e, t);
16581c16815
< return new ci(n);
---
> return new Ii(n);
16595,16596c16829,16830
< ? new ii(t)
< : ri.from(ii.split(t, []))
---
> ? new Mi(t)
> : Ti.from(Mi.split(t, []))
16602c16836
< ii = (function (e) {
---
> Mi = (function (e) {
16634c16868
< if ((t ? n : a) >= e) return new ui(i, a, n, o);
---
> if ((t ? n : a) >= e) return new Oi(i, a, n, o);
16643c16877
< ai(this.text, e, n),
---
> Ai(this.text, e, n),
16648c16882
< s = oi(o.text, a.text.slice(), 0, o.length);
---
> s = Di(o.text, a.text.slice(), 0, o.length);
16659c16893
< var o = oi(this.text, oi(r.text, ai(this.text, 0, n)), i),
---
> var o = Di(this.text, Di(r.text, Ai(this.text, 0, n)), i),
16661c16895
< return o.length <= 32 ? new t(o, a) : ri.from(t.split(o, []), a);
---
> return o.length <= 32 ? new t(o, a) : Ti.from(t.split(o, []), a);
16698,16699c16932,16933
< })(ni),
< ri = (function (e) {
---
> })(Si),
> Ti = (function (e) {
16812c17046
< return new ii(a, n);
---
> return new Mi(a, n);
16830c17064
< : e instanceof ii &&
---
> : e instanceof Mi &&
16832c17066
< (n = m[m.length - 1]) instanceof ii &&
---
> (n = m[m.length - 1]) instanceof Mi &&
16836c17070
< (m[m.length - 1] = new ii(
---
> (m[m.length - 1] = new Mi(
16858,16859c17092,17093
< })(ni);
< function oi(e, t, n, i) {
---
> })(Si);
> function Di(e, t, n, i) {
16872,16873c17106,17107
< function ai(e, t, n) {
< return oi(e, [""], t, n);
---
> function Ai(e, t, n) {
> return Di(e, [""], t, n);
16875,16876c17109,17110
< ni.empty = new ii([""], 0);
< var si = (function () {
---
> Si.empty = new Mi([""], 0);
> var Li = (function () {
16887c17121
< : (e instanceof ii ? e.text.length : e.children.length) << 1,
---
> : (e instanceof Mi ? e.text.length : e.children.length) << 1,
16897c17131
< a = i instanceof ii ? i.text.length : i.children.length;
---
> a = i instanceof Mi ? i.text.length : i.children.length;
16907c17141
< } else if (i instanceof ii) {
---
> } else if (i instanceof Mi) {
16928c17162
< : (s instanceof ii
---
> : (s instanceof Mi
16946c17180
< li = (function () {
---
> Pi = (function () {
16950c17184
< (this.cursor = new si(e, t > n ? -1 : 1)),
---
> (this.cursor = new Li(e, t > n ? -1 : 1)),
16997c17231
< ci = (function () {
---
> Ii = (function () {
17033c17267
< ((ni.prototype[Symbol.iterator] = function () {
---
> ((Si.prototype[Symbol.iterator] = function () {
17036,17038c17270,17272
< (si.prototype[Symbol.iterator] =
< li.prototype[Symbol.iterator] =
< ci.prototype[Symbol.iterator] =
---
> (Li.prototype[Symbol.iterator] =
> Pi.prototype[Symbol.iterator] =
> Ii.prototype[Symbol.iterator] =
17043c17277
< var ui = (function () {
---
> var Oi = (function () {
17061c17295
< hi =
---
> Fi =
17067,17069c17301,17303
< pi = 1;
< pi < hi.length;
< pi++
---
> Bi = 1;
> Bi < Fi.length;
> Bi++
17071,17074c17305,17308
< hi[pi] += hi[pi - 1];
< function di(e) {
< for (var t = 1; t < hi.length; t += 2)
< if (hi[t] > e) return hi[t - 1] <= e;
---
> Fi[Bi] += Fi[Bi - 1];
> function Ni(e) {
> for (var t = 1; t < Fi.length; t += 2)
> if (Fi[t] > e) return Fi[t - 1] <= e;
17077c17311
< function fi(e) {
---
> function Ri(e) {
17080c17314
< function mi(e, t, n, i) {
---
> function Hi(e, t, n, i) {
17084c17318
< (n ? gi : vi)(e, t, i)
---
> (n ? Vi : zi)(e, t, i)
17087c17321
< function gi(e, t, n) {
---
> function Vi(e, t, n) {
17089,17093c17323,17327
< t && yi(e.charCodeAt(t)) && bi(e.charCodeAt(t - 1)) && t--;
< var i = wi(e, t);
< for (t += Ci(i); t < e.length; ) {
< var r = wi(e, t);
< if (8205 == i || 8205 == r || (n && di(r))) (t += Ci(r)), (i = r);
---
> t && qi(e.charCodeAt(t)) && Ui(e.charCodeAt(t - 1)) && t--;
> var i = Wi(e, t);
> for (t += ji(i); t < e.length; ) {
> var r = Wi(e, t);
> if (8205 == i || 8205 == r || (n && Ni(r))) (t += ji(r)), (i = r);
17095,17096c17329,17330
< if (!fi(r)) break;
< for (var o = 0, a = t - 2; a >= 0 && fi(wi(e, a)); ) o++, (a -= 2);
---
> if (!Ri(r)) break;
> for (var o = 0, a = t - 2; a >= 0 && Ri(Wi(e, a)); ) o++, (a -= 2);
17103c17337
< function vi(e, t, n) {
---
> function zi(e, t, n) {
17105c17339
< var i = gi(e, t - 2, n);
---
> var i = Vi(e, t - 2, n);
17111c17345
< function yi(e) {
---
> function qi(e) {
17114c17348
< function bi(e) {
---
> function Ui(e) {
17117c17351
< function wi(e, t) {
---
> function Wi(e, t) {
17119c17353
< if (!bi(n) || t + 1 == e.length) return n;
---
> if (!Ui(n) || t + 1 == e.length) return n;
17121c17355
< return yi(i) ? i - 56320 + ((n - 55296) << 10) + 65536 : n;
---
> return qi(i) ? i - 56320 + ((n - 55296) << 10) + 65536 : n;
17123c17357
< function ki(e) {
---
> function _i(e) {
17129c17363
< function Ci(e) {
---
> function ji(e) {
17132,17133c17366,17367
< var xi = /\r\n?|\n/,
< Ei = (function (e) {
---
> var Gi = /\r\n?|\n/,
> Ki = (function (e) {
17141,17142c17375,17376
< })(Ei || (Ei = {})),
< Si = (function () {
---
> })(Ki || (Ki = {})),
> Yi = (function () {
17185c17419
< void 0 === t && (t = !1), Ai(this, e, t);
---
> void 0 === t && (t = !1), Qi(this, e, t);
17200c17434
< return this.empty ? e : e.empty ? this : Pi(this, e);
---
> return this.empty ? e : e.empty ? this : er(this, e);
17203c17437
< return void 0 === t && (t = !1), e.empty ? this : Li(this, e, t);
---
> return void 0 === t && (t = !1), e.empty ? this : Ji(this, e, t);
17206c17440
< void 0 === t && (t = -1), void 0 === n && (n = Ei.Simple);
---
> void 0 === t && (t = -1), void 0 === n && (n = Ki.Simple);
17216c17450
< n != Ei.Simple &&
---
> n != Ki.Simple &&
17218,17220c17452,17454
< ((n == Ei.TrackDel && i < e && l > e) ||
< (n == Ei.TrackBefore && i < e) ||
< (n == Ei.TrackAfter && l > e))
---
> ((n == Ki.TrackDel && i < e && l > e) ||
> (n == Ki.TrackBefore && i < e) ||
> (n == Ki.TrackAfter && l > e))
17277c17511
< Mi = (function (e) {
---
> Xi = (function (e) {
17290c17524
< Ai(
---
> Qi(
17301c17535
< return void 0 === t && (t = !1), Li(this, e, t, !0);
---
> return void 0 === t && (t = !1), Ji(this, e, t, !0);
17313,17314c17547,17548
< for (var l = r >> 1; i.length < l; ) i.push(ni.empty);
< i.push(a ? e.slice(o, o + a) : ni.empty);
---
> for (var l = r >> 1; i.length < l; ) i.push(Si.empty);
> i.push(a ? e.slice(o, o + a) : Si.empty);
17321c17555
< return this.empty ? e : e.empty ? this : Pi(this, e, !0);
---
> return this.empty ? e : e.empty ? this : er(this, e, !0);
17325c17559
< void 0 === t && (t = !1), e.empty ? this : Li(this, e, t, !0)
---
> void 0 === t && (t = !1), e.empty ? this : Ji(this, e, t, !0)
17329c17563
< void 0 === t && (t = !1), Ai(this, e, t);
---
> void 0 === t && (t = !1), Qi(this, e, t);
17333c17567
< return Si.create(this.sections);
---
> return Yi.create(this.sections);
17342c17576
< o = new Ii(this);
---
> o = new tr(this);
17350c17584
< Ti(r, (h = Math.min(o.len, l - s)), -1);
---
> $i(r, (h = Math.min(o.len, l - s)), -1);
17352,17353c17586,17587
< Ti(n, h, c),
< c > 0 && Di(i, n, o.text),
---
> $i(n, h, c),
> c > 0 && Zi(i, n, o.text),
17360,17361c17594,17595
< Ti(n, (h = Math.min(o.len, u - s)), -1),
< Ti(r, h, -1 == o.ins ? -1 : 0 == o.off ? o.ins : 0),
---
> $i(n, (h = Math.min(o.len, u - s)), -1),
> $i(r, h, -1 == o.ins ? -1 : 0 == o.off ? o.ins : 0),
17366c17600
< return { changes: new t(n, i), filtered: Si.create(r) };
---
> return { changes: new t(n, i), filtered: Yi.create(r) };
17387c17621
< a < n && Ti(r, n - a, -1);
---
> a < n && $i(r, n - a, -1);
17423c17657
< ? ni.of(m.split(i || xi))
---
> ? Si.of(m.split(i || Gi))
17425c17659
< : ni.empty,
---
> : Si.empty,
17429,17431c17663,17665
< p > a && Ti(r, p - a, -1),
< Ti(r, f - p, v),
< Di(o, r, g),
---
> p > a && $i(r, p - a, -1),
> $i(r, f - p, v),
> Zi(o, r, g),
17463,17464c17697,17698
< for (; i.length < r; ) i.push(ni.empty);
< (i[r] = ni.of(o.slice(1))), n.push(o[0], i[r].length);
---
> for (; i.length < r; ) i.push(Si.empty);
> (i[r] = Si.of(o.slice(1))), n.push(o[0], i[r].length);
17475,17476c17709,17710
< })(Si);
< function Ti(e, t, n, i) {
---
> })(Yi);
> function $i(e, t, n, i) {
17488c17722
< function Di(e, t, n) {
---
> function Zi(e, t, n) {
17493c17727
< for (; e.length < i; ) e.push(ni.empty);
---
> for (; e.length < i; ) e.push(Si.empty);
17498c17732
< function Ai(e, t, n) {
---
> function Qi(e, t, n) {
17505c17739
< var c = r, u = o, h = ni.empty;
---
> var c = r, u = o, h = Si.empty;
17517c17751
< function Li(e, t, n, i) {
---
> function Ji(e, t, n, i) {
17520c17754
< var r = [], o = i ? [] : null, a = new Ii(e), s = new Ii(t), l = -1;
---
> var r = [], o = i ? [] : null, a = new tr(e), s = new tr(t), l = -1;
17525c17759
< Ti(r, (c = Math.min(a.len, s.len)), -1), a.forward(c), s.forward(c);
---
> $i(r, (c = Math.min(a.len, s.len)), -1), a.forward(c), s.forward(c);
17533c17767
< for (Ti(r, s.ins, -1); c; ) {
---
> for ($i(r, s.ins, -1); c; ) {
17538c17772
< (Ti(r, 0, a.ins), o && Di(o, r, a.text), (l = a.i)),
---
> ($i(r, 0, a.ins), o && Zi(o, r, a.text), (l = a.i)),
17546c17780
< return o ? Mi.createSet(r, o) : Si.create(r);
---
> return o ? Xi.createSet(r, o) : Yi.create(r);
17557,17558c17791,17792
< Ti(r, c, l < a.i ? a.ins : 0),
< o && l < a.i && Di(o, r, a.text),
---
> $i(r, c, l < a.i ? a.ins : 0),
> o && l < a.i && Zi(o, r, a.text),
17564c17798
< function Pi(e, t, n) {
---
> function er(e, t, n) {
17567c17801
< var i = [], r = n ? [] : null, o = new Ii(e), a = new Ii(t), s = !1;
---
> var i = [], r = n ? [] : null, o = new tr(e), a = new tr(t), s = !1;
17571,17572c17805,17806
< if (o.done && a.done) return r ? Mi.createSet(i, r) : Si.create(i);
< if (0 == o.ins) Ti(i, o.len, 0, s), o.next();
---
> if (o.done && a.done) return r ? Xi.createSet(i, r) : Yi.create(i);
> if (0 == o.ins) $i(i, o.len, 0, s), o.next();
17580c17814
< Ti(i, l, u, s), r && u && Di(r, i, a.text);
---
> $i(i, l, u, s), r && u && Zi(r, i, a.text);
17583,17585c17817,17819
< ? (Ti(i, o.off ? 0 : o.len, l, s), r && Di(r, i, o.textBit(l)))
< : (Ti(i, o.off ? 0 : o.len, a.off ? 0 : a.ins, s),
< r && !a.off && Di(r, i, a.text));
---
> ? ($i(i, o.off ? 0 : o.len, l, s), r && Zi(r, i, o.textBit(l)))
> : ($i(i, o.off ? 0 : o.len, a.off ? 0 : a.ins, s),
> r && !a.off && Zi(r, i, a.text));
17590c17824
< } else Ti(i, 0, a.ins, s), r && Di(r, i, a.text), a.next();
---
> } else $i(i, 0, a.ins, s), r && Zi(r, i, a.text), a.next();
17593c17827
< var Ii = (function () {
---
> var tr = (function () {
17623c17857
< return t >= e.length ? ni.empty : e[t];
---
> return t >= e.length ? Si.empty : e[t];
17632c17866
< ? ni.empty
---
> ? Si.empty
17648c17882
< Oi = (function () {
---
> nr = (function () {
17711c17945
< return Fi.range(e, t);
---
> return ir.range(e, t);
17714c17948
< return Fi.range(this.anchor, n);
---
> return ir.range(this.anchor, n);
17731c17965
< return Fi.range(e.anchor, e.head);
---
> return ir.range(e.anchor, e.head);
17739c17973
< Fi = (function () {
---
> ir = (function () {
17808c18042
< return Oi.fromJSON(e);
---
> return nr.fromJSON(e);
17830c18064
< Oi.create(
---
> nr.create(
17844,17845c18078,18079
< ? Oi.create(t, e, 24 | r)
< : Oi.create(e, t, (t > e ? 4 : 0) | r);
---
> ? nr.create(t, e, 24 | r)
> : nr.create(e, t, (t > e ? 4 : 0) | r);
17873c18107
< function Bi(e, t) {
---
> function rr(e, t) {
17879,17880c18113,18114
< var Ni = 0,
< Ri = (function () {
---
> var or = 0,
> ar = (function () {
17886c18120
< (this.id = Ni++),
---
> (this.id = or++),
17908c18142
< : Hi),
---
> : sr),
17915c18149
< return new Vi([], this, 0, e);
---
> return new lr([], this, 0, e);
17920c18154
< return new Vi(e, this, 1, t);
---
> return new lr(e, this, 1, t);
17925c18159
< return new Vi(e, this, 2, t);
---
> return new lr(e, this, 2, t);
17941c18175
< function Hi(e, t) {
---
> function sr(e, t) {
17950c18184
< var Vi = (function () {
---
> var lr = (function () {
17956c18190
< (this.id = Ni++);
---
> (this.id = or++);
17992c18226
< qi(e, u)
---
> ur(e, u)
17995c18229
< if (s ? !zi(n, e.values[a], r) : !r(n, e.values[a]))
---
> if (s ? !cr(n, e.values[a], r) : !r(n, e.values[a]))
18004c18238
< var u = tr(t, c);
---
> var u = xr(t, c);
18007c18241
< return n instanceof Ri
---
> return n instanceof ar
18009c18243
< : !(n instanceof _i) ||
---
> : !(n instanceof pr) ||
18012c18246
< (s ? zi((l = i(e)), u, r) : r((l = i(e)), u))
---
> (s ? cr((l = i(e)), u, r) : r((l = i(e)), u))
18023c18257
< function zi(e, t, n) {
---
> function cr(e, t, n) {
18028c18262
< function qi(e, t) {
---
> function ur(e, t) {
18030c18264
< 1 & er(e, r[i]) && (n = !0);
---
> 1 & Er(e, r[i]) && (n = !0);
18034,18035c18268,18269
< var Ui = Ri.define({ static: !0 }),
< _i = (function () {
---
> var hr = ar.define({ static: !0 }),
> pr = (function () {
18047c18281
< Ni++,
---
> or++,
18060c18294
< n = e.facet(Ui).find(function (e) {
---
> n = e.facet(hr).find(function (e) {
18085c18319
< return [this, Ui.of({ field: this, create: e })];
---
> return [this, hr.of({ field: this, create: e })];
18097,18101c18331,18335
< ji = 4,
< Wi = 3,
< Gi = 2,
< Ki = 1;
< function Yi(e) {
---
> dr = 4,
> fr = 3,
> mr = 2,
> gr = 1;
> function vr(e) {
18103c18337
< return new Zi(t, e);
---
> return new br(t, e);
18106,18111c18340,18345
< var Xi = {
< highest: Yi(0),
< high: Yi(Ki),
< default: Yi(Gi),
< low: Yi(Wi),
< lowest: Yi(ji),
---
> var yr = {
> highest: vr(0),
> high: vr(gr),
> default: vr(mr),
> low: vr(fr),
> lowest: vr(dr),
18113c18347
< Zi = function (e, t) {
---
> br = function (e, t) {
18116c18350
< $i = (function () {
---
> wr = (function () {
18120c18354
< return new Qi(this, e);
---
> return new kr(this, e);
18131c18365
< Qi = function (e, t) {
---
> kr = function (e, t) {
18134c18368
< Ji = (function () {
---
> Cr = (function () {
18169c18403
< e instanceof Qi && n.delete(e.compartment);
---
> e instanceof kr && n.delete(e.compartment);
18175c18409
< else if (e instanceof Qi) {
---
> else if (e instanceof kr) {
18182,18183c18416,18417
< } else if (e instanceof Zi) o(e.inner, e.prec);
< else if (e instanceof _i)
---
> } else if (e instanceof br) o(e.inner, e.prec);
> else if (e instanceof pr)
18185c18419
< else if (e instanceof Vi)
---
> else if (e instanceof lr)
18187c18421
< e.facet.extensions && o(e.facet.extensions, Gi);
---
> e.facet.extensions && o(e.facet.extensions, mr);
18200c18434
< o(e, Gi),
---
> o(e, mr),
18210c18444
< c instanceof _i
---
> c instanceof pr
18241c18475
< if (((u[n.id] = (h.length << 1) | 1), Hi(r, t)))
---
> if (((u[n.id] = (h.length << 1) | 1), sr(r, t)))
18283c18517
< var a = tr(e, i[o]);
---
> var a = xr(e, i[o]);
18296c18530
< er(e, n[t]);
---
> Er(e, n[t]);
18300c18534
< if (!qi(e, o)) return 0;
---
> if (!ur(e, o)) return 0;
18307c18541
< var o = qi(e, i),
---
> var o = ur(e, i),
18310c18544
< if (l && !o && Hi(n, l))
---
> if (l && !o && sr(n, l))
18337c18571
< function er(e, t) {
---
> function Er(e, t) {
18348c18582
< function tr(e, t) {
---
> function xr(e, t) {
18351,18352c18585,18586
< var nr = Ri.define(),
< ir = Ri.define({
---
> var Sr = ar.define(),
> Mr = ar.define({
18360c18594
< rr = Ri.define({
---
> Tr = ar.define({
18366,18369c18600,18603
< or = Ri.define(),
< ar = Ri.define(),
< sr = Ri.define(),
< lr = Ri.define({
---
> Dr = ar.define(),
> Ar = ar.define(),
> Lr = ar.define(),
> Pr = ar.define({
18374c18608
< cr = (function () {
---
> Ir = (function () {
18380c18614
< return new ur();
---
> return new Or();
18385c18619
< ur = (function () {
---
> Or = (function () {
18389c18623
< return new cr(this, e);
---
> return new Ir(this, e);
18394c18628
< hr = (function () {
---
> Fr = (function () {
18400c18634
< return new pr(this, e);
---
> return new Br(this, e);
18405c18639
< pr = (function () {
---
> Br = (function () {
18424c18658
< new hr(
---
> new Fr(
18443,18444c18677,18678
< (pr.reconfigure = pr.define()), (pr.appendConfig = pr.define());
< var dr = (function () {
---
> (Br.reconfigure = Br.define()), (Br.appendConfig = Br.define());
> var Nr = (function () {
18454c18688
< i && Bi(i, n.newLength),
---
> i && rr(i, n.newLength),
18527c18761
< function fr(e, t) {
---
> function Rr(e, t) {
18542c18776
< function mr(e, t, n) {
---
> function Hr(e, t, n) {
18547c18781
< (o = Mi.empty(t.changes.length)),
---
> (o = Xi.empty(t.changes.length)),
18559,18561c18793,18795
< effects: pr
< .mapEffects(e.effects, r)
< .concat(pr.mapEffects(t.effects, o)),
---
> effects: Br.mapEffects(e.effects, r).concat(
> Br.mapEffects(t.effects, o)
> ),
18569c18803
< function gr(e, t, n) {
---
> function Vr(e, t, n) {
18571c18805
< r = br(t.annotations);
---
> r = Ur(t.annotations);
18573c18807
< t.userEvent && (r = r.concat(dr.userEvent.of(t.userEvent))),
---
> t.userEvent && (r = r.concat(Nr.userEvent.of(t.userEvent))),
18576c18810
< t.changes instanceof Mi
---
> t.changes instanceof Xi
18578,18580c18812,18814
< : Mi.of(t.changes || [], n, e.facet(rr)),
< selection: i && (i instanceof Fi ? i : Fi.single(i.anchor, i.head)),
< effects: br(t.effects),
---
> : Xi.of(t.changes || [], n, e.facet(Tr)),
> selection: i && (i instanceof ir ? i : ir.single(i.anchor, i.head)),
> effects: Ur(t.effects),
18586,18587c18820,18821
< function vr(e, t, n) {
< var i = gr(e, t.length ? t[0] : {}, e.doc.length);
---
> function zr(e, t, n) {
> var i = Vr(e, t.length ? t[0] : {}, e.doc.length);
18592c18826
< i = mr(i, gr(e, t[r], o ? i.changes.newLength : e.doc.length), o);
---
> i = Hr(i, Vr(e, t[r], o ? i.changes.newLength : e.doc.length), o);
18594c18828
< var a = dr.create(
---
> var a = Nr.create(
18604c18838
< var t = e.startState, n = t.facet(sr), i = e, r = n.length - 1;
---
> var t = e.startState, n = t.facet(Lr), i = e, r = n.length - 1;
18611c18845
< (i = mr(i, gr(t, o, e.changes.newLength), !0));
---
> (i = Hr(i, Vr(t, o, e.changes.newLength), !0));
18615c18849
< : dr.create(
---
> : Nr.create(
18627c18861
< var t = e.startState, n = !0, i = 0, r = t.facet(or);
---
> var t = e.startState, n = !0, i = 0, r = t.facet(Dr);
18636c18870
< Array.isArray(o) && (n = !0 === n ? o : fr(n, o));
---
> Array.isArray(o) && (n = !0 === n ? o : Rr(n, o));
18642c18876
< (s = e.changes.invertedDesc), (a = Mi.empty(t.doc.length));
---
> (s = e.changes.invertedDesc), (a = Xi.empty(t.doc.length));
18646c18880
< e = dr.create(
---
> e = Nr.create(
18650c18884
< pr.mapEffects(e.effects, s),
---
> Br.mapEffects(e.effects, s),
18655c18889
< for (var l = t.facet(ar), c = l.length - 1; c >= 0; c--) {
---
> for (var l = t.facet(Ar), c = l.length - 1; c >= 0; c--) {
18658c18892
< (u = l[c](e)) instanceof dr
---
> (u = l[c](e)) instanceof Nr
18660c18894
< : Array.isArray(u) && 1 == u.length && u[0] instanceof dr
---
> : Array.isArray(u) && 1 == u.length && u[0] instanceof Nr
18662c18896
< : vr(t, br(u), !1);
---
> : zr(t, Ur(u), !1);
18669,18675c18903,18909
< (dr.time = cr.define()),
< (dr.userEvent = cr.define()),
< (dr.addToHistory = cr.define()),
< (dr.remote = cr.define());
< var yr = [];
< function br(e) {
< return null == e ? yr : Array.isArray(e) ? e : [e];
---
> (Nr.time = Ir.define()),
> (Nr.userEvent = Ir.define()),
> (Nr.addToHistory = Ir.define()),
> (Nr.remote = Ir.define());
> var qr = [];
> function Ur(e) {
> return null == e ? qr : Array.isArray(e) ? e : [e];
18677,18678c18911,18912
< var wr,
< kr = (function (e) {
---
> var Wr,
> _r = (function (e) {
18685,18686c18919,18920
< })(kr || (kr = {})),
< Cr =
---
> })(_r || (_r = {})),
> jr =
18689c18923
< wr = new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
---
> Wr = new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
18691c18925
< function xr(e) {
---
> function Gr(e) {
18693c18927
< if (!/\S/.test(t)) return kr.Space;
---
> if (!/\S/.test(t)) return _r.Space;
18696c18930
< if (wr) return wr.test(e);
---
> if (Wr) return Wr.test(e);
18701c18935
< (n > "€" && (n.toUpperCase() != n.toLowerCase() || Cr.test(n)))
---
> (n > "€" && (n.toUpperCase() != n.toLowerCase() || jr.test(n)))
18708c18942
< return kr.Word;
---
> return _r.Word;
18710,18711c18944,18945
< if (t.indexOf(e[n]) > -1) return kr.Word;
< return kr.Other;
---
> if (t.indexOf(e[n]) > -1) return _r.Word;
> return _r.Other;
18714c18948
< var Er = (function () {
---
> var Kr = (function () {
18724c18958
< er(this, a << 1);
---
> Er(this, a << 1);
18731c18965
< if (null != n) return er(this, n), tr(this, n);
---
> if (null != n) return Er(this, n), xr(this, n);
18737c18971
< return vr(this, e, !0);
---
> return zr(this, e, !0);
18752c18986
< c.is($i.reconfigure)
---
> c.is(wr.reconfigure)
18760c18994
< : c.is(pr.reconfigure)
---
> : c.is(Br.reconfigure)
18762,18763c18996,18997
< : c.is(pr.appendConfig) &&
< ((r = null), (o = br(o).concat(c.value)));
---
> : c.is(Br.appendConfig) &&
> ((r = null), (o = Ur(o).concat(c.value)));
18768c19002
< (r = Ji.resolve(o, a, this)),
---
> (r = Cr.resolve(o, a, this)),
18796c19030
< range: Fi.cursor(t.from + e.length),
---
> range: ir.cursor(t.from + e.length),
18807c19041
< o = br(n.effects),
---
> o = Ur(n.effects),
18824,18826c19058,19060
< (o = pr
< .mapEffects(o, c)
< .concat(pr.mapEffects(br(s.effects), h)));
---
> (o = Br.mapEffects(o, c).concat(
> Br.mapEffects(Ur(s.effects), h)
> ));
18830c19064
< selection: Fi.create(r, t.mainIndex),
---
> selection: ir.create(r, t.mainIndex),
18837c19071
< t instanceof Mi
---
> t instanceof Xi
18839c19073
< : Mi.of(t, this.doc.length, this.facet(e.lineSeparator))
---
> : Xi.of(t, this.doc.length, this.facet(e.lineSeparator))
18843c19077
< return ni.of(t.split(this.facet(e.lineSeparator) || xi));
---
> return Si.of(t.split(this.facet(e.lineSeparator) || Gi));
18854c19088
< return null == t ? e.default : (er(this, t), tr(this, t));
---
> return null == t ? e.default : (Er(this, t), xr(this, t));
18864c19098
< i instanceof _i &&
---
> i instanceof pr &&
18892c19126
< selection: Fi.fromJSON(t.selection),
---
> selection: ir.fromJSON(t.selection),
18898c19132
< var n = Ji.resolve(t.extensions || [], new Map()),
---
> var n = Cr.resolve(t.extensions || [], new Map()),
18900c19134
< t.doc instanceof ni
---
> t.doc instanceof Si
18902,18903c19136,19137
< : ni.of(
< (t.doc || "").split(n.staticFacet(e.lineSeparator) || xi)
---
> : Si.of(
> (t.doc || "").split(n.staticFacet(e.lineSeparator) || Gi)
18906c19140
< ? t.selection instanceof Fi
---
> ? t.selection instanceof ir
18908,18909c19142,19143
< : Fi.single(t.selection.anchor, t.selection.head)
< : Fi.single(0);
---
> : ir.single(t.selection.anchor, t.selection.head)
> : ir.single(0);
18911,18912c19145,19146
< Bi(r, i.length),
< n.staticFacet(ir) || (r = r.asSingle()),
---
> rr(r, i.length),
> n.staticFacet(Mr) || (r = r.asSingle()),
18943c19177
< return this.facet(lr);
---
> return this.facet(Pr);
18970c19204
< for (var i = [], r = 0, o = this.facet(nr); r < o.length; r++)
---
> for (var i = [], r = 0, o = this.facet(Sr); r < o.length; r++)
18978c19212
< return xr(this.languageDataAt("wordChars", e).join(""));
---
> return Gr(this.languageDataAt("wordChars", e).join(""));
18992,18993c19226,19227
< var l = mi(n, a, !1);
< if (o(n.slice(l, a)) != kr.Word) break;
---
> var l = Hi(n, a, !1);
> if (o(n.slice(l, a)) != _r.Word) break;
18997,18998c19231,19232
< var c = mi(n, s);
< if (o(n.slice(s, c)) != kr.Word) break;
---
> var c = Hi(n, s);
> if (o(n.slice(s, c)) != _r.Word) break;
19001c19235
< return a == s ? null : Fi.range(a + i, s + i);
---
> return a == s ? null : ir.range(a + i, s + i);
19006c19240
< function Sr(e, t, n) {
---
> function Yr(e, t, n) {
19023,19024c19257,19258
< (Er.allowMultipleSelections = ir),
< (Er.tabSize = Ri.define({
---
> (Kr.allowMultipleSelections = Mr),
> (Kr.tabSize = ar.define({
19029,19031c19263,19265
< (Er.lineSeparator = rr),
< (Er.readOnly = lr),
< (Er.phrases = Ri.define({
---
> (Kr.lineSeparator = Tr),
> (Kr.readOnly = Pr),
> (Kr.phrases = ar.define({
19043,19048c19277,19282
< (Er.languageData = nr),
< (Er.changeFilter = or),
< (Er.transactionFilter = ar),
< (Er.transactionExtender = sr),
< ($i.reconfigure = pr.define());
< var Mr = (function () {
---
> (Kr.languageData = Sr),
> (Kr.changeFilter = Dr),
> (Kr.transactionFilter = Ar),
> (Kr.transactionExtender = Lr),
> (wr.reconfigure = Br.define());
> var Xr = (function () {
19055c19289
< return void 0 === t && (t = e), Tr.create(e, t, this);
---
> return void 0 === t && (t = e), $r.create(e, t, this);
19060,19063c19294,19297
< (Mr.prototype.startSide = Mr.prototype.endSide = 0),
< (Mr.prototype.point = !1),
< (Mr.prototype.mapMode = Ei.TrackDel);
< var Tr = (function () {
---
> (Xr.prototype.startSide = Xr.prototype.endSide = 0),
> (Xr.prototype.point = !1),
> (Xr.prototype.mapMode = Ki.TrackDel);
> var $r = (function () {
19074c19308
< function Dr(e, t) {
---
> function Zr(e, t) {
19077c19311
< var Ar = (function () {
---
> var Qr = (function () {
19152c19386
< Lr = (function () {
---
> Jr = (function () {
19202c19436
< if ((o && (i = i.slice().sort(Dr)), this.isEmpty))
---
> if ((o && (i = i.slice().sort(Zr)), this.isEmpty))
19205c19439
< var h = new Or(this, null, -1).goto(0),
---
> var h = new no(this, null, -1).goto(0),
19208c19442
< f = new Pr();
---
> f = new eo();
19236c19470
< d.push(Tr.create(h.from, h.to, h.value))),
---
> d.push($r.create(h.from, h.to, h.value))),
19287c19521
< return void 0 === e && (e = 0), Fr.from([this]).goto(e);
---
> return void 0 === e && (e = 0), io.from([this]).goto(e);
19297c19531
< return void 0 === t && (t = 0), Fr.from(e).goto(t);
---
> return void 0 === t && (t = 0), io.from(e).goto(t);
19307,19309c19541,19543
< s = Ir(o, a, n),
< l = new Nr(o, s, r),
< c = new Nr(a, s, r);
---
> s = to(o, a, n),
> l = new oo(o, s, r),
> c = new oo(a, s, r);
19311c19545
< return Rr(l, e, c, t, n, i);
---
> return ao(l, e, c, t, n, i);
19313c19547
< n.empty && 0 == n.length && Rr(l, 0, c, 0, 0, i);
---
> n.empty && 0 == n.length && ao(l, 0, c, 0, 0, i);
19326,19328c19560,19562
< var a = Ir(r, o),
< s = new Nr(r, a, 0).goto(n),
< l = new Nr(o, a, 0).goto(n);
---
> var a = to(r, o),
> s = new oo(r, a, 0).goto(n),
> l = new oo(o, a, 0).goto(n);
19334c19568
< !Hr(s.active, l.active) ||
---
> !so(s.active, l.active) ||
19345c19579
< var o = new Nr(e, null, r).goto(t), a = t, s = o.openStart;
---
> var o = new oo(e, null, r).goto(t), a = t, s = o.openStart;
19363c19597
< var n = new Pr(),
---
> var n = new eo(),
19366c19600
< e instanceof Tr
---
> e instanceof $r
19373c19607
< if (Dr(t, i) > 0) return e.slice().sort(Dr);
---
> if (Zr(t, i) > 0) return e.slice().sort(Zr);
19390,19391c19624,19625
< (Lr.empty = new Lr([], [], null, -1)), (Lr.empty.nextLayer = Lr.empty);
< var Pr = (function () {
---
> (Jr.empty = new Jr([], [], null, -1)), (Jr.empty.nextLayer = Jr.empty);
> var eo = (function () {
19409c19643
< new Ar(this.from, this.to, this.value, this.maxPoint)
---
> new Qr(this.from, this.to, this.value, this.maxPoint)
19462c19696
< return this.finishInner(Lr.empty);
---
> return this.finishInner(Jr.empty);
19470c19704
< var t = Lr.create(
---
> var t = Jr.create(
19481c19715
< function Ir(e, t, n) {
---
> function to(e, t, n) {
19495c19729
< var Or = (function () {
---
> var no = (function () {
19600c19834
< Fr = (function () {
---
> io = (function () {
19609c19843
< a.maxPoint >= i && r.push(new Or(a, n, i, o));
---
> a.maxPoint >= i && r.push(new no(a, n, i, o));
19624c19858
< for (var r = this.heap.length >> 1; r >= 0; r--) Br(this.heap, r);
---
> for (var r = this.heap.length >> 1; r >= 0; r--) ro(this.heap, r);
19631c19865
< for (var r = this.heap.length >> 1; r >= 0; r--) Br(this.heap, r);
---
> for (var r = this.heap.length >> 1; r >= 0; r--) ro(this.heap, r);
19646c19880
< Br(this.heap, 0);
---
> ro(this.heap, 0);
19652c19886
< function Br(e, t) {
---
> function ro(e, t) {
19667c19901
< var Nr = (function () {
---
> var oo = (function () {
19680c19914
< (this.cursor = Fr.from(e, t, n));
---
> (this.cursor = io.from(e, t, n));
19711,19714c19945,19948
< Vr(this.active, e),
< Vr(this.activeTo, e),
< Vr(this.activeRank, e),
< (this.minActive = qr(this.active, this.activeTo));
---
> lo(this.active, e),
> lo(this.activeTo, e),
> lo(this.activeRank, e),
> (this.minActive = uo(this.active, this.activeTo));
19723,19727c19957,19961
< zr(this.active, t, i),
< zr(this.activeTo, t, r),
< zr(this.activeRank, t, o),
< e && zr(e, t, this.cursor.from),
< (this.minActive = qr(this.active, this.activeTo));
---
> co(this.active, t, i),
> co(this.activeTo, t, r),
> co(this.activeRank, t, o),
> e && co(e, t, this.cursor.from),
> (this.minActive = uo(this.active, this.activeTo));
19745c19979
< this.removeActive(i), n && Vr(n, i);
---
> this.removeActive(i), n && lo(n, i);
19809c20043
< function Rr(e, t, n, i, r, o) {
---
> function ao(e, t, n, i, r, o) {
19820c20054
< Hr(e.activeForPoint(e.to + l), n.activeForPoint(n.to))) ||
---
> so(e.activeForPoint(e.to), n.activeForPoint(n.to))) ||
19823c20057
< !Hr(e.active, n.active) &&
---
> !so(e.active, n.active) &&
19831c20065
< function Hr(e, t) {
---
> function so(e, t) {
19837c20071
< function Vr(e, t) {
---
> function lo(e, t) {
19841c20075
< function zr(e, t, n) {
---
> function co(e, t, n) {
19845c20079
< function qr(e, t) {
---
> function uo(e, t) {
19851c20085
< function Ur(e, t, n) {
---
> function ho(e, t, n) {
19856c20090
< : (i++, (r = mi(e, r)));
---
> : (i++, (r = Hi(e, r)));
19859c20093
< function _r(e, t, n, i) {
---
> function po(e, t, n, i) {
19863c20097
< (o += 9 == e.charCodeAt(r) ? n - (o % n) : 1), (r = mi(e, r));
---
> (o += 9 == e.charCodeAt(r) ? n - (o % n) : 1), (r = Hi(e, r));
19867,19868c20101,20102
< const jr = "undefined" == typeof Symbol ? "__ͼ" : Symbol.for("ͼ"),
< Wr =
---
> const fo = "undefined" == typeof Symbol ? "__ͼ" : Symbol.for("ͼ"),
> mo =
19872c20106
< Gr =
---
> go =
19878c20112
< class Kr {
---
> class vo {
19934,19935c20168,20169
< let e = Gr[jr] || 1;
< return (Gr[jr] = e + 1), "ͼ" + e.toString(36);
---
> let e = go[fo] || 1;
> return (go[fo] = e + 1), "ͼ" + e.toString(36);
19938c20172
< (e[Wr] || new Xr(e)).mount(Array.isArray(t) ? t : [t]);
---
> (e[mo] || new bo(e)).mount(Array.isArray(t) ? t : [t]);
19941,19942c20175,20176
< let Yr = null;
< class Xr {
---
> let yo = null;
> class bo {
19949c20183
< if (Yr)
---
> if (yo)
19951c20185
< (e.adoptedStyleSheets = [Yr.sheet].concat(
---
> (e.adoptedStyleSheets = [yo.sheet].concat(
19954c20188
< (e[Wr] = Yr)
---
> (e[mo] = yo)
19960c20194
< (Yr = this);
---
> (yo = this);
19966c20200
< (this.modules = []), (e[Wr] = this);
---
> (this.modules = []), (e[mo] = this);
19996c20230
< var Zr = {
---
> var wo = {
20051c20285
< $r = {
---
> ko = {
20078c20312
< Qr =
---
> Co =
20081c20315
< Jr =
---
> Eo =
20084c20318
< eo =
---
> xo =
20087c20321
< to =
---
> So =
20089c20323
< no =
---
> Mo =
20094,20097c20328,20331
< io = (Qr && (to || +Qr[1] < 57)) || (eo && to),
< ro = 0;
< ro < 10;
< ro++
---
> To = (Co && (So || +Co[1] < 57)) || (xo && So),
> Do = 0;
> Do < 10;
> Do++
20099,20105c20333,20339
< Zr[48 + ro] = Zr[96 + ro] = String(ro);
< for (ro = 1; ro <= 24; ro++) Zr[ro + 111] = "F" + ro;
< for (ro = 65; ro <= 90; ro++)
< (Zr[ro] = String.fromCharCode(ro + 32)),
< ($r[ro] = String.fromCharCode(ro));
< for (var oo in Zr) $r.hasOwnProperty(oo) || ($r[oo] = Zr[oo]);
< function ao(e) {
---
> wo[48 + Do] = wo[96 + Do] = String(Do);
> for (Do = 1; Do <= 24; Do++) wo[Do + 111] = "F" + Do;
> for (Do = 65; Do <= 90; Do++)
> (wo[Do] = String.fromCharCode(Do + 32)),
> (ko[Do] = String.fromCharCode(Do));
> for (var Ao in wo) ko.hasOwnProperty(Ao) || (ko[Ao] = wo[Ao]);
> function Lo(e) {
20108,20109c20342,20343
< (io && (e.ctrlKey || e.altKey || e.metaKey)) ||
< ((Jr || no) && e.shiftKey && e.key && 1 == e.key.length)
---
> (To && (e.ctrlKey || e.altKey || e.metaKey)) ||
> ((Eo || Mo) && e.shiftKey && e.key && 1 == e.key.length)
20112c20346
< (e.shiftKey ? $r : Zr)[e.keyCode] ||
---
> (e.shiftKey ? ko : wo)[e.keyCode] ||
20125c20359
< function so(e) {
---
> function Po(e) {
20130c20364
< function lo(e, t) {
---
> function Io(e, t) {
20135c20369
< function co(e, t) {
---
> function Oo(e, t) {
20138c20372
< return lo(e, t.anchorNode);
---
> return Io(e, t.anchorNode);
20143c20377
< function uo(e) {
---
> function Fo(e) {
20145c20379
< ? Co(e, 0, e.nodeValue.length).getClientRects()
---
> ? jo(e, 0, e.nodeValue.length).getClientRects()
20150,20151c20384,20385
< function ho(e, t, n, i) {
< return !!n && (fo(e, t, n, i, -1) || fo(e, t, n, i, 1));
---
> function Bo(e, t, n, i) {
> return !!n && (Ro(e, t, n, i, -1) || Ro(e, t, n, i, 1));
20153c20387
< function po(e) {
---
> function No(e) {
20156c20390
< function fo(e, t, n, i, r) {
---
> function Ro(e, t, n, i, r) {
20159c20393
< if (t == (r < 0 ? 0 : mo(e))) {
---
> if (t == (r < 0 ? 0 : Ho(e))) {
20163c20397
< (t = po(e) + (r < 0 ? 0 : 1)), (e = o);
---
> (t = No(e) + (r < 0 ? 0 : 1)), (e = o);
20171c20405
< t = r < 0 ? mo(e) : 0;
---
> t = r < 0 ? Ho(e) : 0;
20175c20409
< function mo(e) {
---
> function Ho(e) {
20178c20412
< function go(e, t) {
---
> function Vo(e, t) {
20182c20416
< function vo(e) {
---
> function zo(e) {
20185,20186c20419,20420
< var yo,
< bo = (function () {
---
> var qo,
> Uo = (function () {
20219,20220c20453,20454
< wo = null;
< function ko(e) {
---
> Wo = null;
> function _o(e) {
20222c20456
< if (wo) return e.focus(wo);
---
> if (Wo) return e.focus(Wo);
20230c20464
< null == wo
---
> null == Wo
20233c20467
< return (wo = { preventScroll: !0 }), !0;
---
> return (Wo = { preventScroll: !0 }), !0;
20238c20472
< !wo)
---
> !Wo)
20240c20474
< wo = !1;
---
> Wo = !1;
20250c20484
< function Co(e, t, n) {
---
> function jo(e, t, n) {
20252c20486
< var i = yo || (yo = document.createRange());
---
> var i = qo || (qo = document.createRange());
20255c20489
< function xo(e, t, n) {
---
> function Go(e, t, n) {
20266c20500
< function Eo(e) {
---
> function Ko(e) {
20269c20503
< var So = (function () {
---
> var Yo = (function () {
20278c20512
< return new e(t.parentNode, po(t), n);
---
> return new e(t.parentNode, No(t), n);
20281c20515
< return new e(t.parentNode, po(t) + 1, n);
---
> return new e(t.parentNode, No(t) + 1, n);
20286,20287c20520,20521
< Mo = [],
< To = (function () {
---
> Xo = [],
> $o = (function () {
20355c20589
< for (; o && o != h.dom; ) o = Do(o);
---
> for (; o && o != h.dom; ) o = Zo(o);
20367c20601
< o = Do(o);
---
> o = Zo(o);
20379c20613
< for (var r = 0 == mo(t) ? 0 : 0 == n ? -1 : 1; ; ) {
---
> for (var r = 0 == Ho(t) ? 0 : 0 == n ? -1 : 1; ; ) {
20462c20696
< void 0 === n && (n = Mo), this.markDirty();
---
> void 0 === n && (n = Xo), this.markDirty();
20479c20713
< new Ao(this.children, e, this.children.length)
---
> new Qo(this.children, e, this.children.length)
20539c20773
< function Do(e) {
---
> function Zo(e) {
20543,20544c20777,20778
< To.prototype.breakAfter = 0;
< var Ao = (function () {
---
> $o.prototype.breakAfter = 0;
> var Qo = (function () {
20566c20800
< function Lo(e, t, n, i, r, o, a, s, l) {
---
> function Jo(e, t, n, i, r, o, a, s, l) {
20621c20855
< function Po(e, t, n, i, r, o) {
---
> function ea(e, t, n, i, r, o) {
20638c20872
< (e.length += d), Lo(e, h, p, l, c, i, 0, r, o);
---
> (e.length += d), Jo(e, h, p, l, c, i, 0, r, o);
20640c20874
< var Io =
---
> var ta =
20644c20878
< Oo =
---
> na =
20648,20665c20882,20899
< Fo = /Edge\/(\d+)/.exec(Io.userAgent),
< Bo = /MSIE \d/.test(Io.userAgent),
< No = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Io.userAgent),
< Ro = !!(Bo || No || Fo),
< Ho = !Ro && /gecko\/(\d+)/i.test(Io.userAgent),
< Vo = !Ro && /Chrome\/(\d+)/.exec(Io.userAgent),
< zo = "webkitFontSmoothing" in Oo.documentElement.style,
< qo = !Ro && /Apple Computer/.test(Io.vendor),
< Uo = qo && (/Mobile\/\w+/.test(Io.userAgent) || Io.maxTouchPoints > 2),
< _o = {
< mac: Uo || /Mac/.test(Io.platform),
< windows: /Win/.test(Io.platform),
< linux: /Linux|X11/.test(Io.platform),
< ie: Ro,
< ie_version: Bo ? Oo.documentMode || 6 : No ? +No[1] : Fo ? +Fo[1] : 0,
< gecko: Ho,
< gecko_version: Ho
< ? +(/Firefox\/(\d+)/.exec(Io.userAgent) || [0, 0])[1]
---
> ia = /Edge\/(\d+)/.exec(ta.userAgent),
> ra = /MSIE \d/.test(ta.userAgent),
> oa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ta.userAgent),
> aa = !!(ra || oa || ia),
> sa = !aa && /gecko\/(\d+)/i.test(ta.userAgent),
> la = !aa && /Chrome\/(\d+)/.exec(ta.userAgent),
> ca = "webkitFontSmoothing" in na.documentElement.style,
> ua = !aa && /Apple Computer/.test(ta.vendor),
> ha = ua && (/Mobile\/\w+/.test(ta.userAgent) || ta.maxTouchPoints > 2),
> pa = {
> mac: ha || /Mac/.test(ta.platform),
> windows: /Win/.test(ta.platform),
> linux: /Linux|X11/.test(ta.platform),
> ie: aa,
> ie_version: ra ? na.documentMode || 6 : oa ? +oa[1] : ia ? +ia[1] : 0,
> gecko: sa,
> gecko_version: sa
> ? +(/Firefox\/(\d+)/.exec(ta.userAgent) || [0, 0])[1]
20667,20673c20901,20907
< chrome: !!Vo,
< chrome_version: Vo ? +Vo[1] : 0,
< ios: Uo,
< android: /Android\b/.test(Io.userAgent),
< webkit: zo,
< safari: qo,
< webkit_version: zo
---
> chrome: !!la,
> chrome_version: la ? +la[1] : 0,
> ios: ha,
> android: /Android\b/.test(ta.userAgent),
> webkit: ca,
> safari: ua,
> webkit_version: ca
20677c20911
< null != Oo.documentElement.style.tabSize
---
> null != na.documentElement.style.tabSize
20681c20915
< jo = (function (e) {
---
> da = (function (e) {
20728c20962
< return new So(this.dom, e);
---
> return new Yo(this.dom, e);
20739c20973
< return Go(this.dom, e, t);
---
> return ma(this.dom, e, t);
20743,20744c20977,20978
< })(To),
< Wo = (function (e) {
---
> })($o),
> fa = (function (e) {
20758c20992
< (Eo(e),
---
> (Ko(e),
20786c21020
< (Po(this, e, n, i ? i.children : [], o - 1, a - 1),
---
> (ea(this, e, n, i ? i.children : [], o - 1, a - 1),
20812c21046
< return ea(this, e);
---
> return Ea(this, e);
20815c21049
< return na(this, e, t);
---
> return Sa(this, e, t);
20819,20820c21053,21054
< })(To);
< function Go(e, t, n) {
---
> })($o);
> function ma(e, t, n) {
20827,20828c21061,21062
< ? _o.chrome ||
< _o.gecko ||
---
> ? pa.chrome ||
> pa.gecko ||
20833c21067
< var s = Co(e, r, o).getClientRects();
---
> var s = jo(e, r, o).getClientRects();
20837c21071
< _o.safari &&
---
> pa.safari &&
20844c21078
< a ? go(l, a < 0) : l || null
---
> a ? Vo(l, a < 0) : l || null
20847c21081
< var Ko = (function (e) {
---
> var ga = (function (e) {
20913c21147
< if (0 == this.length) return ni.empty;
---
> if (0 == this.length) return Si.empty;
20918c21152
< return n ? n.slice(i, i + this.length) : ni.empty;
---
> return n ? n.slice(i, i + this.length) : Si.empty;
20925,20926c21159,21160
< ? So.before(this.dom)
< : So.after(this.dom, e == this.length);
---
> ? Yo.before(this.dom)
> : Yo.after(this.dom, e == this.length);
20943c21177
< return this.length ? r : go(r, this.side > 0);
---
> return this.length ? r : Vo(r, this.side > 0);
20972,20973c21206,21207
< })(To),
< Yo = (function (e) {
---
> })($o),
> va = (function (e) {
20984c21218
< ? Xo(
---
> ? ya(
20994c21228
< return new So(e, Math.min(t, e.nodeValue.length));
---
> return new Yo(e, Math.min(t, e.nodeValue.length));
20997c21231
< : new So(i, Math.min(e, i.nodeValue.length));
---
> : new Yo(i, Math.min(e, i.nodeValue.length));
21007c21241
< ? $o(e, t, i, r, this.length - i.length)
---
> ? wa(e, t, i, r, this.length - i.length)
21025c21259
< ? Xo(
---
> ? ya(
21035c21269
< return Go(e, t, n);
---
> return ma(e, t, n);
21038c21272
< : Go(r, e, t);
---
> : ma(r, e, t);
21059,21061c21293,21295
< })(Ko);
< function Xo(e, t, n, i, r, o, a) {
< if (n instanceof Wo) {
---
> })(ga);
> function ya(e, t, n, i, r, o, a) {
> if (n instanceof fa) {
21063c21297
< var l = To.get(s);
---
> var l = $o.get(s);
21065c21299
< var c = lo(s, i),
---
> var c = Io(s, i),
21068c21302
< return c ? Xo(e, t, l, i, r, o, a) : o(l, e, t);
---
> return c ? ya(e, t, l, i, r, o, a) : o(l, e, t);
21071c21305
< var h = Zo(e, t, s, a);
---
> var h = ba(e, t, s, a);
21080c21314
< function Zo(e, t, n, i) {
---
> function ba(e, t, n, i) {
21087c21321
< var a = Zo(e, t, o, i);
---
> var a = ba(e, t, o, i);
21093,21094c21327,21328
< function $o(e, t, n, i, r) {
< if (n instanceof Wo)
---
> function wa(e, t, n, i, r) {
> if (n instanceof fa)
21096c21330
< var s = To.get(a);
---
> var s = $o.get(a);
21098,21100c21332,21334
< var l = lo(a, i);
< if (lo(a, e))
< return o + (l ? $o(e, t, s, i, r) : s.localPosFromDOM(e, t));
---
> var l = Io(a, i);
> if (Io(a, e))
> return o + (l ? wa(e, t, s, i, r) : s.localPosFromDOM(e, t));
21103c21337
< var c = Qo(e, t, a);
---
> var c = ka(e, t, a);
21111c21345
< function Qo(e, t, n) {
---
> function ka(e, t, n) {
21119c21353
< var a = Qo(e, t, r);
---
> var a = ka(e, t, r);
21124c21358
< var Jo = (function (e) {
---
> var Ca = (function (e) {
21159c21393
< return this.side > 0 ? So.before(this.dom) : So.after(this.dom);
---
> return this.side > 0 ? Yo.before(this.dom) : Yo.after(this.dom);
21172c21406
< return ni.empty;
---
> return Si.empty;
21186,21187c21420,21421
< })(To);
< function ea(e, t) {
---
> })($o);
> function Ea(e, t) {
21206c21440
< return new So(n, 0);
---
> return new Yo(n, 0);
21208c21442
< function ta(e, t, n) {
---
> function xa(e, t, n) {
21212c21446
< t instanceof Wo &&
---
> t instanceof fa &&
21214c21448
< (i = r[r.length - 1]) instanceof Wo &&
---
> (i = r[r.length - 1]) instanceof fa &&
21216c21450
< ? ta(i, t.children[0], n - 1)
---
> ? xa(i, t.children[0], n - 1)
21220c21454
< function na(e, t, n) {
---
> function Sa(e, t, n) {
21246c21480
< var n = uo(t);
---
> var n = Fo(t);
21250c21484
< function ia(e, t) {
---
> function Ma(e, t) {
21259c21493
< function ra(e, t) {
---
> function Ta(e, t) {
21271c21505
< function oa(e, t, n) {
---
> function Da(e, t, n) {
21278,21282c21512,21516
< jo.prototype.children =
< Ko.prototype.children =
< Jo.prototype.children =
< Mo;
< var aa = (function () {
---
> da.prototype.children =
> ga.prototype.children =
> Ca.prototype.children =
> Xo;
> var Aa = (function () {
21335c21569
< sa = (function (e) {
---
> La = (function (e) {
21343,21344c21577,21578
< })(sa || (sa = {})),
< la = (function (e) {
---
> })(La || (La = {})),
> Pa = (function (e) {
21365c21599
< return new ca(e);
---
> return new Ia(e);
21370c21604
< return new ha(
---
> return new Fa(
21385c21619
< var r = pa(e, i);
---
> var r = Ba(e, i);
21389c21623
< return new ha(e, t, n, i, e.widget || null, !0);
---
> return new Fa(e, t, n, i, e.widget || null, !0);
21392c21626
< return new ua(e);
---
> return new Oa(e);
21395c21629
< return void 0 === t && (t = !1), Lr.of(e, t);
---
> return void 0 === t && (t = !1), Jr.of(e, t);
21402,21404c21636,21638
< })(Mr);
< la.none = Lr.empty;
< var ca = (function (e) {
---
> })(Xr);
> Pa.none = Jr.empty;
> var Ia = (function (e) {
21407c21641
< i = pa(t),
---
> i = Ba(t),
21427c21661
< ra(this.attrs, e.attrs))
---
> Ta(this.attrs, e.attrs))
21437,21439c21671,21673
< })(la);
< ca.prototype.point = !1;
< var ua = (function (e) {
---
> })(Pa);
> Ia.prototype.point = !1;
> var Oa = (function (e) {
21449c21683
< ra(this.spec.attributes, e.spec.attributes)
---
> Ta(this.spec.attributes, e.spec.attributes)
21461,21463c21695,21697
< })(la);
< (ua.prototype.mapMode = Ei.TrackBefore), (ua.prototype.point = !0);
< var ha = (function (e) {
---
> })(Pa);
> (Oa.prototype.mapMode = Ki.TrackBefore), (Oa.prototype.point = !0);
> var Fa = (function (e) {
21471,21473c21705,21707
< ? Ei.TrackBefore
< : Ei.TrackAfter
< : Ei.TrackDel),
---
> ? Ki.TrackBefore
> : Ki.TrackAfter
> : Ki.TrackDel),
21482c21716
< ? sa.WidgetRange
---
> ? La.WidgetRange
21484,21485c21718,21719
< ? sa.WidgetBefore
< : sa.WidgetAfter;
---
> ? La.WidgetBefore
> : La.WidgetAfter;
21527,21528c21761,21762
< })(la);
< function pa(e, t) {
---
> })(Pa);
> function Ba(e, t) {
21538c21772
< function da(e, t, n, i) {
---
> function Na(e, t, n, i) {
21543,21544c21777,21778
< ha.prototype.point = !0;
< var fa = (function (e) {
---
> Fa.prototype.point = !0;
> var Ra = (function (e) {
21565c21799
< Po(this, e, n, i ? i.children : [], o, a),
---
> ea(this, e, n, i ? i.children : [], o, a),
21608c21842
< ra(this.attrs, e) ||
---
> Ta(this.attrs, e) ||
21613c21847
< ta(this, e, t);
---
> xa(this, e, t);
21618,21619c21852,21853
< t && (this.attrs = ia(t, this.attrs || {})),
< n && (this.attrs = ia({ class: n }, this.attrs || {}));
---
> t && (this.attrs = Ma(t, this.attrs || {})),
> n && (this.attrs = Ma({ class: n }, this.attrs || {}));
21622c21856
< return ea(this, e);
---
> return Ea(this, e);
21633c21867
< (Eo(this.dom),
---
> (Ko(this.dom),
21640c21874
< (oa(this.dom, this.prevAttrs, this.attrs),
---
> (Da(this.dom, this.prevAttrs, this.attrs),
21644c21878
< for (var r = this.dom.lastChild; r && To.get(r) instanceof Wo; )
---
> for (var r = this.dom.lastChild; r && $o.get(r) instanceof fa; )
21652c21886
< (null === (i = To.get(r)) || void 0 === i
---
> (null === (i = $o.get(r)) || void 0 === i
21655c21889
< (_o.ios &&
---
> (pa.ios &&
21657c21891
< return e instanceof jo;
---
> return e instanceof da;
21669,21670c21903,21904
< if (!(r instanceof jo) || /[^ -~]/.test(r.text)) return null;
< var o = uo(r.dom);
---
> if (!(r instanceof da) || /[^ -~]/.test(r.text)) return null;
> var o = Fo(r.dom);
21683c21917
< var n = na(this, e, t);
---
> var n = Sa(this, e, t);
21704c21938
< return sa.Text;
---
> return La.Text;
21723,21724c21957,21958
< })(To),
< ma = (function (e) {
---
> })($o),
> Ha = (function (e) {
21751,21752c21985,21986
< ? So.before(this.dom)
< : So.after(this.dom, e == this.length);
---
> ? Yo.before(this.dom)
> : Yo.after(this.dom, e == this.length);
21762c21996
< return Mo;
---
> return Xo;
21783c22017
< : ni.empty;
---
> : Si.empty;
21836,21837c22070,22071
< })(To),
< ga = (function () {
---
> })($o),
> Va = (function () {
21866c22100
< (e instanceof ma && e.type == sa.WidgetBefore)
---
> (e instanceof Ha && e.type == La.WidgetBefore)
21872c22106
< (this.content.push((this.curLine = new fa())),
---
> (this.content.push((this.curLine = new Ra())),
21880c22114
< (this.curLine.append(va(new Jo(-1), e), e.length),
---
> (this.curLine.append(za(new Ca(-1), e), e.length),
21919,21920c22153,22154
< va(
< new jo(this.text.slice(this.textOff, this.textOff + s)),
---
> za(
> new da(this.text.slice(this.textOff, this.textOff + s)),
21937c22171
< if (this.disallowBlockEffectsFor[o] && n instanceof ha) {
---
> if (this.disallowBlockEffectsFor[o] && n instanceof Fa) {
21948c22182
< if (n instanceof ha)
---
> if (n instanceof Fa)
21951c22185
< s != sa.WidgetAfter || this.posCovered() || this.getLine(),
---
> s != La.WidgetAfter || this.posCovered() || this.getLine(),
21953c22187
< new ma(n.widget || new ya("div"), a, s)
---
> new Ha(n.widget || new qa("div"), a, s)
21956,21957c22190,22191
< var l = Ko.create(
< n.widget || new ya("span"),
---
> var l = ga.create(
> n.widget || new qa("span"),
21976c22210
< (h.append(va(new Jo(1), i), r),
---
> (h.append(za(new Ca(1), i), r),
21978c22212
< h.append(va(l, i), r),
---
> h.append(za(l, i), r),
22002c22236
< (a.openEnd = Lr.spans(r, n, i, a)),
---
> (a.openEnd = Jr.spans(r, n, i, a)),
22011c22245
< function va(e, t) {
---
> function za(e, t) {
22014c22248
< e = new Wo(r, [e], e.length);
---
> e = new fa(r, [e], e.length);
22018c22252
< var ya = (function (e) {
---
> var qa = (function (e) {
22043,22051c22277,22285
< })(aa),
< ba = Ri.define(),
< wa = Ri.define(),
< ka = Ri.define(),
< Ca = Ri.define(),
< xa = Ri.define(),
< Ea = Ri.define(),
< Sa = Ri.define(),
< Ma = Ri.define({
---
> })(Aa),
> Ua = ar.define(),
> Wa = ar.define(),
> _a = ar.define(),
> ja = ar.define(),
> Ga = ar.define(),
> Ka = ar.define(),
> Ya = ar.define(),
> Xa = ar.define({
22058c22292
< Ta = Ri.define({
---
> $a = ar.define({
22065c22299
< Da = (function () {
---
> Za = (function () {
22092c22326
< Aa = pr.define({
---
> Qa = Br.define({
22097,22098c22331,22332
< function La(e, t, n) {
< var i = e.facet(Ca);
---
> function Ja(e, t, n) {
> var i = e.facet(ja);
22107c22341
< var Pa = Ri.define({
---
> var es = ar.define({
22112,22114c22346,22348
< Ia = 0,
< Oa = Ri.define(),
< Fa = (function () {
---
> ts = 0,
> ns = ar.define(),
> is = (function () {
22127,22128c22361,22362
< return new e(Ia++, t, r, function (e) {
< var t = [Oa.of(e)];
---
> return new e(ts++, t, r, function (e) {
> var t = [ns.of(e)];
22132c22366
< Ha.of(function (t) {
---
> ss.of(function (t) {
22134c22368
< return n ? a(n) : la.none;
---
> return n ? a(n) : Pa.none;
22150c22384
< Ba = (function () {
---
> rs = (function () {
22164c22398
< (La(t.state, e, "CodeMirror plugin crashed"),
---
> (Ja(t.state, e, "CodeMirror plugin crashed"),
22177c22411
< La(e.state, t, "CodeMirror plugin crashed"),
---
> Ja(e.state, t, "CodeMirror plugin crashed"),
22190c22424
< La(e.state, t, "CodeMirror plugin crashed");
---
> Ja(e.state, t, "CodeMirror plugin crashed");
22199,22205c22433,22439
< Na = Ri.define(),
< Ra = Ri.define(),
< Ha = Ri.define(),
< Va = Ri.define(),
< za = Ri.define(),
< qa = Ri.define(),
< Ua = (function () {
---
> os = ar.define(),
> as = ar.define(),
> ss = ar.define(),
> ls = ar.define(),
> cs = ar.define(),
> us = ar.define(),
> hs = (function () {
22255c22489
< _a = (function () {
---
> ps = (function () {
22262c22496
< (this.changes = Mi.empty(this.startState.doc.length));
---
> (this.changes = Xi.empty(this.startState.doc.length));
22269c22503
< return a.push(new Ua(e, t, n, i));
---
> return a.push(new hs(e, t, n, i));
22331c22565
< ja = (function (e) {
---
> ds = (function (e) {
22333,22336c22567,22570
< })(ja || (ja = {})),
< Wa = ja.LTR,
< Ga = ja.RTL;
< function Ka(e) {
---
> })(ds || (ds = {})),
> fs = ds.LTR,
> ms = ds.RTL;
> function gs(e) {
22341c22575
< var Ya = Ka(
---
> var vs = gs(
22344c22578
< Xa = Ka(
---
> ys = gs(
22347,22352c22581,22586
< Za = Object.create(null),
< $a = [],
< Qa = 0,
< Ja = ["()", "[]", "{}"];
< Qa < Ja.length;
< Qa++
---
> bs = Object.create(null),
> ws = [],
> ks = 0,
> Cs = ["()", "[]", "{}"];
> ks < Cs.length;
> ks++
22354,22357c22588,22591
< var es = Ja[Qa],
< ts = es.charCodeAt(0),
< ns = es.charCodeAt(1);
< (Za[ts] = ns), (Za[ns] = -ts);
---
> var Es = Cs[ks],
> xs = Es.charCodeAt(0),
> Ss = Es.charCodeAt(1);
> (bs[xs] = Ss), (bs[Ss] = -xs);
22359c22593
< function is(e) {
---
> function Ms(e) {
22361c22595
< ? Ya[e]
---
> ? vs[e]
22365c22599
< ? Xa[e - 1536]
---
> ? ys[e - 1536]
22376,22377c22610,22611
< var rs = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,
< os = (function () {
---
> var Ts = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,
> Ds = (function () {
22384c22618
< return this.level % 2 ? Ga : Wa;
---
> return this.level % 2 ? ms : fs;
22412,22413c22646,22647
< as = [];
< function ss(e, t) {
---
> As = [];
> function Ls(e, t) {
22415,22417c22649,22651
< i = t == Wa ? 1 : 2,
< r = t == Wa ? 2 : 1;
< if (!e || (1 == i && !rs.test(e))) return ls(n);
---
> i = t == fs ? 1 : 2,
> r = t == fs ? 2 : 1;
> if (!e || (1 == i && !Ts.test(e))) return Ps(n);
22419c22653
< 512 == (m = is(e.charCodeAt(o)))
---
> 512 == (m = Ms(e.charCodeAt(o)))
22422c22656
< (as[o] = 4 == m ? 2 : m),
---
> (As[o] = 4 == m ? 2 : m),
22427,22430c22661,22664
< if (128 == (m = as[o]))
< o < n - 1 && a == as[o + 1] && 24 & a
< ? (m = as[o] = a)
< : (as[o] = 256);
---
> if (128 == (m = As[o]))
> o < n - 1 && a == As[o + 1] && 24 & a
> ? (m = As[o] = a)
> : (As[o] = 256);
22432c22666
< for (var l = o + 1; l < n && 64 == as[l]; ) l++;
---
> for (var l = o + 1; l < n && 64 == As[l]; ) l++;
22435c22669
< (o && 8 == a) || (l < n && 8 == as[l])
---
> (o && 8 == a) || (l < n && 8 == As[l])
22444c22678
< as[u] = c;
---
> As[u] = c;
22446c22680
< } else 8 == m && 1 == s && (as[o] = 1);
---
> } else 8 == m && 1 == s && (As[o] = 1);
22451c22685
< if ((f = Za[(d = e.charCodeAt(o))]))
---
> if ((f = bs[(d = e.charCodeAt(o))]))
22454,22455c22688,22689
< if ($a[g + 1] == -f) {
< var v = $a[g + 2],
---
> if (ws[g + 1] == -f) {
> var v = ws[g + 2],
22457c22691
< y && (as[o] = as[$a[g]] = y), (h = g);
---
> y && (As[o] = As[ws[g]] = y), (h = g);
22461,22462c22695,22696
< if (189 == $a.length) break;
< ($a[h++] = o), ($a[h++] = d), ($a[h++] = p);
---
> if (189 == ws.length) break;
> (ws[h++] = o), (ws[h++] = d), (ws[h++] = p);
22464c22698
< else if (2 == (m = as[o]) || 1 == m) {
---
> else if (2 == (m = As[o]) || 1 == m) {
22468c22702
< var w = $a[g + 2];
---
> var w = ws[g + 2];
22470c22704
< if (b) $a[g + 2] |= 2;
---
> if (b) ws[g + 2] |= 2;
22473c22707
< $a[g + 2] |= 4;
---
> ws[g + 2] |= 4;
22478,22480c22712,22714
< if (256 == as[o]) {
< for (l = o + 1; l < n && 256 == as[l]; ) l++;
< var k = 1 == (o ? as[o - 1] : i);
---
> if (256 == As[o]) {
> for (l = o + 1; l < n && 256 == As[l]; ) l++;
> var k = 1 == (o ? As[o - 1] : i);
22482c22716
< c = k == (1 == (l < n ? as[l] : i)) ? (k ? 1 : 2) : i, u = o;
---
> c = k == (1 == (l < n ? As[l] : i)) ? (k ? 1 : 2) : i, u = o;
22486c22720
< as[u] = c;
---
> As[u] = c;
22492,22494c22726,22728
< for (var x = o, E = 1 != as[o++]; o < n && E == (1 != as[o]); ) o++;
< if (E)
< for (u = o; u > x; ) {
---
> for (var E = o, x = 1 != As[o++]; o < n && x == (1 != As[o]); ) o++;
> if (x)
> for (u = o; u > E; ) {
22496c22730
< for (var S = 2 != as[--u]; u > x && S == (2 != as[u - 1]); )
---
> for (var S = 2 != As[--u]; u > E && S == (2 != As[u - 1]); )
22498c22732
< C.push(new os(u, l, S ? 2 : 1));
---
> C.push(new Ds(u, l, S ? 2 : 1));
22500c22734
< else C.push(new os(x, o, 0));
---
> else C.push(new Ds(E, o, 0));
22504,22505c22738,22739
< for (x = o, E = 2 == as[o++]; o < n && E == (2 == as[o]); ) o++;
< C.push(new os(x, o, E ? 1 : 2));
---
> for (E = o, x = 2 == As[o++]; o < n && x == (2 == As[o]); ) o++;
> C.push(new Ds(E, o, x ? 1 : 2));
22509,22510c22743,22744
< function ls(e) {
< return [new os(0, e, 0)];
---
> function Ps(e) {
> return [new Ds(0, e, 0)];
22512,22513c22746,22747
< var cs = "";
< function us(e, t, n, i, r) {
---
> var Is = "";
> function Os(e, t, n, i, r) {
22526c22760
< (s = os.find(
---
> (s = Ds.find(
22535c22769
< h = mi(e.text, a, u);
---
> h = Hi(e.text, a, u);
22537c22771
< ((cs = e.text.slice(Math.min(a, h), Math.max(a, h))),
---
> ((Is = e.text.slice(Math.min(a, h), Math.max(a, h))),
22540c22774
< return Fi.cursor(h + e.from, u ? -1 : 1, c.level);
---
> return ir.cursor(h + e.from, u ? -1 : 1, c.level);
22544,22546c22778,22780
< ? Fi.cursor(p.side(!r, n) + e.from, r ? 1 : -1, p.level)
< : Fi.cursor(h + e.from, r ? -1 : 1, c.level)
< : Fi.cursor(r ? e.to : e.from, r ? -1 : 1, n);
---
> ? ir.cursor(p.side(!r, n) + e.from, r ? 1 : -1, p.level)
> : ir.cursor(h + e.from, r ? -1 : 1, c.level)
> : ir.cursor(r ? e.to : e.from, r ? -1 : 1, n);
22548,22549c22782,22783
< var hs = "￿",
< ps = (function () {
---
> var Fs = "￿",
> Bs = (function () {
22553c22787
< (this.lineSeparator = t.facet(Er.lineSeparator));
---
> (this.lineSeparator = t.facet(Kr.lineSeparator));
22560c22794
< this.text += hs;
---
> this.text += Fs;
22568,22569c22802,22803
< var o = To.get(i),
< a = To.get(r);
---
> var o = $o.get(i),
> a = $o.get(r);
22572,22573c22806,22807
< : (o ? o.breakAfter : ds(i)) ||
< (ds(r) && ("BR" != i.nodeName || i.cmIgnore))) &&
---
> : (o ? o.breakAfter : Ns(i)) ||
> (Ns(r) && ("BR" != i.nodeName || i.cmIgnore))) &&
22613c22847
< var t = To.get(e),
---
> var t = $o.get(e),
22645c22879
< function ds(e) {
---
> function Ns(e) {
22651c22885
< var fs = function (e, t) {
---
> var Rs = function (e, t) {
22654c22888
< ms = (function (e) {
---
> Hs = (function (e) {
22659c22893
< (n.compositionDeco = la.none),
---
> (n.compositionDeco = Pa.none),
22670c22904
< (n.children = [new fa()]),
---
> (n.children = [new Ra()]),
22673c22907
< n.updateInner([new Ua(0, 0, 0, t.state.doc.length)], 0),
---
> n.updateInner([new hs(0, 0, 0, t.state.doc.length)], 0),
22702c22936
< ? (this.compositionDeco = la.none)
---
> ? (this.compositionDeco = Pa.none)
22705,22706c22939,22940
< var n = vs(e);
< if (!n) return la.none;
---
> var n = zs(e);
> if (!n) return Pa.none;
22717c22951
< : new ps([], c).readRange(o.firstChild, null).text;
---
> : new Bs([], c).readRange(o.firstChild, null).text;
22723c22957
< hs
---
> Fs
22732c22966
< hs
---
> Fs
22735c22969
< return la.none;
---
> return Pa.none;
22738,22740c22972,22974
< else if (c.doc.sliceString(s, l, hs) != u) return la.none;
< var h = To.get(o);
< h instanceof Yo
---
> else if (c.doc.sliceString(s, l, Fs) != u) return Pa.none;
> var h = $o.get(o);
> h instanceof va
22743,22746c22977,22981
< return la.set(
< la
< .replace({ widget: new ys(o, a, h), inclusive: !0 })
< .range(s, l)
---
> return Pa.set(
> Pa.replace({
> widget: new qs(o, a, h),
> inclusive: !0,
> }).range(s, l)
22749c22984
< (_o.ie || _o.chrome) &&
---
> (pa.ie || pa.chrome) &&
22764,22765c22999,23000
< (a = new ws()),
< Lr.compare(i, r, o, a),
---
> (a = new Ws()),
> Jr.compare(i, r, o, a),
22768c23003
< (n = Ua.extendWithRanges(n, c)),
---
> (n = hs.extendWithRanges(n, c)),
22784c23019
< _o.chrome || _o.ios
---
> pa.chrome || pa.ios
22801c23036
< s instanceof ma && s.widget instanceof gs && r.push(s.dom);
---
> s instanceof Ha && s.widget instanceof Vs && r.push(s.dom);
22813c23048
< c = ga.build(
---
> c = Va.build(
22828c23063
< Lo(this, v.i, v.off, m, g, u, h, p, d);
---
> Jo(this, v.i, v.off, m, g, u, h, p, d);
22841c23076
< co(this.dom, this.view.observer.selectionRange) &&
---
> Oo(this.dom, this.view.observer.selectionRange) &&
22850c23085
< _o.gecko &&
---
> pa.gecko &&
22872c23107
< (l = c = new So(u, 0)),
---
> (l = c = new Yo(u, 0)),
22878,22879c23113,23114
< ho(l.node, l.offset, h.anchorNode, h.anchorOffset) &&
< ho(c.node, c.offset, h.focusNode, h.focusOffset)) ||
---
> Bo(l.node, l.offset, h.anchorNode, h.anchorOffset) &&
> Bo(c.node, c.offset, h.focusNode, h.focusOffset)) ||
22882,22883c23117,23118
< _o.android &&
< _o.chrome &&
---
> pa.android &&
> pa.chrome &&
22898c23133
< a = so(n.view.root);
---
> a = Po(n.view.root);
22901c23136
< if (_o.gecko) {
---
> if (pa.gecko) {
22916c23151
< var p = bs(l.node, l.offset, 1 == u ? 1 : -1);
---
> var p = Us(l.node, l.offset, 1 == u ? 1 : -1);
22918c23153
< (l = new So(p, 1 == u ? 0 : p.nodeValue.length));
---
> (l = new Yo(p, 1 == u ? 0 : p.nodeValue.length));
22947c23182
< : new So(h.anchorNode, h.anchorOffset)),
---
> : new Yo(h.anchorNode, h.anchorOffset)),
22950c23185
< : new So(h.focusNode, h.focusOffset));
---
> : new Yo(h.focusNode, h.focusOffset));
22957c23192
< n = so(e.root),
---
> n = Po(e.root),
22962c23197
< var a = fa.find(this, t.head);
---
> var a = Ra.find(this, t.head);
22988c23223
< var n = To.get(t);
---
> var n = $o.get(t);
23009c23244
< if (i < r.length || r instanceof fa) break;
---
> if (i < r.length || r instanceof Ra) break;
23021,23022c23256,23257
< r.type != sa.WidgetBefore &&
< r.type != sa.WidgetAfter &&
---
> r.type != La.WidgetBefore &&
> r.type != La.WidgetAfter &&
23026c23261
< (this.children[i - 1].type == sa.WidgetBefore && t > -2)))
---
> (this.children[i - 1].type == La.WidgetBefore && t > -2)))
23043c23278
< s = this.view.textDirection == ja.LTR,
---
> s = this.view.textDirection == ds.LTR,
23056c23291
< f = d ? uo(d) : [];
---
> f = d ? Fo(d) : [];
23075,23076c23310,23311
< ? ja.RTL
< : ja.LTR;
---
> ? ds.RTL
> : ds.LTR;
23081c23316
< if (i instanceof fa) {
---
> if (i instanceof Ra) {
23096c23331
< var t = uo(l.firstChild)[0];
---
> var t = Fo(l.firstChild)[0];
23110c23345
< new Ao(this.children, e, t)
---
> new Qo(this.children, e, t)
23120,23127c23355,23360
< la
< .replace({
< widget: new gs(a),
< block: !0,
< inclusive: !0,
< isBlockGap: !0,
< })
< .range(n, o)
---
> Pa.replace({
> widget: new Vs(a),
> block: !0,
> inclusive: !0,
> isBlockGap: !0,
> }).range(n, o)
23133c23366
< return la.set(e);
---
> return Pa.set(e);
23138c23371
< t = this.view.state.facet(Ha).map(function (t, n) {
---
> t = this.view.state.facet(ss).map(function (t, n) {
23182c23415
< u = this.view.state.facet(za).map(function (e) {
---
> u = this.view.state.facet(cs).map(function (e) {
23217c23450
< if (p) h = vo(c);
---
> if (p) h = zo(c);
23314c23547
< this.view.textDirection == ja.LTR
---
> this.view.textDirection == ds.LTR
23321,23322c23554,23555
< })(To);
< var gs = (function (e) {
---
> })($o);
> var Vs = (function (e) {
23348,23349c23581,23582
< })(aa);
< function vs(e) {
---
> })(Aa);
> function zs(e) {
23351c23584
< n = t.focusNode && bs(t.focusNode, t.focusOffset, 0);
---
> n = t.focusNode && Us(t.focusNode, t.focusOffset, 0);
23355c23588
< if (i instanceof fa) {
---
> if (i instanceof Ra) {
23357c23590
< for (var o = r.previousSibling; o && !To.get(o); )
---
> for (var o = r.previousSibling; o && !$o.get(o); )
23359c23592
< var a = o ? To.get(o).posAtEnd : i.posAtStart;
---
> var a = o ? $o.get(o).posAtEnd : i.posAtStart;
23365c23598
< if (s instanceof fa) break;
---
> if (s instanceof Ra) break;
23371c23604
< var ys = (function (e) {
---
> var qs = (function (e) {
23389c23622
< return Yo;
---
> return va;
23396,23397c23629,23630
< })(aa);
< function bs(e, t, n) {
---
> })(Aa);
> function Us(e, t, n) {
23402c23635
< r = mo((i = i.childNodes[r - 1]));
---
> r = Ho((i = i.childNodes[r - 1]));
23412c23645
< var ws = (function () {
---
> var Ws = (function () {
23418c23651
< da(e, t, this.changes);
---
> Na(e, t, this.changes);
23421c23654
< da(e, t, this.changes);
---
> Na(e, t, this.changes);
23426c23659
< function ks(e, t) {
---
> function _s(e, t) {
23429c23662
< function Cs(e, t) {
---
> function js(e, t) {
23432c23665
< function xs(e, t) {
---
> function Gs(e, t) {
23435c23668
< function Es(e, t) {
---
> function Ks(e, t) {
23440c23673
< function Ss(e, t) {
---
> function Ys(e, t) {
23445c23678
< function Ms(e, t, n) {
---
> function Xs(e, t, n) {
23451c23684
< for (var d = uo(p), f = 0; f < d.length; f++) {
---
> for (var d = Fo(p), f = 0; f < d.length; f++) {
23453,23455c23686,23688
< r && xs(r, m) && (m = Es(Ss(m, r.bottom), r.top));
< var g = ks(t, m),
< v = Cs(n, m);
---
> r && Gs(r, m) && (m = Ks(Ys(m, r.bottom), r.top));
> var g = _s(t, m),
> v = js(n, m);
23457c23690
< return 3 == p.nodeType ? Ts(p, t, n) : Ms(p, t, n);
---
> return 3 == p.nodeType ? $s(p, t, n) : Xs(p, t, n);
23467,23469c23700,23702
< : c && xs(c, m)
< ? (c = Ss(c, m.bottom))
< : u && xs(u, m) && (u = Es(u, m.top));
---
> : c && Gs(c, m)
> ? (c = Ys(c, m.bottom))
> : u && Gs(u, m) && (u = Ks(u, m.top));
23480c23713
< ? Ts(i, b, n)
---
> ? $s(i, b, n)
23482c23715
< ? Ms(i, b, n)
---
> ? Xs(i, b, n)
23490c23723
< function Ts(e, t, n) {
---
> function $s(e, t, n) {
23497c23730
< var l = Co(e, s, s + 1).getClientRects(), c = 0;
---
> var l = jo(e, s, s + 1).getClientRects(), c = 0;
23508,23509c23741,23742
< if (_o.chrome || _o.gecko)
< Co(e, s).getBoundingClientRect().left == u.right && (d = !p);
---
> if (pa.chrome || pa.gecko)
> jo(e, s).getBoundingClientRect().left == u.right && (d = !p);
23517c23750
< function Ds(e, t, n, i) {
---
> function Zs(e, t, n, i) {
23531c23764
< (s = e.elementAtHeight(d)).type != sa.Text;
---
> (s = e.elementAtHeight(d)).type != La.Text;
23541c23774
< return 0 == e.viewport.from ? 0 : n ? null : As(e, l, s, h, p);
---
> return 0 == e.viewport.from ? 0 : n ? null : Qs(e, l, s, h, p);
23547c23780
< : As(e, l, s, h, p);
---
> : Qs(e, l, s, h, p);
23570,23573c23803,23806
< var x = v.caretRangeFromPoint(h, p);
< x &&
< ((w = x.startContainer),
< (k = x.startOffset),
---
> var E = v.caretRangeFromPoint(h, p);
> E &&
> ((w = E.startContainer),
> (k = E.startOffset),
23575c23808
< (_o.safari &&
---
> (pa.safari &&
23582c23815
< return Co(e, i - 1, i).getBoundingClientRect().left > n;
---
> return jo(e, i - 1, i).getBoundingClientRect().left > n;
23584c23817
< (_o.chrome &&
---
> (pa.chrome &&
23596c23829
< : Co(
---
> : jo(
23606,23608c23839,23841
< var E = fa.find(e.docView, g);
< if (!E) return d > s.top + s.height / 2 ? s.to : s.from;
< (w = (r = Ms(E.dom, h, p)).node), (k = r.offset);
---
> var x = Ra.find(e.docView, g);
> if (!x) return d > s.top + s.height / 2 ? s.to : s.from;
> (w = (r = Xs(x.dom, h, p)).node), (k = r.offset);
23624c23857
< function As(e, t, n, i, r) {
---
> function Qs(e, t, n, i, r) {
23632c23865
< return n.from + _r(a, o, e.state.tabSize);
---
> return n.from + po(a, o, e.state.tabSize);
23634c23867
< function Ls(e, t, n, i) {
---
> function Js(e, t, n, i) {
23644,23645c23877,23878
< var c = us(r, o, a, s, n),
< u = cs;
---
> var c = Os(r, o, a, s, n),
> u = Is;
23651c23884
< (c = Fi.cursor(n ? r.from : r.to));
---
> (c = ir.cursor(n ? r.from : r.to));
23662c23895
< function Ps(e, t, n) {
---
> function el(e, t, n) {
23664c23897
< var i = e.state.facet(Va).map(function (t) {
---
> var i = e.state.facet(ls).map(function (t) {
23672c23905
< ((n = t.head > n.from ? Fi.cursor(i, 1) : Fi.cursor(r, -1)),
---
> ((n = t.head > n.from ? ir.cursor(i, 1) : ir.cursor(r, -1)),
23685c23918
< var Is = (function () {
---
> var tl = (function () {
23718c23951
< var i = Vs[t];
---
> var i = ll[t];
23722c23955
< Hs(e, t) && n(i, t);
---
> sl(e, t) && n(i, t);
23724c23957
< zs[t]
---
> cl[t]
23729c23962
< for (var o in Vs) i(o);
---
> for (var o in ll) i(o);
23734c23967
< (n(Vs.mousedown, t), !t.defaultPrevented && 2 == t.button)
---
> (n(ll.mousedown, t), !t.defaultPrevented && 2 == t.button)
23746c23979
< n(Vs.drop, t);
---
> n(ll.drop, t);
23748,23749c23981,23982
< _o.chrome &&
< 102 == _o.chrome_version &&
---
> pa.chrome &&
> 102 == pa.chrome_version &&
23764c23997
< _o.safari &&
---
> pa.safari &&
23793c24026
< Hs(e, n) &&
---
> sl(e, n) &&
23811c24044
< La(t.state, e);
---
> Ja(t.state, e);
23826c24059
< La(e.state, t);
---
> Ja(e.state, t);
23838c24071
< Bs.indexOf(t.keyCode) < 0 &&
---
> rl.indexOf(t.keyCode) < 0 &&
23840,23841c24073,24074
< !_o.android ||
< !_o.chrome ||
---
> !pa.android ||
> !pa.chrome ||
23845c24078
< !_o.ios ||
---
> !pa.ios ||
23850c24083
< ((n = Os.find(function (e) {
---
> ((n = nl.find(function (e) {
23854c24087
< (Fs.indexOf(t.key) > -1 && t.ctrlKey && !t.shiftKey)
---
> (il.indexOf(t.key) > -1 && t.ctrlKey && !t.shiftKey)
23870c24103
< xo(e.contentDOM, t.key, t.keyCode))
---
> Go(e.contentDOM, t.key, t.keyCode))
23878,23879c24111,24112
< _o.safari &&
< !_o.ios &&
---
> pa.safari &&
> !pa.ios &&
23889c24122
< ("compositionend" == e.type && !_o.ios && !_o.android)
---
> ("compositionend" == e.type && !pa.ios && !pa.android)
23907c24140
< Os = [
---
> nl = [
23912,23914c24145,24147
< Fs = "dthko",
< Bs = [16, 17, 18, 20, 91, 92, 224, 225];
< function Ns(e) {
---
> il = "dthko",
> rl = [16, 17, 18, 20, 91, 92, 224, 225];
> function ol(e) {
23917c24150
< var Rs = (function () {
---
> var al = (function () {
23949c24182
< e.state.facet(Er.allowMultipleSelections) &&
---
> e.state.facet(Kr.allowMultipleSelections) &&
23951,23952c24184,24185
< var n = e.state.facet(ba);
< return n.length ? n[0](t) : _o.mac ? t.metaKey : t.ctrlKey;
---
> var n = e.state.facet(Ua);
> return n.length ? n[0](t) : pa.mac ? t.metaKey : t.ctrlKey;
23955,23956c24188,24189
< var n = e.state.facet(wa);
< return n.length ? n[0](t) : _o.mac ? !t.altKey : !t.ctrlKey;
---
> var n = e.state.facet(Wa);
> return n.length ? n[0](t) : pa.mac ? !t.altKey : !t.ctrlKey;
23962c24195
< var n = so(e.root);
---
> var n = Po(e.root);
23979c24212
< })(e, t) || 1 != Qs(t)
---
> })(e, t) || 1 != kl(t)
24002,24003c24235,24236
< ? (n = -Ns(r.left - e.clientX))
< : e.clientX >= r.right - 6 && (n = Ns(e.clientX - r.right)),
---
> ? (n = -ol(r.left - e.clientX))
> : e.clientX >= r.right - 6 && (n = ol(e.clientX - r.right)),
24005,24006c24238,24239
< ? (i = -Ns(r.top - e.clientY))
< : e.clientY >= r.bottom - 6 && (i = Ns(e.clientY - r.bottom)),
---
> ? (i = -ol(r.top - e.clientY))
> : e.clientY >= r.bottom - 6 && (i = ol(e.clientY - r.bottom)),
24061c24294
< function Hs(e, t) {
---
> function sl(e, t) {
24065c24298
< if (!n || 11 == n.nodeType || ((i = To.get(n)) && i.ignoreEvent(t)))
---
> if (!n || 11 == n.nodeType || ((i = $o.get(n)) && i.ignoreEvent(t)))
24069,24073c24302,24306
< var Vs = Object.create(null),
< zs = Object.create(null),
< qs =
< (_o.ie && _o.ie_version < 15) || (_o.ios && _o.webkit_version < 604);
< function Us(e, t) {
---
> var ll = Object.create(null),
> cl = Object.create(null),
> ul =
> (pa.ie && pa.ie_version < 15) || (pa.ios && pa.webkit_version < 604);
> function hl(e, t) {
24080c24313
< null != el &&
---
> null != El &&
24084c24317
< el == o.toString()
---
> El == o.toString()
24094c24327
< range: Fi.cursor(e.from + l.length),
---
> range: ir.cursor(e.from + l.length),
24103c24336
< range: Fi.cursor(e.from + t.length),
---
> range: ir.cursor(e.from + t.length),
24109,24110c24342,24343
< function _s(e, t, n, i) {
< if (1 == i) return Fi.cursor(t, n);
---
> function pl(e, t, n, i) {
> if (1 == i) return ir.cursor(t, n);
24117c24350
< if (0 == r.length) return Fi.cursor(t);
---
> if (0 == r.length) return ir.cursor(t);
24121c24354
< n < 0 ? (a = mi(r.text, o, !1)) : (s = mi(r.text, o));
---
> n < 0 ? (a = Hi(r.text, o, !1)) : (s = Hi(r.text, o));
24123c24356
< var c = mi(r.text, a, !1);
---
> var c = Hi(r.text, a, !1);
24128c24361
< var u = mi(r.text, s);
---
> var u = Hi(r.text, s);
24132c24365
< return Fi.range(a + r.from, s + r.from);
---
> return ir.range(a + r.from, s + r.from);
24134c24367
< var r = fa.find(e.docView, t),
---
> var r = Ra.find(e.docView, t),
24138c24371
< return s < e.state.doc.length && s == o.to && s++, Fi.range(a, s);
---
> return s < e.state.doc.length && s == o.to && s++, ir.range(a, s);
24140c24373
< (Vs.keydown = function (e, t) {
---
> (ll.keydown = function (e, t) {
24144c24377
< (Vs.touchstart = function (e, t) {
---
> (ll.touchstart = function (e, t) {
24148c24381
< (Vs.touchmove = function (e) {
---
> (ll.touchmove = function (e) {
24151,24152c24384,24385
< (zs.touchstart = zs.touchmove = { passive: !0 }),
< (Vs.mousedown = function (e, t) {
---
> (cl.touchstart = cl.touchmove = { passive: !0 }),
> (ll.mousedown = function (e, t) {
24158c24391
< var n = null, i = 0, r = e.state.facet(ka);
---
> var n = null, i = 0, r = e.state.facet(_a);
24168,24169c24401,24402
< var n = Ks(e, t),
< i = Qs(t),
---
> var n = gl(e, t),
> i = kl(t),
24179,24180c24412,24413
< l = Ks(e, t),
< c = _s(e, l.pos, l.bias, i);
---
> l = gl(e, t),
> c = pl(e, l.pos, l.bias, i);
24182c24415
< var u = _s(e, n.pos, n.bias, i),
---
> var u = pl(e, n.pos, n.bias, i),
24185c24418
< c = h < c.from ? Fi.range(h, p) : Fi.range(p, h);
---
> c = h < c.from ? ir.range(h, p) : ir.range(p, h);
24198c24431
< return Fi.create(
---
> return ir.create(
24212c24445
< : Fi.create([c]);
---
> : ir.create([c]);
24219c24452
< e.inputState.startMouseSelection(new Rs(e, t, n, o)),
---
> e.inputState.startMouseSelection(new al(e, t, n, o)),
24222c24455
< return ko(e.contentDOM);
---
> return _o(e.contentDOM);
24229c24462
< var js = function (e, t) {
---
> var dl = function (e, t) {
24232,24233c24465,24466
< Ws = function (e, t, n) {
< return js(t, n) && e >= n.left && e <= n.right;
---
> fl = function (e, t, n) {
> return dl(t, n) && e >= n.left && e <= n.right;
24235,24236c24468,24469
< function Gs(e, t, n, i) {
< var r = fa.find(e.docView, t);
---
> function ml(e, t, n, i) {
> var r = Ra.find(e.docView, t);
24242c24475
< if (a && Ws(n, i, a)) return -1;
---
> if (a && fl(n, i, a)) return -1;
24244c24477
< return s && Ws(n, i, s) ? 1 : a && js(i, a) ? -1 : 1;
---
> return s && fl(n, i, s) ? 1 : a && dl(i, a) ? -1 : 1;
24246c24479
< function Ks(e, t) {
---
> function gl(e, t) {
24248c24481
< return { pos: n, bias: Gs(e, n, t.clientX, t.clientY) };
---
> return { pos: n, bias: ml(e, n, t.clientX, t.clientY) };
24250,24261c24483,24494
< var Ys = _o.ie && _o.ie_version <= 11,
< Xs = null,
< Zs = 0,
< $s = 0;
< function Qs(e) {
< if (!Ys) return e.detail;
< var t = Xs,
< n = $s;
< return (
< (Xs = e),
< ($s = Date.now()),
< (Zs =
---
> var vl = pa.ie && pa.ie_version <= 11,
> yl = null,
> bl = 0,
> wl = 0;
> function kl(e) {
> if (!vl) return e.detail;
> var t = yl,
> n = wl;
> return (
> (yl = e),
> (wl = Date.now()),
> (bl =
24266c24499
< ? (Zs + 1) % 3
---
> ? (bl + 1) % 3
24270c24503
< function Js(e, t, n, i) {
---
> function Cl(e, t, n, i) {
24289c24522
< (Vs.dragstart = function (e, t) {
---
> (ll.dragstart = function (e, t) {
24297c24530
< (Vs.drop = function (e, t) {
---
> (ll.drop = function (e, t) {
24308c24541
< Js(
---
> Cl(
24334c24567
< } else Js(e, t, t.dataTransfer.getData("Text"), !0);
---
> } else Cl(e, t, t.dataTransfer.getData("Text"), !0);
24337c24570
< (Vs.paste = function (e, t) {
---
> (ll.paste = function (e, t) {
24340c24573
< var n = qs ? null : t.clipboardData;
---
> var n = ul ? null : t.clipboardData;
24342c24575
< ? (Us(e, n.getData("text/plain") || n.getData("text/uri-text")),
---
> ? (hl(e, n.getData("text/plain") || n.getData("text/uri-text")),
24352c24585
< e.focus(), n.remove(), Us(e, n.value);
---
> e.focus(), n.remove(), hl(e, n.value);
24357,24358c24590,24591
< var el = null;
< Vs.copy = Vs.cut = function (e, t) {
---
> var El = null;
> ll.copy = ll.cut = function (e, t) {
24392,24393c24625,24626
< el = o ? i : null;
< var a = qs ? null : t.clipboardData;
---
> El = o ? i : null;
> var a = ul ? null : t.clipboardData;
24420,24422c24653,24655
< var tl = cr.define();
< function nl(e, t) {
< for (var n = [], i = 0, r = e.facet(Sa); i < r.length; i++) {
---
> var xl = Ir.define();
> function Sl(e, t) {
> for (var n = [], i = 0, r = e.facet(Ya); i < r.length; i++) {
24426c24659
< return n ? e.update({ effects: n, annotations: tl.of(!0) }) : null;
---
> return n ? e.update({ effects: n, annotations: xl.of(!0) }) : null;
24428c24661
< function il(e) {
---
> function Ml(e) {
24432c24665
< var n = nl(e.state, t);
---
> var n = Sl(e.state, t);
24437c24670
< (Vs.focus = function (e) {
---
> (ll.focus = function (e) {
24443c24676
< il(e);
---
> Ml(e);
24445,24446c24678,24679
< (Vs.blur = function (e) {
< e.observer.clearSelectionRange(), il(e);
---
> (ll.blur = function (e) {
> e.observer.clearSelectionRange(), Ml(e);
24448c24681
< (Vs.compositionstart = Vs.compositionupdate =
---
> (ll.compositionstart = ll.compositionupdate =
24454c24687
< (Vs.compositionend = function (e) {
---
> (ll.compositionend = function (e) {
24461c24694
< _o.chrome && _o.android
---
> pa.chrome && pa.android
24473c24706
< (Vs.contextmenu = function (e) {
---
> (ll.contextmenu = function (e) {
24476c24709
< (Vs.beforeinput = function (e, t) {
---
> (ll.beforeinput = function (e, t) {
24479,24481c24712,24714
< _o.chrome &&
< _o.android &&
< (i = Os.find(function (e) {
---
> pa.chrome &&
> pa.android &&
> (i = nl.find(function (e) {
24502,24503c24735,24736
< var rl = ["pre-wrap", "normal", "pre-line", "break-spaces"],
< ol = (function () {
---
> var Tl = ["pre-wrap", "normal", "pre-line", "break-spaces"],
> Dl = (function () {
24506c24739
< (this.doc = ni.empty),
---
> (this.doc = Si.empty),
24542c24775
< return rl.indexOf(e) > -1 != this.lineWrapping;
---
> return Tl.indexOf(e) > -1 != this.lineWrapping;
24555c24788
< var a = rl.indexOf(e) > -1,
---
> var a = Tl.indexOf(e) > -1,
24578c24811
< al = (function () {
---
> Al = (function () {
24593c24826
< sl = (function () {
---
> Ll = (function () {
24631c24864
< ll = (function (e) {
---
> Pl = (function (e) {
24638,24640c24871,24873
< })(ll || (ll = {})),
< cl = 0.001,
< ul = (function () {
---
> })(Pl || (Pl = {})),
> Il = 0.001,
> Ol = (function () {
24660c24893
< (Math.abs(this.height - t) > cl && (e.heightChanged = !0),
---
> (Math.abs(this.height - t) > Il && (e.heightChanged = !0),
24679,24680c24912,24913
< p = r.lineAt(l, ll.ByPosNoHeight, n.setDoc(t), 0, 0),
< d = p.to >= c ? p : r.lineAt(c, ll.ByPosNoHeight, n, 0, 0);
---
> p = r.lineAt(l, Pl.ByPosNoHeight, n.setDoc(t), 0, 0),
> d = p.to >= c ? p : r.lineAt(c, Pl.ByPosNoHeight, n, 0, 0);
24685c24918
< l < p.from && (p = r.lineAt(l, ll.ByPosNoHeight, n, 0, 0));
---
> l < p.from && (p = r.lineAt(l, Pl.ByPosNoHeight, n, 0, 0));
24687c24920
< var f = gl.build(n.setDoc(o), e, u, h);
---
> var f = Vl.build(n.setDoc(o), e, u, h);
24693c24926
< return new pl(0, 0);
---
> return new Bl(0, 0);
24725c24958
< new fl(e.of(t.slice(0, n)), l, e.of(t.slice(i)))
---
> new Rl(e.of(t.slice(0, n)), l, e.of(t.slice(i)))
24731,24732c24964,24965
< ul.prototype.size = 1;
< var hl = (function (e) {
---
> Ol.prototype.size = 1;
> var Fl = (function (e) {
24740c24973
< return new sl(i, this.length, n, this.height, this.type);
---
> return new Ll(i, this.length, n, this.height, this.type);
24765,24766c24998,24999
< })(ul),
< pl = (function (e) {
---
> })(Ol),
> Bl = (function (e) {
24768c25001
< var i = e.call(this, t, n, sa.Text) || this;
---
> var i = e.call(this, t, n, La.Text) || this;
24776c25009
< (r instanceof t || (r instanceof dl && 4 & r.flags)) &&
---
> (r instanceof t || (r instanceof Nl && 4 & r.flags)) &&
24778c25011
< ? (r instanceof dl
---
> ? (r instanceof Nl
24783c25016
< : ul.of(i);
---
> : Ol.of(i);
24811,24812c25044,25045
< })(hl),
< dl = (function (e) {
---
> })(Fl),
> Nl = (function (e) {
24847c25080
< return new sl(p.from, p.length, h, u, sa.Text);
---
> return new Ll(p.from, p.length, h, u, La.Text);
24853c25086
< return new sl(f, m, n + s * p, s, sa.Text);
---
> return new Ll(f, m, n + s * p, s, La.Text);
24856,24857c25089,25090
< if (t == ll.ByHeight) return this.blockAt(e, n, i, r);
< if (t == ll.ByPosNoHeight) {
---
> if (t == Pl.ByHeight) return this.blockAt(e, n, i, r);
> if (t == Pl.ByPosNoHeight) {
24861c25094
< return new sl(a, s - a, 0, 0, sa.Text);
---
> return new Ll(a, s - a, 0, 0, La.Text);
24871c25104
< return new sl(
---
> return new Ll(
24876c25109
< sa.Text
---
> La.Text
24897c25130
< o(new sl(p.from, p.length, h, f, sa.Text)),
---
> o(new Ll(p.from, p.length, h, f, La.Text)),
24916c25149
< return ul.of(i);
---
> return Ol.of(i);
24940,24941c25173,25174
< -1 == l ? (l = u) : Math.abs(u - l) >= cl && (l = -2);
< var h = new pl(c, u);
---
> -1 == l ? (l = u) : Math.abs(u - l) >= Il && (l = -2);
> var h = new Bl(c, u);
24945c25178
< var p = ul.of(a);
---
> var p = Ol.of(a);
24948,24949c25181,25182
< Math.abs(p.height - this.height) >= cl ||
< Math.abs(l - this.heightMetrics(e, n).perLine) >= cl) &&
---
> Math.abs(p.height - this.height) >= Il ||
> Math.abs(l - this.heightMetrics(e, n).perLine) >= Il) &&
24966,24967c25199,25200
< })(ul),
< fl = (function (e) {
---
> })(Ol),
> Rl = (function (e) {
25001c25234
< s = t == ll.ByHeight ? e < o : e < a,
---
> s = t == Pl.ByHeight ? e < o : e < a,
25006c25239
< var c = t == ll.ByPosNoHeight ? ll.ByPosNoHeight : ll.ByPos;
---
> var c = t == Pl.ByPosNoHeight ? Pl.ByPosNoHeight : Pl.ByPos;
25018c25251
< var l = this.lineAt(s, ll.ByPos, n, i, r);
---
> var l = this.lineAt(s, Pl.ByPos, n, i, r);
25039c25272
< if ((e > 0 && ml(r, o - 1), t < this.length)) {
---
> if ((e > 0 && Hl(r, o - 1), t < this.length)) {
25041c25274
< this.decomposeRight(t, r), ml(r, c);
---
> this.decomposeRight(t, r), Hl(r, c);
25043c25276
< return ul.of(r);
---
> return Ol.of(r);
25062c25295
< ? ul.of(this.break ? [e, null, t] : [e, t])
---
> ? Ol.of(this.break ? [e, null, t] : [e, t])
25096,25097c25329,25330
< })(ul);
< function ml(e, t) {
---
> })(Ol);
> function Hl(e, t) {
25100,25102c25333,25335
< (n = e[t - 1]) instanceof dl &&
< (i = e[t + 1]) instanceof dl &&
< e.splice(t - 1, 3, new dl(n.length + 1 + i.length));
---
> (n = e[t - 1]) instanceof Nl &&
> (i = e[t + 1]) instanceof Nl &&
> e.splice(t - 1, 3, new Nl(n.length + 1 + i.length));
25104c25337
< var gl = (function () {
---
> var Vl = (function () {
25129c25362
< i instanceof pl
---
> i instanceof Bl
25132c25365
< this.nodes.push(new pl(n - this.pos, -1)),
---
> this.nodes.push(new Bl(n - this.pos, -1)),
25147c25380
< ? this.addBlock(new hl(r, i, n.type))
---
> ? this.addBlock(new Fl(r, i, n.type))
25166c25399
< this.pos > t && this.nodes.push(new pl(this.pos - t, -1)),
---
> this.pos > t && this.nodes.push(new Bl(this.pos - t, -1)),
25171c25404
< var n = new dl(t - e);
---
> var n = new Nl(t - e);
25179,25180c25412,25413
< if (e instanceof pl) return e;
< var t = new pl(0, -1);
---
> if (e instanceof Bl) return e;
> var t = new Bl(0, -1);
25185c25418
< e.type != sa.WidgetAfter || this.isCovered || this.ensureLine(),
---
> e.type != La.WidgetAfter || this.isCovered || this.ensureLine(),
25188c25421
< e.type != sa.WidgetBefore && (this.covering = e);
---
> e.type != La.WidgetBefore && (this.covering = e);
25200c25433
< !(this.lineStart > -1) || t instanceof pl || this.isCovered
---
> !(this.lineStart > -1) || t instanceof Bl || this.isCovered
25203c25436
< : this.nodes.push(new pl(0, -1));
---
> : this.nodes.push(new Bl(0, -1));
25206c25439
< o instanceof pl && o.updateHeight(this.oracle, n),
---
> o instanceof Bl && o.updateHeight(this.oracle, n),
25213c25446
< return Lr.spans(n, i, r, o, 0), o.finish(i);
---
> return Jr.spans(n, i, r, o, 0), o.finish(i);
25218c25451
< var vl = (function () {
---
> var zl = (function () {
25226c25459
< da(e, t, this.changes, 5);
---
> Na(e, t, this.changes, 5);
25231c25464
< function yl(e, t) {
---
> function ql(e, t) {
25273c25506
< function bl(e, t) {
---
> function Ul(e, t) {
25282c25515
< var wl = (function () {
---
> var Wl = (function () {
25298,25300c25531,25534
< return la
< .replace({ widget: new kl(this.size, e) })
< .range(this.from, this.to);
---
> return Pa.replace({ widget: new _l(this.size, e) }).range(
> this.from,
> this.to
> );
25305c25539
< kl = (function (e) {
---
> _l = (function (e) {
25335,25336c25569,25570
< })(aa),
< Cl = (function () {
---
> })(Aa),
> jl = (function () {
25352c25586
< (this.scaler = Tl),
---
> (this.scaler = $l),
25356c25590
< (this.defaultTextDirection = ja.LTR),
---
> (this.defaultTextDirection = ds.LTR),
25359c25593
< var t = e.facet(Ra).some(function (e) {
---
> var t = e.facet(as).some(function (e) {
25362,25363c25596,25597
< (this.heightOracle = new ol(t)),
< (this.stateDeco = e.facet(Ha).filter(function (e) {
---
> (this.heightOracle = new Dl(t)),
> (this.stateDeco = e.facet(ss).filter(function (e) {
25366,25373c25600,25605
< (this.heightMap = ul
< .empty()
< .applyChanges(
< this.stateDeco,
< ni.empty,
< this.heightOracle.setDoc(e.doc),
< [new Ua(0, 0, 0, e.doc.length)]
< )),
---
> (this.heightMap = Ol.empty().applyChanges(
> this.stateDeco,
> Si.empty,
> this.heightOracle.setDoc(e.doc),
> [new hs(0, 0, 0, e.doc.length)]
> )),
25378c25610
< (this.lineGapDeco = la.set(
---
> (this.lineGapDeco = Pa.set(
25402c25634
< e.push(new xl(a, s));
---
> e.push(new Gl(a, s));
25416,25417c25648,25649
< ? Tl
< : new Dl(
---
> ? $l
> : new Zl(
25434c25666
< 1 == e.scaler.scale ? t : Al(t, e.scaler)
---
> 1 == e.scaler.scale ? t : Ql(t, e.scaler)
25442c25674
< this.stateDeco = this.state.facet(Ha).filter(function (e) {
---
> this.stateDeco = this.state.facet(ss).filter(function (e) {
25450c25682
< l = Ua.extendWithRanges(
---
> l = hs.extendWithRanges(
25454,25456c25686,25688
< (o = e ? e.changes : Mi.empty(this.state.doc.length)),
< (a = new vl()),
< Lr.compare(i, r, o, a, 0),
---
> (o = e ? e.changes : Xi.empty(this.state.doc.length)),
> (a = new zl()),
> Jr.compare(i, r, o, a, 0),
25495c25727
< !e.state.facet(Ta) &&
---
> !e.state.facet($a) &&
25504c25736
< "rtl" == n.direction ? ja.RTL : ja.LTR;
---
> "rtl" == n.direction ? ds.RTL : ds.LTR;
25523c25755
< var p = (this.printing ? bl : yl)(t, this.paddingTop),
---
> var p = (this.printing ? Ul : ql)(t, this.paddingTop),
25562,25563c25794,25795
< for (var C = 0, x = this.viewports; C < x.length; C++) {
< var E = x[C],
---
> for (var C = 0, E = this.viewports; C < E.length; C++) {
> var x = E[C],
25565c25797
< E.from == this.viewport.from
---
> x.from == this.viewport.from
25567c25799
< : e.docView.measureVisibleLineHeights(E);
---
> : e.docView.measureVisibleLineHeights(x);
25570,25577c25802,25807
< ? ul
< .empty()
< .applyChanges(
< this.stateDeco,
< ni.empty,
< this.heightOracle,
< [new Ua(0, 0, 0, e.state.doc.length)]
< )
---
> ? Ol.empty().applyChanges(
> this.stateDeco,
> Si.empty,
> this.heightOracle,
> [new hs(0, 0, 0, e.state.doc.length)]
> )
25579c25809
< ).updateHeight(i, 0, o, new al(E.from, S));
---
> ).updateHeight(i, 0, o, new Al(x.from, S));
25624,25626c25854,25856
< s = new xl(
< i.lineAt(o - 1e3 * n, ll.ByHeight, r, 0, 0).from,
< i.lineAt(a + 1e3 * (1 - n), ll.ByHeight, r, 0, 0).to
---
> s = new Gl(
> i.lineAt(o - 1e3 * n, Pl.ByHeight, r, 0, 0).from,
> i.lineAt(a + 1e3 * (1 - n), Pl.ByHeight, r, 0, 0).to
25635c25865
< u = i.lineAt(l, ll.ByPos, r, 0, 0),
---
> u = i.lineAt(l, Pl.ByPos, r, 0, 0),
25643,25645c25873,25875
< (s = new xl(
< i.lineAt(h - 500, ll.ByHeight, r, 0, 0).from,
< i.lineAt(h + c + 500, ll.ByHeight, r, 0, 0).to
---
> (s = new Gl(
> i.lineAt(h - 500, Pl.ByHeight, r, 0, 0).from,
> i.lineAt(h + c + 500, Pl.ByHeight, r, 0, 0).to
25654c25884
< return new xl(
---
> return new Gl(
25657c25887
< ll.ByPos,
---
> Pl.ByPos,
25662c25892
< this.heightMap.lineAt(i, ll.ByPos, this.heightOracle, 0, 0).to
---
> this.heightMap.lineAt(i, Pl.ByPos, this.heightOracle, 0, 0).to
25671c25901
< ll.ByPos,
---
> Pl.ByPos,
25678c25908
< ll.ByPos,
---
> Pl.ByPos,
25698c25928
< n.push(new wl(t.mapPos(o.from), t.mapPos(o.to), o.size));
---
> n.push(new Wl(t.mapPos(o.from), t.mapPos(o.to), o.size));
25708c25938
< if (this.defaultTextDirection != ja.LTR && !i) return [];
---
> if (this.defaultTextDirection != ds.LTR && !i) return [];
25748c25978
< Fi.cursor(a),
---
> ir.cursor(a),
25754c25984
< g = new wl(r, a, n.gapSize(c, r, a, u));
---
> g = new Wl(r, a, n.gapSize(c, r, a, u));
25766c25996
< var p = El(h.from, h.to, this.stateDeco);
---
> var p = Kl(h.from, h.to, this.stateDeco);
25781c26011
< (b = Ml(p, d)) -
---
> (b = Xl(p, d)) -
25789c26019
< (f = Sl(p, v)), (m = Sl(p, y));
---
> (f = Yl(p, v)), (m = Yl(p, y));
25795,25796c26025,26026
< x = void 0,
< E = void 0;
---
> E = void 0,
> x = void 0;
25798,25799c26028,26029
< (x =
< (b = Ml(p, d)) -
---
> (E =
> (b = Xl(p, d)) -
25806c26036
< (E = b + w);
---
> (x = b + w);
25808,25810c26038,26040
< (x = (this.pixelViewport.left - C) / k),
< (E = (this.pixelViewport.right + C) / k);
< (f = Sl(p, x)), (m = Sl(p, E));
---
> (E = (this.pixelViewport.left - C) / k),
> (x = (this.pixelViewport.right + C) / k);
> (f = Yl(p, E)), (m = Yl(p, x));
25820c26050
< var r = Ml(i, n) - Ml(i, t);
---
> var r = Xl(i, n) - Xl(i, t);
25827c26057
< wl.same(e, this.lineGaps) ||
---
> Wl.same(e, this.lineGaps) ||
25829c26059
< (this.lineGapDeco = la.set(
---
> (this.lineGapDeco = Pa.set(
25839c26069
< Lr.spans(
---
> Jr.spans(
25865,25866c26095,26096
< Al(
< this.heightMap.lineAt(e, ll.ByPos, this.heightOracle, 0, 0),
---
> Ql(
> this.heightMap.lineAt(e, Pl.ByPos, this.heightOracle, 0, 0),
25872c26102
< return Al(
---
> return Ql(
25875c26105
< ll.ByHeight,
---
> Pl.ByHeight,
25884c26114
< return Al(
---
> return Ql(
25911c26141
< xl = function (e, t) {
---
> Gl = function (e, t) {
25914c26144
< function El(e, t, n) {
---
> function Kl(e, t, n) {
25919c26149
< Lr.spans(
---
> Jr.spans(
25935c26165
< function Sl(e, t) {
---
> function Yl(e, t) {
25948c26178
< function Ml(e, t) {
---
> function Xl(e, t) {
25961c26191
< var Tl = {
---
> var $l = {
25970c26200
< Dl = (function () {
---
> Zl = (function () {
25978,25979c26208,26209
< a = t.lineAt(r, ll.ByPos, e, 0, 0).top,
< s = t.lineAt(o, ll.ByPos, e, 0, 0).bottom;
---
> a = t.lineAt(r, Pl.ByPos, e, 0, 0).top,
> s = t.lineAt(o, Pl.ByPos, e, 0, 0).bottom;
26013c26243
< function Al(e, t) {
---
> function Ql(e, t) {
26017c26247
< return new sl(
---
> return new Ll(
26024c26254
< return Al(e, t);
---
> return Ql(e, t);
26029c26259
< var Ll = Ri.define({
---
> var Jl = ar.define({
26034c26264
< Pl = Ri.define({
---
> ec = ar.define({
26039,26044c26269,26274
< Il = Kr.newName(),
< Ol = Kr.newName(),
< Fl = Kr.newName(),
< Bl = { "&light": "." + Ol, "&dark": "." + Fl };
< function Nl(e, t, n) {
< return new Kr(t, {
---
> tc = vo.newName(),
> nc = vo.newName(),
> ic = vo.newName(),
> rc = { "&light": "." + nc, "&dark": "." + ic };
> function oc(e, t, n) {
> return new vo(t, {
26057,26058c26287,26288
< var Rl = Nl(
< "." + Il,
---
> var ac = oc(
> "." + tc,
26246c26476
< Bl
---
> rc
26248c26478
< Hl = function (e, t, n, i) {
---
> sc = function (e, t, n, i) {
26271,26272c26501,26502
< (t.push(new fs(i, r)),
< (o == i && a == r) || t.push(new fs(o, a))),
---
> (t.push(new Rs(i, r)),
> (o == i && a == r) || t.push(new Rs(o, a))),
26276c26506
< l = new ps(s, e.state);
---
> l = new Bs(s, e.state);
26283c26513
< return n > -1 && i > -1 ? Fi.single(n + t, i + t) : null;
---
> return n > -1 && i > -1 ? ir.single(n + t, i + t) : null;
26289c26519
< !lo(e.contentDOM, c.focusNode)
---
> !Io(e.contentDOM, c.focusNode)
26294c26524
< !lo(e.contentDOM, c.anchorNode)
---
> !Io(e.contentDOM, c.anchorNode)
26297c26527
< this.newSel = Fi.single(h, u);
---
> this.newSel = ir.single(h, u);
26300c26530
< function Vl(e, t) {
---
> function lc(e, t) {
26312c26542
< (_o.android && t.text.length < s - a)) &&
---
> (pa.android && t.text.length < s - a)) &&
26336c26566
< })(e.state.doc.sliceString(a, s, hs), t.text, l - a, c);
---
> })(e.state.doc.sliceString(a, s, Fs), t.text, l - a, c);
26338c26568
< (_o.chrome &&
---
> (pa.chrome &&
26346c26576
< insert: ni.of(t.text.slice(u.from, u.toB).split(hs)),
---
> insert: Si.of(t.text.slice(u.from, u.toB).split(Fs)),
26350c26580
< ((!e.hasFocus && e.state.facet(Pa)) || i.main.eq(r)) &&
---
> ((!e.hasFocus && e.state.facet(es)) || i.main.eq(r)) &&
26373c26603
< : _o.chrome &&
---
> : pa.chrome &&
26379,26380c26609,26610
< (i && (i = Fi.single(i.main.anchor - 1, i.main.head - 1)),
< (n = { from: r.from, to: r.to, insert: ni.of([" "]) })),
---
> (i && (i = ir.single(i.main.anchor - 1, i.main.head - 1)),
> (n = { from: r.from, to: r.to, insert: Si.of([" "]) })),
26384c26614
< if (_o.ios && e.inputState.flushIOSKey(e)) return !0;
---
> if (pa.ios && e.inputState.flushIOSKey(e)) return !0;
26386c26616
< _o.android &&
---
> pa.android &&
26391c26621
< xo(e.contentDOM, "Enter", 13)) ||
---
> Go(e.contentDOM, "Enter", 13)) ||
26395c26625
< xo(e.contentDOM, "Backspace", 8)) ||
---
> Go(e.contentDOM, "Backspace", 8)) ||
26399c26629
< xo(e.contentDOM, "Delete", 46)))
---
> Go(e.contentDOM, "Delete", 46)))
26404c26634
< e.state.facet(Ea).some(function (t) {
---
> e.state.facet(Ka).some(function (t) {
26435c26665
< b = vs(e) || e.state.doc.lineAt(r.head),
---
> b = zs(e) || e.state.doc.lineAt(r.head),
26454c26684
< ? Fi.range(
---
> ? ir.range(
26478c26708
< var x = !1;
---
> var E = !1;
26482c26712
< ("select" == e.inputState.lastSelectionOrigin && (x = !0),
---
> ("select" == e.inputState.lastSelectionOrigin && (E = !0),
26484c26714
< e.dispatch({ selection: i, scrollIntoView: x, userEvent: C }),
---
> e.dispatch({ selection: i, scrollIntoView: E, userEvent: C }),
26490c26720
< var zl = {
---
> var cc = {
26497,26498c26727,26728
< ql = _o.ie && _o.ie_version <= 11,
< Ul = (function () {
---
> uc = pa.ie && pa.ie_version <= 11,
> hc = (function () {
26503c26733
< (this.selectionRange = new bo()),
---
> (this.selectionRange = new Uo()),
26525,26528c26755,26758
< ((_o.ie && _o.ie_version <= 11) ||
< (_o.ios && e.compositionStarted) ||
< (_o.windows &&
< _o.chrome &&
---
> ((pa.ie && pa.ie_version <= 11) ||
> (pa.ios && e.compositionStarted) ||
> (pa.windows &&
> pa.chrome &&
26540c26770
< ql &&
---
> uc &&
26639c26869
< n.state.facet(Pa)
---
> n.state.facet(es)
26641c26871
< : co(n.dom, i)
---
> : Oo(n.dom, i)
26646,26647c26876,26877
< : ((_o.ie && _o.ie_version <= 11) ||
< (_o.android && _o.chrome)) &&
---
> : ((pa.ie && pa.ie_version <= 11) ||
> (pa.android && pa.chrome)) &&
26650c26880
< ho(
---
> Bo(
26664c26894
< (_o.safari &&
---
> (pa.safari &&
26691c26921
< ho(l.node, l.offset, a, s) &&
---
> Bo(l.node, l.offset, a, s) &&
26703c26933
< so(e.root);
---
> Po(e.root);
26705c26935
< var n = co(this.dom, t);
---
> var n = Oo(this.dom, t);
26718c26948
< "false" == r.contentEditable ? i-- : (i = mo((n = r)));
---
> "false" == r.contentEditable ? i-- : (i = Ho((n = r)));
26721c26951
< (i = po(n)), (n = n.parentNode);
---
> (i = No(n)), (n = n.parentNode);
26781,26782c27011,27012
< (this.observer.observe(this.dom, zl),
< ql &&
---
> (this.observer.observe(this.dom, cc),
> uc &&
26793c27023
< ql &&
---
> uc &&
26813c27043
< !i.flush() && e.force && xo(i.dom, e.key, e.keyCode));
---
> !i.flush() && e.force && Go(i.dom, e.key, e.keyCode));
26882c27112
< r = this.selectionChanged && co(this.dom, this.selectionRange);
---
> r = this.selectionChanged && Oo(this.dom, this.selectionRange);
26888c27118
< new Hl(this.view, t, n, i));
---
> new sc(this.view, t, n, i));
26900c27130
< i = Vl(this.view, t);
---
> i = lc(this.view, t);
26911c27141
< var n = _l(
---
> var n = pc(
26916c27146
< i = _l(t, e.nextSibling || e.target.nextSibling, 1);
---
> i = pc(t, e.nextSibling || e.target.nextSibling, 1);
26982c27212
< function _l(e, t, n) {
---
> function pc(e, t, n) {
26984c27214
< var i = To.get(t);
---
> var i = $o.get(t);
26991c27221
< var jl = (function () {
---
> var dc = (function () {
27037,27039c27267,27269
< (this.viewState = new Cl(e.state || Er.create(e))),
< (this.plugins = this.state.facet(Oa).map(function (e) {
< return new Ba(e);
---
> (this.viewState = new jl(e.state || Kr.create(e))),
> (this.plugins = this.state.facet(ns).map(function (e) {
> return new rs(e);
27044,27045c27274,27275
< (this.observer = new Ul(this)),
< (this.inputState = new Is(this)),
---
> (this.observer = new hc(this)),
> (this.inputState = new tl(this)),
27047c27277
< (this.docView = new ms(this)),
---
> (this.docView = new Hs(this)),
27114c27344
< 1 == t.length && t[0] instanceof dr
---
> 1 == t.length && t[0] instanceof Nr
27142c27372
< return e.annotation(tl);
---
> return e.annotation(xl);
27147c27377
< (u = nl(o, l)) || (c = 1));
---
> (u = Sl(o, l)) || (c = 1));
27158c27388
< o.facet(Er.phrases) != this.state.facet(Er.phrases))
---
> o.facet(Kr.phrases) != this.state.facet(Kr.phrases))
27161c27391
< (n = _a.create(this, o, e)).flags |= c;
---
> (n = ps.create(this, o, e)).flags |= c;
27169c27399
< d = new Da(
---
> d = new Za(
27172c27402
< : Fi.cursor(v.head, v.head > v.anchor ? -1 : 1)
---
> : ir.cursor(v.head, v.head > v.anchor ? -1 : 1)
27177c27407
< w.is(Aa) && (d = w.value);
---
> w.is(Qa) && (d = w.value);
27181c27411
< (this.bidiCache = Kl.update(this.bidiCache, n.changes)),
---
> (this.bidiCache = gc.update(this.bidiCache, n.changes)),
27184c27414
< this.state.facet(qa) != this.styleModules &&
---
> this.state.facet(us) != this.styleModules &&
27198c27428
< (n.startState.facet(Ll) != n.state.facet(Ll) &&
---
> (n.startState.facet(Jl) != n.state.facet(Jl) &&
27208c27438
< for (var k = 0, C = this.state.facet(xa); k < C.length; k++) {
---
> for (var k = 0, C = this.state.facet(Ga); k < C.length; k++) {
27215c27445
< !Vl(t, p) &&
---
> !lc(t, p) &&
27217c27447
< xo(t.contentDOM, h.key, h.keyCode);
---
> Go(t.contentDOM, h.key, h.keyCode);
27234,27236c27464,27466
< (this.viewState = new Cl(e)),
< (this.plugins = e.facet(Oa).map(function (e) {
< return new Ba(e);
---
> (this.viewState = new jl(e)),
> (this.plugins = e.facet(ns).map(function (e) {
> return new rs(e);
27242c27472
< (this.docView = new ms(this)),
---
> (this.docView = new Hs(this)),
27254,27255c27484,27485
< var t = e.startState.facet(Oa),
< n = e.state.facet(Oa);
---
> var t = e.startState.facet(ns),
> n = e.state.facet(ns);
27260c27490
< if (s < 0) i.push(new Ba(a));
---
> if (s < 0) i.push(new rs(a));
27322c27552
< return La(n.state, e), Gl;
---
> return Ja(n.state, e), mc;
27325c27555
< f = _a.create(this, this.state, []),
---
> f = ps.create(this, this.state, []),
27337c27567
< if (d[v] != Gl)
---
> if (d[v] != mc)
27342c27572
< La(this.state, e);
---
> Ja(this.state, e);
27367c27597
< for (var w = 0, k = this.state.facet(xa); w < k.length; w++) {
---
> for (var w = 0, k = this.state.facet(Ga); w < k.length; w++) {
27375c27605
< Il +
---
> tc +
27377c27607
< (this.state.facet(Pl) ? Fl : Ol) +
---
> (this.state.facet(ec) ? ic : nc) +
27379c27609
< this.state.facet(Ll)
---
> this.state.facet(Jl)
27387c27617
< t = Yl(this, Na, {
---
> t = vc(this, os, {
27398c27628
< contenteditable: this.state.facet(Pa) ? "true" : "false",
---
> contenteditable: this.state.facet(es) ? "true" : "false",
27400c27630
< style: "".concat(_o.tabSize, ": ").concat(this.state.tabSize),
---
> style: "".concat(pa.tabSize, ": ").concat(this.state.tabSize),
27405c27635
< Yl(this, Ra, n);
---
> vc(this, as, n);
27407,27408c27637,27638
< var i = oa(e.contentDOM, e.contentAttrs, n),
< r = oa(e.dom, e.editorAttrs, t);
---
> var i = Da(e.contentDOM, e.contentAttrs, n),
> r = Da(e.dom, e.editorAttrs, t);
27426,27427c27656,27657
< (this.styleModules = this.state.facet(qa)),
< Kr.mount(this.root, this.styleModules.concat(Rl).reverse());
---
> (this.styleModules = this.state.facet(us)),
> vo.mount(this.root, this.styleModules.concat(ac).reverse());
27515c27745
< return Ps(this, e, Ls(this, e, t, n));
---
> return el(this, e, Js(this, e, t, n));
27519c27749
< return Ps(
---
> return el(
27522c27752
< Ls(this, e, t, function (t) {
---
> Js(this, e, t, function (t) {
27528c27758
< return r == kr.Space && (r = t), r == t;
---
> return r == _r.Space && (r = t), r == t;
27549c27779
< x: n == (s == ja.LTR) ? a.right - 1 : a.left + 1,
---
> x: n == (s == ds.LTR) ? a.right - 1 : a.left + 1,
27552c27782
< if (null != l) return Fi.cursor(l, n ? -1 : 1);
---
> if (null != l) return ir.cursor(l, n ? -1 : 1);
27554c27784
< var c = fa.find(e.docView, t.head),
---
> var c = Ra.find(e.docView, t.head),
27556c27786
< return Fi.cursor(u, n ? -1 : 1);
---
> return ir.cursor(u, n ? -1 : 1);
27561c27791
< return Ps(
---
> return el(
27568c27798
< return Fi.cursor(r, t.assoc);
---
> return ir.cursor(r, t.assoc);
27594c27824
< g = Ds(e, { x: p, y: m }, !1, o);
---
> g = Zs(e, { x: p, y: m }, !1, o);
27596c27826
< return Fi.cursor(g, t.assoc, void 0, s);
---
> return ir.cursor(g, t.assoc, void 0, s);
27609c27839
< void 0 === t && (t = !0), this.readMeasured(), Ds(this, e, t)
---
> void 0 === t && (t = !0), this.readMeasured(), Zs(this, e, t)
27618c27848
< return go(
---
> return Vo(
27620c27850
< (r[os.find(r, e - i.from, -1, t)].dir == ja.LTR) == t > 0
---
> (r[Ds.find(r, e - i.from, -1, t)].dir == ds.LTR) == t > 0
27645c27875
< return !this.state.facet(Ma) ||
---
> return !this.state.facet(Xa) ||
27659c27889
< if (e.length > Wl) return ls(e.length);
---
> if (e.length > fc) return Ps(e.length);
27668,27669c27898,27899
< var o = ss(e.text, t);
< return this.bidiCache.push(new Kl(e.from, e.to, t, o)), o;
---
> var o = Ls(e.text, t);
> return this.bidiCache.push(new gc(e.from, e.to, t, o)), o;
27676c27906
< (_o.safari &&
---
> (pa.safari &&
27690c27920
< ko(e.contentDOM), e.docView.updateSelection();
---
> _o(e.contentDOM), e.docView.updateSelection();
27716,27718c27946,27948
< Aa.of(
< new Da(
< "number" == typeof e ? Fi.cursor(e) : e,
---
> Qa.of(
> new Za(
> "number" == typeof e ? ir.cursor(e) : e,
27728c27958
< return Fa.define(
---
> return is.define(
27736,27738c27966,27968
< var n = Kr.newName(),
< i = [Ll.of(n), qa.of(Nl(".".concat(n), e))];
< return t && t.dark && i.push(Pl.of(!0)), i;
---
> var n = vo.newName(),
> i = [Jl.of(n), us.of(oc(".".concat(n), e))];
> return t && t.dark && i.push(ec.of(!0)), i;
27741c27971
< return Xi.lowest(qa.of(Nl("." + Il, e, Bl)));
---
> return yr.lowest(us.of(oc("." + tc, e, rc)));
27746c27976
< i = (n && To.get(n)) || To.get(e);
---
> i = (n && $o.get(n)) || $o.get(e);
27756,27772c27986,28002
< (jl.styleModule = qa),
< (jl.inputHandler = Ea),
< (jl.focusChangeEffect = Sa),
< (jl.perLineTextDirection = Ma),
< (jl.exceptionSink = Ca),
< (jl.updateListener = xa),
< (jl.editable = Pa),
< (jl.mouseSelectionStyle = ka),
< (jl.dragMovesSelection = wa),
< (jl.clickAddsSelectionRange = ba),
< (jl.decorations = Ha),
< (jl.atomicRanges = Va),
< (jl.scrollMargins = za),
< (jl.darkTheme = Pl),
< (jl.contentAttributes = Ra),
< (jl.editorAttributes = Na),
< (jl.lineWrapping = jl.contentAttributes.of({
---
> (dc.styleModule = us),
> (dc.inputHandler = Ka),
> (dc.focusChangeEffect = Ya),
> (dc.perLineTextDirection = Xa),
> (dc.exceptionSink = ja),
> (dc.updateListener = Ga),
> (dc.editable = es),
> (dc.mouseSelectionStyle = _a),
> (dc.dragMovesSelection = Wa),
> (dc.clickAddsSelectionRange = Ua),
> (dc.decorations = ss),
> (dc.atomicRanges = ls),
> (dc.scrollMargins = cs),
> (dc.darkTheme = ec),
> (dc.contentAttributes = as),
> (dc.editorAttributes = os),
> (dc.lineWrapping = dc.contentAttributes.of({
27775,27778c28005,28008
< (jl.announce = pr.define());
< var Wl = 4096,
< Gl = {},
< Kl = (function () {
---
> (dc.announce = Br.define());
> var fc = 4096,
> mc = {},
> gc = (function () {
27787c28017
< r = t.length ? t[t.length - 1].dir : ja.LTR,
---
> r = t.length ? t[t.length - 1].dir : ds.LTR,
27809c28039
< function Yl(e, t, n) {
---
> function vc(e, t, n) {
27813c28043
< a && ia(a, n);
---
> a && Ma(a, n);
27817,27818c28047,28048
< var Xl = _o.mac ? "mac" : _o.windows ? "win" : _o.linux ? "linux" : "key";
< function Zl(e, t, n) {
---
> var yc = pa.mac ? "mac" : pa.windows ? "win" : pa.linux ? "linux" : "key";
> function bc(e, t, n) {
27827,27828c28057,28058
< var $l = Xi.default(
< jl.domEventHandlers({
---
> var wc = yr.default(
> dc.domEventHandlers({
27830c28060
< return ic(ec(t.state), e, t, "editor");
---
> return Mc(Ec(t.state), e, t, "editor");
27834,27838c28064,28068
< Ql = Ri.define({ enables: $l }),
< Jl = new WeakMap();
< function ec(e) {
< var t = e.facet(Ql),
< n = Jl.get(t);
---
> kc = ar.define({ enables: wc }),
> Cc = new WeakMap();
> function Ec(e) {
> var t = e.facet(kc),
> n = Cc.get(t);
27841c28071
< Jl.set(
---
> Cc.set(
27844c28074
< void 0 === t && (t = Xl);
---
> void 0 === t && (t = yc);
27903c28133
< var i = (nc = {
---
> var i = (Sc = {
27910c28140
< nc == i && (nc = null);
---
> Sc == i && (Sc = null);
27974,27975c28204,28205
< function tc(e, t, n) {
< return ic(ec(e.state), t, e, n);
---
> function xc(e, t, n) {
> return Mc(Ec(e.state), t, e, n);
27977,27980c28207,28210
< var nc = null;
< function ic(e, t, n, i) {
< var r = ao(t),
< o = Ci(wi(r, 0)) == r.length && " " != r,
---
> var Sc = null;
> function Mc(e, t, n, i) {
> var r = Lo(t),
> o = ji(Wi(r, 0)) == r.length && " " != r,
27983,27987c28213,28217
< nc &&
< nc.view == n &&
< nc.scope == i &&
< ((a = nc.prefix + " "),
< (s = Bs.indexOf(t.keyCode) < 0) && (nc = null));
---
> Sc &&
> Sc.view == n &&
> Sc.scope == i &&
> ((a = Sc.prefix + " "),
> (s = rl.indexOf(t.keyCode) < 0) && (Sc = null));
28003c28233
< if (h(p[a + Zl(r, t, !o)])) return !0;
---
> if (h(p[a + bc(r, t, !o)])) return !0;
28007,28008c28237,28238
< !(_o.windows && t.ctrlKey && t.altKey) &&
< (l = Zr[t.keyCode]) &&
---
> !(pa.windows && t.ctrlKey && t.altKey) &&
> (l = wo[t.keyCode]) &&
28011c28241
< if (h(p[a + Zl(l, t, !0)])) return !0;
---
> if (h(p[a + bc(l, t, !0)])) return !0;
28014c28244
< (c = $r[t.keyCode]) != r &&
---
> (c = ko[t.keyCode]) != r &&
28016c28246
< h(p[a + Zl(c, t, !1)])
---
> h(p[a + bc(c, t, !1)])
28019c28249
< } else if (o && t.shiftKey && h(p[a + Zl(r, t, !0)])) return !0;
---
> } else if (o && t.shiftKey && h(p[a + bc(r, t, !0)])) return !0;
28024c28254
< var rc = (function () {
---
> var Tc = (function () {
28059c28289
< var o = oc(t);
---
> var o = Dc(t);
28070c28300
< return lc(t, n, i);
---
> return Pc(t, n, i);
28075c28305
< function oc(e) {
---
> function Dc(e) {
28079c28309
< (e.textDirection == ja.LTR
---
> (e.textDirection == ds.LTR
28085,28086c28315,28316
< function ac(e, t, n) {
< var i = Fi.cursor(t);
---
> function Ac(e, t, n) {
> var i = ir.cursor(t);
28090c28320
< type: sa.Text,
---
> type: La.Text,
28093c28323
< function sc(e, t) {
---
> function Lc(e, t) {
28098c28328
< if (o.to > t || (o.to == t && (o.to == n.to || o.type == sa.Text)))
---
> if (o.to > t || (o.to == t && (o.to == n.to || o.type == La.Text)))
28103c28333
< function lc(e, t, n) {
---
> function Pc(e, t, n) {
28107c28337
< o = e.textDirection == ja.LTR,
---
> o = e.textDirection == ds.LTR,
28110c28340
< l = oc(e),
---
> l = Dc(e),
28119,28122c28349,28352
< d = sc(e, i),
< f = sc(e, r),
< m = d.type == sa.Text ? d : null,
< g = f.type == sa.Text ? f : null;
---
> d = Lc(e, i),
> f = Lc(e, r),
> m = d.type == La.Text ? d : null,
> g = f.type == La.Text ? f : null;
28124c28354
< (e.lineWrapping && (m && (m = ac(e, i, m)), g && (g = ac(e, r, g))),
---
> (e.lineWrapping && (m && (m = Ac(e, i, m)), g && (g = Ac(e, r, g))),
28128,28129c28358,28359
< var v = m ? C(n.from, null, m) : x(d, !1),
< y = g ? C(null, n.to, g) : x(f, !0),
---
> var v = m ? C(n.from, null, m) : E(d, !1),
> y = g ? C(null, n.to, g) : E(f, !0),
28135c28365
< e.elementAtHeight((v.bottom + y.top) / 2).type == sa.Text &&
---
> e.elementAtHeight((v.bottom + y.top) / 2).type == La.Text &&
28140c28370
< return new rc(t, e - l.left, n - l.top - 0.01, i - e, r - n + 0.01);
---
> return new Tc(t, e - l.left, n - l.top - 0.01, i - e, r - n + 0.01);
28162c28392
< u == ja.LTR
---
> u == ds.LTR
28184c28414
< x = k.to + y.from;
---
> E = k.to + y.from;
28186c28416
< x > g &&
---
> E > g &&
28190,28191c28420,28421
< Math.min(x, v),
< null == n && x >= u,
---
> Math.min(E, v),
> null == n && E >= u,
28203c28433
< function x(e, t) {
---
> function E(e, t) {
28208c28438
< var cc = (function () {
---
> var Ic = (function () {
28230c28460
< e.startState.facet(uc) != e.state.facet(uc) &&
---
> e.startState.facet(Oc) != e.state.facet(Oc) &&
28237c28467
< var t = 0, n = e.facet(uc);
---
> var t = 0, n = e.facet(Oc);
28288,28289c28518,28519
< uc = Ri.define();
< function hc(e) {
---
> Oc = ar.define();
> function Fc(e) {
28291,28292c28521,28522
< Fa.define(function (t) {
< return new cc(t, e);
---
> is.define(function (t) {
> return new Ic(t, e);
28294c28524
< uc.of(e),
---
> Oc.of(e),
28297,28298c28527,28528
< var pc = !_o.ios,
< dc = Ri.define({
---
> var Bc = !pa.ios,
> Nc = ar.define({
28300c28530
< return Sr(
---
> return Yr(
28314,28315c28544,28545
< function fc(e) {
< return void 0 === e && (e = {}), [dc.of(e), gc, yc, wc, Ta.of(!0)];
---
> function Rc(e) {
> return void 0 === e && (e = {}), [Nc.of(e), Vc, qc, Wc, $a.of(!0)];
28317,28318c28547,28548
< function mc(e) {
< return e.startState.facet(dc) != e.state.facet(dc);
---
> function Hc(e) {
> return e.startState.facet(Nc) != e.state.facet(Nc);
28320c28550
< var gc = hc({
---
> var Vc = Fc({
28325c28555
< n = t.facet(dc),
---
> n = t.facet(Nc),
28334c28564
< if (a.empty ? !s || pc : n.drawRangeCursor)
---
> if (a.empty ? !s || Bc : n.drawRangeCursor)
28341c28571
< : Fi.cursor(a.head, a.head > a.anchor ? -1 : 1),
---
> : ir.cursor(a.head, a.head > a.anchor ? -1 : 1),
28343c28573
< h = rc.forRange(e, l, c);
---
> h = Tc.forRange(e, l, c);
28359,28360c28589,28590
< var n = mc(e);
< return n && vc(e.state, t), e.docChanged || e.selectionSet || n;
---
> var n = Hc(e);
> return n && zc(e.state, t), e.docChanged || e.selectionSet || n;
28363c28593
< vc(t.state, e);
---
> zc(t.state, e);
28367,28368c28597,28598
< function vc(e, t) {
< t.style.animationDuration = e.facet(dc).cursorBlinkRate + "ms";
---
> function zc(e, t) {
> t.style.animationDuration = e.facet(Nc).cursorBlinkRate + "ms";
28370c28600
< var yc = hc({
---
> var qc = Fc({
28377c28607
< : rc.forRange(e, "cm-selectionBackground", t);
---
> : Tc.forRange(e, "cm-selectionBackground", t);
28384c28614
< return e.docChanged || e.selectionSet || e.viewportChanged || mc(e);
---
> return e.docChanged || e.selectionSet || e.viewportChanged || Hc(e);
28388c28618
< bc = {
---
> Uc = {
28394,28396c28624,28626
< pc && (bc[".cm-line"].caretColor = "transparent !important");
< var wc = Xi.highest(jl.theme(bc)),
< kc = pr.define({
---
> Bc && (Uc[".cm-line"].caretColor = "transparent !important");
> var Wc = yr.highest(dc.theme(Uc)),
> _c = Br.define({
28401c28631
< Cc = _i.define({
---
> jc = pr.define({
28409c28639
< return t.is(kc) ? t.value : e;
---
> return t.is(_c) ? t.value : e;
28414c28644
< xc = Fa.fromClass(
---
> Gc = is.fromClass(
28427c28657
< n = e.state.field(Cc);
---
> n = e.state.field(jc);
28437c28667
< (e.startState.field(Cc) != n ||
---
> (e.startState.field(jc) != n ||
28443c28673
< var e = this.view.state.field(Cc),
---
> var e = this.view.state.field(jc),
28465,28466c28695,28696
< this.view.state.field(Cc) != e &&
< this.view.dispatch({ effects: kc.of(e) });
---
> this.view.state.field(jc) != e &&
> this.view.dispatch({ effects: _c.of(e) });
28492,28493c28722,28723
< function Ec() {
< return [Cc, xc];
---
> function Kc() {
> return [jc, Gc];
28495c28725
< function Sc(e, t, n, i, r) {
---
> function Yc(e, t, n, i, r) {
28504c28734
< var Mc = (function () {
---
> var Xc = (function () {
28540c28770
< n = new Pr(),
---
> n = new eo(),
28569c28799
< Sc(e.state.doc, this.regexp, s, l, function (n, r) {
---
> Yc(e.state.doc, this.regexp, s, l, function (n, r) {
28628c28858
< Sc(e.state.doc, a.regexp, h, p, function (t, n) {
---
> Yc(e.state.doc, a.regexp, h, p, function (t, n) {
28654,28656c28884,28886
< Tc = null != /x/.unicode ? "gu" : "g",
< Dc = new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]", Tc),
< Ac = {
---
> $c = null != /x/.unicode ? "gu" : "g",
> Zc = new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]", $c),
> Qc = {
28679,28680c28909,28910
< Lc = null;
< var Pc = Ri.define({
---
> Jc = null;
> var eu = ar.define({
28682c28912
< var t = Sr(e, {
---
> var t = Yr(e, {
28684c28914
< specialChars: Dc,
---
> specialChars: Zc,
28691c28921
< null == Lc &&
---
> null == Jc &&
28696c28926
< Lc =
---
> Jc =
28700c28930
< return Lc || !1;
---
> return Jc || !1;
28702c28932
< (t.specialChars = new RegExp("\t|" + t.specialChars.source, Tc)),
---
> (t.specialChars = new RegExp("\t|" + t.specialChars.source, $c)),
28706c28936
< Tc
---
> $c
28712c28942
< function Ic(e) {
---
> function tu(e) {
28716,28718c28946,28948
< Pc.of(e),
< Oc ||
< (Oc = Fa.fromClass(
---
> eu.of(e),
> nu ||
> (nu = is.fromClass(
28722c28952
< (this.decorations = la.none),
---
> (this.decorations = Pa.none),
28724c28954
< (this.decorator = this.makeDecorator(e.state.facet(Pc))),
---
> (this.decorator = this.makeDecorator(e.state.facet(eu))),
28730c28960
< return new Mc({
---
> return new Xc({
28734c28964
< a = wi(n[0], 0);
---
> a = Wi(n[0], 0);
28738,28740c28968,28970
< c = Ur(s.text, l, r - s.from);
< return la.replace({
< widget: new Bc(
---
> c = ho(s.text, l, r - s.from);
> return Pa.replace({
> widget: new ru(
28747,28748c28977,28978
< (t.decorationCache[a] = la.replace({
< widget: new Fc(e, a),
---
> (t.decorationCache[a] = Pa.replace({
> widget: new iu(e, a),
28756,28757c28986,28987
< var t = e.state.facet(Pc);
< e.startState.facet(Pc) != t
---
> var t = e.state.facet(eu);
> e.startState.facet(eu) != t
28779,28780c29009,29010
< var Oc = null;
< var Fc = (function (e) {
---
> var nu = null;
> var iu = (function (e) {
28801c29031
< (Ac[this.code] || "0x" + this.code.toString(16)),
---
> (Qc[this.code] || "0x" + this.code.toString(16)),
28818,28819c29048,29049
< })(aa),
< Bc = (function (e) {
---
> })(Aa),
> ru = (function (e) {
28843,28844c29073,29074
< })(aa),
< Nc = Fa.fromClass(
---
> })(Aa),
> ou = is.fromClass(
28866c29096
< function Rc() {
---
> function au() {
28868,28869c29098,29099
< Nc,
< Ra.of(function (e) {
---
> ou,
> as.of(function (e) {
28872c29102
< (null === (t = e.plugin(Nc)) || void 0 === t
---
> (null === (t = e.plugin(ou)) || void 0 === t
28879,28880c29109,29110
< function Hc() {
< return zc;
---
> function su() {
> return cu;
28882,28883c29112,29113
< var Vc = la.line({ class: "cm-activeLine" }),
< zc = Fa.fromClass(
---
> var lu = Pa.line({ class: "cm-activeLine" }),
> cu = is.fromClass(
28901c29131
< a.from > t && (n.push(Vc.range(a.from)), (t = a.from));
---
> a.from > t && (n.push(lu.range(a.from)), (t = a.from));
28903c29133
< return la.set(n);
---
> return Pa.set(n);
28914c29144
< qc = (function (e) {
---
> uu = (function (e) {
28938c29168
< var t = e.firstChild ? uo(e.firstChild) : [];
---
> var t = e.firstChild ? Fo(e.firstChild) : [];
28940c29170
< ? go(t[0], "rtl" != window.getComputedStyle(e).direction)
---
> ? Vo(t[0], "rtl" != window.getComputedStyle(e).direction)
28948,28950c29178,29180
< })(aa);
< function Uc(e) {
< return Fa.fromClass(
---
> })(Aa);
> function hu(e) {
> return is.fromClass(
28954,28955c29184,29185
< (this.placeholder = la.set([
< la.widget({ widget: new qc(e), side: 1 }).range(0),
---
> (this.placeholder = Pa.set([
> Pa.widget({ widget: new uu(e), side: 1 }).range(0),
28962c29192
< ? la.none
---
> ? Pa.none
28978,28979c29208,29209
< var _c = 2e3;
< function jc(e, t) {
---
> var pu = 2e3;
> function du(e, t) {
28984c29214
< r > _c
---
> r > pu
28995c29225
< : Ur(i.text, e.state.tabSize, n - i.from);
---
> : ho(i.text, e.state.tabSize, n - i.from);
28998,28999c29228,29229
< function Wc(e, t) {
< var n = jc(e, t),
---
> function fu(e, t) {
> var n = du(e, t),
29016c29246
< var a = jc(e, t);
---
> var a = du(e, t);
29022c29252
< if (t.off > _c || n.off > _c || t.col < 0 || n.col < 0)
---
> if (t.off > pu || n.off > pu || t.col < 0 || n.col < 0)
29031c29261
< o.push(Fi.range(h.from + a, h.to + s));
---
> o.push(ir.range(h.from + a, h.to + s));
29037,29038c29267,29268
< p = _r((h = e.doc.line(l)).text, c, e.tabSize, !0);
< if (p < 0) o.push(Fi.cursor(h.to));
---
> p = po((h = e.doc.line(l)).text, c, e.tabSize, !0);
> if (p < 0) o.push(ir.cursor(h.to));
29040,29041c29270,29271
< var d = _r(h.text, u, e.tabSize);
< o.push(Fi.range(h.from + p, h.from + d));
---
> var d = po(h.text, u, e.tabSize);
> o.push(ir.range(h.from + p, h.from + d));
29049,29050c29279,29280
< ? Fi.create(s.concat(i.ranges))
< : Fi.create(s)
---
> ? ir.create(s.concat(i.ranges))
> : ir.create(s)
29056c29286
< function Gc(e) {
---
> function mu(e) {
29062,29063c29292,29293
< return jl.mouseSelectionStyle.of(function (e, n) {
< return t(n) ? Wc(e, n) : null;
---
> return dc.mouseSelectionStyle.of(function (e, n) {
> return t(n) ? fu(e, n) : null;
29066c29296
< var Kc = {
---
> var gu = {
29092,29093c29322,29323
< Yc = { style: "cursor: crosshair" };
< function Xc(e) {
---
> vu = { style: "cursor: crosshair" };
> function yu(e) {
29095c29325
< var t = Kc[e.key || "Alt"],
---
> var t = gu[e.key || "Alt"],
29098c29328
< r = Fa.fromClass(
---
> r = is.fromClass(
29126c29356
< jl.contentAttributes.of(function (e) {
---
> dc.contentAttributes.of(function (e) {
29131c29361
< ? Yc
---
> ? vu
29136,29137c29366,29367
< var Zc = "-10000px",
< $c = (function () {
---
> var bu = "-10000px",
> wu = (function () {
29191,29192c29421,29422
< function Qc(e) {
< return void 0 === e && (e = {}), eu.of(e);
---
> function ku(e) {
> return void 0 === e && (e = {}), Eu.of(e);
29194c29424
< function Jc(e) {
---
> function Cu(e) {
29198c29428
< var eu = Ri.define({
---
> var Eu = ar.define({
29202c29432
< position: _o.ios
---
> position: pa.ios
29223c29453
< : i.tooltipSpace) || Jc,
---
> : i.tooltipSpace) || Cu,
29227,29228c29457,29458
< tu = new WeakMap(),
< nu = Fa.fromClass(
---
> xu = new WeakMap(),
> Su = is.fromClass(
29236c29466
< var n = e.state.facet(eu);
---
> var n = e.state.facet(Eu);
29246c29476
< (this.manager = new $c(e, ou, function (e) {
---
> (this.manager = new wu(e, Du, function (e) {
29302c29532
< i = e.state.facet(eu);
---
> i = e.state.facet(Eu);
29346c29576
< (t.dom.style.top = Zc),
---
> (t.dom.style.top = bu),
29386c29616
< space: this.view.state.facet(eu).tooltipSpace(this.view),
---
> space: this.view.state.facet(Eu).tooltipSpace(this.view),
29407c29637
< l.style.top = Zc;
---
> l.style.top = bu;
29415c29645
< null !== (t = tu.get(s)) && void 0 !== t
---
> null !== (t = xu.get(s)) && void 0 !== t
29418,29419c29648,29649
< m = s.offset || ru,
< g = this.view.textDirection == ja.LTR,
---
> m = s.offset || Tu,
> g = this.view.textDirection == ds.LTR,
29438c29668
< l.style.top = Zc;
---
> l.style.top = bu;
29441c29671
< tu.set(s, f), (l.style.height = (f = b) + "px");
---
> xu.set(s, f), (l.style.height = (f = b) + "px");
29446,29452c29676,29682
< for (var C = 0, x = r; C < x.length; C++) {
< var E = x[C];
< E.left < k &&
< E.right > v &&
< E.top < w + f &&
< E.bottom > w &&
< (w = y ? E.top - f - 2 - p : E.bottom + p + 2);
---
> for (var C = 0, E = r; C < E.length; C++) {
> var x = E[C];
> x.left < k &&
> x.right > v &&
> x.top < w + f &&
> x.bottom > w &&
> (w = y ? x.top - f - 2 - p : x.bottom + p + 2);
29484c29714
< t[e].dom.style.top = Zc;
---
> t[e].dom.style.top = bu;
29498c29728
< iu = jl.baseTheme({
---
> Mu = dc.baseTheme({
29550,29553c29780,29783
< ru = { x: 0, y: 0 },
< ou = Ri.define({ enables: [nu, iu] }),
< au = Ri.define(),
< su = (function () {
---
> Tu = { x: 0, y: 0 },
> Du = ar.define({ enables: [Su, Mu] }),
> Au = ar.define(),
> Lu = (function () {
29560c29790
< (this.manager = new $c(e, au, function (e) {
---
> (this.manager = new wu(e, Au, function (e) {
29614,29615c29844,29845
< lu = ou.compute([au], function (e) {
< var t = e.facet(au).filter(function (e) {
---
> Pu = Du.compute([Au], function (e) {
> var t = e.facet(Au).filter(function (e) {
29637c29867
< create: su.create,
---
> create: Lu.create,
29644c29874
< cu = (function () {
---
> Iu = (function () {
29716c29946
< o = r && r.dir == ja.RTL ? -1 : 1,
---
> o = r && r.dir == ds.RTL ? -1 : 1,
29727c29957
< return La(e.view.state, t, "hover tooltip");
---
> return Ja(e.view.state, t, "hover tooltip");
29749c29979
< if ((n && !uu(this.lastMove.target)) || this.pending) {
---
> if ((n && !Ou(this.lastMove.target)) || this.pending) {
29786c30016
< !uu(e.relatedTarget) &&
---
> !Ou(e.relatedTarget) &&
29800c30030
< function uu(e) {
---
> function Ou(e) {
29805c30035
< function hu(e, t) {
---
> function Fu(e, t) {
29807,29808c30037,30038
< var n = pr.define(),
< i = _i.define({
---
> var n = Br.define(),
> i = pr.define({
29820c30050
< var r = i.changes.mapPos(e.pos, -1, Ei.TrackDel);
---
> var r = i.changes.mapPos(e.pos, -1, Ki.TrackDel);
29829c30059
< l.is(n) && (e = l.value), l.is(fu) && (e = null);
---
> l.is(n) && (e = l.value), l.is(Ru) && (e = null);
29834c30064
< return au.from(e);
---
> return Au.from(e);
29839,29840c30069,30070
< Fa.define(function (r) {
< return new cu(r, e, i, n, t.hoverTime || 300);
---
> is.define(function (r) {
> return new Iu(r, e, i, n, t.hoverTime || 300);
29842c30072
< lu,
---
> Pu,
29845,29846c30075,30076
< function pu(e, t) {
< var n = e.plugin(nu);
---
> function Bu(e, t) {
> var n = e.plugin(Su);
29851,29852c30081,30082
< function du(e) {
< return e.facet(au).some(function (e) {
---
> function Nu(e) {
> return e.facet(Au).some(function (e) {
29856,29858c30086,30088
< var fu = pr.define(),
< mu = fu.of(null);
< function gu(e) {
---
> var Ru = Br.define(),
> Hu = Ru.of(null);
> function Vu(e) {
29860c30090
< null === (t = e.plugin(nu)) || void 0 === t || t.maybeMeasure();
---
> null === (t = e.plugin(Su)) || void 0 === t || t.maybeMeasure();
29862c30092
< var vu = Ri.define({
---
> var zu = ar.define({
29871,29872c30101,30102
< function yu(e) {
< return e ? [vu.of(e)] : [];
---
> function qu(e) {
> return e ? [zu.of(e)] : [];
29874,29875c30104,30105
< function bu(e, t) {
< var n = e.plugin(wu),
---
> function Uu(e, t) {
> var n = e.plugin(Wu),
29879c30109
< var wu = Fa.fromClass(
---
> var Wu = is.fromClass(
29882c30112
< (this.input = e.state.facet(xu)),
---
> (this.input = e.state.facet(Gu)),
29889,29891c30119,30121
< var t = e.state.facet(vu);
< (this.top = new ku(e, !0, t.topContainer)),
< (this.bottom = new ku(e, !1, t.bottomContainer)),
---
> var t = e.state.facet(zu);
> (this.top = new _u(e, !0, t.topContainer)),
> (this.bottom = new _u(e, !1, t.bottomContainer)),
29909c30139
< var t = e.state.facet(vu);
---
> var t = e.state.facet(zu);
29912c30142
< (this.top = new ku(e.view, !0, t.topContainer))),
---
> (this.top = new _u(e.view, !0, t.topContainer))),
29915c30145
< (this.bottom = new ku(e.view, !1, t.bottomContainer))),
---
> (this.bottom = new _u(e.view, !1, t.bottomContainer))),
29918c30148
< var n = e.state.facet(xu);
---
> var n = e.state.facet(Gu);
29964c30194
< return jl.scrollMargins.of(function (t) {
---
> return dc.scrollMargins.of(function (t) {
29976c30206
< ku = (function () {
---
> _u = (function () {
30012c30242
< for (; t != r.dom; ) t = Cu(t);
---
> for (; t != r.dom; ) t = ju(t);
30016c30246
< for (; t; ) t = Cu(t);
---
> for (; t; ) t = ju(t);
30059c30289
< function Cu(e) {
---
> function ju(e) {
30063,30064c30293,30294
< var xu = Ri.define({ enables: wu }),
< Eu = (function (e) {
---
> var Gu = ar.define({ enables: Wu }),
> Ku = (function (e) {
30081,30088c30311,30318
< })(Mr);
< (Eu.prototype.elementClass = ""),
< (Eu.prototype.toDOM = void 0),
< (Eu.prototype.mapMode = Ei.TrackBefore),
< (Eu.prototype.startSide = Eu.prototype.endSide = -1),
< (Eu.prototype.point = !0);
< var Su = Ri.define(),
< Mu = {
---
> })(Xr);
> (Ku.prototype.elementClass = ""),
> (Ku.prototype.toDOM = void 0),
> (Ku.prototype.mapMode = Ki.TrackBefore),
> (Ku.prototype.startSide = Ku.prototype.endSide = -1),
> (Ku.prototype.point = !0);
> var Yu = ar.define(),
> Xu = {
30093c30323
< return Lr.empty;
---
> return Jr.empty;
30103,30105c30333,30335
< Tu = Ri.define();
< function Du(e) {
< return [Lu(), Tu.of(Object.assign(Object.assign({}, Mu), e))];
---
> $u = ar.define();
> function Zu(e) {
> return [Ju(), $u.of(Object.assign(Object.assign({}, Xu), e))];
30107c30337
< var Au = Ri.define({
---
> var Qu = ar.define({
30114,30116c30344,30346
< function Lu(e) {
< var t = [Pu];
< return e && !1 === e.fixed && t.push(Au.of(!0)), t;
---
> function Ju(e) {
> var t = [eh];
> return e && !1 === e.fixed && t.push(Qu.of(!0)), t;
30118c30348
< var Pu = Fa.fromClass(
---
> var eh = is.fromClass(
30127,30128c30357,30358
< (this.gutters = e.state.facet(Tu).map(function (t) {
< return new Nu(e, t);
---
> (this.gutters = e.state.facet($u).map(function (t) {
> return new oh(e, t);
30134c30364
< (this.fixed = !e.state.facet(Au)),
---
> (this.fixed = !e.state.facet(Qu)),
30149c30379
< this.view.state.facet(Au) != !this.fixed &&
---
> this.view.state.facet(Qu) != !this.fixed &&
30159,30160c30389,30390
< var i = Lr.iter(
< this.view.state.facet(Su),
---
> var i = Jr.iter(
> this.view.state.facet(Yu),
30165c30395
< return new Bu(
---
> return new rh(
30183c30413
< if (f.type == sa.Text) {
---
> if (f.type == La.Text) {
30188c30418,30419
< else h = c.type == sa.Text || a < u ? c : void 0;
---
> else
> h = c.type == La.Text || (a < u && c.height > 1) ? c : void 0;
30190c30421
< r.length && (r = []), Ou(i, r, c.from);
---
> r.length && (r = []), nh(i, r, c.from);
30202,30203c30433,30434
< var t = e.startState.facet(Tu),
< n = e.state.facet(Tu),
---
> var t = e.startState.facet($u),
> n = e.state.facet($u),
30208,30210c30439,30441
< !Lr.eq(
< e.startState.facet(Su),
< e.state.facet(Su),
---
> !Jr.eq(
> e.startState.facet(Yu),
> e.state.facet(Yu),
30224c30455
< ? a.push(new Nu(this.view, c))
---
> ? a.push(new oh(this.view, c))
30249c30480
< return jl.scrollMargins.of(function (t) {
---
> return dc.scrollMargins.of(function (t) {
30252c30483
< ? t.textDirection == ja.LTR
---
> ? t.textDirection == ds.LTR
30260c30491
< function Iu(e) {
---
> function th(e) {
30263c30494
< function Ou(e, t, n) {
---
> function nh(e, t, n) {
30267c30498
< function Fu(e) {
---
> function ih(e) {
30272,30273c30503,30504
< if (e.firstChild) return Fu(e.firstChild);
< if (e.nextSibling) return Fu(e.nextSibling);
---
> if (e.firstChild) return ih(e.firstChild);
> if (e.nextSibling) return ih(e.nextSibling);
30276c30507
< if (t.nextSibling) return Fu(t.nextSibling);
---
> if (t.nextSibling) return ih(t.nextSibling);
30281c30512
< var Bu = (function () {
---
> var rh = (function () {
30286c30517
< (this.cursor = Lr.iter(e.markers, t.from));
---
> (this.cursor = Jr.iter(e.markers, t.from));
30291c30522
< Ou(this.cursor, i, t.from), n.length && (i = i.concat(n));
---
> nh(this.cursor, i, t.from), n.length && (i = i.concat(n));
30299c30530
< var l = new Ru(e, t.height, s, i);
---
> var l = new ah(e, t.height, s, i);
30319c30550
< var s = Fu(o);
---
> var s = ih(o);
30344c30575
< Nu = (function () {
---
> oh = (function () {
30370c30601
< (this.markers = Iu(t.markers(e))),
---
> (this.markers = th(t.markers(e))),
30372c30603
< ((this.spacer = new Ru(e, 0, 0, [t.initialSpacer(e)])),
---
> ((this.spacer = new ah(e, 0, 0, [t.initialSpacer(e)])),
30381c30612
< ((this.markers = Iu(this.config.markers(e.view))),
---
> ((this.markers = th(this.config.markers(e.view))),
30390c30621
< !Lr.eq(this.markers, t, i.from, i.to) ||
---
> !Jr.eq(this.markers, t, i.from, i.to) ||
30403c30634
< Ru = (function () {
---
> ah = (function () {
30469,30470c30700,30701
< var Hu = Ri.define(),
< Vu = Ri.define({
---
> var sh = ar.define(),
> lh = ar.define({
30472c30703
< return Sr(
---
> return Yr(
30494c30725
< zu = (function (e) {
---
> ch = (function (e) {
30509,30511c30740,30742
< })(Eu);
< function qu(e, t) {
< return e.state.facet(Vu).formatNumber(t, e.state);
---
> })(Ku);
> function uh(e, t) {
> return e.state.facet(lh).formatNumber(t, e.state);
30513c30744
< var Uu = Tu.compute([Vu], function (e) {
---
> var hh = $u.compute([lh], function (e) {
30518c30749
< return e.state.facet(Hu);
---
> return e.state.facet(sh);
30525c30756
< : new zu(qu(e, e.state.doc.lineAt(t.from).number));
---
> : new ch(uh(e, e.state.doc.lineAt(t.from).number));
30528c30759
< return e.startState.facet(Vu) != e.state.facet(Vu);
---
> return e.startState.facet(lh) != e.state.facet(lh);
30531c30762
< return new zu(qu(e, ju(e.state.doc.lines)));
---
> return new ch(uh(e, dh(e.state.doc.lines)));
30534,30535c30765,30766
< var n = qu(t.view, ju(t.view.state.doc.lines));
< return n == e.number ? e : new zu(n);
---
> var n = uh(t.view, dh(t.view.state.doc.lines));
> return n == e.number ? e : new ch(n);
30537c30768
< domEventHandlers: e.facet(Vu).domEventHandlers,
---
> domEventHandlers: e.facet(lh).domEventHandlers,
30540,30541c30771,30772
< function _u(e) {
< return void 0 === e && (e = {}), [Vu.of(e), Lu(), Uu];
---
> function ph(e) {
> return void 0 === e && (e = {}), [lh.of(e), Ju(), hh];
30543c30774
< function ju(e) {
---
> function dh(e) {
30547c30778
< var Wu = new ((function (e) {
---
> var fh = new ((function (e) {
30553,30554c30784,30785
< })(Eu))(),
< Gu = Su.compute(["selection"], function (e) {
---
> })(Ku))(),
> mh = Yu.compute(["selection"], function (e) {
30562c30793
< a > n && ((n = a), t.push(Wu.range(a)));
---
> a > n && ((n = a), t.push(fh.range(a)));
30564c30795
< return Lr.of(t);
---
> return Jr.of(t);
30566,30567c30797,30798
< function Ku() {
< return Gu;
---
> function gh() {
> return mh;
30569,30571c30800,30802
< var Yu = new Map();
< function Xu(e) {
< return Fa.define(
---
> var vh = new Map();
> function yh(e) {
> return is.define(
30587,30588c30818,30819
< var Zu = Xu(
< new Mc({
---
> var bh = yh(
> new Xc({
30592c30823
< var t = Yu.get(e);
---
> var t = vh.get(e);
30595c30826
< Yu.set(
---
> vh.set(
30597c30828
< (t = la.mark({
---
> (t = Pa.mark({
30614,30615c30845,30846
< function $u() {
< return Zu;
---
> function wh() {
> return bh;
30617,30618c30848,30849
< var Qu = Xu(
< new Mc({
---
> var kh = yh(
> new Xc({
30620c30851
< decoration: la.mark({ class: "cm-trailingSpace" }),
---
> decoration: Pa.mark({ class: "cm-trailingSpace" }),
30624,30625c30855,30856
< function Ju() {
< return Qu;
---
> function Ch() {
> return kh;
30627,30634c30858,30865
< var eh = {
< HeightMap: ul,
< HeightOracle: ol,
< MeasuredHeights: al,
< QueryType: ll,
< ChangedRange: Ua,
< computeOrder: ss,
< moveVisually: us,
---
> var Eh = {
> HeightMap: Ol,
> HeightOracle: Dl,
> MeasuredHeights: Al,
> QueryType: Pl,
> ChangedRange: hs,
> computeOrder: Ls,
> moveVisually: Os,
30636,30637c30867,30868
< th = 0,
< nh = (function () {
---
> xh = 0,
> Sh = (function () {
30642c30873
< (this.id = th++);
---
> (this.id = xh++);
30657c30888
< var e = new rh();
---
> var e = new Th();
30661c30892
< : rh.get(
---
> : Th.get(
30672,30673c30903,30904
< ih = 0,
< rh = (function () {
---
> Mh = 0,
> Th = (function () {
30675c30906
< (this.instances = []), (this.id = ih++);
---
> (this.instances = []), (this.id = Mh++);
30694c30925
< var r = [], o = new nh(r, t, n), a = 0, s = n;
---
> var r = [], o = new Sh(r, t, n), a = 0, s = n;
30700c30931
< for (var l = oh(n), c = 0, u = t.set; c < u.length; c++)
---
> for (var l = Dh(n), c = 0, u = t.set; c < u.length; c++)
30710c30941
< function oh(e) {
---
> function Dh(e) {
30713c30944
< var i = 0, r = oh(e.slice(0, n).concat(e.slice(n + 1)));
---
> var i = 0, r = Dh(e.slice(0, n).concat(e.slice(n + 1)));
30722c30953
< function ah(e) {
---
> function Ah(e) {
30755c30986
< var m = new lh(i, l, d > 0 ? s.slice(0, d) : null);
---
> var m = new Ph(i, l, d > 0 ? s.slice(0, d) : null);
30760c30991
< return sh.add(t);
---
> return Lh.add(t);
30762,30763c30993,30994
< var sh = new mn(),
< lh = (function () {
---
> var Lh = new Hn(),
> Ph = (function () {
30786c31017
< function ch(e, t) {
---
> function Ih(e, t) {
30816c31047
< function uh(e, t) {
---
> function Oh(e, t) {
30823c31054
< function hh(e, t, n, i, r) {
---
> function Fh(e, t, n, i, r) {
30825c31056
< var o = new dh(i, Array.isArray(t) ? t : [t], n);
---
> var o = new Nh(i, Array.isArray(t) ? t : [t], n);
30828,30829c31059,31060
< var ph,
< dh = (function () {
---
> var Bh,
> Nh = (function () {
30853c31084
< for (var l = i, c = o.prop(sh), u = !1; c; ) {
---
> for (var l = i, c = o.prop(Lh), u = !1; c; ) {
30855c31086
< var h = uh(r, c.tags);
---
> var h = Oh(r, c.tags);
30867c31098
< var p = e.tree && e.tree.prop(mn.mounted);
---
> var p = e.tree && e.tree.prop(Hn.mounted);
30921,31036c31152,31267
< fh = nh.define,
< mh = fh(),
< gh = fh(),
< vh = fh(gh),
< yh = fh(gh),
< bh = fh(),
< wh = fh(bh),
< kh = fh(bh),
< Ch = fh(),
< xh = fh(Ch),
< Eh = fh(),
< Sh = fh(),
< Mh = fh(),
< Th = fh(Mh),
< Dh = fh(),
< Ah = {
< comment: mh,
< lineComment: fh(mh),
< blockComment: fh(mh),
< docComment: fh(mh),
< name: gh,
< variableName: fh(gh),
< typeName: vh,
< tagName: fh(vh),
< propertyName: yh,
< attributeName: fh(yh),
< className: fh(gh),
< labelName: fh(gh),
< namespace: fh(gh),
< macroName: fh(gh),
< literal: bh,
< string: wh,
< docString: fh(wh),
< character: fh(wh),
< attributeValue: fh(wh),
< number: kh,
< integer: fh(kh),
< float: fh(kh),
< bool: fh(bh),
< regexp: fh(bh),
< escape: fh(bh),
< color: fh(bh),
< url: fh(bh),
< keyword: Eh,
< self: fh(Eh),
< null: fh(Eh),
< atom: fh(Eh),
< unit: fh(Eh),
< modifier: fh(Eh),
< operatorKeyword: fh(Eh),
< controlKeyword: fh(Eh),
< definitionKeyword: fh(Eh),
< moduleKeyword: fh(Eh),
< operator: Sh,
< derefOperator: fh(Sh),
< arithmeticOperator: fh(Sh),
< logicOperator: fh(Sh),
< bitwiseOperator: fh(Sh),
< compareOperator: fh(Sh),
< updateOperator: fh(Sh),
< definitionOperator: fh(Sh),
< typeOperator: fh(Sh),
< controlOperator: fh(Sh),
< punctuation: Mh,
< separator: fh(Mh),
< bracket: Th,
< angleBracket: fh(Th),
< squareBracket: fh(Th),
< paren: fh(Th),
< brace: fh(Th),
< content: Ch,
< heading: xh,
< heading1: fh(xh),
< heading2: fh(xh),
< heading3: fh(xh),
< heading4: fh(xh),
< heading5: fh(xh),
< heading6: fh(xh),
< contentSeparator: fh(Ch),
< list: fh(Ch),
< quote: fh(Ch),
< emphasis: fh(Ch),
< strong: fh(Ch),
< link: fh(Ch),
< monospace: fh(Ch),
< strikethrough: fh(Ch),
< inserted: fh(),
< deleted: fh(),
< changed: fh(),
< invalid: fh(),
< meta: Dh,
< documentMeta: fh(Dh),
< annotation: fh(Dh),
< processingInstruction: fh(Dh),
< definition: nh.defineModifier(),
< constant: nh.defineModifier(),
< function: nh.defineModifier(),
< standard: nh.defineModifier(),
< local: nh.defineModifier(),
< special: nh.defineModifier(),
< },
< Lh = ch([
< { tag: Ah.link, class: "tok-link" },
< { tag: Ah.heading, class: "tok-heading" },
< { tag: Ah.emphasis, class: "tok-emphasis" },
< { tag: Ah.strong, class: "tok-strong" },
< { tag: Ah.keyword, class: "tok-keyword" },
< { tag: Ah.atom, class: "tok-atom" },
< { tag: Ah.bool, class: "tok-bool" },
< { tag: Ah.url, class: "tok-url" },
< { tag: Ah.labelName, class: "tok-labelName" },
< { tag: Ah.inserted, class: "tok-inserted" },
< { tag: Ah.deleted, class: "tok-deleted" },
< { tag: Ah.literal, class: "tok-literal" },
< { tag: Ah.string, class: "tok-string" },
< { tag: Ah.number, class: "tok-number" },
---
> Rh = Sh.define,
> Hh = Rh(),
> Vh = Rh(),
> zh = Rh(Vh),
> qh = Rh(Vh),
> Uh = Rh(),
> Wh = Rh(Uh),
> _h = Rh(Uh),
> jh = Rh(),
> Gh = Rh(jh),
> Kh = Rh(),
> Yh = Rh(),
> Xh = Rh(),
> $h = Rh(Xh),
> Zh = Rh(),
> Qh = {
> comment: Hh,
> lineComment: Rh(Hh),
> blockComment: Rh(Hh),
> docComment: Rh(Hh),
> name: Vh,
> variableName: Rh(Vh),
> typeName: zh,
> tagName: Rh(zh),
> propertyName: qh,
> attributeName: Rh(qh),
> className: Rh(Vh),
> labelName: Rh(Vh),
> namespace: Rh(Vh),
> macroName: Rh(Vh),
> literal: Uh,
> string: Wh,
> docString: Rh(Wh),
> character: Rh(Wh),
> attributeValue: Rh(Wh),
> number: _h,
> integer: Rh(_h),
> float: Rh(_h),
> bool: Rh(Uh),
> regexp: Rh(Uh),
> escape: Rh(Uh),
> color: Rh(Uh),
> url: Rh(Uh),
> keyword: Kh,
> self: Rh(Kh),
> null: Rh(Kh),
> atom: Rh(Kh),
> unit: Rh(Kh),
> modifier: Rh(Kh),
> operatorKeyword: Rh(Kh),
> controlKeyword: Rh(Kh),
> definitionKeyword: Rh(Kh),
> moduleKeyword: Rh(Kh),
> operator: Yh,
> derefOperator: Rh(Yh),
> arithmeticOperator: Rh(Yh),
> logicOperator: Rh(Yh),
> bitwiseOperator: Rh(Yh),
> compareOperator: Rh(Yh),
> updateOperator: Rh(Yh),
> definitionOperator: Rh(Yh),
> typeOperator: Rh(Yh),
> controlOperator: Rh(Yh),
> punctuation: Xh,
> separator: Rh(Xh),
> bracket: $h,
> angleBracket: Rh($h),
> squareBracket: Rh($h),
> paren: Rh($h),
> brace: Rh($h),
> content: jh,
> heading: Gh,
> heading1: Rh(Gh),
> heading2: Rh(Gh),
> heading3: Rh(Gh),
> heading4: Rh(Gh),
> heading5: Rh(Gh),
> heading6: Rh(Gh),
> contentSeparator: Rh(jh),
> list: Rh(jh),
> quote: Rh(jh),
> emphasis: Rh(jh),
> strong: Rh(jh),
> link: Rh(jh),
> monospace: Rh(jh),
> strikethrough: Rh(jh),
> inserted: Rh(),
> deleted: Rh(),
> changed: Rh(),
> invalid: Rh(),
> meta: Zh,
> documentMeta: Rh(Zh),
> annotation: Rh(Zh),
> processingInstruction: Rh(Zh),
> definition: Sh.defineModifier(),
> constant: Sh.defineModifier(),
> function: Sh.defineModifier(),
> standard: Sh.defineModifier(),
> local: Sh.defineModifier(),
> special: Sh.defineModifier(),
> },
> Jh = Ih([
> { tag: Qh.link, class: "tok-link" },
> { tag: Qh.heading, class: "tok-heading" },
> { tag: Qh.emphasis, class: "tok-emphasis" },
> { tag: Qh.strong, class: "tok-strong" },
> { tag: Qh.keyword, class: "tok-keyword" },
> { tag: Qh.atom, class: "tok-atom" },
> { tag: Qh.bool, class: "tok-bool" },
> { tag: Qh.url, class: "tok-url" },
> { tag: Qh.labelName, class: "tok-labelName" },
> { tag: Qh.inserted, class: "tok-inserted" },
> { tag: Qh.deleted, class: "tok-deleted" },
> { tag: Qh.literal, class: "tok-literal" },
> { tag: Qh.string, class: "tok-string" },
> { tag: Qh.number, class: "tok-number" },
31038c31269
< tag: [Ah.regexp, Ah.escape, Ah.special(Ah.string)],
---
> tag: [Qh.regexp, Qh.escape, Qh.special(Qh.string)],
31041c31272
< { tag: Ah.variableName, class: "tok-variableName" },
---
> { tag: Qh.variableName, class: "tok-variableName" },
31043c31274
< tag: Ah.local(Ah.variableName),
---
> tag: Qh.local(Qh.variableName),
31047c31278
< tag: Ah.definition(Ah.variableName),
---
> tag: Qh.definition(Qh.variableName),
31050c31281
< { tag: Ah.special(Ah.variableName), class: "tok-variableName2" },
---
> { tag: Qh.special(Qh.variableName), class: "tok-variableName2" },
31052c31283
< tag: Ah.definition(Ah.propertyName),
---
> tag: Qh.definition(Qh.propertyName),
31055,31064c31286,31295
< { tag: Ah.typeName, class: "tok-typeName" },
< { tag: Ah.namespace, class: "tok-namespace" },
< { tag: Ah.className, class: "tok-className" },
< { tag: Ah.macroName, class: "tok-macroName" },
< { tag: Ah.propertyName, class: "tok-propertyName" },
< { tag: Ah.operator, class: "tok-operator" },
< { tag: Ah.comment, class: "tok-comment" },
< { tag: Ah.meta, class: "tok-meta" },
< { tag: Ah.invalid, class: "tok-invalid" },
< { tag: Ah.punctuation, class: "tok-punctuation" },
---
> { tag: Qh.typeName, class: "tok-typeName" },
> { tag: Qh.namespace, class: "tok-namespace" },
> { tag: Qh.className, class: "tok-className" },
> { tag: Qh.macroName, class: "tok-macroName" },
> { tag: Qh.propertyName, class: "tok-propertyName" },
> { tag: Qh.operator, class: "tok-operator" },
> { tag: Qh.comment, class: "tok-comment" },
> { tag: Qh.meta, class: "tok-meta" },
> { tag: Qh.invalid, class: "tok-invalid" },
> { tag: Qh.punctuation, class: "tok-punctuation" },
31066,31068c31297,31299
< Ph = new mn();
< function Ih(e) {
< return Ri.define({
---
> ep = new Hn();
> function tp(e) {
> return ar.define({
31076,31077c31307,31308
< var Oh = new mn(),
< Fh = (function () {
---
> var np = new Hn(),
> ip = (function () {
31083,31084c31314,31315
< Er.prototype.hasOwnProperty("tree") ||
< Object.defineProperty(Er.prototype, "tree", {
---
> Kr.prototype.hasOwnProperty("tree") ||
> Object.defineProperty(Kr.prototype, "tree", {
31086c31317
< return Rh(this);
---
> return ap(this);
31091,31094c31322,31325
< Zh.of(this),
< Er.languageData.of(function (e, t, n) {
< var i = Bh(e, t, n),
< r = i.type.prop(Ph);
---
> bp.of(this),
> Kr.languageData.of(function (e, t, n) {
> var i = rp(e, t, n),
> r = i.type.prop(ep);
31097c31328
< a = i.type.prop(Oh);
---
> a = i.type.prop(np);
31117c31348
< void 0 === n && (n = -1), Bh(e, t, n).type.prop(Ph) == this.data
---
> void 0 === n && (n = -1), rp(e, t, n).type.prop(ep) == this.data
31122c31353
< n = e.facet(Zh);
---
> n = e.facet(bp);
31128,31129c31359,31360
< if (e.prop(Ph) != t.data) {
< var o = e.prop(mn.mounted);
---
> if (e.prop(ep) != t.data) {
> var o = e.prop(Hn.mounted);
31131c31362
< if (o.tree.prop(Ph) == t.data) {
---
> if (o.tree.prop(ep) == t.data) {
31148c31379
< h instanceof xn && r(h, e.positions[u] + n);
---
> h instanceof Gn && r(h, e.positions[u] + n);
31152c31383
< return r(Rh(e), 0), i;
---
> return r(ap(e), 0), i;
31164,31166c31395,31397
< function Bh(e, t, n) {
< var i = e.facet(Zh),
< r = Rh(e).topNode;
---
> function rp(e, t, n) {
> var i = e.facet(bp),
> r = ap(e).topNode;
31168c31399
< for (var o = r; o; o = o.enter(t, n, bn.ExcludeBuffers))
---
> for (var o = r; o; o = o.enter(t, n, Un.ExcludeBuffers))
31172,31173c31403,31404
< Fh.setState = pr.define();
< var Nh = (function (e) {
---
> ip.setState = Br.define();
> var op = (function (e) {
31181c31412
< var n = Ih(e.languageData);
---
> var n = tp(e.languageData);
31186c31417
< Ph.add(function (e) {
---
> ep.add(function (e) {
31206,31209c31437,31440
< })(Fh);
< function Rh(e) {
< var t = e.field(Fh.state, !1);
< return t ? t.tree : xn.empty;
---
> })(ip);
> function ap(e) {
> var t = e.field(ip.state, !1);
> return t ? t.tree : Gn.empty;
31211c31442
< function Hh(e, t, n) {
---
> function sp(e, t, n) {
31215c31446
< null === (i = e.field(Fh.state, !1)) || void 0 === i
---
> null === (i = e.field(ip.state, !1)) || void 0 === i
31224c31455
< function Vh(e, t) {
---
> function lp(e, t) {
31228c31459
< (null === (n = e.field(Fh.state, !1)) || void 0 === n
---
> (null === (n = e.field(ip.state, !1)) || void 0 === n
31233c31464
< function zh(e, t, n) {
---
> function cp(e, t, n) {
31235,31236c31466,31467
< var i = Hh(e.state, t, n);
< return i != Rh(e.state) && e.dispatch({}), !!i;
---
> var i = sp(e.state, t, n);
> return i != ap(e.state) && e.dispatch({}), !!i;
31238c31469
< function qh(e) {
---
> function up(e) {
31241c31472
< (null === (t = e.plugin(Xh)) || void 0 === t
---
> (null === (t = e.plugin(yp)) || void 0 === t
31246c31477
< var Uh = (function () {
---
> var hp = (function () {
31287,31288c31518,31519
< _h = null,
< jh = (function () {
---
> pp = null,
> dp = (function () {
31304c31535
< return new e(t, n, [], xn.empty, 0, i, [], null);
---
> return new e(t, n, [], Gn.empty, 0, i, [], null);
31308c31539
< new Uh(this.state.doc),
---
> new hp(this.state.doc),
31316c31547
< this.tree != xn.empty &&
---
> this.tree != Gn.empty &&
31341c31572
< qn.addTree(
---
> ui.addTree(
31377c31608
< qn.addTree(this.tree, this.fragments, !0)
---
> ui.addTree(this.tree, this.fragments, !0)
31382,31383c31613,31614
< var t = _h;
< _h = this;
---
> var t = pp;
> pp = this;
31387c31618
< _h = t;
---
> pp = t;
31392c31623
< e = Wh(e, t.from, t.to);
---
> e = fp(e, t.from, t.to);
31408,31409c31639,31640
< (r = qn.applyChanges(r, c)),
< (o = xn.empty),
---
> (r = ui.applyChanges(r, c)),
> (o = Gn.empty),
31439c31670
< ((this.fragments = Wh(this.fragments, r, o)),
---
> ((this.fragments = fp(this.fragments, r, o)),
31463c31694
< var t = _h;
---
> var t = pp;
31475c31706
< (this.parsedPos = o), new xn(yn.none, [], [], o - r)
---
> (this.parsedPos = o), new Gn(qn.none, [], [], o - r)
31484c31715
< })(Un))();
---
> })(hi))();
31494c31725
< return _h;
---
> return pp;
31499,31500c31730,31731
< function Wh(e, t, n) {
< return qn.applyChanges(e, [{ fromA: t, toA: n, fromB: t, toB: n }]);
---
> function fp(e, t, n) {
> return ui.applyChanges(e, [{ fromA: t, toA: n, fromB: t, toB: n }]);
31502c31733
< var Gh = (function () {
---
> var mp = (function () {
31521c31752
< i = jh.create(t.facet(Zh).parser, t, { from: 0, to: n });
---
> i = dp.create(t.facet(bp).parser, t, { from: 0, to: n });
31527,31528c31758,31759
< Fh.state = _i.define({
< create: Gh.init,
---
> ip.state = pr.define({
> create: mp.init,
31532c31763
< if (r.is(Fh.setState)) return r.value;
---
> if (r.is(ip.setState)) return r.value;
31534,31535c31765,31766
< return t.startState.facet(Zh) != t.state.facet(Zh)
< ? Gh.init(t.state)
---
> return t.startState.facet(bp) != t.state.facet(bp)
> ? mp.init(t.state)
31539c31770
< var Kh = function (e) {
---
> var gp = function (e) {
31548c31779
< (Kh = function (e) {
---
> (gp = function (e) {
31557c31788
< var Yh =
---
> var vp =
31559c31790
< (null === (ph = navigator.scheduling) || void 0 === ph
---
> (null === (Bh = navigator.scheduling) || void 0 === Bh
31561c31792
< : ph.isInputPending)
---
> : Bh.isInputPending)
31566c31797
< Xh = Fa.fromClass(
---
> yp = is.fromClass(
31579c31810
< var t = this.view.state.field(Fh.state).context;
---
> var t = this.view.state.field(ip.state).context;
31591c31822
< t = e.field(Fh.state);
---
> t = e.field(ip.state);
31594c31825
< (this.working = Kh(this.work));
---
> (this.working = gp(this.work));
31609c31840
< o = i.field(Fh.state);
---
> o = i.field(ip.state);
31616c31847
< e && !Yh ? Math.max(25, e.timeRemaining() - 5) : 1e9
---
> e && !vp ? Math.max(25, e.timeRemaining() - 5) : 1e9
31620c31851
< return (Yh && Yh()) || Date.now() > a;
---
> return (vp && vp()) || Date.now() > a;
31626c31857
< effects: Fh.setState.of(new Gh(o.context)),
---
> effects: ip.setState.of(new mp(o.context)),
31642c31873
< return La(t.view.state, e);
---
> return Ja(t.view.state, e);
31666c31897
< Zh = Ri.define({
---
> bp = ar.define({
31672,31674c31903,31905
< Fh.state,
< Xh,
< jl.contentAttributes.compute([e], function (t) {
---
> ip.state,
> yp,
> dc.contentAttributes.compute([e], function (t) {
31681c31912
< $h = function (e, t) {
---
> wp = function (e, t) {
31687c31918
< Qh = (function () {
---
> kp = (function () {
31775,31776c32006,32007
< Jh = Ri.define(),
< ep = Ri.define({
---
> Cp = ar.define(),
> Ep = ar.define({
31791,31792c32022,32023
< function tp(e) {
< var t = e.facet(ep);
---
> function xp(e) {
> var t = e.facet(Ep);
31795c32026
< function np(e, t) {
---
> function Sp(e, t) {
31798c32029
< r = e.facet(ep)[0];
---
> r = e.facet(Ep)[0];
31806,31808c32037,32039
< function ip(e, t) {
< e instanceof Er && (e = new op(e));
< for (var n = 0, i = e.state.facet(Jh); n < i.length; n++) {
---
> function Mp(e, t) {
> e instanceof Kr && (e = new Dp(e));
> for (var n = 0, i = e.state.facet(Cp); n < i.length; n++) {
31812c32043
< var o = Rh(e.state);
---
> var o = ap(e.state);
31815c32046
< return lp(t.resolveInner(n).enterUnfinishedNodesBefore(n), n, e);
---
> return Pp(t.resolveInner(n).enterUnfinishedNodesBefore(n), n, e);
31819c32050
< function rp(e, t, n) {
---
> function Tp(e, t, n) {
31822c32053
< r = new op(e, {
---
> r = new Dp(e, {
31835c32066
< var l = ip(r, s.from);
---
> var l = Mp(r, s.from);
31839c32070
< u = np(e, l);
---
> u = Sp(e, l);
31847c32078
< var op = (function () {
---
> var Dp = (function () {
31852c32083
< (this.unit = tp(e));
---
> (this.unit = xp(e));
31896c32127
< void 0 === t && (t = e.length), Ur(e, this.state.tabSize, t)
---
> void 0 === t && (t = e.length), ho(e, this.state.tabSize, t)
31921,31923c32152,32154
< ap = new mn();
< function sp(e) {
< var t = e.type.prop(ap);
---
> Ap = new Hn();
> function Lp(e) {
> var t = e.type.prop(Ap);
31927c32158
< if (i && (n = i.type.prop(mn.closedBy))) {
---
> if (i && (n = i.type.prop(Hn.closedBy))) {
31931c32162
< return dp(
---
> return Np(
31948c32179
< return null == e.parent ? cp : null;
---
> return null == e.parent ? Ip : null;
31950c32181
< function lp(e, t, n) {
---
> function Pp(e, t, n) {
31952,31953c32183,32184
< var i = sp(e);
< if (i) return i(up.create(n, t, e));
---
> var i = Lp(e);
> if (i) return i(Op.create(n, t, e));
31957c32188
< function cp() {
---
> function Ip() {
31960c32191
< var up = (function (e) {
---
> var Op = (function (e) {
31986c32217
< if (hp(t, this.node)) break;
---
> if (Fp(t, this.node)) break;
31996c32227
< return e ? lp(e, this.pos, this.base) : 0;
---
> return e ? Pp(e, this.pos, this.base) : 0;
32000,32001c32231,32232
< })(op);
< function hp(e, t) {
---
> })(Dp);
> function Fp(e, t) {
32005c32236
< function pp(e) {
---
> function Bp(e) {
32012c32243
< return dp(e, i, o, t);
---
> return Np(e, i, o, t);
32015c32246
< function dp(e, t, n, i, r) {
---
> function Np(e, t, n, i, r) {
32046c32277
< var fp = function (e) {
---
> var Rp = function (e) {
32049c32280
< function mp(e) {
---
> function Hp(e) {
32059,32060c32290,32291
< function gp() {
< return Er.transactionFilter.of(function (e) {
---
> function Vp() {
> return Kr.transactionFilter.of(function (e) {
32091c32322
< var d = ip(a, p.from);
---
> var d = Mp(a, p.from);
32094c32325
< m = np(a, d);
---
> m = Sp(a, d);
32103,32105c32334,32336
< var vp = Ri.define(),
< yp = new mn();
< function bp(e) {
---
> var zp = ar.define(),
> qp = new Hn();
> function Up(e) {
32112,32113c32343,32344
< function wp(e, t, n) {
< for (var i = 0, r = e.facet(vp); i < r.length; i++) {
---
> function Wp(e, t, n) {
> for (var i = 0, r = e.facet(zp); i < r.length; i++) {
32118c32349
< var i = Rh(e);
---
> var i = ap(e);
32123c32354
< var l = s.type.prop(yp);
---
> var l = s.type.prop(qp);
32138c32369
< function kp(e, t) {
---
> function _p(e, t) {
32143,32145c32374,32376
< var Cp = pr.define({ map: kp }),
< xp = pr.define({ map: kp });
< function Ep(e) {
---
> var jp = Br.define({ map: _p }),
> Gp = Br.define({ map: _p });
> function Kp(e) {
32166c32397
< var Sp = _i.define({
---
> var Yp = pr.define({
32168c32399
< return la.none;
---
> return Pa.none;
32174c32405
< t.is(Cp) &&
---
> t.is(jp) &&
32185c32416
< add: [zp.range(t.value.from, t.value.to)],
---
> add: [cd.range(t.value.from, t.value.to)],
32187c32418
< : t.is(xp) &&
---
> : t.is(Gp) &&
32221c32452
< return jl.decorations.from(e);
---
> return dc.decorations.from(e);
32240c32471
< t.push(zp.range(i, r));
---
> t.push(cd.range(i, r));
32242c32473
< return la.set(t, !0);
---
> return Pa.set(t, !0);
32245,32246c32476,32477
< function Mp(e) {
< return e.field(Sp, !1) || Lr.empty;
---
> function Xp(e) {
> return e.field(Yp, !1) || Jr.empty;
32248c32479
< function Tp(e, t, n) {
---
> function $p(e, t, n) {
32252c32483
< null === (i = e.field(Sp, !1)) ||
---
> null === (i = e.field(Yp, !1)) ||
32260,32261c32491,32492
< function Dp(e, t) {
< return e.field(Sp, !1) ? t : t.concat(pr.appendConfig.of(Vp()));
---
> function Zp(e, t) {
> return e.field(Yp, !1) ? t : t.concat(Br.appendConfig.of(ld()));
32263,32264c32494,32495
< var Ap = function (e) {
< for (var t = 0, n = Ep(e); t < n.length; t++) {
---
> var Qp = function (e) {
> for (var t = 0, n = Kp(e); t < n.length; t++) {
32266c32497
< r = wp(e.state, i.from, i.to);
---
> r = Wp(e.state, i.from, i.to);
32269c32500
< e.dispatch({ effects: Dp(e.state, [Cp.of(r), Pp(e, r)]) }), !0
---
> e.dispatch({ effects: Zp(e.state, [jp.of(r), ed(e, r)]) }), !0
32274,32276c32505,32507
< Lp = function (e) {
< if (!e.state.field(Sp, !1)) return !1;
< for (var t = [], n = 0, i = Ep(e); n < i.length; n++) {
---
> Jp = function (e) {
> if (!e.state.field(Yp, !1)) return !1;
> for (var t = [], n = 0, i = Kp(e); n < i.length; n++) {
32278,32279c32509,32510
< o = Tp(e.state, r.from, r.to);
< o && t.push(xp.of(o), Pp(e, o, !1));
---
> o = $p(e.state, r.from, r.to);
> o && t.push(Gp.of(o), ed(e, o, !1));
32283c32514
< function Pp(e, t, n) {
---
> function ed(e, t, n) {
32287c32518
< return jl.announce.of(
---
> return dc.announce.of(
32295c32526
< var Ip = function (e) {
---
> var td = function (e) {
32298,32299c32529,32530
< o = wp(t, r.from, r.to);
< o && n.push(Cp.of(o)), (i = (o ? e.lineBlockAt(o.to) : r).to + 1);
---
> o = Wp(t, r.from, r.to);
> o && n.push(jp.of(o)), (i = (o ? e.lineBlockAt(o.to) : r).to + 1);
32302c32533
< n.length && e.dispatch({ effects: Dp(e.state, n) }), !!n.length
---
> n.length && e.dispatch({ effects: Zp(e.state, n) }), !!n.length
32305,32306c32536,32537
< Op = function (e) {
< var t = e.state.field(Sp, !1);
---
> nd = function (e) {
> var t = e.state.field(Yp, !1);
32311c32542
< n.push(xp.of({ from: e, to: t }));
---
> n.push(Gp.of({ from: e, to: t }));
32317c32548
< function Fp(e, t) {
---
> function id(e, t) {
32319c32550
< var i = wp(e.state, n.from, n.to);
---
> var i = Wp(e.state, n.from, n.to);
32325,32326c32556,32557
< var Bp = function (e) {
< for (var t = [], n = 0, i = Ep(e); n < i.length; n++) {
---
> var rd = function (e) {
> for (var t = [], n = 0, i = Kp(e); n < i.length; n++) {
32328,32329c32559,32560
< o = Tp(e.state, r.from, r.to);
< if (o) t.push(xp.of(o), Pp(e, o, !1));
---
> o = $p(e.state, r.from, r.to);
> if (o) t.push(Gp.of(o), ed(e, o, !1));
32331,32332c32562,32563
< var a = Fp(e, r);
< a && t.push(Cp.of(a), Pp(e, a));
---
> var a = id(e, r);
> a && t.push(jp.of(a), ed(e, a));
32336c32567
< t.length > 0 && e.dispatch({ effects: Dp(e.state, t) }), !!t.length
---
> t.length > 0 && e.dispatch({ effects: Zp(e.state, t) }), !!t.length
32339,32343c32570,32574
< Np = [
< { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: Ap },
< { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: Lp },
< { key: "Ctrl-Alt-[", run: Ip },
< { key: "Ctrl-Alt-]", run: Op },
---
> od = [
> { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: Qp },
> { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: Jp },
> { key: "Ctrl-Alt-[", run: td },
> { key: "Ctrl-Alt-]", run: nd },
32345,32346c32576,32577
< Rp = { placeholderDOM: null, placeholderText: "…" },
< Hp = Ri.define({
---
> ad = { placeholderDOM: null, placeholderText: "…" },
> sd = ar.define({
32348c32579
< return Sr(e, Rp);
---
> return Yr(e, ad);
32351,32353c32582,32584
< function Vp(e) {
< var t = [Sp, jp];
< return e && t.push(Hp.of(e)), t;
---
> function ld(e) {
> var t = [Yp, dd];
> return e && t.push(sd.of(e)), t;
32355c32586
< var zp = la.replace({
---
> var cd = Pa.replace({
32364c32595
< n = t.facet(Hp),
---
> n = t.facet(sd),
32367,32368c32598,32599
< i = Tp(e.state, n.from, n.to);
< i && e.dispatch({ effects: xp.of(i) }), t.preventDefault();
---
> i = $p(e.state, n.from, n.to);
> i && e.dispatch({ effects: Gp.of(i) }), t.preventDefault();
32383c32614
< })(aa))(),
---
> })(Aa))(),
32385c32616
< qp = {
---
> ud = {
32394c32625
< Up = (function (e) {
---
> hd = (function (e) {
32420,32421c32651,32652
< })(Eu);
< function _p(e) {
---
> })(Ku);
> function pd(e) {
32423,32426c32654,32657
< var t = Object.assign(Object.assign({}, qp), e),
< n = new Up(t, !0),
< i = new Up(t, !1),
< r = Fa.fromClass(
---
> var t = Object.assign(Object.assign({}, ud), e),
> n = new hd(t, !0),
> i = new hd(t, !1),
> r = is.fromClass(
32436,32438c32667,32669
< e.startState.facet(Zh) != e.state.facet(Zh) ||
< e.startState.field(Sp, !1) != e.state.field(Sp, !1) ||
< Rh(e.startState) != Rh(e.state) ||
---
> e.startState.facet(bp) != e.state.facet(bp) ||
> e.startState.field(Yp, !1) != e.state.field(Yp, !1) ||
> ap(e.startState) != ap(e.state) ||
32444c32675
< var t = new Pr(), r = 0, o = e.viewportLineBlocks;
---
> var t = new eo(), r = 0, o = e.viewportLineBlocks;
32449c32680
< s = Tp(e.state, a.from, a.to)
---
> s = $p(e.state, a.from, a.to)
32451c32682
< : wp(e.state, a.from, a.to)
---
> : Wp(e.state, a.from, a.to)
32465c32696
< Du({
---
> Zu({
32472c32703
< : t.markers) || Lr.empty
---
> : t.markers) || Jr.empty
32476c32707
< return new Up(t, !1);
---
> return new hd(t, !1);
32481,32484c32712,32715
< var i = Tp(e.state, t.from, t.to);
< if (i) return e.dispatch({ effects: xp.of(i) }), !0;
< var r = wp(e.state, t.from, t.to);
< return !!r && (e.dispatch({ effects: Cp.of(r) }), !0);
---
> var i = $p(e.state, t.from, t.to);
> if (i) return e.dispatch({ effects: Gp.of(i) }), !0;
> var r = Wp(e.state, t.from, t.to);
> return !!r && (e.dispatch({ effects: jp.of(r) }), !0);
32488c32719
< Vp(),
---
> ld(),
32491c32722
< var jp = jl.baseTheme({
---
> var dd = dc.baseTheme({
32503c32734
< Wp = (function () {
---
> fd = (function () {
32507c32738
< var t = Kr.newName();
---
> var t = vo.newName();
32515c32746
< o instanceof Fh
---
> o instanceof ip
32517c32748
< return e.prop(Ph) == o.data;
---
> return e.prop(ep) == o.data;
32524c32755
< (this.style = ch(
---
> (this.style = Ih(
32533c32764
< (this.module = n ? new Kr(n) : null),
---
> (this.module = n ? new vo(n) : null),
32543,32544c32774,32775
< Gp = Ri.define(),
< Kp = Ri.define({
---
> md = ar.define(),
> gd = ar.define({
32549,32551c32780,32782
< function Yp(e) {
< var t = e.facet(Gp);
< return t.length ? t : e.facet(Kp);
---
> function vd(e) {
> var t = e.facet(md);
> return t.length ? t : e.facet(gd);
32553c32784
< function Xp(e, t) {
---
> function yd(e, t) {
32555c32786
< i = [Qp];
---
> i = [kd];
32557,32558c32788,32789
< e instanceof Wp &&
< (e.module && i.push(jl.styleModule.of(e.module)),
---
> e instanceof fd &&
> (e.module && i.push(dc.styleModule.of(e.module)),
32561c32792
< ? i.push(Kp.of(e))
---
> ? i.push(gd.of(e))
32564,32565c32795,32796
< Gp.computeN([jl.darkTheme], function (t) {
< return t.facet(jl.darkTheme) == ("dark" == n) ? [e] : [];
---
> md.computeN([dc.darkTheme], function (t) {
> return t.facet(dc.darkTheme) == ("dark" == n) ? [e] : [];
32568c32799
< : i.push(Gp.of(e)),
---
> : i.push(md.of(e)),
32572,32573c32803,32804
< function Zp(e, t, n) {
< var i = Yp(e),
---
> function bd(e, t, n) {
> var i = vd(e),
32585c32816
< var $p = (function () {
---
> var wd = (function () {
32588,32589c32819,32820
< (this.tree = Rh(e.state)),
< (this.decorations = this.buildDeco(e, Yp(e.state)));
---
> (this.tree = ap(e.state)),
> (this.decorations = this.buildDeco(e, vd(e.state)));
32593,32595c32824,32826
< var t = Rh(e.state),
< n = Yp(e.state),
< i = n != Yp(e.startState);
---
> var t = ap(e.state),
> n = vd(e.state),
> i = n != vd(e.startState);
32604c32835
< if (!t || !this.tree.length) return la.none;
---
> if (!t || !this.tree.length) return Pa.none;
32606c32837
< var i = new Pr(), r = 0, o = e.visibleRanges;
---
> var i = new eo(), r = 0, o = e.visibleRanges;
32613c32844
< hh(
---
> Fh(
32620c32851
< n.markCache[r] || (n.markCache[r] = la.mark({ class: r }))
---
> n.markCache[r] || (n.markCache[r] = Pa.mark({ class: r }))
32632,32633c32863,32864
< Qp = Xi.high(
< Fa.fromClass($p, {
---
> kd = yr.high(
> is.fromClass(wd, {
32639,32646c32870,32877
< Jp = Wp.define([
< { tag: Ah.meta, color: "#404740" },
< { tag: Ah.link, textDecoration: "underline" },
< { tag: Ah.heading, textDecoration: "underline", fontWeight: "bold" },
< { tag: Ah.emphasis, fontStyle: "italic" },
< { tag: Ah.strong, fontWeight: "bold" },
< { tag: Ah.strikethrough, textDecoration: "line-through" },
< { tag: Ah.keyword, color: "#708" },
---
> Cd = fd.define([
> { tag: Qh.meta, color: "#404740" },
> { tag: Qh.link, textDecoration: "underline" },
> { tag: Qh.heading, textDecoration: "underline", fontWeight: "bold" },
> { tag: Qh.emphasis, fontStyle: "italic" },
> { tag: Qh.strong, fontWeight: "bold" },
> { tag: Qh.strikethrough, textDecoration: "line-through" },
> { tag: Qh.keyword, color: "#708" },
32648c32879
< tag: [Ah.atom, Ah.bool, Ah.url, Ah.contentSeparator, Ah.labelName],
---
> tag: [Qh.atom, Qh.bool, Qh.url, Qh.contentSeparator, Qh.labelName],
32651,32661c32882,32892
< { tag: [Ah.literal, Ah.inserted], color: "#164" },
< { tag: [Ah.string, Ah.deleted], color: "#a11" },
< { tag: [Ah.regexp, Ah.escape, Ah.special(Ah.string)], color: "#e40" },
< { tag: Ah.definition(Ah.variableName), color: "#00f" },
< { tag: Ah.local(Ah.variableName), color: "#30a" },
< { tag: [Ah.typeName, Ah.namespace], color: "#085" },
< { tag: Ah.className, color: "#167" },
< { tag: [Ah.special(Ah.variableName), Ah.macroName], color: "#256" },
< { tag: Ah.definition(Ah.propertyName), color: "#00c" },
< { tag: Ah.comment, color: "#940" },
< { tag: Ah.invalid, color: "#f00" },
---
> { tag: [Qh.literal, Qh.inserted], color: "#164" },
> { tag: [Qh.string, Qh.deleted], color: "#a11" },
> { tag: [Qh.regexp, Qh.escape, Qh.special(Qh.string)], color: "#e40" },
> { tag: Qh.definition(Qh.variableName), color: "#00f" },
> { tag: Qh.local(Qh.variableName), color: "#30a" },
> { tag: [Qh.typeName, Qh.namespace], color: "#085" },
> { tag: Qh.className, color: "#167" },
> { tag: [Qh.special(Qh.variableName), Qh.macroName], color: "#256" },
> { tag: Qh.definition(Qh.propertyName), color: "#00c" },
> { tag: Qh.comment, color: "#940" },
> { tag: Qh.invalid, color: "#f00" },
32663c32894
< ed = jl.baseTheme({
---
> Ed = dc.baseTheme({
32669,32670c32900,32901
< td = "()[]{}",
< nd = Ri.define({
---
> xd = "()[]{}",
> Sd = ar.define({
32672c32903
< return Sr(e, {
---
> return Yr(e, {
32674c32905
< brackets: td,
---
> brackets: xd,
32676c32907
< renderMatch: od,
---
> renderMatch: Dd,
32680,32682c32911,32913
< id = la.mark({ class: "cm-matchingBracket" }),
< rd = la.mark({ class: "cm-nonmatchingBracket" });
< function od(e) {
---
> Md = Pa.mark({ class: "cm-matchingBracket" }),
> Td = Pa.mark({ class: "cm-nonmatchingBracket" });
> function Dd(e) {
32684c32915
< n = e.matched ? id : rd;
---
> n = e.matched ? Md : Td;
32691,32692c32922,32923
< var ad = [
< _i.define({
---
> var Ad = [
> pr.define({
32694c32925
< return la.none;
---
> return Pa.none;
32700c32931
< i = t.state.facet(nd),
---
> i = t.state.facet(Sd),
32709,32710c32940,32941
< hd(t.state, a.head, -1, i) ||
< (a.head > 0 && hd(t.state, a.head - 1, 1, i)) ||
---
> Fd(t.state, a.head, -1, i) ||
> (a.head > 0 && Fd(t.state, a.head - 1, 1, i)) ||
32712c32943
< (hd(t.state, a.head, 1, i) ||
---
> (Fd(t.state, a.head, 1, i) ||
32714c32945
< hd(t.state, a.head + 1, -1, i))));
---
> Fd(t.state, a.head + 1, -1, i))));
32718c32949
< return la.set(n, !0);
---
> return Pa.set(n, !0);
32721c32952
< return jl.decorations.from(e);
---
> return dc.decorations.from(e);
32724c32955
< ed,
---
> Ed,
32726,32727c32957,32958
< function sd(e) {
< return void 0 === e && (e = {}), [nd.of(e), ad];
---
> function Ld(e) {
> return void 0 === e && (e = {}), [Sd.of(e), Ad];
32729,32731c32960,32962
< var ld = new mn();
< function cd(e, t, n) {
< var i = e.prop(t < 0 ? mn.openedBy : mn.closedBy);
---
> var Pd = new Hn();
> function Id(e, t, n) {
> var i = e.prop(t < 0 ? Hn.openedBy : Hn.closedBy);
32739,32740c32970,32971
< function ud(e) {
< var t = e.type.prop(ld);
---
> function Od(e) {
> var t = e.type.prop(Pd);
32743c32974
< function hd(e, t, n, i) {
---
> function Fd(e, t, n, i) {
32747,32748c32978,32979
< o = i.brackets || td,
< a = Rh(e),
---
> o = i.brackets || xd,
> a = ap(e),
32754c32985
< var c = cd(l.type, n, o);
---
> var c = Id(l.type, n, o);
32756c32987
< var u = ud(l);
---
> var u = Od(l);
32761c32992
< return pd(e, t, n, l, u, c, o);
---
> return Bd(e, t, n, l, u, c, o);
32803c33034
< function pd(e, t, n, i, r, o, a) {
---
> function Bd(e, t, n, i, r, o, a) {
32814c33045
< end: (h = ud(u)) ? { from: h.from, to: h.to } : void 0,
---
> end: (h = Od(u)) ? { from: h.from, to: h.to } : void 0,
32817,32818c33048,33049
< if (cd(u.type, n, a)) c++;
< else if (cd(u.type, -n, a)) {
---
> if (Id(u.type, n, a)) c++;
> else if (Id(u.type, -n, a)) {
32824c33055
< (h = ud(u)) && h.from < h.to
---
> (h = Od(u)) && h.from < h.to
32835c33066
< function dd(e, t, n, i, r) {
---
> function Nd(e, t, n, i, r) {
32843c33074
< var fd = (function () {
---
> var Rd = (function () {
32904c33135
< ((this.lastColumnValue = dd(
---
> ((this.lastColumnValue = Nd(
32919c33150
< : dd(this.string, null, this.tabSize);
---
> : Nd(this.string, null, this.tabSize);
32941c33172
< function md(e) {
---
> function Hd(e) {
32950,32951c33181,33182
< var gd = new WeakMap(),
< vd = (function (e) {
---
> var Vd = new WeakMap(),
> zd = (function (e) {
32956c33187
< o = Ih(t.languageData),
---
> o = tp(t.languageData),
32970c33201
< copyState: i.copyState || md,
---
> copyState: i.copyState || Hd,
32985c33216
< return new wd(n, e, t, i);
---
> return new Wd(n, e, t, i);
32989c33220
< })(Un))();
---
> })(hi))();
32997c33228
< Jh.of(function (e, t) {
---
> Cp.of(function (e, t) {
33003,33004c33234,33235
< var t = yn.define({
< id: xd.length,
---
> var t = qn.define({
> id: Gd.length,
33007c33238
< Ph.add(function () {
---
> ep.add(function () {
33012c33243
< return xd.push(t), t;
---
> return Gd.push(t), t;
33016c33247
< (r.stateAfter = new mn({ perNode: !0 })),
---
> (r.stateAfter = new Hn({ perNode: !0 })),
33027c33258
< var n = Rh(e.state), i = n.resolve(t);
---
> var n = ap(e.state), i = n.resolve(t);
33035c33266
< o && null != (r = gd.get(e.state)) && r < t - 1e4 && (r = void 0);
---
> o && null != (r = Vd.get(e.state)) && r < t - 1e4 && (r = void 0);
33038c33269
< l = yd(this, n, 0, i.from, null != r ? r : t);
---
> l = qd(this, n, 0, i.from, null != r ? r : t);
33053c33284
< l = new fd(
---
> l = new Rd(
33067c33298
< kd(u.streamParser.token, l, s);
---
> _d(u.streamParser.token, l, s);
33079c33310
< o && null == r && gd.set(e.state, h.from);
---
> o && null == r && Vd.set(e.state, h.from);
33096,33097c33327,33328
< })(Fh);
< function yd(e, t, n, i, r) {
---
> })(ip);
> function qd(e, t, n, i, r) {
33103c33334
< c = s instanceof xn && l < r && yd(e, s, l, i, r);
---
> c = s instanceof Gn && l < r && qd(e, s, l, i, r);
33108c33339
< function bd(e, t, n, i, r) {
---
> function Ud(e, t, n, i, r) {
33115,33116c33346,33347
< if (a < i && s instanceof xn) {
< if (!(l = bd(e, s, n - a, i - a, r))) break;
---
> if (a < i && s instanceof Gn) {
> if (!(l = Ud(e, s, n - a, i - a, r))) break;
33118c33349
< ? new xn(
---
> ? new Gn(
33129c33360
< var wd = (function () {
---
> var Wd = (function () {
33143c33374
< var r = jh.get(),
---
> var r = dp.get(),
33150c33381
< c = s <= n && l > n && yd(e, a.tree, 0 - a.offset, n, l),
---
> c = s <= n && l > n && qd(e, a.tree, 0 - a.offset, n, l),
33154c33385
< (u = bd(e, a.tree, n + a.offset, c.pos + a.offset, !1))
---
> (u = Ud(e, a.tree, n + a.offset, c.pos + a.offset, !1))
33159,33160c33390,33391
< state: e.streamParser.startState(i ? tp(i) : 4),
< tree: xn.empty,
---
> state: e.streamParser.startState(i ? xp(i) : 4),
> tree: Gn.empty,
33170c33401
< ((this.state = this.lang.streamParser.startState(tp(r.state))),
---
> ((this.state = this.lang.streamParser.startState(xp(r.state))),
33177c33408
< var e = jh.get(),
---
> var e = dp.get(),
33259c33490
< l = new fd(
---
> l = new Rd(
33262c33493
< e ? tp(e.state) : 2,
---
> e ? xp(e.state) : 2,
33284c33515
< var e = kd(a.token, l, f.state);
---
> var e = _d(a.token, l, f.state);
33320c33551
< o = this.emitToken(Sd(v.cls), v.from, v.to, 4, o);
---
> o = this.emitToken(Yd(v.cls), v.from, v.to, 4, o);
33325c33556
< Sd(Array.from(u).sort().join(" "), !0),
---
> Yd(Array.from(u).sort().join(" "), !0),
33336c33567
< var e = xn.build({
---
> var e = Gn.build({
33340c33571
< nodeSet: Ed,
---
> nodeSet: Kd,
33345c33576
< (e = new xn(e.type, e.children, e.positions, e.length, [
---
> (e = new Gn(e.type, e.children, e.positions, e.length, [
33358c33589
< return new xn(
---
> return new Gn(
33368c33599
< function kd(e, t, n) {
---
> function _d(e, t, n) {
33376,33379c33607,33610
< var Cd = Object.create(null),
< xd = [yn.none],
< Ed = new wn(xd);
< function Sd(e, t) {
---
> var jd = Object.create(null),
> Gd = [qn.none],
> Kd = new Wn(Gd);
> function Yd(e, t) {
33381,33382c33612,33613
< ? Cd[e] ||
< (Cd[e] = (function (e, t) {
---
> ? jd[e] ||
> (jd[e] = (function (e, t) {
33386,33387c33617,33618
< o = yn.define({
< id: xd.length,
---
> o = qn.define({
> id: Gd.length,
33391,33392c33622,33623
< ? Td.add(((n = {}), (n[r] = e), n))
< : Md.add(((i = {}), (i[r] = e), i)),
---
> ? $d.add(((n = {}), (n[r] = e), n))
> : Xd.add(((i = {}), (i[r] = e), i)),
33395c33626
< return xd.push(o), o.id;
---
> return Gd.push(o), o.id;
33399,33401c33630,33632
< var Md = new mn(),
< Td = new mn(),
< Dd = (function () {
---
> var Xd = new Hn(),
> $d = new Hn(),
> Zd = (function () {
33405c33636
< (this.tree = Rh(e.state)),
---
> (this.tree = ap(e.state)),
33410c33641
< var t = Rh(e.state);
---
> var t = ap(e.state);
33419c33650
< if (!this.tree.length) return la.none;
---
> if (!this.tree.length) return Pa.none;
33421c33652
< var n = [], i = 0, r = e.state.facet(Ld);
---
> var n = [], i = 0, r = e.state.facet(Jd);
33431c33662
< l = new Pr(),
---
> l = new eo(),
33448c33679
< u = i.prop(Td);
---
> u = i.prop($d);
33452c33683
< (t.lineCache[u] = la.line({
---
> (t.lineCache[u] = Pa.line({
33459c33690
< var d = i.prop(Md);
---
> var d = i.prop(Xd);
33476c33707
< (h = t.tokenCache[d] = la.mark(m));
---
> (h = t.tokenCache[d] = Pa.mark(m));
33488,33489c33719,33720
< Ad = Xi.lowest(
< Fa.define(
---
> Qd = yr.lowest(
> is.define(
33491c33722
< return new Dd(e);
---
> return new Zd(e);
33500,33501c33731,33732
< Ld = Ri.define({});
< function Pd(e, t) {
---
> Jd = ar.define({});
> function ef(e, t) {
33504,33506c33735,33737
< var Id = /\u00A0/g;
< function Od(e) {
< return e.replace(Id, " ");
---
> var tf = /\u00A0/g;
> function nf(e) {
> return e.replace(tf, " ");
33508c33739
< function Fd(e) {
---
> function rf(e) {
33517,33519c33748,33750
< function Bd(e, t) {
< var n = Fd(e),
< i = Fd(t);
---
> function of(e, t) {
> var n = rf(e),
> i = rf(t);
33532c33763
< function Nd(e) {
---
> function af(e) {
33539,33544c33770,33775
< var Rd = window.process,
< Hd = Rd ? Rd.platform : "",
< Vd = "darwin" === Hd,
< zd = "win32" === Hd,
< qd = Vd || zd,
< Ud = (function () {
---
> var sf = window.process,
> lf = sf ? sf.platform : "",
> cf = "darwin" === lf,
> uf = "win32" === lf,
> hf = cf || uf,
> pf = (function () {
33546c33777
< (this.thingsHappening = qe(this.kill.bind(this), 6e4, !0)),
---
> (this.thingsHappening = et(this.kill.bind(this), 6e4, !0)),
33562c33793
< this.insensitive = Vd || zd;
---
> this.insensitive = cf || uf;
33638,33639c33869,33870
< (n = pe("" === e ? t : e + "/" + t)),
< (i = he(n)),
---
> (n = Se("" === e ? t : e + "/" + t)),
> (i = xe(n)),
33641c33872
< oe(i) ? [4, this.reconcileDeletion(n, i)] : [3, 2]
---
> ye(i) ? [4, this.reconcileDeletion(n, i)] : [3, 2]
33816c34047
< return [2, B(r.sent())];
---
> return [2, Y(r.sent())];
33869c34100
< (i = this.getFullPath(e)), (r = N(t)), (o.label = 1);
---
> (i = this.getFullPath(e)), (r = X(t)), (o.label = 1);
33988c34219
< ct.resourcePathPrefix + r + "?" + n
---
> St.resourcePathPrefix + r + "?" + n
34214c34445
< ? [2, m({ type: "file" }, Nd(n))]
---
> ? [2, m({ type: "file" }, af(n))]
34216c34447
< ? [2, m({ type: "folder" }, Nd(n))]
---
> ? [2, m({ type: "folder" }, af(n))]
34256,34257c34487,34488
< (s = pe("" === e ? a : e + "/" + a)),
< (l = he(s)),
---
> (s = Se("" === e ? a : e + "/" + a)),
> (l = xe(s)),
34312c34543
< if (qd) return [2];
---
> if (hf) return [2];
34330c34561
< (a = pe("" === e ? o : e + "/" + o)),
---
> (a = Se("" === e ? o : e + "/" + o)),
34392c34623
< recursive: qd,
---
> recursive: hf,
34414c34645
< ((e = pe(e)),
---
> ((e = Se(e)),
34416c34647
< var n = he(e);
---
> var n = xe(e);
34439c34670
< oe(t) ? [4, this.reconcileDeletion(e, t, n)] : [3, 2]
---
> ye(t) ? [4, this.reconcileDeletion(e, t, n)] : [3, 2]
34444c34675
< return (i = re(t)) && "/" !== i
---
> return (i = ve(t)) && "/" !== i
34447c34678
< : [4, this.reconcileFile(re(e), i, n)]
---
> : [4, this.reconcileFile(ve(e), i, n)]
34466c34697
< return Od(e).normalize("NFC");
---
> return nf(e).normalize("NFC");
34532c34763
< if (((i = Nd(n)), (r = this.files[t]))) {
---
> if (((i = af(n)), (r = this.files[t]))) {
34574c34805
< qd ? [3, 2] : [4, this.startWatchPath(t)]);
---
> hf ? [3, 2] : [4, this.startWatchPath(t)]);
34631c34862
< ? qd
---
> ? hf
34686c34917
< t = re(t);
---
> t = ve(t);
34730c34961
< ? ((n = t("fs")), (i = B), [4, n.promises.readFile(e)])
---
> ? ((n = t("fs")), (i = Y), [4, n.promises.readFile(e)])
34760,34762c34991,34993
< _d = "language",
< jd = "en",
< Wd = {
---
> df = "language",
> ff = "en",
> mf = {
34777c35008
< pl: "język polski",
---
> pl: "Polski",
34788a35020
> vi: "Tiếng Việt",
34790,34792c35022,35026
< Gd = { interpolation: { prefix: "{{{{", suffix: "}}}}" } },
< Kd = "default";
< function Yd(e, t) {
---
> gf = Object.keys(mf).sort(),
> vf = { zh: "zh-cn", cz: "cs", no: "nn" },
> yf = { interpolation: { prefix: "{{{{", suffix: "}}}}" } },
> bf = "default";
> function wf(e, t) {
34796c35030
< e.hasOwnProperty(i) && (n[i] = Yd(e[i], (t && t[i]) || null));
---
> e.hasOwnProperty(i) && (n[i] = wf(e[i], (t && t[i]) || null));
34799c35033
< function Xd(e) {
---
> function kf(e) {
34809,34811c35043,35045
< fallbackLng: jd,
< ns: [Kd],
< defaultNS: Kd,
---
> fallbackLng: ff,
> ns: [bf],
> defaultNS: bf,
34813c35047,35053
< interpolation: { escapeValue: !1 },
---
> interpolation: {
> alwaysFormat: !0,
> escapeValue: !1,
> format: function (e, t) {
> return "number" == typeof e ? e.toLocaleString() : e;
> },
> },
34815c35055
< var Zd = (function e(t, n) {
---
> var Cf = (function e(t, n) {
34824,34858c35064,35109
< })(OBSIDIAN_DEFAULT_I18N, Xd);
< i18next.addResourceBundle(jd, Kd, Zd);
< var $d = Promise.resolve(),
< Qd = localStorage.getItem(_d);
< if (Qd) {
< !1,
< ($d = v(void 0, void 0, void 0, function () {
< var e, t;
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return (
< n.trys.push([0, 3, , 4]),
< [4, ajaxPromise({ url: "/i18n/" + Qd + ".json" })]
< );
< case 1:
< return (
< (e = n.sent()),
< (t = JSON.parse(e)),
< i18next.addResourceBundle(Qd, Kd, t),
< [4, i18next.changeLanguage(Qd)]
< );
< case 2:
< return n.sent(), [3, 4];
< case 3:
< return (
< n.sent(),
< console.error("Failed to load language pack."),
< [3, 4]
< );
< case 4:
< return !0, [2];
< }
< });
< }));
---
> })(OBSIDIAN_DEFAULT_I18N, kf);
> i18next.addResourceBundle(ff, bf, Cf);
> var Ef = Promise.resolve(),
> xf = localStorage.getItem(df);
> if (xf) {
> Ef = v(void 0, void 0, void 0, function () {
> var e, t, n, i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> return (
> o.trys.push([0, 5, , 6]),
> xf.contains("/") || xf.contains("\\")
> ? ((e = JSON.parse(
> window.require("original-fs").readFileSync(xf, "utf8")
> )),
> i18next.addResourceBundle("dev", bf, e),
> [4, i18next.changeLanguage("dev")])
> : [3, 2]
> );
> case 1:
> return o.sent(), [2];
> case 2:
> return (
> (i = (n = JSON).parse),
> [4, ajaxPromise({ url: "/i18n/" + xf + ".json" })]
> );
> case 3:
> return (
> (t = i.apply(n, [o.sent()])),
> i18next.addResourceBundle(xf, bf, t),
> [4, i18next.changeLanguage(xf)]
> );
> case 4:
> return o.sent(), [3, 6];
> case 5:
> return (
> (r = o.sent()),
> console.error("Failed to load language pack.", r),
> [3, 6]
> );
> case 6:
> return [2];
> }
> });
> });
34860,34862c35111,35112
< var Jd = Qd.toLowerCase(),
< ef = { zh: "zh-cn", cz: "cs", no: "nn" };
< ef.hasOwnProperty(Jd) && (Jd = ef[Jd]), window.moment.locale(Jd);
---
> var Sf = xf.toLowerCase();
> vf.hasOwnProperty(Sf) && (Sf = vf[Sf]), window.moment.locale(Sf);
34865,34880c35115,35146
< Bt &&
< Lt(function (e) {
< window.i18nGenBundles = function () {
< var t = window.require("fs"),
< n = e.ipcRenderer.sendSync("resources");
< for (var i in Wd)
< if (Wd.hasOwnProperty(i)) {
< var r = n + "/i18n/" + i + ".json";
< try {
< if (t.existsSync(r)) {
< var o = t.readFileSync(r, "utf8"),
< a = JSON.parse(o),
< s = Yd(Zd, a),
< l = JSON.stringify(s, null, "\t");
< t.writeFileSync(r, l, "utf8"),
< console.log("Saved bundle for", i);
---
> (window.selectLanguageFileLocation = function () {
> if (St.isDesktopApp) {
> var e = electron.remote.dialog.showOpenDialogSync({
> title: "Pick location of translation file",
> filters: [{ name: "Translation file", extensions: ["json"] }],
> properties: ["openFile", "dontAddToRecent"],
> });
> if (e.length > 0) {
> var t = e[0];
> localStorage.setItem(df, t), location.reload();
> }
> }
> }),
> Zt &&
> (window.i18nGenBundles = function () {
> if (St.isDesktopApp) {
> var e = window.require("original-fs"),
> t = electron.ipcRenderer.sendSync("resources");
> for (var n in mf)
> if (mf.hasOwnProperty(n)) {
> var i = t + "/i18n/" + n + ".json";
> try {
> if (e.existsSync(i)) {
> var r = e.readFileSync(i, "utf8"),
> o = JSON.parse(r),
> a = wf(Cf, o),
> s = JSON.stringify(a, null, "\t");
> e.writeFileSync(i, s, "utf8"),
> console.log("Saved bundle for", n);
> }
> } catch (e) {
> console.error("Failed to process translation for", n, e);
34882,34883d35147
< } catch (e) {
< console.error("Failed to process translation for", i, e);
34885,34888c35149,35151
< }
< };
< });
< var tf = (function e(t, n) {
---
> }
> });
> var Mf = (function e(t, n) {
34894c35157
< : (i[r] = e(t + Xd(r) + ".", function (e, n) {
---
> : (i[r] = e(t + kf(r) + ".", function (e, n) {
34896,34897c35159,35160
< ? i18next.t(t + Xd(r) + "." + e, n)
< : i18next.t(t + Xd(r), e);
---
> ? i18next.t(t + kf(r) + "." + e, n)
> : i18next.t(t + kf(r), e);
34902c35165
< function nf(e) {
---
> function Tf(e) {
35844,35847c36107,36130
< var rf = pr.define(),
< of = pr.define(),
< af = new Map(),
< sf = _i.define({
---
> var Df = Br.define(),
> Af = dc.inputHandler.of(function (e, t, n, i) {
> if ("-" !== i) return !1;
> var r = e.state.selection.main;
> if (t != r.from || n != r.to) return !1;
> var o = e.state.doc.lineAt(t);
> if (o.from > 0) return !1;
> if (/^--$/.test(o.text)) {
> return (
> e.dispatch({
> changes: [{ insert: "-\n\n---\n", from: o.to }],
> selection: { anchor: t + 2 },
> effects: [Df.of()],
> userEvent: "input.type",
> }),
> !0
> );
> }
> return !1;
> }),
> Lf = Br.define(),
> Pf = Br.define(),
> If = new Map(),
> Of = pr.define({
35849c36132
< return la.none;
---
> return Pa.none;
35855c36138
< r.is(rf)
---
> r.is(Lf)
35857c36140
< : r.is(of) && (e = e.update({ filter: r.value }));
---
> : r.is(Pf) && (e = e.update({ filter: r.value }));
35862c36145
< return jl.decorations.from(e);
---
> return dc.decorations.from(e);
35864,35868c36147,36235
< }),
< lf = (function () {
< function e() {
< (this._loaded = !1), (this._events = []), (this._children = []);
< }
---
> });
> function Ff(e) {
> return "set" !== e.annotation(Nr.userEvent);
> }
> function Bf(e, t) {
> if (t.line < 0) return 0;
> var n = t.line + 1;
> if (n > e.lines) return e.length;
> var i = e.line(n);
> return isFinite(t.ch)
> ? t.ch < 0
> ? i.from + Math.max(0, i.length + t.ch)
> : i.from + t.ch
> : i.to;
> }
> function Nf(e, t) {
> t = Math.clamp(t, 0, e.length);
> var n = e.lineAt(t);
> return { line: n.number - 1, ch: t - n.from };
> }
> function Rf(e, t, n) {
> return e.from <= n && e.to >= t;
> }
> function Hf(e, t, n) {
> for (var i = 0, r = e; i < r.length; i++) {
> if (Rf(r[i], t, n)) return !0;
> }
> return !1;
> }
> function Vf(e, t, n, i) {
> var r = !1;
> return (
> e.between(n, i, function (e, n, i) {
> if (i === t) return (r = !0), !1;
> }),
> r
> );
> }
> var zf = Br.define();
> function qf(e, t) {
> return e.some(function (e) {
> return e.effects.some(function (e) {
> return e.is(t);
> });
> });
> }
> function Uf(e, t) {
> return void 0 === t && (t = 0), { line: e, ch: t };
> }
> function Wf(e, t) {
> return { line: e.line, ch: e.ch + t };
> }
> function _f(e, t) {
> return e.line === t.line && e.ch === t.ch;
> }
> function jf(e, t) {
> return e.line === t.line ? e.ch <= t.ch : e.line <= t.line;
> }
> function Gf(e, t) {
> return (function (e, t) {
> var n = e.from,
> i = t.from;
> return n.line === i.line ? n.ch - i.ch : n.line - i.line;
> })(t, e);
> }
> var Kf = /^([>\s]*)(([*+-] |(\d+)([.)] ))(?:\[(.)\] )?)?/,
> Yf = /^([>\s]*)(#{1,6} )?(.*)/,
> Xf = [
> {
> regex: /(!)?【【$/,
> replace: function (e) {
> return e[1] ? "![[" : "[[";
> },
> },
> {
> regex: /】】$/,
> replace: function () {
> return "]]";
> },
> },
> {
> regex: /【【$/,
> replace: function () {
> return "[[";
> },
> },
> ],
> $f = (function () {
> function e() {}
35870,35874c36237,36342
< (e.prototype.load = function () {
< if (!this._loaded) {
< (this._loaded = !0), this.onload();
< for (var e = 0, t = this._children.slice(); e < t.length; e++) {
< t[e].load();
---
> (e.prototype.getDoc = function () {
> return this;
> }),
> (e.prototype.setLine = function (e, t) {
> this.replaceRange(t, Uf(e, 0), Uf(e, this.getLine(e).length));
> }),
> (e.prototype.somethingSelected = function () {
> return !!this.getSelection();
> }),
> (e.prototype.setCursor = function (e, t) {
> return Number.isNumber(e)
> ? this.setSelection({ line: e, ch: t })
> : this.setSelection(e);
> }),
> (e.prototype.posAtMouse = function (e) {
> return this.posAtCoords(e.clientX, e.clientY);
> }),
> (e.prototype.insertMarkdownLink = function () {
> var e = this.getSelection(),
> t = this.getCursor("from"),
> n = this.getCursor("to");
> e
> ? this.transaction({
> replaceSelection: "[".concat(e, "]()"),
> selection: { from: Wf(t, e.length + 3) },
> })
> : t.line === n.line &&
> t.ch === n.ch &&
> this.transaction({
> replaceSelection: "[]()",
> selection: { from: Wf(t, 1) },
> });
> }),
> (e.prototype.triggerWikilink = function (e) {
> var t = this.getSelection(),
> n = this.getCursor("from"),
> i = this.getCursor("to");
> t
> ? (this.replaceSelection(
> e ? "![[".concat(t, "]]") : "[[".concat(t, "]]")
> ),
> this.setSelection(Wf(n, t.length + 2)))
> : n.line === i.line &&
> n.ch === i.ch &&
> (this.replaceSelection(e ? "![[]]" : "[[]]"),
> this.setSelection(Wf(n, e ? 3 : 2)));
> }),
> (e.prototype.insertText = function (e) {
> var t = this.lineCount() - 1,
> n = Uf(t, this.getLine(t).length);
> this.replaceRange(e, n),
> (n = Uf((t = this.lineCount() - 1), this.getLine(t).length)),
> this.setSelection(n);
> }),
> (e.prototype.processLines = function (e, t, n) {
> void 0 === n && (n = !0);
> for (
> var i = this.listSelections(),
> r = (function (e) {
> for (var t = [], n = 0, i = e; n < i.length; n++)
> for (
> var r = i[n],
> o = Math.min(r.anchor.line, r.head.line),
> a = Math.max(r.anchor.line, r.head.line),
> s = o;
> s <= a;
> s++
> )
> t.push(s);
> return Array.from(new Set(t)).sort();
> })(i),
> o = [],
> a = 0,
> s = r;
> a < s.length;
> a++
> ) {
> var l = s[a],
> c = this.getLine(l);
> if (n && r.length > 1 && !c.trim()) o.push(null);
> else {
> var u = e(l, c);
> o.push(u);
> }
> }
> for (var h = [], p = 0; p < r.length; p++) {
> (l = r[p]), (u = o[p]);
> if (!n || null !== u)
> (d = t(l, (c = this.getLine(l)), u)) && h.push(d);
> }
> if (0 !== h.length) {
> if (1 === i.length) {
> var d = h[0],
> f = i[0],
> m = f.anchor;
> if (0 === m.ch && _f(m, f.head) && m.line === d.from.line) {
> var g = d.text.length - (d.to ? d.to.ch - d.from.ch : 0);
> return (
> (m.ch += g),
> m.ch < 0 && (m.ch = 0),
> void this.transaction({
> changes: h,
> selection: { from: m },
> })
> );
> }
35875a36344
> this.transaction({ changes: h });
35878,35883c36347,36418
< (e.prototype.onload = function () {}),
< (e.prototype.unload = function () {
< if (this._loaded) {
< this._loaded = !1;
< for (var e = this._children, t = this._events; e.length > 0; ) {
< e.pop().unload();
---
> (e.prototype.setHeading = function (e) {
> this.processLines(
> function (e, t) {
> return t.match(Yf);
> },
> function (t, n, i) {
> var r = 0 === e ? "" : Array(e).fill("#").join("") + " ";
> return {
> from: Uf(t, i[1].length),
> to: Uf(t, n.length - i[3].length),
> text: r,
> };
> }
> );
> }),
> (e.prototype.toggleBlockquote = function () {
> var e = /^\s*>(\s*)/,
> t = !1;
> this.processLines(
> function (n, i) {
> var r = i.match(e);
> return r || (t = !0), r;
> },
> function (e, n, i) {
> var r = i;
> if (t && !r) return { from: Uf(e, 0), text: "> " };
> if (!t && r) {
> var o = r[0].length;
> if (r[1].startsWith(" ")) {
> for (var a = r[1]; a.startsWith(" "); )
> a = a.substring(4);
> (o -= r[1].length), a.startsWith(" ") && o++;
> }
> return { from: Uf(e, 0), to: Uf(e, o), text: "" };
> }
> },
> !1
> );
> }),
> (e.prototype.toggleBulletList = function () {
> var e = !1;
> this.processLines(
> function (t, n) {
> var i = n.match(Kf);
> return (i[3] && !i[4]) || (e = !0), i;
> },
> function (t, n, i) {
> return i
> ? {
> from: Uf(t, 0),
> to: Uf(t, i[0].length),
> text: i[1] + (e ? "- " : ""),
> }
> : null;
> }
> );
> }),
> (e.prototype.toggleNumberList = function () {
> var e = !1;
> this.processLines(
> function (t, n) {
> var i = n.match(Kf);
> return i[4] || (e = !0), i;
> },
> function (t, n, i) {
> return i
> ? {
> from: Uf(t, 0),
> to: Uf(t, i[0].length),
> text: i[1] + (e ? "1. " : ""),
> }
> : null;
35885,35886c36420,36454
< for (; t.length > 0; ) {
< t.pop()();
---
> ),
> e && this.afterIndent();
> }),
> (e.prototype.toggleCheckList = function (e) {
> var t = 3;
> this.processLines(
> function (n, i) {
> var r = i.match(Kf);
> return (
> t > 2 && " " === r[6] && (t = 2),
> t > 1 && !r[6] && (t = 1),
> e && t > 0 && !r[3] && (t = 0),
> r
> );
> },
> function (n, i, r) {
> if (!r) return null;
> var o = r[0],
> a = r[1],
> s = r[3],
> l = {
> from: Uf(n, 0),
> to: Uf(n, o.length),
> text: i.substr(0, o.length),
> },
> c = a + (s || "- ");
> return (
> (l.text = c),
> 1 === t
> ? r[6] || (l.text = c + "[ ] ")
> : 2 === t
> ? (l.text = c + "[x] ")
> : 3 === t && (l.text = e ? c : c + "[ ] "),
> l
> );
35888c36456,36585
< this.onunload();
---
> );
> }),
> (e.prototype.insertCallout = function () {
> var e = this.getCursor("from"),
> t = this.getCursor("to");
> if (!_f(e, t) || this.getLine(e.line).substring(0, e.ch).trim()) {
> var n = [],
> i = "> [!NOTE]\n> ",
> r = { from: Uf(e.line, 4), to: Uf(e.line, 8) };
> e.line > 0 &&
> this.getLine(e.line - 1) &&
> ((i = "\n" + i), (r.from.line += 1), (r.to.line += 1)),
> n.push({ from: Uf(e.line, 0), text: i });
> for (var o = e.line + 1; o <= t.line; o++)
> n.push({ from: Uf(o, 0), text: "> " });
> t.line < this.lineCount() - 1 &&
> this.getLine(t.line + 1) &&
> n.push({ from: Uf(t.line + 1, 0), text: "\n" }),
> this.transaction({ changes: n, selection: r });
> } else
> this.transaction({
> changes: [
> { from: e, to: t, text: "\n> [!NOTE] Title\n> Contents\n" },
> ],
> selection: { from: Uf(e.line + 1, 4), to: Uf(e.line + 1, 8) },
> });
> }),
> (e.prototype.insertCodeblock = function () {
> this.insertBlock("```", "```");
> }),
> (e.prototype.insertMathBlock = function () {
> this.insertBlock("$$", "$$");
> }),
> (e.prototype.indentList = function () {
> this.exec("indentMore"), this.afterIndent();
> }),
> (e.prototype.unindentList = function () {
> this.exec("indentLess"), this.afterIndent();
> }),
> (e.prototype.afterIndent = function () {
> for (
> var e,
> t = this,
> n = this.listSelections(),
> i = [],
> r = [],
> o = 0,
> a = n;
> o < a.length;
> o++
> ) {
> var s = a[o];
> r.push(
> Math.min(s.head.line, s.anchor.line),
> Math.max(s.head.line, s.anchor.line) + 1
> );
> }
> r = ((e = r), Array.from(new Set(e))).sort();
> for (
> var l = -1,
> c = function (e) {
> var n = t.getLine(e);
> if (n) {
> var r = Kf.exec(n);
> if (r && r[4]) {
> for (
> var o = r[1], a = r[5], s = e - 1, c = 0, u = null;
> s >= 0;
>
> ) {
> var h = t.getLine(s),
> p = Kf.exec(h);
> if (!p || !p[4]) break;
> var d = p[1];
> if (d === o) {
> p[4] ? (c = parseInt(p[4], 10)) : (u = p);
> break;
> }
> if (d.length < o.length) break;
> s--;
> }
> var f = o.length + r[2].length;
> if (u)
> return (
> i.push({
> text: o + u[2],
> from: Uf(e),
> to: Uf(e, f),
> }),
> void (l = e)
> );
> c++,
> i.push({
> text: o + c + a,
> from: Uf(e),
> to: Uf(e, f),
> }),
> (l = e);
> for (var m = e + 1, g = t.lineCount(); m < g; ) {
> var v = t.getLine(m);
> if (v) {
> var y = Kf.exec(v);
> if (!y || !y[2]) break;
> var b = y[1];
> if (
> (b === o &&
> y[4] &&
> (c++,
> i.push({
> text: o + c + y[5],
> from: Uf(m),
> to: Uf(m, b.length + y[2].length),
> }),
> (l = m)),
> b.length < o.length)
> )
> break;
> m++;
> } else m++;
> }
> }
> }
> },
> u = 0,
> h = r;
> u < h.length;
> u++
> ) {
> var p = h[u];
> p > l && c(p);
35889a36587
> this.transaction({ changes: i });
35891,35893c36589,36743
< (e.prototype.onunload = function () {}),
< (e.prototype.addChild = function (e) {
< return this._children.push(e), this._loaded && e.load(), e;
---
> (e.prototype.newlineAndIndentContinueMarkdownList = function () {
> for (
> var e = this,
> t = this.listSelections(),
> n = [],
> i = function (t) {
> var i = t.head;
> if (
> t.head.line !== t.anchor.line ||
> t.head.ch !== t.anchor.ch
> )
> return !1;
> var r = e.getLine(i.line),
> o = Kf.exec(r);
> if (!o) return !1;
> var a = o[0],
> s = o[1],
> l = o[2],
> c = o[3],
> u = o[4],
> h = o[5],
> p = o[6];
> if (i.ch < a.length || (!l && !s)) return !1;
> if ("" === r.substr(a.length).trim()) {
> if (!s)
> return (
> n.push({ text: "", from: Uf(i.line), to: i }), !0
> );
> if (s.endsWith(">") || s.endsWith("> ")) {
> if (l)
> return (
> n.push({
> text: "",
> from: Uf(i.line, s.length),
> to: i,
> }),
> !0
> );
> var d = s.endsWith(">") ? 1 : 2;
> if (i.line > 0)
> if (e.getLine(i.line - 1) === s)
> return (
> n.push(
> {
> text: "",
> from: Uf(i.line - 1, s.length - d),
> to: Uf(i.line - 1, s.length),
> },
> {
> text: "",
> from: Uf(i.line, s.length - d),
> to: Uf(i.line, s.length),
> }
> ),
> !0
> );
> var f = s.substr(0, s.length - d);
> return (
> n.push({
> text: "\n" + f,
> from: Uf(i.line, s.length - d),
> to: Uf(i.line, s.length),
> }),
> !0
> );
> }
> if (s.endsWith("\t"))
> return (
> n.push({
> text: "",
> from: Uf(i.line, s.length - 1),
> to: Uf(i.line, s.length),
> }),
> !0
> );
> for (
> var m = 0;
> m < 4 && " " === s.charAt(s.length - m - 1);
> m++
> );
> return m > 0
> ? (n.push({
> text: "",
> from: Uf(i.line, s.length - m),
> to: Uf(i.line, s.length),
> }),
> !0)
> : (n.push({
> text: "",
> from: Uf(i.line),
> to: Uf(i.line, s.length),
> }),
> !0);
> }
> if (!l)
> return (
> n.push({
> text: r.charAt(i.ch - 1) + "\n" + s,
> from: Uf(i.line, i.ch - 1),
> to: i,
> }),
> !0
> );
> var g = c;
> u && (g = parseInt(u, 10) + 1 + h), p && (g += "[ ] ");
> var v = Kf.exec(r.substring(i.ch));
> if (
> (v && v[3] && (g = ""),
> n.push({
> text: r.charAt(i.ch - 1) + "\n" + s + g,
> from: Uf(i.line, i.ch - 1),
> to: i,
> }),
> v &&
> v[1] &&
> n.push({
> text: "",
> from: i,
> to: Uf(i.line, i.ch + v[1].length),
> }),
> u)
> )
> for (
> var y = parseInt(u, 10) + 2,
> b = i.line + 1,
> w = e.lineCount();
> b < w;
> b++
> ) {
> var k = Kf.exec(e.getLine(b));
> if (!k || !k[2]) break;
> if ((f = k[1]) === s) {
> var C = k[4],
> E = parseInt(C, 10);
> C &&
> !isNaN(E) &&
> ((y = Math.max(y, E)),
> n.push({
> text: String(y),
> from: Uf(b, s.length),
> to: Uf(b, s.length + C.length),
> }),
> y++);
> } else if (!(f.length > s.length)) break;
> }
> return !0;
> },
> r = 0,
> o = t;
> r < o.length;
> r++
> ) {
> if (!i(o[r])) return this.exec("newlineAndIndent");
> }
> this.transaction({ changes: n }), this.afterIndent();
35895,35898c36745,36786
< (e.prototype.removeChild = function (e) {
< var t = this._children,
< n = t.indexOf(e);
< return -1 !== n && (t.splice(n, 1), e.unload()), e;
---
> (e.prototype.newlineAndIndentOnly = function () {
> for (
> var e = this,
> t = this.listSelections(),
> n = [],
> i = function (t) {
> var i = t.head;
> if (
> t.head.line !== t.anchor.line ||
> t.head.ch !== t.anchor.ch
> )
> return !1;
> var r = e.getLine(i.line),
> o = Kf.exec(r);
> if (!o) return !1;
> var a = o[0],
> s = o[1],
> l = o[2];
> return (
> !(i.ch < a.length) &&
> (n.push({
> text:
> r.charAt(i.ch - 1) +
> "\n" +
> s +
> (l
> ? l.replace(/\t/g, " ").replace(/./g, " ")
> : ""),
> from: Uf(i.line, i.ch - 1),
> to: i,
> }),
> !0)
> );
> },
> r = 0,
> o = t;
> r < o.length;
> r++
> ) {
> if (!i(o[r])) return this.newlineOnly();
> }
> this.transaction({ changes: n });
35900,35901c36788,36789
< (e.prototype.register = function (e) {
< this._events.push(e);
---
> (e.prototype.newlineOnly = function () {
> this.transaction({ replaceSelection: "\n" });
35903,35906c36791,36808
< (e.prototype.registerEvent = function (e) {
< this.register(function () {
< return e.e.offref(e);
< });
---
> (e.prototype.expandText = function () {
> var e = this.getCursor("anchor"),
> t = this.getCursor("head");
> if (e.line === t.line && e.ch === t.ch)
> for (
> var n = this.getLine(e.line).substr(0, e.ch), i = 0, r = Xf;
> i < r.length;
> i++
> ) {
> var o = r[i],
> a = n.match(o.regex);
> if (a) {
> var s = a[0].length,
> l = o.replace(a);
> this.replaceRange(l, Wf(e, -s), e);
> break;
> }
> }
35908,35911c36810,37418
< (e.prototype.registerDomEvent = function (e, t, n, i) {
< e.addEventListener(t, n, i),
< this.register(function () {
< return e.removeEventListener(t, n, i);
---
> e
> );
> })();
> function Zf(e, t) {
> for (var n = [], i = 0, r = t; i < r.length; i++) {
> var o = r[i];
> n.push(o[0], o[1]);
> }
> for (var a = Qf(e, n), s = [], l = 0; l < t.length; l++)
> s.push({ from: a[2 * l], to: a[2 * l + 1] });
> return s;
> }
> function Qf(e, t) {
> for (
> var n = 0, i = 0, r = e.indexOf("\n"), o = [], a = 0, s = t;
> a < s.length;
> a++
> ) {
> for (var l = s[a]; r < l; ) {
> if (-1 === r) {
> r = e.length;
> break;
> }
> n++, (i = r + 1), (r = e.indexOf("\n", i));
> }
> o.push({ line: n, ch: l - i });
> }
> return o;
> }
> var Jf = function (e) {
> var t = e.state,
> n = t.doc.lineAt(t.selection.main.from),
> i = lm(e.state, n.from);
> return i.line ? tm(e) : !!i.block && sm(e);
> };
> function em(e, t) {
> return function (n) {
> var i = n.state,
> r = n.dispatch;
> if (i.readOnly) return !1;
> var o = e(t, i);
> return !!o && (r(i.update(o)), !0);
> };
> }
> var tm = em(um, 0),
> nm = em(um, 1),
> im = em(um, 2),
> rm = em(cm, 0),
> om = em(cm, 1),
> am = em(cm, 2),
> sm = em(function (e, t) {
> return cm(
> e,
> t,
> (function (e) {
> for (
> var t = [], n = 0, i = e.selection.ranges;
> n < i.length;
> n++
> ) {
> var r = i[n],
> o = e.doc.lineAt(r.from),
> a = r.to <= o.to ? o : e.doc.lineAt(r.to),
> s = t.length - 1;
> s >= 0 && t[s].to > o.from
> ? (t[s].to = a.to)
> : t.push({ from: o.from, to: a.to });
> }
> return t;
> })(t)
> );
> }, 0);
> function lm(e, t) {
> var n = e.languageDataAt("commentTokens", t);
> return n.length ? n[0] : {};
> }
> function cm(e, t, n) {
> void 0 === n && (n = t.selection.ranges);
> var i = n.map(function (e) {
> return lm(t, e.from).block;
> });
> if (
> !i.every(function (e) {
> return e;
> })
> )
> return null;
> var r = n.map(function (e, n) {
> return (function (e, t, n, i) {
> var r,
> o,
> a = t.open,
> s = t.close,
> l = e.sliceDoc(n - 50, n),
> c = e.sliceDoc(i, i + 50),
> u = /\s*$/.exec(l)[0].length,
> h = /^\s*/.exec(c)[0].length,
> p = l.length - u;
> if (l.slice(p - a.length, p) == a && c.slice(h, h + s.length) == s)
> return {
> open: { pos: n - u, margin: u && 1 },
> close: { pos: i + h, margin: h && 1 },
> };
> i - n <= 100
> ? (r = o = e.sliceDoc(n, i))
> : ((r = e.sliceDoc(n, n + 50)), (o = e.sliceDoc(i - 50, i)));
> var d = /^\s*/.exec(r)[0].length,
> f = /\s*$/.exec(o)[0].length,
> m = o.length - f - s.length;
> return r.slice(d, d + a.length) == a &&
> o.slice(m, m + s.length) == s
> ? {
> open: {
> pos: n + d + a.length,
> margin: /\s/.test(r.charAt(d + a.length)) ? 1 : 0,
> },
> close: {
> pos: i - f - s.length,
> margin: /\s/.test(o.charAt(m - 1)) ? 1 : 0,
> },
> }
> : null;
> })(t, i[n], e.from, e.to);
> });
> if (
> 2 != e &&
> !r.every(function (e) {
> return e;
> })
> )
> return {
> changes: t.changes(
> n.map(function (e, t) {
> return r[t]
> ? []
> : [
> { from: e.from, insert: i[t].open + " " },
> { from: e.to, insert: " " + i[t].close },
> ];
> })
> ),
> };
> if (
> 1 != e &&
> r.some(function (e) {
> return e;
> })
> ) {
> for (var o = [], a = 0, s = void 0; a < r.length; a++)
> if ((s = r[a])) {
> var l = i[a],
> c = s.open,
> u = s.close;
> o.push(
> { from: c.pos - l.open.length, to: c.pos + c.margin },
> { from: u.pos - u.margin, to: u.pos + l.close.length }
> );
> }
> return { changes: o };
> }
> return null;
> }
> function um(e, t, n) {
> void 0 === n && (n = t.selection.ranges);
> for (var i = [], r = -1, o = 0, a = n; o < a.length; o++) {
> var s = a[o],
> l = s.from,
> c = s.to,
> u = i.length,
> h = 1e9;
> if ((k = lm(t, l).line)) {
> for (var p = l; p <= c; ) {
> if ((w = t.doc.lineAt(p)).from > r && (l == c || c > w.from)) {
> r = w.from;
> var d = (C = /^\s*/.exec(w.text)[0].length) == w.length,
> f = w.text.slice(C, C + k.length) == k ? C : -1;
> C < w.text.length && C < h && (h = C),
> i.push({
> line: w,
> comment: f,
> token: k,
> indent: C,
> empty: d,
> single: !1,
> });
> }
> p = w.to + 1;
> }
> if (h < 1e9)
> for (var m = u; m < i.length; m++)
> i[m].indent < i[m].line.text.length && (i[m].indent = h);
> i.length == u + 1 && (i[u].single = !0);
> }
> }
> if (
> 2 != e &&
> i.some(function (e) {
> return e.comment < 0 && (!e.empty || e.single);
> })
> ) {
> for (var g = [], v = 0, y = i; v < y.length; v++) {
> var b = y[v],
> w = b.line,
> k = b.token,
> C = b.indent;
> d = b.empty;
> (!b.single && d) || g.push({ from: w.from + C, insert: k + " " });
> }
> var E = t.changes(g);
> return { changes: E, selection: t.selection.map(E, 1) };
> }
> if (
> 1 != e &&
> i.some(function (e) {
> return e.comment >= 0;
> })
> ) {
> g = [];
> for (var x = 0, S = i; x < S.length; x++) {
> var M = S[x];
> (w = M.line), (f = M.comment), (k = M.token);
> if (f >= 0) {
> c = (l = w.from + f) + k.length;
> " " == w.text[c - w.from] && c++, g.push({ from: l, to: c });
> }
> }
> return { changes: g };
> }
> return null;
> }
> var hm = Ir.define(),
> pm = Ir.define(),
> dm = ar.define(),
> fm = ar.define({
> combine: function (e) {
> return Yr(
> e,
> {
> minDepth: 100,
> newGroupDelay: 500,
> joinToEvent: function (e, t) {
> return t;
> },
> },
> {
> minDepth: Math.max,
> newGroupDelay: Math.min,
> joinToEvent: function (e, t) {
> return function (n, i) {
> return e(n, i) || t(n, i);
> };
> },
> }
> );
> },
> });
> var mm = pr.define({
> create: function () {
> return Bm.empty;
> },
> update: function (e, t) {
> var n,
> i,
> r = t.state.facet(fm),
> o = t.annotation(hm);
> if (o) {
> var a = t.docChanged
> ? ir.single(
> ((n = t.changes),
> (i = 0),
> n.iterChangedRanges(function (e, t) {
> return (i = t);
> }),
> i)
> )
> : void 0,
> s = Mm.fromTransaction(t, a),
> l = o.side,
> c = 0 == l ? e.undone : e.done;
> return (
> (c = s
> ? Tm(c, c.length, r.minDepth, s)
> : Lm(c, t.startState.selection)),
> new Bm(0 == l ? o.rest : c, 0 == l ? c : o.rest)
> );
> }
> var u = t.annotation(pm);
> if (
> (("full" != u && "before" != u) || (e = e.isolate()),
> !1 === t.annotation(Nr.addToHistory))
> )
> return t.changes.empty ? e : e.addMapping(t.changes.desc);
> var h = Mm.fromTransaction(t),
> p = t.annotation(Nr.time),
> d = t.annotation(Nr.userEvent);
> return (
> h
> ? (e = e.addChanges(h, p, d, r, t))
> : t.selection &&
> (e = e.addSelection(
> t.startState.selection,
> p,
> d,
> r.newGroupDelay
> )),
> ("full" != u && "after" != u) || (e = e.isolate()),
> e
> );
> },
> toJSON: function (e) {
> return {
> done: e.done.map(function (e) {
> return e.toJSON();
> }),
> undone: e.undone.map(function (e) {
> return e.toJSON();
> }),
> };
> },
> fromJSON: function (e) {
> return new Bm(e.done.map(Mm.fromJSON), e.undone.map(Mm.fromJSON));
> },
> });
> function gm(e) {
> return (
> void 0 === e && (e = {}),
> [
> mm,
> fm.of(e),
> dc.domEventHandlers({
> beforeinput: function (e, t) {
> var n =
> "historyUndo" == e.inputType
> ? bm
> : "historyRedo" == e.inputType
> ? wm
> : null;
> return !!n && (e.preventDefault(), n(t));
> },
> }),
> ]
> );
> }
> var vm = mm;
> function ym(e, t) {
> return function (n) {
> var i = n.state,
> r = n.dispatch;
> if (!t && i.readOnly) return !1;
> var o = i.field(mm, !1);
> if (!o) return !1;
> var a = o.pop(e, i, t);
> return !!a && (r(a), !0);
> };
> }
> var bm = ym(0, !1),
> wm = ym(1, !1),
> km = ym(0, !0),
> Cm = ym(1, !0);
> function Em(e) {
> return function (t) {
> var n = t.field(mm, !1);
> if (!n) return 0;
> var i = 0 == e ? n.done : n.undone;
> return i.length - (i.length && !i[0].changes ? 1 : 0);
> };
> }
> var xm = Em(0),
> Sm = Em(1),
> Mm = (function () {
> function e(e, t, n, i, r) {
> (this.changes = e),
> (this.effects = t),
> (this.mapped = n),
> (this.startSelection = i),
> (this.selectionsAfter = r);
> }
> return (
> (e.prototype.setSelAfter = function (t) {
> return new e(
> this.changes,
> this.effects,
> this.mapped,
> this.startSelection,
> t
> );
> }),
> (e.prototype.toJSON = function () {
> var e, t, n;
> return {
> changes:
> null === (e = this.changes) || void 0 === e
> ? void 0
> : e.toJSON(),
> mapped:
> null === (t = this.mapped) || void 0 === t
> ? void 0
> : t.toJSON(),
> startSelection:
> null === (n = this.startSelection) || void 0 === n
> ? void 0
> : n.toJSON(),
> selectionsAfter: this.selectionsAfter.map(function (e) {
> return e.toJSON();
> }),
> };
> }),
> (e.fromJSON = function (t) {
> return new e(
> t.changes && Xi.fromJSON(t.changes),
> [],
> t.mapped && Yi.fromJSON(t.mapped),
> t.startSelection && ir.fromJSON(t.startSelection),
> t.selectionsAfter.map(ir.fromJSON)
> );
> }),
> (e.fromTransaction = function (t, n) {
> for (
> var i = Am, r = 0, o = t.startState.facet(dm);
> r < o.length;
> r++
> ) {
> var a = (0, o[r])(t);
> a.length && (i = i.concat(a));
> }
> return !i.length && t.changes.empty
> ? null
> : new e(
> t.changes.invert(t.startState.doc),
> i,
> void 0,
> n || t.startState.selection,
> Am
> );
> }),
> (e.selection = function (t) {
> return new e(void 0, Am, void 0, void 0, t);
> }),
> e
> );
> })();
> function Tm(e, t, n, i) {
> var r = t + 1 > n + 20 ? t - n - 1 : 0,
> o = e.slice(r, t);
> return o.push(i), o;
> }
> function Dm(e, t) {
> return e.length ? (t.length ? e.concat(t) : e) : t;
> }
> var Am = [];
> function Lm(e, t) {
> if (e.length) {
> var n = e[e.length - 1],
> i = n.selectionsAfter.slice(
> Math.max(0, n.selectionsAfter.length - 200)
> );
> return i.length && i[i.length - 1].eq(t)
> ? e
> : (i.push(t), Tm(e, e.length - 1, 1e9, n.setSelAfter(i)));
> }
> return [Mm.selection([t])];
> }
> function Pm(e) {
> var t = e[e.length - 1],
> n = e.slice();
> return (
> (n[e.length - 1] = t.setSelAfter(
> t.selectionsAfter.slice(0, t.selectionsAfter.length - 1)
> )),
> n
> );
> }
> function Im(e, t) {
> if (!e.length) return e;
> for (var n = e.length, i = Am; n; ) {
> var r = Om(e[n - 1], t, i);
> if ((r.changes && !r.changes.empty) || r.effects.length) {
> var o = e.slice(0, n);
> return (o[n - 1] = r), o;
> }
> (t = r.mapped), n--, (i = r.selectionsAfter);
> }
> return i.length ? [Mm.selection(i)] : Am;
> }
> function Om(e, t, n) {
> var i = Dm(
> e.selectionsAfter.length
> ? e.selectionsAfter.map(function (e) {
> return e.map(t);
> })
> : Am,
> n
> );
> if (!e.changes) return Mm.selection(i);
> var r = e.changes.map(t),
> o = t.mapDesc(e.changes, !0),
> a = e.mapped ? e.mapped.composeDesc(o) : o;
> return new Mm(
> r,
> Br.mapEffects(e.effects, t),
> a,
> e.startSelection.map(o),
> i
> );
> }
> var Fm = /^(input\.type|delete)($|\.)/,
> Bm = (function () {
> function e(e, t, n, i) {
> void 0 === n && (n = 0),
> void 0 === i && (i = void 0),
> (this.done = e),
> (this.undone = t),
> (this.prevTime = n),
> (this.prevUserEvent = i);
> }
> return (
> (e.prototype.isolate = function () {
> return this.prevTime ? new e(this.done, this.undone) : this;
> }),
> (e.prototype.addChanges = function (t, n, i, r, o) {
> var a = this.done,
> s = a[a.length - 1];
> return new e(
> (a =
> s &&
> s.changes &&
> !s.changes.empty &&
> t.changes &&
> (!i || Fm.test(i)) &&
> ((!s.selectionsAfter.length &&
> n - this.prevTime < r.newGroupDelay &&
> r.joinToEvent(
> o,
> (function (e, t) {
> var n = [],
> i = !1;
> return (
> e.iterChangedRanges(function (e, t) {
> return n.push(e, t);
> }),
> t.iterChangedRanges(function (e, t, r, o) {
> for (var a = 0; a < n.length; ) {
> var s = n[a++],
> l = n[a++];
> o >= s && r <= l && (i = !0);
> }
> }),
> i
> );
> })(s.changes, t.changes)
> )) ||
> "input.type.compose" == i)
> ? Tm(
> a,
> a.length - 1,
> r.minDepth,
> new Mm(
> t.changes.compose(s.changes),
> Dm(t.effects, s.effects),
> s.mapped,
> s.startSelection,
> Am
> )
> )
> : Tm(a, a.length, r.minDepth, t)),
> Am,
> n,
> i
> );
> }),
> (e.prototype.addSelection = function (t, n, i, r) {
> var o,
> a,
> s = this.done.length
> ? this.done[this.done.length - 1].selectionsAfter
> : Am;
> return s.length > 0 &&
> n - this.prevTime < r &&
> i == this.prevUserEvent &&
> i &&
> /^select($|\.)/.test(i) &&
> ((o = s[s.length - 1]),
> (a = t),
> o.ranges.length == a.ranges.length &&
> 0 ===
> o.ranges.filter(function (e, t) {
> return e.empty != a.ranges[t].empty;
> }).length)
> ? this
> : new e(Lm(this.done, t), this.undone, n, i);
> }),
> (e.prototype.addMapping = function (t) {
> return new e(
> Im(this.done, t),
> Im(this.undone, t),
> this.prevTime,
> this.prevUserEvent
> );
> }),
> (e.prototype.pop = function (e, t, n) {
> var i = 0 == e ? this.done : this.undone;
> if (0 == i.length) return null;
> var r = i[i.length - 1];
> if (n && r.selectionsAfter.length)
> return t.update({
> selection: r.selectionsAfter[r.selectionsAfter.length - 1],
> annotations: hm.of({ side: e, rest: Pm(i) }),
> userEvent: 0 == e ? "select.undo" : "select.redo",
> scrollIntoView: !0,
35912a37420,37435
> if (r.changes) {
> var o = 1 == i.length ? Am : i.slice(0, i.length - 1);
> return (
> r.mapped && (o = Im(o, r.mapped)),
> t.update({
> changes: r.changes,
> selection: r.startSelection,
> effects: r.effects,
> annotations: hm.of({ side: e, rest: o }),
> filter: !1,
> userEvent: 0 == e ? "undo" : "redo",
> scrollIntoView: !0,
> })
> );
> }
> return null;
35914,35916c37437,38199
< (e.prototype.registerScopeEvent = function (e) {
< this.register(function () {
< return e.scope.unregister(e);
---
> e
> );
> })();
> Bm.empty = new Bm(Am, Am);
> var Nm = [
> { key: "Mod-z", run: bm, preventDefault: !0 },
> { key: "Mod-y", mac: "Mod-Shift-z", run: wm, preventDefault: !0 },
> { linux: "Ctrl-Shift-z", run: wm, preventDefault: !0 },
> { key: "Mod-u", run: km, preventDefault: !0 },
> { key: "Alt-u", mac: "Mod-Shift-u", run: Cm, preventDefault: !0 },
> ];
> function Rm(e, t) {
> return ir.create(e.ranges.map(t), e.mainIndex);
> }
> function Hm(e, t) {
> return e.update({
> selection: t,
> scrollIntoView: !0,
> userEvent: "select",
> });
> }
> function Vm(e, t) {
> var n = e.state,
> i = e.dispatch,
> r = Rm(n.selection, t);
> return !r.eq(n.selection) && (i(Hm(n, r)), !0);
> }
> function zm(e, t) {
> return ir.cursor(t ? e.to : e.from);
> }
> function qm(e, t) {
> return Vm(e, function (n) {
> return n.empty ? e.moveByChar(n, t) : zm(n, t);
> });
> }
> function Um(e) {
> return e.textDirectionAt(e.state.selection.main.head) == ds.LTR;
> }
> var Wm = function (e) {
> return qm(e, !Um(e));
> },
> _m = function (e) {
> return qm(e, Um(e));
> },
> jm = function (e) {
> return qm(e, !0);
> },
> Gm = function (e) {
> return qm(e, !1);
> };
> function Km(e, t) {
> return Vm(e, function (n) {
> return n.empty ? e.moveByGroup(n, t) : zm(n, t);
> });
> }
> var Ym = function (e) {
> return Km(e, !Um(e));
> },
> Xm = function (e) {
> return Km(e, Um(e));
> },
> $m = function (e) {
> return Km(e, !0);
> },
> Zm = function (e) {
> return Km(e, !1);
> };
> function Qm(e, t, n) {
> var i = e.state.charCategorizer(t.from);
> return e.moveByChar(t, n, function (r) {
> var o = _r.Space,
> a = t.from,
> s = !1,
> l = !1,
> c = !1,
> u = function (t) {
> if (s) return !1;
> a += n ? t.length : -t.length;
> var r,
> u = i(t);
> if ((o == _r.Space && (o = u), o != u)) return !1;
> if (o == _r.Word)
> if (t.toLowerCase() == t) {
> if (!n && l) return !1;
> c = !0;
> } else if (c) {
> if (n) return !1;
> s = !0;
> } else {
> if (
> l &&
> n &&
> i((r = e.state.sliceDoc(a, a + 1))) == _r.Word &&
> r.toLowerCase() == r
> )
> return !1;
> l = !0;
> }
> return !0;
> };
> return u(r), u;
> });
> }
> function Jm(e, t) {
> return Vm(e, function (n) {
> return n.empty ? Qm(e, n, t) : zm(n, t);
> });
> }
> var eg = function (e) {
> return Jm(e, !0);
> },
> tg = function (e) {
> return Jm(e, !1);
> };
> function ng(e, t, n) {
> if (t.type.prop(n)) return !0;
> var i = t.to - t.from;
> return (
> (i && (i > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to)))) ||
> t.firstChild
> );
> }
> function ig(e, t, n) {
> for (
> var i = ap(e).resolveInner(t.head),
> r = n ? Hn.closedBy : Hn.openedBy,
> o = t.head;
> ;
>
> ) {
> var a = n ? i.childAfter(o) : i.childBefore(o);
> if (!a) break;
> ng(e, a, r) ? (i = a) : (o = n ? a.to : a.from);
> }
> var s, l;
> return (
> (l =
> i.type.prop(r) &&
> (s = n ? Fd(e, i.from, 1) : Fd(e, i.to, -1)) &&
> s.matched
> ? n
> ? s.end.to
> : s.end.from
> : n
> ? i.to
> : i.from),
> ir.cursor(l, n ? -1 : 1)
> );
> }
> var rg = function (e) {
> return Vm(e, function (t) {
> return ig(e.state, t, !Um(e));
> });
> },
> og = function (e) {
> return Vm(e, function (t) {
> return ig(e.state, t, Um(e));
> });
> };
> function ag(e, t) {
> return Vm(e, function (n) {
> if (!n.empty) return zm(n, t);
> var i = e.moveVertically(n, t);
> return i.head != n.head ? i : e.moveToLineBoundary(n, t);
> });
> }
> var sg = function (e) {
> return ag(e, !1);
> },
> lg = function (e) {
> return ag(e, !0);
> };
> function cg(e) {
> var t,
> n = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2,
> i = 0,
> r = 0;
> if (n) {
> for (
> var o = 0, a = e.state.facet(dc.scrollMargins);
> o < a.length;
> o++
> ) {
> var s = (0, a[o])(e);
> (null == s ? void 0 : s.top) &&
> (i = Math.max(null == s ? void 0 : s.top, i)),
> (null == s ? void 0 : s.bottom) &&
> (r = Math.max(null == s ? void 0 : s.bottom, r));
> }
> t = e.scrollDOM.clientHeight - i - r;
> } else t = (e.dom.ownerDocument.defaultView || window).innerHeight;
> return {
> marginTop: i,
> marginBottom: r,
> selfScroll: n,
> height: Math.max(e.defaultLineHeight, t - 5),
> };
> }
> function ug(e, t) {
> var n,
> i = cg(e),
> r = e.state,
> o = Rm(r.selection, function (n) {
> return n.empty ? e.moveVertically(n, t, i.height) : zm(n, t);
> });
> if (o.eq(r.selection)) return !1;
> if (i.selfScroll) {
> var a = e.coordsAtPos(r.selection.main.head),
> s = e.scrollDOM.getBoundingClientRect(),
> l = s.top + i.marginTop,
> c = s.bottom - i.marginBottom;
> a &&
> a.top > l &&
> a.bottom < c &&
> (n = dc.scrollIntoView(o.main.head, {
> y: "start",
> yMargin: a.top - l,
> }));
> }
> return e.dispatch(Hm(r, o), { effects: n }), !0;
> }
> var hg = function (e) {
> return ug(e, !1);
> },
> pg = function (e) {
> return ug(e, !0);
> };
> function dg(e, t, n) {
> var i = e.lineBlockAt(t.head),
> r = e.moveToLineBoundary(t, n);
> if (
> (r.head == t.head &&
> r.head != (n ? i.to : i.from) &&
> (r = e.moveToLineBoundary(t, n, !1)),
> !n && r.head == i.from && i.length)
> ) {
> var o = /^\s*/.exec(
> e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to))
> )[0].length;
> o && t.head != i.from + o && (r = ir.cursor(i.from + o));
> }
> return r;
> }
> var fg = function (e) {
> return Vm(e, function (t) {
> return dg(e, t, !0);
> });
> },
> mg = function (e) {
> return Vm(e, function (t) {
> return dg(e, t, !1);
> });
> },
> gg = function (e) {
> return Vm(e, function (t) {
> return dg(e, t, !Um(e));
> });
> },
> vg = function (e) {
> return Vm(e, function (t) {
> return dg(e, t, Um(e));
> });
> },
> yg = function (e) {
> return Vm(e, function (t) {
> return ir.cursor(e.lineBlockAt(t.head).from, 1);
> });
> },
> bg = function (e) {
> return Vm(e, function (t) {
> return ir.cursor(e.lineBlockAt(t.head).to, -1);
> });
> };
> function wg(e, t, n) {
> var i = !1,
> r = Rm(e.selection, function (t) {
> var r =
> Fd(e, t.head, -1) ||
> Fd(e, t.head, 1) ||
> (t.head > 0 && Fd(e, t.head - 1, 1)) ||
> (t.head < e.doc.length && Fd(e, t.head + 1, -1));
> if (!r || !r.end) return t;
> i = !0;
> var o = r.start.from == t.head ? r.end.to : r.end.from;
> return n ? ir.range(t.anchor, o) : ir.cursor(o);
> });
> return !!i && (t(Hm(e, r)), !0);
> }
> var kg = function (e) {
> return wg(e.state, e.dispatch, !1);
> },
> Cg = function (e) {
> return wg(e.state, e.dispatch, !0);
> };
> function Eg(e, t) {
> var n = Rm(e.state.selection, function (e) {
> var n = t(e);
> return ir.range(
> e.anchor,
> n.head,
> n.goalColumn,
> n.bidiLevel || void 0
> );
> });
> return !n.eq(e.state.selection) && (e.dispatch(Hm(e.state, n)), !0);
> }
> function xg(e, t) {
> return Eg(e, function (n) {
> return e.moveByChar(n, t);
> });
> }
> var Sg = function (e) {
> return xg(e, !Um(e));
> },
> Mg = function (e) {
> return xg(e, Um(e));
> },
> Tg = function (e) {
> return xg(e, !0);
> },
> Dg = function (e) {
> return xg(e, !1);
> };
> function Ag(e, t) {
> return Eg(e, function (n) {
> return e.moveByGroup(n, t);
> });
> }
> var Lg = function (e) {
> return Ag(e, !Um(e));
> },
> Pg = function (e) {
> return Ag(e, Um(e));
> },
> Ig = function (e) {
> return Ag(e, !0);
> },
> Og = function (e) {
> return Ag(e, !1);
> };
> function Fg(e, t) {
> return Eg(e, function (n) {
> return Qm(e, n, t);
> });
> }
> var Bg = function (e) {
> return Fg(e, !0);
> },
> Ng = function (e) {
> return Fg(e, !1);
> },
> Rg = function (e) {
> return Eg(e, function (t) {
> return ig(e.state, t, !Um(e));
> });
> },
> Hg = function (e) {
> return Eg(e, function (t) {
> return ig(e.state, t, Um(e));
> });
> };
> function Vg(e, t) {
> return Eg(e, function (n) {
> return e.moveVertically(n, t);
> });
> }
> var zg = function (e) {
> return Vg(e, !1);
> },
> qg = function (e) {
> return Vg(e, !0);
> };
> function Ug(e, t) {
> return Eg(e, function (n) {
> return e.moveVertically(n, t, cg(e).height);
> });
> }
> var Wg = function (e) {
> return Ug(e, !1);
> },
> _g = function (e) {
> return Ug(e, !0);
> },
> jg = function (e) {
> return Eg(e, function (t) {
> return dg(e, t, !0);
> });
> },
> Gg = function (e) {
> return Eg(e, function (t) {
> return dg(e, t, !1);
> });
> },
> Kg = function (e) {
> return Eg(e, function (t) {
> return dg(e, t, !Um(e));
> });
> },
> Yg = function (e) {
> return Eg(e, function (t) {
> return dg(e, t, Um(e));
> });
> },
> Xg = function (e) {
> return Eg(e, function (t) {
> return ir.cursor(e.lineBlockAt(t.head).from);
> });
> },
> $g = function (e) {
> return Eg(e, function (t) {
> return ir.cursor(e.lineBlockAt(t.head).to);
> });
> },
> Zg = function (e) {
> var t = e.state;
> return (0, e.dispatch)(Hm(t, { anchor: 0 })), !0;
> },
> Qg = function (e) {
> var t = e.state;
> return (0, e.dispatch)(Hm(t, { anchor: t.doc.length })), !0;
> },
> Jg = function (e) {
> var t = e.state;
> return (
> (0, e.dispatch)(
> Hm(t, { anchor: t.selection.main.anchor, head: 0 })
> ),
> !0
> );
> },
> ev = function (e) {
> var t = e.state;
> return (
> (0, e.dispatch)(
> Hm(t, { anchor: t.selection.main.anchor, head: t.doc.length })
> ),
> !0
> );
> },
> tv = function (e) {
> var t = e.state;
> return (
> (0, e.dispatch)(
> t.update({
> selection: { anchor: 0, head: t.doc.length },
> userEvent: "select",
> })
> ),
> !0
> );
> },
> nv = function (e) {
> var t = e.state,
> n = e.dispatch,
> i = yv(t).map(function (e) {
> var n = e.from,
> i = e.to;
> return ir.range(n, Math.min(i + 1, t.doc.length));
> });
> return (
> n(t.update({ selection: ir.create(i), userEvent: "select" })), !0
> );
> },
> iv = function (e) {
> var t = e.state,
> n = e.dispatch,
> i = Rm(t.selection, function (e) {
> for (
> var n, i = ap(t).resolveInner(e.head, 1);
> !(
> (i.from < e.from && i.to >= e.to) ||
> (i.to > e.to && i.from <= e.from)
> ) &&
> (null === (n = i.parent) || void 0 === n ? void 0 : n.parent);
>
> )
> i = i.parent;
> return ir.range(i.to, i.from);
> });
> return n(Hm(t, i)), !0;
> },
> rv = function (e) {
> var t = e.state,
> n = e.dispatch,
> i = t.selection,
> r = null;
> return (
> i.ranges.length > 1
> ? (r = ir.create([i.main]))
> : i.main.empty || (r = ir.create([ir.cursor(i.main.head)])),
> !!r && (n(Hm(t, r)), !0)
> );
> };
> function ov(e, t) {
> if (e.state.readOnly) return !1;
> var n = "delete.selection",
> i = e.state,
> r = i.changeByRange(function (i) {
> var r = i.from,
> o = i.to;
> if (r == o) {
> var a = t(r);
> a < r
> ? ((n = "delete.backward"), (a = av(e, a, !1)))
> : a > r && ((n = "delete.forward"), (a = av(e, a, !0))),
> (r = Math.min(r, a)),
> (o = Math.max(o, a));
> } else (r = av(e, r, !1)), (o = av(e, o, !0));
> return r == o
> ? { range: i }
> : { changes: { from: r, to: o }, range: ir.cursor(r) };
> });
> return (
> !r.changes.empty &&
> (e.dispatch(
> i.update(r, {
> scrollIntoView: !0,
> userEvent: n,
> effects:
> "delete.selection" == n
> ? dc.announce.of(i.phrase("Selection deleted"))
> : void 0,
> })
> ),
> !0)
> );
> }
> function av(e, t, n) {
> if (e instanceof dc)
> for (
> var i = 0,
> r = e.state.facet(dc.atomicRanges).map(function (t) {
> return t(e);
> });
> i < r.length;
> i++
> ) {
> r[i].between(t, t, function (e, i) {
> e < t && i > t && (t = n ? i : e);
> });
> }
> return t;
> }
> var sv = function (e, t) {
> return ov(e, function (n) {
> var i,
> r,
> o = e.state,
> a = o.doc.lineAt(n);
> if (
> !t &&
> n > a.from &&
> n < a.from + 200 &&
> !/[^ \t]/.test((i = a.text.slice(0, n - a.from)))
> ) {
> if ("\t" == i[i.length - 1]) return n - 1;
> for (
> var s = ho(i, o.tabSize) % xp(o) || xp(o), l = 0;
> l < s && " " == i[i.length - 1 - l];
> l++
> )
> n--;
> r = n;
> } else (r = Hi(a.text, n - a.from, t, t) + a.from) == n && a.number != (t ? o.doc.lines : 1) && (r += t ? 1 : -1);
> return r;
> });
> },
> lv = function (e) {
> return sv(e, !1);
> },
> cv = function (e) {
> return sv(e, !0);
> },
> uv = function (e, t) {
> return ov(e, function (n) {
> for (
> var i = n,
> r = e.state,
> o = r.doc.lineAt(i),
> a = r.charCategorizer(i),
> s = null;
> ;
>
> ) {
> if (i == (t ? o.to : o.from)) {
> i == n &&
> o.number != (t ? r.doc.lines : 1) &&
> (i += t ? 1 : -1);
> break;
> }
> var l = Hi(o.text, i - o.from, t) + o.from,
> c = o.text.slice(
> Math.min(i, l) - o.from,
> Math.max(i, l) - o.from
> ),
> u = a(c);
> if (null != s && u != s) break;
> (" " == c && i == n) || (s = u), (i = l);
> }
> return i;
> });
> },
> hv = function (e) {
> return uv(e, !1);
> },
> pv = function (e) {
> return uv(e, !0);
> },
> dv = function (e) {
> return ov(e, function (t) {
> var n = e.lineBlockAt(t).to;
> return t < n ? n : Math.min(e.state.doc.length, t + 1);
> });
> },
> fv = function (e) {
> return ov(e, function (t) {
> var n = e.lineBlockAt(t).from;
> return t > n ? n : Math.max(0, t - 1);
> });
> },
> mv = function (e) {
> var t = e.state,
> n = e.dispatch;
> if (t.readOnly) return !1;
> for (var i = [], r = 0, o = "", a = t.doc.iter(); ; ) {
> if ((a.next(), a.lineBreak || a.done)) {
> var s = o.search(/\s+$/);
> if (
> (s > -1 && i.push({ from: r - (o.length - s), to: r }), a.done)
> )
> break;
> o = "";
> } else o = a.value;
> r += a.value.length;
> }
> return (
> !!i.length && (n(t.update({ changes: i, userEvent: "delete" })), !0)
> );
> },
> gv = function (e) {
> var t = e.state,
> n = e.dispatch;
> if (t.readOnly) return !1;
> var i = t.changeByRange(function (e) {
> return {
> changes: { from: e.from, to: e.to, insert: Si.of(["", ""]) },
> range: ir.cursor(e.from),
> };
> });
> return n(t.update(i, { scrollIntoView: !0, userEvent: "input" })), !0;
> },
> vv = function (e) {
> var t = e.state,
> n = e.dispatch;
> if (t.readOnly) return !1;
> var i = t.changeByRange(function (e) {
> if (!e.empty || 0 == e.from || e.from == t.doc.length)
> return { range: e };
> var n = e.from,
> i = t.doc.lineAt(n),
> r = n == i.from ? n - 1 : Hi(i.text, n - i.from, !1) + i.from,
> o = n == i.to ? n + 1 : Hi(i.text, n - i.from, !0) + i.from;
> return {
> changes: {
> from: r,
> to: o,
> insert: t.doc.slice(n, o).append(t.doc.slice(r, n)),
> },
> range: ir.cursor(o),
> };
> });
> return (
> !i.changes.empty &&
> (n(
> t.update(i, { scrollIntoView: !0, userEvent: "move.character" })
> ),
> !0)
> );
> };
> function yv(e) {
> for (
> var t = [], n = -1, i = 0, r = e.selection.ranges;
> i < r.length;
> i++
> ) {
> var o = r[i],
> a = e.doc.lineAt(o.from),
> s = e.doc.lineAt(o.to);
> if (
> (o.empty || o.to != s.from || (s = e.doc.lineAt(o.to - 1)),
> n >= a.number)
> ) {
> var l = t[t.length - 1];
> (l.to = s.to), l.ranges.push(o);
> } else t.push({ from: a.from, to: s.to, ranges: [o] });
> n = s.number + 1;
> }
> return t;
> }
> function bv(e, t, n) {
> if (e.readOnly) return !1;
> for (var i = [], r = [], o = 0, a = yv(e); o < a.length; o++) {
> var s = a[o];
> if (n ? s.to != e.doc.length : 0 != s.from) {
> var l = e.doc.lineAt(n ? s.to + 1 : s.from - 1),
> c = l.length + 1;
> if (n) {
> i.push(
> { from: s.to, to: l.to },
> { from: s.from, insert: l.text + e.lineBreak }
> );
> for (var u = 0, h = s.ranges; u < h.length; u++) {
> var p = h[u];
> r.push(
> ir.range(
> Math.min(e.doc.length, p.anchor + c),
> Math.min(e.doc.length, p.head + c)
> )
> );
> }
> } else {
> i.push(
> { from: l.from, to: s.from },
> { from: s.to, insert: e.lineBreak + l.text }
> );
> for (var d = 0, f = s.ranges; d < f.length; d++) {
> p = f[d];
> r.push(ir.range(p.anchor - c, p.head - c));
> }
> }
> }
> }
> return (
> !!i.length &&
> (t(
> e.update({
> changes: i,
> scrollIntoView: !0,
> selection: ir.create(r, e.selection.mainIndex),
> userEvent: "move.line",
> })
> ),
> !0)
> );
> }
> var wv = function (e) {
> return bv(e.state, e.dispatch, !1);
> },
> kv = function (e) {
> return bv(e.state, e.dispatch, !0);
> };
> function Cv(e, t, n) {
> if (e.readOnly) return !1;
> for (var i = [], r = 0, o = yv(e); r < o.length; r++) {
> var a = o[r];
> n
> ? i.push({
> from: a.from,
> insert: e.doc.slice(a.from, a.to) + e.lineBreak,
> })
> : i.push({
> from: a.to,
> insert: e.lineBreak + e.doc.slice(a.from, a.to),
35917a38201,38239
> }
> return (
> t(
> e.update({
> changes: i,
> scrollIntoView: !0,
> userEvent: "input.copyline",
> })
> ),
> !0
> );
> }
> var Ev = function (e) {
> return Cv(e.state, e.dispatch, !1);
> },
> xv = function (e) {
> return Cv(e.state, e.dispatch, !0);
> },
> Sv = function (e) {
> if (e.state.readOnly) return !1;
> var t = e.state,
> n = t.changes(
> yv(t).map(function (e) {
> var n = e.from,
> i = e.to;
> return (
> n > 0 ? n-- : i < t.doc.length && i++, { from: n, to: i }
> );
> })
> ),
> i = Rm(t.selection, function (t) {
> return e.moveVertically(t, !0);
> }).map(n);
> return (
> e.dispatch({
> changes: n,
> selection: i,
> scrollIntoView: !0,
> userEvent: "delete.line",
35919,35922c38241,38363
< (e.prototype.registerInterval = function (e) {
< return (
< this.register(function () {
< return clearInterval(e);
---
> !0
> );
> },
> Mv = function (e) {
> var t = e.state;
> return (
> (0, e.dispatch)(
> t.update(t.replaceSelection(t.lineBreak), {
> scrollIntoView: !0,
> userEvent: "input",
> })
> ),
> !0
> );
> };
> var Tv = Av(!1),
> Dv = Av(!0);
> function Av(e) {
> return function (t) {
> var n = t.state,
> i = t.dispatch;
> if (n.readOnly) return !1;
> var r = n.changeByRange(function (t) {
> var i = t.from,
> r = t.to,
> o = n.doc.lineAt(i),
> a =
> !e &&
> i == r &&
> (function (e, t) {
> if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1)))
> return { from: t, to: t };
> var n,
> i = ap(e).resolveInner(t),
> r = i.childBefore(t),
> o = i.childAfter(t);
> return r &&
> o &&
> r.to <= t &&
> o.from >= t &&
> (n = r.type.prop(Hn.closedBy)) &&
> n.indexOf(o.name) > -1 &&
> e.doc.lineAt(r.to).from == e.doc.lineAt(o.from).from
> ? { from: r.to, to: o.from }
> : null;
> })(n, i);
> e && (i = r = (r <= o.to ? o : n.doc.lineAt(r)).to);
> var s = new Dp(n, { simulateBreak: i, simulateDoubleBreak: !!a }),
> l = Mp(s, i);
> for (
> null == l && (l = /^\s*/.exec(n.doc.lineAt(i).text)[0].length);
> r < o.to && /\s/.test(o.text[r - o.from]);
>
> )
> r++;
> a
> ? ((i = a.from), (r = a.to))
> : i > o.from &&
> i < o.from + 100 &&
> !/\S/.test(o.text.slice(0, i)) &&
> (i = o.from);
> var c = ["", Sp(n, l)];
> return (
> a && c.push(Sp(n, s.lineIndent(o.from, -1))),
> {
> changes: { from: i, to: r, insert: Si.of(c) },
> range: ir.cursor(i + 1 + c[1].length),
> }
> );
> });
> return i(n.update(r, { scrollIntoView: !0, userEvent: "input" })), !0;
> };
> }
> function Lv(e, t) {
> var n = -1;
> return e.changeByRange(function (i) {
> for (var r = [], o = i.from; o <= i.to; ) {
> var a = e.doc.lineAt(o);
> a.number > n &&
> (i.empty || i.to > a.from) &&
> (t(a, r, i), (n = a.number)),
> (o = a.to + 1);
> }
> var s = e.changes(r);
> return {
> changes: r,
> range: ir.range(s.mapPos(i.anchor, 1), s.mapPos(i.head, 1)),
> };
> });
> }
> var Pv = function (e) {
> var t = e.state,
> n = e.dispatch;
> if (t.readOnly) return !1;
> var i = Object.create(null),
> r = new Dp(t, {
> overrideIndentation: function (e) {
> var t = i[e];
> return null == t ? -1 : t;
> },
> }),
> o = Lv(t, function (e, n, o) {
> var a = Mp(r, e.from);
> if (null != a) {
> /\S/.test(e.text) || (a = 0);
> var s = /^\s*/.exec(e.text)[0],
> l = Sp(t, a);
> (s != l || o.from < e.from + s.length) &&
> ((i[e.from] = a),
> n.push({ from: e.from, to: e.from + s.length, insert: l }));
> }
> });
> return o.changes.empty || n(t.update(o, { userEvent: "indent" })), !0;
> },
> Iv = function (e) {
> var t = e.state,
> n = e.dispatch;
> return (
> !t.readOnly &&
> (n(
> t.update(
> Lv(t, function (e, n) {
> n.push({ from: e.from, insert: t.facet(Ep) });
35924c38365,38612
< e
---
> { userEvent: "input.indent" }
> )
> ),
> !0)
> );
> },
> Ov = function (e) {
> var t = e.state,
> n = e.dispatch;
> return (
> !t.readOnly &&
> (n(
> t.update(
> Lv(t, function (e, n) {
> var i = /^\s*/.exec(e.text)[0];
> if (i) {
> for (
> var r = ho(i, t.tabSize),
> o = 0,
> a = Sp(t, Math.max(0, r - xp(t)));
> o < i.length &&
> o < a.length &&
> i.charCodeAt(o) == a.charCodeAt(o);
>
> )
> o++;
> n.push({
> from: e.from + o,
> to: e.from + i.length,
> insert: a.slice(o),
> });
> }
> }),
> { userEvent: "delete.dedent" }
> )
> ),
> !0)
> );
> },
> Fv = function (e) {
> var t = e.state,
> n = e.dispatch;
> return t.selection.ranges.some(function (e) {
> return !e.empty;
> })
> ? Iv({ state: t, dispatch: n })
> : (n(
> t.update(t.replaceSelection("\t"), {
> scrollIntoView: !0,
> userEvent: "input",
> })
> ),
> !0);
> },
> Bv = [
> { key: "Ctrl-b", run: Wm, shift: Sg, preventDefault: !0 },
> { key: "Ctrl-f", run: _m, shift: Mg },
> { key: "Ctrl-p", run: sg, shift: zg },
> { key: "Ctrl-n", run: lg, shift: qg },
> { key: "Ctrl-a", run: yg, shift: Xg },
> { key: "Ctrl-e", run: bg, shift: $g },
> { key: "Ctrl-d", run: cv },
> { key: "Ctrl-h", run: lv },
> { key: "Ctrl-k", run: dv },
> { key: "Ctrl-Alt-h", run: hv },
> { key: "Ctrl-o", run: gv },
> { key: "Ctrl-t", run: vv },
> { key: "Ctrl-v", run: pg },
> ],
> Nv = [
> { key: "ArrowLeft", run: Wm, shift: Sg, preventDefault: !0 },
> {
> key: "Mod-ArrowLeft",
> mac: "Alt-ArrowLeft",
> run: Ym,
> shift: Lg,
> preventDefault: !0,
> },
> { mac: "Cmd-ArrowLeft", run: gg, shift: Kg, preventDefault: !0 },
> { key: "ArrowRight", run: _m, shift: Mg, preventDefault: !0 },
> {
> key: "Mod-ArrowRight",
> mac: "Alt-ArrowRight",
> run: Xm,
> shift: Pg,
> preventDefault: !0,
> },
> { mac: "Cmd-ArrowRight", run: vg, shift: Yg, preventDefault: !0 },
> { key: "ArrowUp", run: sg, shift: zg, preventDefault: !0 },
> { mac: "Cmd-ArrowUp", run: Zg, shift: Jg },
> { mac: "Ctrl-ArrowUp", run: hg, shift: Wg },
> { key: "ArrowDown", run: lg, shift: qg, preventDefault: !0 },
> { mac: "Cmd-ArrowDown", run: Qg, shift: ev },
> { mac: "Ctrl-ArrowDown", run: pg, shift: _g },
> { key: "PageUp", run: hg, shift: Wg },
> { key: "PageDown", run: pg, shift: _g },
> { key: "Home", run: mg, shift: Gg, preventDefault: !0 },
> { key: "Mod-Home", run: Zg, shift: Jg },
> { key: "End", run: fg, shift: jg, preventDefault: !0 },
> { key: "Mod-End", run: Qg, shift: ev },
> { key: "Enter", run: Tv },
> { key: "Mod-a", run: tv },
> { key: "Backspace", run: lv, shift: lv },
> { key: "Delete", run: cv },
> { key: "Mod-Backspace", mac: "Alt-Backspace", run: hv },
> { key: "Mod-Delete", mac: "Alt-Delete", run: pv },
> { mac: "Mod-Backspace", run: fv },
> { mac: "Mod-Delete", run: dv },
> ].concat(
> Bv.map(function (e) {
> return { mac: e.key, run: e.run, shift: e.shift };
> })
> ),
> Rv = [
> { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: rg, shift: Rg },
> { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: og, shift: Hg },
> { key: "Alt-ArrowUp", run: wv },
> { key: "Shift-Alt-ArrowUp", run: Ev },
> { key: "Alt-ArrowDown", run: kv },
> { key: "Shift-Alt-ArrowDown", run: xv },
> { key: "Escape", run: rv },
> { key: "Mod-Enter", run: Dv },
> { key: "Alt-l", mac: "Ctrl-l", run: nv },
> { key: "Mod-i", run: iv, preventDefault: !0 },
> { key: "Mod-[", run: Ov },
> { key: "Mod-]", run: Iv },
> { key: "Mod-Alt-\\", run: Pv },
> { key: "Shift-Mod-k", run: Sv },
> { key: "Shift-Mod-\\", run: kg },
> { key: "Mod-/", run: Jf },
> { key: "Alt-A", run: rm },
> ].concat(Nv),
> Hv = { key: "Tab", run: Iv, shift: Ov };
> function Vv() {
> var e = arguments[0];
> "string" == typeof e && (e = document.createElement(e));
> var t = 1,
> n = arguments[1];
> if (
> n &&
> "object" == typeof n &&
> null == n.nodeType &&
> !Array.isArray(n)
> ) {
> for (var i in n)
> if (Object.prototype.hasOwnProperty.call(n, i)) {
> var r = n[i];
> "string" == typeof r
> ? e.setAttribute(i, r)
> : null != r && (e[i] = r);
> }
> t++;
> }
> for (; t < arguments.length; t++) zv(e, arguments[t]);
> return e;
> }
> function zv(e, t) {
> if ("string" == typeof t) e.appendChild(document.createTextNode(t));
> else if (null == t);
> else if (null != t.nodeType) e.appendChild(t);
> else {
> if (!Array.isArray(t))
> throw new RangeError("Unsupported child node: " + t);
> for (var n = 0; n < t.length; n++) zv(e, t[n]);
> }
> }
> var qv =
> "function" == typeof String.prototype.normalize
> ? function (e) {
> return e.normalize("NFKD");
> }
> : function (e) {
> return e;
> },
> Uv = (function () {
> function e(e, t, n, i, r, o) {
> void 0 === n && (n = 0),
> void 0 === i && (i = e.length),
> (this.test = o),
> (this.value = { from: 0, to: 0 }),
> (this.done = !1),
> (this.matches = []),
> (this.buffer = ""),
> (this.bufferPos = 0),
> (this.iter = e.iterRange(n, i)),
> (this.bufferStart = n),
> (this.normalize = r
> ? function (e) {
> return r(qv(e));
> }
> : qv),
> (this.query = this.normalize(t));
> }
> return (
> (e.prototype.peek = function () {
> if (this.bufferPos == this.buffer.length) {
> if (
> ((this.bufferStart += this.buffer.length),
> this.iter.next(),
> this.iter.done)
> )
> return -1;
> (this.bufferPos = 0), (this.buffer = this.iter.value);
> }
> return Wi(this.buffer, this.bufferPos);
> }),
> (e.prototype.next = function () {
> for (; this.matches.length; ) this.matches.pop();
> return this.nextOverlapping();
> }),
> (e.prototype.nextOverlapping = function () {
> for (;;) {
> var e = this.peek();
> if (e < 0) return (this.done = !0), this;
> var t = _i(e),
> n = this.bufferStart + this.bufferPos;
> this.bufferPos += ji(e);
> for (var i = this.normalize(t), r = 0, o = n; ; r++) {
> var a = i.charCodeAt(r),
> s = this.match(a, o);
> if (r == i.length - 1) {
> if (s) return (this.value = s), this;
> break;
> }
> o == n && r < t.length && t.charCodeAt(r) == a && o++;
> }
> }
> }),
> (e.prototype.match = function (e, t) {
> for (var n = null, i = 0; i < this.matches.length; i += 2) {
> var r = this.matches[i],
> o = !1;
> this.query.charCodeAt(r) == e &&
> (r == this.query.length - 1
> ? (n = { from: this.matches[i + 1], to: t + 1 })
> : (this.matches[i]++, (o = !0))),
> o || (this.matches.splice(i, 2), (i -= 2));
> }
> return (
> this.query.charCodeAt(0) == e &&
> (1 == this.query.length
> ? (n = { from: t, to: t + 1 })
> : this.matches.push(1, t)),
> n &&
> this.test &&
> !this.test(n.from, n.to, this.buffer, this.bufferPos) &&
> (n = null),
> n
35930,36003c38618,39675
< const cf = {
< accessibility: [
< [1, 16, 4, 1],
< [6, "m18 19 1-7-6 1"],
< [6, "m5 8 3-3 5.5 3-2.36 3.5"],
< [6, "M4.24 14.5a5 5 0 0 0 6.88 6"],
< [6, "M13.76 17.5a5 5 0 0 0-6.88-6"],
< ],
< activity: [[2, "22 12 18 12 15 21 9 3 6 12 2 12"]],
< "air-vent": [
< [
< 6,
< "M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",
< ],
< [6, "M6 8h12"],
< [6, "M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12"],
< [6, "M6.6 15.6A2 2 0 1 0 10 17v-5"],
< ],
< airplay: [
< [
< 6,
< "M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",
< ],
< [3, "12 15 17 21 7 21 12 15"],
< ],
< "alarm-check": [
< [1, 12, 13, 8],
< [6, "M5 3 2 6"],
< [6, "m22 6-3-3"],
< [6, "M6.38 18.7 4 21"],
< [6, "M17.64 18.67 20 21"],
< [6, "m9 13 2 2 4-4"],
< ],
< "alarm-clock-off": [
< [6, "M6.87 6.87a8 8 0 1 0 11.26 11.26"],
< [6, "M19.9 14.25a8 8 0 0 0-9.15-9.15"],
< [6, "m22 6-3-3"],
< [6, "M6.26 18.67 4 21"],
< [6, "m2 2 20 20"],
< [6, "M4 4 2 6"],
< ],
< "alarm-clock": [
< [1, 12, 13, 8],
< [6, "M12 9v4l2 2"],
< [6, "M5 3 2 6"],
< [6, "m22 6-3-3"],
< [6, "M6.38 18.7 4 21"],
< [6, "M17.64 18.67 20 21"],
< ],
< "alarm-minus": [
< [1, 12, 13, 8],
< [6, "M5 3 2 6"],
< [6, "m22 6-3-3"],
< [6, "M6.38 18.7 4 21"],
< [6, "M17.64 18.67 20 21"],
< [6, "M9 13h6"],
< ],
< "alarm-plus": [
< [1, 12, 13, 8],
< [6, "M5 3 2 6"],
< [6, "m22 6-3-3"],
< [6, "M6.38 18.7 4 21"],
< [6, "M17.64 18.67 20 21"],
< [6, "M12 10v6"],
< [6, "M9 13h6"],
< ],
< album: [
< [5, 3, 3, 18, 18, 2, 2],
< [2, "11 3 11 11 14 8 17 11 17 3"],
< ],
< "alert-circle": [
< [1, 12, 12, 10],
< [0, 12, 8, 12, 12],
< [0, 12, 16, 12.01, 16],
---
> "undefined" != typeof Symbol &&
> (Uv.prototype[Symbol.iterator] = function () {
> return this;
> });
> var Wv = { from: -1, to: -1, match: /.*/.exec("") },
> _v = "gm" + (null == /x/.unicode ? "" : "u"),
> jv = (function () {
> function e(e, t, n, i, r) {
> if (
> (void 0 === i && (i = 0),
> void 0 === r && (r = e.length),
> (this.text = e),
> (this.to = r),
> (this.curLine = ""),
> (this.done = !1),
> (this.value = Wv),
> /\\[sWDnr]|\n|\r|\[\^/.test(t))
> )
> return new Yv(e, t, n, i, r);
> (this.re = new RegExp(
> t,
> _v + ((null == n ? void 0 : n.ignoreCase) ? "i" : "")
> )),
> (this.test = null == n ? void 0 : n.test),
> (this.iter = e.iter());
> var o = e.lineAt(i);
> (this.curLineStart = o.from),
> (this.matchPos = Xv(e, i)),
> this.getLine(this.curLineStart);
> }
> return (
> (e.prototype.getLine = function (e) {
> this.iter.next(e),
> this.iter.lineBreak
> ? (this.curLine = "")
> : ((this.curLine = this.iter.value),
> this.curLineStart + this.curLine.length > this.to &&
> (this.curLine = this.curLine.slice(
> 0,
> this.to - this.curLineStart
> )),
> this.iter.next());
> }),
> (e.prototype.nextLine = function () {
> (this.curLineStart = this.curLineStart + this.curLine.length + 1),
> this.curLineStart > this.to
> ? (this.curLine = "")
> : this.getLine(0);
> }),
> (e.prototype.next = function () {
> for (var e = this.matchPos - this.curLineStart; ; ) {
> this.re.lastIndex = e;
> var t = this.matchPos <= this.to && this.re.exec(this.curLine);
> if (t) {
> var n = this.curLineStart + t.index,
> i = n + t[0].length;
> if (
> ((this.matchPos = Xv(this.text, i + (n == i ? 1 : 0))),
> n == this.curLineStart + this.curLine.length &&
> this.nextLine(),
> (n < i || n > this.value.to) &&
> (!this.test || this.test(n, i, t)))
> )
> return (this.value = { from: n, to: i, match: t }), this;
> e = this.matchPos - this.curLineStart;
> } else {
> if (!(this.curLineStart + this.curLine.length < this.to))
> return (this.done = !0), this;
> this.nextLine(), (e = 0);
> }
> }
> }),
> e
> );
> })(),
> Gv = new WeakMap(),
> Kv = (function () {
> function e(e, t) {
> (this.from = e), (this.text = t);
> }
> return (
> Object.defineProperty(e.prototype, "to", {
> get: function () {
> return this.from + this.text.length;
> },
> enumerable: !1,
> configurable: !0,
> }),
> (e.get = function (t, n, i) {
> var r = Gv.get(t);
> if (!r || r.from >= i || r.to <= n) {
> var o = new e(n, t.sliceString(n, i));
> return Gv.set(t, o), o;
> }
> if (r.from == n && r.to == i) return r;
> var a = r.text,
> s = r.from;
> return (
> s > n && ((a = t.sliceString(n, s) + a), (s = n)),
> r.to < i && (a += t.sliceString(r.to, i)),
> Gv.set(t, new e(s, a)),
> new e(n, a.slice(n - s, i - s))
> );
> }),
> e
> );
> })(),
> Yv = (function () {
> function e(e, t, n, i, r) {
> (this.text = e),
> (this.to = r),
> (this.done = !1),
> (this.value = Wv),
> (this.matchPos = Xv(e, i)),
> (this.re = new RegExp(
> t,
> _v + ((null == n ? void 0 : n.ignoreCase) ? "i" : "")
> )),
> (this.test = null == n ? void 0 : n.test),
> (this.flat = Kv.get(e, i, this.chunkEnd(i + 5e3)));
> }
> return (
> (e.prototype.chunkEnd = function (e) {
> return e >= this.to ? this.to : this.text.lineAt(e).to;
> }),
> (e.prototype.next = function () {
> for (;;) {
> var e = (this.re.lastIndex = this.matchPos - this.flat.from),
> t = this.re.exec(this.flat.text);
> if (
> (t &&
> !t[0] &&
> t.index == e &&
> ((this.re.lastIndex = e + 1),
> (t = this.re.exec(this.flat.text))),
> t)
> ) {
> var n = this.flat.from + t.index,
> i = n + t[0].length;
> if (
> (this.flat.to >= this.to ||
> t.index + t[0].length <= this.flat.text.length - 10) &&
> (!this.test || this.test(n, i, t))
> )
> return (
> (this.value = { from: n, to: i, match: t }),
> (this.matchPos = Xv(this.text, i + (n == i ? 1 : 0))),
> this
> );
> }
> if (this.flat.to == this.to) return (this.done = !0), this;
> this.flat = Kv.get(
> this.text,
> this.flat.from,
> this.chunkEnd(this.flat.from + 2 * this.flat.text.length)
> );
> }
> }),
> e
> );
> })();
> function Xv(e, t) {
> if (t >= e.length) return t;
> for (
> var n, i = e.lineAt(t);
> t < i.to && (n = i.text.charCodeAt(t - i.from)) >= 56320 && n < 57344;
>
> )
> t++;
> return t;
> }
> function $v(e) {
> var t = Vv("input", { class: "cm-textfield", name: "line" });
> function n() {
> var n = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);
> if (n) {
> var i = e.state,
> r = i.doc.lineAt(i.selection.main.head),
> o = n[1],
> a = n[2],
> s = n[3],
> l = n[4],
> c = s ? +s.slice(1) : 0,
> u = a ? +a : r.number;
> if (a && l) {
> var h = u / 100;
> o && (h = h * ("-" == o ? -1 : 1) + r.number / i.doc.lines),
> (u = Math.round(i.doc.lines * h));
> } else a && o && (u = u * ("-" == o ? -1 : 1) + r.number);
> var p = i.doc.line(Math.max(1, Math.min(i.doc.lines, u))),
> d = ir.cursor(p.from + Math.max(0, Math.min(c, p.length)));
> e.dispatch({
> effects: [Zv.of(!1), dc.scrollIntoView(d.from, { y: "center" })],
> selection: d,
> }),
> e.focus();
> }
> }
> return {
> dom: Vv(
> "form",
> {
> class: "cm-gotoLine",
> onkeydown: function (t) {
> 27 == t.keyCode
> ? (t.preventDefault(),
> e.dispatch({ effects: Zv.of(!1) }),
> e.focus())
> : 13 == t.keyCode && (t.preventDefault(), n());
> },
> onsubmit: function (e) {
> e.preventDefault(), n();
> },
> },
> Vv("label", e.state.phrase("Go to line"), ": ", t),
> " ",
> Vv(
> "button",
> { class: "cm-button", type: "submit" },
> e.state.phrase("go")
> )
> ),
> };
> }
> "undefined" != typeof Symbol &&
> (jv.prototype[Symbol.iterator] = Yv.prototype[Symbol.iterator] =
> function () {
> return this;
> });
> var Zv = Br.define(),
> Qv = pr.define({
> create: function () {
> return !0;
> },
> update: function (e, t) {
> for (var n = 0, i = t.effects; n < i.length; n++) {
> var r = i[n];
> r.is(Zv) && (e = r.value);
> }
> return e;
> },
> provide: function (e) {
> return Gu.from(e, function (e) {
> return e ? $v : null;
> });
> },
> }),
> Jv = function (e) {
> var t = Uu(e, $v);
> if (!t) {
> var n = [Zv.of(!0)];
> null == e.state.field(Qv, !1) &&
> n.push(Br.appendConfig.of([Qv, ey])),
> e.dispatch({ effects: n }),
> (t = Uu(e, $v));
> }
> return t && t.dom.querySelector("input").focus(), !0;
> },
> ey = dc.baseTheme({
> ".cm-panel.cm-gotoLine": {
> padding: "2px 6px 4px",
> "& label": { fontSize: "80%" },
> },
> }),
> ty = {
> highlightWordAroundCursor: !1,
> minSelectionLength: 1,
> maxMatches: 100,
> wholeWords: !1,
> },
> ny = ar.define({
> combine: function (e) {
> return Yr(e, ty, {
> highlightWordAroundCursor: function (e, t) {
> return e || t;
> },
> minSelectionLength: Math.min,
> maxMatches: Math.min,
> });
> },
> });
> function iy(e) {
> var t = [ly, sy];
> return e && t.push(ny.of(e)), t;
> }
> var ry = Pa.mark({ class: "cm-selectionMatch" }),
> oy = Pa.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
> function ay(e, t, n, i) {
> return !(
> (0 != n && e(t.sliceDoc(n - 1, n)) == _r.Word) ||
> (i != t.doc.length && e(t.sliceDoc(i, i + 1)) == _r.Word)
> );
> }
> var sy = is.fromClass(
> (function () {
> function e(e) {
> this.decorations = this.getDeco(e);
> }
> return (
> (e.prototype.update = function (e) {
> (e.selectionSet || e.docChanged || e.viewportChanged) &&
> (this.decorations = this.getDeco(e.view));
> }),
> (e.prototype.getDeco = function (e) {
> var t = e.state.facet(ny),
> n = e.state,
> i = n.selection;
> if (i.ranges.length > 1) return Pa.none;
> var r,
> o = i.main,
> a = null;
> if (o.empty) {
> if (!t.highlightWordAroundCursor) return Pa.none;
> var s = n.wordAt(o.head);
> if (!s) return Pa.none;
> (a = n.charCategorizer(o.head)),
> (r = n.sliceDoc(s.from, s.to));
> } else {
> var l = o.to - o.from;
> if (l < t.minSelectionLength || l > 200) return Pa.none;
> if (t.wholeWords) {
> if (
> ((r = n.sliceDoc(o.from, o.to)),
> !ay((a = n.charCategorizer(o.head)), n, o.from, o.to) ||
> !(function (e, t, n, i) {
> return (
> e(t.sliceDoc(n, n + 1)) == _r.Word &&
> e(t.sliceDoc(i - 1, i)) == _r.Word
> );
> })(a, n, o.from, o.to))
> )
> return Pa.none;
> } else if (!(r = n.sliceDoc(o.from, o.to).trim()))
> return Pa.none;
> }
> for (var c = [], u = 0, h = e.visibleRanges; u < h.length; u++)
> for (
> var p = h[u], d = new Uv(n.doc, r, p.from, p.to);
> !d.next().done;
>
> ) {
> var f = d.value,
> m = f.from,
> g = f.to;
> if (
> (!a || ay(a, n, m, g)) &&
> (o.empty && m <= o.from && g >= o.to
> ? c.push(oy.range(m, g))
> : (m >= o.to || g <= o.from) && c.push(ry.range(m, g)),
> c.length > t.maxMatches)
> )
> return Pa.none;
> }
> return Pa.set(c);
> }),
> e
> );
> })(),
> {
> decorations: function (e) {
> return e.decorations;
> },
> }
> ),
> ly = dc.baseTheme({
> ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
> ".cm-searchMatch .cm-selectionMatch": {
> backgroundColor: "transparent",
> },
> });
> var cy = function (e) {
> var t = e.state,
> n = e.dispatch,
> i = t.selection.ranges;
> if (
> i.some(function (e) {
> return e.from === e.to;
> })
> )
> return (function (e) {
> var t = e.state,
> n = e.dispatch,
> i = t.selection,
> r = ir.create(
> i.ranges.map(function (e) {
> return t.wordAt(e.head) || ir.cursor(e.head);
> }),
> i.mainIndex
> );
> return !r.eq(i) && (n(t.update({ selection: r })), !0);
> })({ state: t, dispatch: n });
> var r = t.sliceDoc(i[0].from, i[0].to);
> if (
> t.selection.ranges.some(function (e) {
> return t.sliceDoc(e.from, e.to) != r;
> })
> )
> return !1;
> var o = (function (e, t) {
> for (
> var n,
> i,
> r = e.selection,
> o = r.main,
> a = r.ranges,
> s = e.wordAt(o.head),
> l = s && s.from == o.from && s.to == o.to,
> c = function (r, o) {
> if ((o.next(), !o.done)) {
> if (
> r &&
> a.some(function (e) {
> return e.from == o.value.from;
> })
> )
> return (n = r), (i = o), "continue";
> if (l) {
> var s = e.wordAt(o.value.from);
> if (!s || s.from != o.value.from || s.to != o.value.to)
> return (n = r), (i = o), "continue";
> }
> return { value: o.value };
> }
> if (r) return { value: null };
> (o = new Uv(
> e.doc,
> t,
> 0,
> Math.max(0, a[a.length - 1].from - 1)
> )),
> (n = r = !0),
> (i = o);
> },
> u = !1,
> h = new Uv(e.doc, t, a[a.length - 1].to);
> ;
>
> ) {
> var p = c(u, h);
> if (((u = n), (h = i), "object" == typeof p)) return p.value;
> }
> })(t, r);
> return (
> !!o &&
> (n(
> t.update({
> selection: t.selection.addRange(ir.range(o.from, o.to), !1),
> effects: dc.scrollIntoView(o.to),
> })
> ),
> !0)
> );
> },
> uy = ar.define({
> combine: function (e) {
> return Yr(e, {
> top: !1,
> caseSensitive: !1,
> literal: !1,
> regexp: !1,
> wholeWord: !1,
> createPanel: function (e) {
> return new Wy(e);
> },
> scrollToMatch: function (e) {
> return dc.scrollIntoView(e);
> },
> });
> },
> });
> function hy(e) {
> return e ? [uy.of(e), Yy] : Yy;
> }
> var py = (function () {
> function e(e) {
> (this.search = e.search),
> (this.caseSensitive = !!e.caseSensitive),
> (this.literal = !!e.literal),
> (this.regexp = !!e.regexp),
> (this.replace = e.replace || ""),
> (this.valid =
> !!this.search &&
> (!this.regexp ||
> (function (e) {
> try {
> return new RegExp(e, _v), !0;
> } catch (e) {
> return !1;
> }
> })(this.search))),
> (this.unquoted = this.unquote(this.search)),
> (this.wholeWord = !!e.wholeWord);
> }
> return (
> (e.prototype.unquote = function (e) {
> return this.literal
> ? e
> : e.replace(/\\([nrt\\])/g, function (e, t) {
> return "n" == t
> ? "\n"
> : "r" == t
> ? "\r"
> : "t" == t
> ? "\t"
> : "\\";
> });
> }),
> (e.prototype.eq = function (e) {
> return (
> this.search == e.search &&
> this.replace == e.replace &&
> this.caseSensitive == e.caseSensitive &&
> this.regexp == e.regexp &&
> this.wholeWord == e.wholeWord
> );
> }),
> (e.prototype.create = function () {
> return this.regexp ? new by(this) : new my(this);
> }),
> (e.prototype.getCursor = function (e, t, n) {
> void 0 === t && (t = 0);
> var i = e.doc ? e : Kr.create({ doc: e });
> return (
> null == n && (n = i.doc.length),
> this.regexp ? gy(this, i, t, n) : fy(this, i, t, n)
> );
> }),
> e
> );
> })(),
> dy = function (e) {
> this.spec = e;
> };
> function fy(e, t, n, i) {
> return new Uv(
> t.doc,
> e.unquoted,
> n,
> i,
> e.caseSensitive
> ? void 0
> : function (e) {
> return e.toLowerCase();
> },
> e.wholeWord
> ? (function (e, t) {
> return function (n, i, r, o) {
> return (
> (o > n || o + r.length < i) &&
> ((o = Math.max(0, n - 2)),
> (r = e.sliceString(o, Math.min(e.length, i + 2)))),
> !(
> (t(vy(r, n - o)) == _r.Word &&
> t(yy(r, n - o)) == _r.Word) ||
> (t(yy(r, i - o)) == _r.Word && t(vy(r, i - o)) == _r.Word)
> )
> );
> };
> })(t.doc, t.charCategorizer(t.selection.main.head))
> : void 0
> );
> }
> var my = (function (e) {
> function t(t) {
> return e.call(this, t) || this;
> }
> return (
> f(t, e),
> (t.prototype.nextMatch = function (e, t, n) {
> var i = fy(this.spec, e, n, e.doc.length).nextOverlapping();
> return (
> i.done && (i = fy(this.spec, e, 0, t).nextOverlapping()),
> i.done ? null : i.value
> );
> }),
> (t.prototype.prevMatchInRange = function (e, t, n) {
> for (var i = n; ; ) {
> for (
> var r = Math.max(t, i - 1e4 - this.spec.unquoted.length),
> o = fy(this.spec, e, r, i),
> a = null;
> !o.nextOverlapping().done;
>
> )
> a = o.value;
> if (a) return a;
> if (r == t) return null;
> i -= 1e4;
> }
> }),
> (t.prototype.prevMatch = function (e, t, n) {
> return (
> this.prevMatchInRange(e, 0, t) ||
> this.prevMatchInRange(e, n, e.doc.length)
> );
> }),
> (t.prototype.getReplacement = function (e) {
> return this.spec.unquote(this.spec.replace);
> }),
> (t.prototype.matchAll = function (e, t) {
> for (
> var n = fy(this.spec, e, 0, e.doc.length), i = [];
> !n.next().done;
>
> ) {
> if (i.length >= t) return null;
> i.push(n.value);
> }
> return i;
> }),
> (t.prototype.highlight = function (e, t, n, i) {
> for (
> var r = fy(
> this.spec,
> e,
> Math.max(0, t - this.spec.unquoted.length),
> Math.min(n + this.spec.unquoted.length, e.doc.length)
> );
> !r.next().done;
>
> )
> i(r.value.from, r.value.to);
> }),
> t
> );
> })(dy);
> function gy(e, t, n, i) {
> return new jv(
> t.doc,
> e.search,
> {
> ignoreCase: !e.caseSensitive,
> test: e.wholeWord
> ? ((r = t.charCategorizer(t.selection.main.head)),
> function (e, t, n) {
> return (
> !n[0].length ||
> ((r(vy(n.input, n.index)) != _r.Word ||
> r(yy(n.input, n.index)) != _r.Word) &&
> (r(yy(n.input, n.index + n[0].length)) != _r.Word ||
> r(vy(n.input, n.index + n[0].length)) != _r.Word))
> );
> })
> : void 0,
> },
> n,
> i
> );
> var r;
> }
> function vy(e, t) {
> return e.slice(Hi(e, t, !1), t);
> }
> function yy(e, t) {
> return e.slice(t, Hi(e, t));
> }
> var by = (function (e) {
> function t() {
> return (null !== e && e.apply(this, arguments)) || this;
> }
> return (
> f(t, e),
> (t.prototype.nextMatch = function (e, t, n) {
> var i = gy(this.spec, e, n, e.doc.length).next();
> return (
> i.done && (i = gy(this.spec, e, 0, t).next()),
> i.done ? null : i.value
> );
> }),
> (t.prototype.prevMatchInRange = function (e, t, n) {
> for (var i = 1; ; i++) {
> for (
> var r = Math.max(t, n - 1e4 * i),
> o = gy(this.spec, e, r, n),
> a = null;
> !o.next().done;
>
> )
> a = o.value;
> if (a && (r == t || a.from > r + 10)) return a;
> if (r == t) return null;
> }
> }),
> (t.prototype.prevMatch = function (e, t, n) {
> return (
> this.prevMatchInRange(e, 0, t) ||
> this.prevMatchInRange(e, n, e.doc.length)
> );
> }),
> (t.prototype.getReplacement = function (e) {
> return this.spec.unquote(
> this.spec.replace.replace(/\$([$&\d+])/g, function (t, n) {
> return "$" == n
> ? "$"
> : "&" == n
> ? e.match[0]
> : "0" != n && +n < e.match.length
> ? e.match[n]
> : t;
> })
> );
> }),
> (t.prototype.matchAll = function (e, t) {
> for (
> var n = gy(this.spec, e, 0, e.doc.length), i = [];
> !n.next().done;
>
> ) {
> if (i.length >= t) return null;
> i.push(n.value);
> }
> return i;
> }),
> (t.prototype.highlight = function (e, t, n, i) {
> for (
> var r = gy(
> this.spec,
> e,
> Math.max(0, t - 250),
> Math.min(n + 250, e.doc.length)
> );
> !r.next().done;
>
> )
> i(r.value.from, r.value.to);
> }),
> t
> );
> })(dy),
> wy = Br.define(),
> ky = Br.define(),
> Cy = pr.define({
> create: function (e) {
> return new Sy(Ry(e).create(), null);
> },
> update: function (e, t) {
> for (var n = 0, i = t.effects; n < i.length; n++) {
> var r = i[n];
> r.is(wy)
> ? (e = new Sy(r.value.create(), e.panel))
> : r.is(ky) && (e = new Sy(e.query, r.value ? Ny : null));
> }
> return e;
> },
> provide: function (e) {
> return Gu.from(e, function (e) {
> return e.panel;
> });
> },
> });
> function Ey(e) {
> var t = e.field(Cy, !1);
> return t ? t.query.spec : Ry(e);
> }
> function xy(e) {
> var t;
> return (
> null !=
> (null === (t = e.field(Cy, !1)) || void 0 === t ? void 0 : t.panel)
> );
> }
> var Sy = function (e, t) {
> (this.query = e), (this.panel = t);
> },
> My = Pa.mark({ class: "cm-searchMatch" }),
> Ty = Pa.mark({ class: "cm-searchMatch cm-searchMatch-selected" }),
> Dy = is.fromClass(
> (function () {
> function e(e) {
> (this.view = e),
> (this.decorations = this.highlight(e.state.field(Cy)));
> }
> return (
> (e.prototype.update = function (e) {
> var t = e.state.field(Cy);
> (t != e.startState.field(Cy) ||
> e.docChanged ||
> e.selectionSet ||
> e.viewportChanged) &&
> (this.decorations = this.highlight(t));
> }),
> (e.prototype.highlight = function (e) {
> var t = e.query;
> if (!e.panel || !t.spec.valid) return Pa.none;
> for (
> var n = this.view,
> i = new eo(),
> r = 0,
> o = n.visibleRanges,
> a = o.length;
> r < a;
> r++
> ) {
> for (
> var s = o[r], l = s.from, c = s.to;
> r < a - 1 && c > o[r + 1].from - 500;
>
> )
> c = o[++r].to;
> t.highlight(n.state, l, c, function (e, t) {
> var r = n.state.selection.ranges.some(function (n) {
> return n.from == e && n.to == t;
> });
> i.add(e, t, r ? Ty : My);
> });
> }
> return i.finish();
> }),
> e
> );
> })(),
> {
> decorations: function (e) {
> return e.decorations;
> },
> }
> );
> function Ay(e) {
> return function (t) {
> var n = t.state.field(Cy, !1);
> return n && n.query.spec.valid ? e(t, n) : zy(t);
> };
> }
> var Ly = Ay(function (e, t) {
> var n = t.query,
> i = e.state.selection.main.to,
> r = n.nextMatch(e.state, i, i);
> if (!r) return !1;
> var o = ir.single(r.from, r.to),
> a = e.state.facet(uy);
> return (
> e.dispatch({
> selection: o,
> effects: [Gy(e, r), a.scrollToMatch(o.main, e)],
> userEvent: "select.search",
> }),
> Vy(e),
> !0
> );
> }),
> Py = Ay(function (e, t) {
> var n = t.query,
> i = e.state,
> r = i.selection.main.from,
> o = n.prevMatch(i, r, r);
> if (!o) return !1;
> var a = ir.single(o.from, o.to),
> s = e.state.facet(uy);
> return (
> e.dispatch({
> selection: a,
> effects: [Gy(e, o), s.scrollToMatch(a.main, e)],
> userEvent: "select.search",
> }),
> Vy(e),
> !0
> );
> }),
> Iy = Ay(function (e, t) {
> var n = t.query.matchAll(e.state, 1e3);
> return (
> !(!n || !n.length) &&
> (e.dispatch({
> selection: ir.create(
> n.map(function (e) {
> return ir.range(e.from, e.to);
> })
> ),
> userEvent: "select.search.matches",
> }),
> !0)
> );
> }),
> Oy = function (e) {
> var t = e.state,
> n = e.dispatch,
> i = t.selection;
> if (i.ranges.length > 1 || i.main.empty) return !1;
> for (
> var r = i.main,
> o = r.from,
> a = r.to,
> s = [],
> l = 0,
> c = new Uv(t.doc, t.sliceDoc(o, a));
> !c.next().done;
>
> ) {
> if (s.length > 1e3) return !1;
> c.value.from == o && (l = s.length),
> s.push(ir.range(c.value.from, c.value.to));
> }
> return (
> n(
> t.update({
> selection: ir.create(s, l),
> userEvent: "select.search.matches",
> })
> ),
> !0
> );
> },
> Fy = Ay(function (e, t) {
> var n = t.query,
> i = e.state,
> r = i.selection.main,
> o = r.from,
> a = r.to;
> if (i.readOnly) return !1;
> var s = n.nextMatch(i, o, o);
> if (!s) return !1;
> var l,
> c,
> u = [],
> h = [];
> if (
> (s.from == o &&
> s.to == a &&
> ((c = i.toText(n.getReplacement(s))),
> u.push({ from: s.from, to: s.to, insert: c }),
> (s = n.nextMatch(i, s.from, s.to)),
> h.push(
> dc.announce.of(
> i.phrase("replaced match on line $", i.doc.lineAt(o).number) +
> "."
> )
> )),
> s)
> ) {
> var p =
> 0 == u.length || u[0].from >= s.to ? 0 : s.to - s.from - c.length;
> (l = ir.single(s.from - p, s.to - p)),
> h.push(Gy(e, s)),
> h.push(i.facet(uy).scrollToMatch(l.main, e));
> }
> return (
> e.dispatch({
> changes: u,
> selection: l,
> effects: h,
> userEvent: "input.replace",
> }),
> !0
> );
> }),
> By = Ay(function (e, t) {
> var n = t.query;
> if (e.state.readOnly) return !1;
> var i = n.matchAll(e.state, 1e9).map(function (e) {
> return { from: e.from, to: e.to, insert: n.getReplacement(e) };
> });
> if (!i.length) return !1;
> var r = e.state.phrase("replaced $ matches", i.length) + ".";
> return (
> e.dispatch({
> changes: i,
> effects: dc.announce.of(r),
> userEvent: "input.replace.all",
> }),
> !0
> );
> });
> function Ny(e) {
> return e.state.facet(uy).createPanel(e);
> }
> function Ry(e, t) {
> var n,
> i,
> r,
> o,
> a,
> s = e.selection.main,
> l = s.empty || s.to > s.from + 100 ? "" : e.sliceDoc(s.from, s.to);
> if (t && !l) return t;
> var c = e.facet(uy);
> return new py({
> search: (
> null !== (n = null == t ? void 0 : t.literal) && void 0 !== n
> ? n
> : c.literal
> )
> ? l
> : l.replace(/\n/g, "\\n"),
> caseSensitive:
> null !== (i = null == t ? void 0 : t.caseSensitive) && void 0 !== i
> ? i
> : c.caseSensitive,
> literal:
> null !== (r = null == t ? void 0 : t.literal) && void 0 !== r
> ? r
> : c.literal,
> regexp:
> null !== (o = null == t ? void 0 : t.regexp) && void 0 !== o
> ? o
> : c.regexp,
> wholeWord:
> null !== (a = null == t ? void 0 : t.wholeWord) && void 0 !== a
> ? a
> : c.wholeWord,
> });
> }
> function Hy(e) {
> var t = Uu(e, Ny);
> return t && t.dom.querySelector("[main-field]");
> }
> function Vy(e) {
> var t = Hy(e);
> t && t == e.root.activeElement && t.select();
> }
> var zy = function (e) {
> var t = e.state.field(Cy, !1);
> if (t && t.panel) {
> var n = Hy(e);
> if (n && n != e.root.activeElement) {
> var i = Ry(e.state, t.query.spec);
> i.valid && e.dispatch({ effects: wy.of(i) }),
> n.focus(),
> n.select();
> }
> } else
> e.dispatch({
> effects: [
> ky.of(!0),
> t ? wy.of(Ry(e.state, t.query.spec)) : Br.appendConfig.of(Yy),
> ],
> });
> return !0;
> },
> qy = function (e) {
> var t = e.state.field(Cy, !1);
> if (!t || !t.panel) return !1;
> var n = Uu(e, Ny);
> return (
> n && n.dom.contains(e.root.activeElement) && e.focus(),
> e.dispatch({ effects: ky.of(!1) }),
> !0
> );
> },
> Uy = [
> { key: "Mod-f", run: zy, scope: "editor search-panel" },
> {
> key: "F3",
> run: Ly,
> shift: Py,
> scope: "editor search-panel",
> preventDefault: !0,
> },
> {
> key: "Mod-g",
> run: Ly,
> shift: Py,
> scope: "editor search-panel",
> preventDefault: !0,
> },
> { key: "Escape", run: qy, scope: "editor search-panel" },
> { key: "Mod-Shift-l", run: Oy },
> { key: "Alt-g", run: Jv },
> { key: "Mod-d", run: cy, preventDefault: !0 },
36005,36011c39677,40099
< "alert-octagon": [
< [
< 3,
< "7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",
< ],
< [0, 12, 8, 12, 12],
< [0, 12, 16, 12.01, 16],
---
> Wy = (function () {
> function e(e) {
> var t = this;
> this.view = e;
> var n = (this.query = e.state.field(Cy).query.spec);
> function i(e, t, n) {
> return Vv(
> "button",
> { class: "cm-button", name: e, onclick: t, type: "button" },
> n
> );
> }
> (this.commit = this.commit.bind(this)),
> (this.searchField = Vv("input", {
> value: n.search,
> placeholder: _y(e, "Find"),
> "aria-label": _y(e, "Find"),
> class: "cm-textfield",
> name: "search",
> form: "",
> "main-field": "true",
> onchange: this.commit,
> onkeyup: this.commit,
> })),
> (this.replaceField = Vv("input", {
> value: n.replace,
> placeholder: _y(e, "Replace"),
> "aria-label": _y(e, "Replace"),
> class: "cm-textfield",
> name: "replace",
> form: "",
> onchange: this.commit,
> onkeyup: this.commit,
> })),
> (this.caseField = Vv("input", {
> type: "checkbox",
> name: "case",
> form: "",
> checked: n.caseSensitive,
> onchange: this.commit,
> })),
> (this.reField = Vv("input", {
> type: "checkbox",
> name: "re",
> form: "",
> checked: n.regexp,
> onchange: this.commit,
> })),
> (this.wordField = Vv("input", {
> type: "checkbox",
> name: "word",
> form: "",
> checked: n.wholeWord,
> onchange: this.commit,
> })),
> (this.dom = Vv(
> "div",
> {
> onkeydown: function (e) {
> return t.keydown(e);
> },
> class: "cm-search",
> },
> w(
> w(
> [
> this.searchField,
> i(
> "next",
> function () {
> return Ly(e);
> },
> [_y(e, "next")]
> ),
> i(
> "prev",
> function () {
> return Py(e);
> },
> [_y(e, "previous")]
> ),
> i(
> "select",
> function () {
> return Iy(e);
> },
> [_y(e, "all")]
> ),
> Vv("label", null, [this.caseField, _y(e, "match case")]),
> Vv("label", null, [this.reField, _y(e, "regexp")]),
> Vv("label", null, [this.wordField, _y(e, "by word")]),
> ],
> e.state.readOnly
> ? []
> : [
> Vv("br"),
> this.replaceField,
> i(
> "replace",
> function () {
> return Fy(e);
> },
> [_y(e, "replace")]
> ),
> i(
> "replaceAll",
> function () {
> return By(e);
> },
> [_y(e, "replace all")]
> ),
> ],
> !0
> ),
> [
> Vv(
> "button",
> {
> name: "close",
> onclick: function () {
> return qy(e);
> },
> "aria-label": _y(e, "close"),
> type: "button",
> },
> ["×"]
> ),
> ],
> !1
> )
> ));
> }
> return (
> (e.prototype.commit = function () {
> var e = new py({
> search: this.searchField.value,
> caseSensitive: this.caseField.checked,
> regexp: this.reField.checked,
> wholeWord: this.wordField.checked,
> replace: this.replaceField.value,
> });
> e.eq(this.query) ||
> ((this.query = e), this.view.dispatch({ effects: wy.of(e) }));
> }),
> (e.prototype.keydown = function (e) {
> xc(this.view, e, "search-panel")
> ? e.preventDefault()
> : 13 == e.keyCode && e.target == this.searchField
> ? (e.preventDefault(), (e.shiftKey ? Py : Ly)(this.view))
> : 13 == e.keyCode &&
> e.target == this.replaceField &&
> (e.preventDefault(), Fy(this.view));
> }),
> (e.prototype.update = function (e) {
> for (var t = 0, n = e.transactions; t < n.length; t++)
> for (var i = 0, r = n[t].effects; i < r.length; i++) {
> var o = r[i];
> o.is(wy) && !o.value.eq(this.query) && this.setQuery(o.value);
> }
> }),
> (e.prototype.setQuery = function (e) {
> (this.query = e),
> (this.searchField.value = e.search),
> (this.replaceField.value = e.replace),
> (this.caseField.checked = e.caseSensitive),
> (this.reField.checked = e.regexp),
> (this.wordField.checked = e.wholeWord);
> }),
> (e.prototype.mount = function () {
> this.searchField.select();
> }),
> Object.defineProperty(e.prototype, "pos", {
> get: function () {
> return 80;
> },
> enumerable: !1,
> configurable: !0,
> }),
> Object.defineProperty(e.prototype, "top", {
> get: function () {
> return this.view.state.facet(uy).top;
> },
> enumerable: !1,
> configurable: !0,
> }),
> e
> );
> })();
> function _y(e, t) {
> return e.state.phrase(t);
> }
> var jy = /[\s\.,:;?!]/;
> function Gy(e, t) {
> var n = t.from,
> i = t.to,
> r = e.state.doc.lineAt(n),
> o = e.state.doc.lineAt(i).to,
> a = Math.max(r.from, n - 30),
> s = Math.min(o, i + 30),
> l = e.state.sliceDoc(a, s);
> if (a != r.from)
> for (var c = 0; c < 30; c++)
> if (!jy.test(l[c + 1]) && jy.test(l[c])) {
> l = l.slice(c);
> break;
> }
> if (s != o)
> for (c = l.length - 1; c > l.length - 30; c--)
> if (!jy.test(l[c - 1]) && jy.test(l[c])) {
> l = l.slice(0, c);
> break;
> }
> return dc.announce.of(
> ""
> .concat(e.state.phrase("current match"), ". ")
> .concat(l, " ")
> .concat(e.state.phrase("on line"), " ")
> .concat(r.number, ".")
> );
> }
> var Ky = dc.baseTheme({
> ".cm-panel.cm-search": {
> padding: "2px 6px 4px",
> position: "relative",
> "& [name=close]": {
> position: "absolute",
> top: "0",
> right: "4px",
> backgroundColor: "inherit",
> border: "none",
> font: "inherit",
> padding: 0,
> margin: 0,
> },
> "& input, & button, & label": { margin: ".2em .6em .2em 0" },
> "& input[type=checkbox]": { marginRight: ".2em" },
> "& label": { fontSize: "80%", whiteSpace: "pre" },
> },
> "&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
> "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
> "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
> "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" },
> }),
> Yy = [Cy, yr.lowest(Dy), Ky],
> Xy = new window.TurndownService({
> headingStyle: "atx",
> hr: "---",
> bulletListMarker: "-",
> codeBlockStyle: "fenced",
> fence: "```",
> linkStyle: "inlined",
> });
> Xy.remove(["script", "style", "title"]),
> Xy.addRule("strikethrough", {
> filter: ["del", "s"],
> replacement: function (e) {
> return "~~" + e + "~~";
> },
> }),
> Xy.addRule("highlight", {
> filter: ["mark"],
> replacement: function (e) {
> return "==" + e + "==";
> },
> });
> var $y = /highlight-(?:text|source)-([a-z0-9]+)/;
> Xy.addRule("highlightedCodeBlock", {
> filter: function (e) {
> var t = e.firstChild;
> return (
> "DIV" === e.nodeName &&
> $y.test(e.className) &&
> t &&
> "PRE" === t.nodeName
> );
> },
> replacement: function (e, t, n) {
> var i = ((t.className || "").match($y) || [null, ""])[1];
> return (
> "\n\n" +
> n.fence +
> i +
> "\n" +
> t.firstChild.textContent +
> "\n" +
> n.fence +
> "\n\n"
> );
> },
> }),
> Xy.addRule("listItem", {
> filter: "li",
> replacement: function (e, t, n) {
> e = e
> .replace(/^\n+/, "")
> .replace(/\n+$/, "\n")
> .replace(/\n/gm, "\n ");
> var i = n.bulletListMarker + " ",
> r = t.parentNode;
> if ("OL" === r.nodeName) {
> var o = r.getAttr("start"),
> a = Array.prototype.indexOf.call(r.children, t);
> i = (o ? Number(o) + a : a + 1) + ". ";
> }
> return i + e + (t.nextSibling && !/\n$/.test(e) ? "\n" : "");
> },
> }),
> Xy.addRule("taskListItems", {
> filter: function (e) {
> return (
> e.instanceOf(HTMLInputElement) &&
> "checkbox" === e.type &&
> "LI" === e.parentNode.nodeName
> );
> },
> replacement: function (e, t) {
> return t.checked ? "[x] " : "[ ] ";
> },
> }),
> Xy.addRule("tableCell", {
> filter: ["th", "td"],
> replacement: function (e, t) {
> return (
> (0 === Array.prototype.indexOf.call(t.parentNode.childNodes, t)
> ? "|"
> : "") +
> (function (e) {
> return (
> (e = e
> .trim()
> .replace(/\|+/g, "\\|")
> .replace(/\n\r?/g, "<br>")) + "|"
> );
> })(e) +
> eb(t, " |")
> );
> },
> });
> var Zy = { left: ":--", right: "--:", center: ":-:" };
> function Qy(e) {
> if (!e) return !1;
> var t,
> n,
> i = e.parentNode;
> return (
> "THEAD" === i.nodeName ||
> (i.firstChild === e &&
> ("TABLE" === i.nodeName ||
> ((n = (t = i).previousSibling),
> "TBODY" === t.nodeName &&
> (!n ||
> ("THEAD" === n.nodeName && /^\s*$/i.test(n.textContent))))) &&
> Array.prototype.every.call(e.childNodes, function (e) {
> return "TH" === e.nodeName;
> }))
> );
> }
> function Jy(e) {
> var t = e.getAttribute("colspan");
> if (!t) return 0;
> var n = parseInt(t);
> return isNaN(n) ? 0 : Math.max(0, n - 1);
> }
> function eb(e, t) {
> return t.repeat(Jy(e));
> }
> function tb(e) {
> return Xy.turndown(e);
> }
> Xy.addRule("tableRow", {
> filter: "tr",
> replacement: function (e, t) {
> var n = "";
> if (Qy(t))
> for (var i = 0; i < t.cells.length; i++) {
> var r = t.cells[i],
> o = (r.getAttribute("align") || "").toLowerCase(),
> a = Zy[o] || "---";
> n += (0 === i ? "|" : "") + a + "|" + eb(r, a + "|");
> }
> return "\n" + e + (n ? "\n" + n : "");
> },
> }),
> Xy.addRule("table", {
> filter: "table",
> replacement: function (e, t) {
> var n = t.rows[0];
> if (!Qy(n)) {
> for (var i = n.cells.length, r = 0; r < n.cells.length; r++)
> i += Jy(n.cells[r]);
> e =
> "|" +
> " |".repeat(i) +
> "\n|" +
> "---|".repeat(i) +
> "\n" +
> e.replace(/^[\r\n]+/, "");
> }
> return "\n\n" + (e = e.replace(/[\r\n]+/g, "\n")) + "\n\n";
> },
> }),
> Xy.addRule("tableSection", {
> filter: ["thead", "tbody", "tfoot"],
> replacement: function (e) {
> return e;
> },
> }),
> (Xy.escape = function (e) {
> return e;
> });
> var nb = [
> "accentColor",
> "theme",
> "cssTheme",
> "enabledCssSnippets",
> "showViewHeader",
> "nativeMenus",
> "translucency",
> "textFontFamily",
> "interfaceFontFamily",
> "monospaceFontFamily",
> "baseFontSize",
> "baseFontSizeAction",
36013,36016c40101,40168
< "alert-triangle": [
< [
< 6,
< "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",
---
> ib = {
> alwaysUpdateLinks: !1,
> spellcheck: !0,
> spellcheckLanguages: null,
> readableLineLength: !0,
> strictLineBreaks: !1,
> propertiesInDocument: "visible",
> showInlineTitle: !0,
> showViewHeader: !0,
> mobileQuickRibbonItem: "",
> useMarkdownLinks: !1,
> showUnsupportedFiles: !1,
> autoPairBrackets: !0,
> autoPairMarkdown: !0,
> smartIndentList: !0,
> foldHeading: !0,
> foldIndent: !0,
> showLineNumber: !1,
> showIndentGuide: !0,
> useTab: !0,
> tabSize: 4,
> rightToLeft: !1,
> autoConvertHtml: !0,
> vimMode: !1,
> emacsyKeys: !0,
> legacyEditor: !1,
> livePreview: !0,
> nativeMenus: null,
> attachmentFolderPath: "/",
> newFileLocation: "root",
> newFileFolderPath: "/",
> newLinkFormat: "shortest",
> userIgnoreFilters: null,
> fileSortOrder: "alphabetical",
> focusNewTab: !0,
> defaultViewMode: "source",
> promptDelete: !0,
> trashOption: "system",
> pdfExportSettings: {
> pageSize: "Letter",
> landscape: !1,
> margin: "0",
> downscalePercent: 100,
> },
> mobilePullAction: "command-palette:open",
> mobileToolbarCommands: [
> "editor:insert-wikilink",
> "editor:insert-embed",
> "editor:insert-tag",
> "editor:attach-file",
> "editor:set-heading",
> "editor:toggle-bold",
> "editor:toggle-italics",
> "editor:toggle-strikethrough",
> "editor:toggle-highlight",
> "editor:toggle-code",
> "editor:toggle-blockquote",
> "editor:toggle-comment",
> "editor:insert-link",
> "editor:toggle-bullet-list",
> "editor:toggle-numbered-list",
> "editor:toggle-checklist-status",
> "editor:indent-list",
> "editor:unindent-list",
> "editor:undo",
> "editor:redo",
> "editor:toggle-keyboard",
> "editor:configure-toolbar",
36018,36060c40170,41662
< [0, 12, 9, 12, 13],
< [0, 12, 17, 12.01, 17],
< ],
< "align-center-horizontal": [
< [6, "M2 12h20"],
< [6, "M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4"],
< [6, "M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4"],
< [6, "M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1"],
< [6, "M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1"],
< ],
< "align-center-vertical": [
< [6, "M12 2v20"],
< [6, "M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4"],
< [6, "M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4"],
< [6, "M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1"],
< [6, "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"],
< ],
< "align-center": [
< [0, 21, 6, 3, 6],
< [0, 17, 12, 7, 12],
< [0, 19, 18, 5, 18],
< ],
< "align-end-horizontal": [
< [5, 4, 2, 6, 16, 2],
< [5, 14, 9, 6, 9, 2],
< [6, "M22 22H2"],
< ],
< "align-end-vertical": [
< [5, 2, 4, 16, 6, 2],
< [5, 9, 14, 9, 6, 2],
< [6, "M22 22V2"],
< ],
< "align-horizontal-distribute-center": [
< [5, 4, 5, 6, 14, 2],
< [5, 14, 7, 6, 10, 2],
< [6, "M17 22v-5"],
< [6, "M17 7V2"],
< [6, "M7 22v-3"],
< [6, "M7 5V2"],
< ],
< "align-horizontal-distribute-end": [
< [5, 4, 5, 6, 14, 2],
< [5, 14, 7, 6, 10, 2],
---
> hotkeys: {},
> theme: "obsidian",
> accentColor: "",
> cssTheme: "",
> enabledCssSnippets: [],
> translucency: !1,
> textFontFamily: "",
> interfaceFontFamily: "",
> monospaceFontFamily: "",
> baseFontSize: 16,
> baseFontSizeAction: !0,
> types: {},
> },
> rb = (function () {
> function e() {
> this._ = {};
> }
> return (
> (e.prototype.on = function (e, t, n) {
> var i = this._,
> r = i[e];
> r || (i[e] = r = []);
> var o = { e: this, name: e, fn: t, ctx: n };
> return r.push(o), o;
> }),
> (e.prototype.off = function (e, t) {
> var n = this._,
> i = n[e],
> r = [];
> if (i && t)
> for (var o = 0; o < i.length; o++)
> i[o].fn !== t && r.push(i[o]);
> r.length > 0 ? (n[e] = r) : delete n[e];
> }),
> (e.prototype.offref = function (e) {
> if (e) {
> var t = e.name,
> n = this._,
> i = n[t],
> r = [];
> if (i && e)
> for (var o = 0; o < i.length; o++) i[o] !== e && r.push(i[o]);
> r.length ? (n[t] = r) : delete n[t];
> }
> }),
> (e.prototype.trigger = function (e) {
> for (var t = [], n = 1; n < arguments.length; n++)
> t[n - 1] = arguments[n];
> var i = this._,
> r = i[e];
> if (r) {
> r = r.slice();
> for (var o = 0; o < r.length; o++) this.tryTrigger(r[o], t);
> }
> }),
> (e.prototype.tryTrigger = function (e, t) {
> try {
> e.fn.apply(e.ctx, t);
> } catch (e) {
> setTimeout(function () {
> throw e;
> }, 0);
> }
> }),
> e
> );
> })(),
> ob = "#^[]|",
> ab = Ie ? '*"\\/<>:|?' : "\\/:" + (Ne ? '*?<>"' : ""),
> sb = ab.split("").join(" "),
> lb = ob.split("").join(" "),
> cb = new RegExp("[" + Ft(ab) + "]"),
> ub = new RegExp("[" + Ft(ob) + "]"),
> hb = /^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i;
> function pb(e) {
> try {
> return db(e), !0;
> } catch (e) {
> return !1;
> }
> }
> function db(e) {
> if (Ie) {
> var t = e.charAt(e.length - 1);
> if ("." === t || " " === t)
> throw new Error("File names cannot end with a dot or a space.");
> var n = be(e);
> if (hb.test(n)) throw new Error("File name is forbidden: " + n);
> }
> if (
> e.split("/").some(function (e) {
> return cb.test(e);
> })
> )
> throw new Error(
> "File name cannot contain any of the following characters: " + sb
> );
> }
> var fb = ".obsidian",
> mb = (function () {
> function e(e, t) {
> (this.parent = null),
> (this.deleted = !1),
> (this.vault = e),
> this.setPath(t);
> }
> return (
> (e.prototype.setPath = function (e) {
> (this.path = e), (this.name = ge(e));
> }),
> (e.prototype.getNewPathAfterRename = function (e) {
> return (
> (e = e.replace(/[\x00-\x1F]/g, " ").trim()),
> this.parent
> ? this.parent.isRoot()
> ? e
> : this.parent.path + "/" + e
> : ""
> );
> }),
> e
> );
> })(),
> gb = new WeakMap(),
> vb = (function (e) {
> function t(t, n) {
> var i = e.call(this, t, n) || this;
> return (i.saving = !1), (i.stat = null), i;
> }
> return (
> f(t, e),
> (t.prototype.setPath = function (t) {
> e.prototype.setPath.call(this, t),
> (this.basename = be(this.name)),
> (this.extension = ke(this.name));
> }),
> (t.prototype.getShortName = function () {
> return "md" === this.extension ? this.basename : this.name;
> }),
> (t.prototype.getNewPathAfterRename = function (t) {
> return e.prototype.getNewPathAfterRename.call(
> this,
> Ce(t, this.extension)
> );
> }),
> (t.prototype.cache = function (e) {
> if (null != e) {
> var t = this.vault.cacheLimit;
> e.length <= t ? gb.set(this, e) : gb.delete(this);
> } else gb.delete(this);
> }),
> (t.prototype.updateCacheLimit = function () {
> var e = this.vault.cacheLimit;
> gb.has(this) && gb.get(this).length > e && gb.delete(this);
> }),
> t
> );
> })(mb),
> yb = (function (e) {
> function t(t, n) {
> var i = e.call(this, t, n) || this;
> return (i.children = []), i;
> }
> return (
> f(t, e),
> (t.prototype.isRoot = function () {
> return "/" === this.path;
> }),
> (t.prototype.getParentPrefix = function () {
> return this.isRoot() ? "" : this.path + "/";
> }),
> (t.prototype.getFileCount = function () {
> for (var e = 0, n = 0, i = this.children; n < i.length; n++) {
> var r = i[n];
> e += r instanceof t ? r.getFileCount() : 1;
> }
> return e;
> }),
> (t.prototype.getFolderCount = function () {
> for (var e = 0, n = 0, i = this.children; n < i.length; n++) {
> var r = i[n];
> r instanceof t && (e += 1 + r.getFolderCount());
> }
> return e;
> }),
> t
> );
> })(mb),
> bb = (function (e) {
> function t(t) {
> var n = e.call(this) || this;
> return (
> (n.fileMap = {}),
> (n.config = {}),
> (n.configTs = 0),
> (n.configDir = fb),
> (n.requestSaveConfig = et(n.saveConfig.bind(n), 1e3, !0)),
> (n.cacheLimit = 65536),
> (n.reloadConfig = et(
> function () {
> return v(n, void 0, void 0, function () {
> var e, t, n, i, r, o, a, s, l;
> return y(this, function (c) {
> switch (c.label) {
> case 0:
> (e = this.getConfigFile("app")),
> (t = this.getConfigFile("appearance")),
> (n = !1),
> (c.label = 1);
> case 1:
> return (
> c.trys.push([1, 3, , 4]), [4, this.adapter.stat(e)]
> );
> case 2:
> return (
> c.sent().mtime > this.configTs && (n = !0), [3, 4]
> );
> case 3:
> return c.sent(), (n = !0), [3, 4];
> case 4:
> return (
> c.trys.push([4, 6, , 7]), [4, this.adapter.stat(t)]
> );
> case 5:
> return (
> c.sent().mtime > this.configTs && (n = !0), [3, 7]
> );
> case 6:
> return c.sent(), (n = !0), [3, 7];
> case 7:
> return n
> ? ((this.configTs = Date.now()),
> [4, this.readConfigJson("app")])
> : [2];
> case 8:
> return (
> (i = c.sent()),
> [4, this.readConfigJson("appearance")]
> );
> case 9:
> for (l in ((r = c.sent()),
> (o = Object.assign({}, r, i)),
> (a = this.config),
> (s = !1),
> o))
> o.hasOwnProperty(l) &&
> ((a.hasOwnProperty(l) &&
> JSON.stringify(a[l]) ===
> JSON.stringify(o[l])) ||
> ((a[l] = o[l]), (s = !0)));
> for (l in a)
> a.hasOwnProperty(l) &&
> !o.hasOwnProperty(l) &&
> (delete a[l], (s = !0));
> return s && this.trigger("config-changed"), [2];
> }
> });
> });
> },
> 500,
> !0
> )),
> (n.adapter = t),
> (n.root = new yb(n, "")),
> n.onChange("folder-created", "/"),
> (n.root = n.fileMap["/"]),
> n
> );
> }
> return (
> f(t, e),
> (t.prototype.getName = function () {
> return this.adapter.getName();
> }),
> (t.prototype.setFileCacheLimit = function (e) {
> this.cacheLimit = e;
> var t = this.fileMap;
> for (var n in t)
> if (t.hasOwnProperty(n)) {
> var i = t[n];
> i instanceof vb && i.updateCacheLimit();
> }
> }),
> (t.validateConfigDir = function (e) {
> return "." !== e && e.startsWith(".") && !cb.test(e);
> }),
> (t.prototype.setConfigDir = function (e) {
> t.validateConfigDir(e) || (e = fb), (this.configDir = e);
> }),
> (t.prototype.setupConfig = function () {
> return v(this, void 0, void 0, function () {
> var e, t, n, i, r, o, a, s, l, c, u;
> return y(this, function (h) {
> switch (h.label) {
> case 0:
> return (
> (t = (e = this).adapter),
> (n = e.configDir),
> [4, t.exists(n)]
> );
> case 1:
> return h.sent() ? [3, 3] : [4, t.mkdir(n)];
> case 2:
> h.sent(), (h.label = 3);
> case 3:
> return (
> (this.configTs = Date.now()),
> (i = null),
> [4, this.readConfigJson("app")]
> );
> case 4:
> return (
> (r = h.sent()), [4, this.readConfigJson("appearance")]
> );
> case 5:
> return (
> (o = h.sent()),
> r ? [3, 7] : [4, this.readJson(n + "/config")]
> );
> case 6:
> (i = h.sent()), (h.label = 7);
> case 7:
> for (l in ((a = this.config = Object.assign({}, i, o, r)),
> (s = { editorFontFamily: "textFontFamily" })))
> s.hasOwnProperty(l) &&
> a.hasOwnProperty(l) &&
> ((c = s[l]),
> (u = a[l]),
> delete a[l],
> !a.hasOwnProperty(c) && u && (a[c] = u));
> return i ? [4, this.saveConfig()] : [3, 12];
> case 8:
> h.sent(), (h.label = 9);
> case 9:
> return (
> h.trys.push([9, 11, , 12]),
> [4, this.adapter.remove(n + "/config")]
> );
> case 10:
> return h.sent(), [3, 12];
> case 11:
> return h.sent(), [3, 12];
> case 12:
> return this.requestSaveConfig(), [2];
> }
> });
> });
> }),
> (t.prototype.saveConfig = function () {
> return v(this, void 0, void 0, function () {
> var e, t, n, i, r, o, a, s;
> return y(this, function (l) {
> switch (l.label) {
> case 0:
> return (
> (t = (e = this).adapter),
> (n = e.configDir),
> [4, t.exists(n)]
> );
> case 1:
> return l.sent() ? [3, 3] : [4, t.mkdir(n)];
> case 2:
> l.sent(), (l.label = 3);
> case 3:
> for (a in ((i = this.config), (r = {}), (o = {}), i))
> (s = a),
> i.hasOwnProperty(s) &&
> (nb.contains(s) ? (o[s] = i[s]) : (r[s] = i[s]));
> return [4, this.writeConfigJson("app", r)];
> case 4:
> return (
> l.sent(), [4, this.writeConfigJson("appearance", o)]
> );
> case 5:
> return l.sent(), (this.configTs = Date.now()), [2];
> }
> });
> });
> }),
> (t.prototype.getConfig = function (e) {
> var t = this.config[e];
> return void 0 === t ? ib[e] : t;
> }),
> (t.prototype.setConfig = function (e, t) {
> void 0 !== t ? (this.config[e] = t) : delete this.config[e],
> this.requestSaveConfig(),
> this.trigger("config-changed");
> }),
> (t.prototype.readPluginData = function (e) {
> var t = xe(e + "/data.json");
> return this.readJson(t);
> }),
> (t.prototype.writePluginData = function (e, t) {
> var n = xe(e + "/data.json");
> return this.writeJson(n, t, !0);
> }),
> (t.prototype.getConfigFile = function (e) {
> return this.configDir + "/" + e + ".json";
> }),
> (t.prototype.readConfigJson = function (e) {
> return this.readJson(this.getConfigFile(e));
> }),
> (t.prototype.writeConfigJson = function (e, t) {
> return this.writeJson(this.getConfigFile(e), t, !0);
> }),
> (t.prototype.deleteConfigJson = function (e) {
> var t = xe(this.configDir + "/" + e + ".json");
> return this.adapter.remove(t);
> }),
> (t.prototype.readJson = function (e) {
> return v(this, void 0, Promise, function () {
> var t, n, i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> (t = xe(e)), (o.label = 1);
> case 1:
> return (
> o.trys.push([1, 3, , 4]),
> (i = (n = JSON).parse),
> [4, this.adapter.read(t)]
> );
> case 2:
> return [2, i.apply(n, [o.sent()])];
> case 3:
> return "ENOENT" === (r = o.sent()).code
> ? [2, null]
> : (console.error(r), [3, 4]);
> case 4:
> return [2, void 0];
> }
> });
> });
> }),
> (t.prototype.writeJson = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i;
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> (i = xe(e)), (r.label = 1);
> case 1:
> return (
> r.trys.push([1, 3, , 4]),
> [
> 4,
> this.adapter.write(
> i,
> JSON.stringify(t, void 0, n ? 2 : void 0)
> ),
> ]
> );
> case 2:
> return r.sent(), [3, 4];
> case 3:
> return r.sent(), [3, 4];
> case 4:
> return [2];
> }
> });
> });
> }),
> (t.prototype.load = function () {
> return v(this, void 0, Promise, function () {
> return y(this, function (e) {
> switch (e.label) {
> case 0:
> return [4, this.adapter.watch(this.onChange.bind(this))];
> case 1:
> return (
> e.sent(),
> this.adapter instanceof pf
> ? [
> 4,
> this.adapter.watchHiddenRecursive(this.configDir),
> ]
> : [3, 3]
> );
> case 2:
> e.sent(), (e.label = 3);
> case 3:
> return [2];
> }
> });
> });
> }),
> (t.prototype.getAbstractFileByPath = function (e) {
> return this.fileMap.hasOwnProperty(e) ? this.fileMap[e] : null;
> }),
> (t.prototype.getAbstractFileByPathInsensitive = function (e) {
> var t = this.fileMap;
> if (t.hasOwnProperty(e)) return t[e];
> var n = e.toLowerCase();
> for (var i in t)
> if (
> t.hasOwnProperty(i) &&
> i.length === n.length &&
> i.toLowerCase() === n
> )
> return t[i];
> return null;
> }),
> (t.prototype.isEmpty = function () {
> return 1 === Object.keys(this.fileMap).length;
> }),
> (t.prototype.getRoot = function () {
> return this.root;
> }),
> (t.prototype.checkForDuplicate = function (e, t) {
> var n = e.getNewPathAfterRename(t),
> i = this.fileMap[n];
> return i && i !== e;
> }),
> (t.prototype.checkPath = function (e) {
> db(e);
> }),
> (t.prototype.onChange = function (e, t, n, i) {
> if ("folder-created" === e) {
> var r = new yb(this, t);
> (this.fileMap[t] = r),
> this.addChild(r),
> this.trigger("create", this.fileMap[t]);
> } else if ("file-created" === e) {
> var o = new vb(this, t);
> (o.stat = i),
> (this.fileMap[t] = o),
> this.addChild(o),
> this.trigger("create", this.fileMap[t]);
> } else if ("modified" === e) {
> if (!this.fileMap.hasOwnProperty(t)) return;
> (a = this.fileMap[t]) instanceof vb &&
> ((a.stat = i), a.saving || a.cache(null)),
> this.trigger("modify", a);
> } else if ("file-removed" === e || "folder-removed" === e) {
> if (this.fileMap.hasOwnProperty(t)) {
> var a = this.fileMap[t];
> this.removeChild(a),
> delete this.fileMap[t],
> (a.deleted = !0),
> this.trigger("delete", a);
> }
> } else if ("renamed" === e) {
> if (this.fileMap.hasOwnProperty(n)) {
> var s = this.fileMap[n];
> this.removeChild(s),
> s.setPath(t),
> this.addChild(s),
> (this.fileMap[t] = s),
> delete this.fileMap[n],
> this.trigger("rename", s, n);
> }
> } else
> "closed" === e
> ? this.trigger("closed")
> : "raw" === e &&
> (this.trigger("raw", t),
> t.startsWith(this.configDir + "/") &&
> this.adapter instanceof pf &&
> this.adapter.watchHiddenRecursive(t),
> (t !== this.getConfigFile("app") &&
> t !== this.getConfigFile("appearance")) ||
> this.reloadConfig());
> }),
> (t.prototype.getDirectParent = function (e) {
> var t = e.path,
> n = t.lastIndexOf("/");
> if (-1 === n) return this.fileMap["/"];
> var i = t.slice(0, n),
> r = this.fileMap[i];
> return r && r instanceof yb ? r : null;
> }),
> (t.prototype.addChild = function (e) {
> var t = e.parent,
> n = this.getDirectParent(e);
> n &&
> n !== t &&
> (t && t.children.remove(e), n.children.push(e), (e.parent = n));
> }),
> (t.prototype.removeChild = function (e) {
> var t = e.parent;
> t && (t.children.remove(e), (e.parent = null));
> }),
> (t.prototype.exists = function (e, t) {
> return v(this, void 0, Promise, function () {
> var n;
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return (n = xe(e)), [4, this.adapter.exists(n, t)];
> case 1:
> return [2, i.sent()];
> }
> });
> });
> }),
> (t.prototype.create = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> return (
> (i = xe(e)),
> this.checkPath(i),
> [4, this.adapter.exists(i)]
> );
> case 1:
> if (o.sent()) throw new Error("File already exists.");
> return [4, this.adapter.write(i, t, n)];
> case 2:
> return (
> o.sent(),
> (r = this.getAbstractFileByPath(i)) instanceof vb
> ? [2, r]
> : [2, null]
> );
> }
> });
> });
> }),
> (t.prototype.createBinary = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> return (
> (i = xe(e)),
> this.checkPath(i),
> [4, this.adapter.exists(i)]
> );
> case 1:
> if (o.sent()) throw new Error("File already exists.");
> return [4, this.adapter.writeBinary(i, t, n)];
> case 2:
> return (
> o.sent(),
> (r = this.getAbstractFileByPath(i)) instanceof vb
> ? [2, r]
> : [2, null]
> );
> }
> });
> });
> }),
> (t.prototype.createFolder = function (e) {
> return v(this, void 0, Promise, function () {
> var t, n;
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return (
> (t = xe(e)),
> this.checkPath(t),
> [4, this.adapter.exists(t)]
> );
> case 1:
> if (i.sent()) throw new Error("Folder already exists.");
> return [4, this.adapter.mkdir(t)];
> case 2:
> return (
> i.sent(),
> (n = this.getAbstractFileByPath(t)) instanceof yb
> ? [2, n]
> : [2, null]
> );
> }
> });
> });
> }),
> (t.prototype.read = function (e) {
> return v(this, void 0, Promise, function () {
> var t;
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [4, this.adapter.read(e.path)];
> case 1:
> return (
> 65279 === (t = n.sent()).charCodeAt(0) &&
> (t = t.substring(1)),
> e.cache(t),
> [2, t]
> );
> }
> });
> });
> }),
> (t.prototype.cachedRead = function (e) {
> return v(this, void 0, Promise, function () {
> return y(this, function (t) {
> return gb.has(e) ? [2, gb.get(e)] : [2, this.read(e)];
> });
> });
> }),
> (t.prototype.readBinary = function (e) {
> return v(this, void 0, Promise, function () {
> var t;
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return [4, this.adapter.readBinary(e.path)];
> case 1:
> t = n.sent();
> try {
> "md" === e.extension &&
> t.byteLength <= this.cacheLimit &&
> e.cache(new TextDecoder().decode(t));
> } catch (e) {}
> return [2, t];
> }
> });
> });
> }),
> (t.prototype.readRaw = function (e) {
> return v(this, void 0, Promise, function () {
> var t;
> return y(this, function (n) {
> return (t = xe(e)), [2, this.adapter.read(t)];
> });
> });
> }),
> (t.prototype.getResourcePath = function (e) {
> return this.adapter.getResourcePath(e.path);
> }),
> (t.prototype.delete = function (e, t) {
> return (
> void 0 === t && (t = !1),
> v(this, void 0, Promise, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return e
> ? e === this.root
> ? [2]
> : e instanceof vb
> ? [4, this.adapter.remove(e.path)]
> : [3, 2]
> : [3, 4];
> case 1:
> return n.sent(), [3, 4];
> case 2:
> return e instanceof yb
> ? [4, this.adapter.rmdir(e.path, t)]
> : [3, 4];
> case 3:
> n.sent(), (n.label = 4);
> case 4:
> return [2];
> }
> });
> })
> );
> }),
> (t.prototype.trash = function (e, t) {
> return v(this, void 0, void 0, function () {
> return y(this, function (n) {
> switch (n.label) {
> case 0:
> return e
> ? e === this.root
> ? [2]
> : t
> ? [4, this.adapter.trashSystem(e.path)]
> : [3, 2]
> : [2];
> case 1:
> if (n.sent()) return [2];
> n.label = 2;
> case 2:
> return [4, this.adapter.trashLocal(e.path)];
> case 3:
> return n.sent(), [2];
> }
> });
> });
> }),
> (t.prototype.rename = function (e, t) {
> return v(this, void 0, Promise, function () {
> var n;
> return y(this, function (i) {
> switch (i.label) {
> case 0:
> return (
> (n = xe(t)),
> e.path === n
> ? [2]
> : (this.checkPath(n),
> [4, this.adapter.rename(e.path, n)])
> );
> case 1:
> return i.sent(), [2];
> }
> });
> });
> }),
> (t.prototype.modify = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> (i = e.saving), (e.saving = !0), (o.label = 1);
> case 1:
> return (
> o.trys.push([1, 3, 4, 5]),
> ((n = n || {}).immediate = function () {
> return e.cache(t);
> }),
> [4, this.adapter.write(e.path, t, n)]
> );
> case 2:
> return o.sent(), [3, 5];
> case 3:
> throw ((r = o.sent()), e.cache(null), r);
> case 4:
> return (e.saving = i), [7];
> case 5:
> return [2];
> }
> });
> });
> }),
> (t.prototype.modifyBinary = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i;
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> (i = e.saving), (e.saving = !0), (r.label = 1);
> case 1:
> return (
> r.trys.push([1, , 3, 4]),
> ((n = n || {}).immediate = function () {
> return e.cache(null);
> }),
> [4, this.adapter.writeBinary(e.path, t, n)]
> );
> case 2:
> return r.sent(), [3, 4];
> case 3:
> return (e.saving = i), [7];
> case 4:
> return [2];
> }
> });
> });
> }),
> (t.prototype.append = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i;
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> (i = e.saving), (e.saving = !0), (r.label = 1);
> case 1:
> return (
> r.trys.push([1, , 3, 4]),
> ((n = n || {}).immediate = function () {
> return e.cache(null);
> }),
> [4, this.adapter.append(e.path, t, n)]
> );
> case 2:
> return r.sent(), [3, 4];
> case 3:
> return (e.saving = i), [7];
> case 4:
> return [2];
> }
> });
> });
> }),
> (t.prototype.process = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i, r;
> return y(this, function (o) {
> switch (o.label) {
> case 0:
> (i = e.saving), (e.saving = !0), (o.label = 1);
> case 1:
> return (
> o.trys.push([1, , 3, 4]),
> ((n = n || {}).immediate = function () {
> return e.cache(null);
> }),
> [4, this.adapter.process(e.path, t, n)]
> );
> case 2:
> return (r = o.sent()), e.cache(r), [2, r];
> case 3:
> return (e.saving = i), [7];
> case 4:
> return [2];
> }
> });
> });
> }),
> (t.prototype.copy = function (e, t) {
> return v(this, void 0, Promise, function () {
> var n, i;
> return y(this, function (r) {
> switch (r.label) {
> case 0:
> return (
> (n = (n = xe(t)).normalize("NFC")),
> this.checkPath(n),
> [4, this.adapter.copy(e.path, n)]
> );
> case 1:
> return (
> r.sent(),
> (i = this.getAbstractFileByPath(n)) instanceof vb
> ? [2, i]
> : [2, null]
> );
> }
> });
> });
> }),
> (t.prototype.getAllLoadedFiles = function () {
> var e = [];
> for (var t in this.fileMap)
> if (this.fileMap.hasOwnProperty(t)) {
> var n = this.fileMap[t];
> e.push(n);
> }
> return e;
> }),
> (t.prototype.getAvailablePath = function (e, t) {
> for (
> var n = 1, i = Ce(e, t);
> this.getAbstractFileByPathInsensitive(i);
>
> )
> (i = Ce(e + " " + n, t)), n++;
> return i;
> }),
> (t.prototype.getAvailablePathForAttachments = function (e, t, n) {
> return v(this, void 0, Promise, function () {
> var i, r, o, a;
> return y(this, function (s) {
> switch (s.label) {
> case 0:
> return (
> (i = this.getConfig("attachmentFolderPath")),
> (r = "." === i || "./" === i),
> (o = null),
> i.startsWith("./") && (o = i.slice(2)),
> r
> ? (i = n ? n.parent.path : "")
> : o &&
> (i = (n ? n.parent.getParentPrefix() : "") + o),
> (i = xe(i)),
> (a = this.getAbstractFileByPathInsensitive(i)) || !o
> ? [3, 2]
> : [4, this.createFolder(i)]
> );
> case 1:
> s.sent(),
> (a = this.getAbstractFileByPathInsensitive(i)),
> (s.label = 2);
> case 2:
> return a instanceof yb
> ? [2, this.getAvailablePath(a.getParentPrefix() + e, t)]
> : [2, this.getAvailablePath(e, t)];
> }
> });
> });
> }),
> (t.prototype.resolveFileUrl = function (e) {
> if (St.isDesktopApp) {
> e.startsWith(St.resourcePathPrefix) &&
> (e =
> "file:///" +
> e.substring(St.resourcePathPrefix.length).split("?")[0]);
> var t = jt("url");
> if (t && e.startsWith("file://")) {
> var n = t.fileURLToPath(e);
> return this.resolveFilePath(n);
> }
> }
> return null;
> }),
> (t.prototype.resolveFilePath = function (e) {
> var t = this.adapter;
> if (St.isDesktopApp && t instanceof pf) {
> var n = t.getBasePath();
> if (e.startsWith(n)) {
> var i = xe(e.substring(n.length)),
> r = this.getAbstractFileByPath(i);
> if (r instanceof vb) return r;
> }
> }
> return null;
> }),
> (t.recurseChildren = function (e, t) {
> for (var n = [e]; n.length > 0; ) {
> var i = n.pop();
> if (i && (t(i), i instanceof yb)) {
> var r = i.children;
> n = n.concat(r);
> }
> }
> }),
> (t.prototype.getMarkdownFiles = function () {
> var e = [],
> n = this.getRoot();
> return (
> t.recurseChildren(n, function (t) {
> t instanceof vb && "md" === t.extension && e.push(t);
> }),
> e
> );
> }),
> (t.prototype.getFiles = function () {
> var e = [],
> n = this.getRoot();
> return (
> t.recurseChildren(n, function (t) {
> t instanceof vb && e.push(t);
> }),
> e
> );
> }),
> (t.prototype.iterateFiles = function (e, t) {
> return C(this, arguments, function () {
> var n, i, r, o;
> return y(this, function (a) {
> switch (a.label) {
> case 0:
> (n = 0), (a.label = 1);
> case 1:
> return n < e.length
> ? ((i = e[n]),
> (r = ""),
> "md" !== i.extension
> ? [3, 6]
> : t
> ? [4, k(this.cachedRead(i))]
> : [3, 3])
> : [3, 10];
> case 2:
> return (o = a.sent()), [3, 5];
> case 3:
> return [4, k(this.read(i))];
> case 4:
> (o = a.sent()), (a.label = 5);
> case 5:
> (r = o), (a.label = 6);
> case 6:
> return [4, k({ file: i, content: r })];
> case 7:
> return [4, a.sent()];
> case 8:
> a.sent(), (a.label = 9);
> case 9:
> return n++, [3, 1];
> case 10:
> return [2];
> }
> });
> });
> }),
> (t.prototype.generateFiles = function (e, t) {
> return C(this, arguments, function () {
> var n, i, r, o, a, s, l, c;
> return y(this, function (u) {
> switch (u.label) {
> case 0:
> u.trys.push([0, 12, 13, 18]), (n = E(e)), (u.label = 1);
> case 1:
> return [4, k(n.next())];
> case 2:
> return (i = u.sent()).done
> ? [3, 11]
> : ((r = i.value),
> (o = ""),
> "md" !== r.extension && "canvas" !== r.extension
> ? [3, 7]
> : t
> ? [4, k(this.cachedRead(r))]
> : [3, 4]);
> case 3:
> return (a = u.sent()), [3, 6];
> case 4:
> return [4, k(this.read(r))];
> case 5:
> (a = u.sent()), (u.label = 6);
> case 6:
> (o = a), (u.label = 7);
> case 7:
> return [4, k({ file: r, content: o })];
> case 8:
> return [4, u.sent()];
> case 9:
> u.sent(), (u.label = 10);
> case 10:
> return [3, 1];
> case 11:
> return [3, 18];
> case 12:
> return (s = u.sent()), (l = { error: s }), [3, 18];
> case 13:
> return (
> u.trys.push([13, , 16, 17]),
> i && !i.done && (c = n.return)
> ? [4, k(c.call(n))]
> : [3, 15]
> );
> case 14:
> u.sent(), (u.label = 15);
> case 15:
> return [3, 17];
> case 16:
> if (l) throw l.error;
> return [7];
> case 17:
> return [7];
> case 18:
> return [2];
> }
> });
> });
> }),
> (t.prototype.trigger = function (t) {
> for (var n = [], i = 1; i < arguments.length; i++)
> n[i - 1] = arguments[i];
> e.prototype.trigger.apply(this, w([t], n, !1));
> }),
> (t.prototype.on = function (t, n, i) {
> return e.prototype.on.call(this, t, n, i);
> }),
> t
> );
> })(rb);
> function wb(e, t) {
> if (St.isMobile) {
> var n = [];
> e.addEventListener(
> "touchstart",
> function (i) {
> if (!(i.touches.length > 1)) {
> var r = i.touches[0];
> if ("stylus" !== r.touchType) {
> var o = r.clientX,
> a = r.clientY,
> s = document.elementFromPoint(o, a);
> if (!(s instanceof HTMLCanvasElement) && e.contains(s)) {
> var l = r.identifier,
> c = Date.now(),
> u = !1,
> h = "x",
> p = r.clientX,
> d = r.clientY,
> f = c,
> m = 0,
> g = 0;
> if (n.length > 0)
> for (var v = 0, y = n; v < y.length; v++) {
> y[v].cancel();
> }
> n = [];
> var b = function (e) {
> for (
> var t = e.changedTouches, n = 0;
> n < t.length;
> n++
> ) {
> var i = t[n];
> if (i.identifier === l) return i;
> }
> t = e.touches;
> for (n = 0; n < t.length; n++) {
> if (t[n].identifier === l) return null;
> }
> return E(), null;
> },
> w = function (e) {
> if (b(e) && (E(), 0 !== n.length)) {
> var t, i;
> "x" === h
> ? ((t = p - o), (i = m))
> : ((t = d - a), (i = g));
> for (
> var r = (i = 800 * i * window.devicePixelRatio) + t,
> s = 0,
> l = n;
> s < l.length;
> s++
> ) {
> l[s].finish(p, d, r);
> }
> n = [];
> }
> },
> k = function (e) {
> if (b(e) && (E(), 0 !== n.length)) {
> for (var t = 0, i = n; t < i.length; t++) {
> i[t].cancel();
> }
> n = [];
> }
> },
> C = function (e) {
> var i = b(e);
> if (i) {
> var r = i.clientX,
> l = i.clientY;
> if (!u) {
> if (Date.now() - c > 200) return void E();
> var v = Math.abs(r - o),
> y = Math.abs(l - a),
> w = Math.max(v, y);
> if (w < 10) return;
> u = !0;
> for (
> var k = s,
> C =
> "x" === (h = v === w ? "x" : "y")
> ? r - o
> : l - a;
> k;
>
> ) {
> var x =
> "x" === h
> ? k.scrollWidth - k.clientWidth
> : k.scrollHeight - k.clientHeight;
> if (x > 0) {
> var S = getComputedStyle(k),
> M = "x" === h ? S.overflowX : S.overflowY;
> if ("auto" === M || "scroll" === M) {
> var T =
> "x" === h ? k.scrollLeft : k.scrollTop;
> if ((C > 0 && T > 0) || (C < 0 && T < x - 1))
> return void E();
> }
> }
> k = k.parentElement;
> }
> if (window.getSelection().toString())
> return void E();
> t({
> evt: e,
> touch: i,
> points: e.touches.length,
> targetEl: s,
> startX: o,
> startY: a,
> x: r,
> y: l,
> direction: h,
> registerCallback: function (e) {
> return n.push(e);
> },
> });
> }
> if (0 !== n.length) {
> e.preventDefault();
> var D = Date.now(),
> A = D - f,
> L = 1 - 0.8;
> (m = 0.8 * m + ((r - p) / A) * L),
> (g = 0.8 * g + ((l - d) / A) * L),
> (p = r),
> (d = l),
> (f = D);
> for (var P = 0, I = n; P < I.length; P++) {
> I[P].move(r, l);
> }
> } else E();
> }
> },
> E = function () {
> window.removeEventListener("touchcancel", k),
> window.removeEventListener("touchend", w),
> window.removeEventListener("touchmove", C);
> };
> window.addEventListener("touchcancel", k),
> window.addEventListener("touchend", w),
> window.addEventListener("touchmove", C, { passive: !1 });
> }
> }
> }
> },
> { passive: !1 }
> );
> }
> }
> var kb = [];
> function Cb(e) {
> kb.contains(e) || kb.push(e);
> }
> function Eb(e) {
> kb.contains(e) && kb.remove(e);
> }
> var xb = (function () {
> function e() {
> (this._loaded = !1), (this._events = []), (this._children = []);
> }
> return (
> (e.prototype.load = function () {
> if (!this._loaded) {
> (this._loaded = !0), this.onload();
> for (var e = 0, t = this._children.slice(); e < t.length; e++) {
> t[e].load();
> }
> }
> }),
> (e.prototype.onload = function () {}),
> (e.prototype.unload = function () {
> if (this._loaded) {
> this._loaded = !1;
> for (var e = this._children, t = this._events; e.length > 0; ) {
> e.pop().unload();
> }
> for (; t.length > 0; ) {
> t.pop()();
> }
> this.onunload();
> }
> }),
> (e.prototype.onunload = function () {}),
> (e.prototype.addChild = function (e) {
> return this._children.push(e), this._loaded && e.load(), e;
> }),
> (e.prototype.removeChild = function (e) {
> var t = this._children,
> n = t.indexOf(e);
> return -1 !== n && (t.splice(n, 1), e.unload()), e;
> }),
> (e.prototype.register = function (e) {
> this._events.push(e);
> }),
> (e.prototype.registerEvent = function (e) {
> this.register(function () {
> return e.e.offref(e);
> });
> }),
> (e.prototype.registerDomEvent = function (e, t, n, i) {
> e.addEventListener(t, n, i),
> this.register(function () {
> return e.removeEventListener(t, n, i);
> });
> }),
> (e.prototype.registerScopeEvent = function (e) {
> this.register(function () {
> return e.scope.unregister(e);
> });
> }),
> (e.prototype.registerInterval = function (e) {
> return (
> this.register(function () {
> return clearInterval(e);
> }),
> e
> );
> }),
> e
> );
> })();
> const Sb = {
> accessibility: [
> [1, 16, 4, 1],
> [6, "m18 19 1-7-6 1"],
> [6, "m5 8 3-3 5.5 3-2.36 3.5"],
> [6, "M4.24 14.5a5 5 0 0 0 6.88 6"],
> [6, "M13.76 17.5a5 5 0 0 0-6.88-6"],
> ],
> activity: [[2, "22 12 18 12 15 21 9 3 6 12 2 12"]],
> "air-vent": [
> [
> 6,
> "M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",
> ],
> [6, "M6 8h12"],
> [6, "M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12"],
> [6, "M6.6 15.6A2 2 0 1 0 10 17v-5"],
> ],
> airplay: [
> [
> 6,
> "M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",
> ],
> [3, "12 15 17 21 7 21 12 15"],
> ],
> "alarm-check": [
> [1, 12, 13, 8],
> [6, "M5 3 2 6"],
> [6, "m22 6-3-3"],
> [6, "M6.38 18.7 4 21"],
> [6, "M17.64 18.67 20 21"],
> [6, "m9 13 2 2 4-4"],
> ],
> "alarm-clock-off": [
> [6, "M6.87 6.87a8 8 0 1 0 11.26 11.26"],
> [6, "M19.9 14.25a8 8 0 0 0-9.15-9.15"],
> [6, "m22 6-3-3"],
> [6, "M6.26 18.67 4 21"],
> [6, "m2 2 20 20"],
> [6, "M4 4 2 6"],
> ],
> "alarm-clock": [
> [1, 12, 13, 8],
> [6, "M12 9v4l2 2"],
> [6, "M5 3 2 6"],
> [6, "m22 6-3-3"],
> [6, "M6.38 18.7 4 21"],
> [6, "M17.64 18.67 20 21"],
> ],
> "alarm-minus": [
> [1, 12, 13, 8],
> [6, "M5 3 2 6"],
> [6, "m22 6-3-3"],
> [6, "M6.38 18.7 4 21"],
> [6, "M17.64 18.67 20 21"],
> [6, "M9 13h6"],
> ],
> "alarm-plus": [
> [1, 12, 13, 8],
> [6, "M5 3 2 6"],
> [6, "m22 6-3-3"],
> [6, "M6.38 18.7 4 21"],
> [6, "M17.64 18.67 20 21"],
> [6, "M12 10v6"],
> [6, "M9 13h6"],
> ],
> album: [
> [5, 3, 3, 18, 18, 2, 2],
> [2, "11 3 11 11 14 8 17 11 17 3"],
> ],
> "alert-circle": [
> [1, 12, 12, 10],
> [0, 12, 8, 12, 12],
> [0, 12, 16, 12.01, 16],
> ],
> "alert-octagon": [
> [
> 3,
> "7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",
> ],
> [0, 12, 8, 12, 12],
> [0, 12, 16, 12.01, 16],
> ],
> "alert-triangle": [
> [
> 6,
> "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",
> ],
> [0, 12, 9, 12, 13],
> [0, 12, 17, 12.01, 17],
> ],
> "align-center-horizontal": [
> [6, "M2 12h20"],
> [6, "M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4"],
> [6, "M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4"],
> [6, "M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1"],
> [6, "M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1"],
> ],
> "align-center-vertical": [
> [6, "M12 2v20"],
> [6, "M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4"],
> [6, "M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4"],
> [6, "M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1"],
> [6, "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"],
> ],
> "align-center": [
> [0, 21, 6, 3, 6],
> [0, 17, 12, 7, 12],
> [0, 19, 18, 5, 18],
> ],
> "align-end-horizontal": [
> [5, 4, 2, 6, 16, 2],
> [5, 14, 9, 6, 9, 2],
> [6, "M22 22H2"],
> ],
> "align-end-vertical": [
> [5, 2, 4, 16, 6, 2],
> [5, 9, 14, 9, 6, 2],
> [6, "M22 22V2"],
> ],
> "align-horizontal-distribute-center": [
> [5, 4, 5, 6, 14, 2],
> [5, 14, 7, 6, 10, 2],
> [6, "M17 22v-5"],
> [6, "M17 7V2"],
> [6, "M7 22v-3"],
> [6, "M7 5V2"],
> ],
> "align-horizontal-distribute-end": [
> [5, 4, 5, 6, 14, 2],
> [5, 14, 7, 6, 10, 2],
42649c48251
< var uf = {
---
> var Mb = {
42660c48262
< function hf(e, t) {
---
> function Tb(e, t) {
42669c48271
< function pf(e) {
---
> function Db(e) {
42672,42675c48274,48277
< return hf("line", { x1: e[1], y1: e[2], x2: e[3], y2: e[4] });
< if (1 === t) return hf("circle", { cx: e[1], cy: e[2], r: e[3] });
< if (2 === t) return hf("polyline", { points: e[1] });
< if (3 === t) return hf("polygon", { points: e[1] });
---
> return Tb("line", { x1: e[1], y1: e[2], x2: e[3], y2: e[4] });
> if (1 === t) return Tb("circle", { cx: e[1], cy: e[2], r: e[3] });
> if (2 === t) return Tb("polyline", { points: e[1] });
> if (3 === t) return Tb("polygon", { points: e[1] });
42677c48279
< return hf("ellipse", { cx: e[1], cy: e[2], rx: e[3], ry: e[4] });
---
> return Tb("ellipse", { cx: e[1], cy: e[2], rx: e[3], ry: e[4] });
42684c48286
< hf("rect", n)
---
> Tb("rect", n)
42687c48289
< return 6 === t ? hf("path", { d: e[1] }) : void 0;
---
> return 6 === t ? Tb("path", { d: e[1] }) : void 0;
42689,42690c48291,48292
< function df(e) {
< for (var t = hf("svg", uf), n = 0, i = e; n < i.length; n++) {
---
> function Ab(e) {
> for (var t = Tb("svg", Mb), n = 0, i = e; n < i.length; n++) {
42692c48294
< t.appendChild(pf(r));
---
> t.appendChild(Db(r));
42696c48298
< var ff = {
---
> var Lb = {
42851c48453,48455
< mf = {
---
> Pb = {
> "refresh-cw-off":
> '<path d="M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47"/><path d="M8 16H3v5"/><path d="M3 12C3 9.51 4 7.26 5.64 5.64"/><path d="m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64"/><path d="M21 12c0 1-.16 1.97-.47 2.87"/><path d="M21 3v5h-5"/><path d="M22 22 2 2"/>',
42927,42931c48531,48535
< gf = {},
< vf = { viewBox: "0 0 100 100" },
< yf = {};
< function bf(e, t) {
< if (!yf.hasOwnProperty(e)) {
---
> Ib = {},
> Ob = { viewBox: "0 0 100 100" },
> Fb = {};
> function Bb(e, t) {
> if (!Fb.hasOwnProperty(e)) {
42934c48538
< n.classList.add("svg-icon", e), (yf[e] = n);
---
> n.classList.add("svg-icon", e), (Fb[e] = n);
42936c48540
< return yf[e].cloneNode(!0);
---
> return Fb[e].cloneNode(!0);
42938c48542
< function wf(e) {
---
> function Nb(e) {
42940c48544
< ? bf(e, function () {
---
> ? Bb(e, function () {
42942c48546
< return cf.hasOwnProperty(t) ? df(cf[t]) : null;
---
> return Sb.hasOwnProperty(t) ? Ab(Sb[t]) : null;
42944,42947c48548,48551
< : gf.hasOwnProperty(e)
< ? bf(e, function () {
< var t = hf("svg", vf);
< return (t.innerHTML = gf[e]), t;
---
> : Ib.hasOwnProperty(e)
> ? Bb(e, function () {
> var t = Tb("svg", Ob);
> return (t.innerHTML = Ib[e]), t;
42949,42952c48553,48556
< : mf.hasOwnProperty(e)
< ? bf(e, function () {
< var t = hf("svg", uf);
< return (t.innerHTML = mf[e]), t;
---
> : Pb.hasOwnProperty(e)
> ? Bb(e, function () {
> var t = Tb("svg", Mb);
> return (t.innerHTML = Pb[e]), t;
42954,42957c48558,48561
< : (ff.hasOwnProperty(e) && (e = ff[e]),
< cf.hasOwnProperty(e)
< ? bf("lucide-" + e, function () {
< return df(cf[e]);
---
> : (Lb.hasOwnProperty(e) && (e = Lb[e]),
> Sb.hasOwnProperty(e)
> ? Bb("lucide-" + e, function () {
> return Ab(Sb[e]);
42961c48565
< function kf(e, t) {
---
> function Rb(e, t) {
42965c48569
< var i = wf(t);
---
> var i = Nb(t);
42969,42970c48573,48574
< function Cf(e, t) {
< delete yf[e], (gf[e] = t);
---
> function Hb(e, t) {
> delete Fb[e], (Ib[e] = t);
42972,42973c48576,48577
< function xf(e) {
< delete yf[e], delete gf[e];
---
> function Vb(e) {
> delete Fb[e], delete Ib[e];
42975c48579
< function Ef() {
---
> function zb() {
42978c48582
< Object.keys(cf).map(function (e) {
---
> Object.keys(Sb).map(function (e) {
42982,42987c48586,48587
< .concat(Object.keys(gf))
< .concat(Object.keys(mf));
< }
< var Sf = [];
< function Mf(e) {
< Sf.contains(e) || Sf.push(e);
---
> .concat(Object.keys(Ib))
> .concat(Object.keys(Pb));
42989,43139c48589
< function Tf(e) {
< Sf.contains(e) && Sf.remove(e);
< }
< var Df = (function () {
< function e(e, t, n) {
< var i = this;
< (this.chooser = e),
< (this.containerEl = t),
< (this.values = []),
< (this.suggestions = []),
< (this.selectedItem = 0),
< t.on(
< "click",
< ".suggestion-item",
< this.onSuggestionClick.bind(this)
< ),
< t.on(
< "auxclick",
< ".suggestion-item",
< this.onSuggestionClick.bind(this)
< ),
< t.on(
< "mousemove",
< ".suggestion-item",
< this.onSuggestionMouseover.bind(this)
< ),
< (this.moveUp = this.moveUp.bind(this)),
< (this.moveDown = this.moveDown.bind(this)),
< n.register([], "ArrowUp", this.moveUp),
< n.register([], "ArrowDown", this.moveDown),
< n.register([], "PageUp", this.pageUp.bind(this)),
< n.register([], "PageDown", this.pageDown.bind(this)),
< n.register([], "Home", function (e) {
< return i.setSelectedItem(0, e), !1;
< }),
< n.register([], "End", function (e) {
< return i.setSelectedItem(i.suggestions.length - 1, e), !1;
< }),
< (ct.isMacOS || ct.isIosApp) &&
< (n.register(["Ctrl"], "p", this.moveUp),
< n.register(["Ctrl"], "n", this.moveDown)),
< n.register([], "Enter", function (e) {
< if (!e.isComposing) return i.useSelectedItem(e), !1;
< });
< }
< return (
< (e.prototype.moveUp = function (e) {
< if (!e.isComposing)
< return this.setSelectedItem(this.selectedItem - 1, e), !1;
< }),
< (e.prototype.moveDown = function (e) {
< if (!e.isComposing)
< return this.setSelectedItem(this.selectedItem + 1, e), !1;
< }),
< Object.defineProperty(e.prototype, "rowHeight", {
< get: function () {
< return this.suggestions[this.selectedItem].clientHeight;
< },
< enumerable: !1,
< configurable: !0,
< }),
< Object.defineProperty(e.prototype, "numVisibleItems", {
< get: function () {
< return Math.floor(this.containerEl.clientHeight / this.rowHeight);
< },
< enumerable: !1,
< configurable: !0,
< }),
< (e.prototype.pageUp = function (e) {
< if (!e.isComposing) {
< var t = this,
< n = t.containerEl,
< i = t.numVisibleItems,
< r = t.rowHeight,
< o = n.scrollTop - parseFloat(getComputedStyle(n).paddingTop),
< a = Math.floor(o / r);
< this.selectedItem <= a && (a -= i);
< var s = Math.max(0, a);
< return this.setSelectedItem(s, e), !1;
< }
< }),
< (e.prototype.pageDown = function (e) {
< if (!e.isComposing) {
< var t = this,
< n = t.containerEl,
< i = t.numVisibleItems,
< r = t.rowHeight,
< o = n.scrollTop - parseFloat(getComputedStyle(n).paddingTop),
< a = Math.floor(o / r) + (i - 1);
< this.selectedItem >= a && (a += i);
< var s = Math.min(this.suggestions.length - 1, a);
< return this.setSelectedItem(s, e), !1;
< }
< }),
< (e.prototype.setSuggestions = function (e) {
< var t = this.containerEl;
< t.empty();
< var n = [];
< if (e)
< for (var i = 0, r = e; i < r.length; i++) {
< var o = r[i],
< a = t.createDiv("suggestion-item");
< this.chooser.renderSuggestion(o, a), n.push(a);
< }
< (this.values = e),
< (this.suggestions = n),
< this.setSelectedItem(0, null);
< }),
< (e.prototype.addMessage = function (e) {
< this.containerEl.createDiv({ cls: "suggestion-empty", text: e });
< }),
< (e.prototype.setSelectedItem = function (e, t) {
< var n = this.suggestions;
< 0 !== n.length &&
< (e < 0 ? (e = n.length - 1) : e >= n.length && (e = 0),
< this.forceSetSelectedItem(e, t));
< }),
< (e.prototype.forceSetSelectedItem = function (e, t) {
< var n,
< i,
< r = this.suggestions,
< o = r[this.selectedItem];
< o && o.removeClass("is-selected"), (this.selectedItem = e);
< var a = r[this.selectedItem];
< a &&
< (a.addClass("is-selected"),
< t &&
< t.instanceOf(KeyboardEvent) &&
< a.scrollIntoView({ block: "nearest" })),
< null === (i = (n = this.chooser).onSelectedChange) ||
< void 0 === i ||
< i.call(n, this.values[e], t);
< }),
< (e.prototype.onSuggestionClick = function (e, t) {
< e.preventDefault();
< var n = this.suggestions.indexOf(t);
< this.setSelectedItem(n, e), this.useSelectedItem(e);
< }),
< (e.prototype.onSuggestionMouseover = function (e, t) {
< var n = this.suggestions.indexOf(t);
< this.setSelectedItem(n, e);
< }),
< (e.prototype.useSelectedItem = function (e) {
< if (!this.values) return !1;
< var t = this.values[this.selectedItem];
< return void 0 !== t && (this.chooser.selectSuggestion(t, e), !0);
< }),
< e
< );
< })();
< function Af(e, t) {
---
> function qb(e, t) {
43148,43149c48598,48599
< ct.isMobile &&
< Ve(function () {
---
> St.isMobile &&
> Qe(function () {
43153c48603
< function Lf() {
---
> function Ub() {
43159c48609
< function Pf(e, t) {
---
> function Wb(e, t) {
43164c48614
< var If = !1;
---
> var _b = !1;
43171c48621
< If = { passive: !1 };
---
> _b = { passive: !1 };
43176c48626
< function Of(e, t, n) {
---
> function jb(e, t, n) {
43211c48661
< function Ff(e, t) {
---
> function Gb(e, t) {
43219c48669
< function Bf(e, t) {
---
> function Kb(e, t) {
43233,43234c48683,48684
< function Nf(e, t) {
< var n = Bf(e, t);
---
> function Yb(e, t) {
> var n = Kb(e, t);
43242c48692
< function Rf(e, t) {
---
> function Xb(e, t) {
43277c48727
< return n ? e() : this.promise.then(e);
---
> return n ? Promise.resolve(e()) : this.promise.then(e);
43281c48731
< function Hf(e, t) {
---
> function $b(e, t) {
43283c48733
< for (var n = e.firstChild; n; ) Hf(n, t), (n = n.nextSibling);
---
> for (var n = e.firstChild; n; ) $b(n, t), (n = n.nextSibling);
43286c48736,48744
< function Vf(e, t, n, i) {
---
> function Zb(e, t, n) {
> var i = [];
> $b(e, i);
> var r = i.map(function (e) {
> return e.textContent || "";
> });
> return Qb(i, r, t, n);
> }
> function Qb(e, t, n, i) {
43307c48765
< function zf(e, t) {
---
> function Jb(e, t) {
43326c48784
< function qf(e) {
---
> function ew(e) {
43337,43339c48795,48797
< var Uf = new Map(),
< _f = 0,
< jf =
---
> var tw = new Map(),
> nw = 0,
> iw =
43343,43344c48801,48802
< _f < jf.length;
< _f++
---
> nw < iw.length;
> nw++
43346,43347c48804,48805
< var Wf = jf[_f];
< Uf.set(Wf, !0);
---
> var rw = iw[nw];
> tw.set(rw, !0);
43350,43351c48808,48809
< var Gf = 0,
< Kf =
---
> var ow = 0,
> aw =
43355,43356c48813,48814
< Gf < Kf.length;
< Gf++
---
> ow < aw.length;
> ow++
43358,43359c48816,48817
< Wf = Kf[Gf];
< Uf.set(Wf, !1);
---
> rw = aw[ow];
> tw.set(rw, !1);
43361,43364c48819,48822
< var Yf = /^[a-z]+$/i;
< function Xf(e) {
< if (!e || !Yf.test(e)) return !1;
< if (Uf.has(e)) return Uf.get(e);
---
> var sw = /^[a-z]+$/i;
> function lw(e) {
> if (!e || !sw.test(e)) return !1;
> if (tw.has(e)) return tw.get(e);
43373c48831
< return Uf.set(e, i), i;
---
> return tw.set(e, i), i;
43375c48833
< function Zf(e, t) {
---
> function cw(e, t) {
43395,43396c48853,48854
< var $f = new WeakMap();
< function Qf(e, t) {
---
> var uw = new WeakMap();
> function hw(e, t) {
43404,43405c48862,48863
< function Jf(e) {
< if (Xf(e.tagName.toLowerCase())) return !0;
---
> function pw(e) {
> if (lw(e.tagName.toLowerCase())) return !0;
43411,43412c48869,48870
< ? $f.set(e, e.scrollTop)
< : $f.delete(e),
---
> ? uw.set(e, e.scrollTop)
> : uw.delete(e),
43416,43417c48874,48875
< function em(e) {
< Qf(e, Jf);
---
> function dw(e) {
> hw(e, pw);
43419,43421c48877,48879
< function tm(e) {
< var t = $f.get(e);
< return t && ((e.scrollTop = t), $f.delete(e)), !1;
---
> function fw(e) {
> var t = uw.get(e);
> return t && ((e.scrollTop = t), uw.delete(e)), !1;
43423,43424c48881,48882
< function nm(e) {
< Qf(e, tm);
---
> function mw(e) {
> hw(e, fw);
43426c48884
< function im(e) {
---
> function gw(e) {
43443c48901
< function rm(e, t, n) {
---
> function vw(e, t, n) {
43462,43463c48920,48921
< function om(e) {
< ct.isMobile &&
---
> function yw(e) {
> St.isMobile &&
43474c48932
< if (rt(t, a) && !o) {
---
> if (vt(t, a) && !o) {
43483c48941
< var t = rt(e, a);
---
> var t = vt(e, a);
43503c48961
< function am(e) {
---
> function bw(e) {
43517c48975
< function sm(e, t) {
---
> function ww(e, t) {
43572,43577c49030,49038
< function lm(e) {
< var t = e.getText();
< e.normalize(),
< (1 === e.childNodes.length &&
< e.firstChild.nodeType === Node.TEXT_NODE) ||
< (e.setText(t), Af(e, !1));
---
> function kw(e, t) {
> if (
> (void 0 === t && (t = !1),
> e.normalize(),
> 1 !== e.childNodes.length || e.firstChild.nodeType !== Node.TEXT_NODE)
> ) {
> var n = t ? e.textContent : e.getText();
> (e.textContent = n), e.isActiveElement() && qb(e, !1);
> }
43579c49040
< function cm(e, t) {
---
> function Cw(e, t) {
43600c49061
< var um = {
---
> var Ew = {
43675,43677c49136,49138
< hm = 1;
< hm < 25;
< hm++
---
> xw = 1;
> xw < 25;
> xw++
43679,43686c49140,49147
< um[111 + hm] = "F" + hm;
< for (hm = 65; hm < 91; hm++) {
< var pm = String.fromCharCode(hm);
< um[hm] = pm.toUpperCase();
< }
< for (hm = 96; hm < 106; hm++)
< um[hm] = "Numpad" + String.fromCharCode(hm - 48);
< var dm = {
---
> Ew[111 + xw] = "F" + xw;
> for (xw = 65; xw < 91; xw++) {
> var Sw = String.fromCharCode(xw);
> Ew[xw] = Sw.toUpperCase();
> }
> for (xw = 96; xw < 106; xw++)
> Ew[xw] = "Numpad" + String.fromCharCode(xw - 48);
> var Mw = {
43693c49154
< function fm(e) {
---
> function Tw(e) {
43697c49158
< t = um[n];
---
> t = Ew[n];
43701c49162
< var mm = ye
---
> var Dw = Pe
43710,43711c49171,49172
< gm = ["Mod", "Ctrl", "Meta", "Alt", "Shift"];
< var vm = (function () {
---
> Aw = ["Mod", "Ctrl", "Meta", "Alt", "Shift"];
> var Lw = (function () {
43724c49185
< modifiers: e ? bm.compileModifiers(e) : null,
---
> modifiers: e ? Iw.compileModifiers(e) : null,
43739c49200
< if (bm.isMatch(r, t)) {
---
> if (Iw.isMatch(r, t)) {
43750c49211
< ym = (function (e) {
---
> Pw = (function (e) {
43765,43766c49226,49227
< })(vm),
< bm = (function () {
---
> })(Lw),
> Iw = (function () {
43769c49230
< (this.rootScope = new vm()),
---
> (this.rootScope = new Lw()),
43800c49261
< var i = fm(t);
---
> var i = Tw(t);
43804c49265
< return um[t] || "Key" + t;
---
> return Ew[t] || "Key" + t;
43828c49289
< if (t.scope === n && !Zf(i)) {
---
> if (t.scope === n && !cw(i)) {
43851c49312
< return "Mod" === e ? ("MacOS" === ge ? "Meta" : "Ctrl") : e;
---
> return "Mod" === e ? ("MacOS" === Ae ? "Meta" : "Ctrl") : e;
43860,43861c49321,49322
< return ("MacOS" === ge && "Meta" === e) ||
< ("MacOS" !== ge && "Ctrl" === e)
---
> return ("MacOS" === Ae && "Meta" === e) ||
> ("MacOS" !== Ae && "Ctrl" === e)
43893c49354
< : "Mod" === t && ("MacOS" === ge ? e.metaKey : e.ctrlKey);
---
> : "Mod" === t && ("MacOS" === Ae ? e.metaKey : e.ctrlKey);
43926,44635c49387
< wm = (function () {
< function e(e, t) {
< var n = this;
< (this.isOpen = !1),
< (this.app = e),
< (this.scope = new vm(t || e.scope)),
< (this.suggestEl = createDiv("suggestion-container"));
< var i = this.suggestEl.createDiv("suggestion");
< (this.suggestions = new Df(this, i, this.scope)),
< this.scope.register([], "Escape", function () {
< return n.close(), !1;
< });
< }
< return (
< (e.prototype.open = function () {
< var e = this.app,
< t = this.suggestEl;
< if (!this.isOpen) {
< if (
< ((this.isOpen = !0),
< e.keymap.pushScope(this.scope),
< Le(t, !0),
< activeDocument.body.appendChild(t),
< ct.isPhone)
< ) {
< var n = t.offsetHeight - 1;
< Ie(
< t,
< new Te({ duration: 300 }).addProp(
< "transform",
< "translateY(".concat(n, "px)"),
< ""
< )
< );
< }
< Mf(this);
< }
< }),
< (e.prototype.close = function () {
< var e = this,
< t = this.app,
< n = this.suggestEl;
< if (
< (this.autoDestroy &&
< (this.autoDestroy(), (this.autoDestroy = null)),
< t.keymap.popScope(this.scope),
< this.isOpen)
< ) {
< if (((this.isOpen = !1), ct.isPhone)) {
< var i = n.offsetHeight - 1;
< Ie(
< n,
< new Te({ duration: 300 }).addProp(
< "transform",
< "",
< "translateY(".concat(i, "px)")
< ),
< function () {
< e.suggestions.setSuggestions([]), n.detach();
< }
< );
< } else this.suggestions.setSuggestions([]), n.detach();
< Tf(this);
< }
< }),
< (e.prototype.reposition = function (e) {
< var t = this.suggestEl;
< (t.style.left = "0"), (t.style.top = "0"), Of(e, t, { gap: 5 });
< }),
< (e.prototype.setAutoDestroy = function (e) {
< var t = this;
< this.autoDestroy && this.autoDestroy(),
< e &&
< (this.autoDestroy = (function (e, t, n) {
< var i = e.doc,
< r = setInterval(function () {
< i.body.contains(e) || (clearInterval(r), n());
< }, t);
< return function () {
< clearInterval(r);
< };
< })(e, 500, function () {
< t.close();
< }));
< }),
< e
< );
< })(),
< km = (function (e) {
< function t(t, n) {
< var i = e.call(this, t) || this;
< return (
< (i.textInputEl = null),
< (i.textInputEl = n),
< n.addEventListener("input", i.onInputChange.bind(i)),
< n.addEventListener("focus", i.onInputChange.bind(i)),
< n.addEventListener("blur", i.close.bind(i)),
< i.suggestEl.on("mousedown", ".suggestion-item", function (e) {
< e.preventDefault();
< }),
< i
< );
< }
< return (
< f(t, e),
< (t.prototype.onInputChange = function () {
< var e = this.textInputEl,
< t = e.value,
< n = this.getSuggestions(t);
< n.length > 0
< ? (this.suggestions.setSuggestions(n),
< this.open(),
< this.setAutoDestroy(e),
< ct.isPhone || this.reposition(Nf(e)))
< : this.close();
< }),
< (t.prototype.selectSuggestion = function (e, t) {
< this.onSelect && this.onSelect(e, t);
< }),
< t
< );
< })(wm),
< Cm = (function () {
< function e(e) {
< var t = this;
< (this.rootEl = e.createDiv({ cls: "multi-select-container" })),
< (this.inputEl = this.rootEl.createEl("input", {
< cls: "multi-select-input",
< })),
< (this.elements = []),
< (this.values = []),
< this.inputEl.addEventListener("keydown", function (e) {
< e.isComposing ||
< ("Enter" === e.key && t.inputEl.value.length > 0
< ? t.addElement(t.inputEl.value) && (t.inputEl.value = "")
< : "Backspace" === e.key &&
< 0 === t.inputEl.value.length &&
< t.elements.length > 0 &&
< t.removeElement(t.elements.length - 1));
< });
< }
< return (
< (e.prototype.setValues = function (e) {
< return (
< Array.isArray(e) ? (this.values = e) : (this.values = []),
< this.renderValues(),
< this.triggerChange(),
< this
< );
< }),
< (e.prototype.onChange = function (e) {
< return (this.changeCallback = e), this;
< }),
< (e.prototype.setOptionRenderer = function (e) {
< return (
< (this.optionRenderer = e),
< this.values.length > 0 && this.renderValues(),
< this
< );
< }),
< (e.prototype.allowCreatingOptions = function (e) {
< return (this.createOption = e), this;
< }),
< (e.prototype.preventDuplicates = function (e) {
< return (this.findDuplicate = e), this;
< }),
< (e.prototype.addElement = function (e) {
< var t,
< n,
< i =
< null === (t = this.createOption) || void 0 === t
< ? void 0
< : t.call(this, e);
< if (!i) return !1;
< var r =
< null === (n = this.findDuplicate) || void 0 === n
< ? void 0
< : n.call(this, i, this.values);
< if (void 0 !== r && r >= 0 && r < this.elements.length) {
< var o = this.elements[r];
< return (
< o.hasClass("multi-select-duplicate") ||
< (o.addClass("multi-select-duplicate"),
< setTimeout(function () {
< return o.removeClass("multi-select-duplicate");
< }, 2e3)),
< !0
< );
< }
< return (
< this.values.push(i),
< this.renderValues(),
< this.triggerChange(),
< !0
< );
< }),
< (e.prototype.removeElement = function (e) {
< e < 0 ||
< e >= this.values.length ||
< (this.values.splice(e, 1),
< this.renderValues(),
< this.triggerChange());
< }),
< (e.prototype.renderValues = function () {
< for (var e = this, t = 0, n = this.elements; t < n.length; t++) {
< n[t].detach();
< }
< this.elements = [];
< for (
< var i = function (t) {
< var n = r.rootEl.createDiv({ cls: "multi-select-pill" }),
< i = n.createDiv({ cls: "multi-select-pill-content" }),
< o = n.createDiv({
< cls: "multi-select-pill-remove-button",
< });
< kf(o, "lucide-x"),
< r.optionRenderer
< ? r.optionRenderer(t, i)
< : i.createSpan({ text: String(t) });
< var a = r.elements.length;
< r.elements.push(n),
< o.addEventListener("mousedown", function (t) {
< return e.removeElement(a);
< });
< },
< r = this,
< o = 0,
< a = this.values;
< o < a.length;
< o++
< ) {
< i(a[o]);
< }
< this.rootEl.setChildrenInPlace(
< this.elements.concat([this.inputEl])
< );
< }),
< (e.prototype.triggerChange = function () {
< this.changeCallback && this.changeCallback(this.values);
< }),
< e
< );
< })(),
< xm = function (e, t) {
< return e[0] - t[0];
< };
< function Em(e) {
< if (0 === e.length) return e;
< e.sort(xm);
< for (var t = [e[0]], n = 1; n < e.length; n++) {
< var i = t.last();
< i[1] < e[n][0] ? t.push(e[n]) : i[1] < e[n][1] && (i[1] = e[n][1]);
< }
< return t;
< }
< var Sm =
< /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]/,
< Mm = /\s/,
< Tm =
< /[\u0F00-\u0FFF\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/;
< function Dm(e) {
< for (var t = e.toLowerCase(), n = [], i = 0, r = 0; r < t.length; r++) {
< var o = t.charAt(r);
< Mm.test(o)
< ? (i !== r && n.push(t.substring(i, r)), (i = r + 1))
< : (Sm.test(o) || Tm.test(o)) &&
< (i !== r && n.push(t.substring(i, r)), n.push(o), (i = r + 1));
< }
< return (
< i !== t.length && n.push(t.substring(i, t.length)),
< { query: e, tokens: n, fuzzy: t.split("") }
< );
< }
< function Am(e) {
< var t = Dm(e);
< return function (e) {
< return Im(t, e);
< };
< }
< function Lm(e, t, n, i) {
< if (0 === e.length) return 0;
< var r = 0;
< (r -= Math.max(0, e.length - 1)), (r -= i / 10);
< var o = e[0][0];
< return (
< (r -= (e[e.length - 1][1] - o + 1 - t) / 100),
< (r -= o / 1e3),
< (r -= n / 1e4)
< );
< }
< function Pm(e, t, n, i) {
< if (0 === e.length) return null;
< for (
< var r = n.toLowerCase(), o = 0, a = 0, s = [], l = 0;
< l < e.length;
< l++
< ) {
< var c = e[l],
< u = r.indexOf(c, a);
< if (-1 === u) return null;
< var h = n.charAt(u);
< if (u > 0 && !Sm.test(h) && !Tm.test(h)) {
< var p = n.charAt(u - 1);
< if (
< (h.toLowerCase() !== h && p.toLowerCase() !== p) ||
< (h.toUpperCase() !== h &&
< !Sm.test(p) &&
< !Mm.test(p) &&
< !Tm.test(p))
< )
< if (i) {
< if (u !== a) {
< (a += c.length), l--;
< continue;
< }
< } else o += 1;
< }
< if (0 === s.length) s.push([u, u + c.length]);
< else {
< var d = s[s.length - 1];
< d[1] < u ? s.push([u, u + c.length]) : (d[1] = u + c.length);
< }
< a = u + c.length;
< }
< return { matches: s, score: Lm(s, t.length, r.length, o) };
< }
< function Im(e, t) {
< if ("" === e.query) return { score: 0, matches: [] };
< var n = Pm(e.tokens, e.query, t, !1);
< return n || Pm(e.fuzzy, e.query, t, !0);
< }
< function Om(e) {
< e.sort(function (e, t) {
< return t.match.score - e.match.score;
< });
< }
< function Fm(e, t) {
< if (e)
< for (var n = 0, i = e; n < i.length; n++) {
< var r = i[n];
< (r[0] += t), (r[1] += t);
< }
< }
< function Bm(e, t) {
< for (var n = t.toLowerCase(), i = [], r = 0, o = e; r < o.length; r++) {
< var a = o[r];
< if (a) {
< for (
< var s = !1, l = -1, c = a.length;
< -1 !== (l = n.indexOf(a, l));
<
< )
< (s = !0), i.push([l, l + c]), (l += c + 1);
< if (!s) return null;
< }
< }
< return Em(i);
< }
< function Nm(e) {
< var t = e.toLowerCase().split(" ");
< return function (n) {
< return (function (e, t, n) {
< var i = Bm(e, n);
< return i
< ? { score: Lm(i, t.length, n.length, 0), matches: i }
< : null;
< })(t, e, n);
< };
< }
< function Rm(e, t, n, i) {
< void 0 === i && (i = 0), Hm(e, t, n ? n.matches : null, i);
< }
< function Hm(e, t, n, i) {
< void 0 === i && (i = 0),
< e.appendChild(
< (function (e, t, n) {
< void 0 === n && (n = 0);
< if (!t || 0 === t.length) return document.createTextNode(e);
< for (
< var i = document.createDocumentFragment(), r = 0, o = 0;
< r < e.length && o < t.length;
< o++
< ) {
< var a = t[o],
< s = a[0] + n,
< l = a[1] + n;
< if (!(l <= 0)) {
< if (s >= e.length) break;
< s < 0 && (s = 0),
< s !== r && i.appendText(e.substring(r, s)),
< i.createSpan({
< cls: "suggestion-highlight",
< text: e.substring(s, l),
< }),
< (r = l);
< }
< }
< r < e.length && i.appendText(e.substring(r));
< return i;
< })(t, n, i)
< );
< }
< var Vm = null,
< zm = null;
< function qm(e) {
< e || (e = document);
< var t = e.body;
< t.on("mouseover", "[aria-label]", Wm),
< t.on("mouseout", "[aria-label]", Gm),
< t.addEventListener("mouseup", $m);
< }
< var Um = null;
< function _m() {
< Um && (clearTimeout(Um), (Um = null));
< }
< function jm(e) {
< return (
< "true" === getComputedStyle(e).getPropertyValue("--no-tooltip").trim()
< );
< }
< function Wm(e, t) {
< $e(e, t) && (it(e) || jm(t) || Ym(t));
< }
< function Gm(e, t) {
< if ($e(e, t)) {
< $m();
< var n = e.relatedTarget;
< if (n && n.matchParent) {
< var i = n.matchParent("[aria-label]");
< if (i && i.instanceOf(HTMLElement)) {
< if (jm(i)) return;
< Ym(i);
< }
< }
< }
< }
< var Km = new WeakMap();
< function Ym(e) {
< _m();
< var t = e.getAttribute("aria-label") || "";
< Km.has(e) && (t = Km.get(e)(e));
< var n = "bottom";
< e.hasAttribute("data-tooltip-position") &&
< (n = e.getAttribute("data-tooltip-position"));
< var i = [];
< e.hasAttribute("aria-label-classes") &&
< (i = (e.getAttribute("aria-label-classes") || "").split(" "));
< var r = 750;
< e.hasAttribute("aria-label-delay") &&
< ((r = parseInt(e.getAttribute("aria-label-delay") || "")),
< isNaN(r) && (r = 750)),
< Zm(e, t, { placement: n, classes: i, delay: r });
< }
< var Xm = 0;
< function Zm(e, t, n) {
< var i = Date.now(),
< r = (n = n || {}).placement,
< o = void 0 === r ? "bottom" : r,
< a = n.classes,
< s = void 0 === a ? [] : a,
< l = n.gap,
< c = void 0 === l ? 8 : l,
< u = n.horizontalParent,
< h = n.delay,
< p = void 0 === h ? 0 : h;
< if (p > 0 && (Vm || i > Xm + 100))
< return (
< _m(),
< (n.delay = 0),
< void (Um = window.setTimeout(function () {
< return Zm(e, t, n);
< }, p))
< );
< if (t) {
< var d = e.doc,
< f = e.getBoundingClientRect(),
< m = f.top,
< g = f.left,
< v = f.width,
< y = f.height;
< if (u) {
< var b = u.getBoundingClientRect();
< (g = b.left), (v = b.width);
< }
< Vm && zm === e
< ? Vm.setText(t)
< : ($m(), (Vm = createDiv({ cls: "tooltip", text: t })));
< var w = Vm.createDiv("tooltip-arrow"),
< k = 0,
< C = 0;
< "bottom" === o
< ? ((k = m + y + c), (C = g + v / 2))
< : "right" === o
< ? ((k = m + y / 2), (C = g + v + c), s.push("mod-right"))
< : "left" === o
< ? ((k = m + y / 2), (C = g - c), s.push("mod-left"))
< : "top" === o &&
< ((k = m - c - 5), (C = g + v / 2), s.push("mod-top")),
< Vm.addClasses(s),
< (Vm.style.top = "0px"),
< (Vm.style.left = "0px"),
< (Vm.style.width = ""),
< (Vm.style.height = ""),
< Vm.parentNode || d.body.appendChild(Vm);
< var x = Vm.getBoundingClientRect(),
< E = ["bottom", "top"].contains(o) ? x.width / 2 : x.width,
< S = "right" === o || "left" === o ? x.height / 2 : x.height;
< "left" === o ? (C -= E) : "top" === o && (k -= S);
< var M = d.body.clientHeight,
< T = d.body.clientWidth;
< if (
< (k + S > M && (k = M - S - c),
< (k = Math.max(k, c)),
< "top" === o || "bottom" === o)
< ) {
< if (C + E > T)
< (C -= D = C + E + c - T),
< (w.style.left = "initial"),
< (w.style.right = E - D - c / 2 + "px");
< else if (C - c - E < 0) {
< var D;
< (C += D = -(C - c - E)),
< (w.style.right = "initial"),
< (w.style.left = E - D - c / 2 + "px");
< }
< C = Math.max(C, c);
< }
< (Vm.style.top = k + "px"),
< (Vm.style.left = C + "px"),
< (Vm.style.width = x.width + "px"),
< (Vm.style.height = x.height + "px"),
< (zm = e);
< }
< }
< function $m() {
< _m(), Vm && ((Xm = Date.now()), Vm.detach(), (Vm = null), (zm = null));
< }
< function Qm(e, t) {
< var n = t || {},
< i = n.placement,
< r = n.classes,
< o = n.delay;
< i && "bottom" !== i && e.setAttribute("data-tooltip-position", i),
< r && e.setAttribute("aria-label-classes", r.join(" ")),
< o && e.setAttribute("aria-label-delay", String(o));
< }
< function Jm(e, t, n) {
< e.setAttribute("aria-label", t), Qm(e, n), zm === e && Zm(e, t, n);
< }
< function eg(e, t, n) {
< e.setAttribute("aria-label", ""),
< Km.set(e, t),
< Qm(e, n),
< zm === e && Zm(e, t(e), n);
< }
< function tg(e, t) {
< if (ct.isMobile) {
< var n = [];
< e.addEventListener(
< "touchstart",
< function (i) {
< if (!(i.touches.length > 1)) {
< var r = i.touches[0];
< if ("stylus" !== r.touchType) {
< var o = r.clientX,
< a = r.clientY,
< s = document.elementFromPoint(o, a);
< if (!(s instanceof HTMLCanvasElement) && e.contains(s)) {
< var l = r.identifier,
< c = Date.now(),
< u = !1,
< h = "x",
< p = r.clientX,
< d = r.clientY,
< f = c,
< m = 0,
< g = 0;
< if (n.length > 0)
< for (var v = 0, y = n; v < y.length; v++) {
< y[v].cancel();
< }
< n = [];
< var b = function (e) {
< for (
< var t = e.changedTouches, n = 0;
< n < t.length;
< n++
< ) {
< var i = t[n];
< if (i.identifier === l) return i;
< }
< t = e.touches;
< for (n = 0; n < t.length; n++) {
< if (t[n].identifier === l) return null;
< }
< return x(), null;
< },
< w = function (e) {
< if (b(e) && (x(), 0 !== n.length)) {
< var t, i;
< "x" === h
< ? ((t = p - o), (i = m))
< : ((t = d - a), (i = g));
< for (
< var r = (i = 800 * i * window.devicePixelRatio) + t,
< s = 0,
< l = n;
< s < l.length;
< s++
< ) {
< l[s].finish(p, d, r);
< }
< n = [];
< }
< },
< k = function (e) {
< if (b(e) && (x(), 0 !== n.length)) {
< for (var t = 0, i = n; t < i.length; t++) {
< i[t].cancel();
< }
< n = [];
< }
< },
< C = function (e) {
< var i = b(e);
< if (i) {
< var r = i.clientX,
< l = i.clientY;
< if (!u) {
< if (Date.now() - c > 200) return void x();
< var v = Math.abs(r - o),
< y = Math.abs(l - a),
< w = Math.max(v, y);
< if (w < 10) return;
< u = !0;
< for (
< var k = s,
< C =
< "x" === (h = v === w ? "x" : "y")
< ? r - o
< : l - a;
< k;
<
< ) {
< var E =
< "x" === h
< ? k.scrollWidth - k.clientWidth
< : k.scrollHeight - k.clientHeight;
< if (E > 0) {
< var S = getComputedStyle(k),
< M = "x" === h ? S.overflowX : S.overflowY;
< if ("auto" === M || "scroll" === M) {
< var T =
< "x" === h ? k.scrollLeft : k.scrollTop;
< if ((C > 0 && T > 0) || (C < 0 && T < E - 1))
< return void x();
< }
< }
< k = k.parentElement;
< }
< if (window.getSelection().toString())
< return void x();
< t({
< evt: e,
< touch: i,
< points: e.touches.length,
< targetEl: s,
< startX: o,
< startY: a,
< x: r,
< y: l,
< direction: h,
< registerCallback: function (e) {
< return n.push(e);
< },
< });
< }
< if (0 !== n.length) {
< e.preventDefault();
< var D = Date.now(),
< A = D - f,
< L = 1 - 0.8;
< (m = 0.8 * m + ((r - p) / A) * L),
< (g = 0.8 * g + ((l - d) / A) * L),
< (p = r),
< (d = l),
< (f = D);
< for (var P = 0, I = n; P < I.length; P++) {
< I[P].move(r, l);
< }
< } else x();
< }
< },
< x = function () {
< window.removeEventListener("touchcancel", k),
< window.removeEventListener("touchend", w),
< window.removeEventListener("touchmove", C);
< };
< window.addEventListener("touchcancel", k),
< window.addEventListener("touchend", w),
< window.addEventListener("touchmove", C, { passive: !1 });
< }
< }
< }
< },
< { passive: !1 }
< );
< }
< }
< var ng = (function () {
---
> Ow = (function () {
44657c49409
< return e ? kf(this.iconEl, e) : this.iconEl.empty(), this;
---
> return e ? Rb(this.iconEl, e) : this.iconEl.empty(), this;
44668c49420
< kf(
---
> Rb(
44695,44696c49447,49448
< (this.submenu = new rg()),
< kf(
---
> (this.submenu = new Bw()),
> Rb(
44726c49478
< ig = function (e) {
---
> Fw = function (e) {
44729c49481
< rg = (function (e) {
---
> Bw = (function (e) {
44750c49502
< if (c instanceof ng && c.submenu === n) {
---
> if (c instanceof Ow && c.submenu === n) {
44755c49507
< return void (o instanceof ng && n.openSubmenuSoon(o));
---
> return void (o instanceof Ow && n.openSubmenuSoon(o));
44760,44761c49512,49513
< (n.openSubmenuSoon = qe(n.openSubmenu.bind(n), 250, !0)),
< (n.scope = new vm(bm.global.getRootScope()));
---
> (n.openSubmenuSoon = et(n.openSubmenu.bind(n), 250, !0)),
> (n.scope = new Lw(Iw.global.getRootScope()));
44772c49524
< ct.isPhone)
---
> St.isPhone)
44795c49547
< ? (Ie(
---
> ? (je(
44797c49549
< new Te({ duration: 200 * (s = c) }).addProp(
---
> new ze({ duration: 200 * (s = c) }).addProp(
44804c49556
< Ie(
---
> je(
44806c49558
< new Te({ duration: 150 * s, fn: "linear" }).addProp(
---
> new ze({ duration: 150 * s, fn: "linear" }).addProp(
44813c49565
< : (Ie(
---
> : (je(
44815c49567
< new Te({
---
> new ze({
44828c49580
< Ie(
---
> je(
44830c49582
< new Te({ duration: 150 * s, fn: "linear" }).addProp(
---
> new ze({ duration: 150 * s, fn: "linear" }).addProp(
44839c49591
< tg(i, function (e) {
---
> wb(i, function (e) {
44844c49596
< tg(r, function (e) {
---
> wb(r, function (e) {
44858c49610
< ct.isDesktop && i.addEventListener("mouseover", n.onMouseOver),
---
> St.isDesktop && i.addEventListener("mouseover", n.onMouseOver),
44880c49632
< bm.global.pushScope(this.scope);
---
> Iw.global.pushScope(this.scope);
44883c49635
< bm.global.popScope(this.scope);
---
> Iw.global.popScope(this.scope);
44924c49676
< (b = a[o]) instanceof ng && (s = b.section),
---
> (b = a[o]) instanceof Ow && (s = b.section),
44938c49690
< c !== f && (null !== c && t.push(new ig(this)), (c = f));
---
> c !== f && (null !== c && t.push(new Fw(this)), (c = f));
44940c49692
< if (m.length > 1 && !ct.isPhone) {
---
> if (m.length > 1 && !St.isPhone) {
44951c49703
< if (u && g === h) u.items.push(new ig(this));
---
> if (u && g === h) u.items.push(new Fw(this));
44954c49706
< b = ng.create(this);
---
> b = Ow.create(this);
44969,44970c49721,49722
< for (var C = 0, x = m; C < x.length; C++) {
< b = x[C];
---
> for (var C = 0, E = m; C < E.length; C++) {
> b = E[C];
44976,44977c49728,49729
< for (var E = 0, S = r[""]; E < S.length; E++) {
< b = S[E];
---
> for (var x = 0, S = r[""]; x < S.length; x++) {
> b = S[x];
44980c49732
< for (; t.last() instanceof ig; ) t.pop();
---
> for (; t.last() instanceof Fw; ) t.pop();
45011c49763
< var t = ng.create(this);
---
> var t = Ow.create(this);
45016c49768
< var e = new ig(this);
---
> var e = new Fw(this);
45035c49787
< a = am(i.win);
---
> a = bw(i.win);
45045c49797
< !ct.isDesktopApp || !this.useNativeMenu)
---
> !St.isDesktopApp || !this.useNativeMenu)
45047c49799
< Mf(this), setTimeout(this.load.bind(this), 0);
---
> Cb(this), setTimeout(this.load.bind(this), 0);
45050c49802
< if ((i.appendChild(l), i.appendChild(c), ct.isPhone)) {
---
> if ((i.appendChild(l), i.appendChild(c), St.isPhone)) {
45052c49804
< Ie(
---
> je(
45054c49806
< new Te({ duration: 150 }).addProp(
---
> new ze({ duration: 150 }).addProp(
45060c49812
< Ie(
---
> je(
45062c49814
< new Te({ duration: 150 }).addProp("opacity", "0", "0.85")
---
> new ze({ duration: 150 }).addProp("opacity", "0", "0.85")
45087c49839
< qf(l),
---
> ew(l),
45097c49849
< if (e instanceof ng) {
---
> if (e instanceof Ow) {
45099c49851
< label: e.titleEl.getText(),
---
> label: e.titleEl.getText().replace(/\B&\B/, "&&"),
45109c49861
< } else e instanceof ig && t.push({ type: "separator" });
---
> } else e instanceof Fw && t.push({ type: "separator" });
45121,45122c49873,49874
< x = w.electron.remote.Menu.buildFromTemplate(C);
< x.on("menu-will-close", function () {
---
> E = w.electron.remote.Menu.buildFromTemplate(C);
> E.on("menu-will-close", function () {
45125,45127c49877,49879
< var E = w.electron.remote.getCurrentWebContents(),
< S = Math.pow(1.2, E.getZoomLevel());
< x.popup({
---
> var x = w.electron.remote.getCurrentWebContents(),
> S = Math.pow(1.2, x.getZoomLevel());
> E.popup({
45137c49889
< Tf(this),
---
> Eb(this),
45151c49903
< if (ct.isPhone && n.isShown()) {
---
> if (St.isPhone && n.isShown()) {
45153c49905
< Ie(
---
> je(
45155c49907
< new Te({ duration: 150 }).addProp(
---
> new ze({ duration: 150 }).addProp(
45164c49916
< Ie(
---
> je(
45166c49918
< new Te({ duration: 150 }).addProp("opacity", null, "0"),
---
> new ze({ duration: 150 }).addProp("opacity", null, "0"),
45188c49940
< if (r && r instanceof ng && !r.disabled)
---
> if (r && r instanceof Ow && !r.disabled)
45202c49954
< if (r && r instanceof ng && !r.disabled)
---
> if (r && r instanceof Ow && !r.disabled)
45215c49967
< t instanceof ng &&
---
> t instanceof Ow &&
45225c49977
< t && t instanceof ng && (t.handleEvent(e), this.hide()), !1
---
> t && t instanceof Ow && (t.handleEvent(e), this.hide()), !1
45279,45299c50031,50033
< })(lf);
< function og(e) {
< for (
< var t = createDiv("prompt-instructions"),
< n = function (e) {
< t.createDiv("prompt-instruction", function (t) {
< t.createSpan({
< cls: "prompt-instruction-command",
< text: e.command,
< }),
< t.createSpan({ text: e.purpose });
< });
< },
< i = 0,
< r = e;
< i < r.length;
< i++
< ) {
< n(r[i]);
< }
< return t;
---
> })(xb);
> function Nw(e, t) {
> return { x: e, y: t };
45301,45393c50035,50057
< var ag = (function (e) {
< function t(t) {
< var n = e.call(this, t) || this;
< return (
< (n.context = null),
< (n.limit = 100),
< n.suggestEl.addEventListener("mousedown", function (e) {
< return e.preventDefault();
< }),
< n
< );
< }
< return (
< f(t, e),
< (t.prototype.setInstructions = function (e) {
< this.suggestEl.appendChild(og(e));
< }),
< (t.prototype.trigger = function (e, t, n) {
< var i = this,
< r = e.getCursor("from"),
< o = e.getCursor("to");
< if (r.line !== o.line || r.ch !== o.ch)
< return (this.context = null), !1;
< var a = this.onTrigger(r, e, t);
< if (a) {
< var s = (this.context = {
< editor: e,
< file: t,
< start: a.start,
< end: a.end,
< query: a.query,
< });
< if (n) {
< var l = this.getSuggestions(s);
< if (Array.isArray(l)) this.showSuggestions(l);
< else {
< if (!l) return;
< v(i, void 0, void 0, function () {
< var e;
< return y(this, function (t) {
< switch (t.label) {
< case 0:
< return [4, l];
< case 1:
< return (
< (e = t.sent()) && this.showSuggestions(e), [2]
< );
< }
< });
< });
< }
< }
< return !0;
< }
< return (this.context = null), !1;
< }),
< (t.prototype.showSuggestions = function (e) {
< if (0 !== e.length) {
< var t = this.limit;
< t > 0 && e.length > t && (e = e.slice(0, t)),
< this.suggestions.setSuggestions(e),
< this.updatePosition(!0);
< } else this.close();
< }),
< (t.prototype.updatePosition = function (e) {
< var t = this.context;
< if (t) {
< var n = t.editor;
< if ((this.open(), ct.isPhone)) {
< if (e) {
< var i = n.getCursor(),
< r = n.coordsAtPos(i, !0),
< o = n.getScrollInfo();
< Math.abs(o.top - r.top) > 10 && n.scrollTo(null, r.top + 3);
< }
< } else {
< var a = n.coordsAtPos(t.start),
< s = n.coordsAtPos(t.end),
< l = {
< top: a.top,
< left: Math.min(a.left, s.left),
< right: Math.max(a.right, s.right),
< bottom: s.bottom,
< },
< c = am(n.containerEl.win);
< if (c) {
< var u = c.scale,
< h = c.x,
< p = c.y;
< (l.left = l.left * u + h),
< (l.right = l.right * u + h),
< (l.top = l.top * u + p),
< (l.bottom = l.bottom * u + p);
---
> function Rw(e) {
> return Nw(e.clientX, e.clientY);
> }
> function Hw(e, t, n, i) {
> return { x: e, y: t, width: n, height: i };
> }
> function Vw(e, t) {
> return Hw(e.x, e.y, t.width, t.height);
> }
> function zw(e, t) {
> return Math.hypot(e.x - t.x, e.y - t.y);
> }
> function qw(e, t, n) {
> if ((void 0 === n && (n = 5), e.isPrimary)) {
> var i = null;
> if (0 !== n || (i = t())) {
> var r = e.view,
> o = Rw(e),
> a = function (n) {
> if (n.pointerId === e.pointerId) {
> if (!i) {
> if (zw(o, Rw(n)) < 5) return;
> if (!(i = t())) return void d();
45395c50059
< this.reposition(l);
---
> i && i.move && i.move(n);
45397,45409c50061,50106
< }
< }),
< (t.prototype.close = function () {
< (this.context = null), e.prototype.close.call(this);
< }),
< t
< );
< })(wm),
< sg =
< /(^|\s)#[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]*$/g,
< lg = (function (e) {
< function t() {
< return (null !== e && e.apply(this, arguments)) || this;
---
> },
> s = function (t) {
> t.button === e.button &&
> t.pointerId === e.pointerId &&
> (d(), i && i.end && i.end(t));
> },
> l = function (t) {
> t.button === e.button &&
> t.pointerId === e.pointerId &&
> (d(), i && i.cancel && i.cancel());
> },
> c = function (e) {
> d(), i && i.end && i.end(e);
> },
> u = function () {
> d(), i && i.cancel && i.cancel();
> },
> h = function (e) {
> "Escape" === e.key && (d(), i && i.cancel && i.cancel()),
> i && i.keydown && i.keydown(e);
> },
> p = function (e) {
> i && i.keyup && i.keyup(e);
> },
> d = function () {
> r.removeEventListener("pointermove", a),
> r.removeEventListener("pointerup", s),
> r.removeEventListener("pointercancel", l),
> r.removeEventListener("dragstart", c),
> r.removeEventListener("drop", c),
> r.removeEventListener("contextmenu", u),
> window.removeEventListener("keydown", h),
> window.removeEventListener("keyup", p),
> i && i.cleanup && i.cleanup();
> };
> return (
> r.addEventListener("pointermove", a),
> r.addEventListener("pointerup", s),
> r.addEventListener("pointercancel", l),
> r.addEventListener("dragstart", c),
> r.addEventListener("drop", c),
> r.addEventListener("contextmenu", u),
> window.addEventListener("keydown", h),
> window.addEventListener("keyup", p),
> d
> );
45411,45442c50108,50149
< return (
< f(t, e),
< (t.prototype.onTrigger = function (e, t, n) {
< var i = e.line,
< r = t.getLine(i),
< o = r.substr(0, e.ch);
< if (o.match(sg) && "#" !== r.substr(e.ch, 1)) {
< var a = o.lastIndexOf("#"),
< s = o.substr(a + 1);
< return {
< start: { line: i, ch: a },
< end: { line: i, ch: e.ch },
< query: s,
< };
< }
< return null;
< }),
< (t.prototype.renderSuggestion = function (e, t) {
< Rm(t, e.tag, e);
< }),
< (t.prototype.selectSuggestion = function (e) {
< var t = this.context;
< if ((this.close(), t)) {
< var n = t.editor,
< i = t.start,
< r = t.end;
< n.transaction({
< changes: [{ from: i, to: r, text: e.tag + " " }],
< }),
< setTimeout(function () {
< return n.focus();
< });
---
> }
> }
> function Uw(e, t) {
> var n = e.win,
> i = function (e) {
> e.preventDefault(),
> e.stopPropagation(),
> e.stopImmediatePropagation();
> },
> r = n.setTimeout(function () {
> e.removeEventListener(t, i, { capture: !0 }), n.clearTimeout(r);
> }, 0);
> e.addEventListener(t, i, { capture: !0 });
> }
> function Ww(e, t) {
> e.setData("text/plain", t);
> }
> function _w(e, t) {
> e.setData("text/plain", t), e.setData("text/uri-list", t);
> }
> function jw(e) {
> for (var t = 0; t < e.items.length; t++) {
> if ("file" === e.items[t].kind) return !0;
> }
> return !(!St.isIosApp || -1 === e.types.indexOf("Files"));
> }
> function Gw(e, t, n) {
> for (var i = [], r = 0, o = Array.from(e.items); r < o.length; r++) {
> var a,
> s = o[r];
> if ("file" === s.kind)
> if ((a = s.getAsFile())) {
> var l = a.path || "",
> c = a.name,
> u = ke(c),
> h = be(c),
> p = null;
> if (!l) {
> var d = a.type;
> "image/png" === d
> ? ((u = "png"), (h = "Pasted image"))
> : "image/jpeg" === d && ((u = "jpg"), (h = "Pasted image"));
45444,45466c50151,50152
< }),
< (t.prototype.getSuggestions = function (e) {
< return cg(this.app.metadataCache, e.query);
< }),
< t
< );
< })(ag);
< function cg(e, t) {
< t = t.toLowerCase();
< var n = e.getTags(),
< i = [],
< r = [t];
< for (var o in n)
< if (ht(n, o))
< if ("" === t) i.push({ tag: o, score: 0, matches: null });
< else {
< var a = Bm(r, o.toLowerCase());
< a &&
< i.push({
< tag: o,
< score: Lm(a, t.length, o.length, 0),
< matches: a,
< });
---
> n && (p = l ? Kt(l) : rt(a)),
> i.push({ name: h, filepath: l, extension: u, data: p });
45468,45473c50154,50191
< return (
< i.sort(function (e, t) {
< return t.score - e.score;
< }),
< i
< );
---
> }
> "clipboard" !== t ||
> 0 !== i.length ||
> !St.isDesktopApp ||
> e.getData("text/plain") ||
> Iw.global.hasModifier("Shift") ||
> ((a = (function () {
> var e = jt("electron");
> if (!e) return null;
> var t = e.remote.clipboard,
> n = t.readImage();
> if (n && !n.isEmpty()) {
> var i = $(n.toPNG());
> return {
> name: "Pasted image",
> extension: "png",
> data: Promise.resolve(i),
> };
> }
> var r = "";
> if (
> ("Windows" === Ae
> ? (r = t
> .readBuffer("FileNameW")
> .toString("ucs2")
> .replace("\0", ""))
> : "MacOS" === Ae &&
> (r = t.read("public.file-url")) &&
> ((r = r.replace("file://", "")), (r = decodeURI(r))),
> !r)
> )
> return null;
> var o = ge(xe(r)),
> a = ke(o);
> return { filepath: r, name: be(o), extension: a, data: Kt(r) };
> })()) &&
> i.push(a));
> return i;
45475c50193,50200
< var ug = (function () {
---
> var Kw = n(914),
> Yw = n.n(Kw),
> Xw = n(2854),
> $w = n.n(Xw),
> Zw = n(5572),
> Qw = Yw(),
> Jw = Zw.Parser,
> ek = (function () {
45477c50202
< this._ = {};
---
> this.transformers = [];
45480,45515c50205,50206
< (e.prototype.on = function (e, t, n) {
< var i = this._,
< r = i[e];
< r || (i[e] = r = []);
< var o = { e: this, name: e, fn: t, ctx: n };
< return r.push(o), o;
< }),
< (e.prototype.off = function (e, t) {
< var n = this._,
< i = n[e],
< r = [];
< if (i && t)
< for (var o = 0; o < i.length; o++)
< i[o].fn !== t && r.push(i[o]);
< r.length > 0 ? (n[e] = r) : delete n[e];
< }),
< (e.prototype.offref = function (e) {
< if (e) {
< var t = e.name,
< n = this._,
< i = n[t],
< r = [];
< if (i && e)
< for (var o = 0; o < i.length; o++) i[o] !== e && r.push(i[o]);
< r.length ? (n[t] = r) : delete n[t];
< }
< }),
< (e.prototype.trigger = function (e) {
< for (var t = [], n = 1; n < arguments.length; n++)
< t[n - 1] = arguments[n];
< var i = this._,
< r = i[e];
< if (r) {
< r = r.slice();
< for (var o = 0; o < r.length; o++) this.tryTrigger(r[o], t);
< }
---
> (e.prototype.addTransformer = function (e) {
> this.transformers.push(e);
45517,45524c50208,50210
< (e.prototype.tryTrigger = function (e, t) {
< try {
< e.fn.apply(e.ctx, t);
< } catch (e) {
< setTimeout(function () {
< throw e;
< }, 0);
< }
---
> (e.prototype.removeTransformer = function (e) {
> for (var t = this.transformers, n = 0; n < t.length; )
> t[n] === e ? t.splice(n, 1) : n++;
45528,45645c50214,50325
< })(),
< hg = Object.freeze({
< aliases: "multitext",
< cssclasses: "multitext",
< tags: "tags",
< }),
< pg = (function (e) {
< function t(t) {
< var n = e.call(this) || this;
< return (
< (n.types = {}),
< (n.app = t),
< n.loadData(),
< (n.registeredTypeWidgets = {
< text: lw,
< multitext: gw,
< tags: cw,
< number: pw,
< boolean: dw,
< date: uw,
< datetime: hw,
< }),
< n
< );
< }
< return (
< f(t, e),
< (t.prototype.getType = function (e) {
< var t = e.key,
< n = e.type,
< i = this.types.hasOwnProperty(t) ? this.types[t] : void 0;
< return this.registeredTypeWidgets.hasOwnProperty(i)
< ? this.registeredTypeWidgets[i]
< : e && this.registeredTypeWidgets.hasOwnProperty(n)
< ? this.registeredTypeWidgets[e.type]
< : lw;
< }),
< (t.prototype.getTypes = function () {
< return Object.keys(this.types);
< }),
< (t.prototype.loadData = function () {
< return v(this, void 0, void 0, function () {
< var e;
< return y(this, function (t) {
< switch (t.label) {
< case 0:
< return [4, this.app.vault.readConfigJson("types")];
< case 1:
< return (
< (e = t.sent()) && e.hasOwnProperty("types")
< ? (this.types = Object.assign({}, hg, e.types))
< : (this.types = Object.assign({}, hg)),
< [2]
< );
< }
< });
< });
< }),
< (t.prototype.save = function () {
< return v(this, void 0, void 0, function () {
< return y(this, function (e) {
< switch (e.label) {
< case 0:
< return [
< 4,
< this.app.vault.writeConfigJson("types", {
< types: this.types,
< }),
< ];
< case 1:
< return e.sent(), [2];
< }
< });
< });
< }),
< (t.prototype.setType = function (e, t) {
< return v(this, void 0, void 0, function () {
< return y(this, function (n) {
< switch (n.label) {
< case 0:
< return (this.types[e] = t), [4, this.save()];
< case 1:
< return n.sent(), this.trigger("changed", e), [2];
< }
< });
< });
< }),
< (t.prototype.trigger = function (t) {
< for (var n = [], i = 1; i < arguments.length; i++)
< n[i - 1] = arguments[i];
< e.prototype.trigger.apply(this, w([t], n, !1));
< }),
< (t.prototype.on = function (t, n, i) {
< return e.prototype.on.call(this, t, n, i);
< }),
< t
< );
< })(ug),
< dg = n(773),
< fg = n.n(dg),
< mg = n(6630),
< gg = n.n(mg),
< vg = n(939),
< yg = n.n(vg);
< const bg = Symbol.for("yaml.alias"),
< wg = Symbol.for("yaml.document"),
< kg = Symbol.for("yaml.map"),
< Cg = Symbol.for("yaml.pair"),
< xg = Symbol.for("yaml.scalar"),
< Eg = Symbol.for("yaml.seq"),
< Sg = Symbol.for("yaml.node.type"),
< Mg = (e) => !!e && "object" == typeof e && e[Sg] === bg,
< Tg = (e) => !!e && "object" == typeof e && e[Sg] === wg,
< Dg = (e) => !!e && "object" == typeof e && e[Sg] === kg,
< Ag = (e) => !!e && "object" == typeof e && e[Sg] === Cg,
< Lg = (e) => !!e && "object" == typeof e && e[Sg] === xg,
< Pg = (e) => !!e && "object" == typeof e && e[Sg] === Eg;
< function Ig(e) {
---
> })();
> function tk(e, t, n, i, r) {
> i.locator = r;
> var o = e.prototype.inlineTokenizers,
> a = e.prototype.inlineMethods;
> (o[t] = i), a.splice(a.indexOf(n), 0, t);
> }
> function nk(e, t, n, i, r) {
> i.locator = r;
> var o = e.prototype.blockTokenizers,
> a = e.prototype.blockMethods;
> (o[t] = i), a.splice(a.indexOf(n), 0, t);
> }
> function ik(e, t, n) {
> for (var i = 0; i < e.length && e[i][0] !== t; i++);
> e.splice(i + 1, 0, [n]);
> }
> var rk = $w();
> function ok(e, t) {
> var n = t.position.end,
> i = t.position.end,
> r = t.children;
> return (
> r.length > 0 &&
> ((n = r[0].position.start), (i = r[r.length - 1].position.end)),
> e.substring(n.offset, i.offset).trim()
> );
> }
> function ak(e) {
> if (!e) return "";
> var t = e.indexOf("|");
> return (
> -1 !== t && ("\\" === e.charAt(t - 1) && t--, (e = e.slice(0, t))),
> (e = e.trim())
> );
> }
> function sk(e) {
> return (
> !(!e.startsWith("./") && !e.startsWith("../")) ||
> -1 === e.indexOf(":")
> );
> }
> function lk(e) {
> try {
> return new URL(e).toString();
> } catch (e) {
> console.log(e);
> }
> return encodeURI(decodeURI(e));
> }
> function ck(e) {
> if ((e = e.trim()).startsWith("<")) {
> var t = e.indexOf(">");
> if (-1 !== t) return e.substring(1, t);
> }
> var n = /\s/.exec(e);
> return n ? e.substring(0, n.index) : e;
> }
> var uk = /\u00A0/g;
> function hk(e) {
> return e.replace(uk, " ");
> }
> function pk(e) {
> return e.replace(/[\\\x00\x08\x0B\x0C\x0E-\x1F ]/g, function (e) {
> return encodeURIComponent(e);
> });
> }
> function dk(e) {
> var t = e.match(/^#{1,6} (.*)/m);
> return null !== t ? t[1] : null;
> }
> function fk(e) {
> return e
> .split("#")
> .filter(function (e) {
> return !!e;
> })
> .join(" > ")
> .trim();
> }
> function mk(e) {
> var t = "",
> n = e.indexOf("|"),
> i = n > 0;
> return (
> i
> ? ((t = e.substr(n + 1).trim()), (e = e.substr(0, n).trim()))
> : (t = fk((e = e.trim()))),
> e.endsWith("\\") && (e = e.substr(0, e.length - 1)),
> { href: (e = hk(e).trim()), title: t, isAlias: i }
> );
> }
> var gk = n(773),
> vk = n.n(gk),
> yk = n(6630),
> bk = n.n(yk),
> wk = n(939),
> kk = n.n(wk);
> const Ck = Symbol.for("yaml.alias"),
> Ek = Symbol.for("yaml.document"),
> xk = Symbol.for("yaml.map"),
> Sk = Symbol.for("yaml.pair"),
> Mk = Symbol.for("yaml.scalar"),
> Tk = Symbol.for("yaml.seq"),
> Dk = Symbol.for("yaml.node.type"),
> Ak = (e) => !!e && "object" == typeof e && e[Dk] === Ck,
> Lk = (e) => !!e && "object" == typeof e && e[Dk] === Ek,
> Pk = (e) => !!e && "object" == typeof e && e[Dk] === xk,
> Ik = (e) => !!e && "object" == typeof e && e[Dk] === Sk,
> Ok = (e) => !!e && "object" == typeof e && e[Dk] === Mk,
> Fk = (e) => !!e && "object" == typeof e && e[Dk] === Tk;
> function Bk(e) {
45647,45649c50327,50329
< switch (e[Sg]) {
< case kg:
< case Eg:
---
> switch (e[Dk]) {
> case xk:
> case Tk:
45654c50334
< function Og(e) {
---
> function Nk(e) {
45656,45660c50336,50340
< switch (e[Sg]) {
< case bg:
< case kg:
< case xg:
< case Eg:
---
> switch (e[Dk]) {
> case Ck:
> case xk:
> case Mk:
> case Tk:
45665c50345
< class Fg {
---
> class Rk {
45667c50347
< Object.defineProperty(this, Sg, { value: e });
---
> Object.defineProperty(this, Dk, { value: e });
45670,45675c50350,50355
< const Bg = Symbol("break visit"),
< Ng = Symbol("skip children"),
< Rg = Symbol("remove node");
< function Hg(e, t) {
< if (Tg(e)) {
< Vg(null, e.contents, t, Object.freeze([e])) === Rg &&
---
> const Hk = Symbol("break visit"),
> Vk = Symbol("skip children"),
> zk = Symbol("remove node");
> function qk(e, t) {
> if (Lk(e)) {
> Uk(null, e.contents, t, Object.freeze([e])) === zk &&
45677c50357
< } else Vg(null, e, t, Object.freeze([]));
---
> } else Uk(null, e, t, Object.freeze([]));
45679c50359
< function Vg(e, t, n, i) {
---
> function Uk(e, t, n, i) {
45684c50364
< : Dg(t)
---
> : Pk(t)
45686c50366
< : Pg(t)
---
> : Fk(t)
45688c50368
< : Ag(t)
---
> : Ik(t)
45690c50370
< : Lg(t)
---
> : Ok(t)
45692,45693c50372,50373
< : Mg(t) && n.Alias && (r = n.Alias(e, t, i)),
< Og(r) || Ag(r))
---
> : Ak(t) && n.Alias && (r = n.Alias(e, t, i)),
> Nk(r) || Ik(r))
45696,45697c50376,50377
< if (Ig(t)) t.items[e] = r;
< else if (Ag(t)) "key" === e ? (t.key = r) : (t.value = r);
---
> if (Bk(t)) t.items[e] = r;
> else if (Ik(t)) "key" === e ? (t.key = r) : (t.value = r);
45699,45700c50379,50380
< if (!Tg(t)) {
< const e = Mg(t) ? "alias" : "scalar";
---
> if (!Lk(t)) {
> const e = Ak(t) ? "alias" : "scalar";
45705c50385
< return Vg(e, r, n, i);
---
> return Uk(e, r, n, i);
45708c50388
< if (Ig(t)) {
---
> if (Bk(t)) {
45711c50391
< const r = Vg(e, t.items[e], n, i);
---
> const r = Uk(e, t.items[e], n, i);
45714,45715c50394,50395
< if (r === Bg) return Bg;
< r === Rg && (t.items.splice(e, 1), (e -= 1));
---
> if (r === Hk) return Hk;
> r === zk && (t.items.splice(e, 1), (e -= 1));
45718c50398
< } else if (Ag(t)) {
---
> } else if (Ik(t)) {
45720,45725c50400,50405
< const e = Vg("key", t.key, n, i);
< if (e === Bg) return Bg;
< e === Rg && (t.key = null);
< const r = Vg("value", t.value, n, i);
< if (r === Bg) return Bg;
< r === Rg && (t.value = null);
---
> const e = Uk("key", t.key, n, i);
> if (e === Hk) return Hk;
> e === zk && (t.key = null);
> const r = Uk("value", t.value, n, i);
> if (r === Hk) return Hk;
> r === zk && (t.value = null);
45729,45730c50409,50410
< (Hg.BREAK = Bg), (Hg.SKIP = Ng), (Hg.REMOVE = Rg);
< const zg = {
---
> (qk.BREAK = Hk), (qk.SKIP = Vk), (qk.REMOVE = zk);
> const Wk = {
45738c50418
< class qg {
---
> class _k {
45741,45742c50421,50422
< (this.yaml = Object.assign({}, qg.defaultYaml, e)),
< (this.tags = Object.assign({}, qg.defaultTags, t));
---
> (this.yaml = Object.assign({}, _k.defaultYaml, e)),
> (this.tags = Object.assign({}, _k.defaultTags, t));
45745c50425
< const e = new qg(this.yaml, this.tags);
---
> const e = new _k(this.yaml, this.tags);
45753c50433
< explicit: qg.defaultYaml.explicit,
---
> explicit: _k.defaultYaml.explicit,
45756c50436
< (this.tags = Object.assign({}, qg.defaultTags));
---
> (this.tags = Object.assign({}, _k.defaultTags));
45763c50443
< explicit: qg.defaultYaml.explicit,
---
> explicit: _k.defaultYaml.explicit,
45766c50446
< (this.tags = Object.assign({}, qg.defaultTags)),
---
> (this.tags = Object.assign({}, _k.defaultTags)),
45819c50499
< t + e.substring(n.length).replace(/[!,[\]{}]/g, (e) => zg[e])
---
> t + e.substring(n.length).replace(/[!,[\]{}]/g, (e) => Wk[e])
45829c50509
< if (e && n.length > 0 && Og(e.contents)) {
---
> if (e && n.length > 0 && Nk(e.contents)) {
45831,45832c50511,50512
< Hg(e.contents, (e, n) => {
< Og(n) && n.tag && (t[n.tag] = !0);
---
> qk(e.contents, (e, n) => {
> Nk(n) && n.tag && (t[n.tag] = !0);
45843,45844c50523,50524
< function Ug(e, t, n) {
< if (Array.isArray(e)) return e.map((e, t) => Ug(e, String(t), n));
---
> function jk(e, t, n) {
> if (Array.isArray(e)) return e.map((e, t) => jk(e, String(t), n));
45857,45859c50537,50539
< (qg.defaultYaml = { explicit: !1, version: "1.2" }),
< (qg.defaultTags = { "!!": "tag:yaml.org,2002:" });
< class _g extends Fg {
---
> (_k.defaultYaml = { explicit: !1, version: "1.2" }),
> (_k.defaultTags = { "!!": "tag:yaml.org,2002:" });
> class Gk extends Rk {
45861c50541
< super(bg),
---
> super(Ck),
45870c50550
< if (!t) return Ug(this.source, "string" == typeof e ? e : null, t);
---
> if (!t) return jk(this.source, "string" == typeof e ? e : null, t);
45881c50561
< 0 === r.aliasCount && (r.aliasCount = jg(this.source, n)),
---
> 0 === r.aliasCount && (r.aliasCount = Kk(this.source, n)),
45909,45910c50589,50590
< function jg(e, t) {
< if (Mg(e)) {
---
> function Kk(e, t) {
> if (Ak(e)) {
45914c50594
< if (Ig(e)) {
---
> if (Bk(e)) {
45917c50597
< const e = jg(i, t);
---
> const e = Kk(i, t);
45922,45924c50602,50604
< if (Ag(e)) {
< const n = jg(e.key, t),
< i = jg(e.value, t);
---
> if (Ik(e)) {
> const n = Kk(e.key, t),
> i = Kk(e.value, t);
45929,45930c50609,50610
< const Wg = (e) => !e || ("function" != typeof e && "object" != typeof e);
< class Gg extends Fg {
---
> const Yk = (e) => !e || ("function" != typeof e && "object" != typeof e);
> class Xk extends Rk {
45932c50612
< super(xg), (this.value = e);
---
> super(Mk), (this.value = e);
45935c50615
< return t && t.keep ? this.value : Ug(this.value, e, t);
---
> return t && t.keep ? this.value : jk(this.value, e, t);
45941,45946c50621,50626
< (Gg.BLOCK_FOLDED = "BLOCK_FOLDED"),
< (Gg.BLOCK_LITERAL = "BLOCK_LITERAL"),
< (Gg.PLAIN = "PLAIN"),
< (Gg.QUOTE_DOUBLE = "QUOTE_DOUBLE"),
< (Gg.QUOTE_SINGLE = "QUOTE_SINGLE");
< function Kg(e, t, n) {
---
> (Xk.BLOCK_FOLDED = "BLOCK_FOLDED"),
> (Xk.BLOCK_LITERAL = "BLOCK_LITERAL"),
> (Xk.PLAIN = "PLAIN"),
> (Xk.QUOTE_DOUBLE = "QUOTE_DOUBLE"),
> (Xk.QUOTE_SINGLE = "QUOTE_SINGLE");
> function $k(e, t, n) {
45948,45949c50628,50629
< if (Og(e)) return e;
< if (Ag(e)) {
---
> if (Nk(e)) return e;
> if (Ik(e)) {
45978c50658
< return new Gg(e);
---
> return new Xk(e);
45990c50670
< : new Gg(e);
---
> : new Xk(e);
45993c50673
< function Yg(e, t, n) {
---
> function Zk(e, t, n) {
46002,46005c50682,50685
< const Xg = "flow",
< Zg = "block",
< $g = "quoted";
< function Qg(
---
> const Qk = "flow",
> Jk = "block",
> eC = "quoted";
> function tC(
46033c50713
< n === Zg && ((g = Jg(e, g)), -1 !== g && (d = g + l));
---
> n === Jk && ((g = nC(e, g)), -1 !== g && (d = g + l));
46037c50717
< if (n === $g && "\\" === f) {
---
> if (n === eC && "\\" === f) {
46053c50733
< if ("\n" === f) n === Zg && (g = Jg(e, g)), (d = g + l), (h = void 0);
---
> if ("\n" === f) n === Jk && (g = nC(e, g)), (d = g + l), (h = void 0);
46061c50741
< else if (n === $g) {
---
> else if (n === eC) {
46079c50759
< : (n === $g && u[r] && (b += `${e[r]}\\`),
---
> : (n === eC && u[r] && (b += `${e[r]}\\`),
46084c50764
< function Jg(e, t) {
---
> function nC(e, t) {
46094c50774
< const ev = (e) => ({
---
> const iC = (e) => ({
46099,46100c50779,50780
< tv = (e) => /^(%|---|\.\.\.)/m.test(e);
< function nv(e, t) {
---
> rC = (e) => /^(%|---|\.\.\.)/m.test(e);
> function oC(e, t) {
46105c50785
< o = t.indent || (tv(e) ? " " : "");
---
> o = t.indent || (rC(e) ? " " : "");
46172c50852
< return (a = s ? a + n.slice(s) : n), i ? a : Qg(a, o, $g, ev(t));
---
> return (a = s ? a + n.slice(s) : n), i ? a : tC(a, o, eC, iC(t));
46174c50854
< function iv(e, t) {
---
> function aC(e, t) {
46176,46178c50856,50858
< if (/\n/.test(e)) return nv(e, t);
< } else if (/[ \t]\n|\n[ \t]/.test(e)) return nv(e, t);
< const n = t.indent || (tv(e) ? " " : ""),
---
> if (/\n/.test(e)) return oC(e, t);
> } else if (/[ \t]\n|\n[ \t]/.test(e)) return oC(e, t);
> const n = t.indent || (rC(e) ? " " : ""),
46180c50860
< return t.implicitKey ? i : Qg(i, n, Xg, ev(t));
---
> return t.implicitKey ? i : tC(i, n, Qk, iC(t));
46182,46184c50862,50864
< function rv({ comment: e, type: t, value: n }, i, r, o) {
< if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return nv(n, i);
< const a = i.indent || (i.forceBlockIndent || tv(n) ? " " : ""),
---
> function sC({ comment: e, type: t, value: n }, i, r, o) {
> if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return oC(n, i);
> const a = i.indent || (i.forceBlockIndent || rC(n) ? " " : ""),
46187,46188c50867,50868
< t !== Gg.BLOCK_FOLDED &&
< (t === Gg.BLOCK_LITERAL ||
---
> t !== Xk.BLOCK_FOLDED &&
> (t === Xk.BLOCK_LITERAL ||
46234c50914
< const p = Qg(`${u}${n}${h}`, a, Zg, ev(i));
---
> const p = tC(`${u}${n}${h}`, a, Jk, iC(i));
46237c50917
< function ov(e, t, n, i) {
---
> function lC(e, t, n, i) {
46244c50924
< s !== Gg.QUOTE_DOUBLE &&
---
> s !== Xk.QUOTE_DOUBLE &&
46246c50926
< (s = Gg.QUOTE_DOUBLE);
---
> (s = Xk.QUOTE_DOUBLE);
46249,46256c50929,50936
< case Gg.BLOCK_FOLDED:
< case Gg.BLOCK_LITERAL:
< return r || o ? nv(a.value, t) : rv(a, t, n, i);
< case Gg.QUOTE_DOUBLE:
< return nv(a.value, t);
< case Gg.QUOTE_SINGLE:
< return iv(a.value, t);
< case Gg.PLAIN:
---
> case Xk.BLOCK_FOLDED:
> case Xk.BLOCK_LITERAL:
> return r || o ? oC(a.value, t) : sC(a, t, n, i);
> case Xk.QUOTE_DOUBLE:
> return oC(a.value, t);
> case Xk.QUOTE_SINGLE:
> return aC(a.value, t);
> case Xk.PLAIN:
46262c50942
< return nv(s, t);
---
> return oC(s, t);
46275c50955
< ? iv
---
> ? aC
46277c50957
< ? nv
---
> ? oC
46279,46281c50959,50961
< ? iv
< : nv),
< c || h || -1 === s.indexOf("\n") ? a(s, t) : rv(e, t, n, i)
---
> ? aC
> : oC),
> c || h || -1 === s.indexOf("\n") ? a(s, t) : sC(e, t, n, i)
46284,46287c50964,50967
< if (!c && !h && a !== Gg.PLAIN && -1 !== s.indexOf("\n"))
< return rv(e, t, n, i);
< if ("" === u && tv(s))
< return (t.forceBlockIndent = !0), rv(e, t, n, i);
---
> if (!c && !h && a !== Xk.PLAIN && -1 !== s.indexOf("\n"))
> return sC(e, t, n, i);
> if ("" === u && rC(s))
> return (t.forceBlockIndent = !0), sC(e, t, n, i);
46298,46299c50978,50979
< return nv(s, t);
< const d = c ? p : Qg(p, u, Xg, ev(t));
---
> return oC(s, t);
> const d = c ? p : tC(p, u, Qk, iC(t));
46324c51004
< const av = (e, t) => ({
---
> const cC = (e, t) => ({
46348,46350c51028,51030
< function sv(e, t, n, i) {
< if (Ag(e)) return e.toString(t, n, i);
< if (Mg(e)) return e.toString(t);
---
> function uC(e, t, n, i) {
> if (Ik(e)) return e.toString(t, n, i);
> if (Ak(e)) return e.toString(t);
46352c51032
< const o = Og(e) ? e : t.doc.createNode(e, { onTagObj: (e) => (r = e) });
---
> const o = Nk(e) ? e : t.doc.createNode(e, { onTagObj: (e) => (r = e) });
46361c51041
< if (Lg(t)) {
---
> if (Ok(t)) {
46392,46393c51072,51073
< : Lg(o)
< ? ov(o, t, n, i)
---
> : Ok(o)
> ? lC(o, t, n, i)
46396c51076
< ? Lg(o) || "{" === s[0] || "[" === s[0]
---
> ? Ok(o) || "{" === s[0] || "[" === s[0]
46401c51081
< function lv(e, t, n) {
---
> function hC(e, t, n) {
46419c51099
< return Kg(i, void 0, {
---
> return $k(i, void 0, {
46427c51107
< const cv = (e) =>
---
> const pC = (e) =>
46430c51110
< class uv extends Fg {
---
> class dC extends Rk {
46441c51121
< if (cv(e)) this.add(t);
---
> if (pC(e)) this.add(t);
46445c51125
< if (Ig(r)) r.addIn(i, t);
---
> if (Bk(r)) r.addIn(i, t);
46451c51131
< this.set(n, lv(this.schema, i, t));
---
> this.set(n, hC(this.schema, i, t));
46458c51138
< if (Ig(n)) return n.deleteIn(t);
---
> if (Bk(n)) return n.deleteIn(t);
46466c51146
< ? !n && Lg(i)
---
> ? !n && Ok(i)
46469c51149
< : Ig(i)
---
> : Bk(i)
46475c51155
< if (!t || Og(t)) return !1;
---
> if (!t || Nk(t)) return !1;
46480c51160
< Lg(n) &&
---
> Ok(n) &&
46491c51171
< return !!Ig(n) && n.hasIn(t);
---
> return !!Bk(n) && n.hasIn(t);
46497c51177
< if (Ig(i)) i.setIn(t, n);
---
> if (Bk(i)) i.setIn(t, n);
46503c51183
< this.set(e, lv(this.schema, t, n));
---
> this.set(e, hC(this.schema, t, n));
46516c51196
< if (Og(n) || Ag(n)) {
---
> if (Nk(n) || Ik(n)) {
46534c51214
< let a = sv(
---
> let a = uC(
46543c51223
< (a = Yg(a, i, o)),
---
> (a = Zk(a, i, o)),
46557c51237
< uv.maxFlowStringSingleLineLength
---
> dC.maxFlowStringSingleLineLength
46576c51256
< function hv(e, t) {
---
> function fC(e, t) {
46582,46589c51262,51269
< function pv(e, t, n) {
< const i = Kg(e, void 0, n),
< r = Kg(t, void 0, n);
< return new fv(i, r);
< }
< uv.maxFlowStringSingleLineLength = 60;
< function dv(e, t, n) {
< if (!Mg(n) || !Dg(n.source))
---
> function mC(e, t, n) {
> const i = $k(e, void 0, n),
> r = $k(t, void 0, n);
> return new vC(i, r);
> }
> dC.maxFlowStringSingleLineLength = 60;
> function gC(e, t, n) {
> if (!Ak(n) || !Pk(n.source))
46606c51286
< class fv extends Fg {
---
> class vC extends Rk {
46608c51288
< super(Cg), (this.key = e), (this.value = t);
---
> super(Sk), (this.key = e), (this.value = t);
46611c51291
< return Og(this.key) ? this.key.commentBefore : void 0;
---
> return Nk(this.key) ? this.key.commentBefore : void 0;
46614c51294
< if ((null == this.key && (this.key = new Gg(null)), !Og(this.key))) {
---
> if ((null == this.key && (this.key = new Xk(null)), !Nk(this.key))) {
46622c51302
< return Og(this.key) ? this.key.spaceBefore : void 0;
---
> return Nk(this.key) ? this.key.spaceBefore : void 0;
46625c51305
< if ((null == this.key && (this.key = new Gg(null)), !Og(this.key))) {
---
> if ((null == this.key && (this.key = new Xk(null)), !Nk(this.key))) {
46637,46640c51317,51320
< e === fv.MERGE_KEY ||
< (Lg(e) &&
< e.value === fv.MERGE_KEY &&
< (!e.type || e.type === Gg.PLAIN)))(this.key)
---
> e === vC.MERGE_KEY ||
> (Ok(e) &&
> e.value === vC.MERGE_KEY &&
> (!e.type || e.type === Xk.PLAIN)))(this.key)
46642c51322
< if (Pg(this.value)) for (const n of this.value.items) dv(e, t, n);
---
> if (Fk(this.value)) for (const n of this.value.items) gC(e, t, n);
46644,46645c51324,51325
< for (const n of this.value) dv(e, t, n);
< else dv(e, t, this.value);
---
> for (const n of this.value) gC(e, t, n);
> else gC(e, t, this.value);
46647c51327
< const n = Ug(this.key, "", e);
---
> const n = jk(this.key, "", e);
46649c51329
< const i = Ug(this.value, n, e);
---
> const i = jk(this.value, n, e);
46656,46657c51336,51337
< if (Og(e) && n && n.doc) {
< const t = av(n.doc, {});
---
> if (Nk(e) && n && n.doc) {
> const t = cC(n.doc, {});
46663c51343
< hv(
---
> fC(
46673c51353
< r = Ug(this.value, i, e);
---
> r = jk(this.value, i, e);
46700c51380
< h = (Og(c) && c.comment) || null;
---
> h = (Nk(c) && c.comment) || null;
46706c51386
< if (Ig(c)) {
---
> if (Bk(c)) {
46716,46718c51396,51398
< Ig(c) ||
< (Lg(c)
< ? c.type === Gg.BLOCK_FOLDED || c.type === Gg.BLOCK_LITERAL
---
> Bk(c) ||
> (Ok(c)
> ? c.type === Xk.BLOCK_FOLDED || c.type === Xk.BLOCK_LITERAL
46726c51406
< f = sv(
---
> f = uC(
46741c51421
< (f = Yg(f, e.indent, h)),
---
> (f = Zk(f, e.indent, h)),
46745c51425
< : (f = Yg(f, e.indent, this.comment)),
---
> : (f = Zk(f, e.indent, this.comment)),
46750c51430
< (f = p ? `? ${Yg(f, e.indent, h)}\n${o}:` : Yg(`${f}:`, e.indent, h)),
---
> (f = p ? `? ${Zk(f, e.indent, h)}\n${o}:` : Zk(`${f}:`, e.indent, h)),
46753c51433
< ? (f = Yg(f, e.indent, this.comment))
---
> ? (f = Zk(f, e.indent, this.comment))
46758c51438
< if (Og(u)) {
---
> if (Nk(u)) {
46768c51448
< !Lg(u) ||
---
> !Ok(u) ||
46775c51455
< !Pg(u) ||
---
> !Fk(u) ||
46780c51460
< const v = sv(
---
> const v = uC(
46788c51468
< else if (!p && Ig(u)) {
---
> else if (!p && Bk(u)) {
46792c51472
< return d && !g && n && n(), Yg(f + y + v, e.indent, g);
---
> return d && !g && n && n(), Zk(f + y + v, e.indent, g);
46795,46796c51475,51476
< fv.MERGE_KEY = "<<";
< const mv = {
---
> vC.MERGE_KEY = "<<";
> const yC = {
46805c51485
< class gv extends uv {
---
> class bC extends dC {
46807c51487
< super(Eg, e), (this.items = []);
---
> super(Tk, e), (this.items = []);
46816c51496
< const t = vv(e);
---
> const t = wC(e);
46821c51501
< const n = vv(e);
---
> const n = wC(e);
46824c51504
< return !t && Lg(i) ? i.value : i;
---
> return !t && Ok(i) ? i.value : i;
46827c51507
< const t = vv(e);
---
> const t = wC(e);
46831c51511
< const n = vv(e);
---
> const n = wC(e);
46835c51515
< Lg(i) && Wg(t) ? (i.value = t) : (this.items[n] = t);
---
> Ok(i) && Yk(t) ? (i.value = t) : (this.items[n] = t);
46841c51521
< for (const e of this.items) n.push(Ug(e, String(i++), t));
---
> for (const e of this.items) n.push(jk(e, String(i++), t));
46860,46861c51540,51541
< function vv(e) {
< let t = Lg(e) ? e.value : e;
---
> function wC(e) {
> let t = Ok(e) ? e.value : e;
46867c51547
< class yv {
---
> class kC {
46872c51552
< return this.setAnchor(e, t), new _g(e);
---
> return this.setAnchor(e, t), new Gk(e);
46875c51555
< const t = new Gg(fv.MERGE_KEY),
---
> const t = new Xk(vC.MERGE_KEY),
46877,46879c51557,51559
< if (Mg(e)) {
< if (Dg(e.source)) return e;
< } else if (Dg(e)) return this.createAlias(e);
---
> if (Ak(e)) {
> if (Pk(e.source)) return e;
> } else if (Pk(e)) return this.createAlias(e);
46884,46886c51564,51566
< if (1 === n.length) return new fv(t, n[0]);
< const i = new gv();
< return (i.items = n), new fv(t, i);
---
> if (1 === n.length) return new vC(t, n[0]);
> const i = new bC();
> return (i.items = n), new vC(t, i);
46908c51588
< if (!Lg(e) && !Ig(e))
---
> if (!Ok(e) && !Bk(e))
46928c51608
< function bv({ format: e, minFractionDigits: t, tag: n, value: i }) {
---
> function CC({ format: e, minFractionDigits: t, tag: n, value: i }) {
46946,46947c51626,51627
< function wv(e, t) {
< const n = Lg(t) ? t.value : t;
---
> function EC(e, t) {
> const n = Ok(t) ? t.value : t;
46949c51629
< if (Ag(i)) {
---
> if (Ik(i)) {
46951c51631
< if (Lg(i.key) && i.key.value === n) return i;
---
> if (Ok(i.key) && i.key.value === n) return i;
46954c51634
< class kv extends uv {
---
> class xC extends dC {
46956c51636
< super(kg, e), (this.items = []);
---
> super(xk, e), (this.items = []);
46963c51643
< n = Ag(e)
---
> n = Ik(e)
46965c51645
< : new fv(
---
> : new vC(
46969c51649
< const i = wv(this.items, n.key),
---
> const i = EC(this.items, n.key),
46973c51653
< Lg(i.value) && Wg(n.value)
---
> Ok(i.value) && Yk(n.value)
46982c51662
< const t = wv(this.items, e);
---
> const t = EC(this.items, e);
46987c51667
< const n = wv(this.items, e),
---
> const n = EC(this.items, e),
46989c51669
< return !t && Lg(i) ? i.value : i;
---
> return !t && Ok(i) ? i.value : i;
46992c51672
< return !!wv(this.items, e);
---
> return !!EC(this.items, e);
46995c51675
< this.add(new fv(e, t), !0);
---
> this.add(new vC(e, t), !0);
47006c51686
< if (!Ag(e))
---
> if (!Ik(e))
47029c51709
< const Cv = {
---
> const SC = {
47033c51713
< o = new kv(e),
---
> o = new xC(e),
47037c51717
< (void 0 !== a || i) && o.items.push(pv(e, a, n));
---
> (void 0 !== a || i) && o.items.push(mC(e, a, n));
47049c51729
< nodeClass: kv,
---
> nodeClass: xC,
47051c51731
< resolve: (e, t) => (Dg(e) || t("Expected a mapping for this tag"), e),
---
> resolve: (e, t) => (Pk(e) || t("Expected a mapping for this tag"), e),
47053c51733
< const xv = {
---
> const MC = {
47057c51737
< r = new gv(e);
---
> r = new bC(e);
47065c51745
< r.items.push(Kg(o, void 0, n));
---
> r.items.push($k(o, void 0, n));
47071c51751
< nodeClass: gv,
---
> nodeClass: bC,
47074c51754
< Pg(e) || t("Expected a sequence for this tag"), e
---
> Fk(e) || t("Expected a sequence for this tag"), e
47077,47079c51757,51759
< Ev = [
< Cv,
< xv,
---
> TC = [
> SC,
> MC,
47086c51766
< ov(e, (t = Object.assign({ actualString: !0 }, t)), n, i),
---
> lC(e, (t = Object.assign({ actualString: !0 }, t)), n, i),
47089,47090c51769,51770
< Sv = (e) => "bigint" == typeof e || Number.isInteger(e),
< Mv = (e, t, n, { intAsBigInt: i }) =>
---
> DC = (e) => "bigint" == typeof e || Number.isInteger(e),
> AC = (e, t, n, { intAsBigInt: i }) =>
47092c51772
< function Tv(e, t, n) {
---
> function LC(e, t, n) {
47094c51774
< return Sv(i) && i >= 0 ? n + i.toString(t) : bv(e);
---
> return DC(i) && i >= 0 ? n + i.toString(t) : CC(e);
47096c51776
< const Dv = {
---
> const PC = {
47098c51778
< createNode: () => new Gg(null),
---
> createNode: () => new Xk(null),
47102c51782
< resolve: () => new Gg(null),
---
> resolve: () => new Xk(null),
47104c51784
< e && Dv.test.test(e) ? e : t.options.nullStr,
---
> e && PC.test.test(e) ? e : t.options.nullStr,
47106c51786
< Av = {
---
> IC = {
47111c51791
< resolve: (e) => new Gg("t" === e[0] || "T" === e[0]),
---
> resolve: (e) => new Xk("t" === e[0] || "T" === e[0]),
47113c51793
< if (e && Av.test.test(e)) {
---
> if (e && IC.test.test(e)) {
47119,47120c51799,51800
< Lv = {
< identify: (e) => Sv(e) && e >= 0,
---
> OC = {
> identify: (e) => DC(e) && e >= 0,
47125,47126c51805,51806
< resolve: (e, t, n) => Mv(e, 2, 8, n),
< stringify: (e) => Tv(e, 8, "0o"),
---
> resolve: (e, t, n) => AC(e, 2, 8, n),
> stringify: (e) => LC(e, 8, "0o"),
47128,47129c51808,51809
< Pv = {
< identify: Sv,
---
> FC = {
> identify: DC,
47133,47134c51813,51814
< resolve: (e, t, n) => Mv(e, 0, 10, n),
< stringify: bv,
---
> resolve: (e, t, n) => AC(e, 0, 10, n),
> stringify: CC,
47136,47137c51816,51817
< Iv = {
< identify: (e) => Sv(e) && e >= 0,
---
> BC = {
> identify: (e) => DC(e) && e >= 0,
47142,47143c51822,51823
< resolve: (e, t, n) => Mv(e, 2, 16, n),
< stringify: (e) => Tv(e, 16, "0x"),
---
> resolve: (e, t, n) => AC(e, 2, 16, n),
> stringify: (e) => LC(e, 16, "0x"),
47145c51825
< Ov = {
---
> NC = {
47156c51836
< stringify: bv,
---
> stringify: CC,
47158c51838
< Fv = {
---
> RC = {
47167c51847
< Bv = {
---
> HC = {
47173c51853
< const t = new Gg(parseFloat(e)),
---
> const t = new Xk(parseFloat(e)),
47182c51862
< stringify: bv,
---
> stringify: CC,
47184,47185c51864,51865
< Nv = Ev.concat([Dv, Av, Lv, Pv, Iv, Ov, Fv, Bv]);
< function Rv(e) {
---
> VC = TC.concat([PC, IC, OC, FC, BC, NC, RC, HC]);
> function zC(e) {
47188,47189c51868,51869
< const Hv = ({ value: e }) => JSON.stringify(e),
< Vv = [Cv, xv].concat(
---
> const qC = ({ value: e }) => JSON.stringify(e),
> UC = [SC, MC].concat(
47196c51876
< stringify: Hv,
---
> stringify: qC,
47200c51880
< createNode: () => new Gg(null),
---
> createNode: () => new Xk(null),
47205c51885
< stringify: Hv,
---
> stringify: qC,
47213c51893
< stringify: Hv,
---
> stringify: qC,
47216c51896
< identify: Rv,
---
> identify: zC,
47223c51903
< Rv(e) ? e.toString() : JSON.stringify(e),
---
> zC(e) ? e.toString() : JSON.stringify(e),
47231c51911
< stringify: Hv,
---
> stringify: qC,
47243c51923
< zv = {
---
> WC = {
47282c51962
< if ((t || (t = Gg.BLOCK_LITERAL), t !== Gg.QUOTE_DOUBLE)) {
---
> if ((t || (t = Xk.BLOCK_LITERAL), t !== Xk.QUOTE_DOUBLE)) {
47290c51970
< s = r.join(t === Gg.BLOCK_LITERAL ? "\n" : " ");
---
> s = r.join(t === Xk.BLOCK_LITERAL ? "\n" : " ");
47292c51972
< return ov({ comment: e, type: t, value: s }, i, r, o);
---
> return lC({ comment: e, type: t, value: s }, i, r, o);
47295,47296c51975,51976
< function qv(e, t) {
< if (Pg(e))
---
> function _C(e, t) {
> if (Fk(e))
47299,47300c51979,51980
< if (!Ag(i)) {
< if (Dg(i)) {
---
> if (!Ik(i)) {
> if (Pk(i)) {
47303c51983
< const e = i.items[0] || new fv(null);
---
> const e = i.items[0] || new vC(null);
47314c51994
< e.items[n] = Ag(i) ? i : new fv(i);
---
> e.items[n] = Ik(i) ? i : new vC(i);
47320c52000
< function Uv(e, t, n) {
---
> function jC(e, t, n) {
47322c52002
< r = new gv(e);
---
> r = new bC(e);
47341c52021
< r.items.push(pv(a, s, n));
---
> r.items.push(mC(a, s, n));
47345c52025
< const _v = {
---
> const GC = {
47349,47350c52029,52030
< resolve: qv,
< createNode: Uv,
---
> resolve: _C,
> createNode: jC,
47352c52032
< class jv extends gv {
---
> class KC extends bC {
47355,47360c52035,52040
< (this.add = kv.prototype.add.bind(this)),
< (this.delete = kv.prototype.delete.bind(this)),
< (this.get = kv.prototype.get.bind(this)),
< (this.has = kv.prototype.has.bind(this)),
< (this.set = kv.prototype.set.bind(this)),
< (this.tag = jv.tag);
---
> (this.add = xC.prototype.add.bind(this)),
> (this.delete = xC.prototype.delete.bind(this)),
> (this.get = xC.prototype.get.bind(this)),
> (this.has = xC.prototype.has.bind(this)),
> (this.set = xC.prototype.set.bind(this)),
> (this.tag = KC.tag);
47369,47371c52049,52051
< (Ag(e)
< ? ((i = Ug(e.key, "", t)), (r = Ug(e.value, i, t)))
< : (i = Ug(e, "", t)),
---
> (Ik(e)
> ? ((i = jk(e.key, "", t)), (r = jk(e.value, i, t)))
> : (i = jk(e, "", t)),
47380,47381c52060,52061
< jv.tag = "tag:yaml.org,2002:omap";
< const Wv = {
---
> KC.tag = "tag:yaml.org,2002:omap";
> const YC = {
47384c52064
< nodeClass: jv,
---
> nodeClass: KC,
47388c52068
< const n = qv(e, t),
---
> const n = _C(e, t),
47391c52071
< Lg(e) &&
---
> Ok(e) &&
47395c52075
< return Object.assign(new jv(), n);
---
> return Object.assign(new KC(), n);
47398,47399c52078,52079
< const i = Uv(e, t, n),
< r = new jv();
---
> const i = jC(e, t, n),
> r = new KC();
47403c52083
< class Gv extends kv {
---
> class XC extends xC {
47405c52085
< super(e), (this.tag = Gv.tag);
---
> super(e), (this.tag = XC.tag);
47409c52089
< t = Ag(e)
---
> t = Ik(e)
47415,47417c52095,52097
< ? new fv(e.key, null)
< : new fv(e, null);
< wv(this.items, t.key) || this.items.push(t);
---
> ? new vC(e.key, null)
> : new vC(e, null);
> EC(this.items, t.key) || this.items.push(t);
47420,47421c52100,52101
< const n = wv(this.items, e);
< return !t && Ag(n) ? (Lg(n.key) ? n.key.value : n.key) : n;
---
> const n = EC(this.items, e);
> return !t && Ik(n) ? (Ok(n.key) ? n.key.value : n.key) : n;
47429c52109
< const n = wv(this.items, e);
---
> const n = EC(this.items, e);
47432c52112
< : !n && t && this.items.push(new fv(e));
---
> : !n && t && this.items.push(new vC(e));
47448,47449c52128,52129
< Gv.tag = "tag:yaml.org,2002:set";
< const Kv = {
---
> XC.tag = "tag:yaml.org,2002:set";
> const $C = {
47452c52132
< nodeClass: Gv,
---
> nodeClass: XC,
47456,47457c52136,52137
< if (Dg(e)) {
< if (e.hasAllNullValues(!0)) return Object.assign(new Gv(), e);
---
> if (Pk(e)) {
> if (e.hasAllNullValues(!0)) return Object.assign(new XC(), e);
47464c52144
< r = new Gv(e);
---
> r = new XC(e);
47468c52148
< r.items.push(pv(e, null, n));
---
> r.items.push(mC(e, null, n));
47472c52152
< function Yv(e, t) {
---
> function ZC(e, t) {
47482c52162
< function Xv(e) {
---
> function QC(e) {
47486c52166
< else if (isNaN(t) || !isFinite(t)) return bv(e);
---
> else if (isNaN(t) || !isFinite(t)) return CC(e);
47504c52184
< const Zv = {
---
> const JC = {
47510,47511c52190,52191
< resolve: (e, t, { intAsBigInt: n }) => Yv(e, n),
< stringify: Xv,
---
> resolve: (e, t, { intAsBigInt: n }) => ZC(e, n),
> stringify: QC,
47513c52193
< $v = {
---
> eE = {
47519,47520c52199,52200
< resolve: (e) => Yv(e, !1),
< stringify: Xv,
---
> resolve: (e) => ZC(e, !1),
> stringify: QC,
47522c52202
< Qv = {
---
> tE = {
47530c52210
< const t = e.match(Qv.test);
---
> const t = e.match(tE.test);
47540c52220
< let e = Yv(u, !1);
---
> let e = ZC(u, !1);
47548c52228
< Jv = {
---
> nE = {
47550c52230
< createNode: () => new Gg(null),
---
> createNode: () => new Xk(null),
47554c52234
< resolve: () => new Gg(null),
---
> resolve: () => new Xk(null),
47556c52236
< e && Jv.test.test(e) ? e : t.options.nullStr,
---
> e && nE.test.test(e) ? e : t.options.nullStr,
47558,47559c52238,52239
< function ey({ value: e, source: t }, n) {
< return t && (e ? ty : ny).test.test(t)
---
> function iE({ value: e, source: t }, n) {
> return t && (e ? rE : oE).test.test(t)
47565c52245
< const ty = {
---
> const rE = {
47570,47571c52250,52251
< resolve: () => new Gg(!0),
< stringify: ey,
---
> resolve: () => new Xk(!0),
> stringify: iE,
47573c52253
< ny = {
---
> oE = {
47578,47579c52258,52259
< resolve: () => new Gg(!1),
< stringify: ey,
---
> resolve: () => new Xk(!1),
> stringify: iE,
47581,47582c52261,52262
< iy = (e) => "bigint" == typeof e || Number.isInteger(e);
< function ry(e, t, n, { intAsBigInt: i }) {
---
> aE = (e) => "bigint" == typeof e || Number.isInteger(e);
> function sE(e, t, n, { intAsBigInt: i }) {
47605c52285
< function oy(e, t, n) {
---
> function lE(e, t, n) {
47607c52287
< if (iy(i)) {
---
> if (aE(i)) {
47611c52291
< return bv(e);
---
> return CC(e);
47613c52293
< const ay = Ev.concat(
---
> const cE = TC.concat(
47615,47617c52295,52297
< Jv,
< ty,
< ny,
---
> nE,
> rE,
> oE,
47619c52299
< identify: iy,
---
> identify: aE,
47624,47625c52304,52305
< resolve: (e, t, n) => ry(e, 2, 2, n),
< stringify: (e) => oy(e, 2, "0b"),
---
> resolve: (e, t, n) => sE(e, 2, 2, n),
> stringify: (e) => lE(e, 2, "0b"),
47628c52308
< identify: iy,
---
> identify: aE,
47633,47634c52313,52314
< resolve: (e, t, n) => ry(e, 1, 8, n),
< stringify: (e) => oy(e, 8, "0"),
---
> resolve: (e, t, n) => sE(e, 1, 8, n),
> stringify: (e) => lE(e, 8, "0"),
47637c52317
< identify: iy,
---
> identify: aE,
47641,47642c52321,52322
< resolve: (e, t, n) => ry(e, 0, 10, n),
< stringify: bv,
---
> resolve: (e, t, n) => sE(e, 0, 10, n),
> stringify: CC,
47645c52325
< identify: iy,
---
> identify: aE,
47650,47651c52330,52331
< resolve: (e, t, n) => ry(e, 2, 16, n),
< stringify: (e) => oy(e, 16, "0x"),
---
> resolve: (e, t, n) => sE(e, 2, 16, n),
> stringify: (e) => lE(e, 16, "0x"),
47664c52344
< stringify: bv,
---
> stringify: CC,
47681c52361
< const t = new Gg(parseFloat(e.replace(/_/g, ""))),
---
> const t = new Xk(parseFloat(e.replace(/_/g, ""))),
47689c52369
< stringify: bv,
---
> stringify: CC,
47692,47698c52372,52378
< zv,
< Wv,
< _v,
< Kv,
< Zv,
< $v,
< Qv
---
> WC,
> YC,
> GC,
> $C,
> JC,
> eE,
> tE
47700,47726c52380,52406
< sy = { core: Nv, failsafe: Ev, json: Vv, yaml11: ay },
< ly = {
< binary: zv,
< bool: Av,
< float: Bv,
< floatExp: Fv,
< floatNaN: Ov,
< floatTime: $v,
< int: Pv,
< intHex: Iv,
< intOct: Lv,
< intTime: Zv,
< map: Cv,
< null: Dv,
< omap: Wv,
< pairs: _v,
< seq: xv,
< set: Kv,
< timestamp: Qv,
< };
< const cy = (e, t) => (e.key < t.key ? -1 : e.key > t.key ? 1 : 0),
< uy = {
< "tag:yaml.org,2002:binary": ly.binary,
< "tag:yaml.org,2002:omap": ly.omap,
< "tag:yaml.org,2002:pairs": ly.pairs,
< "tag:yaml.org,2002:set": ly.set,
< "tag:yaml.org,2002:timestamp": ly.timestamp,
---
> uE = { core: VC, failsafe: TC, json: UC, yaml11: cE },
> hE = {
> binary: WC,
> bool: IC,
> float: HC,
> floatExp: RC,
> floatNaN: NC,
> floatTime: eE,
> int: FC,
> intHex: BC,
> intOct: OC,
> intTime: JC,
> map: SC,
> null: PC,
> omap: YC,
> pairs: GC,
> seq: MC,
> set: $C,
> timestamp: tE,
> };
> const pE = (e, t) => (e.key < t.key ? -1 : e.key > t.key ? 1 : 0),
> dE = {
> "tag:yaml.org,2002:binary": hE.binary,
> "tag:yaml.org,2002:omap": hE.omap,
> "tag:yaml.org,2002:pairs": hE.pairs,
> "tag:yaml.org,2002:set": hE.set,
> "tag:yaml.org,2002:timestamp": hE.timestamp,
47728c52408
< class hy {
---
> class fE {
47736,47737c52416,52417
< (this.map = ly.map),
< (this.seq = ly.seq),
---
> (this.map = hE.map),
> (this.seq = hE.seq),
47740c52420
< (this.knownTags = n ? uy : {}),
---
> (this.knownTags = n ? dE : {}),
47760,47761c52440,52441
< })(sy, ly, e, this.name)),
< (this.sortMapEntries = !0 === r ? cy : r || null);
---
> })(uE, hE, e, this.name)),
> (this.sortMapEntries = !0 === r ? pE : r || null);
47764c52444
< function py(e, t, n, i) {
---
> function mE(e, t, n, i) {
47769c52449
< r = py(e, i, String(t), n);
---
> r = mE(e, i, String(t), n);
47775c52455
< r = py(e, i, t, n);
---
> r = mE(e, i, t, n);
47780c52460
< const n = py(e, i, t, t);
---
> const n = mE(e, i, t, t);
47785c52465
< const r = py(e, i, t, n);
---
> const r = mE(e, i, t, n);
47790c52470
< class dy {
---
> class gE {
47797c52477
< Object.defineProperty(this, Sg, { value: wg }),
---
> Object.defineProperty(this, Dk, { value: Ek }),
47801c52481
< const r = Object.assign({}, mv, n);
---
> const r = Object.assign({}, yC, n);
47803c52483
< (this.anchors = new yv(this.options.anchorPrefix));
---
> (this.anchors = new kC(this.options.anchorPrefix));
47809c52489
< : (this.directives = new qg({ version: o })),
---
> : (this.directives = new _k({ version: o })),
47815c52495
< fy(this.contents) && this.contents.add(e);
---
> vE(this.contents) && this.contents.add(e);
47818c52498
< fy(this.contents) && this.contents.addIn(e, t);
---
> vE(this.contents) && this.contents.addIn(e, t);
47835c52515
< s = Kg(e, o, {
---
> s = $k(e, o, {
47838c52518
< const t = new _g(e);
---
> const t = new Gk(e);
47852c52532
< return t && Ig(s) && (s.flow = !0), s;
---
> return t && Bk(s) && (s.flow = !0), s;
47857c52537
< return new fv(i, r);
---
> return new vC(i, r);
47860c52540
< return !!fy(this.contents) && this.contents.delete(e);
---
> return !!vE(this.contents) && this.contents.delete(e);
47863c52543
< return cv(e)
---
> return pC(e)
47865c52545
< : !!fy(this.contents) && this.contents.deleteIn(e);
---
> : !!vE(this.contents) && this.contents.deleteIn(e);
47868c52548
< return Ig(this.contents) ? this.contents.get(e, t) : void 0;
---
> return Bk(this.contents) ? this.contents.get(e, t) : void 0;
47871,47872c52551,52552
< return cv(e)
< ? !t && Lg(this.contents)
---
> return pC(e)
> ? !t && Ok(this.contents)
47875c52555
< : Ig(this.contents)
---
> : Bk(this.contents)
47880c52560
< return !!Ig(this.contents) && this.contents.has(e);
---
> return !!Bk(this.contents) && this.contents.has(e);
47883c52563
< return cv(e)
---
> return pC(e)
47885c52565
< : !!Ig(this.contents) && this.contents.hasIn(e);
---
> : !!Bk(this.contents) && this.contents.hasIn(e);
47889,47890c52569,52570
< ? (this.contents = lv(this.schema, [e], t))
< : fy(this.contents) && this.contents.set(e, t);
---
> ? (this.contents = hC(this.schema, [e], t))
> : vE(this.contents) && this.contents.set(e, t);
47893c52573
< cv(e)
---
> pC(e)
47896,47897c52576,52577
< ? (this.contents = lv(this.schema, Array.from(e), t))
< : fy(this.contents) && this.contents.setIn(e, t);
---
> ? (this.contents = hC(this.schema, Array.from(e), t))
> : vE(this.contents) && this.contents.setIn(e, t);
47923c52603
< this.schema = new hy(n);
---
> this.schema = new fE(n);
47945c52625
< stringify: sv,
---
> stringify: uC,
47947c52627
< c = Ug(this.contents, t || "", l);
---
> c = jk(this.contents, t || "", l);
47950c52630
< return "function" == typeof o ? py(o, { "": c }, "", c) : c;
---
> return "function" == typeof o ? mE(o, { "": c }, "", c) : c;
47977c52657
< const i = av(this, e);
---
> const i = cC(this, e);
47981c52661
< Og(this.contents) &&
---
> Nk(this.contents) &&
47988,47989c52668,52669
< let a = sv(this.contents, i, () => (o = null), e);
< o && (a = Yg(a, "", o)),
---
> let a = uC(this.contents, i, () => (o = null), e);
> o && (a = Zk(a, "", o)),
47993c52673
< } else t.push(sv(this.contents, i));
---
> } else t.push(uC(this.contents, i));
48002,48003c52682,52683
< function fy(e) {
< if (Ig(e)) return !0;
---
> function vE(e) {
> if (Bk(e)) return !0;
48006c52686
< class my extends Error {
---
> class yE extends Error {
48012c52692
< class gy extends my {
---
> class bE extends yE {
48017c52697
< class vy extends my {
---
> class wE extends yE {
48022c52702
< const yy = (e, t) => (n) => {
---
> const kE = (e, t) => (n) => {
48047c52727
< function by(e, t, n, i, r, o) {
---
> function CE(e, t, n, i, r, o) {
48119c52799
< function wy(e) {
---
> function EE(e) {
48137c52817
< if (wy(t)) return !0;
---
> if (EE(t)) return !0;
48144,48145c52824,52825
< const ky = "All mapping items must start at the same column";
< function Cy(e, t, n, i) {
---
> const xE = "All mapping items must start at the same column";
> function SE(e, t, n, i) {
48178c52858
< function xy(e, t, n, i, r, o) {
---
> function ME(e, t, n, i, r, o) {
48191c52871
< u = new kv(n.schema);
---
> u = new xC(n.schema);
48194c52874
< const r = by(n, a, !0, "explicit-key-ind", o, s),
---
> const r = CE(n, a, !0, "explicit-key-ind", o, s),
48204c52884
< : "indent" in c && c.indent !== i && s(o, ky)),
---
> : "indent" in c && c.indent !== i && s(o, xE)),
48216c52896
< : l.indent) !== i && s(o, ky);
---
> : l.indent) !== i && s(o, xE);
48219c52899
< wy(c) &&
---
> EE(c) &&
48224c52904
< const g = by(
---
> const g = CE(
48247c52927
< (o = i.range[1]), u.items.push(new fv(m, i));
---
> (o = i.range[1]), u.items.push(new vC(m, i));
48255c52935
< u.items.push(new fv(m));
---
> u.items.push(new vC(m));
48269c52949
< l = new gv(n.schema);
---
> l = new bC(n.schema);
48272c52952
< const i = by(n, o, !0, "seq-item-ind", r, a);
---
> const i = CE(n, o, !0, "seq-item-ind", r, a);
48300c52980
< s = a ? new kv(n.schema) : new gv(n.schema);
---
> s = a ? new xC(n.schema) : new bC(n.schema);
48317c52997
< function x() {
---
> function E() {
48323c53003
< function E(e) {
---
> function x(e) {
48325c53005
< (c ? d && (c.comment = h) : (c = t(n, v, i.items, e, x(), o)),
---
> (c ? d && (c.comment = h) : (c = t(n, v, i.items, e, E(), o)),
48328c53008
< s.items.push(l ? new fv(l, c) : new fv(c));
---
> s.items.push(l ? new vC(l, c) : new vC(c));
48332,48333c53012,53013
< const t = new kv(n.schema);
< (t.flow = !0), t.items.push(new fv(l, c)), e.items.push(t);
---
> const t = new xC(n.schema);
> (t.flow = !0), t.items.push(new vC(l, c)), e.items.push(t);
48359,48360c53039,53040
< Ag(e) && (e = e.value || e.key),
< Og(e)
---
> Ik(e) && (e = e.value || e.key),
> Nk(e)
48395c53075
< const e = new kv(n.schema);
---
> const e = new xC(n.schema);
48397c53077
< e.items.push(new fv(l, c)),
---
> e.items.push(new vC(l, c)),
48408c53088
< wy(C) && o(v, e);
---
> EE(C) && o(v, e);
48420c53100
< } else l = t(n, v, i.items, r, x(), o);
---
> } else l = t(n, v, i.items, r, E(), o);
48428c53108
< ? E(r)
---
> ? x(r)
48450c53130
< (c = e(n, S, x(), o)),
---
> (c = e(n, S, E(), o)),
48459c53139
< (l || c || m || g || b) && E(i.items.length);
---
> (l || c || m || g || b) && x(i.items.length);
48468c53148
< const e = Cy(T, v, n.options.strict, o);
---
> const e = SE(T, v, n.options.strict, o);
48477c53157
< const l = Dg(a) ? "map" : "seq";
---
> const l = Pk(a) ? "map" : "seq";
48486c53166
< h = Og(u) ? u : new Gg(u);
---
> h = Nk(u) ? u : new Xk(u);
48494c53174
< function Ey(e, t, n) {
---
> function TE(e, t, n) {
48545c53225
< const r = ">" === i.mode ? Gg.BLOCK_FOLDED : Gg.BLOCK_LITERAL,
---
> const r = ">" === i.mode ? Xk.BLOCK_FOLDED : Xk.BLOCK_LITERAL,
48601c53281
< r === Gg.BLOCK_LITERAL
---
> r === Xk.BLOCK_LITERAL
48631c53311
< function Sy({ offset: e, type: t, source: n, end: i }, r, o) {
---
> function DE({ offset: e, type: t, source: n, end: i }, r, o) {
48636c53316
< (a = Gg.PLAIN),
---
> (a = Xk.PLAIN),
48657c53337
< return My(e.trim());
---
> return AE(e.trim());
48661c53341
< (a = Gg.QUOTE_SINGLE),
---
> (a = Xk.QUOTE_SINGLE),
48665c53345
< return My(e.slice(1, -1)).replace(/''/g, "'");
---
> return AE(e.slice(1, -1)).replace(/''/g, "'");
48669c53349
< (a = Gg.QUOTE_DOUBLE),
---
> (a = Xk.QUOTE_DOUBLE),
48676c53356
< const { fold: t, offset: r } = Ty(e, i);
---
> const { fold: t, offset: r } = LE(e, i);
48680c53360
< const o = Dy[r];
---
> const o = PE[r];
48687c53367
< (n += Ay(e, i + 1, o, t)), (i += o);
---
> (n += IE(e, i + 1, o, t)), (i += o);
48710c53390
< const c = Cy(i, 0, r, l);
---
> const c = SE(i, 0, r, l);
48718c53398
< function My(e) {
---
> function AE(e) {
48732c53412
< function Ty(e, t) {
---
> function LE(e, t) {
48746c53426
< const Dy = {
---
> const PE = {
48766c53446
< function Ay(e, t, n, i) {
---
> function IE(e, t, n, i) {
48776c53456
< function Ly(e, t, n, i, r) {
---
> function OE(e, t, n, i, r) {
48784,48785c53464,53465
< ? Ey(t, e.options.strict, r)
< : Sy(t, e.options.strict, r),
---
> ? TE(t, e.options.strict, r)
> : DE(t, e.options.strict, r),
48789c53469
< if ("!" === n) return Py(e);
---
> if ("!" === n) return FE(e);
48811c53491
< Py(e)
---
> FE(e)
48825c53505
< return Py(e);
---
> return FE(e);
48830c53510
< h = Lg(t) ? t : new Gg(t);
---
> h = Ok(t) ? t : new Xk(t);
48832c53512
< r(o, e.message), (h = new Gg(a));
---
> r(o, e.message), (h = new Xk(a));
48845c53525
< const Py = (e) =>
---
> const FE = (e) =>
48847c53527
< function Iy(e, t, n) {
---
> function BE(e, t, n) {
48866,48867c53546,53547
< const Oy = { composeNode: Fy, composeEmptyNode: By };
< function Fy(e, t, n, i) {
---
> const NE = { composeNode: RE, composeEmptyNode: HE };
> function RE(e, t, n, i) {
48876,48877c53556,53557
< const s = new _g(a),
< l = Cy(i, t + n.length, e.options.strict, r);
---
> const s = new Gk(a),
> l = SE(i, t + n.length, e.options.strict, r);
48888c53568
< l = Ly(e, t, a, s, i);
---
> l = OE(e, t, a, s, i);
48893c53573
< l = xy(Oy, e, t, a, s, i);
---
> l = ME(NE, e, t, a, s, i);
48909c53589
< function By(
---
> function HE(
48917c53597
< const c = Ly(
---
> const c = OE(
48919c53599
< { type: "scalar", offset: Iy(t, n, i), indent: -1, source: "" },
---
> { type: "scalar", offset: BE(t, n, i), indent: -1, source: "" },
48926c53606
< function Ny(e) {
---
> function VE(e) {
48947c53627
< class Ry {
---
> class zE {
48956,48957c53636,53637
< ? this.warnings.push(new vy(e, t))
< : this.errors.push(new gy(e, t));
---
> ? this.warnings.push(new wE(e, t))
> : this.errors.push(new bE(e, t));
48974,48975c53654,53655
< l = new dy(void 0, s),
< c = by(l, i, !0, "doc-start", n, a);
---
> l = new gE(void 0, s),
> c = CE(l, i, !0, "doc-start", n, a);
48978,48980c53658,53660
< ? Fy(l, r, c, a)
< : By(l, n + c.length, i, null, c, a));
< const u = Cy(o, l.contents.range[1], !1, a);
---
> ? RE(l, r, c, a)
> : HE(l, n + c.length, i, null, c, a));
> const u = SE(o, l.contents.range[1], !1, a);
49004c53684
< n = new gy(-1, t);
---
> n = new bE(-1, t);
49013c53693
< this.errors.push(new gy(e.offset, t));
---
> this.errors.push(new bE(e.offset, t));
49016c53696
< const t = Cy(
---
> const t = SE(
49030c53710
< this.errors.push(new gy(-1, `Unsupported token ${e.type}`));
---
> this.errors.push(new bE(-1, `Unsupported token ${e.type}`));
49033,49034c53713,53714
< (this.directives = new qg({
< version: (null == t ? void 0 : t.version) || mv.version,
---
> (this.directives = new _k({
> version: (null == t ? void 0 : t.version) || yC.version,
49040c53720
< const { comment: n, afterEmptyLine: i } = Ny(this.prelude);
---
> const { comment: n, afterEmptyLine: i } = VE(this.prelude);
49045c53725
< else if (Ig(r) && !r.flow && r.items.length > 0) {
---
> else if (Bk(r) && !r.flow && r.items.length > 0) {
49064c53744
< comment: Ny(this.prelude).comment,
---
> comment: VE(this.prelude).comment,
49080c53760
< n = new dy(void 0, e);
---
> n = new gE(void 0, e);
49089c53769
< class Hy {
---
> class qE {
49106,49107c53786,53787
< const Vy = "";
< function zy(e) {
---
> const UE = "";
> function WE(e) {
49119,49122c53799,53802
< const qy = [",", "[", "]", "{", "}"],
< Uy = [" ", ",", "[", "]", "{", "}", "\n", "\r", "\t"],
< _y = (e) => !e || Uy.includes(e);
< class jy {
---
> const _E = [",", "[", "]", "{", "}"],
> jE = [" ", ",", "[", "]", "{", "}", "\n", "\r", "\t"],
> GE = (e) => !e || jE.includes(e);
> class KE {
49171c53851
< if (("---" === t || "..." === t) && zy(this.buffer[e + 3]))
---
> if (("---" === t || "..." === t) && WE(this.buffer[e + 3]))
49253c53933
< if ("---" === e && zy(this.charAt(3)))
---
> if ("---" === e && WE(this.charAt(3)))
49260c53940
< if ("..." === e && zy(this.charAt(3)))
---
> if ("..." === e && WE(this.charAt(3)))
49266c53946
< !zy(this.charAt(1)) &&
---
> !WE(this.charAt(1)) &&
49274c53954
< if (("-" === e || "?" === e || ":" === e) && zy(t)) {
---
> if (("-" === e || "?" === e || ":" === e) && WE(t)) {
49306c53986
< return this.pushUntil(_y), "doc";
---
> return this.pushUntil(GE), "doc";
49338c54018
< zy(i[3]))
---
> WE(i[3]))
49373c54053
< return this.pushUntil(_y), "flow";
---
> return this.pushUntil(GE), "flow";
49379c54059
< if (this.flowKey || zy(e) || "," === e)
---
> if (this.flowKey || WE(e) || "," === e)
49424c54104
< return this.pushUntil((e) => zy(e) || "#" === e);
---
> return this.pushUntil((e) => WE(e) || "#" === e);
49475c54155
< this.push(Vy), this.pushToIndex(t + 1, !0), this.parseLineStart()
---
> this.push(UE), this.pushToIndex(t + 1, !0), this.parseLineStart()
49486c54166
< if (zy(t) || (e && "," === t)) break;
---
> if (WE(t) || (e && "," === t)) break;
49488c54168
< } else if (zy(t)) {
---
> } else if (WE(t)) {
49490c54170
< if ("#" === r || (e && qy.includes(r))) break;
---
> if ("#" === r || (e && _E.includes(r))) break;
49500c54180
< if (e && qy.includes(t)) break;
---
> if (e && _E.includes(t)) break;
49504c54184
< ? (this.push(Vy), this.pushToIndex(n + 1, !0), e ? "flow" : "doc")
---
> ? (this.push(UE), this.pushToIndex(n + 1, !0), e ? "flow" : "doc")
49529c54209
< this.pushUntil(_y) + this.pushSpaces(!0) + this.pushIndicators()
---
> this.pushUntil(GE) + this.pushSpaces(!0) + this.pushIndicators()
49534c54214
< if (zy(this.charAt(1)))
---
> if (WE(this.charAt(1)))
49548c54228
< for (; !zy(t) && ">" !== t; ) t = this.buffer[++e];
---
> for (; !WE(t) && ">" !== t; ) t = this.buffer[++e];
49579c54259
< function Wy(e, t) {
---
> function YE(e, t) {
49583c54263
< function Gy(e) {
---
> function XE(e) {
49595c54275
< function Ky(e) {
---
> function $E(e) {
49622c54302
< function Yy(e) {
---
> function ZE(e) {
49636c54316
< function Xy(e) {
---
> function QE(e) {
49655c54335
< class Zy {
---
> class JE {
49680c54360
< case Vy:
---
> case UE:
49772c54452
< (this.lexer = new jy(this.next)),
---
> (this.lexer = new KE(this.next)),
49850c54530
< void (this.onKeyLine = !Wy(n.start, "explicit-key-ind"))
---
> void (this.onKeyLine = !YE(n.start, "explicit-key-ind"))
49881c54561
< !Gy(n.start) &&
---
> !XE(n.start) &&
49926c54606
< return void (Gy(e.start)
---
> return void (XE(e.start)
49948c54628
< const t = Xy(Yy(this.peek(2)));
---
> const t = QE(ZE(this.peek(2)));
49991c54671
< if (((this.onKeyLine = !1), !n.sep && Ky(n.start))) {
---
> if (((this.onKeyLine = !1), !n.sep && $E(n.start))) {
50015c54695
< (n.sep || Gy(n.start));
---
> (n.sep || XE(n.start));
50027c54707
< n.sep || Wy(n.start, "explicit-key-ind")
---
> n.sep || YE(n.start, "explicit-key-ind")
50041c54721
< if (n.value || (t && !Wy(n.start, "explicit-key-ind")))
---
> if (n.value || (t && !YE(n.start, "explicit-key-ind")))
50047c54727
< else if (Wy(n.sep, "map-value-ind"))
---
> else if (YE(n.sep, "map-value-ind"))
50057c54737
< Wy(n.start, "explicit-key-ind") &&
---
> YE(n.start, "explicit-key-ind") &&
50070c54750
< !Wy(n.sep, "newline")
---
> !YE(n.sep, "newline")
50072c54752
< const e = Xy(n.start),
---
> const e = QE(n.start),
50106c54786
< Wy(n.start, "explicit-key-ind") &&
---
> YE(n.start, "explicit-key-ind") &&
50120c54800
< if (!n.value && Ky(n.start)) {
---
> if (!n.value && $E(n.start)) {
50143c54823
< return void (n.value || Wy(n.start, "seq-item-ind")
---
> return void (n.value || YE(n.start, "seq-item-ind")
50193c54873
< const n = Xy(Yy(t)),
---
> const n = QE(ZE(t)),
50264c54944
< const t = Xy(Yy(e));
---
> const t = QE(ZE(e));
50304c54984
< function $y(e) {
---
> function ex(e) {
50307c54987
< lineCounter: (e && e.lineCounter) || (t && new Hy()) || null,
---
> lineCounter: (e && e.lineCounter) || (t && new qE()) || null,
50311c54991
< function Qy(e, t, n) {
---
> function tx(e, t, n) {
50317c54997
< const { lineCounter: n, prettyErrors: i } = $y(t);
---
> const { lineCounter: n, prettyErrors: i } = ex(t);
50319c54999
< const o = new Ry((e) => {
---
> const o = new zE((e) => {
50324c55004
< r.errors.push(new gy(e.range[0], t));
---
> r.errors.push(new bE(e.range[0], t));
50329c55009
< new Zy(o.next, null == n ? void 0 : n.addNewLine).parse(e),
---
> new JE(o.next, null == n ? void 0 : n.addNewLine).parse(e),
50333c55013
< (r.errors.forEach(yy(e, n)), r.warnings.forEach(yy(e, n))),
---
> (r.errors.forEach(kE(e, n)), r.warnings.forEach(kE(e, n))),
50339c55019
< (r.warnings.forEach((e) => hv(r.options.logLevel, e)),
---
> (r.warnings.forEach((e) => fC(r.options.logLevel, e)),
50347,50408c55027,55039
< var Jy = n(914),
< eb = n.n(Jy),
< tb = n(2854),
< nb = n.n(tb),
< ib = n(5572),
< rb = eb(),
< ob = ib.Parser,
< ab = (function () {
< function e() {
< this.transformers = [];
< }
< return (
< (e.prototype.addTransformer = function (e) {
< this.transformers.push(e);
< }),
< (e.prototype.removeTransformer = function (e) {
< for (var t = this.transformers, n = 0; n < t.length; )
< t[n] === e ? t.splice(n, 1) : n++;
< }),
< e
< );
< })();
< function sb(e, t, n, i, r) {
< i.locator = r;
< var o = e.prototype.inlineTokenizers,
< a = e.prototype.inlineMethods;
< (o[t] = i), a.splice(a.indexOf(n), 0, t);
< }
< function lb(e, t, n, i, r) {
< i.locator = r;
< var o = e.prototype.blockTokenizers,
< a = e.prototype.blockMethods;
< (o[t] = i), a.splice(a.indexOf(n), 0, t);
< }
< function cb(e, t, n) {
< for (var i = 0; i < e.length && e[i][0] !== t; i++);
< e.splice(i + 1, 0, [n]);
< }
< var ub = nb();
< function hb(e, t) {
< var n = t.position.end,
< i = t.position.end,
< r = t.children;
< return (
< r.length > 0 &&
< ((n = r[0].position.start), (i = r[r.length - 1].position.end)),
< e.substring(n.offset, i.offset).trim()
< );
< }
< var pb = n(914),
< db = n(2854),
< fb = n(7361),
< mb = n(1744),
< gb = n(6630),
< vb = n(719),
< yb = n(5426),
< bb = n(6115),
< wb = n(1696),
< kb = n(4617),
< Cb = {}.hasOwnProperty,
< xb = !1;
< function Eb(e, t) {
---
> var nx = n(914),
> ix = n(2854),
> rx = n(7361),
> ox = n(1744),
> ax = n(6630),
> sx = n(719),
> lx = n(5426),
> cx = n(6115),
> ux = n(1696),
> hx = n(4617),
> px = {}.hasOwnProperty,
> dx = !1;
> function fx(e, t) {
50412,50413c55043,55044
< xb ||
< ((xb = !0),
---
> dx ||
> ((dx = !0),
50421c55052
< (a.definition = n.definitions || gb(e)),
---
> (a.definition = n.definitions || ax(e)),
50425c55056
< (a.handlers = Object.assign({}, kb, n.handlers)),
---
> (a.handlers = Object.assign({}, hx, n.handlers)),
50428c55059
< db(e, "footnoteDefinition", function (e) {
---
> ix(e, "footnoteDefinition", function (e) {
50430c55061
< Cb.call(r, t) || (r[t] = e);
---
> px.call(r, t) || (r[t] = e);
50457c55088
< mb(i) || (t.position = { start: fb.start(i), end: fb.end(i) }),
---
> ox(i) || (t.position = { start: rx.start(i), end: rx.end(i) }),
50476,50482c55107,55113
< i = vb(n, e),
< r = wb(n);
< return r && (i.children = i.children.concat(pb("text", "\n"), r)), i;
< }
< var Sb = 32,
< Mb = 91;
< function Tb(e, t, n, i) {
---
> i = sx(n, e),
> r = ux(n);
> return r && (i.children = i.children.concat(nx("text", "\n"), r)), i;
> }
> var mx = 32,
> gx = 91;
> function vx(e, t, n, i) {
50487,50551c55118
< function Db(e) {
< if (!e) return "";
< var t = e.indexOf("|");
< return (
< -1 !== t && ("\\" === e.charAt(t - 1) && t--, (e = e.slice(0, t))),
< (e = e.trim())
< );
< }
< function Ab(e) {
< return (
< !(!e.startsWith("./") && !e.startsWith("../")) ||
< -1 === e.indexOf(":")
< );
< }
< function Lb(e) {
< try {
< return new URL(e).toString();
< } catch (e) {
< console.log(e);
< }
< return encodeURI(decodeURI(e));
< }
< function Pb(e) {
< if ((e = e.trim()).startsWith("<")) {
< var t = e.indexOf(">");
< if (-1 !== t) return e.substring(1, t);
< }
< var n = /\s/.exec(e);
< return n ? e.substring(0, n.index) : e;
< }
< var Ib = /\u00A0/g;
< function Ob(e) {
< return e.replace(Ib, " ");
< }
< function Fb(e) {
< return e.replace(/[\\\x00\x08\x0B\x0C\x0E-\x1F ]/g, function (e) {
< return encodeURIComponent(e);
< });
< }
< function Bb(e) {
< var t = e.match(/^#{1,6} (.*)/m);
< return null !== t ? t[1] : null;
< }
< function Nb(e) {
< return e
< .split("#")
< .filter(function (e) {
< return !!e;
< })
< .join(" > ")
< .trim();
< }
< function Rb(e) {
< var t = "",
< n = e.indexOf("|"),
< i = n > 0;
< return (
< i
< ? ((t = e.substr(n + 1).trim()), (e = e.substr(0, n).trim()))
< : (t = Nb((e = e.trim()))),
< e.endsWith("\\") && (e = e.substr(0, e.length - 1)),
< { href: (e = Ob(e).trim()), title: t, isAlias: i }
< );
< }
< function Hb(e) {
---
> function yx(e) {
50555,50556c55122,55123
< function Vb(e, t) {
< var n = Hb(e);
---
> function bx(e, t) {
> var n = yx(e);
50564,50573c55131,55142
< var zb = ob;
< zb.globalOptions = { breaks: !0, commonmark: !0 };
< var qb = new ab(),
< Ub = new ab(),
< _b = {};
< function jb(e) {
< var t = yg()(e),
< n = new zb(String(t), t);
< n.setOptions(zb.globalOptions);
< for (var i = n.parse(), r = 0, o = qb.transformers; r < o.length; r++) {
---
> var wx =
> /^#[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]+/;
> var kx = Jw;
> kx.globalOptions = { breaks: !0, commonmark: !0 };
> var Cx = new ek(),
> Ex = new ek(),
> xx = {};
> function Sx(e) {
> var t = kk()(e),
> n = new kx(String(t), t);
> n.setOptions(kx.globalOptions);
> for (var i = n.parse(), r = 0, o = Cx.transformers; r < o.length; r++) {
50584c55153
< sb(
---
> tk(
50620c55189
< })(zb),
---
> })(kx),
50624c55193
< sb(
---
> tk(
50635c55204
< s = Rb(o),
---
> s = mk(o),
50657c55226
< ((h["aria-label"] = Nb(l)),
---
> ((h["aria-label"] = fk(l)),
50678c55247
< })(zb),
---
> })(kx),
50680,50684c55249,55251
< var t =
< /^#[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]+/,
< n = /^#\d+$/,
< i = /\s/;
< sb(
---
> var t = /^#\d+$/,
> n = /\s/;
> tk(
50688,50691c55255,55258
< function (e, i, r) {
< var o = t.exec(i);
< if (o) {
< var a = o[0];
---
> function (e, n, i) {
> var r = wx.exec(n);
> if (r) {
> var o = r[0];
50693,50695c55260,55262
< !n.test(a) &&
< (!!r ||
< e(a)({
---
> !t.test(o) &&
> (!!i ||
> e(o)({
50697c55264
< tag: a,
---
> tag: o,
50700,50701c55267,55268
< hProperties: { className: "tag", href: a },
< hChildren: [{ type: "text", value: a }],
---
> hProperties: { className: "tag", href: o },
> hChildren: [{ type: "text", value: o }],
50708,50712c55275,55279
< for (var n = t; -1 !== (n = e.indexOf("#", n)); ) {
< if (n <= 0) return n;
< var r = e.charAt(n - 1);
< if (i.test(r)) return n;
< n++;
---
> for (var i = t; -1 !== (i = e.indexOf("#", i)); ) {
> if (i <= 0) return i;
> var r = e.charAt(i - 1);
> if (n.test(r)) return i;
> i++;
50716c55283
< })(zb),
---
> })(kx),
50744c55311
< ub(e, "listItem", t);
---
> rk(e, "listItem", t);
50746c55313
< })(qb),
---
> })(Cx),
50748c55315
< sb(
---
> tk(
50826c55393
< })(zb),
---
> })(kx),
50828c55395
< lb(e, "math", "fencedCode", function (e, t, n) {
---
> nk(e, "math", "fencedCode", function (e, t, n) {
50887,50890c55454,55457
< cb(t.interruptParagraph, "fencedCode", "math"),
< cb(t.interruptList, "fencedCode", "math"),
< cb(t.interruptBlockquote, "fencedCode", "math");
< })(zb),
---
> ik(t.interruptParagraph, "fencedCode", "math"),
> ik(t.interruptList, "fencedCode", "math"),
> ik(t.interruptBlockquote, "fencedCode", "math");
> })(kx),
50906c55473
< sb(
---
> tk(
50921c55488
< if (94 === t.charCodeAt(h++) && t.charCodeAt(h++) === Mb) {
---
> if (94 === t.charCodeAt(h++) && t.charCodeAt(h++) === gx) {
50926c55493
< else if (r === Mb) p++, h++;
---
> else if (r === gx) p++, h++;
50958c55525
< lb(e, "footnoteDefinition", "definition", function (e, t, n) {
---
> nk(e, "footnoteDefinition", "definition", function (e, t, n) {
50979c55546
< k < w && (9 === (s = t.charCodeAt(k)) || s === Sb);
---
> k < w && (9 === (s = t.charCodeAt(k)) || s === mx);
50983c55550
< if (t.charCodeAt(k++) === Mb && 94 === t.charCodeAt(k++)) {
---
> if (t.charCodeAt(k++) === gx && 94 === t.charCodeAt(k++)) {
50989c55556
< s === Sb
---
> s === mx
51016,51017c55583,55584
< if (s === Sb || 9 === s)
< (d += s === Sb ? 1 : 4 - (d % 4)) > 4 &&
---
> if (s === mx || 9 === s)
> (d += s === mx ? 1 : 4 - (d % 4)) > 4 &&
51024c55591
< Tb(y, a, v, [e, t.slice(k, 1024), !0]))
---
> vx(y, a, v, [e, t.slice(k, 1024), !0]))
51056c55623
< sb(
---
> tk(
51067c55634
< if (t.charCodeAt(l++) === Mb && 94 === t.charCodeAt(l++)) {
---
> if (t.charCodeAt(l++) === gx && 94 === t.charCodeAt(l++)) {
51073c55640
< a === Sb
---
> a === mx
51106c55673
< t.charCodeAt(i) === Mb && 94 !== t.charCodeAt(i + 1))
---
> t.charCodeAt(i) === gx && 94 !== t.charCodeAt(i + 1))
51111c55678
< for (var i = 0, r = t.charCodeAt(i); r === Sb || 9 === r; )
---
> for (var i = 0, r = t.charCodeAt(i); r === mx || 9 === r; )
51113c55680
< if (r === Mb && 94 !== t.charCodeAt(i + 1))
---
> if (r === gx && 94 !== t.charCodeAt(i + 1))
51118c55685
< })(zb),
---
> })(kx),
51135c55702
< })(zb),
---
> })(kx),
51160c55727
< })(zb),
---
> })(kx),
51164c55731
< sb(
---
> tk(
51185c55752
< lb(e, "blockid", "paragraph", function (e, t, n) {
---
> nk(e, "blockid", "paragraph", function (e, t, n) {
51192c55759
< })(zb),
---
> })(kx),
51195c55762
< ub(e, "link", function (e, t, n) {
---
> rk(e, "link", function (e, t, n) {
51197c55764
< if (i && Ab(i)) {
---
> if (i && sk(i)) {
51204c55771
< var o = Ob(r).trim();
---
> var o = hk(r).trim();
51208a55776
> converted: !0,
51225c55793
< })(qb),
---
> })(Cx),
51228c55796
< ub(e, "image", function (e, t, n) {
---
> rk(e, "image", function (e, t, n) {
51230c55798
< if (i && Ab(i)) {
---
> if (i && sk(i)) {
51237c55805
< var o = Ob(r).trim();
---
> var o = hk(r).trim();
51256c55824
< })(qb),
---
> })(Cx),
51288c55856
< ub(e, "footnoteDefinition", function (e) {
---
> rk(e, "footnoteDefinition", function (e) {
51293c55861
< ub(e, ["footnote", "footnoteReference"], function (e) {
---
> rk(e, ["footnote", "footnoteReference"], function (e) {
51377c55945
< })(qb),
---
> })(Cx),
51380c55948
< ub(e, "image", function (e) {
---
> rk(e, "image", function (e) {
51385c55953
< Vb(t.substr(n + 1), e) && (e.alt = t.substr(0, n));
---
> bx(t.substr(n + 1), e) && (e.alt = t.substr(0, n));
51389c55957
< })(qb),
---
> })(Cx),
51392c55960
< ub(e, "iembed", function (e) {
---
> rk(e, "iembed", function (e) {
51396,51397c55964,55965
< if (-1 !== n) Vb(t.substr(n + 1), e) && (t = t.substr(0, n));
< else Vb(t, e) && (t = "");
---
> if (-1 !== n) bx(t.substr(n + 1), e) && (t = t.substr(0, n));
> else bx(t, e) && (t = "");
51402c55970
< })(qb),
---
> })(Cx),
51419c55987
< ub(i, "listItem", function (e) {
---
> rk(i, "listItem", function (e) {
51421c55989
< ub(e, ["list", "blockid"], function (e) {
---
> rk(e, ["list", "blockid"], function (e) {
51432c56000
< ub(i, "blockid", function (e) {
---
> rk(i, "blockid", function (e) {
51444c56012
< })(qb, _b),
---
> })(Cx, xx),
51447,51448c56015,56016
< ub(e, "heading", function (e, n, i) {
< var r = hb(t, e);
---
> rk(e, "heading", function (e, n, i) {
> var r = ok(t, e);
51452c56020
< })(qb),
---
> })(Cx),
51487c56055
< yb(e, t)
---
> lx(e, t)
51493c56061
< e({}, "div", { className: "callout-title-inner" }, yb(e, t)),
---
> e({}, "div", { className: "callout-title-inner" }, lx(e, t)),
51501c56069
< bb(yb(e, t), !0)
---
> cx(lx(e, t), !0)
51505c56073
< ub(e, "blockquote", function (e) {
---
> rk(e, "blockquote", function (e) {
51587c56155
< })(qb, _b),
---
> })(Cx, xx),
51604c56172
< ub(e, { type: "element", tagName: "a" }, t);
---
> rk(e, { type: "element", tagName: "a" }, t);
51606c56174
< })(Ub),
---
> })(Ex),
51611c56179
< e(t, "code", { className: "language-yaml" }, [rb("text", n)]),
---
> e(t, "code", { className: "language-yaml" }, [Qw("text", n)]),
51614c56182
< })(0, _b),
---
> })(0, xx),
51617c56185
< sb(
---
> tk(
51643c56211
< lb(e, "comment", "fencedCode", function (e, t, n) {
---
> nk(e, "comment", "fencedCode", function (e, t, n) {
51675,51681c56243,56269
< cb(i.interruptParagraph, "fencedCode", "comment"),
< cb(i.interruptList, "fencedCode", "comment"),
< cb(i.interruptBlockquote, "fencedCode", "comment");
< })(zb, _b);
< var Wb = /^---(\r?\n)/g,
< Gb = /---(\r?\n|$)/g;
< function Kb(e) {
---
> ik(i.interruptParagraph, "fencedCode", "comment"),
> ik(i.interruptList, "fencedCode", "comment"),
> ik(i.interruptBlockquote, "fencedCode", "comment");
> })(kx, xx);
> var Mx = /^---(\r?\n)/g,
> Tx = /---(\r?\n|$)/g;
> function Dx(e) {
> Mx.lastIndex = 0;
> var t = Mx.exec(e);
> if (!t) return null;
> var n = t.index,
> i = Mx.lastIndex;
> Tx.lastIndex = i;
> for (var r = Tx.exec(e); r && "\n" !== e.charAt(r.index - 1); )
> r = Tx.exec(e);
> if (!r) return null;
> var o = r.index,
> a = Tx.lastIndex;
> return {
> frontMatter: e.slice(i, o),
> from: i,
> to: o,
> blockFrom: n,
> blockTo: a,
> };
> }
> function Ax(e) {
51685c56273
< function Yb(e) {
---
> function Lx(e) {
51689,51690c56277,56279
< var n = Qy(t.value, void 0, {});
< if ("object" == typeof n) return n || void 0;
---
> var n = tx(t.value, void 0, {});
> if (n && "object" == typeof n && !Array.isArray(n))
> return n || void 0;
51695,51697c56284,56286
< function Xb(e, t) {
< ((t = t || {}).allowDangerousHtml = !0), (t.handlers = _b);
< for (var n = Eb(e, t), i = 0, r = Ub.transformers; i < r.length; i++) {
---
> function Px(e, t) {
> ((t = t || {}).allowDangerousHtml = !0), (t.handlers = xx);
> for (var n = fx(e, t), i = 0, r = Ex.transformers; i < r.length; i++) {
51700c56289
< return fg()(n, { allowDangerousHtml: !0 });
---
> return vk()(n, { allowDangerousHtml: !0 });
51702,51703c56291,56292
< var Zb = Object.prototype.hasOwnProperty;
< function $b(e, t) {
---
> var Ix = Object.prototype.hasOwnProperty;
> function Ox(e, t) {
51705,51706c56294,56295
< if ("string" == typeof t) return Zb.call(e, t) ? e[t] : null;
< for (var n in e) if (Zb.call(e, n) && t.test(n)) return e[n];
---
> if ("string" == typeof t) return Ix.call(e, t) ? e[t] : null;
> for (var n in e) if (Ix.call(e, n) && t.test(n)) return e[n];
51709c56298
< function Qb(e, t, n) {
---
> function Fx(e, t, n) {
51711c56300
< var i = $b(e, t);
---
> var i = Ox(e, t);
51731,51732c56320,56321
< function Jb(e) {
< return e ? Qb(e, /^alias(es)?$/i) : null;
---
> function Bx(e) {
> return e ? Fx(e, /^alias(es)?$/i) : null;
51734c56323
< function ew(e) {
---
> function Nx(e) {
51736c56325
< var t = Qb(e, /^tag(s)?$/i, !0);
---
> var t = Fx(e, /^tag(s)?$/i, !0);
51744,51745c56333,56334
< function tw(e) {
< return e ? Qb(e, /^cssclass(es)?$/i, !0) : null;
---
> function Rx(e) {
> return e ? Fx(e, /^cssclass(es)?$/i, !0) : null;
51747,51748c56336,56337
< function nw(e) {
< return gg()(e);
---
> function Hx(e) {
> return bk()(e);
51750c56339
< function iw(e) {
---
> function Vx(e) {
51755c56344
< t.push(rw(r));
---
> t.push(zx(r));
51759c56348
< function rw(e) {
---
> function zx(e) {
51764c56353
< var n = iw(e.children);
---
> var n = Vx(e.children);
51772c56361
< (e.hasOwnProperty("children") && iw(e.children).join("")) ||
---
> (e.hasOwnProperty("children") && Vx(e.children).join("")) ||
51775c56364,56368
< "tableCell" === t ? (i += " ") : "tableRow" === t && (i += "\n"), i
---
> "paragraph" === t || "break" === t
> ? (i += "\n")
> : i.endsWith("\n") && (i = i.substring(0, i.length - 1)),
> "tableCell" === t ? (i += " ") : "tableRow" === t && (i += "\n"),
> i
51778,52087c56371,56403
< var ow = (function (e) {
< function t(t, n, i, r) {
< var o = e.call(this) || this;
< return (
< (o.app = t),
< (o.properties = sw(i)),
< (o.saveFrontmatter = r),
< (o.renderComponent = new lf()),
< (o.rendered = []),
< o.addChild(o.renderComponent),
< (o.containerEl = n.createDiv({ cls: "metadata-container" })),
< (o.propertyListEl = o.containerEl.createDiv(
< "metadata-properties"
< )),
< o.containerEl.createDiv(
< "metadata-add-button text-icon-button",
< function (e) {
< e.createSpan("text-button-icon", function (e) {
< return kf(e, "lucide-plus");
< }),
< e.createSpan({
< cls: "text-button-label",
< text: "Add property",
< }),
< e.addEventListener("click", function () {
< return o.addProperty();
< });
< }
< ),
< o
< );
< }
< return (
< f(t, e),
< (t.mount = function (e, n, i, r) {
< var o = new t(e, n, i, r);
< return o.render(), o;
< }),
< (t.prototype.onload = function () {
< this.registerEvent(
< this.app.metadataTypeManager.on(
< "changed",
< this.onMetadataTypeChange,
< this
< )
< );
< }),
< (t.prototype.focusProperty = function (e) {
< var t = this.rendered.find(function (t) {
< return t.entry.key === e;
< });
< null == t || t.sectionEl.focus();
< }),
< (t.prototype.focusKey = function (e) {
< var t = this.rendered.find(function (t) {
< return t.entry.key === e;
< });
< null == t || t.keyInputEl.focus();
< }),
< (t.prototype.focusValue = function (e) {
< var t = this.rendered.find(function (t) {
< return t.entry.key === e;
< });
< if (t)
< if (t.rendered) t.rendered.focus();
< else {
< var n = t.valueEl.find("input");
< n.focus(), n.select();
< }
< }),
< (t.prototype.render = function () {
< var e = this;
< this.renderComponent.unload(),
< (this.rendered = []),
< this.propertyListEl.empty();
< for (
< var t = function (t) {
< var i = new aw(
< n.app,
< n,
< t,
< n.propertyListEl,
< function (n) {
< return e.updateKey(t, n);
< },
< function (n) {
< return e.updateValue(t, n);
< },
< function (n) {
< return e.reorderKey(t, n);
< },
< function () {
< return e.removeProperty(t.key);
< }
< );
< n.renderComponent.addChild(i), n.rendered.push(i);
< },
< n = this,
< i = 0,
< r = this.properties;
< i < r.length;
< i++
< ) {
< t(r[i]);
< }
< this.renderComponent.load();
< }),
< (t.prototype.onMetadataTypeChange = function (e) {
< this.render();
< }),
< (t.prototype.synchronize = function (e) {
< var t = sw(e),
< n = !0;
< if (t.length === this.rendered.length) {
< n = !1;
< for (var i = 0; i < t.length; i++) {
< var r = t[i],
< o = this.rendered[i].entry;
< if (
< !o ||
< r.key !== o.key ||
< r.value !== o.value ||
< r.type !== o.type
< ) {
< n = !0;
< break;
< }
< }
< }
< n && ((this.properties = t), this.render());
< }),
< (t.prototype.serialize = function () {
< for (var e = {}, t = 0, n = this.properties; t < n.length; t++) {
< var i = n[t];
< e[i.key] = i.value;
< }
< return e;
< }),
< (t.prototype.addProperty = function () {
< var e = this.serialize();
< (e[""] = ""),
< this.synchronize(e),
< this.saveFrontmatter(e),
< this.focusKey("");
< }),
< (t.prototype.removeProperty = function (e) {
< var t = this.serialize();
< delete t[e], this.synchronize(t), this.saveFrontmatter(t);
< }),
< (t.prototype.updateKey = function (e, t) {
< e.key = t;
< var n = this.serialize();
< this.synchronize(n), this.saveFrontmatter(n);
< }),
< (t.prototype.updateValue = function (e, t) {
< e.value = t;
< var n = this.serialize();
< this.saveFrontmatter(n);
< }),
< (t.prototype.reorderKey = function (e, t) {
< var n = this.serialize();
< delete n[e.key];
< for (var i = {}, r = Object.keys(n), o = 0; o < r.length; o++) {
< o === t && (i[e.key] = e.value);
< var a = r[o];
< i[a] = n[a];
< }
< t >= r.length && (i[e.key] = e.value), this.saveFrontmatter(i);
< }),
< t
< );
< })(lf),
< aw = (function (e) {
< function t(t, n, i, r, o, a, s, l) {
< var c = e.call(this) || this;
< (c.app = t),
< (c.metaEditor = n),
< (c.entry = i),
< (c.updateKey = o),
< (c.updateValue = a),
< (c.reorderKey = s),
< (c.removeProperty = l);
< var u = (c.type = c.app.metadataTypeManager.getType(i));
< return (
< (c.sectionEl = r.createDiv({
< cls: "metadata-property",
< attr: { tabIndex: 0 },
< })),
< c.sectionEl.setAttr("data-property-key", i.key),
< c.sectionEl.setAttr("data-property-type", i.type),
< c.sectionEl.addEventListener("keydown", function (e) {
< if (!c.keyInputEl.isActiveElement())
< if ("Enter" === e.key)
< e.preventDefault(), c.metaEditor.focusValue(i.key);
< else if ("ArrowDown" === e.key) {
< e.preventDefault();
< var t = c.metaEditor.rendered.indexOf(c),
< n = c.metaEditor.properties[t + 1];
< n && c.metaEditor.focusProperty(n.key);
< } else if ("ArrowUp" === e.key) {
< e.preventDefault();
< t = c.metaEditor.rendered.indexOf(c);
< var r = c.metaEditor.properties[t - 1];
< r && c.metaEditor.focusProperty(r.key);
< }
< }),
< (c.keyEl = c.sectionEl.createDiv({
< cls: "metadata-property-key",
< attr: { tabIndex: 0 },
< })),
< (c.iconEl = c.keyEl.createSpan(
< { cls: "metadata-property-icon" },
< function (e) {
< var t;
< kf(
< e,
< null !== (t = u.icon) && void 0 !== t
< ? t
< : "lucide-file-text"
< ),
< Jm(e, "Change type"),
< e.addEventListener("click", c.showPropertyMenu.bind(c)),
< e.addEventListener(
< "contextmenu",
< c.showPropertyMenu.bind(c)
< ),
< ot(e, c.sectionEl, r, 10, function () {}, c.reorderKey);
< }
< )),
< (c.keyInputEl = c.keyEl.createEl(
< "input",
< {
< cls: "metadata-property-key-input",
< value: c.entry.key,
< type: "text",
< },
< function (e) {
< e.addEventListener("blur", function (t) {
< c.handleUpdateKey(e.value);
< }),
< e.addEventListener("keydown", function (n) {
< if (!n.isComposing)
< if ("Tab" === n.key || "Enter" === n.key) {
< n.preventDefault();
< var r = e.value;
< c.handleUpdateKey(r),
< t.nextFrame(function () {
< c.metaEditor.focusValue(r);
< });
< } else
< "Escape" === n.key &&
< (n.preventDefault(),
< (e.value = i.key),
< c.sectionEl.focus());
< }),
< new mw(t, e, c.metaEditor.properties, function (n) {
< e.value = n.text;
< var i = e.value;
< c.handleUpdateKey(i),
< t.nextFrame(function () {
< c.metaEditor.focusValue(i);
< });
< });
< }
< )),
< (c.valueEl = c.sectionEl.createDiv("metadata-property-data")),
< c.renderProperty(),
< c
< );
< }
< return (
< f(t, e),
< (t.prototype.showPropertyMenu = function (e) {
< var t = this,
< n = new rg();
< this.sectionEl.addClass("has-active-menu"),
< n.addSections(["title", "action", "", "danger"]),
< n.setSectionSubmenu("action.changeType", {
< title: "Property type",
< icon: "lucide-menu",
< disabled: hg.hasOwnProperty(this.entry.key),
< });
< for (
< var i = this.app.metadataTypeManager.registeredTypeWidgets,
< r = function (e) {
< n.addItem(function (n) {
< var i;
< return n
< .setTitle(e.name())
< .setIcon(
< null !== (i = e.icon) && void 0 !== i
< ? i
< : "lucide-pencil"
< )
< .setSection("action.changeType")
< .setChecked(e.type === t.type.type)
< .onClick(function () {
< t.app.metadataTypeManager.setType(
< t.entry.key,
< e.type
< );
< });
< });
< },
< o = 0,
< a = Object.values(i);
< o < a.length;
< o++
< ) {
< r(a[o]);
---
> function qx(e) {
> return e.hasOwnProperty("position");
> }
> function Ux(e) {
> return e.hasOwnProperty("key");
> }
> function Wx(e) {
> return e.hasOwnProperty("heading");
> }
> function _x(e) {
> return { line: e.line - 1, col: e.column - 1, offset: e.offset };
> }
> function jx(e) {
> return { start: _x(e.start), end: _x(e.end) };
> }
> function Gx(e) {
> var t = [],
> n = function (e, n, r) {
> var o = e ? e + "." + n : n;
> if ("string" == typeof r) {
> if (r.startsWith("[[") && r.endsWith("]]")) {
> var a = mk(r.substring(2, r.length - 2)),
> s = a.title,
> l = a.href;
> t.push({ key: o, link: l, original: r, displayText: s });
> }
> } else i(o, r);
> },
> i = function (e, t) {
> if (Array.isArray(t))
> for (var i = 0; i < t.length; i++) {
> var r = t[i];
> n(e, String(i), r);
52089,52154c56405,56408
< n.addItem(function (e) {
< return e
< .setTitle("Remove")
< .setWarning(!0)
< .setSection("danger")
< .setIcon("lucide-pencil")
< .onClick(function () {
< t.removeProperty();
< });
< }),
< n.onHide(function () {
< t.sectionEl.removeClass("has-active-menu");
< }),
< n.setParentElement(this.iconEl).showAtMouseEvent(e);
< }),
< (t.prototype.handleUpdateKey = function (e) {
< this.updateKey(e), (this.entry.key = e);
< }),
< (t.prototype.handleUpdateValue = function (e) {
< this.updateValue(e), (this.entry.value = e);
< }),
< (t.prototype.renderProperty = function () {
< this.rendered &&
< (this.removeChild(this.rendered),
< this.valueEl.empty(),
< (this.rendered = void 0));
< var e = (this.type = this.app.metadataTypeManager.getType(
< this.entry
< ));
< (this.rendered = e.render(this.valueEl, this.entry.value, {
< app: this.app,
< properties: this.metaEditor.properties,
< key: this.entry.key,
< update: this.handleUpdateValue.bind(this),
< })),
< this.rendered && this.addChild(this.rendered);
< }),
< t
< );
< })(lf);
< function sw(e) {
< var t = [];
< if (!e) return t;
< for (
< var n = ew(e), i = Jb(e), r = tw(e), o = 0, a = Object.entries(e);
< o < a.length;
< o++
< ) {
< var s = a[o],
< l = s[0],
< c = s[1];
< e.hasOwnProperty(l) &&
< (l.match(/^alias(es)?$/i)
< ? ((l = "aliases"), (c = i))
< : l.match(/^cssclass(es)?$/i)
< ? ((l = "cssclasses"), (c = r))
< : l.match(/^tag(s)?$/i) && ((l = "tags"), (c = n)),
< null == c || "string" == typeof c
< ? t.push({ key: l, type: "text", value: c })
< : "number" == typeof c
< ? t.push({ key: l, type: "number", value: c })
< : "boolean" == typeof c
< ? t.push({ key: l, type: "checkbox", value: c })
< : Tt(c) && t.push({ key: l, type: "multitext", value: c }));
< }
< return t;
---
> else if ("object" == typeof t)
> for (var o in t) t.hasOwnProperty(o) && n(e, o, t[o]);
> };
> return i("", e), t;
52156,52325c56410,56418
< !(function (e) {
< function t(t) {
< var n = e.call(this) || this;
< return (n.containerEl = t), n;
< }
< f(t, e),
< (t.prototype.onFocus = function () {}),
< (t.prototype.focus = function () {
< this.onFocus();
< });
< })(lf);
< var lw = {
< name: function () {
< return "Text";
< },
< type: "text",
< icon: "lucide-text",
< default: function () {
< return "";
< },
< render: function (e, t, n) {
< var i = e.createEl("input", {
< cls: "metadata-input metadata-input-text",
< placeholder: "No value",
< value: null != t ? t : "",
< type: "text",
< attr: { tabIndex: 0 },
< });
< return (
< i.addEventListener("blur", function (e) {
< n.update(i.value);
< }),
< new fw(n.app, i, n, function (e, t) {
< (i.value = e.text), n.update(i.value);
< }),
< null
< );
< },
< },
< cw = {
< name: function () {
< return "Tags";
< },
< type: "tags",
< icon: "lucide-tags",
< default: function () {
< return [];
< },
< render: function (e, t, n) {
< t ? "string" == typeof t && (t = [t]) : (t = []);
< var i = new Cm(e)
< .setOptionRenderer(function (e, t) {
< t.createEl("span", { text: e });
< })
< .preventDuplicates(function (e, t) {
< return t.indexOf(e);
< })
< .allowCreatingOptions(function (e) {
< return e.slice(1);
< })
< .setValues(t)
< .onChange(function (e) {
< return n.update(e);
< }),
< r = i.inputEl;
< return (
< new vw(n.app, r, function (e) {
< (r.value = ""), i.addElement(e.tag);
< }),
< null
< );
< },
< },
< uw = {
< name: function () {
< return "Date";
< },
< type: "date",
< icon: "lucide-calendar",
< default: function () {
< return "";
< },
< render: function (e, t, n) {
< var i = "";
< try {
< i = t ? new Date(t).toISOString().substring(0, 10) : "";
< } catch (e) {}
< var r = e.createEl("input", {
< cls: "metadata-input metadata-input-text",
< type: "date",
< placeholder: "No value",
< value: i,
< });
< return (
< r.addEventListener("blur", function (e) {
< n.update(r.value);
< }),
< null
< );
< },
< },
< hw = {
< name: function () {
< return "Time";
< },
< type: "datetime",
< icon: "lucide-clock",
< default: function () {
< return "";
< },
< render: function (e, t, n) {
< var i = e.createEl("input", {
< cls: "metadata-input metadata-input-text",
< type: "datetime-local",
< placeholder: "No value",
< value: t,
< });
< return (
< i.addEventListener("blur", function (e) {
< n.update(i.value);
< }),
< null
< );
< },
< },
< pw = {
< name: function () {
< return "Number";
< },
< type: "number",
< icon: "lucide-binary",
< default: function () {
< return 0;
< },
< render: function (e, t, n) {
< var i = e.createEl("input", {
< cls: "metadata-input metadata-input-number",
< type: "number",
< placeholder: "No value",
< value: t ? "" + t : "",
< });
< return (
< i.addEventListener("blur", function (e) {
< return n.update(parseFloat(i.value));
< }),
< null
< );
< },
< },
< dw = {
< name: function () {
< return "Checkbox";
< },
< type: "boolean",
< icon: "lucide-check-square",
< default: function () {
< return !1;
< },
< render: function (e, t, n) {
< var i = e.createEl("input", {
< type: "checkbox",
< cls: "metadata-input-checkbox",
< });
< return (
< (i.checked = t),
< i.addEventListener("change", function (e) {
< return n.update(i.checked);
< }),
< null
< );
---
> function Kx(e, t) {
> var n = {
> links: [],
> embeds: [],
> tags: [],
> headings: [],
> sections: [],
> listItems: [],
> blocks: {},
52327,52387c56420,56437
< },
< fw = (function (e) {
< function t(t, n, i, r) {
< var o = e.call(this, t, n) || this;
< return (
< (o.app = t), (o.inputEl = n), (o.context = i), (o.onSelect = r), o
< );
< }
< return (
< f(t, e),
< (t.prototype.selectSuggestion = function (e, t) {
< this.onSelect(e, t), this.close();
< }),
< (t.prototype.renderSuggestion = function (e, t) {
< Rm(t, e.text, e);
< }),
< (t.prototype.getSuggestions = function (e) {
< return (function (e, t, n) {
< n = n.toLowerCase();
< for (
< var i = [],
< r = [n],
< o = e.metadataCache.getFrontmatterPropertyValuesForKey(t),
< a = 0,
< s = Array.from(o);
< a < s.length;
< a++
< ) {
< var l = s[a];
< if ("" === n) i.push({ text: l, score: 0, matches: null });
< else {
< var c = Bm(r, l.toLowerCase());
< c &&
< i.push({
< text: l,
< score: Lm(c, n.length, l.length, 0),
< matches: c,
< });
< }
< }
< return (
< i.sort(function (e, t) {
< return t.score - e.score;
< }),
< i
< );
< })(this.app, this.context.key, e);
< }),
< t
< );
< })(km);
< var mw = (function (e) {
< function t(t, n, i, r) {
< var o = e.call(this, t, n) || this;
< return (
< (o.app = t),
< (o.inputEl = n),
< (o.properties = i),
< (o.onSelect = r),
< o
< );
---
> i = Sx(e),
> r = i.children[0];
> if (r && "yaml" === r.type) {
> var o = Lx(i);
> o &&
> ((n.frontmatter = o),
> (n.frontmatterPosition = jx(r.position)),
> (n.frontmatterLinks = Gx(o)));
> }
> for (var a = 0, s = i.children; a < s.length; a++) {
> var l = s[a],
> c = jx(l.position),
> u = { type: l.type, position: c },
> h = l.id;
> h &&
> "string" == typeof h &&
> ((u.id = h), (n.blocks[h.toLowerCase()] = { position: c, id: h })),
> n.sections.push(u);
52390,52405c56440,56457
< f(t, e),
< (t.prototype.selectSuggestion = function (e, t) {
< this.onSelect(e, t);
< }),
< (t.prototype.renderSuggestion = function (e, t) {
< t.addClass("mod-complex");
< var n = t.createDiv("suggestion-content"),
< i = t.createDiv("suggestion-aux");
< Rm(n.createDiv("suggestion-title"), e.text, e);
< var r = e.type,
< o = null,
< a = this.app.metadataTypeManager.registeredTypeWidgets;
< a.hasOwnProperty(r) && (o = a[r]),
< (null == o ? void 0 : o.icon) &&
< i.createSpan({ cls: "suggestion-flair" }, function (e) {
< kf(e, o.icon);
---
> rk(
> i,
> [
> "heading",
> "ilink",
> "iembed",
> "tag",
> "listItem",
> "footnoteDefinition",
> ],
> function (i, r, o) {
> if ("footnoteDefinition" === i.type) return rk.SKIP;
> if ("heading" === i.type && "root" === o.type) {
> var a = ok(e, i);
> n.headings.push({
> position: jx(i.position),
> heading: a,
> level: i.depth || 1,
52407,52431c56459,56515
< }),
< (t.prototype.getSuggestions = function (e) {
< var t = new Set(
< this.properties.map(function (e) {
< return e.key;
< })
< );
< return (function (e, t) {
< t = t.toLowerCase();
< for (var n = [], i = [t], r = 0, o = e; r < o.length; r++) {
< var a = o[r],
< s = a[0],
< l = a[1];
< if ("" === t)
< n.push({ text: s, type: l, score: 0, matches: null });
< else {
< var c = Bm(i, s.toLowerCase());
< c &&
< n.push({
< text: s,
< type: l,
< score: Lm(c, t.length, s.length, 0),
< matches: c,
< });
< }
---
> } else if ("ilink" === i.type) {
> var s = e.substring(
> i.position.start.offset,
> i.position.end.offset
> ),
> l = i.href || "";
> !(u = i.title || "") && i.converted && (u = zx(i));
> var c = {
> position: jx(i.position),
> link: l,
> original: s,
> displayText: u,
> };
> t && delete c.original, n.links.push(c);
> } else if ("iembed" === i.type) {
> (s = e.substring(
> i.position.start.offset,
> i.position.end.offset
> )),
> (l = i.href || "");
> var u = i.title || "";
> c = {
> position: jx(i.position),
> link: l,
> original: s,
> displayText: u,
> };
> t && delete c.original, n.embeds.push(c);
> } else if ("tag" === i.type) {
> var h = i.tag || "";
> n.tags.push({ position: jx(i.position), tag: h });
> } else if ("listItem" === i.type && !i.synthetic) {
> var p = jx(i.position),
> d = i.children;
> if (d && d.length > 1)
> for (var f = d.length - 1; f >= 0; f--) {
> var m = d[f];
> if ("list" !== m.type) {
> p.end = _x(m.position.end);
> break;
> }
> m.listParentPosition = i.position;
> }
> var g = 0;
> "list" === o.type &&
> (o.listParentPosition
> ? (g = o.listParentPosition.start.line - 1)
> : 0 === (g = -(o.position.start.line - 1)) && (g = -1));
> var v = { position: p, parent: g },
> y = i.checklist;
> "string" == typeof y && (v.task = y);
> var b = i.id;
> b &&
> "string" == typeof b &&
> ((v.id = b),
> (n.blocks[b.toLowerCase()] = { position: p, id: b })),
> n.listItems.push(v);
52433,52450c56517,56526
< return (
< n.sort(function (e, t) {
< return t.score - e.score;
< }),
< n
< );
< })(
< Object.entries(this.app.metadataTypeManager.types).filter(
< function (e) {
< var n = e[0];
< e[1];
< return !t.has(n);
< }
< ),
< e
< );
< }),
< t
---
> }
> ),
> 0 === n.links.length && delete n.links,
> 0 === n.embeds.length && delete n.embeds,
> 0 === n.tags.length && delete n.tags,
> 0 === n.headings.length && delete n.headings,
> (0 === n.sections.length || t) && delete n.sections,
> 0 === n.listItems.length && delete n.listItems,
> 0 === Object.keys(n.blocks).length && delete n.blocks,
> n
52452,52490c56528,56533
< })(km);
< var gw = {
< name: function () {
< return "Multi-select";
< },
< type: "multitext",
< icon: "lucide-list",
< default: function () {
< return [];
< },
< render: function (e, t, n) {
< "string" == typeof t && (t = [t]);
< var i = new Cm(e)
< .setOptionRenderer(function (e, t) {
< t.createEl("span", { text: e });
< })
< .allowCreatingOptions(function (e) {
< return e;
< })
< .preventDuplicates(function (e, t) {
< return t.indexOf(e);
< })
< .setValues(t)
< .onChange(function (e) {
< return n.update(e);
< }),
< r = i.inputEl;
< return (
< new fw(n.app, r, n, function (e, t) {
< (r.value = ""), i.addElement(e.text);
< }),
< null
< );
< },
< },
< vw = (function (e) {
< function t(t, n, i) {
< var r = e.call(this, t, n) || this;
< return (r.inputEl = n), (r.onSelect = i), r;
---
> }
> function Yx(e, t) {
> if (!e) return e;
> if (e.links)
> for (var n = 0, i = e.links; n < i.length; n++) {
> t(i[n]);
52492,52515c56535,56557
< return (
< f(t, e),
< (t.prototype.getSuggestions = function (e) {
< return cg(this.app.metadataCache, e);
< }),
< (t.prototype.selectSuggestion = function (e, t) {
< this.onSelect(e, t);
< }),
< (t.prototype.renderSuggestion = function (e, t) {
< Hm(t, e.tag, e.matches);
< }),
< t
< );
< })(km);
< function yw(e, t) {
< if (t.line < 0) return 0;
< var n = t.line + 1;
< if (n > e.lines) return e.length;
< var i = e.line(n);
< return isFinite(t.ch)
< ? t.ch < 0
< ? i.from + Math.max(0, i.length + t.ch)
< : i.from + t.ch
< : i.to;
---
> if (e.embeds)
> for (var r = 0, o = e.embeds; r < o.length; r++) {
> t(o[r]);
> }
> if (e.tags)
> for (var a = 0, s = e.tags; a < s.length; a++) {
> t(s[a]);
> }
> if (e.headings)
> for (var l = 0, c = e.headings; l < c.length; l++) {
> t(c[l]);
> }
> if (e.sections)
> for (var u = 0, h = e.sections; u < h.length; u++) {
> t(h[u]);
> }
> if (e.listItems)
> for (var p = 0, d = e.listItems; p < d.length; p++) {
> t(d[p]);
> }
> if (e.blocks)
> for (var f in e.blocks) e.blocks.hasOwnProperty(f) && t(e.blocks[f]);
> return e;
52517,52520c56559,56562
< function bw(e, t) {
< t = Math.clamp(t, 0, e.length);
< var n = e.lineAt(t);
< return { line: n.number - 1, ch: t - n.from };
---
> function Xx(e) {
> var t = e.start,
> n = e.end;
> return [t.line, t.col, t.offset, n.line, n.col, n.offset];
52522,52523c56564,56566
< function ww(e, t, n) {
< return e.from <= n && e.to >= t;
---
> function $x(e) {
> var t = e.position;
> t && (delete e.position, (e.pos = Xx(t)));
52525,52527c56568,56598
< function kw(e, t, n) {
< for (var i = 0, r = e; i < r.length; i++) {
< if (ww(r[i], t, n)) return !0;
---
> function Zx(e) {
> return {
> start: { line: e[0], col: e[1], offset: e[2] },
> end: { line: e[3], col: e[4], offset: e[5] },
> };
> }
> function Qx(e) {
> var t = e.pos;
> t &&
> Array.isArray(t) &&
> 6 === t.length &&
> (delete e.pos, (e.position = Zx(t)));
> }
> function Jx(e) {
> var t;
> if (
> (e.frontmatter &&
> Array.isArray(e.frontmatter) &&
> ((e.frontmatter = null),
> delete e.frontmatterPos,
> delete e.frontmatterLinks),
> e.frontmatter)
> ) {
> var n =
> null !== (t = e.frontmatterPos) && void 0 !== t
> ? t
> : e.frontmatter.pos;
> n && (e.frontmatterPosition = Zx(n)),
> delete e.frontmatterPos,
> delete e.frontmatter.pos,
> e.frontmatterLinks || (e.frontmatterLinks = Gx(e.frontmatter));
52529c56600
< return !1;
---
> return Yx(e, Qx);
52531,52537c56602,56620
< function Cw(e, t, n, i) {
< var r = !1;
< return (
< e.between(n, i, function (e, n, i) {
< if (i === t) return (r = !0), !1;
< }),
< r
---
> function eS(e, t, n) {
> return (function (e, t, n) {
> for (var i = 0, r = e.length; i < r; ) {
> var o = ((i + r) / 2) | 0,
> a = t(e[o]);
> if (0 === a) return o;
> a < 0 ? (i = o + 1) : (r = o);
> }
> return n ? r : i;
> })(
> e,
> function (e) {
> return t < e.position.start.offset
> ? 1
> : t > e.position.end.offset
> ? -1
> : 0;
> },
> n
52540,52546c56623,56624
< var xw = pr.define();
< function Ew(e, t) {
< return e.some(function (e) {
< return e.effects.some(function (e) {
< return e.is(t);
< });
< });
---
> function tS(e) {
> return (e = hk(e).normalize("NFC")).split("#")[0];
52548,52549c56626,56628
< function Sw(e, t) {
< return void 0 === t && (t = 0), { line: e, ch: t };
---
> function nS(e) {
> var t = (e = hk(e).normalize("NFC")).split("#")[0];
> return { path: t, subpath: e.substr(t.length) };
52551,52552c56630,56631
< function Mw(e, t) {
< return { line: e.line, ch: e.ch + t };
---
> function iS(e, t) {
> return !!e && (!0 === oS(e.links, t) || !0 === oS(e.embeds, t));
52554,52555c56633,56639
< function Tw(e, t) {
< return e.line === t.line && e.ch === t.ch;
---
> function rS(e, t) {
> return (
> !!e &&
> (!0 === oS(e.frontmatterLinks, t) ||
> !0 === oS(e.links, t) ||
> !0 === oS(e.embeds, t))
> );
52557,52558c56641,56646
< function Dw(e, t) {
< return e.line === t.line ? e.ch <= t.ch : e.line <= t.line;
---
> function oS(e, t) {
> if (!e) return !1;
> for (var n = 0, i = e; n < i.length; n++) {
> if (!0 === t(i[n])) return !0;
> }
> return !1;
52560,52565c56648,56663
< function Aw(e, t) {
< return (function (e, t) {
< var n = e.from,
< i = t.from;
< return n.line === i.line ? n.ch - i.ch : n.line - i.line;
< })(t, e);
---
> function aS(e) {
> if (!e) return null;
> var t = [],
> n = Nx(e.frontmatter);
> if (n)
> for (var i = 0, r = n; i < r.length; i++) {
> var o = r[i];
> t.push(o);
> }
> var a = e.tags;
> if (a)
> for (var s = 0, l = a; s < l.length; s++) {
> o = l[s];
> t.push(o.tag);
> }
> return t;
52567,53094c56665,56694
< var Lw = /^([>\s]*)(([*+-] |(\d+)([.)] ))(?:\[(.)\] )?)?/,
< Pw = /^([>\s]*)(#{1,6} )?(.*)/,
< Iw = [
< {
< regex: /(!)?【【$/,
< replace: function (e) {
< return e[1] ? "![[" : "[[";
< },
< },
< {
< regex: /】】$/,
< replace: function () {
< return "]]";
< },
< },
< {
< regex: /【【$/,
< replace: function () {
< return "[[";
< },
< },
< ],
< Ow = (function () {
< function e() {}
< return (
< (e.prototype.getDoc = function () {
< return this;
< }),
< (e.prototype.setLine = function (e, t) {
< this.replaceRange(t, Sw(e, 0), Sw(e, this.getLine(e).length));
< }),
< (e.prototype.somethingSelected = function () {
< return !!this.getSelection();
< }),
< (e.prototype.setCursor = function (e, t) {
< return Number.isNumber(e)
< ? this.setSelection({ line: e, ch: t })
< : this.setSelection(e);
< }),
< (e.prototype.posAtMouse = function (e) {
< return this.posAtCoords(e.clientX, e.clientY);
< }),
< (e.prototype.toggleSurroundingMarkdown = function (e) {
< var t = this,
< n = this.getSelection(),
< i = this.getCursor("from"),
< r = this.getCursor("to"),
< o = i.line === r.line && i.ch === r.ch,
< a = function (e) {
< var n = e.length,
< o = t.getRange(Mw(i, -n), i),
< a = t.getRange(r, Mw(r, n));
< return o === e && a === e;
< },
< s = function (e) {
< return (
< n.length >= 2 * e.length && n.startsWith(e) && n.endsWith(e)
< );
< },
< l = function (e) {
< var n = e.length;
< return t.getRange(r, Mw(r, n)) === e;
< },
< c = function (e) {
< t.transaction({ selection: { from: Mw(i, e) } });
< },
< u = function (e, o) {
< return a(e)
< ? ((function (e, o) {
< var a = o.length,
< s = o + n + o;
< t.transaction({
< changes: [{ from: Mw(i, -e), to: Mw(r, e), text: s }],
< selection: {
< from: Mw(i, a - e),
< to: Mw(r, r.line === i.line ? a - e : 0),
< },
< });
< })(e.length, o),
< !0)
< : !!s(e) &&
< ((function (e, o) {
< var a = o + n.substring(e, n.length - e) + o;
< t.transaction({
< changes: [{ from: i, to: r, text: a }],
< selection: {
< from: i,
< to: Sw(
< r.line,
< r.line === i.line ? i.ch + a.length : r.ch
< ),
< },
< });
< })(e.length, o),
< !0);
< };
< if ("*" === e || "_" === e) {
< if (u("***", "**")) return;
< if (u("___", "__")) return;
< if (!(a("**") || a("__") || s("**") || s("__"))) {
< if (u("*", "")) return;
< if (u("_", "")) return;
< }
< if (o && (l("*") || l("_"))) return void c(1);
< } else if ("**" === e || "__" === e) {
< if (u("**", "")) return;
< if (u("__", "")) return;
< if (o && (l("**") || l("__"))) return void c(2);
< } else if (2 === e.length && e.charAt(0) === e.charAt(1)) {
< if (u(e, "")) return;
< if (o && l(e)) return void c(2);
< }
< var h = n.match(/^(\s*)([\s\S]*?)(\s*)$/);
< if (h) {
< n = h[2];
< for (var p = h[1], d = 0; d < p.length; d++) {
< "\n" === p.charAt(d) ? (i.line++, (i.ch = 0)) : i.ch++;
< }
< var f = h[3];
< for (d = f.length - 1; d >= 0; d--) {
< "\n" === f.charAt(d)
< ? (r.line--, (r.ch = this.getLine(r.line).length))
< : r.ch--;
< }
< }
< var m = r;
< r.line === i.line && (m = Mw(r, e.length)),
< this.transaction({
< changes: [
< { from: i, to: r, text: "".concat(e).concat(n).concat(e) },
< ],
< selection: { from: Mw(i, e.length), to: m },
< });
< }),
< (e.prototype.insertMarkdownLink = function () {
< var e = this.getSelection(),
< t = this.getCursor("from"),
< n = this.getCursor("to");
< e
< ? this.transaction({
< replaceSelection: "[".concat(e, "]()"),
< selection: { from: Mw(t, e.length + 3) },
< })
< : t.line === n.line &&
< t.ch === n.ch &&
< this.transaction({
< replaceSelection: "[]()",
< selection: { from: Mw(t, 1) },
< });
< }),
< (e.prototype.triggerWikilink = function (e) {
< var t = this.getSelection(),
< n = this.getCursor("from"),
< i = this.getCursor("to");
< t
< ? (this.replaceSelection(
< e ? "![[".concat(t, "]]") : "[[".concat(t, "]]")
< ),
< this.setSelection(Mw(n, t.length + 2)))
< : n.line === i.line &&
< n.ch === i.ch &&
< (this.replaceSelection(e ? "![[]]" : "[[]]"),
< this.setSelection(Mw(n, e ? 3 : 2)));
< }),
< (e.prototype.insertText = function (e) {
< var t = this.lineCount() - 1,
< n = Sw(t, this.getLine(t).length);
< this.replaceRange(e, n),
< (n = Sw((t = this.lineCount() - 1), this.getLine(t).length)),
< this.setSelection(n);
< }),
< (e.prototype.processLines = function (e, t, n) {
< void 0 === n && (n = !0);
< for (
< var i = this.listSelections(),
< r = (function (e) {
< for (var t = [], n = 0, i = e; n < i.length; n++)
< for (
< var r = i[n],
< o = Math.min(r.anchor.line, r.head.line),
< a = Math.max(r.anchor.line, r.head.line),
< s = o;
< s <= a;
< s++
< )
< t.push(s);
< return Array.from(new Set(t)).sort();
< })(i),
< o = [],
< a = 0,
< s = r;
< a < s.length;
< a++
< ) {
< var l = s[a],
< c = this.getLine(l);
< if (n && r.length > 1 && !c.trim()) o.push(null);
< else {
< var u = e(l, c);
< o.push(u);
< }
< }
< for (var h = [], p = 0; p < r.length; p++) {
< (l = r[p]), (u = o[p]);
< if (!n || null !== u)
< (d = t(l, (c = this.getLine(l)), u)) && h.push(d);
< }
< if (0 !== h.length) {
< if (1 === i.length) {
< var d = h[0],
< f = i[0],
< m = f.anchor;
< if (0 === m.ch && Tw(m, f.head) && m.line === d.from.line) {
< var g = d.text.length - (d.to ? d.to.ch - d.from.ch : 0);
< return (
< (m.ch += g),
< m.ch < 0 && (m.ch = 0),
< void this.transaction({
< changes: h,
< selection: { from: m },
< })
< );
< }
< }
< this.transaction({ changes: h });
< }
< }),
< (e.prototype.setHeading = function (e) {
< this.processLines(
< function (e, t) {
< return t.match(Pw);
< },
< function (t, n, i) {
< var r = 0 === e ? "" : Array(e).fill("#").join("") + " ";
< return {
< from: Sw(t, i[1].length),
< to: Sw(t, n.length - i[3].length),
< text: r,
< };
< }
< );
< }),
< (e.prototype.toggleBlockquote = function () {
< var e = /^\s*>(\s*)/,
< t = !1;
< this.processLines(
< function (n, i) {
< var r = i.match(e);
< return r || (t = !0), r;
< },
< function (e, n, i) {
< var r = i;
< if (t && !r) return { from: Sw(e, 0), text: "> " };
< if (!t && r) {
< var o = r[0].length;
< if (r[1].startsWith(" ")) {
< for (var a = r[1]; a.startsWith(" "); )
< a = a.substring(4);
< (o -= r[1].length), a.startsWith(" ") && o++;
< }
< return { from: Sw(e, 0), to: Sw(e, o), text: "" };
< }
< },
< !1
< );
< }),
< (e.prototype.toggleBulletList = function () {
< var e = !1;
< this.processLines(
< function (t, n) {
< var i = n.match(Lw);
< return (i[3] && !i[4]) || (e = !0), i;
< },
< function (t, n, i) {
< return i
< ? {
< from: Sw(t, 0),
< to: Sw(t, i[0].length),
< text: i[1] + (e ? "- " : ""),
< }
< : null;
< }
< );
< }),
< (e.prototype.toggleNumberList = function () {
< var e = !1;
< this.processLines(
< function (t, n) {
< var i = n.match(Lw);
< return i[4] || (e = !0), i;
< },
< function (t, n, i) {
< return i
< ? {
< from: Sw(t, 0),
< to: Sw(t, i[0].length),
< text: i[1] + (e ? "1. " : ""),
< }
< : null;
< }
< ),
< e && this.afterIndent();
< }),
< (e.prototype.toggleCheckList = function (e) {
< var t = 3;
< this.processLines(
< function (n, i) {
< var r = i.match(Lw);
< return (
< t > 2 && " " === r[6] && (t = 2),
< t > 1 && !r[6] && (t = 1),
< e && t > 0 && !r[3] && (t = 0),
< r
< );
< },
< function (n, i, r) {
< if (!r) return null;
< var o = r[0],
< a = r[1],
< s = r[3],
< l = {
< from: Sw(n, 0),
< to: Sw(n, o.length),
< text: i.substr(0, o.length),
< },
< c = a + (s || "- ");
< return (
< (l.text = c),
< 1 === t
< ? r[6] || (l.text = c + "[ ] ")
< : 2 === t
< ? (l.text = c + "[x] ")
< : 3 === t && (l.text = e ? c : c + "[ ] "),
< l
< );
< }
< );
< }),
< (e.prototype.insertCallout = function () {
< var e = this.getCursor("from"),
< t = this.getCursor("to");
< if (!Tw(e, t) || this.getLine(e.line).substring(0, e.ch).trim()) {
< var n = [],
< i = "> [!NOTE]\n> ",
< r = { from: Sw(e.line, 4), to: Sw(e.line, 8) };
< e.line > 0 &&
< this.getLine(e.line - 1) &&
< ((i = "\n" + i), (r.from.line += 1), (r.to.line += 1)),
< n.push({ from: Sw(e.line, 0), text: i });
< for (var o = e.line + 1; o <= t.line; o++)
< n.push({ from: Sw(o, 0), text: "> " });
< t.line < this.lineCount() - 1 &&
< this.getLine(t.line + 1) &&
< n.push({ from: Sw(t.line + 1, 0), text: "\n" }),
< this.transaction({ changes: n, selection: r });
< } else
< this.transaction({
< changes: [
< { from: e, to: t, text: "\n> [!NOTE] Title\n> Contents\n" },
< ],
< selection: { from: Sw(e.line + 1, 4), to: Sw(e.line + 1, 8) },
< });
< }),
< (e.prototype.indentList = function () {
< this.exec("indentMore"), this.afterIndent();
< }),
< (e.prototype.unindentList = function () {
< this.exec("indentLess"), this.afterIndent();
< }),
< (e.prototype.afterIndent = function () {
< for (
< var e,
< t = this,
< n = this.listSelections(),
< i = [],
< r = [],
< o = 0,
< a = n;
< o < a.length;
< o++
< ) {
< var s = a[o];
< r.push(
< Math.min(s.head.line, s.anchor.line),
< Math.max(s.head.line, s.anchor.line) + 1
< );
< }
< r = ((e = r), Array.from(new Set(e))).sort();
< for (
< var l = -1,
< c = function (e) {
< var n = t.getLine(e);
< if (n) {
< var r = Lw.exec(n);
< if (r && r[4]) {
< for (
< var o = r[1], a = r[5], s = e - 1, c = 0, u = null;
< s >= 0;
<
< ) {
< var h = t.getLine(s),
< p = Lw.exec(h);
< if (!p || !p[4]) break;
< var d = p[1];
< if (d === o) {
< p[4] ? (c = parseInt(p[4], 10)) : (u = p);
< break;
< }
< if (d.length < o.length) break;
< s--;
< }
< var f = o.length + r[2].length;
< if (u)
< return (
< i.push({
< text: o + u[2],
< from: Sw(e),
< to: Sw(e, f),
< }),
< void (l = e)
< );
< c++,
< i.push({
< text: o + c + a,
< from: Sw(e),
< to: Sw(e, f),
< }),
< (l = e);
< for (var m = e + 1, g = t.lineCount(); m < g; ) {
< var v = t.getLine(m);
< if (v) {
< var y = Lw.exec(v);
< if (!y || !y[2]) break;
< var b = y[1];
< if (
< (b === o &&
< y[4] &&
< (c++,
< i.push({
< text: o + c + y[5],
< from: Sw(m),
< to: Sw(m, b.length + y[2].length),
< }),
< (l = m)),
< b.length < o.length)
< )
< break;
< m++;
< } else m++;
< }
< }
< }
< },
< u = 0,
< h = r;
< u < h.length;
< u++
< ) {
< var p = h[u];
< p > l && c(p);
< }
< this.transaction({ changes: i });
< }),
< (e.prototype.newlineAndIndentContinueMarkdownList = function () {
< for (
< var e = this,
< t = this.listSelections(),
< n = [],
< i = function (t) {
< var i = t.head;
< if (
< t.head.line !== t.anchor.line ||
< t.head.ch !== t.anchor.ch
< )
< return !1;
< var r = e.getLine(i.line),
< o = Lw.exec(r);
< if (!o) return !1;
< var a = o[0],
< s = o[1],
< l = o[2],
< c = o[3],
< u = o[4],
< h = o[5],
< p = o[6];
< if (i.ch < a.length || (!l && !s)) return !1;
< if ("" === r.substr(a.length).trim()) {
< if (!s)
< return (
< n.push({ text: "", from: Sw(i.line), to: i }), !0
< );
< if (s.endsWith(">") || s.endsWith("> ")) {
< if (l)
< return (
< n.push({
< text: "",
< from: Sw(i.line, s.length),
< to: i,
< }),
< !0
< );
< var d = s.endsWith(">") ? 1 : 2;
< if (i.line > 0)
< if (e.getLine(i.line - 1) === s)
< return (
< n.push(
< {
< text: "",
< from: Sw(i.line - 1, s.length - d),
< to: Sw(i.line - 1, s.length),
< },
< {
< text: "",
< from: Sw(i.line, s.length - d),
< to: Sw(i.line, s.length),
< }
< ),
< !0
< );
< var f = s.substr(0, s.length - d);
< return (
< n.push({
< text: "\n" + f,
< from: Sw(i.line, s.length - d),
< to: Sw(i.line, s.length),
< }),
< !0
< );
---
> var sS = /[!"#$%&()*+,.:;<=>?@^`{|}~\/\[\]\\\r\n]/g,
> lS = /([:#|^\\\r\n]|%%|\[\[|]])/g;
> function cS(e) {
> return e.replace(sS, " ").replace(/\s+/g, " ").trim();
> }
> function uS(e) {
> return e.replace(lS, " ").replace(/\s+/g, " ").trim();
> }
> function hS(e, t) {
> if (!e || !t) return null;
> var n = t.split("#").filter(function (e) {
> return !!e;
> });
> if (!n || 0 === n.length) return null;
> if (1 === n.length) {
> var i = n[0];
> if (i.startsWith("^")) {
> var r = i.substr(1).toLowerCase(),
> o = e.blocks;
> if (o && o.hasOwnProperty(r))
> for (var a in o)
> if (a.toLowerCase() === r && o.hasOwnProperty(a)) {
> var s = o[a],
> l = null;
> if (e.listItems)
> for (var c = 0, u = e.listItems; c < u.length; c++) {
> var h = u[c];
> if (h.id && h.id.toLowerCase() === r) {
> l = h;
> break;
53096,53122d56695
< if (s.endsWith("\t"))
< return (
< n.push({
< text: "",
< from: Sw(i.line, s.length - 1),
< to: Sw(i.line, s.length),
< }),
< !0
< );
< for (
< var m = 0;
< m < 4 && " " === s.charAt(s.length - m - 1);
< m++
< );
< return m > 0
< ? (n.push({
< text: "",
< from: Sw(i.line, s.length - m),
< to: Sw(i.line, s.length),
< }),
< !0)
< : (n.push({
< text: "",
< from: Sw(i.line),
< to: Sw(i.line, s.length),
< }),
< !0);
53124,53248c56697,56703
< if (!l)
< return (
< n.push({
< text: r.charAt(i.ch - 1) + "\n" + s,
< from: Sw(i.line, i.ch - 1),
< to: i,
< }),
< !0
< );
< var g = c;
< u && (g = parseInt(u, 10) + 1 + h), p && (g += "[ ] ");
< var v = Lw.exec(r.substring(i.ch));
< if (
< (v && v[3] && (g = ""),
< n.push({
< text: r.charAt(i.ch - 1) + "\n" + s + g,
< from: Sw(i.line, i.ch - 1),
< to: i,
< }),
< v &&
< v[1] &&
< n.push({
< text: "",
< from: i,
< to: Sw(i.line, i.ch + v[1].length),
< }),
< u)
< )
< for (
< var y = parseInt(u, 10) + 2,
< b = i.line + 1,
< w = e.lineCount();
< b < w;
< b++
< ) {
< var k = Lw.exec(e.getLine(b));
< if (!k || !k[2]) break;
< if ((f = k[1]) === s) {
< var C = k[4],
< x = parseInt(C, 10);
< C &&
< !isNaN(x) &&
< ((y = Math.max(y, x)),
< n.push({
< text: String(y),
< from: Sw(b, s.length),
< to: Sw(b, s.length + C.length),
< }),
< y++);
< } else if (!(f.length > s.length)) break;
< }
< return !0;
< },
< r = 0,
< o = t;
< r < o.length;
< r++
< ) {
< if (!i(o[r])) return this.exec("newlineAndIndent");
< }
< this.transaction({ changes: n }), this.afterIndent();
< }),
< (e.prototype.newlineAndIndentOnly = function () {
< for (
< var e = this,
< t = this.listSelections(),
< n = [],
< i = function (t) {
< var i = t.head;
< if (
< t.head.line !== t.anchor.line ||
< t.head.ch !== t.anchor.ch
< )
< return !1;
< var r = e.getLine(i.line),
< o = Lw.exec(r);
< if (!o) return !1;
< var a = o[0],
< s = o[1],
< l = o[2];
< return (
< !(i.ch < a.length) &&
< (n.push({
< text:
< r.charAt(i.ch - 1) +
< "\n" +
< s +
< (l
< ? l.replace(/\t/g, " ").replace(/./g, " ")
< : ""),
< from: Sw(i.line, i.ch - 1),
< to: i,
< }),
< !0)
< );
< },
< r = 0,
< o = t;
< r < o.length;
< r++
< ) {
< if (!i(o[r])) return this.newlineOnly();
< }
< this.transaction({ changes: n });
< }),
< (e.prototype.newlineOnly = function () {
< this.transaction({ replaceSelection: "\n" });
< }),
< (e.prototype.expandText = function () {
< var e = this.getCursor("anchor"),
< t = this.getCursor("head");
< if (e.line === t.line && e.ch === t.ch)
< for (
< var n = this.getLine(e.line).substr(0, e.ch), i = 0, r = Iw;
< i < r.length;
< i++
< ) {
< var o = r[i],
< a = n.match(o.regex);
< if (a) {
< var s = a[0].length,
< l = o.replace(a);
< this.replaceRange(l, Mw(e, -s), e);
< break;
< }
---
> return {
> type: "block",
> block: s,
> list: l,
> start: s.position.start,
> end: s.position.end,
> };
53250,53257c56705
< }),
< e
< );
< })();
< function Fw(e, t) {
< for (var n = [], i = 0, r = t; i < r.length; i++) {
< var o = r[i];
< n.push(o[0], o[1]);
---
> }
53259,53263c56707,56708
< for (var a = Bw(e, n), s = [], l = 0; l < t.length; l++)
< s.push({ from: a[2 * l], to: a[2 * l + 1] });
< return s;
< }
< function Bw(e, t) {
---
> var p = e.headings;
> if (!p || 0 === p.length) return null;
53265,53267c56710,56712
< var n = 0, i = 0, r = e.indexOf("\n"), o = [], a = 0, s = t;
< a < s.length;
< a++
---
> var d = 0, f = 0, m = null, g = null, v = 0, y = p;
> v < y.length;
> v++
53269,53274c56714,56717
< for (var l = s[a]; r < l; ) {
< if (-1 === r) {
< r = e.length;
< break;
< }
< n++, (i = r + 1), (r = e.indexOf("\n", i));
---
> var b = y[v];
> if (m && b.level <= f) {
> g = b;
> break;
53276c56719,56722
< o.push({ line: n, ch: l - i });
---
> !m &&
> b.level > f &&
> cS(b.heading).toLowerCase() === cS(n[d]).toLowerCase() &&
> (d++, (f = b.level), d === n.length && (m = b));
53278,53407c56724,56730
< return o;
< }
< var Nw = function (e) {
< var t = e.state,
< n = t.doc.lineAt(t.selection.main.from),
< i = Ww(e.state, n.from);
< return i.line ? Hw(e) : !!i.block && jw(e);
< };
< function Rw(e, t) {
< return function (n) {
< var i = n.state,
< r = n.dispatch;
< if (i.readOnly) return !1;
< var o = e(t, i);
< return !!o && (r(i.update(o)), !0);
< };
< }
< var Hw = Rw(Kw, 0),
< Vw = Rw(Kw, 1),
< zw = Rw(Kw, 2),
< qw = Rw(Gw, 0),
< Uw = Rw(Gw, 1),
< _w = Rw(Gw, 2),
< jw = Rw(function (e, t) {
< return Gw(
< e,
< t,
< (function (e) {
< for (
< var t = [], n = 0, i = e.selection.ranges;
< n < i.length;
< n++
< ) {
< var r = i[n],
< o = e.doc.lineAt(r.from),
< a = r.to <= o.to ? o : e.doc.lineAt(r.to),
< s = t.length - 1;
< s >= 0 && t[s].to > o.from
< ? (t[s].to = a.to)
< : t.push({ from: o.from, to: a.to });
< }
< return t;
< })(t)
< );
< }, 0);
< function Ww(e, t) {
< var n = e.languageDataAt("commentTokens", t);
< return n.length ? n[0] : {};
< }
< function Gw(e, t, n) {
< void 0 === n && (n = t.selection.ranges);
< var i = n.map(function (e) {
< return Ww(t, e.from).block;
< });
< if (
< !i.every(function (e) {
< return e;
< })
< )
< return null;
< var r = n.map(function (e, n) {
< return (function (e, t, n, i) {
< var r,
< o,
< a = t.open,
< s = t.close,
< l = e.sliceDoc(n - 50, n),
< c = e.sliceDoc(i, i + 50),
< u = /\s*$/.exec(l)[0].length,
< h = /^\s*/.exec(c)[0].length,
< p = l.length - u;
< if (l.slice(p - a.length, p) == a && c.slice(h, h + s.length) == s)
< return {
< open: { pos: n - u, margin: u && 1 },
< close: { pos: i + h, margin: h && 1 },
< };
< i - n <= 100
< ? (r = o = e.sliceDoc(n, i))
< : ((r = e.sliceDoc(n, n + 50)), (o = e.sliceDoc(i - 50, i)));
< var d = /^\s*/.exec(r)[0].length,
< f = /\s*$/.exec(o)[0].length,
< m = o.length - f - s.length;
< return r.slice(d, d + a.length) == a &&
< o.slice(m, m + s.length) == s
< ? {
< open: {
< pos: n + d + a.length,
< margin: /\s/.test(r.charAt(d + a.length)) ? 1 : 0,
< },
< close: {
< pos: i - f - s.length,
< margin: /\s/.test(o.charAt(m - 1)) ? 1 : 0,
< },
< }
< : null;
< })(t, i[n], e.from, e.to);
< });
< if (
< 2 != e &&
< !r.every(function (e) {
< return e;
< })
< )
< return {
< changes: t.changes(
< n.map(function (e, t) {
< return r[t]
< ? []
< : [
< { from: e.from, insert: i[t].open + " " },
< { from: e.to, insert: " " + i[t].close },
< ];
< })
< ),
< };
< if (
< 1 != e &&
< r.some(function (e) {
< return e;
< })
< ) {
< for (var o = [], a = 0, s = void 0; a < r.length; a++)
< if ((s = r[a])) {
< var l = i[a],
< c = s.open,
< u = s.close;
< o.push(
< { from: c.pos - l.open.length, to: c.pos + c.margin },
< { from: u.pos - u.margin, to: u.pos + l.close.length }
< );
---
> return m
> ? {
> type: "heading",
> current: m,
> next: g,
> start: m.position.start,
> end: g ? g.position.start : null,
53409,53411c56732
< return { changes: o };
< }
< return null;
---
> : null;
53413,53435c56734,56751
< function Kw(e, t, n) {
< void 0 === n && (n = t.selection.ranges);
< for (var i = [], r = -1, o = 0, a = n; o < a.length; o++) {
< var s = a[o],
< l = s.from,
< c = s.to,
< u = i.length,
< h = 1e9;
< if ((k = Ww(t, l).line)) {
< for (var p = l; p <= c; ) {
< if ((w = t.doc.lineAt(p)).from > r && (l == c || c > w.from)) {
< r = w.from;
< var d = (C = /^\s*/.exec(w.text)[0].length) == w.length,
< f = w.text.slice(C, C + k.length) == k ? C : -1;
< C < w.text.length && C < h && (h = C),
< i.push({
< line: w,
< comment: f,
< token: k,
< indent: C,
< empty: d,
< single: !1,
< });
---
> function pS(e, t, n, i) {
> void 0 === i && (i = !1);
> var r = "",
> o = "",
> a = "",
> s = "";
> if ("block" === n.type && n.list) {
> var l = (function (e, t) {
> var n = e.listItems;
> if (!n) return t;
> var i = n.indexOf(t);
> if (-1 === i) return t;
> var r = new Set();
> r.add(t.position.start.line);
> for (var o = t, a = i + 1; a < n.length; a++) {
> var s = n[a];
> if (!r.has(s.parent)) break;
> r.add(s.position.start.line), (o = s);
53437,53460c56753,56784
< p = w.to + 1;
< }
< if (h < 1e9)
< for (var m = u; m < i.length; m++)
< i[m].indent < i[m].line.text.length && (i[m].indent = h);
< i.length == u + 1 && (i[u].single = !0);
< }
< }
< if (
< 2 != e &&
< i.some(function (e) {
< return e.comment < 0 && (!e.empty || e.single);
< })
< ) {
< for (var g = [], v = 0, y = i; v < y.length; v++) {
< var b = y[v],
< w = b.line,
< k = b.token,
< C = b.indent;
< d = b.empty;
< (!b.single && d) || g.push({ from: w.from + C, insert: k + " " });
< }
< var x = t.changes(g);
< return { changes: x, selection: t.selection.map(x, 1) };
---
> return o;
> })(t, n.list),
> c = (function (e, t) {
> var n = e.position.start,
> i = t.position.end;
> return { start: n.offset - n.col, end: i.offset };
> })(n.list, l),
> u = c.start,
> h = c.end;
> (r = e.substring(0, u)), (o = e.substring(h));
> var p = (function (e) {
> var t = e.split("\n"),
> n = t[0].match(/^\s*/)[0],
> i = n.replace(/\t/g, " ").length;
> if (i > 0)
> for (var r = 0; r < t.length; r++) {
> for (var o = t[r], a = 0, s = 0; a < o.length && s < i; )
> (s += "\t" === o.charAt(a) ? 4 : 1), a++;
> t[r] = o.substr(a);
> }
> return { indent: n, text: t.join("\n") };
> })(e.substring(u, h));
> (e = p.text), (a = p.indent);
> } else {
> (u = n.start.offset), (h = n.end ? n.end.offset : e.length);
> var d = u;
> i &&
> "heading" === n.type &&
> ((d = n.current.position.end.offset + 1), (s = e.substring(u, d))),
> (r = e.substring(0, u)),
> (o = e.substring(h)),
> (e = e.substring(d, h));
53462,53474c56786,56817
< if (
< 1 != e &&
< i.some(function (e) {
< return e.comment >= 0;
< })
< ) {
< g = [];
< for (var E = 0, S = i; E < S.length; E++) {
< var M = S[E];
< (w = M.line), (f = M.comment), (k = M.token);
< if (f >= 0) {
< c = (l = w.from + f) + k.length;
< " " == w.text[c - w.from] && c++, g.push({ from: l, to: c });
---
> return { before: r, after: o, indent: a, heading: s, content: e };
> }
> var dS = null,
> fS = null;
> function mS(e) {
> e || (e = document);
> var t = e.body;
> t.on("mouseover", "[aria-label]", bS),
> t.on("mouseout", "[aria-label]", wS),
> t.addEventListener("mouseup", SS);
> }
> var gS = null;
> function vS() {
> gS && (clearTimeout(gS), (gS = null));
> }
> function yS(e) {
> return (
> "true" === getComputedStyle(e).getPropertyValue("--no-tooltip").trim()
> );
> }
> function bS(e, t) {
> ut(e, t) && (gt(e) || yS(t) || CS(t));
> }
> function wS(e, t) {
> if (ut(e, t)) {
> SS();
> var n = e.relatedTarget;
> if (n && n.matchParent) {
> var i = n.matchParent("[aria-label]");
> if (i && i.instanceOf(HTMLElement)) {
> if (yS(i)) return;
> CS(i);
53477d56819
< return { changes: g };
53479d56820
< return null;
53481,55877c56822,56837
< var Yw = cr.define(),
< Xw = cr.define(),
< Zw = Ri.define(),
< $w = Ri.define({
< combine: function (e) {
< return Sr(
< e,
< {
< minDepth: 100,
< newGroupDelay: 500,
< joinToEvent: function (e, t) {
< return t;
< },
< },
< {
< minDepth: Math.max,
< newGroupDelay: Math.min,
< joinToEvent: function (e, t) {
< return function (n, i) {
< return e(n, i) || t(n, i);
< };
< },
< }
< );
< },
< });
< var Qw = _i.define({
< create: function () {
< return yk.empty;
< },
< update: function (e, t) {
< var n,
< i,
< r = t.state.facet($w),
< o = t.annotation(Yw);
< if (o) {
< var a = t.docChanged
< ? Fi.single(
< ((n = t.changes),
< (i = 0),
< n.iterChangedRanges(function (e, t) {
< return (i = t);
< }),
< i)
< )
< : void 0,
< s = ck.fromTransaction(t, a),
< l = o.side,
< c = 0 == l ? e.undone : e.done;
< return (
< (c = s
< ? uk(c, c.length, r.minDepth, s)
< : dk(c, t.startState.selection)),
< new yk(0 == l ? o.rest : c, 0 == l ? c : o.rest)
< );
< }
< var u = t.annotation(Xw);
< if (
< (("full" != u && "before" != u) || (e = e.isolate()),
< !1 === t.annotation(dr.addToHistory))
< )
< return t.changes.empty ? e : e.addMapping(t.changes.desc);
< var h = ck.fromTransaction(t),
< p = t.annotation(dr.time),
< d = t.annotation(dr.userEvent);
< return (
< h
< ? (e = e.addChanges(h, p, d, r, t))
< : t.selection &&
< (e = e.addSelection(
< t.startState.selection,
< p,
< d,
< r.newGroupDelay
< )),
< ("full" != u && "after" != u) || (e = e.isolate()),
< e
< );
< },
< toJSON: function (e) {
< return {
< done: e.done.map(function (e) {
< return e.toJSON();
< }),
< undone: e.undone.map(function (e) {
< return e.toJSON();
< }),
< };
< },
< fromJSON: function (e) {
< return new yk(e.done.map(ck.fromJSON), e.undone.map(ck.fromJSON));
< },
< });
< function Jw(e) {
< return (
< void 0 === e && (e = {}),
< [
< Qw,
< $w.of(e),
< jl.domEventHandlers({
< beforeinput: function (e, t) {
< var n =
< "historyUndo" == e.inputType
< ? nk
< : "historyRedo" == e.inputType
< ? ik
< : null;
< return !!n && (e.preventDefault(), n(t));
< },
< }),
< ]
< );
< }
< var ek = Qw;
< function tk(e, t) {
< return function (n) {
< var i = n.state,
< r = n.dispatch;
< if (!t && i.readOnly) return !1;
< var o = i.field(Qw, !1);
< if (!o) return !1;
< var a = o.pop(e, i, t);
< return !!a && (r(a), !0);
< };
< }
< var nk = tk(0, !1),
< ik = tk(1, !1),
< rk = tk(0, !0),
< ok = tk(1, !0);
< function ak(e) {
< return function (t) {
< var n = t.field(Qw, !1);
< if (!n) return 0;
< var i = 0 == e ? n.done : n.undone;
< return i.length - (i.length && !i[0].changes ? 1 : 0);
< };
< }
< var sk = ak(0),
< lk = ak(1),
< ck = (function () {
< function e(e, t, n, i, r) {
< (this.changes = e),
< (this.effects = t),
< (this.mapped = n),
< (this.startSelection = i),
< (this.selectionsAfter = r);
< }
< return (
< (e.prototype.setSelAfter = function (t) {
< return new e(
< this.changes,
< this.effects,
< this.mapped,
< this.startSelection,
< t
< );
< }),
< (e.prototype.toJSON = function () {
< var e, t, n;
< return {
< changes:
< null === (e = this.changes) || void 0 === e
< ? void 0
< : e.toJSON(),
< mapped:
< null === (t = this.mapped) || void 0 === t
< ? void 0
< : t.toJSON(),
< startSelection:
< null === (n = this.startSelection) || void 0 === n
< ? void 0
< : n.toJSON(),
< selectionsAfter: this.selectionsAfter.map(function (e) {
< return e.toJSON();
< }),
< };
< }),
< (e.fromJSON = function (t) {
< return new e(
< t.changes && Mi.fromJSON(t.changes),
< [],
< t.mapped && Si.fromJSON(t.mapped),
< t.startSelection && Fi.fromJSON(t.startSelection),
< t.selectionsAfter.map(Fi.fromJSON)
< );
< }),
< (e.fromTransaction = function (t, n) {
< for (
< var i = pk, r = 0, o = t.startState.facet(Zw);
< r < o.length;
< r++
< ) {
< var a = (0, o[r])(t);
< a.length && (i = i.concat(a));
< }
< return !i.length && t.changes.empty
< ? null
< : new e(
< t.changes.invert(t.startState.doc),
< i,
< void 0,
< n || t.startState.selection,
< pk
< );
< }),
< (e.selection = function (t) {
< return new e(void 0, pk, void 0, void 0, t);
< }),
< e
< );
< })();
< function uk(e, t, n, i) {
< var r = t + 1 > n + 20 ? t - n - 1 : 0,
< o = e.slice(r, t);
< return o.push(i), o;
< }
< function hk(e, t) {
< return e.length ? (t.length ? e.concat(t) : e) : t;
< }
< var pk = [];
< function dk(e, t) {
< if (e.length) {
< var n = e[e.length - 1],
< i = n.selectionsAfter.slice(
< Math.max(0, n.selectionsAfter.length - 200)
< );
< return i.length && i[i.length - 1].eq(t)
< ? e
< : (i.push(t), uk(e, e.length - 1, 1e9, n.setSelAfter(i)));
< }
< return [ck.selection([t])];
< }
< function fk(e) {
< var t = e[e.length - 1],
< n = e.slice();
< return (
< (n[e.length - 1] = t.setSelAfter(
< t.selectionsAfter.slice(0, t.selectionsAfter.length - 1)
< )),
< n
< );
< }
< function mk(e, t) {
< if (!e.length) return e;
< for (var n = e.length, i = pk; n; ) {
< var r = gk(e[n - 1], t, i);
< if ((r.changes && !r.changes.empty) || r.effects.length) {
< var o = e.slice(0, n);
< return (o[n - 1] = r), o;
< }
< (t = r.mapped), n--, (i = r.selectionsAfter);
< }
< return i.length ? [ck.selection(i)] : pk;
< }
< function gk(e, t, n) {
< var i = hk(
< e.selectionsAfter.length
< ? e.selectionsAfter.map(function (e) {
< return e.map(t);
< })
< : pk,
< n
< );
< if (!e.changes) return ck.selection(i);
< var r = e.changes.map(t),
< o = t.mapDesc(e.changes, !0),
< a = e.mapped ? e.mapped.composeDesc(o) : o;
< return new ck(
< r,
< pr.mapEffects(e.effects, t),
< a,
< e.startSelection.map(o),
< i
< );
< }
< var vk = /^(input\.type|delete)($|\.)/,
< yk = (function () {
< function e(e, t, n, i) {
< void 0 === n && (n = 0),
< void 0 === i && (i = void 0),
< (this.done = e),
< (this.undone = t),
< (this.prevTime = n),
< (this.prevUserEvent = i);
< }
< return (
< (e.prototype.isolate = function () {
< return this.prevTime ? new e(this.done, this.undone) : this;
< }),
< (e.prototype.addChanges = function (t, n, i, r, o) {
< var a = this.done,
< s = a[a.length - 1];
< return new e(
< (a =
< s &&
< s.changes &&
< !s.changes.empty &&
< t.changes &&
< (!i || vk.test(i)) &&
< ((!s.selectionsAfter.length &&
< n - this.prevTime < r.newGroupDelay &&
< r.joinToEvent(
< o,
< (function (e, t) {
< var n = [],
< i = !1;
< return (
< e.iterChangedRanges(function (e, t) {
< return n.push(e, t);
< }),
< t.iterChangedRanges(function (e, t, r, o) {
< for (var a = 0; a < n.length; ) {
< var s = n[a++],
< l = n[a++];
< o >= s && r <= l && (i = !0);
< }
< }),
< i
< );
< })(s.changes, t.changes)
< )) ||
< "input.type.compose" == i)
< ? uk(
< a,
< a.length - 1,
< r.minDepth,
< new ck(
< t.changes.compose(s.changes),
< hk(t.effects, s.effects),
< s.mapped,
< s.startSelection,
< pk
< )
< )
< : uk(a, a.length, r.minDepth, t)),
< pk,
< n,
< i
< );
< }),
< (e.prototype.addSelection = function (t, n, i, r) {
< var o,
< a,
< s = this.done.length
< ? this.done[this.done.length - 1].selectionsAfter
< : pk;
< return s.length > 0 &&
< n - this.prevTime < r &&
< i == this.prevUserEvent &&
< i &&
< /^select($|\.)/.test(i) &&
< ((o = s[s.length - 1]),
< (a = t),
< o.ranges.length == a.ranges.length &&
< 0 ===
< o.ranges.filter(function (e, t) {
< return e.empty != a.ranges[t].empty;
< }).length)
< ? this
< : new e(dk(this.done, t), this.undone, n, i);
< }),
< (e.prototype.addMapping = function (t) {
< return new e(
< mk(this.done, t),
< mk(this.undone, t),
< this.prevTime,
< this.prevUserEvent
< );
< }),
< (e.prototype.pop = function (e, t, n) {
< var i = 0 == e ? this.done : this.undone;
< if (0 == i.length) return null;
< var r = i[i.length - 1];
< if (n && r.selectionsAfter.length)
< return t.update({
< selection: r.selectionsAfter[r.selectionsAfter.length - 1],
< annotations: Yw.of({ side: e, rest: fk(i) }),
< userEvent: 0 == e ? "select.undo" : "select.redo",
< scrollIntoView: !0,
< });
< if (r.changes) {
< var o = 1 == i.length ? pk : i.slice(0, i.length - 1);
< return (
< r.mapped && (o = mk(o, r.mapped)),
< t.update({
< changes: r.changes,
< selection: r.startSelection,
< effects: r.effects,
< annotations: Yw.of({ side: e, rest: o }),
< filter: !1,
< userEvent: 0 == e ? "undo" : "redo",
< scrollIntoView: !0,
< })
< );
< }
< return null;
< }),
< e
< );
< })();
< yk.empty = new yk(pk, pk);
< var bk = [
< { key: "Mod-z", run: nk, preventDefault: !0 },
< { key: "Mod-y", mac: "Mod-Shift-z", run: ik, preventDefault: !0 },
< { linux: "Ctrl-Shift-z", run: ik, preventDefault: !0 },
< { key: "Mod-u", run: rk, preventDefault: !0 },
< { key: "Alt-u", mac: "Mod-Shift-u", run: ok, preventDefault: !0 },
< ];
< function wk(e, t) {
< return Fi.create(e.ranges.map(t), e.mainIndex);
< }
< function kk(e, t) {
< return e.update({
< selection: t,
< scrollIntoView: !0,
< userEvent: "select",
< });
< }
< function Ck(e, t) {
< var n = e.state,
< i = e.dispatch,
< r = wk(n.selection, t);
< return !r.eq(n.selection) && (i(kk(n, r)), !0);
< }
< function xk(e, t) {
< return Fi.cursor(t ? e.to : e.from);
< }
< function Ek(e, t) {
< return Ck(e, function (n) {
< return n.empty ? e.moveByChar(n, t) : xk(n, t);
< });
< }
< function Sk(e) {
< return e.textDirectionAt(e.state.selection.main.head) == ja.LTR;
< }
< var Mk = function (e) {
< return Ek(e, !Sk(e));
< },
< Tk = function (e) {
< return Ek(e, Sk(e));
< },
< Dk = function (e) {
< return Ek(e, !0);
< },
< Ak = function (e) {
< return Ek(e, !1);
< };
< function Lk(e, t) {
< return Ck(e, function (n) {
< return n.empty ? e.moveByGroup(n, t) : xk(n, t);
< });
< }
< var Pk = function (e) {
< return Lk(e, !Sk(e));
< },
< Ik = function (e) {
< return Lk(e, Sk(e));
< },
< Ok = function (e) {
< return Lk(e, !0);
< },
< Fk = function (e) {
< return Lk(e, !1);
< };
< function Bk(e, t, n) {
< var i = e.state.charCategorizer(t.from);
< return e.moveByChar(t, n, function (r) {
< var o = kr.Space,
< a = t.from,
< s = !1,
< l = !1,
< c = !1,
< u = function (t) {
< if (s) return !1;
< a += n ? t.length : -t.length;
< var r,
< u = i(t);
< if ((o == kr.Space && (o = u), o != u)) return !1;
< if (o == kr.Word)
< if (t.toLowerCase() == t) {
< if (!n && l) return !1;
< c = !0;
< } else if (c) {
< if (n) return !1;
< s = !0;
< } else {
< if (
< l &&
< n &&
< i((r = e.state.sliceDoc(a, a + 1))) == kr.Word &&
< r.toLowerCase() == r
< )
< return !1;
< l = !0;
< }
< return !0;
< };
< return u(r), u;
< });
< }
< function Nk(e, t) {
< return Ck(e, function (n) {
< return n.empty ? Bk(e, n, t) : xk(n, t);
< });
< }
< var Rk = function (e) {
< return Nk(e, !0);
< },
< Hk = function (e) {
< return Nk(e, !1);
< };
< function Vk(e, t, n) {
< if (t.type.prop(n)) return !0;
< var i = t.to - t.from;
< return (
< (i && (i > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to)))) ||
< t.firstChild
< );
< }
< function zk(e, t, n) {
< for (
< var i = Rh(e).resolveInner(t.head),
< r = n ? mn.closedBy : mn.openedBy,
< o = t.head;
< ;
<
< ) {
< var a = n ? i.childAfter(o) : i.childBefore(o);
< if (!a) break;
< Vk(e, a, r) ? (i = a) : (o = n ? a.to : a.from);
< }
< var s, l;
< return (
< (l =
< i.type.prop(r) &&
< (s = n ? hd(e, i.from, 1) : hd(e, i.to, -1)) &&
< s.matched
< ? n
< ? s.end.to
< : s.end.from
< : n
< ? i.to
< : i.from),
< Fi.cursor(l, n ? -1 : 1)
< );
< }
< var qk = function (e) {
< return Ck(e, function (t) {
< return zk(e.state, t, !Sk(e));
< });
< },
< Uk = function (e) {
< return Ck(e, function (t) {
< return zk(e.state, t, Sk(e));
< });
< };
< function _k(e, t) {
< return Ck(e, function (n) {
< if (!n.empty) return xk(n, t);
< var i = e.moveVertically(n, t);
< return i.head != n.head ? i : e.moveToLineBoundary(n, t);
< });
< }
< var jk = function (e) {
< return _k(e, !1);
< },
< Wk = function (e) {
< return _k(e, !0);
< };
< function Gk(e) {
< var t,
< n = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2,
< i = 0,
< r = 0;
< if (n) {
< for (
< var o = 0, a = e.state.facet(jl.scrollMargins);
< o < a.length;
< o++
< ) {
< var s = (0, a[o])(e);
< (null == s ? void 0 : s.top) &&
< (i = Math.max(null == s ? void 0 : s.top, i)),
< (null == s ? void 0 : s.bottom) &&
< (r = Math.max(null == s ? void 0 : s.bottom, r));
< }
< t = e.scrollDOM.clientHeight - i - r;
< } else t = (e.dom.ownerDocument.defaultView || window).innerHeight;
< return {
< marginTop: i,
< marginBottom: r,
< selfScroll: n,
< height: Math.max(e.defaultLineHeight, t - 5),
< };
< }
< function Kk(e, t) {
< var n,
< i = Gk(e),
< r = e.state,
< o = wk(r.selection, function (n) {
< return n.empty ? e.moveVertically(n, t, i.height) : xk(n, t);
< });
< if (o.eq(r.selection)) return !1;
< if (i.selfScroll) {
< var a = e.coordsAtPos(r.selection.main.head),
< s = e.scrollDOM.getBoundingClientRect(),
< l = s.top + i.marginTop,
< c = s.bottom - i.marginBottom;
< a &&
< a.top > l &&
< a.bottom < c &&
< (n = jl.scrollIntoView(o.main.head, {
< y: "start",
< yMargin: a.top - l,
< }));
< }
< return e.dispatch(kk(r, o), { effects: n }), !0;
< }
< var Yk = function (e) {
< return Kk(e, !1);
< },
< Xk = function (e) {
< return Kk(e, !0);
< };
< function Zk(e, t, n) {
< var i = e.lineBlockAt(t.head),
< r = e.moveToLineBoundary(t, n);
< if (
< (r.head == t.head &&
< r.head != (n ? i.to : i.from) &&
< (r = e.moveToLineBoundary(t, n, !1)),
< !n && r.head == i.from && i.length)
< ) {
< var o = /^\s*/.exec(
< e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to))
< )[0].length;
< o && t.head != i.from + o && (r = Fi.cursor(i.from + o));
< }
< return r;
< }
< var $k = function (e) {
< return Ck(e, function (t) {
< return Zk(e, t, !0);
< });
< },
< Qk = function (e) {
< return Ck(e, function (t) {
< return Zk(e, t, !1);
< });
< },
< Jk = function (e) {
< return Ck(e, function (t) {
< return Zk(e, t, !Sk(e));
< });
< },
< eC = function (e) {
< return Ck(e, function (t) {
< return Zk(e, t, Sk(e));
< });
< },
< tC = function (e) {
< return Ck(e, function (t) {
< return Fi.cursor(e.lineBlockAt(t.head).from, 1);
< });
< },
< nC = function (e) {
< return Ck(e, function (t) {
< return Fi.cursor(e.lineBlockAt(t.head).to, -1);
< });
< };
< function iC(e, t, n) {
< var i = !1,
< r = wk(e.selection, function (t) {
< var r =
< hd(e, t.head, -1) ||
< hd(e, t.head, 1) ||
< (t.head > 0 && hd(e, t.head - 1, 1)) ||
< (t.head < e.doc.length && hd(e, t.head + 1, -1));
< if (!r || !r.end) return t;
< i = !0;
< var o = r.start.from == t.head ? r.end.to : r.end.from;
< return n ? Fi.range(t.anchor, o) : Fi.cursor(o);
< });
< return !!i && (t(kk(e, r)), !0);
< }
< var rC = function (e) {
< return iC(e.state, e.dispatch, !1);
< },
< oC = function (e) {
< return iC(e.state, e.dispatch, !0);
< };
< function aC(e, t) {
< var n = wk(e.state.selection, function (e) {
< var n = t(e);
< return Fi.range(
< e.anchor,
< n.head,
< n.goalColumn,
< n.bidiLevel || void 0
< );
< });
< return !n.eq(e.state.selection) && (e.dispatch(kk(e.state, n)), !0);
< }
< function sC(e, t) {
< return aC(e, function (n) {
< return e.moveByChar(n, t);
< });
< }
< var lC = function (e) {
< return sC(e, !Sk(e));
< },
< cC = function (e) {
< return sC(e, Sk(e));
< },
< uC = function (e) {
< return sC(e, !0);
< },
< hC = function (e) {
< return sC(e, !1);
< };
< function pC(e, t) {
< return aC(e, function (n) {
< return e.moveByGroup(n, t);
< });
< }
< var dC = function (e) {
< return pC(e, !Sk(e));
< },
< fC = function (e) {
< return pC(e, Sk(e));
< },
< mC = function (e) {
< return pC(e, !0);
< },
< gC = function (e) {
< return pC(e, !1);
< };
< function vC(e, t) {
< return aC(e, function (n) {
< return Bk(e, n, t);
< });
< }
< var yC = function (e) {
< return vC(e, !0);
< },
< bC = function (e) {
< return vC(e, !1);
< },
< wC = function (e) {
< return aC(e, function (t) {
< return zk(e.state, t, !Sk(e));
< });
< },
< kC = function (e) {
< return aC(e, function (t) {
< return zk(e.state, t, Sk(e));
< });
< };
< function CC(e, t) {
< return aC(e, function (n) {
< return e.moveVertically(n, t);
< });
< }
< var xC = function (e) {
< return CC(e, !1);
< },
< EC = function (e) {
< return CC(e, !0);
< };
< function SC(e, t) {
< return aC(e, function (n) {
< return e.moveVertically(n, t, Gk(e).height);
< });
< }
< var MC = function (e) {
< return SC(e, !1);
< },
< TC = function (e) {
< return SC(e, !0);
< },
< DC = function (e) {
< return aC(e, function (t) {
< return Zk(e, t, !0);
< });
< },
< AC = function (e) {
< return aC(e, function (t) {
< return Zk(e, t, !1);
< });
< },
< LC = function (e) {
< return aC(e, function (t) {
< return Zk(e, t, !Sk(e));
< });
< },
< PC = function (e) {
< return aC(e, function (t) {
< return Zk(e, t, Sk(e));
< });
< },
< IC = function (e) {
< return aC(e, function (t) {
< return Fi.cursor(e.lineBlockAt(t.head).from);
< });
< },
< OC = function (e) {
< return aC(e, function (t) {
< return Fi.cursor(e.lineBlockAt(t.head).to);
< });
< },
< FC = function (e) {
< var t = e.state;
< return (0, e.dispatch)(kk(t, { anchor: 0 })), !0;
< },
< BC = function (e) {
< var t = e.state;
< return (0, e.dispatch)(kk(t, { anchor: t.doc.length })), !0;
< },
< NC = function (e) {
< var t = e.state;
< return (
< (0, e.dispatch)(
< kk(t, { anchor: t.selection.main.anchor, head: 0 })
< ),
< !0
< );
< },
< RC = function (e) {
< var t = e.state;
< return (
< (0, e.dispatch)(
< kk(t, { anchor: t.selection.main.anchor, head: t.doc.length })
< ),
< !0
< );
< },
< HC = function (e) {
< var t = e.state;
< return (
< (0, e.dispatch)(
< t.update({
< selection: { anchor: 0, head: t.doc.length },
< userEvent: "select",
< })
< ),
< !0
< );
< },
< VC = function (e) {
< var t = e.state,
< n = e.dispatch,
< i = tx(t).map(function (e) {
< var n = e.from,
< i = e.to;
< return Fi.range(n, Math.min(i + 1, t.doc.length));
< });
< return (
< n(t.update({ selection: Fi.create(i), userEvent: "select" })), !0
< );
< },
< zC = function (e) {
< var t = e.state,
< n = e.dispatch,
< i = wk(t.selection, function (e) {
< for (
< var n, i = Rh(t).resolveInner(e.head, 1);
< !(
< (i.from < e.from && i.to >= e.to) ||
< (i.to > e.to && i.from <= e.from)
< ) &&
< (null === (n = i.parent) || void 0 === n ? void 0 : n.parent);
<
< )
< i = i.parent;
< return Fi.range(i.to, i.from);
< });
< return n(kk(t, i)), !0;
< },
< qC = function (e) {
< var t = e.state,
< n = e.dispatch,
< i = t.selection,
< r = null;
< return (
< i.ranges.length > 1
< ? (r = Fi.create([i.main]))
< : i.main.empty || (r = Fi.create([Fi.cursor(i.main.head)])),
< !!r && (n(kk(t, r)), !0)
< );
< };
< function UC(e, t) {
< if (e.state.readOnly) return !1;
< var n = "delete.selection",
< i = e.state,
< r = i.changeByRange(function (i) {
< var r = i.from,
< o = i.to;
< if (r == o) {
< var a = t(r);
< a < r
< ? ((n = "delete.backward"), (a = _C(e, a, !1)))
< : a > r && ((n = "delete.forward"), (a = _C(e, a, !0))),
< (r = Math.min(r, a)),
< (o = Math.max(o, a));
< } else (r = _C(e, r, !1)), (o = _C(e, o, !0));
< return r == o
< ? { range: i }
< : { changes: { from: r, to: o }, range: Fi.cursor(r) };
< });
< return (
< !r.changes.empty &&
< (e.dispatch(
< i.update(r, {
< scrollIntoView: !0,
< userEvent: n,
< effects:
< "delete.selection" == n
< ? jl.announce.of(i.phrase("Selection deleted"))
< : void 0,
< })
< ),
< !0)
< );
< }
< function _C(e, t, n) {
< if (e instanceof jl)
< for (
< var i = 0,
< r = e.state.facet(jl.atomicRanges).map(function (t) {
< return t(e);
< });
< i < r.length;
< i++
< ) {
< r[i].between(t, t, function (e, i) {
< e < t && i > t && (t = n ? i : e);
< });
< }
< return t;
< }
< var jC = function (e, t) {
< return UC(e, function (n) {
< var i,
< r,
< o = e.state,
< a = o.doc.lineAt(n);
< if (
< !t &&
< n > a.from &&
< n < a.from + 200 &&
< !/[^ \t]/.test((i = a.text.slice(0, n - a.from)))
< ) {
< if ("\t" == i[i.length - 1]) return n - 1;
< for (
< var s = Ur(i, o.tabSize) % tp(o) || tp(o), l = 0;
< l < s && " " == i[i.length - 1 - l];
< l++
< )
< n--;
< r = n;
< } else (r = mi(a.text, n - a.from, t, t) + a.from) == n && a.number != (t ? o.doc.lines : 1) && (r += t ? 1 : -1);
< return r;
< });
< },
< WC = function (e) {
< return jC(e, !1);
< },
< GC = function (e) {
< return jC(e, !0);
< },
< KC = function (e, t) {
< return UC(e, function (n) {
< for (
< var i = n,
< r = e.state,
< o = r.doc.lineAt(i),
< a = r.charCategorizer(i),
< s = null;
< ;
<
< ) {
< if (i == (t ? o.to : o.from)) {
< i == n &&
< o.number != (t ? r.doc.lines : 1) &&
< (i += t ? 1 : -1);
< break;
< }
< var l = mi(o.text, i - o.from, t) + o.from,
< c = o.text.slice(
< Math.min(i, l) - o.from,
< Math.max(i, l) - o.from
< ),
< u = a(c);
< if (null != s && u != s) break;
< (" " == c && i == n) || (s = u), (i = l);
< }
< return i;
< });
< },
< YC = function (e) {
< return KC(e, !1);
< },
< XC = function (e) {
< return KC(e, !0);
< },
< ZC = function (e) {
< return UC(e, function (t) {
< var n = e.lineBlockAt(t).to;
< return t < n ? n : Math.min(e.state.doc.length, t + 1);
< });
< },
< $C = function (e) {
< return UC(e, function (t) {
< var n = e.lineBlockAt(t).from;
< return t > n ? n : Math.max(0, t - 1);
< });
< },
< QC = function (e) {
< var t = e.state,
< n = e.dispatch;
< if (t.readOnly) return !1;
< for (var i = [], r = 0, o = "", a = t.doc.iter(); ; ) {
< if ((a.next(), a.lineBreak || a.done)) {
< var s = o.search(/\s+$/);
< if (
< (s > -1 && i.push({ from: r - (o.length - s), to: r }), a.done)
< )
< break;
< o = "";
< } else o = a.value;
< r += a.value.length;
< }
< return (
< !!i.length && (n(t.update({ changes: i, userEvent: "delete" })), !0)
< );
< },
< JC = function (e) {
< var t = e.state,
< n = e.dispatch;
< if (t.readOnly) return !1;
< var i = t.changeByRange(function (e) {
< return {
< changes: { from: e.from, to: e.to, insert: ni.of(["", ""]) },
< range: Fi.cursor(e.from),
< };
< });
< return n(t.update(i, { scrollIntoView: !0, userEvent: "input" })), !0;
< },
< ex = function (e) {
< var t = e.state,
< n = e.dispatch;
< if (t.readOnly) return !1;
< var i = t.changeByRange(function (e) {
< if (!e.empty || 0 == e.from || e.from == t.doc.length)
< return { range: e };
< var n = e.from,
< i = t.doc.lineAt(n),
< r = n == i.from ? n - 1 : mi(i.text, n - i.from, !1) + i.from,
< o = n == i.to ? n + 1 : mi(i.text, n - i.from, !0) + i.from;
< return {
< changes: {
< from: r,
< to: o,
< insert: t.doc.slice(n, o).append(t.doc.slice(r, n)),
< },
< range: Fi.cursor(o),
< };
< });
< return (
< !i.changes.empty &&
< (n(
< t.update(i, { scrollIntoView: !0, userEvent: "move.character" })
< ),
< !0)
< );
< };
< function tx(e) {
< for (
< var t = [], n = -1, i = 0, r = e.selection.ranges;
< i < r.length;
< i++
< ) {
< var o = r[i],
< a = e.doc.lineAt(o.from),
< s = e.doc.lineAt(o.to);
< if (
< (o.empty || o.to != s.from || (s = e.doc.lineAt(o.to - 1)),
< n >= a.number)
< ) {
< var l = t[t.length - 1];
< (l.to = s.to), l.ranges.push(o);
< } else t.push({ from: a.from, to: s.to, ranges: [o] });
< n = s.number + 1;
< }
< return t;
< }
< function nx(e, t, n) {
< if (e.readOnly) return !1;
< for (var i = [], r = [], o = 0, a = tx(e); o < a.length; o++) {
< var s = a[o];
< if (n ? s.to != e.doc.length : 0 != s.from) {
< var l = e.doc.lineAt(n ? s.to + 1 : s.from - 1),
< c = l.length + 1;
< if (n) {
< i.push(
< { from: s.to, to: l.to },
< { from: s.from, insert: l.text + e.lineBreak }
< );
< for (var u = 0, h = s.ranges; u < h.length; u++) {
< var p = h[u];
< r.push(
< Fi.range(
< Math.min(e.doc.length, p.anchor + c),
< Math.min(e.doc.length, p.head + c)
< )
< );
< }
< } else {
< i.push(
< { from: l.from, to: s.from },
< { from: s.to, insert: e.lineBreak + l.text }
< );
< for (var d = 0, f = s.ranges; d < f.length; d++) {
< p = f[d];
< r.push(Fi.range(p.anchor - c, p.head - c));
< }
< }
< }
< }
< return (
< !!i.length &&
< (t(
< e.update({
< changes: i,
< scrollIntoView: !0,
< selection: Fi.create(r, e.selection.mainIndex),
< userEvent: "move.line",
< })
< ),
< !0)
< );
< }
< var ix = function (e) {
< return nx(e.state, e.dispatch, !1);
< },
< rx = function (e) {
< return nx(e.state, e.dispatch, !0);
< };
< function ox(e, t, n) {
< if (e.readOnly) return !1;
< for (var i = [], r = 0, o = tx(e); r < o.length; r++) {
< var a = o[r];
< n
< ? i.push({
< from: a.from,
< insert: e.doc.slice(a.from, a.to) + e.lineBreak,
< })
< : i.push({
< from: a.to,
< insert: e.lineBreak + e.doc.slice(a.from, a.to),
< });
< }
< return (
< t(
< e.update({
< changes: i,
< scrollIntoView: !0,
< userEvent: "input.copyline",
< })
< ),
< !0
< );
< }
< var ax = function (e) {
< return ox(e.state, e.dispatch, !1);
< },
< sx = function (e) {
< return ox(e.state, e.dispatch, !0);
< },
< lx = function (e) {
< if (e.state.readOnly) return !1;
< var t = e.state,
< n = t.changes(
< tx(t).map(function (e) {
< var n = e.from,
< i = e.to;
< return (
< n > 0 ? n-- : i < t.doc.length && i++, { from: n, to: i }
< );
< })
< ),
< i = wk(t.selection, function (t) {
< return e.moveVertically(t, !0);
< }).map(n);
< return (
< e.dispatch({
< changes: n,
< selection: i,
< scrollIntoView: !0,
< userEvent: "delete.line",
< }),
< !0
< );
< },
< cx = function (e) {
< var t = e.state;
< return (
< (0, e.dispatch)(
< t.update(t.replaceSelection(t.lineBreak), {
< scrollIntoView: !0,
< userEvent: "input",
< })
< ),
< !0
< );
< };
< var ux = px(!1),
< hx = px(!0);
< function px(e) {
< return function (t) {
< var n = t.state,
< i = t.dispatch;
< if (n.readOnly) return !1;
< var r = n.changeByRange(function (t) {
< var i = t.from,
< r = t.to,
< o = n.doc.lineAt(i),
< a =
< !e &&
< i == r &&
< (function (e, t) {
< if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1)))
< return { from: t, to: t };
< var n,
< i = Rh(e).resolveInner(t),
< r = i.childBefore(t),
< o = i.childAfter(t);
< return r &&
< o &&
< r.to <= t &&
< o.from >= t &&
< (n = r.type.prop(mn.closedBy)) &&
< n.indexOf(o.name) > -1 &&
< e.doc.lineAt(r.to).from == e.doc.lineAt(o.from).from
< ? { from: r.to, to: o.from }
< : null;
< })(n, i);
< e && (i = r = (r <= o.to ? o : n.doc.lineAt(r)).to);
< var s = new op(n, { simulateBreak: i, simulateDoubleBreak: !!a }),
< l = ip(s, i);
< for (
< null == l && (l = /^\s*/.exec(n.doc.lineAt(i).text)[0].length);
< r < o.to && /\s/.test(o.text[r - o.from]);
<
< )
< r++;
< a
< ? ((i = a.from), (r = a.to))
< : i > o.from &&
< i < o.from + 100 &&
< !/\S/.test(o.text.slice(0, i)) &&
< (i = o.from);
< var c = ["", np(n, l)];
< return (
< a && c.push(np(n, s.lineIndent(o.from, -1))),
< {
< changes: { from: i, to: r, insert: ni.of(c) },
< range: Fi.cursor(i + 1 + c[1].length),
< }
< );
< });
< return i(n.update(r, { scrollIntoView: !0, userEvent: "input" })), !0;
< };
< }
< function dx(e, t) {
< var n = -1;
< return e.changeByRange(function (i) {
< for (var r = [], o = i.from; o <= i.to; ) {
< var a = e.doc.lineAt(o);
< a.number > n &&
< (i.empty || i.to > a.from) &&
< (t(a, r, i), (n = a.number)),
< (o = a.to + 1);
< }
< var s = e.changes(r);
< return {
< changes: r,
< range: Fi.range(s.mapPos(i.anchor, 1), s.mapPos(i.head, 1)),
< };
< });
< }
< var fx = function (e) {
< var t = e.state,
< n = e.dispatch;
< if (t.readOnly) return !1;
< var i = Object.create(null),
< r = new op(t, {
< overrideIndentation: function (e) {
< var t = i[e];
< return null == t ? -1 : t;
< },
< }),
< o = dx(t, function (e, n, o) {
< var a = ip(r, e.from);
< if (null != a) {
< /\S/.test(e.text) || (a = 0);
< var s = /^\s*/.exec(e.text)[0],
< l = np(t, a);
< (s != l || o.from < e.from + s.length) &&
< ((i[e.from] = a),
< n.push({ from: e.from, to: e.from + s.length, insert: l }));
< }
< });
< return o.changes.empty || n(t.update(o, { userEvent: "indent" })), !0;
< },
< mx = function (e) {
< var t = e.state,
< n = e.dispatch;
< return (
< !t.readOnly &&
< (n(
< t.update(
< dx(t, function (e, n) {
< n.push({ from: e.from, insert: t.facet(ep) });
< }),
< { userEvent: "input.indent" }
< )
< ),
< !0)
< );
< },
< gx = function (e) {
< var t = e.state,
< n = e.dispatch;
< return (
< !t.readOnly &&
< (n(
< t.update(
< dx(t, function (e, n) {
< var i = /^\s*/.exec(e.text)[0];
< if (i) {
< for (
< var r = Ur(i, t.tabSize),
< o = 0,
< a = np(t, Math.max(0, r - tp(t)));
< o < i.length &&
< o < a.length &&
< i.charCodeAt(o) == a.charCodeAt(o);
<
< )
< o++;
< n.push({
< from: e.from + o,
< to: e.from + i.length,
< insert: a.slice(o),
< });
< }
< }),
< { userEvent: "delete.dedent" }
< )
< ),
< !0)
< );
< },
< vx = function (e) {
< var t = e.state,
< n = e.dispatch;
< return t.selection.ranges.some(function (e) {
< return !e.empty;
< })
< ? mx({ state: t, dispatch: n })
< : (n(
< t.update(t.replaceSelection("\t"), {
< scrollIntoView: !0,
< userEvent: "input",
< })
< ),
< !0);
< },
< yx = [
< { key: "Ctrl-b", run: Mk, shift: lC, preventDefault: !0 },
< { key: "Ctrl-f", run: Tk, shift: cC },
< { key: "Ctrl-p", run: jk, shift: xC },
< { key: "Ctrl-n", run: Wk, shift: EC },
< { key: "Ctrl-a", run: tC, shift: IC },
< { key: "Ctrl-e", run: nC, shift: OC },
< { key: "Ctrl-d", run: GC },
< { key: "Ctrl-h", run: WC },
< { key: "Ctrl-k", run: ZC },
< { key: "Ctrl-Alt-h", run: YC },
< { key: "Ctrl-o", run: JC },
< { key: "Ctrl-t", run: ex },
< { key: "Ctrl-v", run: Xk },
< ],
< bx = [
< { key: "ArrowLeft", run: Mk, shift: lC, preventDefault: !0 },
< {
< key: "Mod-ArrowLeft",
< mac: "Alt-ArrowLeft",
< run: Pk,
< shift: dC,
< preventDefault: !0,
< },
< { mac: "Cmd-ArrowLeft", run: Jk, shift: LC, preventDefault: !0 },
< { key: "ArrowRight", run: Tk, shift: cC, preventDefault: !0 },
< {
< key: "Mod-ArrowRight",
< mac: "Alt-ArrowRight",
< run: Ik,
< shift: fC,
< preventDefault: !0,
< },
< { mac: "Cmd-ArrowRight", run: eC, shift: PC, preventDefault: !0 },
< { key: "ArrowUp", run: jk, shift: xC, preventDefault: !0 },
< { mac: "Cmd-ArrowUp", run: FC, shift: NC },
< { mac: "Ctrl-ArrowUp", run: Yk, shift: MC },
< { key: "ArrowDown", run: Wk, shift: EC, preventDefault: !0 },
< { mac: "Cmd-ArrowDown", run: BC, shift: RC },
< { mac: "Ctrl-ArrowDown", run: Xk, shift: TC },
< { key: "PageUp", run: Yk, shift: MC },
< { key: "PageDown", run: Xk, shift: TC },
< { key: "Home", run: Qk, shift: AC, preventDefault: !0 },
< { key: "Mod-Home", run: FC, shift: NC },
< { key: "End", run: $k, shift: DC, preventDefault: !0 },
< { key: "Mod-End", run: BC, shift: RC },
< { key: "Enter", run: ux },
< { key: "Mod-a", run: HC },
< { key: "Backspace", run: WC, shift: WC },
< { key: "Delete", run: GC },
< { key: "Mod-Backspace", mac: "Alt-Backspace", run: YC },
< { key: "Mod-Delete", mac: "Alt-Delete", run: XC },
< { mac: "Mod-Backspace", run: $C },
< { mac: "Mod-Delete", run: ZC },
< ].concat(
< yx.map(function (e) {
< return { mac: e.key, run: e.run, shift: e.shift };
< })
< ),
< wx = [
< { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: qk, shift: wC },
< { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: Uk, shift: kC },
< { key: "Alt-ArrowUp", run: ix },
< { key: "Shift-Alt-ArrowUp", run: ax },
< { key: "Alt-ArrowDown", run: rx },
< { key: "Shift-Alt-ArrowDown", run: sx },
< { key: "Escape", run: qC },
< { key: "Mod-Enter", run: hx },
< { key: "Alt-l", mac: "Ctrl-l", run: VC },
< { key: "Mod-i", run: zC, preventDefault: !0 },
< { key: "Mod-[", run: gx },
< { key: "Mod-]", run: mx },
< { key: "Mod-Alt-\\", run: fx },
< { key: "Shift-Mod-k", run: lx },
< { key: "Shift-Mod-\\", run: rC },
< { key: "Mod-/", run: Nw },
< { key: "Alt-A", run: qw },
< ].concat(bx),
< kx = { key: "Tab", run: mx, shift: gx };
< function Cx() {
< var e = arguments[0];
< "string" == typeof e && (e = document.createElement(e));
< var t = 1,
< n = arguments[1];
< if (
< n &&
< "object" == typeof n &&
< null == n.nodeType &&
< !Array.isArray(n)
< ) {
< for (var i in n)
< if (Object.prototype.hasOwnProperty.call(n, i)) {
< var r = n[i];
< "string" == typeof r
< ? e.setAttribute(i, r)
< : null != r && (e[i] = r);
< }
< t++;
< }
< for (; t < arguments.length; t++) xx(e, arguments[t]);
< return e;
< }
< function xx(e, t) {
< if ("string" == typeof t) e.appendChild(document.createTextNode(t));
< else if (null == t);
< else if (null != t.nodeType) e.appendChild(t);
< else {
< if (!Array.isArray(t))
< throw new RangeError("Unsupported child node: " + t);
< for (var n = 0; n < t.length; n++) xx(e, t[n]);
< }
< }
< var Ex =
< "function" == typeof String.prototype.normalize
< ? function (e) {
< return e.normalize("NFKD");
< }
< : function (e) {
< return e;
< },
< Sx = (function () {
< function e(e, t, n, i, r, o) {
< void 0 === n && (n = 0),
< void 0 === i && (i = e.length),
< (this.test = o),
< (this.value = { from: 0, to: 0 }),
< (this.done = !1),
< (this.matches = []),
< (this.buffer = ""),
< (this.bufferPos = 0),
< (this.iter = e.iterRange(n, i)),
< (this.bufferStart = n),
< (this.normalize = r
< ? function (e) {
< return r(Ex(e));
< }
< : Ex),
< (this.query = this.normalize(t));
< }
< return (
< (e.prototype.peek = function () {
< if (this.bufferPos == this.buffer.length) {
< if (
< ((this.bufferStart += this.buffer.length),
< this.iter.next(),
< this.iter.done)
< )
< return -1;
< (this.bufferPos = 0), (this.buffer = this.iter.value);
< }
< return wi(this.buffer, this.bufferPos);
< }),
< (e.prototype.next = function () {
< for (; this.matches.length; ) this.matches.pop();
< return this.nextOverlapping();
< }),
< (e.prototype.nextOverlapping = function () {
< for (;;) {
< var e = this.peek();
< if (e < 0) return (this.done = !0), this;
< var t = ki(e),
< n = this.bufferStart + this.bufferPos;
< this.bufferPos += Ci(e);
< for (var i = this.normalize(t), r = 0, o = n; ; r++) {
< var a = i.charCodeAt(r),
< s = this.match(a, o);
< if (s) return (this.value = s), this;
< if (r == i.length - 1) break;
< o == n && r < t.length && t.charCodeAt(r) == a && o++;
< }
< }
< }),
< (e.prototype.match = function (e, t) {
< for (var n = null, i = 0; i < this.matches.length; i += 2) {
< var r = this.matches[i],
< o = !1;
< this.query.charCodeAt(r) == e &&
< (r == this.query.length - 1
< ? (n = { from: this.matches[i + 1], to: t + 1 })
< : (this.matches[i]++, (o = !0))),
< o || (this.matches.splice(i, 2), (i -= 2));
< }
< return (
< this.query.charCodeAt(0) == e &&
< (1 == this.query.length
< ? (n = { from: t, to: t + 1 })
< : this.matches.push(1, t)),
< n &&
< this.test &&
< !this.test(n.from, n.to, this.buffer, this.bufferPos) &&
< (n = null),
< n
< );
< }),
< e
< );
< })();
< "undefined" != typeof Symbol &&
< (Sx.prototype[Symbol.iterator] = function () {
< return this;
< });
< var Mx = { from: -1, to: -1, match: /.*/.exec("") },
< Tx = "gm" + (null == /x/.unicode ? "" : "u"),
< Dx = (function () {
< function e(e, t, n, i, r) {
< if (
< (void 0 === i && (i = 0),
< void 0 === r && (r = e.length),
< (this.text = e),
< (this.to = r),
< (this.curLine = ""),
< (this.done = !1),
< (this.value = Mx),
< /\\[sWDnr]|\n|\r|\[\^/.test(t))
< )
< return new Px(e, t, n, i, r);
< (this.re = new RegExp(
< t,
< Tx + ((null == n ? void 0 : n.ignoreCase) ? "i" : "")
< )),
< (this.test = null == n ? void 0 : n.test),
< (this.iter = e.iter());
< var o = e.lineAt(i);
< (this.curLineStart = o.from),
< (this.matchPos = Ix(e, i)),
< this.getLine(this.curLineStart);
< }
< return (
< (e.prototype.getLine = function (e) {
< this.iter.next(e),
< this.iter.lineBreak
< ? (this.curLine = "")
< : ((this.curLine = this.iter.value),
< this.curLineStart + this.curLine.length > this.to &&
< (this.curLine = this.curLine.slice(
< 0,
< this.to - this.curLineStart
< )),
< this.iter.next());
< }),
< (e.prototype.nextLine = function () {
< (this.curLineStart = this.curLineStart + this.curLine.length + 1),
< this.curLineStart > this.to
< ? (this.curLine = "")
< : this.getLine(0);
< }),
< (e.prototype.next = function () {
< for (var e = this.matchPos - this.curLineStart; ; ) {
< this.re.lastIndex = e;
< var t = this.matchPos <= this.to && this.re.exec(this.curLine);
< if (t) {
< var n = this.curLineStart + t.index,
< i = n + t[0].length;
< if (
< ((this.matchPos = Ix(this.text, i + (n == i ? 1 : 0))),
< n == this.curLineStart + this.curLine.length &&
< this.nextLine(),
< (n < i || n > this.value.to) &&
< (!this.test || this.test(n, i, t)))
< )
< return (this.value = { from: n, to: i, match: t }), this;
< e = this.matchPos - this.curLineStart;
< } else {
< if (!(this.curLineStart + this.curLine.length < this.to))
< return (this.done = !0), this;
< this.nextLine(), (e = 0);
< }
< }
< }),
< e
< );
< })(),
< Ax = new WeakMap(),
< Lx = (function () {
< function e(e, t) {
< (this.from = e), (this.text = t);
< }
< return (
< Object.defineProperty(e.prototype, "to", {
< get: function () {
< return this.from + this.text.length;
< },
< enumerable: !1,
< configurable: !0,
< }),
< (e.get = function (t, n, i) {
< var r = Ax.get(t);
< if (!r || r.from >= i || r.to <= n) {
< var o = new e(n, t.sliceString(n, i));
< return Ax.set(t, o), o;
< }
< if (r.from == n && r.to == i) return r;
< var a = r.text,
< s = r.from;
< return (
< s > n && ((a = t.sliceString(n, s) + a), (s = n)),
< r.to < i && (a += t.sliceString(r.to, i)),
< Ax.set(t, new e(s, a)),
< new e(n, a.slice(n - s, i - s))
< );
< }),
< e
< );
< })(),
< Px = (function () {
< function e(e, t, n, i, r) {
< (this.text = e),
< (this.to = r),
< (this.done = !1),
< (this.value = Mx),
< (this.matchPos = Ix(e, i)),
< (this.re = new RegExp(
< t,
< Tx + ((null == n ? void 0 : n.ignoreCase) ? "i" : "")
< )),
< (this.test = null == n ? void 0 : n.test),
< (this.flat = Lx.get(e, i, this.chunkEnd(i + 5e3)));
< }
< return (
< (e.prototype.chunkEnd = function (e) {
< return e >= this.to ? this.to : this.text.lineAt(e).to;
< }),
< (e.prototype.next = function () {
< for (;;) {
< var e = (this.re.lastIndex = this.matchPos - this.flat.from),
< t = this.re.exec(this.flat.text);
< if (
< (t &&
< !t[0] &&
< t.index == e &&
< ((this.re.lastIndex = e + 1),
< (t = this.re.exec(this.flat.text))),
< t)
< ) {
< var n = this.flat.from + t.index,
< i = n + t[0].length;
< if (
< (this.flat.to >= this.to ||
< t.index + t[0].length <= this.flat.text.length - 10) &&
< (!this.test || this.test(n, i, t))
< )
< return (
< (this.value = { from: n, to: i, match: t }),
< (this.matchPos = Ix(this.text, i + (n == i ? 1 : 0))),
< this
< );
< }
< if (this.flat.to == this.to) return (this.done = !0), this;
< this.flat = Lx.get(
< this.text,
< this.flat.from,
< this.chunkEnd(this.flat.from + 2 * this.flat.text.length)
< );
< }
< }),
< e
< );
< })();
< function Ix(e, t) {
< if (t >= e.length) return t;
< for (
< var n, i = e.lineAt(t);
< t < i.to && (n = i.text.charCodeAt(t - i.from)) >= 56320 && n < 57344;
<
< )
< t++;
< return t;
< }
< function Ox(e) {
< var t = Cx("input", { class: "cm-textfield", name: "line" });
< function n() {
< var n = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);
< if (n) {
< var i = e.state,
< r = i.doc.lineAt(i.selection.main.head),
< o = n[1],
< a = n[2],
< s = n[3],
< l = n[4],
< c = s ? +s.slice(1) : 0,
< u = a ? +a : r.number;
< if (a && l) {
< var h = u / 100;
< o && (h = h * ("-" == o ? -1 : 1) + r.number / i.doc.lines),
< (u = Math.round(i.doc.lines * h));
< } else a && o && (u = u * ("-" == o ? -1 : 1) + r.number);
< var p = i.doc.line(Math.max(1, Math.min(i.doc.lines, u)));
< e.dispatch({
< effects: Fx.of(!1),
< selection: Fi.cursor(p.from + Math.max(0, Math.min(c, p.length))),
< scrollIntoView: !0,
< }),
< e.focus();
< }
< }
< return {
< dom: Cx(
< "form",
< {
< class: "cm-gotoLine",
< onkeydown: function (t) {
< 27 == t.keyCode
< ? (t.preventDefault(),
< e.dispatch({ effects: Fx.of(!1) }),
< e.focus())
< : 13 == t.keyCode && (t.preventDefault(), n());
< },
< onsubmit: function (e) {
< e.preventDefault(), n();
< },
< },
< Cx("label", e.state.phrase("Go to line"), ": ", t),
< " ",
< Cx(
< "button",
< { class: "cm-button", type: "submit" },
< e.state.phrase("go")
< )
< ),
< };
< }
< "undefined" != typeof Symbol &&
< (Dx.prototype[Symbol.iterator] = Px.prototype[Symbol.iterator] =
< function () {
< return this;
< });
< var Fx = pr.define(),
< Bx = _i.define({
< create: function () {
< return !0;
< },
< update: function (e, t) {
< for (var n = 0, i = t.effects; n < i.length; n++) {
< var r = i[n];
< r.is(Fx) && (e = r.value);
< }
< return e;
< },
< provide: function (e) {
< return xu.from(e, function (e) {
< return e ? Ox : null;
< });
< },
< }),
< Nx = function (e) {
< var t = bu(e, Ox);
< if (!t) {
< var n = [Fx.of(!0)];
< null == e.state.field(Bx, !1) &&
< n.push(pr.appendConfig.of([Bx, Rx])),
< e.dispatch({ effects: n }),
< (t = bu(e, Ox));
< }
< return t && t.dom.querySelector("input").focus(), !0;
< },
< Rx = jl.baseTheme({
< ".cm-panel.cm-gotoLine": {
< padding: "2px 6px 4px",
< "& label": { fontSize: "80%" },
< },
< }),
< Hx = {
< highlightWordAroundCursor: !1,
< minSelectionLength: 1,
< maxMatches: 100,
< wholeWords: !1,
< },
< Vx = Ri.define({
< combine: function (e) {
< return Sr(e, Hx, {
< highlightWordAroundCursor: function (e, t) {
< return e || t;
< },
< minSelectionLength: Math.min,
< maxMatches: Math.min,
< });
< },
< });
< function zx(e) {
< var t = [Wx, jx];
< return e && t.push(Vx.of(e)), t;
< }
< var qx = la.mark({ class: "cm-selectionMatch" }),
< Ux = la.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
< function _x(e, t, n, i) {
< return !(
< (0 != n && e(t.sliceDoc(n - 1, n)) == kr.Word) ||
< (i != t.doc.length && e(t.sliceDoc(i, i + 1)) == kr.Word)
< );
< }
< var jx = Fa.fromClass(
< (function () {
< function e(e) {
< this.decorations = this.getDeco(e);
< }
< return (
< (e.prototype.update = function (e) {
< (e.selectionSet || e.docChanged || e.viewportChanged) &&
< (this.decorations = this.getDeco(e.view));
< }),
< (e.prototype.getDeco = function (e) {
< var t = e.state.facet(Vx),
< n = e.state,
< i = n.selection;
< if (i.ranges.length > 1) return la.none;
< var r,
< o = i.main,
< a = null;
< if (o.empty) {
< if (!t.highlightWordAroundCursor) return la.none;
< var s = n.wordAt(o.head);
< if (!s) return la.none;
< (a = n.charCategorizer(o.head)),
< (r = n.sliceDoc(s.from, s.to));
< } else {
< var l = o.to - o.from;
< if (l < t.minSelectionLength || l > 200) return la.none;
< if (t.wholeWords) {
< if (
< ((r = n.sliceDoc(o.from, o.to)),
< !_x((a = n.charCategorizer(o.head)), n, o.from, o.to) ||
< !(function (e, t, n, i) {
< return (
< e(t.sliceDoc(n, n + 1)) == kr.Word &&
< e(t.sliceDoc(i - 1, i)) == kr.Word
< );
< })(a, n, o.from, o.to))
< )
< return la.none;
< } else if (!(r = n.sliceDoc(o.from, o.to).trim()))
< return la.none;
< }
< for (var c = [], u = 0, h = e.visibleRanges; u < h.length; u++)
< for (
< var p = h[u], d = new Sx(n.doc, r, p.from, p.to);
< !d.next().done;
<
< ) {
< var f = d.value,
< m = f.from,
< g = f.to;
< if (
< (!a || _x(a, n, m, g)) &&
< (o.empty && m <= o.from && g >= o.to
< ? c.push(Ux.range(m, g))
< : (m >= o.to || g <= o.from) && c.push(qx.range(m, g)),
< c.length > t.maxMatches)
< )
< return la.none;
< }
< return la.set(c);
< }),
< e
< );
< })(),
< {
< decorations: function (e) {
< return e.decorations;
< },
< }
< ),
< Wx = jl.baseTheme({
< ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
< ".cm-searchMatch .cm-selectionMatch": {
< backgroundColor: "transparent",
< },
< });
< var Gx = function (e) {
< var t = e.state,
< n = e.dispatch,
< i = t.selection.ranges;
< if (
< i.some(function (e) {
< return e.from === e.to;
< })
< )
< return (function (e) {
< var t = e.state,
< n = e.dispatch,
< i = t.selection,
< r = Fi.create(
< i.ranges.map(function (e) {
< return t.wordAt(e.head) || Fi.cursor(e.head);
< }),
< i.mainIndex
< );
< return !r.eq(i) && (n(t.update({ selection: r })), !0);
< })({ state: t, dispatch: n });
< var r = t.sliceDoc(i[0].from, i[0].to);
< if (
< t.selection.ranges.some(function (e) {
< return t.sliceDoc(e.from, e.to) != r;
< })
< )
< return !1;
< var o = (function (e, t) {
< for (
< var n,
< i,
< r = e.selection,
< o = r.main,
< a = r.ranges,
< s = e.wordAt(o.head),
< l = s && s.from == o.from && s.to == o.to,
< c = function (r, o) {
< if ((o.next(), !o.done)) {
< if (
< r &&
< a.some(function (e) {
< return e.from == o.value.from;
< })
< )
< return (n = r), (i = o), "continue";
< if (l) {
< var s = e.wordAt(o.value.from);
< if (!s || s.from != o.value.from || s.to != o.value.to)
< return (n = r), (i = o), "continue";
< }
< return { value: o.value };
< }
< if (r) return { value: null };
< (o = new Sx(
< e.doc,
< t,
< 0,
< Math.max(0, a[a.length - 1].from - 1)
< )),
< (n = r = !0),
< (i = o);
< },
< u = !1,
< h = new Sx(e.doc, t, a[a.length - 1].to);
< ;
<
< ) {
< var p = c(u, h);
< if (((u = n), (h = i), "object" == typeof p)) return p.value;
< }
< })(t, r);
< return (
< !!o &&
< (n(
< t.update({
< selection: t.selection.addRange(Fi.range(o.from, o.to), !1),
< effects: jl.scrollIntoView(o.to),
< })
< ),
< !0)
< );
< },
< Kx = Ri.define({
< combine: function (e) {
< return Sr(e, {
< top: !1,
< caseSensitive: !1,
< literal: !1,
< wholeWord: !1,
< createPanel: function (e) {
< return new EE(e);
< },
< scrollToMatch: function (e) {
< return jl.scrollIntoView(e);
< },
< });
< },
< });
< function Yx(e) {
< return e ? [Kx.of(e), AE] : AE;
< }
< var Xx = (function () {
< function e(e) {
< (this.search = e.search),
< (this.caseSensitive = !!e.caseSensitive),
< (this.literal = !!e.literal),
< (this.regexp = !!e.regexp),
< (this.replace = e.replace || ""),
< (this.valid =
< !!this.search &&
< (!this.regexp ||
< (function (e) {
< try {
< return new RegExp(e, Tx), !0;
< } catch (e) {
< return !1;
< }
< })(this.search))),
< (this.unquoted = this.unquote(this.search)),
< (this.wholeWord = !!e.wholeWord);
< }
< return (
< (e.prototype.unquote = function (e) {
< return this.literal
< ? e
< : e.replace(/\\([nrt\\])/g, function (e, t) {
< return "n" == t
< ? "\n"
< : "r" == t
< ? "\r"
< : "t" == t
< ? "\t"
< : "\\";
< });
< }),
< (e.prototype.eq = function (e) {
< return (
< this.search == e.search &&
< this.replace == e.replace &&
< this.caseSensitive == e.caseSensitive &&
< this.regexp == e.regexp &&
< this.wholeWord == e.wholeWord
< );
< }),
< (e.prototype.create = function () {
< return this.regexp ? new nE(this) : new Qx(this);
< }),
< (e.prototype.getCursor = function (e, t, n) {
< void 0 === t && (t = 0);
< var i = e.doc ? e : Er.create({ doc: e });
< return (
< null == n && (n = i.doc.length),
< this.regexp ? Jx(this, i, t, n) : $x(this, i, t, n)
< );
< }),
< e
< );
< })(),
< Zx = function (e) {
< this.spec = e;
< };
< function $x(e, t, n, i) {
< return new Sx(
< t.doc,
< e.unquoted,
< n,
< i,
< e.caseSensitive
< ? void 0
< : function (e) {
< return e.toLowerCase();
< },
< e.wholeWord
< ? (function (e, t) {
< return function (n, i, r, o) {
< return (
< (o > n || o + r.length < i) &&
< ((o = Math.max(0, n - 2)),
< (r = e.sliceString(o, Math.min(e.length, i + 2)))),
< !(
< (t(eE(r, n - o)) == kr.Word &&
< t(tE(r, n - o)) == kr.Word) ||
< (t(tE(r, i - o)) == kr.Word && t(eE(r, i - o)) == kr.Word)
< )
< );
< };
< })(t.doc, t.charCategorizer(t.selection.main.head))
< : void 0
< );
< }
< var Qx = (function (e) {
< function t(t) {
< return e.call(this, t) || this;
< }
< return (
< f(t, e),
< (t.prototype.nextMatch = function (e, t, n) {
< var i = $x(this.spec, e, n, e.doc.length).nextOverlapping();
< return (
< i.done && (i = $x(this.spec, e, 0, t).nextOverlapping()),
< i.done ? null : i.value
< );
< }),
< (t.prototype.prevMatchInRange = function (e, t, n) {
< for (var i = n; ; ) {
< for (
< var r = Math.max(t, i - 1e4 - this.spec.unquoted.length),
< o = $x(this.spec, e, r, i),
< a = null;
< !o.nextOverlapping().done;
<
< )
< a = o.value;
< if (a) return a;
< if (r == t) return null;
< i -= 1e4;
< }
< }),
< (t.prototype.prevMatch = function (e, t, n) {
< return (
< this.prevMatchInRange(e, 0, t) ||
< this.prevMatchInRange(e, n, e.doc.length)
< );
< }),
< (t.prototype.getReplacement = function (e) {
< return this.spec.unquote(this.spec.replace);
< }),
< (t.prototype.matchAll = function (e, t) {
< for (
< var n = $x(this.spec, e, 0, e.doc.length), i = [];
< !n.next().done;
<
< ) {
< if (i.length >= t) return null;
< i.push(n.value);
< }
< return i;
< }),
< (t.prototype.highlight = function (e, t, n, i) {
< for (
< var r = $x(
< this.spec,
< e,
< Math.max(0, t - this.spec.unquoted.length),
< Math.min(n + this.spec.unquoted.length, e.doc.length)
< );
< !r.next().done;
<
< )
< i(r.value.from, r.value.to);
< }),
< t
< );
< })(Zx);
< function Jx(e, t, n, i) {
< return new Dx(
< t.doc,
< e.search,
< {
< ignoreCase: !e.caseSensitive,
< test: e.wholeWord
< ? ((r = t.charCategorizer(t.selection.main.head)),
< function (e, t, n) {
< return (
< !n[0].length ||
< ((r(eE(n.input, n.index)) != kr.Word ||
< r(tE(n.input, n.index)) != kr.Word) &&
< (r(tE(n.input, n.index + n[0].length)) != kr.Word ||
< r(eE(n.input, n.index + n[0].length)) != kr.Word))
< );
< })
< : void 0,
< },
< n,
< i
< );
< var r;
< }
< function eE(e, t) {
< return e.slice(mi(e, t, !1), t);
< }
< function tE(e, t) {
< return e.slice(t, mi(e, t));
< }
< var nE = (function (e) {
< function t() {
< return (null !== e && e.apply(this, arguments)) || this;
< }
< return (
< f(t, e),
< (t.prototype.nextMatch = function (e, t, n) {
< var i = Jx(this.spec, e, n, e.doc.length).next();
< return (
< i.done && (i = Jx(this.spec, e, 0, t).next()),
< i.done ? null : i.value
< );
< }),
< (t.prototype.prevMatchInRange = function (e, t, n) {
< for (var i = 1; ; i++) {
< for (
< var r = Math.max(t, n - 1e4 * i),
< o = Jx(this.spec, e, r, n),
< a = null;
< !o.next().done;
<
< )
< a = o.value;
< if (a && (r == t || a.from > r + 10)) return a;
< if (r == t) return null;
< }
< }),
< (t.prototype.prevMatch = function (e, t, n) {
< return (
< this.prevMatchInRange(e, 0, t) ||
< this.prevMatchInRange(e, n, e.doc.length)
< );
< }),
< (t.prototype.getReplacement = function (e) {
< return this.spec.unquote(
< this.spec.replace.replace(/\$([$&\d+])/g, function (t, n) {
< return "$" == n
< ? "$"
< : "&" == n
< ? e.match[0]
< : "0" != n && +n < e.match.length
< ? e.match[n]
< : t;
< })
< );
< }),
< (t.prototype.matchAll = function (e, t) {
< for (
< var n = Jx(this.spec, e, 0, e.doc.length), i = [];
< !n.next().done;
<
< ) {
< if (i.length >= t) return null;
< i.push(n.value);
< }
< return i;
< }),
< (t.prototype.highlight = function (e, t, n, i) {
< for (
< var r = Jx(
< this.spec,
< e,
< Math.max(0, t - 250),
< Math.min(n + 250, e.doc.length)
< );
< !r.next().done;
<
< )
< i(r.value.from, r.value.to);
< }),
< t
< );
< })(Zx),
< iE = pr.define(),
< rE = pr.define(),
< oE = _i.define({
< create: function (e) {
< return new lE(wE(e).create(), null);
< },
< update: function (e, t) {
< for (var n = 0, i = t.effects; n < i.length; n++) {
< var r = i[n];
< r.is(iE)
< ? (e = new lE(r.value.create(), e.panel))
< : r.is(rE) && (e = new lE(e.query, r.value ? bE : null));
< }
< return e;
< },
< provide: function (e) {
< return xu.from(e, function (e) {
< return e.panel;
< });
< },
< });
< function aE(e) {
< var t = e.field(oE, !1);
< return t ? t.query.spec : wE(e);
< }
< function sE(e) {
< var t;
< return (
< null !=
< (null === (t = e.field(oE, !1)) || void 0 === t ? void 0 : t.panel)
< );
< }
< var lE = function (e, t) {
< (this.query = e), (this.panel = t);
< },
< cE = la.mark({ class: "cm-searchMatch" }),
< uE = la.mark({ class: "cm-searchMatch cm-searchMatch-selected" }),
< hE = Fa.fromClass(
< (function () {
< function e(e) {
< (this.view = e),
< (this.decorations = this.highlight(e.state.field(oE)));
< }
< return (
< (e.prototype.update = function (e) {
< var t = e.state.field(oE);
< (t != e.startState.field(oE) ||
< e.docChanged ||
< e.selectionSet ||
< e.viewportChanged) &&
< (this.decorations = this.highlight(t));
< }),
< (e.prototype.highlight = function (e) {
< var t = e.query;
< if (!e.panel || !t.spec.valid) return la.none;
< for (
< var n = this.view,
< i = new Pr(),
< r = 0,
< o = n.visibleRanges,
< a = o.length;
< r < a;
< r++
< ) {
< for (
< var s = o[r], l = s.from, c = s.to;
< r < a - 1 && c > o[r + 1].from - 500;
<
< )
< c = o[++r].to;
< t.highlight(n.state, l, c, function (e, t) {
< var r = n.state.selection.ranges.some(function (n) {
< return n.from == e && n.to == t;
< });
< i.add(e, t, r ? uE : cE);
< });
< }
< return i.finish();
< }),
< e
< );
< })(),
< {
< decorations: function (e) {
< return e.decorations;
< },
< }
< );
< function pE(e) {
< return function (t) {
< var n = t.state.field(oE, !1);
< return n && n.query.spec.valid ? e(t, n) : kE(t);
< };
---
> var kS = new WeakMap();
> function CS(e) {
> vS();
> var t = e.getAttribute("aria-label") || "";
> kS.has(e) && (t = kS.get(e)(e));
> var n = "bottom";
> e.hasAttribute("data-tooltip-position") &&
> (n = e.getAttribute("data-tooltip-position"));
> var i = [];
> e.hasAttribute("data-tooltip-classes") &&
> (i = (e.getAttribute("data-tooltip-classes") || "").split(" "));
> var r = 750;
> e.hasAttribute("data-tooltip-delay") &&
> ((r = parseInt(e.getAttribute("data-tooltip-delay") || "")),
> isNaN(r) && (r = 750)),
> xS(e, t, { placement: n, classes: i, delay: r });
55879,55913c56839,56851
< var dE = pE(function (e, t) {
< var n = t.query,
< i = e.state.selection.main.to,
< r = n.nextMatch(e.state, i, i);
< if (!r) return !1;
< var o = Fi.single(r.from, r.to),
< a = e.state.facet(Kx);
< return (
< e.dispatch({
< selection: o,
< effects: [TE(e, r), a.scrollToMatch(o.main)],
< userEvent: "select.search",
< }),
< !0
< );
< }),
< fE = pE(function (e, t) {
< var n = t.query,
< i = e.state,
< r = i.selection.main.from,
< o = n.prevMatch(i, r, r);
< if (!o) return !1;
< var a = Fi.single(o.from, o.to),
< s = e.state.facet(Kx);
< return (
< e.dispatch({
< selection: a,
< effects: [TE(e, o), s.scrollToMatch(a.main)],
< userEvent: "select.search",
< }),
< !0
< );
< }),
< mE = pE(function (e, t) {
< var n = t.query.matchAll(e.state, 1e3);
---
> var ES = 0;
> function xS(e, t, n) {
> var i = Date.now(),
> r = (n = n || {}).placement,
> o = void 0 === r ? "bottom" : r,
> a = n.classes,
> s = void 0 === a ? [] : a,
> l = n.gap,
> c = void 0 === l ? 8 : l,
> u = n.horizontalParent,
> h = n.delay,
> p = void 0 === h ? 0 : h;
> if (p > 0 && (dS || i > ES + 100))
55915,55924c56853,56857
< !(!n || !n.length) &&
< (e.dispatch({
< selection: Fi.create(
< n.map(function (e) {
< return Fi.range(e.from, e.to);
< })
< ),
< userEvent: "select.search.matches",
< }),
< !0)
---
> vS(),
> (n.delay = 0),
> void (gS = window.setTimeout(function () {
> return xS(e, t, n);
> }, p))
55926,55944c56859,56868
< }),
< gE = function (e) {
< var t = e.state,
< n = e.dispatch,
< i = t.selection;
< if (i.ranges.length > 1 || i.main.empty) return !1;
< for (
< var r = i.main,
< o = r.from,
< a = r.to,
< s = [],
< l = 0,
< c = new Sx(t.doc, t.sliceDoc(o, a));
< !c.next().done;
<
< ) {
< if (s.length > 1e3) return !1;
< c.value.from == o && (l = s.length),
< s.push(Fi.range(c.value.from, c.value.to));
---
> if (t) {
> var d = e.doc,
> f = e.getBoundingClientRect(),
> m = f.top,
> g = f.left,
> v = f.width,
> y = f.height;
> if (u) {
> var b = u.getBoundingClientRect();
> (g = b.left), (v = b.width);
55946,55968c56870,56895
< return (
< n(
< t.update({
< selection: Fi.create(s, l),
< userEvent: "select.search.matches",
< })
< ),
< !0
< );
< },
< vE = pE(function (e, t) {
< var n = t.query,
< i = e.state,
< r = i.selection.main,
< o = r.from,
< a = r.to;
< if (i.readOnly) return !1;
< var s = n.nextMatch(i, o, o);
< if (!s) return !1;
< var l,
< c,
< u = [],
< h = [];
---
> dS && fS === e
> ? dS.setText(t)
> : (SS(), (dS = createDiv({ cls: "tooltip", text: t })));
> var w = dS.createDiv("tooltip-arrow"),
> k = 0,
> C = 0;
> "bottom" === o
> ? ((k = m + y + c), (C = g + v / 2))
> : "right" === o
> ? ((k = m + y / 2), (C = g + v + c), s.push("mod-right"))
> : "left" === o
> ? ((k = m + y / 2), (C = g - c), s.push("mod-left"))
> : "top" === o &&
> ((k = m - c - 5), (C = g + v / 2), s.push("mod-top")),
> dS.addClasses(s),
> (dS.style.top = "0px"),
> (dS.style.left = "0px"),
> (dS.style.width = ""),
> (dS.style.height = ""),
> dS.parentNode || d.body.appendChild(dS);
> var E = dS.getBoundingClientRect(),
> x = ["bottom", "top"].contains(o) ? E.width / 2 : E.width,
> S = "right" === o || "left" === o ? E.height / 2 : E.height;
> "left" === o ? (C -= x) : "top" === o && (k -= S);
> var M = d.body.clientHeight,
> T = d.body.clientWidth;
55970,55981c56897,56899
< (s.from == o &&
< s.to == a &&
< ((c = i.toText(n.getReplacement(s))),
< u.push({ from: s.from, to: s.to, insert: c }),
< (s = n.nextMatch(i, s.from, s.to)),
< h.push(
< jl.announce.of(
< i.phrase("replaced match on line $", i.doc.lineAt(o).number) +
< "."
< )
< )),
< s)
---
> (k + S > M && (k = M - S - c),
> (k = Math.max(k, c)),
> "top" === o || "bottom" === o)
55983,57938c56901,56909
< var p =
< 0 == u.length || u[0].from >= s.to ? 0 : s.to - s.from - c.length;
< (l = Fi.single(s.from - p, s.to - p)),
< h.push(TE(e, s)),
< h.push(i.facet(Kx).scrollToMatch(l.main));
< }
< return (
< e.dispatch({
< changes: u,
< selection: l,
< effects: h,
< userEvent: "input.replace",
< }),
< !0
< );
< }),
< yE = pE(function (e, t) {
< var n = t.query;
< if (e.state.readOnly) return !1;
< var i = n.matchAll(e.state, 1e9).map(function (e) {
< return { from: e.from, to: e.to, insert: n.getReplacement(e) };
< });
< if (!i.length) return !1;
< var r = e.state.phrase("replaced $ matches", i.length) + ".";
< return (
< e.dispatch({
< changes: i,
< effects: jl.announce.of(r),
< userEvent: "input.replace.all",
< }),
< !0
< );
< });
< function bE(e) {
< return e.state.facet(Kx).createPanel(e);
< }
< function wE(e, t) {
< var n,
< i,
< r,
< o,
< a = e.selection.main,
< s = a.empty || a.to > a.from + 100 ? "" : e.sliceDoc(a.from, a.to);
< if (t && !s) return t;
< var l = e.facet(Kx);
< return new Xx({
< search: (
< null !== (n = null == t ? void 0 : t.literal) && void 0 !== n
< ? n
< : l.literal
< )
< ? s
< : s.replace(/\n/g, "\\n"),
< caseSensitive:
< null !== (i = null == t ? void 0 : t.caseSensitive) && void 0 !== i
< ? i
< : l.caseSensitive,
< literal:
< null !== (r = null == t ? void 0 : t.literal) && void 0 !== r
< ? r
< : l.literal,
< wholeWord:
< null !== (o = null == t ? void 0 : t.wholeWord) && void 0 !== o
< ? o
< : l.wholeWord,
< });
< }
< var kE = function (e) {
< var t = e.state.field(oE, !1);
< if (t && t.panel) {
< var n = bu(e, bE);
< if (!n) return !1;
< var i = n.dom.querySelector("[main-field]");
< if (i && i != e.root.activeElement) {
< var r = wE(e.state, t.query.spec);
< r.valid && e.dispatch({ effects: iE.of(r) }),
< i.focus(),
< i.select();
< }
< } else
< e.dispatch({
< effects: [
< rE.of(!0),
< t ? iE.of(wE(e.state, t.query.spec)) : pr.appendConfig.of(AE),
< ],
< });
< return !0;
< },
< CE = function (e) {
< var t = e.state.field(oE, !1);
< if (!t || !t.panel) return !1;
< var n = bu(e, bE);
< return (
< n && n.dom.contains(e.root.activeElement) && e.focus(),
< e.dispatch({ effects: rE.of(!1) }),
< !0
< );
< },
< xE = [
< { key: "Mod-f", run: kE, scope: "editor search-panel" },
< {
< key: "F3",
< run: dE,
< shift: fE,
< scope: "editor search-panel",
< preventDefault: !0,
< },
< {
< key: "Mod-g",
< run: dE,
< shift: fE,
< scope: "editor search-panel",
< preventDefault: !0,
< },
< { key: "Escape", run: CE, scope: "editor search-panel" },
< { key: "Mod-Shift-l", run: gE },
< { key: "Alt-g", run: Nx },
< { key: "Mod-d", run: Gx, preventDefault: !0 },
< ],
< EE = (function () {
< function e(e) {
< var t = this;
< this.view = e;
< var n = (this.query = e.state.field(oE).query.spec);
< function i(e, t, n) {
< return Cx(
< "button",
< { class: "cm-button", name: e, onclick: t, type: "button" },
< n
< );
< }
< (this.commit = this.commit.bind(this)),
< (this.searchField = Cx("input", {
< value: n.search,
< placeholder: SE(e, "Find"),
< "aria-label": SE(e, "Find"),
< class: "cm-textfield",
< name: "search",
< form: "",
< "main-field": "true",
< onchange: this.commit,
< onkeyup: this.commit,
< })),
< (this.replaceField = Cx("input", {
< value: n.replace,
< placeholder: SE(e, "Replace"),
< "aria-label": SE(e, "Replace"),
< class: "cm-textfield",
< name: "replace",
< form: "",
< onchange: this.commit,
< onkeyup: this.commit,
< })),
< (this.caseField = Cx("input", {
< type: "checkbox",
< name: "case",
< form: "",
< checked: n.caseSensitive,
< onchange: this.commit,
< })),
< (this.reField = Cx("input", {
< type: "checkbox",
< name: "re",
< form: "",
< checked: n.regexp,
< onchange: this.commit,
< })),
< (this.wordField = Cx("input", {
< type: "checkbox",
< name: "word",
< form: "",
< checked: n.wholeWord,
< onchange: this.commit,
< })),
< (this.dom = Cx(
< "div",
< {
< onkeydown: function (e) {
< return t.keydown(e);
< },
< class: "cm-search",
< },
< w(
< w(
< [
< this.searchField,
< i(
< "next",
< function () {
< return dE(e);
< },
< [SE(e, "next")]
< ),
< i(
< "prev",
< function () {
< return fE(e);
< },
< [SE(e, "previous")]
< ),
< i(
< "select",
< function () {
< return mE(e);
< },
< [SE(e, "all")]
< ),
< Cx("label", null, [this.caseField, SE(e, "match case")]),
< Cx("label", null, [this.reField, SE(e, "regexp")]),
< Cx("label", null, [this.wordField, SE(e, "by word")]),
< ],
< e.state.readOnly
< ? []
< : [
< Cx("br"),
< this.replaceField,
< i(
< "replace",
< function () {
< return vE(e);
< },
< [SE(e, "replace")]
< ),
< i(
< "replaceAll",
< function () {
< return yE(e);
< },
< [SE(e, "replace all")]
< ),
< ],
< !0
< ),
< [
< Cx(
< "button",
< {
< name: "close",
< onclick: function () {
< return CE(e);
< },
< "aria-label": SE(e, "close"),
< type: "button",
< },
< ["×"]
< ),
< ],
< !1
< )
< ));
< }
< return (
< (e.prototype.commit = function () {
< var e = new Xx({
< search: this.searchField.value,
< caseSensitive: this.caseField.checked,
< regexp: this.reField.checked,
< wholeWord: this.wordField.checked,
< replace: this.replaceField.value,
< });
< e.eq(this.query) ||
< ((this.query = e), this.view.dispatch({ effects: iE.of(e) }));
< }),
< (e.prototype.keydown = function (e) {
< tc(this.view, e, "search-panel")
< ? e.preventDefault()
< : 13 == e.keyCode && e.target == this.searchField
< ? (e.preventDefault(), (e.shiftKey ? fE : dE)(this.view))
< : 13 == e.keyCode &&
< e.target == this.replaceField &&
< (e.preventDefault(), vE(this.view));
< }),
< (e.prototype.update = function (e) {
< for (var t = 0, n = e.transactions; t < n.length; t++)
< for (var i = 0, r = n[t].effects; i < r.length; i++) {
< var o = r[i];
< o.is(iE) && !o.value.eq(this.query) && this.setQuery(o.value);
< }
< }),
< (e.prototype.setQuery = function (e) {
< (this.query = e),
< (this.searchField.value = e.search),
< (this.replaceField.value = e.replace),
< (this.caseField.checked = e.caseSensitive),
< (this.reField.checked = e.regexp),
< (this.wordField.checked = e.wholeWord);
< }),
< (e.prototype.mount = function () {
< this.searchField.select();
< }),
< Object.defineProperty(e.prototype, "pos", {
< get: function () {
< return 80;
< },
< enumerable: !1,
< configurable: !0,
< }),
< Object.defineProperty(e.prototype, "top", {
< get: function () {
< return this.view.state.facet(Kx).top;
< },
< enumerable: !1,
< configurable: !0,
< }),
< e
< );
< })();
< function SE(e, t) {
< return e.state.phrase(t);
< }
< var ME = /[\s\.,:;?!]/;
< function TE(e, t) {
< var n = t.from,
< i = t.to,
< r = e.state.doc.lineAt(n),
< o = e.state.doc.lineAt(i).to,
< a = Math.max(r.from, n - 30),
< s = Math.min(o, i + 30),
< l = e.state.sliceDoc(a, s);
< if (a != r.from)
< for (var c = 0; c < 30; c++)
< if (!ME.test(l[c + 1]) && ME.test(l[c])) {
< l = l.slice(c);
< break;
< }
< if (s != o)
< for (c = l.length - 1; c > l.length - 30; c--)
< if (!ME.test(l[c - 1]) && ME.test(l[c])) {
< l = l.slice(0, c);
< break;
< }
< return jl.announce.of(
< ""
< .concat(e.state.phrase("current match"), ". ")
< .concat(l, " ")
< .concat(e.state.phrase("on line"), " ")
< .concat(r.number, ".")
< );
< }
< var DE = jl.baseTheme({
< ".cm-panel.cm-search": {
< padding: "2px 6px 4px",
< position: "relative",
< "& [name=close]": {
< position: "absolute",
< top: "0",
< right: "4px",
< backgroundColor: "inherit",
< border: "none",
< font: "inherit",
< padding: 0,
< margin: 0,
< },
< "& input, & button, & label": { margin: ".2em .6em .2em 0" },
< "& input[type=checkbox]": { marginRight: ".2em" },
< "& label": { fontSize: "80%", whiteSpace: "pre" },
< },
< "&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
< "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
< "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
< "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" },
< }),
< AE = [oE, Xi.lowest(hE), DE],
< LE = new window.TurndownService({
< headingStyle: "atx",
< hr: "---",
< bulletListMarker: "-",
< codeBlockStyle: "fenced",
< fence: "```",
< linkStyle: "inlined",
< });
< LE.remove(["script", "style", "title"]),
< LE.addRule("strikethrough", {
< filter: ["del", "s"],
< replacement: function (e) {
< return "~~" + e + "~~";
< },
< }),
< LE.addRule("highlight", {
< filter: ["mark"],
< replacement: function (e) {
< return "==" + e + "==";
< },
< });
< var PE = /highlight-(?:text|source)-([a-z0-9]+)/;
< LE.addRule("highlightedCodeBlock", {
< filter: function (e) {
< var t = e.firstChild;
< return (
< "DIV" === e.nodeName &&
< PE.test(e.className) &&
< t &&
< "PRE" === t.nodeName
< );
< },
< replacement: function (e, t, n) {
< var i = ((t.className || "").match(PE) || [null, ""])[1];
< return (
< "\n\n" +
< n.fence +
< i +
< "\n" +
< t.firstChild.textContent +
< "\n" +
< n.fence +
< "\n\n"
< );
< },
< }),
< LE.addRule("listItem", {
< filter: "li",
< replacement: function (e, t, n) {
< e = e
< .replace(/^\n+/, "")
< .replace(/\n+$/, "\n")
< .replace(/\n/gm, "\n ");
< var i = n.bulletListMarker + " ",
< r = t.parentNode;
< if ("OL" === r.nodeName) {
< var o = r.getAttr("start"),
< a = Array.prototype.indexOf.call(r.children, t);
< i = (o ? Number(o) + a : a + 1) + ". ";
< }
< return i + e + (t.nextSibling && !/\n$/.test(e) ? "\n" : "");
< },
< }),
< LE.addRule("taskListItems", {
< filter: function (e) {
< return (
< e.instanceOf(HTMLInputElement) &&
< "checkbox" === e.type &&
< "LI" === e.parentNode.nodeName
< );
< },
< replacement: function (e, t) {
< return t.checked ? "[x] " : "[ ] ";
< },
< }),
< LE.addRule("tableCell", {
< filter: ["th", "td"],
< replacement: function (e, t) {
< return (
< (0 === Array.prototype.indexOf.call(t.parentNode.childNodes, t)
< ? "|"
< : "") +
< (function (e) {
< return (
< (e = e
< .trim()
< .replace(/\|+/g, "\\|")
< .replace(/\n\r?/g, "<br>")) + "|"
< );
< })(e) +
< BE(t, " |")
< );
< },
< });
< var IE = { left: ":--", right: "--:", center: ":-:" };
< function OE(e) {
< if (!e) return !1;
< var t,
< n,
< i = e.parentNode;
< return (
< "THEAD" === i.nodeName ||
< (i.firstChild === e &&
< ("TABLE" === i.nodeName ||
< ((n = (t = i).previousSibling),
< "TBODY" === t.nodeName &&
< (!n ||
< ("THEAD" === n.nodeName && /^\s*$/i.test(n.textContent))))) &&
< Array.prototype.every.call(e.childNodes, function (e) {
< return "TH" === e.nodeName;
< }))
< );
< }
< function FE(e) {
< var t = e.getAttribute("colspan");
< if (!t) return 0;
< var n = parseInt(t);
< return isNaN(n) ? 0 : Math.max(0, n - 1);
< }
< function BE(e, t) {
< return t.repeat(FE(e));
< }
< function NE(e) {
< return LE.turndown(e);
< }
< LE.addRule("tableRow", {
< filter: "tr",
< replacement: function (e, t) {
< var n = "";
< if (OE(t))
< for (var i = 0; i < t.cells.length; i++) {
< var r = t.cells[i],
< o = (r.getAttribute("align") || "").toLowerCase(),
< a = IE[o] || "---";
< n += (0 === i ? "|" : "") + a + "|" + BE(r, a + "|");
< }
< return "\n" + e + (n ? "\n" + n : "");
< },
< }),
< LE.addRule("table", {
< filter: "table",
< replacement: function (e, t) {
< var n = t.rows[0];
< if (!OE(n)) {
< for (var i = n.cells.length, r = 0; r < n.cells.length; r++)
< i += FE(n.cells[r]);
< e =
< "|" +
< " |".repeat(i) +
< "\n|" +
< "---|".repeat(i) +
< "\n" +
< e.replace(/^[\r\n]+/, "");
< }
< return "\n\n" + (e = e.replace(/[\r\n]+/g, "\n")) + "\n\n";
< },
< }),
< LE.addRule("tableSection", {
< filter: ["thead", "tbody", "tfoot"],
< replacement: function (e) {
< return e;
< },
< }),
< (LE.escape = function (e) {
< return e;
< });
< var RE = [
< "accentColor",
< "theme",
< "cssTheme",
< "enabledCssSnippets",
< "showViewHeader",
< "nativeMenus",
< "translucency",
< "textFontFamily",
< "interfaceFontFamily",
< "monospaceFontFamily",
< "baseFontSize",
< "baseFontSizeAction",
< ],
< HE = {
< alwaysUpdateLinks: !1,
< spellcheck: !0,
< spellcheckLanguages: null,
< readableLineLength: !0,
< strictLineBreaks: !1,
< showFrontmatter: !1,
< showInlineTitle: !0,
< showViewHeader: !0,
< mobileQuickRibbonItem: "",
< useMarkdownLinks: !1,
< showUnsupportedFiles: !1,
< autoPairBrackets: !0,
< autoPairMarkdown: !0,
< smartIndentList: !0,
< foldHeading: !0,
< foldIndent: !0,
< showLineNumber: !1,
< showIndentGuide: !0,
< useTab: !0,
< tabSize: 4,
< rightToLeft: !1,
< autoConvertHtml: !0,
< vimMode: !1,
< emacsyKeys: !0,
< legacyEditor: !1,
< livePreview: !0,
< nativeMenus: null,
< attachmentFolderPath: "/",
< newFileLocation: "root",
< newFileFolderPath: "/",
< newLinkFormat: "shortest",
< userIgnoreFilters: null,
< fileSortOrder: "alphabetical",
< focusNewTab: !0,
< defaultViewMode: "source",
< promptDelete: !0,
< trashOption: "system",
< pdfExportSettings: {
< pageSize: "Letter",
< landscape: !1,
< margin: "0",
< downscalePercent: 100,
< },
< mobilePullAction: "command-palette:open",
< mobileToolbarCommands: [
< "editor:insert-wikilink",
< "editor:insert-embed",
< "editor:insert-tag",
< "editor:attach-file",
< "editor:set-heading",
< "editor:toggle-bold",
< "editor:toggle-italics",
< "editor:toggle-strikethrough",
< "editor:toggle-highlight",
< "editor:toggle-code",
< "editor:toggle-blockquote",
< "editor:toggle-comment",
< "editor:insert-link",
< "editor:toggle-bullet-list",
< "editor:toggle-numbered-list",
< "editor:toggle-checklist-status",
< "editor:indent-list",
< "editor:unindent-list",
< "editor:undo",
< "editor:redo",
< "editor:toggle-keyboard",
< "editor:configure-toolbar",
< ],
< hotkeys: {},
< theme: "obsidian",
< accentColor: "",
< cssTheme: "",
< enabledCssSnippets: [],
< translucency: !1,
< textFontFamily: "",
< interfaceFontFamily: "",
< monospaceFontFamily: "",
< baseFontSize: 16,
< baseFontSizeAction: !0,
< types: {},
< },
< VE = "#^[]|",
< zE = be ? '*"\\/<>:|?' : "\\/:" + (xe ? '*?<>"' : ""),
< qE = zE.split("").join(" "),
< UE = VE.split("").join(" "),
< _E = new RegExp("[" + yt(zE) + "]"),
< jE = new RegExp("[" + yt(VE) + "]"),
< WE = /^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i;
< function GE(e) {
< try {
< return KE(e), !0;
< } catch (e) {
< return !1;
< }
< }
< function KE(e) {
< if (be) {
< var t = e.charAt(e.length - 1);
< if ("." === t || " " === t)
< throw new Error("File names cannot end with a dot or a space.");
< var n = ae(e);
< if (WE.test(n)) throw new Error("File name is forbidden: " + n);
< }
< if (
< e.split("/").some(function (e) {
< return _E.test(e);
< })
< )
< throw new Error(
< "File name cannot contain any of the following characters: " + qE
< );
< }
< var YE = ".obsidian",
< XE = (function () {
< function e(e, t) {
< (this.parent = null),
< (this.deleted = !1),
< (this.vault = e),
< this.setPath(t);
< }
< return (
< (e.prototype.setPath = function (e) {
< (this.path = e), (this.name = ie(e));
< }),
< (e.prototype.getNewPathAfterRename = function (e) {
< return (
< (e = e.replace(/[\x00-\x1F]/g, " ").trim()),
< this.parent
< ? this.parent.isRoot()
< ? e
< : this.parent.path + "/" + e
< : ""
< );
< }),
< e
< );
< })(),
< ZE = new WeakMap(),
< $E = (function (e) {
< function t(t, n) {
< var i = e.call(this, t, n) || this;
< return (i.saving = !1), (i.stat = null), i;
< }
< return (
< f(t, e),
< (t.prototype.setPath = function (t) {
< e.prototype.setPath.call(this, t),
< (this.basename = ae(this.name)),
< (this.extension = le(this.name));
< }),
< (t.prototype.getShortName = function () {
< return "md" === this.extension ? this.basename : this.name;
< }),
< (t.prototype.getNewPathAfterRename = function (t) {
< return e.prototype.getNewPathAfterRename.call(
< this,
< ce(t, this.extension)
< );
< }),
< (t.prototype.cache = function (e) {
< if (null != e) {
< var t = this.vault.cacheLimit;
< e.length <= t ? ZE.set(this, e) : ZE.delete(this);
< } else ZE.delete(this);
< }),
< (t.prototype.updateCacheLimit = function () {
< var e = this.vault.cacheLimit;
< ZE.has(this) && ZE.get(this).length > e && ZE.delete(this);
< }),
< t
< );
< })(XE),
< QE = (function (e) {
< function t(t, n) {
< var i = e.call(this, t, n) || this;
< return (i.children = []), i;
< }
< return (
< f(t, e),
< (t.prototype.isRoot = function () {
< return "/" === this.path;
< }),
< (t.prototype.getParentPrefix = function () {
< return this.isRoot() ? "" : this.path + "/";
< }),
< (t.prototype.getFileCount = function () {
< for (var e = 0, n = 0, i = this.children; n < i.length; n++) {
< var r = i[n];
< e += r instanceof t ? r.getFileCount() : 1;
< }
< return e;
< }),
< (t.prototype.getFolderCount = function () {
< for (var e = 0, n = 0, i = this.children; n < i.length; n++) {
< var r = i[n];
< r instanceof t && (e += 1 + r.getFolderCount());
< }
< return e;
< }),
< t
< );
< })(XE),
< JE = (function (e) {
< function t(t) {
< var n = e.call(this) || this;
< return (
< (n.fileMap = {}),
< (n.config = {}),
< (n.configTs = 0),
< (n.configDir = YE),
< (n.requestSaveConfig = qe(n.saveConfig.bind(n), 1e3, !0)),
< (n.cacheLimit = 65536),
< (n.reloadConfig = qe(
< function () {
< return v(n, void 0, void 0, function () {
< var e, t, n, i, r, o, a, s, l;
< return y(this, function (c) {
< switch (c.label) {
< case 0:
< (e = this.getConfigFile("app")),
< (t = this.getConfigFile("appearance")),
< (n = !1),
< (c.label = 1);
< case 1:
< return (
< c.trys.push([1, 3, , 4]), [4, this.adapter.stat(e)]
< );
< case 2:
< return (
< c.sent().mtime > this.configTs && (n = !0), [3, 4]
< );
< case 3:
< return c.sent(), (n = !0), [3, 4];
< case 4:
< return (
< c.trys.push([4, 6, , 7]), [4, this.adapter.stat(t)]
< );
< case 5:
< return (
< c.sent().mtime > this.configTs && (n = !0), [3, 7]
< );
< case 6:
< return c.sent(), (n = !0), [3, 7];
< case 7:
< return n
< ? ((this.configTs = Date.now()),
< [4, this.readConfigJson("app")])
< : [2];
< case 8:
< return (
< (i = c.sent()),
< [4, this.readConfigJson("appearance")]
< );
< case 9:
< for (l in ((r = c.sent()),
< (o = Object.assign({}, r, i)),
< (a = this.config),
< (s = !1),
< o))
< o.hasOwnProperty(l) &&
< ((a.hasOwnProperty(l) &&
< JSON.stringify(a[l]) ===
< JSON.stringify(o[l])) ||
< ((a[l] = o[l]), (s = !0)));
< for (l in a)
< a.hasOwnProperty(l) &&
< !o.hasOwnProperty(l) &&
< (delete a[l], (s = !0));
< return s && this.trigger("config-changed"), [2];
< }
< });
< });
< },
< 500,
< !0
< )),
< (n.adapter = t),
< (n.root = new QE(n, "")),
< n.onChange("folder-created", "/"),
< (n.root = n.fileMap["/"]),
< n
< );
< }
< return (
< f(t, e),
< (t.prototype.getName = function () {
< return this.adapter.getName();
< }),
< (t.prototype.setFileCacheLimit = function (e) {
< this.cacheLimit = e;
< var t = this.fileMap;
< for (var n in t)
< if (t.hasOwnProperty(n)) {
< var i = t[n];
< i instanceof $E && i.updateCacheLimit();
< }
< }),
< (t.validateConfigDir = function (e) {
< return "." !== e && e.startsWith(".") && !_E.test(e);
< }),
< (t.prototype.setConfigDir = function (e) {
< t.validateConfigDir(e) || (e = YE), (this.configDir = e);
< }),
< (t.prototype.setupConfig = function () {
< return v(this, void 0, void 0, function () {
< var e, t, n, i, r, o, a, s, l, c, u;
< return y(this, function (h) {
< switch (h.label) {
< case 0:
< return (
< (t = (e = this).adapter),
< (n = e.configDir),
< [4, t.exists(n)]
< );
< case 1:
< return h.sent() ? [3, 3] : [4, t.mkdir(n)];
< case 2:
< h.sent(), (h.label = 3);
< case 3:
< return (
< (this.configTs = Date.now()),
< (i = null),
< [4, this.readConfigJson("app")]
< );
< case 4:
< return (
< (r = h.sent()), [4, this.readConfigJson("appearance")]
< );
< case 5:
< return (
< (o = h.sent()),
< r ? [3, 7] : [4, this.readJson(n + "/config")]
< );
< case 6:
< (i = h.sent()), (h.label = 7);
< case 7:
< for (l in ((a = this.config = Object.assign({}, i, o, r)),
< (s = { editorFontFamily: "textFontFamily" })))
< s.hasOwnProperty(l) &&
< a.hasOwnProperty(l) &&
< ((c = s[l]),
< (u = a[l]),
< delete a[l],
< !a.hasOwnProperty(c) && u && (a[c] = u));
< return i ? [4, this.saveConfig()] : [3, 12];
< case 8:
< h.sent(), (h.label = 9);
< case 9:
< return (
< h.trys.push([9, 11, , 12]),
< [4, this.adapter.remove(n + "/config")]
< );
< case 10:
< return h.sent(), [3, 12];
< case 11:
< return h.sent(), [3, 12];
< case 12:
< return this.requestSaveConfig(), [2];
< }
< });
< });
< }),
< (t.prototype.saveConfig = function () {
< return v(this, void 0, void 0, function () {
< var e, t, n, i, r, o, a, s;
< return y(this, function (l) {
< switch (l.label) {
< case 0:
< return (
< (t = (e = this).adapter),
< (n = e.configDir),
< [4, t.exists(n)]
< );
< case 1:
< return l.sent() ? [3, 3] : [4, t.mkdir(n)];
< case 2:
< l.sent(), (l.label = 3);
<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment