@bagelink/vue 1.22.1 → 1.22.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{StructuredEditor-BiBhDIf8.js → StructuredEditor-1mcyEtzh.js} +143 -143
  2. package/dist/{StructuredEditor-Cdl9_djZ.cjs → StructuredEditor-yW9FO5Tn.cjs} +1 -1
  3. package/dist/components/FilterQuery.vue.d.ts +5 -0
  4. package/dist/components/FilterQuery.vue.d.ts.map +1 -1
  5. package/dist/components/FilterQueryBuilder.vue.d.ts +47 -0
  6. package/dist/components/FilterQueryBuilder.vue.d.ts.map +1 -0
  7. package/dist/components/Icon/baseline.d.ts +14 -0
  8. package/dist/components/Icon/baseline.d.ts.map +1 -0
  9. package/dist/components/index.d.ts +1 -0
  10. package/dist/components/index.d.ts.map +1 -1
  11. package/dist/components/layout/AppLayout.vue.d.ts.map +1 -1
  12. package/dist/composables/index.d.ts +1 -0
  13. package/dist/composables/index.d.ts.map +1 -1
  14. package/dist/composables/useKeyboardInset.d.ts +5 -0
  15. package/dist/composables/useKeyboardInset.d.ts.map +1 -0
  16. package/dist/core.css +1 -1
  17. package/dist/dialog/Dialog.vue.d.ts.map +1 -1
  18. package/dist/i18n/index.d.ts +2 -0
  19. package/dist/i18n/index.d.ts.map +1 -1
  20. package/dist/index.cjs +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.mjs +312 -310
  24. package/dist/src-BHNIZfpF.cjs +764 -0
  25. package/dist/{src-lXTK29UB.js → src-CtOtibj7.js} +13464 -13199
  26. package/dist/src.css +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/utils/useKeyboardInset.d.ts +7 -0
  29. package/dist/utils/useKeyboardInset.d.ts.map +1 -0
  30. package/package.json +3 -3
  31. package/src/components/FilterQuery.vue +139 -750
  32. package/src/components/FilterQueryBuilder.vue +797 -0
  33. package/src/components/Icon/baseline.ts +80 -0
  34. package/src/components/index.ts +1 -0
  35. package/src/components/layout/AppLayout.vue +3 -1
  36. package/src/composables/index.ts +1 -0
  37. package/src/composables/useKeyboardInset.ts +89 -0
  38. package/src/dialog/Dialog.vue +15 -6
  39. package/src/i18n/locales/en.json +2 -1
  40. package/src/i18n/locales/he.json +2 -1
  41. package/src/index.ts +1 -0
  42. package/src/utils/useKeyboardInset.ts +36 -0
  43. package/dist/src-CyUKZxJV.cjs +0 -764
@@ -1,6 +1,6 @@
1
- import { Fa as Lt, Xr as ut, en as wr, ja as C } from "./src-lXTK29UB.js";
2
- import { $ as Bt, A as Er, B as Rr, C as Fr, D as v, E as Tr, F as Ir, G as me, H as W, I as Or, J as Pr, K as _e, L as qr, M as ht, N as Nr, O as $r, P as Vr, Q as Dt, R as D, T as He, U as ft, V as Wr, W as d, Y as _r, Z as ie, a as Hr, at as H, b as wt, ct as y, d as Ur, dt as Fe, et as De, g as Et, h as Te, it as Ue, j as Rt, n as Ft, nt as zr, ot as Gr, p as Jr, rt as Tt, t as jr, tt as Kr, v as Qr, w as ze, x as K, y as ge, z as Ge } from "./dist-IV7z-zur.js";
3
- import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as F, createElementVNode as S, createVNode as B, defineComponent as It, getCurrentInstance as Xr, h as dt, normalizeClass as Yr, onBeforeUnmount as Zr, onMounted as en, openBlock as A, ref as w, render as mt, resolveDirective as Ot, shallowRef as tn, toDisplayString as $, unref as V, useId as rn, watch as le, withDirectives as M } from "vue";
1
+ import { La as Mt, Na as C, Qr as ut, tn as wr } from "./src-CtOtibj7.js";
2
+ import { $ as Bt, A as Er, B as Rr, C as Tr, D as v, E as Fr, F as Ir, G as me, H as W, I as Or, J as Pr, K as _e, L as qr, M as ht, N as Nr, O as $r, P as Vr, Q as Dt, R as D, T as He, U as ft, V as Wr, W as d, Y as _r, Z as ie, a as Hr, at as H, b as wt, ct as y, d as Ur, dt as Te, et as De, g as Et, h as Fe, it as Ue, j as Rt, n as Tt, nt as zr, ot as Gr, p as Jr, rt as Ft, t as jr, tt as Qr, v as Kr, w as ze, x as Q, y as ge, z as Ge } from "./dist-IV7z-zur.js";
3
+ import { computed as G, createBlock as Ie, createCommentVNode as P, createElementBlock as T, createElementVNode as S, createVNode as B, defineComponent as It, getCurrentInstance as Yr, h as dt, normalizeClass as Xr, onBeforeUnmount as Zr, onMounted as en, openBlock as A, ref as w, render as mt, resolveDirective as Ot, shallowRef as tn, toDisplayString as $, unref as V, useId as rn, watch as le, withDirectives as L } from "vue";
4
4
  var nn = (e) => {
5
5
  let { state: t } = e, r = t.doc.lineAt(t.selection.main.from), n = je(e.state, r.from);
6
6
  return n.line ? ln(e) : n.block ? on(e) : !1;
@@ -135,7 +135,7 @@ function un(e, t, r = t.selection.ranges) {
135
135
  return null;
136
136
  }
137
137
  var Oe = /* @__PURE__ */ Ge.define(), hn = /* @__PURE__ */ Ge.define(), fn = /* @__PURE__ */ _e.define(), qt = /* @__PURE__ */ _e.define({ combine(e) {
138
- return Tt(e, {
138
+ return Ft(e, {
139
139
  minDepth: 100,
140
140
  newGroupDelay: 500,
141
141
  joinToEvent: (t, r) => r
@@ -353,7 +353,7 @@ var Sn = [
353
353
  function Z(e, t) {
354
354
  return d.create(e.ranges.map(t), e.mainIndex);
355
355
  }
356
- function T(e, t) {
356
+ function F(e, t) {
357
357
  return e.update({
358
358
  selection: t,
359
359
  scrollIntoView: !0,
@@ -362,7 +362,7 @@ function T(e, t) {
362
362
  }
363
363
  function I({ state: e, dispatch: t }, r) {
364
364
  let n = Z(e.selection, r);
365
- return n.eq(e.selection, !0) ? !1 : (t(T(e, n)), !0);
365
+ return n.eq(e.selection, !0) ? !1 : (t(F(e, n)), !0);
366
366
  }
367
367
  function Ae(e, t) {
368
368
  return d.cursor(t ? e.to : e.from);
@@ -371,29 +371,29 @@ function _t(e, t) {
371
371
  return I(e, (r) => r.empty ? e.moveByChar(r, t) : Ae(r, t));
372
372
  }
373
373
  function b(e) {
374
- return e.textDirectionAt(e.state.selection.main.head) == Tr.LTR;
374
+ return e.textDirectionAt(e.state.selection.main.head) == Fr.LTR;
375
375
  }
376
376
  var Ht = (e) => _t(e, !b(e)), Ut = (e) => _t(e, b(e));
377
377
  function zt(e, t) {
378
378
  return I(e, (r) => r.empty ? e.moveByGroup(r, t) : Ae(r, t));
379
379
  }
380
380
  var Cn = (e) => zt(e, !b(e)), An = (e) => zt(e, b(e)), fa = typeof Intl < "u" && Intl.Segmenter ? /* @__PURE__ */ new Intl.Segmenter(void 0, { granularity: "word" }) : null;
381
- function Mn(e, t, r) {
381
+ function Ln(e, t, r) {
382
382
  if (t.type.prop(r)) return !0;
383
383
  let n = t.to - t.from;
384
384
  return n && (n > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
385
385
  }
386
- function Me(e, t, r) {
387
- let n = ze(e).resolveInner(t.head), l = r ? Fe.closedBy : Fe.openedBy;
386
+ function Le(e, t, r) {
387
+ let n = ze(e).resolveInner(t.head), l = r ? Te.closedBy : Te.openedBy;
388
388
  for (let s = t.head; ; ) {
389
389
  let c = r ? n.childAfter(s) : n.childBefore(s);
390
390
  if (!c) break;
391
- Mn(e, c, l) ? n = c : s = r ? c.to : c.from;
391
+ Ln(e, c, l) ? n = c : s = r ? c.to : c.from;
392
392
  }
393
393
  let a = n.type.prop(l), o, i;
394
- return a && (o = r ? K(e, n.from, 1) : K(e, n.to, -1)) && o.matched ? i = r ? o.end.to : o.end.from : i = r ? n.to : n.from, d.cursor(i, r ? -1 : 1);
394
+ return a && (o = r ? Q(e, n.from, 1) : Q(e, n.to, -1)) && o.matched ? i = r ? o.end.to : o.end.from : i = r ? n.to : n.from, d.cursor(i, r ? -1 : 1);
395
395
  }
396
- var Ln = (e) => I(e, (t) => Me(e.state, t, !b(e))), Bn = (e) => I(e, (t) => Me(e.state, t, b(e)));
396
+ var Mn = (e) => I(e, (t) => Le(e.state, t, !b(e))), Bn = (e) => I(e, (t) => Le(e.state, t, b(e)));
397
397
  function Gt(e, t) {
398
398
  return I(e, (r) => {
399
399
  if (!r.empty) return Ae(r, t);
@@ -402,7 +402,7 @@ function Gt(e, t) {
402
402
  });
403
403
  }
404
404
  var Jt = (e) => Gt(e, !1), jt = (e) => Gt(e, !0);
405
- function Kt(e) {
405
+ function Qt(e) {
406
406
  let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, r = 0, n = 0, l;
407
407
  if (t) {
408
408
  for (let a of e.state.facet(v.scrollMargins)) {
@@ -418,8 +418,8 @@ function Kt(e) {
418
418
  height: Math.max(e.defaultLineHeight, l - 5)
419
419
  };
420
420
  }
421
- function Qt(e, t) {
422
- let r = Kt(e), { state: n } = e, l = Z(n.selection, (o) => o.empty ? e.moveVertically(o, t, r.height) : Ae(o, t));
421
+ function Kt(e, t) {
422
+ let r = Qt(e), { state: n } = e, l = Z(n.selection, (o) => o.empty ? e.moveVertically(o, t, r.height) : Ae(o, t));
423
423
  if (l.eq(n.selection)) return !1;
424
424
  let a;
425
425
  if (r.selfScroll) {
@@ -429,9 +429,9 @@ function Qt(e, t) {
429
429
  yMargin: o.top - s
430
430
  }));
431
431
  }
432
- return e.dispatch(T(n, l), { effects: a }), !0;
432
+ return e.dispatch(F(n, l), { effects: a }), !0;
433
433
  }
434
- var pt = (e) => Qt(e, !1), qe = (e) => Qt(e, !0);
434
+ var pt = (e) => Kt(e, !1), qe = (e) => Kt(e, !0);
435
435
  function _(e, t, r) {
436
436
  let n = e.lineBlockAt(t.head), l = e.moveToLineBoundary(t, r);
437
437
  if (l.head == t.head && l.head != (r ? n.to : n.from) && (l = e.moveToLineBoundary(t, r, !1)), !r && l.head == n.from && n.length) {
@@ -440,16 +440,16 @@ function _(e, t, r) {
440
440
  }
441
441
  return l;
442
442
  }
443
- var Dn = (e) => I(e, (t) => _(e, t, !0)), wn = (e) => I(e, (t) => _(e, t, !1)), En = (e) => I(e, (t) => _(e, t, !b(e))), Rn = (e) => I(e, (t) => _(e, t, b(e))), Fn = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), Tn = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
443
+ var Dn = (e) => I(e, (t) => _(e, t, !0)), wn = (e) => I(e, (t) => _(e, t, !1)), En = (e) => I(e, (t) => _(e, t, !b(e))), Rn = (e) => I(e, (t) => _(e, t, b(e))), Tn = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), Fn = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
444
444
  function In(e, t, r) {
445
445
  let n = !1, l = Z(e.selection, (a) => {
446
- let o = K(e, a.head, -1) || K(e, a.head, 1) || a.head > 0 && K(e, a.head - 1, 1) || a.head < e.doc.length && K(e, a.head + 1, -1);
446
+ let o = Q(e, a.head, -1) || Q(e, a.head, 1) || a.head > 0 && Q(e, a.head - 1, 1) || a.head < e.doc.length && Q(e, a.head + 1, -1);
447
447
  if (!o || !o.end) return a;
448
448
  n = !0;
449
449
  let i = o.start.from == a.head ? o.end.to : o.end.from;
450
450
  return r ? d.range(a.anchor, i) : d.cursor(i);
451
451
  });
452
- return n ? (t(T(e, l)), !0) : !1;
452
+ return n ? (t(F(e, l)), !0) : !1;
453
453
  }
454
454
  var On = ({ state: e, dispatch: t }) => In(e, t, !1);
455
455
  function R(e, t, r) {
@@ -458,28 +458,28 @@ function R(e, t, r) {
458
458
  let a = r(l);
459
459
  return d.range(l.anchor, a.head, a.goalColumn, a.bidiLevel || void 0, a.assoc);
460
460
  });
461
- return n.eq(e.state.selection) ? !1 : (e.dispatch(T(e.state, n)), !0);
461
+ return n.eq(e.state.selection) ? !1 : (e.dispatch(F(e.state, n)), !0);
462
462
  }
463
- function Xt(e, t) {
463
+ function Yt(e, t) {
464
464
  return R(e, t, (r) => e.moveByChar(r, t));
465
465
  }
466
- var Yt = (e) => Xt(e, !b(e)), Zt = (e) => Xt(e, b(e));
466
+ var Xt = (e) => Yt(e, !b(e)), Zt = (e) => Yt(e, b(e));
467
467
  function er(e, t) {
468
468
  return R(e, t, (r) => e.moveByGroup(r, t));
469
469
  }
470
470
  var Pn = (e) => er(e, !b(e)), qn = (e) => er(e, b(e)), Nn = (e) => {
471
471
  let t = !b(e);
472
- return R(e, t, (r) => Me(e.state, r, t));
472
+ return R(e, t, (r) => Le(e.state, r, t));
473
473
  }, $n = (e) => {
474
474
  let t = b(e);
475
- return R(e, t, (r) => Me(e.state, r, t));
475
+ return R(e, t, (r) => Le(e.state, r, t));
476
476
  };
477
477
  function tr(e, t) {
478
478
  return R(e, t, (r) => e.moveVertically(r, t));
479
479
  }
480
480
  var rr = (e) => tr(e, !1), nr = (e) => tr(e, !0);
481
481
  function lr(e, t) {
482
- return R(e, t, (r) => e.moveVertically(r, t, Kt(e).height));
482
+ return R(e, t, (r) => e.moveVertically(r, t, Qt(e).height));
483
483
  }
484
484
  var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(e, t, !0)), Wn = (e) => R(e, !1, (t) => _(e, t, !1)), _n = (e) => {
485
485
  let t = !b(e);
@@ -487,10 +487,10 @@ var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(
487
487
  }, Hn = (e) => {
488
488
  let t = b(e);
489
489
  return R(e, t, (r) => _(e, r, t));
490
- }, Un = (e) => R(e, !1, (t) => d.cursor(e.lineBlockAt(t.head).from)), zn = (e) => R(e, !0, (t) => d.cursor(e.lineBlockAt(t.head).to)), yt = ({ state: e, dispatch: t }) => (t(T(e, { anchor: 0 })), !0), xt = ({ state: e, dispatch: t }) => (t(T(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(T(e, {
490
+ }, Un = (e) => R(e, !1, (t) => d.cursor(e.lineBlockAt(t.head).from)), zn = (e) => R(e, !0, (t) => d.cursor(e.lineBlockAt(t.head).to)), yt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), xt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(F(e, {
491
491
  anchor: e.selection.main.anchor,
492
492
  head: 0
493
- })), !0), bt = ({ state: e, dispatch: t }) => (t(T(e, {
493
+ })), !0), bt = ({ state: e, dispatch: t }) => (t(F(e, {
494
494
  anchor: e.selection.main.anchor,
495
495
  head: e.doc.length
496
496
  })), !0), Gn = ({ state: e, dispatch: t }) => (t(e.update({
@@ -500,7 +500,7 @@ var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(
500
500
  },
501
501
  userEvent: "select"
502
502
  })), !0), Jn = ({ state: e, dispatch: t }) => {
503
- let r = Le(e).map(({ from: n, to: l }) => d.undirectionalRange(n, Math.min(l + 1, e.doc.length)));
503
+ let r = Me(e).map(({ from: n, to: l }) => d.undirectionalRange(n, Math.min(l + 1, e.doc.length)));
504
504
  return t(e.update({
505
505
  selection: d.create(r),
506
506
  userEvent: "select"
@@ -518,7 +518,7 @@ var gt = (e) => lr(e, !1), vt = (e) => lr(e, !0), Vn = (e) => R(e, !0, (t) => _(
518
518
  }
519
519
  return n;
520
520
  });
521
- return r.eq(e.selection) ? !1 : (t(T(e, r)), !0);
521
+ return r.eq(e.selection) ? !1 : (t(F(e, r)), !0);
522
522
  };
523
523
  function ar(e, t) {
524
524
  let { state: r } = e, n = r.selection, l = r.selection.ranges.slice();
@@ -535,11 +535,11 @@ function ar(e, t) {
535
535
  }
536
536
  }
537
537
  }
538
- return l.length == n.ranges.length ? !1 : (e.dispatch(T(r, d.create(l, l.length - 1))), !0);
538
+ return l.length == n.ranges.length ? !1 : (e.dispatch(F(r, d.create(l, l.length - 1))), !0);
539
539
  }
540
- var Kn = (e) => ar(e, !1), Qn = (e) => ar(e, !0), Xn = ({ state: e, dispatch: t }) => {
540
+ var Qn = (e) => ar(e, !1), Kn = (e) => ar(e, !0), Yn = ({ state: e, dispatch: t }) => {
541
541
  let r = e.selection, n = null;
542
- return r.ranges.length > 1 ? n = d.create([r.main]) : r.main.empty || (n = d.create([d.cursor(r.main.head)])), n ? (t(T(e, n)), !0) : !1;
542
+ return r.ranges.length > 1 ? n = d.create([r.main]) : r.main.empty || (n = d.create([d.cursor(r.main.head)])), n ? (t(F(e, n)), !0) : !1;
543
543
  };
544
544
  function se(e, t) {
545
545
  if (e.state.readOnly) return !1;
@@ -574,7 +574,7 @@ var or = (e, t, r) => se(e, (n) => {
574
574
  let l = n.from, { state: a } = e, o = a.doc.lineAt(l), i, s;
575
575
  if (r && !t && l > o.from && l < o.from + 200 && !/[^ \t]/.test(i = o.text.slice(0, l - o.from))) {
576
576
  if (i[i.length - 1] == " ") return l - 1;
577
- let c = Ue(i, a.tabSize) % Te(a) || Te(a);
577
+ let c = Ue(i, a.tabSize) % Fe(a) || Fe(a);
578
578
  for (let u = 0; u < c && i[i.length - 1 - u] == " "; u++) l--;
579
579
  s = l;
580
580
  } else
@@ -592,7 +592,7 @@ var or = (e, t, r) => se(e, (n) => {
592
592
  (c != " " || n != r.head) && (i = u), n = s;
593
593
  }
594
594
  return n;
595
- }), cr = (e) => sr(e, !1), Yn = (e) => sr(e, !0), Zn = (e) => se(e, (t) => {
595
+ }), cr = (e) => sr(e, !1), Xn = (e) => sr(e, !0), Zn = (e) => se(e, (t) => {
596
596
  let r = e.lineBlockAt(t.head).to;
597
597
  return t.head < r ? r : Math.min(e.state.doc.length, t.head + 1);
598
598
  }), el = (e) => se(e, (t) => {
@@ -634,7 +634,7 @@ var or = (e, t, r) => se(e, (n) => {
634
634
  userEvent: "move.character"
635
635
  })), !0);
636
636
  };
637
- function Le(e) {
637
+ function Me(e) {
638
638
  let t = [], r = -1;
639
639
  for (let n of e.selection.ranges) {
640
640
  let l = e.doc.lineAt(n.from), a = e.doc.lineAt(n.to);
@@ -653,7 +653,7 @@ function Le(e) {
653
653
  function ur(e, t, r) {
654
654
  if (e.readOnly) return !1;
655
655
  let n = [], l = [];
656
- for (let a of Le(e)) {
656
+ for (let a of Me(e)) {
657
657
  if (r ? a.to == e.doc.length : a.from == 0) continue;
658
658
  let o = e.doc.lineAt(r ? a.to + 1 : a.from - 1), i = o.length + 1;
659
659
  if (r) {
@@ -687,7 +687,7 @@ var ll = ({ state: e, dispatch: t }) => ur(e, t, !1), al = ({ state: e, dispatch
687
687
  function hr(e, t, r) {
688
688
  if (e.readOnly) return !1;
689
689
  let n = [];
690
- for (let a of Le(e)) r ? n.push({
690
+ for (let a of Me(e)) r ? n.push({
691
691
  from: a.from,
692
692
  insert: e.doc.slice(a.from, a.to) + e.lineBreak
693
693
  }) : n.push({
@@ -704,7 +704,7 @@ function hr(e, t, r) {
704
704
  }
705
705
  var ol = ({ state: e, dispatch: t }) => hr(e, t, !1), il = ({ state: e, dispatch: t }) => hr(e, t, !0), sl = (e) => {
706
706
  if (e.state.readOnly) return !1;
707
- let { state: t } = e, r = t.changes(Le(t).map(({ from: l, to: a }) => (l > 0 ? l-- : a < t.doc.length && a++, {
707
+ let { state: t } = e, r = t.changes(Me(t).map(({ from: l, to: a }) => (l > 0 ? l-- : a < t.doc.length && a++, {
708
708
  from: l,
709
709
  to: a
710
710
  }))), n = Z(t.selection, (l) => {
@@ -728,7 +728,7 @@ function cl(e, t) {
728
728
  to: t
729
729
  };
730
730
  let r = ze(e).resolveInner(t), n = r.childBefore(t), l = r.childAfter(t), a;
731
- return n && l && n.to <= t && l.from >= t && (a = n.type.prop(Fe.closedBy)) && a.indexOf(l.name) > -1 && e.doc.lineAt(n.to).from == e.doc.lineAt(l.from).from && !/\S/.test(e.sliceDoc(n.to, l.from)) ? {
731
+ return n && l && n.to <= t && l.from >= t && (a = n.type.prop(Te.closedBy)) && a.indexOf(l.name) > -1 && e.doc.lineAt(n.to).from == e.doc.lineAt(l.from).from && !/\S/.test(e.sliceDoc(n.to, l.from)) ? {
732
732
  from: n.to,
733
733
  to: l.from
734
734
  } : null;
@@ -740,7 +740,7 @@ function fr(e) {
740
740
  let n = t.changeByRange((l) => {
741
741
  let { from: a, to: o } = l, i = t.doc.lineAt(a), s = !e && a == o && cl(t, a);
742
742
  e && (a = o = (o <= i.to ? i : t.doc.lineAt(o)).to);
743
- let c = new Ft(t, {
743
+ let c = new Tt(t, {
744
744
  simulateBreak: a,
745
745
  simulateDoubleBreak: !!s
746
746
  }), u = Et(c, a);
@@ -762,7 +762,7 @@ function fr(e) {
762
762
  })), !0;
763
763
  };
764
764
  }
765
- function Ke(e, t) {
765
+ function Qe(e, t) {
766
766
  let r = -1;
767
767
  return e.changeByRange((n) => {
768
768
  let l = [];
@@ -779,10 +779,10 @@ function Ke(e, t) {
779
779
  }
780
780
  var hl = ({ state: e, dispatch: t }) => {
781
781
  if (e.readOnly) return !1;
782
- let r = /* @__PURE__ */ Object.create(null), n = new Ft(e, { overrideIndentation: (a) => {
782
+ let r = /* @__PURE__ */ Object.create(null), n = new Tt(e, { overrideIndentation: (a) => {
783
783
  let o = r[a];
784
784
  return o ?? -1;
785
- } }), l = Ke(e, (a, o, i) => {
785
+ } }), l = Qe(e, (a, o, i) => {
786
786
  let s = Et(n, a.from);
787
787
  if (s == null) return;
788
788
  /\S/.test(a.text) || (s = 0);
@@ -794,15 +794,15 @@ var hl = ({ state: e, dispatch: t }) => {
794
794
  }));
795
795
  });
796
796
  return l.changes.empty || t(e.update(l, { userEvent: "indent" })), !0;
797
- }, dr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Ke(e, (r, n) => {
797
+ }, dr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Qe(e, (r, n) => {
798
798
  n.push({
799
799
  from: r.from,
800
800
  insert: e.facet(wt)
801
801
  });
802
- }), { userEvent: "input.indent" })), !0), mr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Ke(e, (r, n) => {
802
+ }), { userEvent: "input.indent" })), !0), mr = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Qe(e, (r, n) => {
803
803
  let l = /^\s*/.exec(r.text)[0];
804
804
  if (!l) return;
805
- let a = Ue(l, e.tabSize), o = 0, i = ge(e, Math.max(0, a - Te(e)));
805
+ let a = Ue(l, e.tabSize), o = 0, i = ge(e, Math.max(0, a - Fe(e)));
806
806
  for (; o < l.length && o < i.length && l.charCodeAt(o) == i.charCodeAt(o); ) o++;
807
807
  n.push({
808
808
  from: r.from + o,
@@ -813,7 +813,7 @@ var hl = ({ state: e, dispatch: t }) => {
813
813
  {
814
814
  key: "Ctrl-b",
815
815
  run: Ht,
816
- shift: Yt,
816
+ shift: Xt,
817
817
  preventDefault: !0
818
818
  },
819
819
  {
@@ -833,12 +833,12 @@ var hl = ({ state: e, dispatch: t }) => {
833
833
  },
834
834
  {
835
835
  key: "Ctrl-a",
836
- run: Fn,
836
+ run: Tn,
837
837
  shift: Un
838
838
  },
839
839
  {
840
840
  key: "Ctrl-e",
841
- run: Tn,
841
+ run: Fn,
842
842
  shift: zn
843
843
  },
844
844
  {
@@ -873,7 +873,7 @@ var hl = ({ state: e, dispatch: t }) => {
873
873
  {
874
874
  key: "ArrowLeft",
875
875
  run: Ht,
876
- shift: Yt,
876
+ shift: Xt,
877
877
  preventDefault: !0
878
878
  },
879
879
  {
@@ -1001,7 +1001,7 @@ var hl = ({ state: e, dispatch: t }) => {
1001
1001
  {
1002
1002
  key: "Mod-Delete",
1003
1003
  mac: "Alt-Delete",
1004
- run: Yn,
1004
+ run: Xn,
1005
1005
  preventDefault: !0
1006
1006
  },
1007
1007
  {
@@ -1022,7 +1022,7 @@ var hl = ({ state: e, dispatch: t }) => {
1022
1022
  {
1023
1023
  key: "Alt-ArrowLeft",
1024
1024
  mac: "Ctrl-ArrowLeft",
1025
- run: Ln,
1025
+ run: Mn,
1026
1026
  shift: Nn
1027
1027
  },
1028
1028
  {
@@ -1049,15 +1049,15 @@ var hl = ({ state: e, dispatch: t }) => {
1049
1049
  },
1050
1050
  {
1051
1051
  key: "Mod-Alt-ArrowUp",
1052
- run: Kn
1052
+ run: Qn
1053
1053
  },
1054
1054
  {
1055
1055
  key: "Mod-Alt-ArrowDown",
1056
- run: Qn
1056
+ run: Kn
1057
1057
  },
1058
1058
  {
1059
1059
  key: "Escape",
1060
- run: Xn
1060
+ run: Yn
1061
1061
  },
1062
1062
  {
1063
1063
  key: "Mod-Enter",
@@ -1125,7 +1125,7 @@ var vl = (e) => {
1125
1125
  var t = e.theme, r = e.settings, n = r === void 0 ? {} : r, l = e.styles, a = l === void 0 ? [] : l, o = { ".cm-gutters": {} }, i = {};
1126
1126
  n.background && (i.backgroundColor = n.background), n.backgroundImage && (i.backgroundImage = n.backgroundImage), n.foreground && (i.color = n.foreground), n.fontSize && (i.fontSize = n.fontSize), (n.background || n.foreground) && (o["&"] = i), n.fontFamily && (o["&.cm-editor .cm-scroller"] = { fontFamily: n.fontFamily }), n.gutterBackground && (o[".cm-gutters"].backgroundColor = n.gutterBackground), n.gutterForeground && (o[".cm-gutters"].color = n.gutterForeground), n.gutterBorder && (o[".cm-gutters"].borderRightColor = n.gutterBorder), n.caret && (o[".cm-content"] = { caretColor: n.caret }, o[".cm-cursor, .cm-dropCursor"] = { borderLeftColor: n.caret });
1127
1127
  var s = {};
1128
- return n.gutterActiveForeground && (s.color = n.gutterActiveForeground), n.lineHighlight && (o[".cm-activeLine"] = { backgroundColor: n.lineHighlight }, s.backgroundColor = n.lineHighlight), o[".cm-activeLineGutter"] = s, n.selection && (o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: n.selection + " !important" }), n.selectionMatch && (o["& .cm-selectionMatch"] = { backgroundColor: n.selectionMatch }), [v.theme(o, { dark: t === "dark" }), Fr(jr.define(a))];
1128
+ return n.gutterActiveForeground && (s.color = n.gutterActiveForeground), n.lineHighlight && (o[".cm-activeLine"] = { backgroundColor: n.lineHighlight }, s.backgroundColor = n.lineHighlight), o[".cm-activeLineGutter"] = s, n.selection && (o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"] = { background: n.selection + " !important" }), n.selectionMatch && (o["& .cm-selectionMatch"] = { backgroundColor: n.selectionMatch }), [v.theme(o, { dark: t === "dark" }), Tr(jr.define(a))];
1129
1129
  }, yl = {
1130
1130
  background: "#272C35",
1131
1131
  foreground: "#9d9b97",
@@ -1211,7 +1211,7 @@ var vl = (e) => {
1211
1211
  if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done) return -1;
1212
1212
  this.bufferPos = 0, this.buffer = this.iter.value;
1213
1213
  }
1214
- return Kr(this.buffer, this.bufferPos);
1214
+ return Qr(this.buffer, this.bufferPos);
1215
1215
  }
1216
1216
  /**
1217
1217
  Look for the next match. Updates the iterator's
@@ -1274,7 +1274,7 @@ var gr = {
1274
1274
  to: -1,
1275
1275
  match: /* @__PURE__ */ /.*/.exec(""),
1276
1276
  precise: !0
1277
- }, Qe = "gm" + (/x/.unicode == null ? "" : "u"), vr = class {
1277
+ }, Ke = "gm" + (/x/.unicode == null ? "" : "u"), vr = class {
1278
1278
  /**
1279
1279
  Create a cursor that will search the given range in the given
1280
1280
  document. `query` should be the raw pattern (as you'd pass it to
@@ -1282,7 +1282,7 @@ var gr = {
1282
1282
  */
1283
1283
  constructor(e, t, r, n = 0, l = e.length) {
1284
1284
  if (this.text = e, this.to = l, this.curLine = "", this.done = !1, this.value = gr, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new yr(e, t, r, n, l);
1285
- this.re = new RegExp(t, Qe + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.iter = e.iter(), this.curLineStart = e.lineAt(n).from, this.matchPos = ye(e, n), this.getLine(this.curLineStart);
1285
+ this.re = new RegExp(t, Ke + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.iter = e.iter(), this.curLineStart = e.lineAt(n).from, this.matchPos = ye(e, n), this.getLine(this.curLineStart);
1286
1286
  }
1287
1287
  getLine(e) {
1288
1288
  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());
@@ -1332,7 +1332,7 @@ var gr = {
1332
1332
  }
1333
1333
  }, yr = class {
1334
1334
  constructor(e, t, r, n, l) {
1335
- this.text = e, this.to = l, this.done = !1, this.value = gr, this.matchPos = ye(e, n), this.re = new RegExp(t, Qe + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.flat = At.get(e, n, this.chunkEnd(n + 5e3));
1335
+ this.text = e, this.to = l, this.done = !1, this.value = gr, this.matchPos = ye(e, n), this.re = new RegExp(t, Ke + (r?.ignoreCase ? "i" : "")), this.test = r?.test, this.flat = At.get(e, n, this.chunkEnd(n + 5e3));
1336
1336
  }
1337
1337
  chunkEnd(e) {
1338
1338
  return e >= this.to ? this.to : this.text.lineAt(e).to;
@@ -1361,7 +1361,7 @@ typeof Symbol < "u" && (vr.prototype[Symbol.iterator] = yr.prototype[Symbol.iter
1361
1361
  });
1362
1362
  function bl(e) {
1363
1363
  try {
1364
- return new RegExp(e, Qe), !0;
1364
+ return new RegExp(e, Ke), !0;
1365
1365
  } catch {
1366
1366
  return !1;
1367
1367
  }
@@ -1425,7 +1425,7 @@ function Al(e, t) {
1425
1425
  return i.value;
1426
1426
  }
1427
1427
  }
1428
- var Ml = ({ state: e, dispatch: t }) => {
1428
+ var Ll = ({ state: e, dispatch: t }) => {
1429
1429
  let { ranges: r } = e.selection;
1430
1430
  if (r.some((a) => a.from === a.to)) return Cl({
1431
1431
  state: e,
@@ -1439,7 +1439,7 @@ var Ml = ({ state: e, dispatch: t }) => {
1439
1439
  effects: v.scrollIntoView(l.to)
1440
1440
  })), !0) : !1;
1441
1441
  }, U = /* @__PURE__ */ _e.define({ combine(e) {
1442
- return Tt(e, {
1442
+ return Ft(e, {
1443
1443
  top: !1,
1444
1444
  caseSensitive: !1,
1445
1445
  literal: !1,
@@ -1449,10 +1449,10 @@ var Ml = ({ state: e, dispatch: t }) => {
1449
1449
  scrollToMatch: (t) => v.scrollIntoView(t)
1450
1450
  });
1451
1451
  } });
1452
- function Ll(e) {
1452
+ function Ml(e) {
1453
1453
  return e ? [U.of(e), We] : We;
1454
1454
  }
1455
- var Xe = class {
1455
+ var Ye = class {
1456
1456
  /**
1457
1457
  Create a query object.
1458
1458
  */
@@ -1476,7 +1476,7 @@ var Xe = class {
1476
1476
  @internal
1477
1477
  */
1478
1478
  create() {
1479
- return this.regexp ? new Fl(this) : new wl(this);
1479
+ return this.regexp ? new Tl(this) : new wl(this);
1480
1480
  }
1481
1481
  /**
1482
1482
  Get a search cursor for this query, searching through the given
@@ -1561,7 +1561,7 @@ function ke(e, t) {
1561
1561
  function Rl(e) {
1562
1562
  return (t, r, n) => !n[0].length || (e(xe(n.input, n.index)) != W.Word || e(ke(n.input, n.index)) != W.Word) && (e(ke(n.input, n.index + n[0].length)) != W.Word || e(xe(n.input, n.index + n[0].length)) != W.Word);
1563
1563
  }
1564
- var Fl = class extends xr {
1564
+ var Tl = class extends xr {
1565
1565
  nextMatch(e, t, r) {
1566
1566
  let n = j(this.spec, e, r, e.doc.length).next();
1567
1567
  return n.done && (n = j(this.spec, e, 0, t).next()), n.done ? null : n.value;
@@ -1600,17 +1600,17 @@ var Fl = class extends xr {
1600
1600
  let l = j(this.spec, e, Math.max(0, t - 250), Math.min(r + 250, e.doc.length));
1601
1601
  for (; !l.next().done; ) n(l.value.from, l.value.to);
1602
1602
  }
1603
- }, Q = /* @__PURE__ */ ie.define(), Ye = /* @__PURE__ */ ie.define(), N = /* @__PURE__ */ Dt.define({
1603
+ }, K = /* @__PURE__ */ ie.define(), Xe = /* @__PURE__ */ ie.define(), N = /* @__PURE__ */ Dt.define({
1604
1604
  create(e) {
1605
1605
  return new Re(be(e).create(), null);
1606
1606
  },
1607
1607
  update(e, t) {
1608
- for (let r of t.effects) r.is(Q) ? e = new Re(r.value.create(), e.panel) : r.is(Ye) && (e = new Re(e.query, r.value ? Ze : null));
1608
+ for (let r of t.effects) r.is(K) ? e = new Re(r.value.create(), e.panel) : r.is(Xe) && (e = new Re(e.query, r.value ? Ze : null));
1609
1609
  return e;
1610
1610
  },
1611
1611
  provide: (e) => qr.from(e, (t) => t.panel)
1612
1612
  });
1613
- function Mt(e) {
1613
+ function Lt(e) {
1614
1614
  let t = e.field(N, !1);
1615
1615
  return t ? t.query.spec : be(e);
1616
1616
  }
@@ -1618,7 +1618,7 @@ var Re = class {
1618
1618
  constructor(e, t) {
1619
1619
  this.query = e, this.panel = t;
1620
1620
  }
1621
- }, Tl = /* @__PURE__ */ He.mark({ class: "cm-searchMatch" }), Il = /* @__PURE__ */ He.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Ol = /* @__PURE__ */ $r.fromClass(class {
1621
+ }, Fl = /* @__PURE__ */ He.mark({ class: "cm-searchMatch" }), Il = /* @__PURE__ */ He.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Ol = /* @__PURE__ */ $r.fromClass(class {
1622
1622
  constructor(e) {
1623
1623
  this.view = e, this.decorations = this.highlight(e.state.field(N));
1624
1624
  }
@@ -1634,7 +1634,7 @@ var Re = class {
1634
1634
  for (; l < o - 1 && s > a[l + 1].from - 500; ) s = a[++l].to;
1635
1635
  e.highlight(r.state, i, s, (c, u) => {
1636
1636
  let h = r.state.selection.ranges.some((f) => f.from == c && f.to == u);
1637
- n.add(c, u, h ? Il : Tl);
1637
+ n.add(c, u, h ? Il : Fl);
1638
1638
  });
1639
1639
  }
1640
1640
  return n.finish();
@@ -1646,7 +1646,7 @@ function ce(e) {
1646
1646
  return r && r.query.spec.valid ? e(t, r) : Ar(t);
1647
1647
  };
1648
1648
  }
1649
- var X = /* @__PURE__ */ ce((e, { query: t }) => {
1649
+ var Y = /* @__PURE__ */ ce((e, { query: t }) => {
1650
1650
  let { to: r } = e.state.selection.main, n = t.nextMatch(e.state, r, r);
1651
1651
  if (!n) return !1;
1652
1652
  let l = d.single(n.from, n.to), a = e.state.facet(U);
@@ -1655,7 +1655,7 @@ var X = /* @__PURE__ */ ce((e, { query: t }) => {
1655
1655
  effects: [et(e, n), a.scrollToMatch(l.main, e)],
1656
1656
  userEvent: "select.search"
1657
1657
  }), Cr(e), !0;
1658
- }), Y = /* @__PURE__ */ ce((e, { query: t }) => {
1658
+ }), X = /* @__PURE__ */ ce((e, { query: t }) => {
1659
1659
  let { state: r } = e, { from: n } = r.selection.main, l = t.prevMatch(r, n, n);
1660
1660
  if (!l) return !1;
1661
1661
  let a = d.single(l.from, l.to), o = e.state.facet(U);
@@ -1727,7 +1727,7 @@ function be(e, t) {
1727
1727
  let i = e.selection.main, s = i.empty || i.to > i.from + 100 ? "" : e.sliceDoc(i.from, i.to);
1728
1728
  if (t && !s) return t;
1729
1729
  let c = e.facet(U);
1730
- return new Xe({
1730
+ return new Ye({
1731
1731
  search: ((r = t?.literal) !== null && r !== void 0 ? r : c.literal) ? s : s.replace(/\n/g, "\\n"),
1732
1732
  caseSensitive: (n = t?.caseSensitive) !== null && n !== void 0 ? n : c.caseSensitive,
1733
1733
  literal: (l = t?.literal) !== null && l !== void 0 ? l : c.literal,
@@ -1749,15 +1749,15 @@ var Ar = (e) => {
1749
1749
  let r = Sr(e);
1750
1750
  if (r && r != e.root.activeElement) {
1751
1751
  let n = be(e.state, t.query.spec);
1752
- n.valid && e.dispatch({ effects: Q.of(n) }), r.focus(), r.select();
1752
+ n.valid && e.dispatch({ effects: K.of(n) }), r.focus(), r.select();
1753
1753
  }
1754
- } else e.dispatch({ effects: [Ye.of(!0), t ? Q.of(be(e.state, t.query.spec)) : ie.appendConfig.of(We)] });
1754
+ } else e.dispatch({ effects: [Xe.of(!0), t ? K.of(be(e.state, t.query.spec)) : ie.appendConfig.of(We)] });
1755
1755
  return !0;
1756
1756
  }, Se = (e) => {
1757
1757
  let t = e.state.field(N, !1);
1758
1758
  if (!t || !t.panel) return !1;
1759
1759
  let r = Rt(e, Ze);
1760
- return r && r.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: Ye.of(!1) }), !0;
1760
+ return r && r.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: Xe.of(!1) }), !0;
1761
1761
  }, ql = [
1762
1762
  {
1763
1763
  key: "Mod-f",
@@ -1766,15 +1766,15 @@ var Ar = (e) => {
1766
1766
  },
1767
1767
  {
1768
1768
  key: "F3",
1769
- run: X,
1770
- shift: Y,
1769
+ run: Y,
1770
+ shift: X,
1771
1771
  scope: "editor search-panel",
1772
1772
  preventDefault: !0
1773
1773
  },
1774
1774
  {
1775
1775
  key: "Mod-g",
1776
- run: X,
1777
- shift: Y,
1776
+ run: Y,
1777
+ shift: X,
1778
1778
  scope: "editor search-panel",
1779
1779
  preventDefault: !0
1780
1780
  },
@@ -1793,7 +1793,7 @@ var Ar = (e) => {
1793
1793
  },
1794
1794
  {
1795
1795
  key: "Mod-d",
1796
- run: Ml,
1796
+ run: Ll,
1797
1797
  preventDefault: !0
1798
1798
  }
1799
1799
  ], Nl = class {
@@ -1802,8 +1802,8 @@ var Ar = (e) => {
1802
1802
  let t = this.query = e.state.field(N).query.spec;
1803
1803
  this.commit = this.commit.bind(this), this.searchField = D("input", {
1804
1804
  value: t.search,
1805
- placeholder: L(e, "Find"),
1806
- "aria-label": L(e, "Find"),
1805
+ placeholder: M(e, "Find"),
1806
+ "aria-label": M(e, "Find"),
1807
1807
  class: "cm-textfield",
1808
1808
  name: "search",
1809
1809
  form: "",
@@ -1812,8 +1812,8 @@ var Ar = (e) => {
1812
1812
  onkeyup: this.commit
1813
1813
  }), this.replaceField = D("input", {
1814
1814
  value: t.replace,
1815
- placeholder: L(e, "Replace"),
1816
- "aria-label": L(e, "Replace"),
1815
+ placeholder: M(e, "Replace"),
1816
+ "aria-label": M(e, "Replace"),
1817
1817
  class: "cm-textfield",
1818
1818
  name: "replace",
1819
1819
  form: "",
@@ -1851,41 +1851,41 @@ var Ar = (e) => {
1851
1851
  class: "cm-search"
1852
1852
  }, [
1853
1853
  this.searchField,
1854
- r("next", () => X(e), [L(e, "next")]),
1855
- r("prev", () => Y(e), [L(e, "previous")]),
1856
- r("select", () => kr(e), [L(e, "all")]),
1857
- D("label", null, [this.caseField, L(e, "match case")]),
1858
- D("label", null, [this.reField, L(e, "regexp")]),
1859
- D("label", null, [this.wordField, L(e, "by word")]),
1854
+ r("next", () => Y(e), [M(e, "next")]),
1855
+ r("prev", () => X(e), [M(e, "previous")]),
1856
+ r("select", () => kr(e), [M(e, "all")]),
1857
+ D("label", null, [this.caseField, M(e, "match case")]),
1858
+ D("label", null, [this.reField, M(e, "regexp")]),
1859
+ D("label", null, [this.wordField, M(e, "by word")]),
1860
1860
  ...e.state.readOnly ? [] : [
1861
1861
  D("br"),
1862
1862
  this.replaceField,
1863
- r("replace", () => Ve(e), [L(e, "replace")]),
1864
- r("replaceAll", () => br(e), [L(e, "replace all")])
1863
+ r("replace", () => Ve(e), [M(e, "replace")]),
1864
+ r("replaceAll", () => br(e), [M(e, "replace all")])
1865
1865
  ],
1866
1866
  D("button", {
1867
1867
  name: "close",
1868
1868
  onclick: () => Se(e),
1869
- "aria-label": L(e, "close"),
1869
+ "aria-label": M(e, "close"),
1870
1870
  type: "button"
1871
1871
  }, ["×"])
1872
1872
  ]);
1873
1873
  }
1874
1874
  commit() {
1875
- let e = new Xe({
1875
+ let e = new Ye({
1876
1876
  search: this.searchField.value,
1877
1877
  caseSensitive: this.caseField.checked,
1878
1878
  regexp: this.reField.checked,
1879
1879
  wholeWord: this.wordField.checked,
1880
1880
  replace: this.replaceField.value
1881
1881
  });
1882
- e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Q.of(e) }));
1882
+ e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: K.of(e) }));
1883
1883
  }
1884
1884
  keydown(e) {
1885
- Ir(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Y : X)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Ve(this.view));
1885
+ Ir(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? X : Y)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Ve(this.view));
1886
1886
  }
1887
1887
  update(e) {
1888
- for (let t of e.transactions) for (let r of t.effects) r.is(Q) && !r.value.eq(this.query) && this.setQuery(r.value);
1888
+ for (let t of e.transactions) for (let r of t.effects) r.is(K) && !r.value.eq(this.query) && this.setQuery(r.value);
1889
1889
  }
1890
1890
  setQuery(e) {
1891
1891
  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;
@@ -1900,7 +1900,7 @@ var Ar = (e) => {
1900
1900
  return this.view.state.facet(U).top;
1901
1901
  }
1902
1902
  };
1903
- function L(e, t) {
1903
+ function M(e, t) {
1904
1904
  return e.state.phrase(t);
1905
1905
  }
1906
1906
  var fe = 30, de = /[\s\.,:;?!]/;
@@ -1973,21 +1973,21 @@ var $l = /* @__PURE__ */ v.baseTheme({
1973
1973
  o
1974
1974
  ], () => {
1975
1975
  if (c) return;
1976
- const h = new Xe({
1976
+ const h = new Ye({
1977
1977
  search: r.value,
1978
1978
  replace: n.value,
1979
1979
  caseSensitive: l.value,
1980
1980
  regexp: a.value,
1981
1981
  wholeWord: o.value
1982
1982
  });
1983
- h.eq(t.query) || t.view.dispatch({ effects: Q.of(h) });
1983
+ h.eq(t.query) || t.view.dispatch({ effects: K.of(h) });
1984
1984
  }, { flush: "sync" });
1985
1985
  function u(h) {
1986
- h.key === "Escape" ? (h.preventDefault(), Se(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ? Y(t.view) : X(t.view));
1986
+ h.key === "Escape" ? (h.preventDefault(), Se(t.view), t.view.focus()) : h.key === "Enter" && (h.preventDefault(), h.shiftKey ? X(t.view) : Y(t.view));
1987
1987
  }
1988
1988
  return (h, f) => {
1989
1989
  const g = Ot("tooltip");
1990
- return A(), F("div", {
1990
+ return A(), T("div", {
1991
1991
  class: "code-search-panel grid gap-025 p-05",
1992
1992
  style: {
1993
1993
  position: "absolute",
@@ -1999,7 +1999,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
1999
1999
  onKeydown: u
2000
2000
  }, [
2001
2001
  S("div", Vl, [
2002
- e.readonly ? P("", !0) : M((A(), Ie(C, {
2002
+ e.readonly ? P("", !0) : L((A(), Ie(C, {
2003
2003
  key: 0,
2004
2004
  thin: "",
2005
2005
  flat: "",
@@ -2025,7 +2025,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
2025
2025
  name: "search"
2026
2026
  }
2027
2027
  }, null, 8, ["modelValue"]), S("div", _l, [
2028
- M(B(C, {
2028
+ L(B(C, {
2029
2029
  thin: "",
2030
2030
  flat: !l.value,
2031
2031
  soft: l.value,
@@ -2038,7 +2038,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
2038
2038
  "soft",
2039
2039
  "aria-pressed"
2040
2040
  ]), [[g, "Match case"]]),
2041
- M(B(C, {
2041
+ L(B(C, {
2042
2042
  thin: "",
2043
2043
  flat: !o.value,
2044
2044
  soft: o.value,
@@ -2051,7 +2051,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
2051
2051
  "soft",
2052
2052
  "aria-pressed"
2053
2053
  ]), [[g, "Match whole word"]]),
2054
- M(B(C, {
2054
+ L(B(C, {
2055
2055
  thin: "",
2056
2056
  flat: !a.value,
2057
2057
  soft: a.value,
@@ -2065,28 +2065,28 @@ var $l = /* @__PURE__ */ v.baseTheme({
2065
2065
  "aria-pressed"
2066
2066
  ]), [[g, "Regular expression"]])
2067
2067
  ])]),
2068
- M(B(C, {
2068
+ L(B(C, {
2069
2069
  thin: "",
2070
2070
  flat: "",
2071
2071
  icon: "arrow_upward",
2072
2072
  "aria-label": "Previous match",
2073
- onClick: f[5] || (f[5] = (m) => V(Y)(e.view))
2073
+ onClick: f[5] || (f[5] = (m) => V(X)(e.view))
2074
2074
  }, null, 512), [[g, "Previous match (Shift+Enter)"]]),
2075
- M(B(C, {
2075
+ L(B(C, {
2076
2076
  thin: "",
2077
2077
  flat: "",
2078
2078
  icon: "arrow_downward",
2079
2079
  "aria-label": "Next match",
2080
- onClick: f[6] || (f[6] = (m) => V(X)(e.view))
2080
+ onClick: f[6] || (f[6] = (m) => V(Y)(e.view))
2081
2081
  }, null, 512), [[g, "Next match (Enter)"]]),
2082
- M(B(C, {
2082
+ L(B(C, {
2083
2083
  thin: "",
2084
2084
  flat: "",
2085
2085
  icon: "select_all",
2086
2086
  "aria-label": "Select all matches",
2087
2087
  onClick: f[7] || (f[7] = (m) => V(kr)(e.view))
2088
2088
  }, null, 512), [[g, "Select all matches"]]),
2089
- M(B(C, {
2089
+ L(B(C, {
2090
2090
  thin: "",
2091
2091
  flat: "",
2092
2092
  icon: "close",
@@ -2096,7 +2096,7 @@ var $l = /* @__PURE__ */ v.baseTheme({
2096
2096
  })
2097
2097
  }, null, 512), [[g, "Close (Escape)"]])
2098
2098
  ]),
2099
- !e.readonly && i.value ? (A(), F("div", {
2099
+ !e.readonly && i.value ? (A(), T("div", {
2100
2100
  key: 0,
2101
2101
  id: V(s),
2102
2102
  class: "code-replace-row flex align-items-center gap-025"
@@ -2113,14 +2113,14 @@ var $l = /* @__PURE__ */ v.baseTheme({
2113
2113
  name: "replace"
2114
2114
  }
2115
2115
  }, null, 8, ["modelValue"]),
2116
- M(B(C, {
2116
+ L(B(C, {
2117
2117
  thin: "",
2118
2118
  flat: "",
2119
2119
  icon: "find_replace",
2120
2120
  "aria-label": "Replace next",
2121
2121
  onClick: f[10] || (f[10] = (m) => V(Ve)(e.view))
2122
2122
  }, null, 512), [[g, "Replace next"]]),
2123
- M(B(C, {
2123
+ L(B(C, {
2124
2124
  thin: "",
2125
2125
  flat: "",
2126
2126
  icon: "published_with_changes",
@@ -2128,11 +2128,11 @@ var $l = /* @__PURE__ */ v.baseTheme({
2128
2128
  onClick: f[11] || (f[11] = (m) => V(br)(e.view))
2129
2129
  }, null, 512), [[g, "Replace all"]])
2130
2130
  ], 8, Hl)) : P("", !0),
2131
- e.query.regexp && e.query.search.length > 0 && !e.query.valid ? (A(), F("span", Ul, "Invalid regular expression")) : P("", !0)
2131
+ e.query.regexp && e.query.search.length > 0 && !e.query.valid ? (A(), T("span", Ul, "Invalid regular expression")) : P("", !0)
2132
2132
  ], 32);
2133
2133
  };
2134
2134
  }
2135
- }), Gl = /* @__PURE__ */ Lt(zl, [["__scopeId", "data-v-c5ae435d"]]);
2135
+ }), Gl = /* @__PURE__ */ Mt(zl, [["__scopeId", "data-v-c5ae435d"]]);
2136
2136
  function Jl(e) {
2137
2137
  return [
2138
2138
  "html",
@@ -2185,13 +2185,13 @@ async function jl(e, t) {
2185
2185
  return e;
2186
2186
  }
2187
2187
  }
2188
- var Kl = {
2188
+ var Ql = {
2189
2189
  key: 0,
2190
2190
  class: "code-terminal-bar monospace flex flex-shrink-0 space-between gap-05 py-025 px-075 txt11 line-height-1 border-bottom"
2191
- }, Ql = { class: "flex gap-05 min-w-0" }, Xl = {
2191
+ }, Kl = { class: "flex gap-05 min-w-0" }, Yl = {
2192
2192
  key: 0,
2193
2193
  class: "opacity-5 ellipsis-1"
2194
- }, Yl = { class: "flex align-items-center gap-025 flex-shrink-0" }, Zl = {
2194
+ }, Xl = { class: "flex align-items-center gap-025 flex-shrink-0" }, Zl = {
2195
2195
  class: "opacity-5 px-05",
2196
2196
  "aria-label": "Code language"
2197
2197
  }, ea = {
@@ -2260,7 +2260,7 @@ var Kl = {
2260
2260
  s.value = "Could not copy. Check clipboard permissions and try again.";
2261
2261
  }
2262
2262
  }
2263
- const Mr = Xr().appContext, Lr = pr({
2263
+ const Lr = Yr().appContext, Mr = pr({
2264
2264
  theme: "light",
2265
2265
  settings: {
2266
2266
  background: "#fafafa",
@@ -2274,16 +2274,16 @@ var Kl = {
2274
2274
  }
2275
2275
  });
2276
2276
  function Br(p) {
2277
- const x = document.createElement("div"), O = tn(Mt(p.state)), st = w(p.state.readOnly), ct = dt({ setup: () => () => dt(Gl, {
2277
+ const x = document.createElement("div"), O = tn(Lt(p.state)), st = w(p.state.readOnly), ct = dt({ setup: () => () => dt(Gl, {
2278
2278
  view: p,
2279
2279
  query: O.value,
2280
2280
  readonly: st.value
2281
2281
  }) });
2282
- return ct.appContext = Mr, mt(ct, x), {
2282
+ return ct.appContext = Lr, mt(ct, x), {
2283
2283
  dom: x,
2284
2284
  top: !0,
2285
2285
  update() {
2286
- O.value = Mt(p.state), st.value = p.state.readOnly;
2286
+ O.value = Lt(p.state), st.value = p.state.readOnly;
2287
2287
  },
2288
2288
  destroy() {
2289
2289
  mt(null, x);
@@ -2293,7 +2293,7 @@ var Kl = {
2293
2293
  function at() {
2294
2294
  const p = r.singleLine ? "0" : "0.7rem";
2295
2295
  return [
2296
- r.dark ? kl : Lr,
2296
+ r.dark ? kl : Mr,
2297
2297
  r.lineNumbers && !r.singleLine ? Nr() : [],
2298
2298
  r.folding && !r.singleLine ? [Ur(), ht.of(Jr)] : [],
2299
2299
  r.wrap ? v.lineWrapping : [],
@@ -2412,9 +2412,9 @@ var Kl = {
2412
2412
  tt.of([]),
2413
2413
  dn(),
2414
2414
  wt.of(" "),
2415
- Qr(),
2415
+ Kr(),
2416
2416
  Hr(),
2417
- Ll({ createPanel: Br }),
2417
+ Ml({ createPanel: Br }),
2418
2418
  ht.of([
2419
2419
  {
2420
2420
  key: "Enter",
@@ -2458,23 +2458,23 @@ var Kl = {
2458
2458
  Be = !0, clearTimeout(c), k?.destroy(), k = void 0;
2459
2459
  }), (p, x) => {
2460
2460
  const O = Ot("tooltip");
2461
- return A(), F("div", { class: Yr(["structured-editor", {
2461
+ return A(), T("div", { class: Xr(["structured-editor", {
2462
2462
  terminal: e.terminal,
2463
2463
  "toolbar-hover": m.value,
2464
2464
  "toolbar-pinned": ue.value,
2465
2465
  "toolbar-none": g.value === "none",
2466
2466
  "single-line": e.singleLine
2467
2467
  }]) }, [
2468
- e.terminal && ee.value ? (A(), F("div", Kl, [S("div", Ql, [x[0] || (x[0] = S("span", {
2468
+ e.terminal && ee.value ? (A(), T("div", Ql, [S("div", Kl, [x[0] || (x[0] = S("span", {
2469
2469
  class: "inline-flex gap-025 flex-shrink-0",
2470
2470
  "aria-hidden": "true"
2471
2471
  }, [
2472
2472
  S("span", { class: "square-10 round bg-red" }),
2473
2473
  S("span", { class: "square-10 round bg-yellow" }),
2474
2474
  S("span", { class: "square-10 round bg-green" })
2475
- ], -1)), e.title ? (A(), F("span", Xl, $(e.title), 1)) : P("", !0)]), S("div", Yl, [
2475
+ ], -1)), e.title ? (A(), T("span", Yl, $(e.title), 1)) : P("", !0)]), S("div", Xl, [
2476
2476
  S("span", Zl, $(h.value), 1),
2477
- f.value ? M((A(), Ie(C, {
2477
+ f.value ? L((A(), Ie(C, {
2478
2478
  key: 0,
2479
2479
  thin: "",
2480
2480
  flat: "",
@@ -2485,7 +2485,7 @@ var Kl = {
2485
2485
  disabled: e.readonly || e.disabled || a.value,
2486
2486
  onClick: it
2487
2487
  }, null, 8, ["aria-busy", "disabled"])), [[O, a.value ? "Formatting…" : "Format code"]]) : P("", !0),
2488
- M(B(C, {
2488
+ L(B(C, {
2489
2489
  thin: "",
2490
2490
  flat: "",
2491
2491
  "icon-size": "1",
@@ -2494,9 +2494,9 @@ var Kl = {
2494
2494
  onClick: lt
2495
2495
  }, null, 8, ["icon", "aria-label"]), [[O, i.value ? "Copied!" : "Copy code"]]),
2496
2496
  S("span", ea, $(i.value ? "Copied to clipboard" : ""), 1)
2497
- ])])) : ee.value ? (A(), F("div", ta, [e.label && !m.value ? (A(), F("label", ra, $(e.label), 1)) : (A(), F("span", na, $(h.value), 1)), S("div", la, [
2498
- e.label && !m.value ? (A(), F("span", aa, $(h.value), 1)) : P("", !0),
2499
- f.value ? M((A(), Ie(C, {
2497
+ ])])) : ee.value ? (A(), T("div", ta, [e.label && !m.value ? (A(), T("label", ra, $(e.label), 1)) : (A(), T("span", na, $(h.value), 1)), S("div", la, [
2498
+ e.label && !m.value ? (A(), T("span", aa, $(h.value), 1)) : P("", !0),
2499
+ f.value ? L((A(), Ie(C, {
2500
2500
  key: 1,
2501
2501
  thin: "",
2502
2502
  flat: "",
@@ -2507,7 +2507,7 @@ var Kl = {
2507
2507
  disabled: e.readonly || e.disabled || a.value,
2508
2508
  onClick: it
2509
2509
  }, null, 8, ["aria-busy", "disabled"])), [[O, a.value ? "Formatting…" : "Format code"]]) : P("", !0),
2510
- M(B(C, {
2510
+ L(B(C, {
2511
2511
  thin: "",
2512
2512
  flat: "",
2513
2513
  "icon-size": "1",
@@ -2517,7 +2517,7 @@ var Kl = {
2517
2517
  }, null, 8, ["icon", "aria-label"]), [[O, i.value ? "Copied!" : "Copy code"]]),
2518
2518
  S("span", oa, $(i.value ? "Copied to clipboard" : ""), 1)
2519
2519
  ])])) : P("", !0),
2520
- o.value || s.value ? (A(), F("span", ia, $(o.value || s.value), 1)) : P("", !0),
2520
+ o.value || s.value ? (A(), T("span", ia, $(o.value || s.value), 1)) : P("", !0),
2521
2521
  S("div", {
2522
2522
  ref_key: "host",
2523
2523
  ref: l,
@@ -2526,7 +2526,7 @@ var Kl = {
2526
2526
  ], 2);
2527
2527
  };
2528
2528
  }
2529
- }), da = /* @__PURE__ */ Lt(sa, [["__scopeId", "data-v-48eb82db"]]);
2529
+ }), da = /* @__PURE__ */ Mt(sa, [["__scopeId", "data-v-48eb82db"]]);
2530
2530
  export {
2531
2531
  da as default
2532
2532
  };