@nldd/design-system 0.8.78 → 0.8.79

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.
@@ -1,4 +1,4 @@
1
- import { o, q, r, u, v, w, x, y, z, A, B, D, F, G, H, J, K, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf } from "./index-CU-wlUnI.js";
1
+ import { o, q, r, u, v, w, x, y, z, A, B, D, F, G, H, J, K, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf } from "./index-Bonuul3m.js";
2
2
  export {
3
3
  o as NLDDActivityIndicator,
4
4
  q as NLDDAppView,
@@ -1,4 +1,4 @@
1
- import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, l as ifNotIn, h as syntaxTree, b as LRLanguage, i as indentNodeProp, e as delimitedIndent, f as foldNodeProp, d as foldInside, N as NodeWeakMap, I as IterMode, m as completeFromList, n as snippetCompletion } from "./index-CU-wlUnI.js";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, l as ifNotIn, h as syntaxTree, b as LRLanguage, i as indentNodeProp, e as delimitedIndent, f as foldNodeProp, d as foldInside, N as NodeWeakMap, I as IterMode, m as completeFromList, n as snippetCompletion } from "./index-Bonuul3m.js";
2
2
  const printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155;
3
3
  const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85;
4
4
  const bracketed = /* @__PURE__ */ new Set([
@@ -1,4 +1,4 @@
1
- import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, g as EditorView, h as syntaxTree, j as EditorSelection, b as LRLanguage, i as indentNodeProp, f as foldNodeProp, k as bracketMatchingHandle } from "./index-CU-wlUnI.js";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, g as EditorView, h as syntaxTree, j as EditorSelection, b as LRLanguage, i as indentNodeProp, f as foldNodeProp, k as bracketMatchingHandle } from "./index-Bonuul3m.js";
2
2
  const StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
3
3
  function nameChar(ch) {
4
4
  return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
@@ -10700,6 +10700,9 @@ class FacetProvider {
10700
10700
  }
10701
10701
  };
10702
10702
  }
10703
+ get extension() {
10704
+ return this;
10705
+ }
10703
10706
  }
10704
10707
  function compareArray(a, b, compare2) {
10705
10708
  if (a.length != b.length)
@@ -10874,6 +10877,9 @@ class PrecExtension {
10874
10877
  this.inner = inner;
10875
10878
  this.prec = prec2;
10876
10879
  }
10880
+ get extension() {
10881
+ return this;
10882
+ }
10877
10883
  }
10878
10884
  class Compartment {
10879
10885
  /**
@@ -10903,6 +10909,9 @@ class CompartmentInstance {
10903
10909
  this.compartment = compartment;
10904
10910
  this.inner = inner;
10905
10911
  }
10912
+ get extension() {
10913
+ return this;
10914
+ }
10906
10915
  }
10907
10916
  class Configuration {
10908
10917
  constructor(base2, compartments, dynamicSlots, address, staticValues, facets) {
@@ -11010,6 +11019,8 @@ function flatten(extension, compartments, newCompartments) {
11010
11019
  } else {
11011
11020
  let content2 = ext.extension;
11012
11021
  if (!content2)
11022
+ throw new Error(`Unrecognized extension value in extension set (${ext}).`);
11023
+ if (content2 == ext)
11013
11024
  throw new Error(`Unrecognized extension value in extension set (${ext}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
11014
11025
  inner(content2, prec2);
11015
11026
  }
@@ -13192,8 +13203,11 @@ function scanFor(node, off, targetNode, targetOff, dir) {
13192
13203
  function maxOffset(node) {
13193
13204
  return node.nodeType == 3 ? node.nodeValue.length : node.childNodes.length;
13194
13205
  }
13195
- function flattenRect(rect, left) {
13196
- let x = left ? rect.left : rect.right;
13206
+ function flattenRect(rect, toLeft) {
13207
+ let { left, right } = rect;
13208
+ if (left == right)
13209
+ return rect;
13210
+ let x = toLeft ? left : right;
13197
13211
  return { left: x, right: x, top: rect.top, bottom: rect.bottom };
13198
13212
  }
13199
13213
  function windowRect(win) {
@@ -14273,7 +14287,7 @@ class Tile {
14273
14287
  covers(side) {
14274
14288
  return true;
14275
14289
  }
14276
- coordsIn(pos, side) {
14290
+ coordsIn(pos, side, rtl) {
14277
14291
  return null;
14278
14292
  }
14279
14293
  domPosFor(off, side) {
@@ -14473,6 +14487,9 @@ class LineTile extends CompositeTile {
14473
14487
  return this.attrs;
14474
14488
  }
14475
14489
  // Find the tile associated with a given position in this line.
14490
+ // Side -2/2 is handled specially, in that it allows the position
14491
+ // returned to be before (-2) or after (2) widgets that would always
14492
+ // be after/before a cursor position.
14476
14493
  resolveInline(pos, side, forCoords) {
14477
14494
  let before = null, beforeOff = -1, after = null, afterOff = -1;
14478
14495
  function scan(tile, pos2) {
@@ -14481,10 +14498,10 @@ class LineTile extends CompositeTile {
14481
14498
  if (end >= pos2) {
14482
14499
  if (child.isComposite()) {
14483
14500
  scan(child, pos2 - off);
14484
- } else if ((!after || after.isHidden && (side > 0 || forCoords && onSameLine(after, child))) && (end > pos2 || child.flags & 32)) {
14501
+ } else if ((!after || after.isHidden && (side > 0 && !(after.flags & 32) || forCoords && onSameLine(after, child))) && (end > pos2 || child.flags & 32 && side <= 1)) {
14485
14502
  after = child;
14486
14503
  afterOff = pos2 - off;
14487
- } else if (off < pos2 || child.flags & 16 && !child.isHidden) {
14504
+ } else if (off < pos2 || child.flags & 16 && !child.isHidden && side >= -1) {
14488
14505
  before = child;
14489
14506
  beforeOff = pos2 - off;
14490
14507
  }
@@ -14496,11 +14513,11 @@ class LineTile extends CompositeTile {
14496
14513
  let target = (side < 0 ? before : after) || before || after;
14497
14514
  return target ? { tile: target, offset: target == before ? beforeOff : afterOff } : null;
14498
14515
  }
14499
- coordsIn(pos, side) {
14516
+ coordsIn(pos, side, rtl) {
14500
14517
  let found = this.resolveInline(pos, side, true);
14501
14518
  if (!found)
14502
14519
  return fallbackRect(this);
14503
- return found.tile.coordsIn(Math.max(0, found.offset), side);
14520
+ return found.tile.coordsIn(Math.max(0, found.offset), side, rtl);
14504
14521
  }
14505
14522
  domIn(pos, side) {
14506
14523
  let found = this.resolveInline(pos, side);
@@ -14570,7 +14587,7 @@ class TextTile extends Tile {
14570
14587
  toString() {
14571
14588
  return JSON.stringify(this.text);
14572
14589
  }
14573
- coordsIn(pos, side) {
14590
+ coordsIn(pos, side, rtl) {
14574
14591
  let length = this.dom.nodeValue.length;
14575
14592
  if (pos > length)
14576
14593
  pos = length;
@@ -14597,7 +14614,7 @@ class TextTile extends Tile {
14597
14614
  let rect = rects[(flatten2 ? flatten2 < 0 : side >= 0) ? 0 : rects.length - 1];
14598
14615
  if (browser.safari && !flatten2 && rect.width == 0)
14599
14616
  rect = Array.prototype.find.call(rects, (r) => r.width) || rect;
14600
- return flatten2 ? flattenRect(rect, flatten2 < 0) : rect || null;
14617
+ return rtl == null ? rect : flattenRect(rect, (flatten2 ? flatten2 > 0 : side < 0) == rtl);
14601
14618
  }
14602
14619
  static of(text, dom) {
14603
14620
  let tile = new TextTile(dom || document.createTextNode(text), text);
@@ -14679,8 +14696,9 @@ class WidgetBufferTile extends Tile {
14679
14696
  get overrideDOMText() {
14680
14697
  return Text.empty;
14681
14698
  }
14682
- coordsIn(pos) {
14683
- return this.dom.getBoundingClientRect();
14699
+ coordsIn(pos, side, rtl) {
14700
+ let rect = this.dom.getBoundingClientRect();
14701
+ return rtl == null ? rect : flattenRect(rect, side > 0 == rtl);
14684
14702
  }
14685
14703
  }
14686
14704
  class TilePointer {
@@ -14698,18 +14716,20 @@ class TilePointer {
14698
14716
  let { tile, index: index2, beforeBreak, parents } = this;
14699
14717
  while (dist2 || side > 0) {
14700
14718
  if (!tile.isComposite()) {
14701
- if (index2 == tile.length) {
14719
+ let len = tile.length;
14720
+ if (index2 < len && dist2) {
14721
+ let take = Math.min(dist2, len - index2);
14722
+ if (walker)
14723
+ walker.skip(tile, index2, index2 + take);
14724
+ dist2 -= take;
14725
+ index2 += take;
14726
+ }
14727
+ if (index2 == len) {
14702
14728
  beforeBreak = !!tile.breakAfter;
14703
14729
  ({ tile, index: index2 } = parents.pop());
14704
14730
  index2++;
14705
14731
  } else if (!dist2) {
14706
14732
  break;
14707
- } else {
14708
- let take = Math.min(dist2, tile.length - index2);
14709
- if (walker)
14710
- walker.skip(tile, index2, index2 + take);
14711
- dist2 -= take;
14712
- index2 += take;
14713
14733
  }
14714
14734
  } else if (beforeBreak) {
14715
14735
  if (!dist2)
@@ -15040,7 +15060,7 @@ class TileCache {
15040
15060
  find(cls, test, type = 2) {
15041
15061
  let i = cls.bucket;
15042
15062
  let bucket = this.buckets[i], off = this.index[i];
15043
- for (let j = bucket.length - 1; j >= 0; j--) {
15063
+ for (let j = 0; j < bucket.length; j++) {
15044
15064
  let index2 = (j + off) % bucket.length, tile = bucket[index2];
15045
15065
  if ((!test || test(tile)) && !this.reused.has(tile)) {
15046
15066
  bucket.splice(index2, 1);
@@ -15245,7 +15265,7 @@ class TileUpdate {
15245
15265
  }
15246
15266
  emit(from, to) {
15247
15267
  let pendingLineAttrs = null;
15248
- let b = this.builder, markCount = 0;
15268
+ let b = this.builder, markCount = -1;
15249
15269
  let openEnd = RangeSet.spans(this.decorations, from, to, {
15250
15270
  point: (from2, to2, deco, active, openStart, index2) => {
15251
15271
  if (deco instanceof PointDecoration) {
@@ -15295,7 +15315,8 @@ class TileUpdate {
15295
15315
  markCount = active.length;
15296
15316
  }
15297
15317
  });
15298
- this.openWidget = openEnd > markCount;
15318
+ if (markCount > -1)
15319
+ this.openWidget = openEnd > markCount;
15299
15320
  if (!this.openWidget)
15300
15321
  b.addLineStartIfNotCovered(pendingLineAttrs);
15301
15322
  this.openMarks = openEnd;
@@ -15664,7 +15685,7 @@ class DocView {
15664
15685
  domAtPos(pos, side) {
15665
15686
  let { tile, offset: offset2 } = this.tile.resolveBlock(pos, side);
15666
15687
  if (tile.isWidget())
15667
- return tile.domPosFor(pos, side);
15688
+ return tile.domPosFor(offset2, side);
15668
15689
  return tile.domIn(offset2, side);
15669
15690
  }
15670
15691
  inlineDOMNearPos(pos, side) {
@@ -15700,14 +15721,16 @@ class DocView {
15700
15721
  after = null;
15701
15722
  return before && side < 0 || !after ? before.domIn(beforeOff, side) : after.domIn(afterOff, side);
15702
15723
  }
15703
- coordsAt(pos, side) {
15724
+ // Get the coord of the element at the given side of the given
15725
+ // position. If rtl is given, flatten it using that text direction.
15726
+ coordsAt(pos, side, rtl) {
15704
15727
  let { tile, offset: offset2 } = this.tile.resolveBlock(pos, side);
15705
15728
  if (tile.isWidget()) {
15706
15729
  if (tile.widget instanceof BlockGapWidget)
15707
15730
  return null;
15708
15731
  return tile.coordsInWidget(offset2, side, true);
15709
15732
  }
15710
- return tile.coordsIn(offset2, side);
15733
+ return tile.coordsIn(offset2, side, rtl);
15711
15734
  }
15712
15735
  lineAt(pos, side) {
15713
15736
  let { tile } = this.tile.resolveBlock(pos, side);
@@ -15878,7 +15901,6 @@ class DocView {
15878
15901
  this.blockWrappers = this.view.state.facet(blockWrappers).map((v) => typeof v == "function" ? v(this.view) : v);
15879
15902
  }
15880
15903
  scrollIntoView(target) {
15881
- var _a3;
15882
15904
  if (target.isSnapshot) {
15883
15905
  let ref = this.view.viewState.lineBlockAt(target.range.head);
15884
15906
  this.view.scrollDOM.scrollTop = ref.top - target.yMargin;
@@ -15894,7 +15916,7 @@ class DocView {
15894
15916
  }
15895
15917
  }
15896
15918
  let { range } = target;
15897
- let rect = this.coordsAt(range.head, (_a3 = range.assoc) !== null && _a3 !== void 0 ? _a3 : range.empty ? 0 : range.head > range.anchor ? -1 : 1), other;
15919
+ let rect = this.coordsAt(range.head, range.assoc || (range.head > range.anchor ? -1 : 1)), other;
15898
15920
  if (!rect)
15899
15921
  return;
15900
15922
  if (!range.empty && (other = this.coordsAt(range.anchor, range.anchor > range.head ? -1 : 1)))
@@ -16841,6 +16863,7 @@ class InputState {
16841
16863
  this.view = view;
16842
16864
  this.lastKeyCode = 0;
16843
16865
  this.lastKeyTime = 0;
16866
+ this.touchActive = false;
16844
16867
  this.lastTouchTime = 0;
16845
16868
  this.lastTouchX = 0;
16846
16869
  this.lastTouchY = 0;
@@ -16849,6 +16872,7 @@ class InputState {
16849
16872
  this.lastScrollLeft = 0;
16850
16873
  this.lastWheelEvent = 0;
16851
16874
  this.pendingIOSKey = void 0;
16875
+ this.lastIOSMomentumScroll = 0;
16852
16876
  this.tabFocusMode = -1;
16853
16877
  this.lastSelectionOrigin = null;
16854
16878
  this.lastSelectionTime = 0;
@@ -17220,8 +17244,11 @@ function doPaste(view, input) {
17220
17244
  });
17221
17245
  }
17222
17246
  observers.scroll = (view) => {
17223
- view.inputState.lastScrollTop = view.scrollDOM.scrollTop;
17224
- view.inputState.lastScrollLeft = view.scrollDOM.scrollLeft;
17247
+ let iState = view.inputState;
17248
+ iState.lastScrollTop = view.scrollDOM.scrollTop;
17249
+ iState.lastScrollLeft = view.scrollDOM.scrollLeft;
17250
+ if (browser.ios && !iState.touchActive)
17251
+ iState.lastIOSMomentumScroll = Date.now();
17225
17252
  };
17226
17253
  observers.wheel = observers.mousewheel = (view) => {
17227
17254
  view.inputState.lastWheelEvent = Date.now();
@@ -17234,6 +17261,7 @@ handlers.keydown = (view, event) => {
17234
17261
  };
17235
17262
  observers.touchstart = (view, e) => {
17236
17263
  let iState = view.inputState, touch = e.targetTouches[0];
17264
+ iState.touchActive = true;
17237
17265
  iState.lastTouchTime = Date.now();
17238
17266
  if (touch) {
17239
17267
  iState.lastTouchX = touch.clientX;
@@ -17244,6 +17272,9 @@ observers.touchstart = (view, e) => {
17244
17272
  observers.touchmove = (view) => {
17245
17273
  view.inputState.setSelectionOrigin("select.pointer");
17246
17274
  };
17275
+ observers.touchend = (view, e) => {
17276
+ view.inputState.touchActive = false;
17277
+ };
17247
17278
  handlers.mousedown = (view, event) => {
17248
17279
  view.observer.flush();
17249
17280
  if (view.inputState.lastTouchTime > Date.now() - 2e3)
@@ -19159,6 +19190,8 @@ const baseTheme$1$1 = /* @__PURE__ */ buildTheme("." + baseThemeID, {
19159
19190
  backgroundColor: "#f5f5f5",
19160
19191
  color: "black"
19161
19192
  },
19193
+ ".cm-panels-top": { top: "0" },
19194
+ ".cm-panels-bottom": { bottom: "0" },
19162
19195
  "&light .cm-panels-top": {
19163
19196
  borderBottom: "1px solid #ddd"
19164
19197
  },
@@ -20281,7 +20314,7 @@ class EditorView {
20281
20314
  } else {
20282
20315
  let newAnchorHeight = scrollAnchorPos < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(scrollAnchorPos).top;
20283
20316
  let diff = (newAnchorHeight - scrollAnchorHeight) / this.scaleY;
20284
- if ((diff > 1 || diff < -1) && (scroll == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
20317
+ if ((diff > 1 || diff < -1) && !(browser.ios && this.inputState.lastIOSMomentumScroll > Date.now() - 100) && (scroll == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
20285
20318
  scrollOffset = scrollOffset + diff;
20286
20319
  if (scroll)
20287
20320
  scroll.scrollTop += diff;
@@ -20572,12 +20605,9 @@ class EditorView {
20572
20605
  */
20573
20606
  coordsAtPos(pos, side = 1) {
20574
20607
  this.readMeasured();
20575
- let rect = this.docView.coordsAt(pos, side);
20576
- if (!rect || rect.left == rect.right)
20577
- return rect;
20578
20608
  let line = this.state.doc.lineAt(pos), order = this.bidiSpans(line);
20579
20609
  let span = order[BidiSpan.find(order, pos - line.from, -1, side)];
20580
- return flattenRect(rect, span.dir == Direction.LTR == side > 0);
20610
+ return this.docView.coordsAt(pos, side, span.dir == Direction.RTL);
20581
20611
  }
20582
20612
  /**
20583
20613
  Return the rectangle around a given character. If `pos` does not
@@ -21391,9 +21421,10 @@ const selectionLayer = /* @__PURE__ */ layer({
21391
21421
  },
21392
21422
  class: "cm-selectionLayer"
21393
21423
  });
21424
+ const selectionBg = browser.gecko && browser.gecko_version >= 153 ? "#ffffff01" : "transparent";
21394
21425
  const hideNativeSelection = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ EditorView.theme({
21395
21426
  ".cm-line": {
21396
- "& ::selection, &::selection": { backgroundColor: "transparent !important" },
21427
+ "& ::selection, &::selection": { backgroundColor: `${selectionBg} !important` },
21397
21428
  caretColor: "transparent !important"
21398
21429
  },
21399
21430
  ".cm-content": {
@@ -26890,16 +26921,16 @@ const highlightStyle = HighlightStyle.define([
26890
26921
  ]);
26891
26922
  const nlddCodeMirrorTheme = [baseTheme$1, syntaxHighlighting(highlightStyle)];
26892
26923
  const loaders = {
26893
- json: async () => (await import("./index-CcCKQ3Dj.js")).json(),
26894
- yaml: async () => (await import("./index-D68oJ-Le.js")).yaml(),
26924
+ json: async () => (await import("./index-CdOU-HVN.js")).json(),
26925
+ yaml: async () => (await import("./index-yX0V7C44.js")).yaml(),
26895
26926
  javascript: async () => (await Promise.resolve().then(() => index$2)).javascript(),
26896
26927
  typescript: async () => (await Promise.resolve().then(() => index$2)).javascript({ typescript: true }),
26897
26928
  css: async () => (await Promise.resolve().then(() => index$3)).css(),
26898
26929
  html: async () => (await Promise.resolve().then(() => index$1)).html(),
26899
- xml: async () => (await import("./index-v6dIt9IT.js")).xml(),
26900
- python: async () => (await import("./index-BmVf8Da6.js")).python(),
26901
- rust: async () => (await import("./index-BNg_kPou.js")).rust(),
26902
- sql: async () => (await import("./index-D03jbAoU.js")).sql(),
26930
+ xml: async () => (await import("./index-BMeSmtdw.js")).xml(),
26931
+ python: async () => (await import("./index--8_4HvE9.js")).python(),
26932
+ rust: async () => (await import("./index-CwmDMN6X.js")).rust(),
26933
+ sql: async () => (await import("./index-CqhFJR7l.js")).sql(),
26903
26934
  markdown: async () => (await Promise.resolve().then(() => index)).markdown(),
26904
26935
  // No official lang-* package — wrap the legacy StreamLanguage modes.
26905
26936
  bash: async () => new LanguageSupport(StreamLanguage.define((await import("./shell-BlsXDxCn.js")).shell)),
@@ -48179,7 +48210,7 @@ const deleteMarkupBackward = ({ state: state2, dispatch }) => {
48179
48210
  if (pos - line.from == spaceEnd && // Only apply this if we're on the line that has the
48180
48211
  // construct's syntax, or there's only indentation in the
48181
48212
  // target range
48182
- (!inner.item || line.from <= inner.item.from || !/\S/.test(line.text.slice(0, inner.to)))) {
48213
+ (inner.item && line.from <= inner.item.from || /^[\s>]*$/.test(line.text.slice(0, inner.to)))) {
48183
48214
  let start = line.from + inner.from;
48184
48215
  if (inner.item && inner.node.from < inner.item.from && /\S/.test(line.text.slice(inner.from, inner.to))) {
48185
48216
  let insert2 = inner.blank(countColumn(line.text, 4, inner.to) - countColumn(line.text, 4, inner.from));
@@ -1,4 +1,4 @@
1
- import { L as LRParser, s as styleTags, t as tags, a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, d as foldInside } from "./index-CU-wlUnI.js";
1
+ import { L as LRParser, s as styleTags, t as tags, a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, d as foldInside } from "./index-Bonuul3m.js";
2
2
  const jsonHighlighting = styleTags({
3
3
  String: tags.string,
4
4
  Number: tags.number,
@@ -1,4 +1,4 @@
1
- import { a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, s as styleTags, E as ExternalTokenizer, l as ifNotIn, m as completeFromList, L as LRParser, h as syntaxTree, t as tags } from "./index-CU-wlUnI.js";
1
+ import { a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, s as styleTags, E as ExternalTokenizer, l as ifNotIn, m as completeFromList, L as LRParser, h as syntaxTree, t as tags } from "./index-Bonuul3m.js";
2
2
  const whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
3
3
  function isAlpha(ch) {
4
4
  return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57;
@@ -1,4 +1,4 @@
1
- import { L as LRParser, E as ExternalTokenizer, s as styleTags, t as tags, a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, d as foldInside } from "./index-CU-wlUnI.js";
1
+ import { L as LRParser, E as ExternalTokenizer, s as styleTags, t as tags, a as LanguageSupport, b as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, d as foldInside } from "./index-Bonuul3m.js";
2
2
  const closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5;
3
3
  const _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
4
4
  function isNum(ch) {
@@ -1,4 +1,4 @@
1
- import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, p as parseMixed, b as LRLanguage, i as indentNodeProp, e as delimitedIndent, f as foldNodeProp, d as foldInside } from "./index-CU-wlUnI.js";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker, s as styleTags, t as tags, a as LanguageSupport, p as parseMixed, b as LRLanguage, i as indentNodeProp, e as delimitedIndent, f as foldNodeProp, d as foldInside } from "./index-Bonuul3m.js";
2
2
  const blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47;
3
3
  const type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4;
4
4
  class Context {