@inkandswitch/patchwork-pkg-base 0.0.88 → 0.0.89

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.
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/packages/file/dist/tsgo.wasm
3
+ size: 49020689 bytes
4
+ sha256: 24ea14c522de5e08cec9f625fa0bc0d98773206b5be1bb2384d981ca2392021e
@@ -2,9 +2,9 @@ var wt = Object.defineProperty;
2
2
  var vt = (n, e, t) => e in n ? wt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var w = (n, e, t) => vt(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { showPanel as Ke, EditorView as le, Decoration as N, hoverTooltip as Ue, WidgetType as yt, keymap as We, ViewPlugin as ke, showDialog as xe, getDialog as St, showTooltip as Ct } from "@codemirror/view";
5
- import { StateEffect as I, StateField as be, Facet as Qe, combineConfig as Rt, RangeSetBuilder as Tt, ChangeSet as ue, MapMode as ze, EditorState as Pt, Prec as $t } from "@codemirror/state";
6
- import { indentUnit as At, getIndentUnit as _t, language as we, highlightingFor as Je } from "@codemirror/language";
7
- import { c as D, a as Ee, s as Dt, i as zt, h as Xe } from "./tool-B3O4i8l2.js";
5
+ import { StateEffect as I, StateField as be, Facet as Qe, combineConfig as Rt, RangeSetBuilder as Tt, ChangeSet as ue, MapMode as _e, EditorState as Pt, Prec as $t } from "@codemirror/state";
6
+ import { indentUnit as At, getIndentUnit as Dt, language as we, highlightingFor as Je } from "@codemirror/language";
7
+ import { c as L, a as ze, s as Lt, i as _t, h as Xe } from "./tool-DbKwBmkX.js";
8
8
  function ve() {
9
9
  return {
10
10
  async: !1,
@@ -92,12 +92,12 @@ var R = {
92
92
  fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
93
93
  headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
94
94
  htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
95
- }, Et = /^(?:[ \t]*(?:\n|$))+/, Lt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, qt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, W = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, It = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ye = /(?:[*+-]|\d{1,9}[.)])/, et = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, tt = x(et).replace(/bull/g, ye).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Mt = x(et).replace(/bull/g, ye).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Se = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ft = /^[^\n]+/, Ce = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Bt = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ce).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ot = x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ye).getRegex(), oe = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Re = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ht = x(
95
+ }, zt = /^(?:[ \t]*(?:\n|$))+/, Et = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, qt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, W = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, It = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ye = /(?:[*+-]|\d{1,9}[.)])/, et = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, tt = x(et).replace(/bull/g, ye).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Mt = x(et).replace(/bull/g, ye).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Se = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ft = /^[^\n]+/, Ce = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Bt = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ce).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ot = x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ye).getRegex(), oe = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Re = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ht = x(
96
96
  "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
97
97
  "i"
98
98
  ).replace("comment", Re).replace("tag", oe).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), nt = x(Se).replace("hr", W).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oe).getRegex(), Nt = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", nt).getRegex(), Te = {
99
99
  blockquote: Nt,
100
- code: Lt,
100
+ code: Et,
101
101
  def: Bt,
102
102
  fences: qt,
103
103
  heading: It,
@@ -105,17 +105,17 @@ var R = {
105
105
  html: Ht,
106
106
  lheading: tt,
107
107
  list: Ot,
108
- newline: Et,
108
+ newline: zt,
109
109
  paragraph: nt,
110
110
  table: G,
111
111
  text: Ft
112
- }, Le = x(
112
+ }, Ee = x(
113
113
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
114
114
  ).replace("hr", W).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oe).getRegex(), jt = {
115
115
  ...Te,
116
116
  lheading: Mt,
117
- table: Le,
118
- paragraph: x(Se).replace("hr", W).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Le).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oe).getRegex()
117
+ table: Ee,
118
+ paragraph: x(Se).replace("hr", W).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ee).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oe).getRegex()
119
119
  }, Zt = {
120
120
  ...Te,
121
121
  html: x(
@@ -186,7 +186,7 @@ var R = {
186
186
  '"': "&quot;",
187
187
  "'": "&#39;"
188
188
  }, qe = (n) => hn[n];
189
- function _(n, e) {
189
+ function D(n, e) {
190
190
  if (e) {
191
191
  if (R.escapeTest.test(n))
192
192
  return n.replace(R.escapeReplace, qe);
@@ -751,7 +751,7 @@ ${c}` : c;
751
751
  };
752
752
  }
753
753
  }
754
- }, z = class he {
754
+ }, _ = class he {
755
755
  constructor(e) {
756
756
  w(this, "tokens");
757
757
  w(this, "options");
@@ -1009,8 +1009,8 @@ ${c}` : c;
1009
1009
  var s;
1010
1010
  const i = (s = (e || "").match(R.notSpaceStart)) == null ? void 0 : s[0], r = n.replace(R.endingNewline, "") + `
1011
1011
  `;
1012
- return i ? '<pre><code class="language-' + _(i) + '">' + (t ? r : _(r, !0)) + `</code></pre>
1013
- ` : "<pre><code>" + (t ? r : _(r, !0)) + `</code></pre>
1012
+ return i ? '<pre><code class="language-' + D(i) + '">' + (t ? r : D(r, !0)) + `</code></pre>
1013
+ ` : "<pre><code>" + (t ? r : D(r, !0)) + `</code></pre>
1014
1014
  `;
1015
1015
  }
1016
1016
  blockquote({ tokens: n }) {
@@ -1046,7 +1046,7 @@ ${this.parser.parse(n)}</blockquote>
1046
1046
  let e = "";
1047
1047
  if (n.task) {
1048
1048
  const i = this.checkbox({ checked: !!n.checked });
1049
- n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " + _(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
1049
+ n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " + D(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
1050
1050
  type: "text",
1051
1051
  raw: i + " ",
1052
1052
  text: i + " ",
@@ -1102,7 +1102,7 @@ ${n}</tr>
1102
1102
  return `<em>${this.parser.parseInline(n)}</em>`;
1103
1103
  }
1104
1104
  codespan({ text: n }) {
1105
- return `<code>${_(n, !0)}</code>`;
1105
+ return `<code>${D(n, !0)}</code>`;
1106
1106
  }
1107
1107
  br(n) {
1108
1108
  return "<br>";
@@ -1116,19 +1116,19 @@ ${n}</tr>
1116
1116
  return i;
1117
1117
  n = r;
1118
1118
  let s = '<a href="' + n + '"';
1119
- return e && (s += ' title="' + _(e) + '"'), s += ">" + i + "</a>", s;
1119
+ return e && (s += ' title="' + D(e) + '"'), s += ">" + i + "</a>", s;
1120
1120
  }
1121
1121
  image({ href: n, title: e, text: t, tokens: i }) {
1122
1122
  i && (t = this.parser.parseInline(i, this.parser.textRenderer));
1123
1123
  const r = Ie(n);
1124
1124
  if (r === null)
1125
- return _(t);
1125
+ return D(t);
1126
1126
  n = r;
1127
1127
  let s = `<img src="${n}" alt="${t}"`;
1128
- return e && (s += ` title="${_(e)}"`), s += ">", s;
1128
+ return e && (s += ` title="${D(e)}"`), s += ">", s;
1129
1129
  }
1130
1130
  text(n) {
1131
- return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : _(n.text);
1131
+ return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : D(n.text);
1132
1132
  }
1133
1133
  }, Ae = class {
1134
1134
  // no need for block level renderers
@@ -1159,7 +1159,7 @@ ${n}</tr>
1159
1159
  br() {
1160
1160
  return "";
1161
1161
  }
1162
- }, E = class fe {
1162
+ }, z = class fe {
1163
1163
  constructor(e) {
1164
1164
  w(this, "options");
1165
1165
  w(this, "renderer");
@@ -1349,13 +1349,13 @@ ${n}</tr>
1349
1349
  * Provide function to tokenize markdown
1350
1350
  */
1351
1351
  provideLexer() {
1352
- return this.block ? z.lex : z.lexInline;
1352
+ return this.block ? _.lex : _.lexInline;
1353
1353
  }
1354
1354
  /**
1355
1355
  * Provide function to parse tokens
1356
1356
  */
1357
1357
  provideParser() {
1358
- return this.block ? E.parse : E.parseInline;
1358
+ return this.block ? z.parse : z.parseInline;
1359
1359
  }
1360
1360
  }, w(ce, "passThroughHooks", /* @__PURE__ */ new Set([
1361
1361
  "preprocess",
@@ -1367,10 +1367,10 @@ ${n}</tr>
1367
1367
  w(this, "options", this.setOptions);
1368
1368
  w(this, "parse", this.parseMarkdown(!0));
1369
1369
  w(this, "parseInline", this.parseMarkdown(!1));
1370
- w(this, "Parser", E);
1370
+ w(this, "Parser", z);
1371
1371
  w(this, "Renderer", ie);
1372
1372
  w(this, "TextRenderer", Ae);
1373
- w(this, "Lexer", z);
1373
+ w(this, "Lexer", _);
1374
1374
  w(this, "Tokenizer", ne);
1375
1375
  w(this, "Hooks", Y);
1376
1376
  this.use(...n);
@@ -1492,10 +1492,10 @@ ${n}</tr>
1492
1492
  return this.defaults = { ...this.defaults, ...n }, this;
1493
1493
  }
1494
1494
  lexer(n, e) {
1495
- return z.lex(n, e ?? this.defaults);
1495
+ return _.lex(n, e ?? this.defaults);
1496
1496
  }
1497
1497
  parser(n, e) {
1498
- return E.parse(n, e ?? this.defaults);
1498
+ return z.parse(n, e ?? this.defaults);
1499
1499
  }
1500
1500
  parseMarkdown(n) {
1501
1501
  return (t, i) => {
@@ -1507,7 +1507,7 @@ ${n}</tr>
1507
1507
  if (typeof t != "string")
1508
1508
  return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1509
1509
  s.hooks && (s.hooks.options = s, s.hooks.block = n);
1510
- const l = s.hooks ? s.hooks.provideLexer() : n ? z.lex : z.lexInline, u = s.hooks ? s.hooks.provideParser() : n ? E.parse : E.parseInline;
1510
+ const l = s.hooks ? s.hooks.provideLexer() : n ? _.lex : _.lexInline, u = s.hooks ? s.hooks.provideParser() : n ? z.parse : z.parseInline;
1511
1511
  if (s.async)
1512
1512
  return Promise.resolve(s.hooks ? s.hooks.preprocess(t) : t).then((a) => l(a, s)).then((a) => s.hooks ? s.hooks.processAllTokens(a) : a).then((a) => s.walkTokens ? Promise.all(this.walkTokens(a, s.walkTokens)).then(() => a) : a).then((a) => u(a, s)).then((a) => s.hooks ? s.hooks.postprocess(a) : a).catch(o);
1513
1513
  try {
@@ -1525,7 +1525,7 @@ ${n}</tr>
1525
1525
  return (t) => {
1526
1526
  if (t.message += `
1527
1527
  Please report this to https://github.com/markedjs/marked.`, n) {
1528
- const i = "<p>An error occurred:</p><pre>" + _(t.message + "", !0) + "</pre>";
1528
+ const i = "<p>An error occurred:</p><pre>" + D(t.message + "", !0) + "</pre>";
1529
1529
  return e ? Promise.resolve(i) : i;
1530
1530
  }
1531
1531
  if (e)
@@ -1549,12 +1549,12 @@ b.walkTokens = function(n, e) {
1549
1549
  return B.walkTokens(n, e);
1550
1550
  };
1551
1551
  b.parseInline = B.parseInline;
1552
- b.Parser = E;
1553
- b.parser = E.parse;
1552
+ b.Parser = z;
1553
+ b.parser = z.parse;
1554
1554
  b.Renderer = ie;
1555
1555
  b.TextRenderer = Ae;
1556
- b.Lexer = z;
1557
- b.lexer = z.lex;
1556
+ b.Lexer = _;
1557
+ b.lexer = _.lex;
1558
1558
  b.Tokenizer = ne;
1559
1559
  b.Hooks = Y;
1560
1560
  b.parse = b;
@@ -1563,8 +1563,8 @@ b.setOptions;
1563
1563
  b.use;
1564
1564
  b.walkTokens;
1565
1565
  b.parseInline;
1566
- E.parse;
1567
- z.lex;
1566
+ z.parse;
1567
+ _.lex;
1568
1568
  class Be {
1569
1569
  constructor(e, t, i) {
1570
1570
  this.from = e, this.to = t, this.diagnostic = i;
@@ -1655,17 +1655,17 @@ function gn(n, e) {
1655
1655
  if (r != null)
1656
1656
  return r;
1657
1657
  let s = n.startState.doc.lineAt(e.pos);
1658
- return !!(n.effects.some((o) => o.is(_e)) || n.changes.touchesRange(s.from, Math.max(s.to, i)));
1658
+ return !!(n.effects.some((o) => o.is(De)) || n.changes.touchesRange(s.from, Math.max(s.to, i)));
1659
1659
  }
1660
1660
  function mn(n, e) {
1661
1661
  return n.field(A, !1) ? e : e.concat(I.appendConfig.of(Pn));
1662
1662
  }
1663
1663
  function kn(n, e) {
1664
1664
  return {
1665
- effects: mn(n, [_e.of(e)])
1665
+ effects: mn(n, [De.of(e)])
1666
1666
  };
1667
1667
  }
1668
- const _e = /* @__PURE__ */ I.define(), pt = /* @__PURE__ */ I.define(), ht = /* @__PURE__ */ I.define(), A = /* @__PURE__ */ be.define({
1668
+ const De = /* @__PURE__ */ I.define(), pt = /* @__PURE__ */ I.define(), ht = /* @__PURE__ */ I.define(), A = /* @__PURE__ */ be.define({
1669
1669
  create() {
1670
1670
  return new F(N.none, null, null);
1671
1671
  },
@@ -1679,7 +1679,7 @@ const _e = /* @__PURE__ */ I.define(), pt = /* @__PURE__ */ I.define(), ht = /*
1679
1679
  !t.size && r && e.state.facet(K).autoPanel && (r = null), n = new F(t, r, i);
1680
1680
  }
1681
1681
  for (let t of e.effects)
1682
- if (t.is(_e)) {
1682
+ if (t.is(De)) {
1683
1683
  let i = e.state.facet(K).autoPanel ? t.value.length ? re.open : null : n.panel;
1684
1684
  n = F.init(t.value, i, e.state);
1685
1685
  } else t.is(pt) ? n = new F(n.diagnostics, t.value ? re.open : null, n.selected) : t.is(ht) && (n = new F(n.diagnostics, n.panel, t.value));
@@ -1707,7 +1707,7 @@ function bn(n, e, t) {
1707
1707
  } : null;
1708
1708
  }
1709
1709
  function wn(n, e) {
1710
- return D("ul", { class: "cm-tooltip-lint" }, e.map((t) => dt(n, t, !1)));
1710
+ return L("ul", { class: "cm-tooltip-lint" }, e.map((t) => dt(n, t, !1)));
1711
1711
  }
1712
1712
  const Oe = (n) => {
1713
1713
  let e = n.state.field(A, !1);
@@ -1754,7 +1754,7 @@ function ft(n) {
1754
1754
  function dt(n, e, t) {
1755
1755
  var i;
1756
1756
  let r = t ? ft(e.actions) : [];
1757
- return D("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, D("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(n) : e.message), (i = e.actions) === null || i === void 0 ? void 0 : i.map((s, o) => {
1757
+ return L("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, L("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(n) : e.message), (i = e.actions) === null || i === void 0 ? void 0 : i.map((s, o) => {
1758
1758
  let l = !1, u = (h) => {
1759
1759
  if (h.preventDefault(), l)
1760
1760
  return;
@@ -1763,17 +1763,17 @@ function dt(n, e, t) {
1763
1763
  f && s.apply(n, f.from, f.to);
1764
1764
  }, { name: a } = s, c = r[o] ? a.indexOf(r[o]) : -1, d = c < 0 ? a : [
1765
1765
  a.slice(0, c),
1766
- D("u", a.slice(c, c + 1)),
1766
+ L("u", a.slice(c, c + 1)),
1767
1767
  a.slice(c + 1)
1768
1768
  ], p = s.markClass ? " " + s.markClass : "";
1769
- return D("button", {
1769
+ return L("button", {
1770
1770
  type: "button",
1771
1771
  class: "cm-diagnosticAction" + p,
1772
1772
  onclick: u,
1773
1773
  onmousedown: u,
1774
1774
  "aria-label": ` Action: ${a}${c < 0 ? "" : ` (access key "${r[o]})"`}.`
1775
1775
  }, d);
1776
- }), e.source && D("div", { class: "cm-diagnosticSource" }, e.source));
1776
+ }), e.source && L("div", { class: "cm-diagnosticSource" }, e.source));
1777
1777
  }
1778
1778
  class vn extends yt {
1779
1779
  constructor(e) {
@@ -1783,7 +1783,7 @@ class vn extends yt {
1783
1783
  return e.sev == this.sev;
1784
1784
  }
1785
1785
  toDOM() {
1786
- return D("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
1786
+ return L("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
1787
1787
  }
1788
1788
  }
1789
1789
  class Ne {
@@ -1823,13 +1823,13 @@ class re {
1823
1823
  for (let s = 0; s < this.items.length; s++)
1824
1824
  this.items[s].dom.contains(r.target) && this.moveSelection(s);
1825
1825
  };
1826
- this.list = D("ul", {
1826
+ this.list = L("ul", {
1827
1827
  tabIndex: 0,
1828
1828
  role: "listbox",
1829
1829
  "aria-label": this.view.state.phrase("Diagnostics"),
1830
1830
  onkeydown: t,
1831
1831
  onclick: i
1832
- }), this.dom = D("div", { class: "cm-panel-lint" }, this.list, D("button", {
1832
+ }), this.dom = L("div", { class: "cm-panel-lint" }, this.list, L("button", {
1833
1833
  type: "button",
1834
1834
  name: "close",
1835
1835
  "aria-label": this.view.state.phrase("close"),
@@ -2031,27 +2031,27 @@ const Tn = /* @__PURE__ */ Ue(bn, { hideOn: gn }), Pn = [
2031
2031
  Tn,
2032
2032
  Sn
2033
2033
  ];
2034
- let L = null;
2034
+ let E = null;
2035
2035
  function $n(n, e, t) {
2036
- let i = L;
2036
+ let i = E;
2037
2037
  try {
2038
- return L = { view: n, language: e }, t();
2038
+ return E = { view: n, language: e }, t();
2039
2039
  } finally {
2040
- L = i;
2040
+ E = i;
2041
2041
  }
2042
2042
  }
2043
2043
  const An = /* @__PURE__ */ new ut({
2044
2044
  walkTokens(n) {
2045
- if (!L || n.type != "code")
2045
+ if (!E || n.type != "code")
2046
2046
  return;
2047
- let e = L.language && L.language(n.lang);
2047
+ let e = E.language && E.language(n.lang);
2048
2048
  if (!e) {
2049
- let r = L.view.state.facet(we);
2049
+ let r = E.view.state.facet(we);
2050
2050
  r && r.name == n.lang && (e = r);
2051
2051
  }
2052
2052
  if (!e)
2053
2053
  return;
2054
- let t = { style: (r) => Je(L.view.state, r) }, i = "";
2054
+ let t = { style: (r) => Je(E.view.state, r) }, i = "";
2055
2055
  Xe(n.text, e.parser.parse(n.text), t, (r, s) => {
2056
2056
  i += s ? `<span class="${s}">${H(r)}</span>` : H(r);
2057
2057
  }, () => {
@@ -2063,7 +2063,7 @@ function H(n) {
2063
2063
  return n.replace(/[\n<&]/g, (e) => e == `
2064
2064
  ` ? "<br>" : e == "<" ? "&lt;" : "&amp;");
2065
2065
  }
2066
- function _n(n, e) {
2066
+ function Dn(n, e) {
2067
2067
  let t = e, i = n;
2068
2068
  return typeof i != "string" && (t = i.kind, i = i.value), t == "plaintext" ? H(i) : An.parse(i, { async: !1 });
2069
2069
  }
@@ -2095,7 +2095,7 @@ class C {
2095
2095
  Render a doc string from the server to HTML.
2096
2096
  */
2097
2097
  docToHTML(e, t = "plaintext") {
2098
- let i = $n(this.view, this.client.config.highlightLanguage, () => _n(e, t));
2098
+ let i = $n(this.view, this.client.config.highlightLanguage, () => Dn(e, t));
2099
2099
  return this.client.config.sanitizeHTML ? this.client.config.sanitizeHTML(i) : i;
2100
2100
  }
2101
2101
  /**
@@ -2158,7 +2158,7 @@ class C {
2158
2158
  }
2159
2159
  }
2160
2160
  const gt = /* @__PURE__ */ ke.fromClass(C);
2161
- class Dn {
2161
+ class Ln {
2162
2162
  /**
2163
2163
  The constructor, as called by the client when creating a
2164
2164
  workspace.
@@ -2220,7 +2220,7 @@ class Dn {
2220
2220
  return Promise.resolve(t ? t.getView() : null);
2221
2221
  }
2222
2222
  }
2223
- class zn {
2223
+ class _n {
2224
2224
  constructor(e, t, i, r, s) {
2225
2225
  this.uri = e, this.languageId = t, this.version = i, this.doc = r, this.view = s;
2226
2226
  }
@@ -2228,7 +2228,7 @@ class zn {
2228
2228
  return this.view;
2229
2229
  }
2230
2230
  }
2231
- class En extends Dn {
2231
+ class zn extends Ln {
2232
2232
  constructor() {
2233
2233
  super(...arguments), this.files = [], this.fileVersions = /* @__PURE__ */ Object.create(null);
2234
2234
  }
@@ -2250,7 +2250,7 @@ class En extends Dn {
2250
2250
  openFile(e, t, i) {
2251
2251
  if (this.getFile(e))
2252
2252
  throw new Error("Default workspace implementation doesn't support multiple views on the same file");
2253
- let r = new zn(e, t, this.nextFileVersion(e), i.state.doc, i);
2253
+ let r = new _n(e, t, this.nextFileVersion(e), i.state.doc, i);
2254
2254
  this.files.push(r), this.client.didOpen(r);
2255
2255
  }
2256
2256
  closeFile(e) {
@@ -2258,7 +2258,7 @@ class En extends Dn {
2258
2258
  t && (this.files = this.files.filter((i) => i != t), this.client.didClose(e));
2259
2259
  }
2260
2260
  }
2261
- const Ln = /* @__PURE__ */ le.baseTheme({
2261
+ const En = /* @__PURE__ */ le.baseTheme({
2262
2262
  ".cm-lsp-documentation": {
2263
2263
  padding: "0 7px",
2264
2264
  "& p, & pre": {
@@ -2411,11 +2411,11 @@ class Mn {
2411
2411
  let i = this.client.workspace.getFile(e), r = i == null ? void 0 : i.getView(), s = r && C.get(r);
2412
2412
  return s ? t.composeDesc(s.unsyncedChanges) : t;
2413
2413
  }
2414
- mapPos(e, t, i = -1, r = ze.Simple) {
2414
+ mapPos(e, t, i = -1, r = _e.Simple) {
2415
2415
  let s = this.getMapping(e);
2416
2416
  return s ? s.mapPos(t, i, r) : t;
2417
2417
  }
2418
- mapPosition(e, t, i = -1, r = ze.Simple) {
2418
+ mapPosition(e, t, i = -1, r = _e.Simple) {
2419
2419
  let s = this.startDocs.get(e);
2420
2420
  if (!s)
2421
2421
  throw new Error("Cannot map from a file that's not in the workspace");
@@ -2458,7 +2458,7 @@ class Bn {
2458
2458
  */
2459
2459
  constructor(e = {}) {
2460
2460
  var t;
2461
- if (this.config = e, this.transport = null, this.nextReqID = 0, this.requests = [], this.activeMappings = [], this.serverCapabilities = null, this.supportSync = -1, this.extensions = [], this.receiveMessage = this.receiveMessage.bind(this), this.initializing = new Promise((i, r) => this.init = { resolve: i, reject: r }), this.timeout = (t = e.timeout) !== null && t !== void 0 ? t : 3e3, this.workspace = e.workspace ? e.workspace(this) : new En(this), e.extensions)
2461
+ if (this.config = e, this.transport = null, this.nextReqID = 0, this.requests = [], this.activeMappings = [], this.serverCapabilities = null, this.supportSync = -1, this.extensions = [], this.receiveMessage = this.receiveMessage.bind(this), this.initializing = new Promise((i, r) => this.init = { resolve: i, reject: r }), this.timeout = (t = e.timeout) !== null && t !== void 0 ? t : 3e3, this.workspace = e.workspace ? e.workspace(this) : new zn(this), e.extensions)
2462
2462
  for (let i of e.extensions)
2463
2463
  Array.isArray(i) || i.extension ? this.extensions.push(i) : i.editorExtension && this.extensions.push(i.editorExtension);
2464
2464
  }
@@ -2521,7 +2521,7 @@ class Bn {
2521
2521
  plugin(e, t) {
2522
2522
  return [
2523
2523
  gt.of({ client: this, uri: e, languageID: t }),
2524
- Ln,
2524
+ En,
2525
2525
  this.extensions
2526
2526
  ];
2527
2527
  }
@@ -2708,10 +2708,10 @@ function Hn(n) {
2708
2708
  function Nn(n = {}) {
2709
2709
  let e;
2710
2710
  if (n.override)
2711
- e = [Ee({ override: [Ze] })];
2711
+ e = [ze({ override: [Ze] })];
2712
2712
  else {
2713
2713
  let t = [{ autocomplete: Ze }];
2714
- e = [Ee(), Pt.languageData.of(() => t)];
2714
+ e = [ze(), Pt.languageData.of(() => t)];
2715
2715
  }
2716
2716
  return n.validFor && e.push(kt.of({ validFor: n.validFor })), e;
2717
2717
  }
@@ -2761,7 +2761,7 @@ function xt(n, e) {
2761
2761
  }
2762
2762
  function bt(n, e, t) {
2763
2763
  return (i, r, s, o) => {
2764
- let l = zt(i.state, e, s, o), u = [];
2764
+ let l = _t(i.state, e, s, o), u = [];
2765
2765
  for (let { from: a, to: c, text: d } of n) {
2766
2766
  if (t) {
2767
2767
  if (t.touchesRange(a, c))
@@ -2802,7 +2802,7 @@ const Ze = (n) => {
2802
2802
  type: h.kind && Un[h.kind]
2803
2803
  }, v = (k = h.insertTextFormat) !== null && k !== void 0 ? k : (y = s.itemDefaults) === null || y === void 0 ? void 0 : y.insertTextFormat;
2804
2804
  if (h.commitCharacters && h.commitCharacters != c && (m.commitCharacters = h.commitCharacters), h.detail && (m.detail = h.detail), h.sortText && (m.sortText = h.sortText), v == 2)
2805
- m.apply = (T, P, $, M) => Dt(Hn(S))(T, P, $, M);
2805
+ m.apply = (T, P, $, M) => Lt(Hn(S))(T, P, $, M);
2806
2806
  else if (h.additionalTextEdits) {
2807
2807
  let T = [];
2808
2808
  for (let P of h.additionalTextEdits) {
@@ -2930,7 +2930,7 @@ function Yn(n, e) {
2930
2930
  const ei = (n) => {
2931
2931
  const e = C.get(n);
2932
2932
  return e ? (e.client.sync(), e.client.withMapping((t) => Yn(e, {
2933
- tabSize: _t(n.state),
2933
+ tabSize: Dt(n.state),
2934
2934
  insertSpaces: n.state.facet(At).indexOf(" ") < 0
2935
2935
  }).then((i) => {
2936
2936
  if (!i)
@@ -3214,20 +3214,20 @@ const vi = (n) => {
3214
3214
  }, (r) => e.reportError("Finding references failed", r)).finally(() => {
3215
3215
  i || t.destroy();
3216
3216
  }), !0;
3217
- }, ge = (n) => n.state.field(me, !1) ? (n.dispatch({ effects: De.of(null) }), !0) : !1, me = /* @__PURE__ */ be.define({
3217
+ }, ge = (n) => n.state.field(me, !1) ? (n.dispatch({ effects: Le.of(null) }), !0) : !1, me = /* @__PURE__ */ be.define({
3218
3218
  create() {
3219
3219
  return null;
3220
3220
  },
3221
3221
  update(n, e) {
3222
3222
  for (let t of e.effects)
3223
- if (t.is(De))
3223
+ if (t.is(Le))
3224
3224
  return t.value;
3225
3225
  return n;
3226
3226
  },
3227
3227
  provide: (n) => Ke.from(n)
3228
- }), De = /* @__PURE__ */ I.define();
3228
+ }), Le = /* @__PURE__ */ I.define();
3229
3229
  function yi(n, e, t) {
3230
- let i = Si(e, t), r = n.state.field(me, !1) === void 0 ? I.appendConfig.of(me.init(() => i)) : De.of(i);
3230
+ let i = Si(e, t), r = n.state.field(me, !1) === void 0 ? I.appendConfig.of(me.init(() => i)) : Le.of(i);
3231
3231
  n.dispatch({ effects: r });
3232
3232
  }
3233
3233
  function Si(n, e) {
@@ -3374,15 +3374,18 @@ function Ai() {
3374
3374
  ];
3375
3375
  }
3376
3376
  let X;
3377
- function qi() {
3377
+ const Di = "tsgo.wasm";
3378
+ function Ii() {
3378
3379
  if (X) return X;
3379
3380
  const n = new Worker(new URL(
3380
3381
  /* @vite-ignore */
3381
- "/assets/tsgo-worker-BDQ8_wHH.js",
3382
+ "" + new URL("assets/tsgo-worker-Dfn0gu8J.js", import.meta.url).href,
3382
3383
  import.meta.url
3383
3384
  ), {
3384
3385
  type: "module"
3385
- }), e = /* @__PURE__ */ new Set();
3386
+ });
3387
+ n.postMessage({ wasm: new URL(Di, import.meta.url).href });
3388
+ const e = /* @__PURE__ */ new Set();
3386
3389
  n.onmessage = (i) => {
3387
3390
  var r, s;
3388
3391
  if (typeof ((r = i.data) == null ? void 0 : r.lsp) == "string")
@@ -3403,6 +3406,6 @@ function qi() {
3403
3406
  }).connect(t), X;
3404
3407
  }
3405
3408
  export {
3406
- qi as typescriptLanguageServer
3409
+ Ii as typescriptLanguageServer
3407
3410
  };
3408
- //# sourceMappingURL=typescript-language-server-oTU8pKzb.js.map
3411
+ //# sourceMappingURL=typescript-language-server-ZZGbUVy4.js.map