@surrealdb/ui 1.0.0 → 1.0.1

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.
package/dist/ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as be } from "react/jsx-runtime";
2
- import { Box as ir, useMantineTheme as mo, getFontSize as Wr, getThemeColor as To, createTheme as xo, Kbd as Co, NavLink as wo, SegmentedControl as Zo, Skeleton as yo, PasswordInput as Vo, Checkbox as bo, Badge as Ro, Select as ko, Anchor as zo, Overlay as qo, CloseButton as Yo, Modal as Wo, Loader as _o, Menu as vo, HoverCard as Lo, MenuDropdown as Uo, PopoverDropdown as Go, Tooltip as jo, Divider as Ao, ScrollArea as Mo, Paper as Eo, Autocomplete as Do, NumberInput as Io, TextInput as No, Button as Bo, ActionIcon as _r, rem as J, defaultVariantColorsResolver as vr } from "@mantine/core";
2
+ import { Box as ir, useMantineTheme as mo, getFontSize as Wr, getThemeColor as To, createTheme as xo, Kbd as Co, NavLink as wo, SegmentedControl as Zo, Skeleton as yo, PasswordInput as Vo, Checkbox as bo, Badge as Ro, Select as ko, Anchor as zo, Overlay as qo, CloseButton as Yo, Modal as Wo, Loader as _o, Menu as vo, HoverCard as Lo, MenuDropdown as Uo, PopoverDropdown as Go, Tooltip as jo, Divider as Ao, ScrollArea as Mo, Paper as Eo, Autocomplete as Do, NumberInput as Io, TextInput as No, Button as Bo, ActionIcon as _r, rem as B, defaultVariantColorsResolver as vr } from "@mantine/core";
3
3
  import { useState as Fo, useEffect as Ko, useMemo as Ho, createElement as Jo } from "react";
4
4
  import { default as Jf } from "./assets/5eebe112fca3cb72.svg";
5
5
  import { default as ed } from "./assets/e33e9afdbf248b04.svg";
@@ -3178,10 +3178,10 @@ class Pl {
3178
3178
  type.
3179
3179
  */
3180
3180
  of(O) {
3181
- return new K(this, O);
3181
+ return new H(this, O);
3182
3182
  }
3183
3183
  }
3184
- class K {
3184
+ class H {
3185
3185
  /**
3186
3186
  @internal
3187
3187
  */
@@ -3194,7 +3194,7 @@ class K {
3194
3194
  */
3195
3195
  map(O) {
3196
3196
  let e = this.type.map(this.value, O);
3197
- return e === void 0 ? void 0 : e == this.value ? this : new K(this.type, e);
3197
+ return e === void 0 ? void 0 : e == this.value ? this : new H(this.type, e);
3198
3198
  }
3199
3199
  /**
3200
3200
  Tells you whether this effect object is of a given
@@ -3227,8 +3227,8 @@ class K {
3227
3227
  return t;
3228
3228
  }
3229
3229
  }
3230
- K.reconfigure = /* @__PURE__ */ K.define();
3231
- K.appendConfig = /* @__PURE__ */ K.define();
3230
+ H.reconfigure = /* @__PURE__ */ H.define();
3231
+ H.appendConfig = /* @__PURE__ */ H.define();
3232
3232
  class rO {
3233
3233
  constructor(O, e, t, r, n, a) {
3234
3234
  this.startState = O, this.changes = e, this.selection = t, this.effects = r, this.annotations = n, this.scrollIntoView = a, this._doc = null, this._state = null, t && Wa(t, e.newLength), n.some((s) => s.type == rO.time) || (this.annotations = n.concat(rO.time.of(Date.now())));
@@ -3326,7 +3326,7 @@ function Ma(i, O, e) {
3326
3326
  return e ? (r = O.changes, n = OO.empty(O.changes.length), a = i.changes.compose(O.changes)) : (r = O.changes.map(i.changes), n = i.changes.mapDesc(O.changes, !0), a = i.changes.compose(r)), {
3327
3327
  changes: a,
3328
3328
  selection: O.selection ? O.selection.map(n) : (t = i.selection) === null || t === void 0 ? void 0 : t.map(r),
3329
- effects: K.mapEffects(i.effects, r).concat(K.mapEffects(O.effects, n)),
3329
+ effects: H.mapEffects(i.effects, r).concat(H.mapEffects(O.effects, n)),
3330
3330
  annotations: i.annotations.length ? i.annotations.concat(O.annotations) : O.annotations,
3331
3331
  scrollIntoView: i.scrollIntoView || O.scrollIntoView
3332
3332
  };
@@ -3370,7 +3370,7 @@ function Xl(i) {
3370
3370
  let a = i.changes.filter(e);
3371
3371
  r = a.changes, n = a.filtered.mapDesc(a.changes).invertedDesc;
3372
3372
  }
3373
- i = rO.create(O, r, i.selection && i.selection.map(n), K.mapEffects(i.effects, n), i.annotations, i.scrollIntoView);
3373
+ i = rO.create(O, r, i.selection && i.selection.map(n), H.mapEffects(i.effects, n), i.annotations, i.scrollIntoView);
3374
3374
  }
3375
3375
  let t = O.facet(Ga);
3376
3376
  for (let r = t.length - 1; r >= 0; r--) {
@@ -3462,7 +3462,7 @@ class U {
3462
3462
  applyTransaction(O) {
3463
3463
  let e = this.config, { base: t, compartments: r } = e;
3464
3464
  for (let s of O.effects)
3465
- s.is(Zt.reconfigure) ? (e && (r = /* @__PURE__ */ new Map(), e.compartments.forEach((o, l) => r.set(l, o)), e = null), r.set(s.value.compartment, s.value.extension)) : s.is(K.reconfigure) ? (e = null, t = s.value) : s.is(K.appendConfig) && (e = null, t = Re(t).concat(s.value));
3465
+ s.is(Zt.reconfigure) ? (e && (r = /* @__PURE__ */ new Map(), e.compartments.forEach((o, l) => r.set(l, o)), e = null), r.set(s.value.compartment, s.value.extension)) : s.is(H.reconfigure) ? (e = null, t = s.value) : s.is(H.appendConfig) && (e = null, t = Re(t).concat(s.value));
3466
3466
  let n;
3467
3467
  e ? n = O.startState.values.slice() : (e = lt.resolve(t, r, this), n = new U(e, this.doc, this.selection, e.dynamicSlots.map(() => null), (o, l) => l.reconfigure(o, this), null).values);
3468
3468
  let a = O.startState.facet(gi) ? O.newSelection : O.newSelection.asSingle();
@@ -3496,7 +3496,7 @@ class U {
3496
3496
  for (let h = 0; h < s; h++)
3497
3497
  n[h] = n[h].map(Q);
3498
3498
  let $ = r.mapDesc(l, !0);
3499
- n.push(o.range.map($)), r = r.compose(Q), a = K.mapEffects(a, Q).concat(K.mapEffects(Re(o.effects), $));
3499
+ n.push(o.range.map($)), r = r.compose(Q), a = H.mapEffects(a, Q).concat(H.mapEffects(Re(o.effects), $));
3500
3500
  }
3501
3501
  return {
3502
3502
  changes: r,
@@ -3705,7 +3705,7 @@ U.languageData = va;
3705
3705
  U.changeFilter = Ua;
3706
3706
  U.transactionFilter = Ga;
3707
3707
  U.transactionExtender = ja;
3708
- Zt.reconfigure = /* @__PURE__ */ K.define();
3708
+ Zt.reconfigure = /* @__PURE__ */ H.define();
3709
3709
  class Se {
3710
3710
  /**
3711
3711
  Compare this value with another value. Used when comparing
@@ -5026,10 +5026,10 @@ class CO {
5026
5026
  return new CO(O.parentNode, ne(O) + 1, e);
5027
5027
  }
5028
5028
  }
5029
- var H = /* @__PURE__ */ (function(i) {
5029
+ var J = /* @__PURE__ */ (function(i) {
5030
5030
  return i[i.LTR = 0] = "LTR", i[i.RTL = 1] = "RTL", i;
5031
- })(H || (H = {}));
5032
- const ge = H.LTR, fr = H.RTL;
5031
+ })(J || (J = {}));
5032
+ const ge = J.LTR, fr = J.RTL;
5033
5033
  function Os(i) {
5034
5034
  let O = [];
5035
5035
  for (let e = 0; e < i.length; e++)
@@ -5326,7 +5326,7 @@ class qe {
5326
5326
  return this.range.to <= O.doc.length ? this : new qe(x.cursor(O.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
5327
5327
  }
5328
5328
  }
5329
- const L1 = /* @__PURE__ */ K.define({ map: (i, O) => i.map(O) }), hs = /* @__PURE__ */ K.define();
5329
+ const L1 = /* @__PURE__ */ H.define({ map: (i, O) => i.map(O) }), hs = /* @__PURE__ */ H.define();
5330
5330
  function YO(i, O, e) {
5331
5331
  let t = i.facet(os);
5332
5332
  t.length ? t[0](O) : window.onerror && window.onerror(String(O), e, void 0, void 0, O) || (e ? console.error(e + ":", O) : console.error(O));
@@ -5573,7 +5573,7 @@ class dt {
5573
5573
  }
5574
5574
  }
5575
5575
  const Fl = [];
5576
- class F {
5576
+ class K {
5577
5577
  constructor(O, e, t = 0) {
5578
5578
  this.dom = O, this.length = e, this.flags = t, this.parent = null, O.cmTile = this;
5579
5579
  }
@@ -5664,7 +5664,7 @@ class F {
5664
5664
  return O.cmTile;
5665
5665
  }
5666
5666
  }
5667
- class Rt extends F {
5667
+ class Rt extends K {
5668
5668
  constructor(O) {
5669
5669
  super(O, 0), this._children = [];
5670
5670
  }
@@ -5719,7 +5719,7 @@ class kt extends Rt {
5719
5719
  for (; ; ) {
5720
5720
  if (!O)
5721
5721
  return null;
5722
- let e = F.get(O);
5722
+ let e = K.get(O);
5723
5723
  if (e && this.owns(e))
5724
5724
  return e;
5725
5725
  O = O.parentNode;
@@ -5852,7 +5852,7 @@ class lO extends Rt {
5852
5852
  return e || (t.flags |= 4), t;
5853
5853
  }
5854
5854
  }
5855
- class ue extends F {
5855
+ class ue extends K {
5856
5856
  constructor(O, e) {
5857
5857
  super(O, e.length), this.text = e;
5858
5858
  }
@@ -5881,7 +5881,7 @@ class ue extends F {
5881
5881
  return e || (t.flags |= 2), t;
5882
5882
  }
5883
5883
  }
5884
- class me extends F {
5884
+ class me extends K {
5885
5885
  constructor(O, e, t, r) {
5886
5886
  super(O, e, r), this.widget = t;
5887
5887
  }
@@ -5929,7 +5929,7 @@ class me extends F {
5929
5929
  return n || (n = O.toDOM(e), O.editable || (n.contentEditable = "false")), new me(n, t, O, r);
5930
5930
  }
5931
5931
  }
5932
- class ut extends F {
5932
+ class ut extends K {
5933
5933
  constructor(O) {
5934
5934
  let e = document.createElement("img");
5935
5935
  e.className = "cm-widgetBuffer", e.setAttribute("aria-hidden", "true"), super(e, 0, O);
@@ -6020,7 +6020,7 @@ class e2 {
6020
6020
  l.dom != o.dom && l.setDOM(Et(o.dom)), r = l;
6021
6021
  else {
6022
6022
  if (this.cache.reused.get(o)) {
6023
- let $ = F.get(o.dom);
6023
+ let $ = K.get(o.dom);
6024
6024
  $ && $.setDOM(Et(o.dom));
6025
6025
  }
6026
6026
  let Q = lO.of(o.mark, o.dom);
@@ -6032,7 +6032,7 @@ class e2 {
6032
6032
  /* Reused.DOM */
6033
6033
  );
6034
6034
  }
6035
- let n = F.get(O.text);
6035
+ let n = K.get(O.text);
6036
6036
  n && this.cache.reused.set(
6037
6037
  n,
6038
6038
  2
@@ -6345,7 +6345,7 @@ class r2 {
6345
6345
  getCompositionContext(O) {
6346
6346
  let e = [], t = null;
6347
6347
  for (let r = O.parentNode; ; r = r.parentNode) {
6348
- let n = F.get(r);
6348
+ let n = K.get(r);
6349
6349
  if (r == this.view.contentDOM)
6350
6350
  break;
6351
6351
  n instanceof lO ? e.push(n) : n?.isLine() ? t = n : r.nodeName == "DIV" && !t && r != this.view.contentDOM ? t = new Le(r, Ss) : e.push(lO.of(new w1({ tagName: r.nodeName.toLowerCase(), attributes: Rl(r) }), r));
@@ -6380,7 +6380,7 @@ function s2(i) {
6380
6380
  return O;
6381
6381
  }
6382
6382
  function Et(i) {
6383
- let O = F.get(i);
6383
+ let O = K.get(i);
6384
6384
  return O && O.setDOM(i.cloneNode()), i;
6385
6385
  }
6386
6386
  class Ue extends Vt {
@@ -6549,7 +6549,7 @@ class on {
6549
6549
  }
6550
6550
  if (n == t.dom.firstChild)
6551
6551
  return r;
6552
- for (; n && !F.get(n); )
6552
+ for (; n && !K.get(n); )
6553
6553
  n = n.nextSibling;
6554
6554
  if (!n)
6555
6555
  return r + t.length;
@@ -6618,7 +6618,7 @@ class on {
6618
6618
  return r(e, t);
6619
6619
  }
6620
6620
  measureVisibleLineHeights(O) {
6621
- let e = [], { from: t, to: r } = O, n = this.view.contentDOM.clientWidth, a = n > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, s = -1, o = this.view.textDirection == H.LTR, l = 0, Q = ($, h, f) => {
6621
+ let e = [], { from: t, to: r } = O, n = this.view.contentDOM.clientWidth, a = n > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, s = -1, o = this.view.textDirection == J.LTR, l = 0, Q = ($, h, f) => {
6622
6622
  for (let d = 0; d < $.children.length && !(h > r); d++) {
6623
6623
  let u = $.children[d], p = h + u.length, P = u.dom.getBoundingClientRect(), { height: y } = P;
6624
6624
  if (f && !d && (l += P.top - f.top), u instanceof te)
@@ -6637,7 +6637,7 @@ class on {
6637
6637
  }
6638
6638
  textDirectionAt(O) {
6639
6639
  let { tile: e } = this.tile.resolveBlock(O, 1);
6640
- return getComputedStyle(e.dom).direction == "rtl" ? H.RTL : H.LTR;
6640
+ return getComputedStyle(e.dom).direction == "rtl" ? J.RTL : J.LTR;
6641
6641
  }
6642
6642
  measureTextSize() {
6643
6643
  let O = this.tile.blockTiles((a) => {
@@ -6729,7 +6729,7 @@ class on {
6729
6729
  right: t.right + n.right,
6730
6730
  bottom: t.bottom + n.bottom
6731
6731
  }, { offsetWidth: s, offsetHeight: o } = this.view.scrollDOM;
6732
- ql(this.view.scrollDOM, a, e.head < e.anchor ? -1 : 1, O.x, O.y, Math.max(Math.min(O.xMargin, s), -s), Math.max(Math.min(O.yMargin, o), -o), this.view.textDirection == H.LTR);
6732
+ ql(this.view.scrollDOM, a, e.head < e.anchor ? -1 : 1, O.x, O.y, Math.max(Math.min(O.xMargin, s), -s), Math.max(Math.min(O.yMargin, o), -o), this.view.textDirection == J.LTR);
6733
6733
  }
6734
6734
  lineHasWidget(O) {
6735
6735
  let e = (t) => t.isWidget() || t.children.some(e);
@@ -6756,11 +6756,11 @@ function Xs(i, O) {
6756
6756
  return null;
6757
6757
  let t = Ha(e.focusNode, e.focusOffset), r = Ja(e.focusNode, e.focusOffset), n = t || r;
6758
6758
  if (r && t && r.node != t.node) {
6759
- let s = F.get(r.node);
6759
+ let s = K.get(r.node);
6760
6760
  if (!s || s.isText() && s.text != r.node.nodeValue)
6761
6761
  n = r;
6762
6762
  else if (i.docView.lastCompositionAfterCursor) {
6763
- let o = F.get(t.node);
6763
+ let o = K.get(t.node);
6764
6764
  !o || o.isText() && o.text != t.node.nodeValue || (n = r);
6765
6765
  }
6766
6766
  }
@@ -6905,7 +6905,7 @@ function X2(i, O, e, t) {
6905
6905
  let r = S2(i, O.head, O.assoc || -1), n = !t || r.type != PO.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(O.assoc < 0 && O.head > r.from ? O.head - 1 : O.head);
6906
6906
  if (n) {
6907
6907
  let a = i.dom.getBoundingClientRect(), s = i.textDirectionAt(r.from), o = i.posAtCoords({
6908
- x: e == (s == H.LTR) ? a.right - 1 : a.left + 1,
6908
+ x: e == (s == J.LTR) ? a.right - 1 : a.left + 1,
6909
6909
  y: (n.top + n.bottom) / 2
6910
6910
  });
6911
6911
  if (o != null)
@@ -7043,7 +7043,7 @@ function ms(i, O, e, t, r) {
7043
7043
  break;
7044
7044
  f = d;
7045
7045
  }
7046
- return t > (a.left + a.right) / 2 == (Qn(i, n + e) == H.LTR) ? new qO(e + xO(O.text, n), -1) : new qO(e + n, 1);
7046
+ return t > (a.left + a.right) / 2 == (Qn(i, n + e) == J.LTR) ? new qO(e + xO(O.text, n), -1) : new qO(e + n, 1);
7047
7047
  } else {
7048
7048
  if (!O.length)
7049
7049
  return new qO(e, 1);
@@ -7056,7 +7056,7 @@ function ms(i, O, e, t, r) {
7056
7056
  break;
7057
7057
  }
7058
7058
  let h = O.children[n], f = O.posBefore(h, e);
7059
- return h.isComposite() || h.isText() ? ms(i, h, f, Math.max(a.left, Math.min(a.right, t)), r) : t > (a.left + a.right) / 2 == (Qn(i, n + e) == H.LTR) ? new qO(f + h.length, -1) : new qO(f, 1);
7059
+ return h.isComposite() || h.isText() ? ms(i, h, f, Math.max(a.left, Math.min(a.right, t)), r) : t > (a.left + a.right) / 2 == (Qn(i, n + e) == J.LTR) ? new qO(f + h.length, -1) : new qO(f, 1);
7060
7060
  }
7061
7061
  }
7062
7062
  function Qn(i, O) {
@@ -7082,12 +7082,12 @@ class T2 {
7082
7082
  this.findPointBefore(t, r);
7083
7083
  let n = this.text.length;
7084
7084
  this.readNode(r);
7085
- let a = F.get(r), s = r.nextSibling;
7085
+ let a = K.get(r), s = r.nextSibling;
7086
7086
  if (s == e) {
7087
7087
  a?.breakAfter && !s && t != this.view.contentDOM && this.lineBreak();
7088
7088
  break;
7089
7089
  }
7090
- let o = F.get(s);
7090
+ let o = K.get(s);
7091
7091
  (a && o ? a.breakAfter : (a ? a.breakAfter : ht(r)) || ht(s) && (r.nodeName != "BR" || a?.isWidget()) && this.text.length > n) && !C2(s, e) && this.lineBreak(), r = s;
7092
7092
  }
7093
7093
  return this.findPointBefore(t, e), this;
@@ -7107,7 +7107,7 @@ class T2 {
7107
7107
  }
7108
7108
  }
7109
7109
  readNode(O) {
7110
- let e = F.get(O), t = e && e.overrideDOMText;
7110
+ let e = K.get(O), t = e && e.overrideDOMText;
7111
7111
  if (t != null) {
7112
7112
  this.findPointInside(O, t.length);
7113
7113
  for (let r = t.iter(); !r.next().done; )
@@ -7135,7 +7135,7 @@ function x2(i, O, e) {
7135
7135
  function C2(i, O) {
7136
7136
  let e;
7137
7137
  for (; !(i == O || !i); i = i.nextSibling) {
7138
- let t = F.get(i);
7138
+ let t = K.get(i);
7139
7139
  if (!t?.isWidget())
7140
7140
  return !1;
7141
7141
  t && (e || (e = [])).push(t);
@@ -7502,7 +7502,7 @@ function L2(i, O) {
7502
7502
  if (O.defaultPrevented)
7503
7503
  return !1;
7504
7504
  for (let e = O.target, t; e != i.contentDOM; e = e.parentNode)
7505
- if (!e || e.nodeType == 11 || (t = F.get(e)) && t.isWidget() && !t.isHidden && t.widget.ignoreEvent(O))
7505
+ if (!e || e.nodeType == 11 || (t = K.get(e)) && t.isWidget() && !t.isHidden && t.widget.ignoreEvent(O))
7506
7506
  return !1;
7507
7507
  return !0;
7508
7508
  }
@@ -8306,7 +8306,7 @@ class i5 extends Vt {
8306
8306
  }
8307
8307
  class mn {
8308
8308
  constructor(O) {
8309
- this.state = O, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Tn, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = H.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
8309
+ this.state = O, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Tn, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = J.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
8310
8310
  let e = O.facet(pr).some((t) => typeof t != "function" && t.class == "cm-lineWrapping");
8311
8311
  this.heightOracle = new I2(e), this.stateDeco = xn(O), this.heightMap = aO.empty().applyChanges(this.stateDeco, W.empty, this.heightOracle.setDoc(O.doc), [new uO(0, 0, 0, O.doc.length)]);
8312
8312
  for (let t = 0; t < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); t++)
@@ -8346,7 +8346,7 @@ class mn {
8346
8346
  }
8347
8347
  measure(O) {
8348
8348
  let e = O.contentDOM, t = window.getComputedStyle(e), r = this.heightOracle, n = t.whiteSpace;
8349
- this.defaultTextDirection = t.direction == "rtl" ? H.RTL : H.LTR;
8349
+ this.defaultTextDirection = t.direction == "rtl" ? J.RTL : J.LTR;
8350
8350
  let a = this.heightOracle.mustRefreshForWrapping(n), s = e.getBoundingClientRect(), o = a || this.mustMeasureContent || this.contentDOMHeight != s.height;
8351
8351
  this.contentDOMHeight = s.height, this.mustMeasureContent = !1;
8352
8352
  let l = 0, Q = 0;
@@ -8434,7 +8434,7 @@ class mn {
8434
8434
  // the artifacts this might produce from the user.
8435
8435
  ensureLineGaps(O, e) {
8436
8436
  let t = this.heightOracle.lineWrapping, r = t ? 1e4 : 2e3, n = r >> 1, a = r << 1;
8437
- if (this.defaultTextDirection != H.LTR && !t)
8437
+ if (this.defaultTextDirection != J.LTR && !t)
8438
8438
  return [];
8439
8439
  let s = [], o = (Q, $, h, f) => {
8440
8440
  if ($ - Q < n)
@@ -9147,7 +9147,7 @@ class o5 {
9147
9147
  }
9148
9148
  function Cn(i, O, e) {
9149
9149
  for (; O; ) {
9150
- let t = F.get(O);
9150
+ let t = K.get(O);
9151
9151
  if (t && t.parent == i)
9152
9152
  return t;
9153
9153
  let r = O.parentNode;
@@ -9829,7 +9829,7 @@ class _ {
9829
9829
  if (!t || t.left == t.right)
9830
9830
  return t;
9831
9831
  let r = this.state.doc.lineAt(O), n = this.bidiSpans(r), a = n[IO.find(n, O - r.from, -1, e)];
9832
- return ft(t, a.dir == H.LTR == e > 0);
9832
+ return ft(t, a.dir == J.LTR == e > 0);
9833
9833
  }
9834
9834
  /**
9835
9835
  Return the rectangle around a given character. If `pos` does not
@@ -10040,7 +10040,7 @@ class _ {
10040
10040
  */
10041
10041
  static findFromDOM(O) {
10042
10042
  var e;
10043
- let t = O.querySelector(".cm-content"), r = t && F.get(t) || F.get(O);
10043
+ let t = O.querySelector(".cm-content"), r = t && K.get(t) || K.get(O);
10044
10044
  return ((e = r?.root) === null || e === void 0 ? void 0 : e.view) || null;
10045
10045
  }
10046
10046
  }
@@ -10068,7 +10068,7 @@ _.cspNonce = /* @__PURE__ */ q.define({ combine: (i) => i.length ? i[0] : "" });
10068
10068
  _.contentAttributes = pr;
10069
10069
  _.editorAttributes = fs;
10070
10070
  _.lineWrapping = /* @__PURE__ */ _.contentAttributes.of({ class: "cm-lineWrapping" });
10071
- _.announce = /* @__PURE__ */ K.define();
10071
+ _.announce = /* @__PURE__ */ H.define();
10072
10072
  const $5 = 4096, Zn = {};
10073
10073
  class St {
10074
10074
  constructor(O, e, t, r, n, a) {
@@ -10077,7 +10077,7 @@ class St {
10077
10077
  static update(O, e) {
10078
10078
  if (e.empty && !O.some((n) => n.fresh))
10079
10079
  return O;
10080
- let t = [], r = O.length ? O[O.length - 1].dir : H.LTR;
10080
+ let t = [], r = O.length ? O[O.length - 1].dir : J.LTR;
10081
10081
  for (let n = Math.max(0, O.length - 10); n < O.length; n++) {
10082
10082
  let a = O[n];
10083
10083
  a.dir == r && !e.touchesRange(a.from, a.to) && t.push(new St(e.mapPos(a.from, 1), e.mapPos(a.to, -1), a.dir, a.isolates, !1, a.order));
@@ -10851,7 +10851,7 @@ class wO {
10851
10851
  return !0;
10852
10852
  }
10853
10853
  }
10854
- wO.setState = /* @__PURE__ */ K.define();
10854
+ wO.setState = /* @__PURE__ */ H.define();
10855
10855
  function Rn(i, O, e) {
10856
10856
  let t = i.facet(Ee), r = Di(i).topNode;
10857
10857
  if (!t || t.allowsNesting)
@@ -11586,7 +11586,7 @@ function z5(i, O) {
11586
11586
  ], top: !0 });
11587
11587
  return g1.push(e), e;
11588
11588
  }
11589
- H.RTL, H.LTR;
11589
+ J.RTL, J.LTR;
11590
11590
  function Cr(i, O, e, t, r, n) {
11591
11591
  this.indented = i, this.column = O, this.type = e, this.info = t, this.align = r, this.prev = n;
11592
11592
  }
@@ -11757,7 +11757,7 @@ function Wt(i, O) {
11757
11757
  function _t(i) {
11758
11758
  return !i || i.length < 2 || i[0] != "_" ? !1 : i[1] == "_" || i[1] !== i[1].toLowerCase();
11759
11759
  }
11760
- function B(i) {
11760
+ function F(i) {
11761
11761
  return i.eatWhile(/[\w\.']/), "number";
11762
11762
  }
11763
11763
  function ee(i, O) {
@@ -11819,16 +11819,16 @@ fO({
11819
11819
  U: ee,
11820
11820
  L: ee,
11821
11821
  R: ee,
11822
- 0: B,
11823
- 1: B,
11824
- 2: B,
11825
- 3: B,
11826
- 4: B,
11827
- 5: B,
11828
- 6: B,
11829
- 7: B,
11830
- 8: B,
11831
- 9: B,
11822
+ 0: F,
11823
+ 1: F,
11824
+ 2: F,
11825
+ 3: F,
11826
+ 4: F,
11827
+ 5: F,
11828
+ 6: F,
11829
+ 7: F,
11830
+ 8: F,
11831
+ 9: F,
11832
11832
  token: function(i, O, e) {
11833
11833
  if (e == "variable" && i.peek() == "(" && (O.prevToken == ";" || O.prevToken == null || O.prevToken == "}") && Bs(i.current()))
11834
11834
  return "def";
@@ -12040,16 +12040,16 @@ fO({
12040
12040
  U: ee,
12041
12041
  L: ee,
12042
12042
  R: ee,
12043
- 0: B,
12044
- 1: B,
12045
- 2: B,
12046
- 3: B,
12047
- 4: B,
12048
- 5: B,
12049
- 6: B,
12050
- 7: B,
12051
- 8: B,
12052
- 9: B,
12043
+ 0: F,
12044
+ 1: F,
12045
+ 2: F,
12046
+ 3: F,
12047
+ 4: F,
12048
+ 5: F,
12049
+ 6: F,
12050
+ 7: F,
12051
+ 8: F,
12052
+ 9: F,
12053
12053
  token: function(i, O, e) {
12054
12054
  if (e == "variable" && i.peek() == "(" && (O.prevToken == ";" || O.prevToken == null || O.prevToken == "}") && Bs(i.current()))
12055
12055
  return "def";
@@ -15361,32 +15361,34 @@ const xa = qt.define(_5).parser, Bc = qt.define(W5).parser, Fc = /* @__PURE__ */
15361
15361
  primaryShade: 6,
15362
15362
  defaultRadius: "md",
15363
15363
  fontSizes: {
15364
- xs: J(12),
15365
- sm: J(13),
15366
- md: J(14),
15367
- lg: J(16),
15368
- xl: J(18)
15364
+ xs: B(12),
15365
+ sm: B(13),
15366
+ md: B(14),
15367
+ lg: B(16),
15368
+ xl: B(18)
15369
15369
  },
15370
15370
  headings: {
15371
15371
  sizes: {
15372
- h1: { fontSize: J(64), fontWeight: "700" },
15373
- h2: { fontSize: J(32), fontWeight: "600" },
15374
- h3: { fontSize: J(18), fontWeight: "500" }
15372
+ h1: { fontSize: B(64), fontWeight: "700" },
15373
+ h2: { fontSize: B(32), fontWeight: "600" },
15374
+ h3: { fontSize: B(18), fontWeight: "500" },
15375
+ h4: { fontSize: B(14), fontWeight: "600" },
15376
+ h5: { fontSize: B(13), fontWeight: "700" }
15375
15377
  }
15376
15378
  },
15377
15379
  spacing: {
15378
- xs: J(6),
15379
- sm: J(9),
15380
- md: J(12),
15381
- lg: J(16),
15382
- xl: J(20)
15380
+ xs: B(6),
15381
+ sm: B(9),
15382
+ md: B(12),
15383
+ lg: B(16),
15384
+ xl: B(20)
15383
15385
  },
15384
15386
  radius: {
15385
- xs: J(7),
15386
- sm: J(9),
15387
- md: J(11),
15388
- lg: J(15),
15389
- xl: J(99)
15387
+ xs: B(7),
15388
+ sm: B(9),
15389
+ md: B(11),
15390
+ lg: B(15),
15391
+ xl: B(99)
15390
15392
  },
15391
15393
  colors: {
15392
15394
  obsidian: [