@sourcegraph/amp 0.0.1749168111-g4b82d4 → 0.0.1749196899-g16ba82

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 (44) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/{client-DQvLVO0y.js → client-D1Pmx669.js} +2 -2
  3. package/dist/{client-DQvLVO0y.js.map → client-D1Pmx669.js.map} +1 -1
  4. package/dist/{console-B2SF1aqQ.js → console-DZmALLuA.js} +14 -14
  5. package/dist/{console-B2SF1aqQ.js.map → console-DZmALLuA.js.map} +1 -1
  6. package/dist/{create_file.node-CTYL8XSm.js → create_file.node-CygrebBY.js} +2 -2
  7. package/dist/{create_file.node-CTYL8XSm.js.map → create_file.node-CygrebBY.js.map} +1 -1
  8. package/dist/{edit_file.node-Bsj3aCak.js → edit_file.node-D_cMkiLI.js} +3 -3
  9. package/dist/{edit_file.node-Bsj3aCak.js.map → edit_file.node-D_cMkiLI.js.map} +1 -1
  10. package/dist/{executable-DdVPivLU.js → executable-C8qYZU1W.js} +2 -2
  11. package/dist/{executable-DdVPivLU.js.map → executable-C8qYZU1W.js.map} +1 -1
  12. package/dist/{files-DgmPJSHS.js → files--h2VjD8F.js} +2 -2
  13. package/dist/{files-DgmPJSHS.js.map → files--h2VjD8F.js.map} +1 -1
  14. package/dist/{glob.node-CvxhbXXV.js → glob.node-AB34HaNl.js} +4 -4
  15. package/dist/{glob.node-CvxhbXXV.js.map → glob.node-AB34HaNl.js.map} +1 -1
  16. package/dist/{index-DG5uxXfG.js → index-nQBDDlvh.js} +2 -2
  17. package/dist/{index-DG5uxXfG.js.map → index-nQBDDlvh.js.map} +1 -1
  18. package/dist/{list_directory.node-D7kWIPfS.js → list_directory.node-DZamBwOx.js} +2 -2
  19. package/dist/{list_directory.node-D7kWIPfS.js.map → list_directory.node-DZamBwOx.js.map} +1 -1
  20. package/dist/{load-profile-DD55GCpN.js → load-profile-DzDzDOIq.js} +2 -2
  21. package/dist/{load-profile-DD55GCpN.js.map → load-profile-DzDzDOIq.js.map} +1 -1
  22. package/dist/{main-B2k3Zpl9.js → main-WXbdYG4Z.js} +16 -16
  23. package/dist/{main-B2k3Zpl9.js.map → main-WXbdYG4Z.js.map} +1 -1
  24. package/dist/{node-BHadfrnF.js → node-B9XNCq_w.js} +2 -2
  25. package/dist/{node-BHadfrnF.js.map → node-B9XNCq_w.js.map} +1 -1
  26. package/dist/{node-CDbBRzSe.js → node-CBRPqFin.js} +403 -402
  27. package/dist/node-CBRPqFin.js.map +1 -0
  28. package/dist/{node-CBGz4YST.js → node-CUCcBUhU.js} +4 -4
  29. package/dist/{node-CBGz4YST.js.map → node-CUCcBUhU.js.map} +1 -1
  30. package/dist/{node-CmvXwfyv.js → node-Cs3K2AKs.js} +3 -3
  31. package/dist/{node-CmvXwfyv.js.map → node-Cs3K2AKs.js.map} +1 -1
  32. package/dist/{node-BcF9KV_p.js → node-D2Ho0W-v.js} +3 -3
  33. package/dist/{node-BcF9KV_p.js.map → node-D2Ho0W-v.js.map} +1 -1
  34. package/dist/{node-DExO0xPV.js → node-SvjAOtkw.js} +2 -2
  35. package/dist/{node-DExO0xPV.js.map → node-SvjAOtkw.js.map} +1 -1
  36. package/dist/{read_file.node-CpfHdJYY.js → read_file.node-CveQp78z.js} +2 -2
  37. package/dist/{read_file.node-CpfHdJYY.js.map → read_file.node-CveQp78z.js.map} +1 -1
  38. package/dist/{stdio-BBqbZueR.js → stdio-CRvROLK4.js} +3 -3
  39. package/dist/{stdio-BBqbZueR.js.map → stdio-CRvROLK4.js.map} +1 -1
  40. package/dist/storybook.js +1 -1
  41. package/dist/{undo_edit.node-DDFebFdr.js → undo_edit.node-C3I02TEE.js} +2 -2
  42. package/dist/{undo_edit.node-DDFebFdr.js.map → undo_edit.node-C3I02TEE.js.map} +1 -1
  43. package/package.json +1 -1
  44. package/dist/node-CDbBRzSe.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import * as ce from "node:os";
3
3
  import ee, { resolve as ue } from "node:path";
4
- import { aT as fe, aU as de, C as _e, aV as ne, aW as pe, aX as ge, aI as ae, aQ as ve, aH as me, aC as be, O as se } from "./console-B2SF1aqQ.js";
5
- import { loadProfileEnvironmentVariables as Se } from "./load-profile-DD55GCpN.js";
4
+ import { aT as fe, aU as de, C as _e, aV as ne, aW as pe, aX as ge, aI as ae, aQ as ve, aH as me, aC as be, O as se } from "./console-DZmALLuA.js";
5
+ import { loadProfileEnvironmentVariables as Se } from "./load-profile-DzDzDOIq.js";
6
6
  const Ce = [
7
7
  "ls",
8
8
  "dir",
@@ -191,14 +191,14 @@ function le(x, j) {
191
191
  if (!x || we.includes(x) || (x.endsWith(ee.sep) && (x = x.slice(0, -1)), j.includes(x)))
192
192
  return !1;
193
193
  if (ee.isAbsolute(x))
194
- return !j.some((W) => Be(W, x));
194
+ return !j.some((F) => Be(F, x));
195
195
  const O = x.split("/");
196
196
  let P = 0;
197
- for (const W of O)
198
- if (W === "..") {
197
+ for (const F of O)
198
+ if (F === "..") {
199
199
  if (P--, P < 0)
200
200
  return !0;
201
- } else W !== "" && W !== "." && P++;
201
+ } else F !== "" && F !== "." && P++;
202
202
  return !1;
203
203
  }
204
204
  function Be(x, j) {
@@ -220,7 +220,7 @@ function Ee(x, j = !1) {
220
220
  };
221
221
  if (j || typeof x == "string")
222
222
  return O;
223
- const P = typeof x.program == "string" ? x.program.toLowerCase() : "", W = x.arguments.filter((U) => typeof U == "string").join(" "), X = `${P} ${W}`.toLowerCase();
223
+ const P = typeof x.program == "string" ? x.program.toLowerCase() : "", F = x.arguments.filter((U) => typeof U == "string").join(" "), X = `${P} ${F}`.toLowerCase();
224
224
  return P.includes("bazel") || X.includes("bazel") || P === "ibazel" ? {
225
225
  ...O,
226
226
  absolutePaths: !1
@@ -235,8 +235,8 @@ function Ae(x, j, O) {
235
235
  } catch (t) {
236
236
  _e.warn("Failed to parse command", { cmd: x }, t), P = [x];
237
237
  }
238
- const W = O?.config?.["commands.allowlist"] || [], X = O?.config?.["commands.strict"] ?? !1;
239
- if (W.includes("*"))
238
+ const F = O?.config?.["commands.allowlist"] || [], X = O?.config?.["commands.strict"] ?? !1;
239
+ if (F.includes("*"))
240
240
  return {
241
241
  requiresConfirmation: !1,
242
242
  parts: P.map((t) => ({ command: t, requiresConfirmation: !1 }))
@@ -244,26 +244,27 @@ function Ae(x, j, O) {
244
244
  const U = P.map((t) => {
245
245
  if (typeof t == "string")
246
246
  return { command: t, requiresConfirmation: !0 };
247
- const l = Ee(t, X), d = t.arguments.some((h) => typeof h != "string");
248
- function _(h) {
249
- return h === ne ? "<dynamic>" : h;
247
+ const l = Ee(t, X), d = t.arguments.some((a) => typeof a != "string");
248
+ function _(a) {
249
+ return a === ne ? "<dynamic>" : a;
250
250
  }
251
251
  const n = `${_(t.program)} ${t.arguments.map(_).join(" ")}`;
252
252
  if (!d) {
253
- for (const h of W)
254
- if (n === h)
253
+ for (const a of F)
254
+ if (n === a)
255
255
  return { command: t, requiresConfirmation: !1 };
256
256
  }
257
257
  if (Ce.includes(String(t.program)))
258
258
  return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
259
- for (let h of [...ye, ...W]) {
260
- h.endsWith(" *") && (h = h.slice(0, -2));
261
- const a = " * ";
262
- if (h.includes(a) && !h.startsWith(a)) {
263
- const c = h.split(a).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
264
- if (new RegExp(`^${c.join(" .* ")}(\\s.*)?$`).test(n))
259
+ const c = X ? F : [...ye, ...F];
260
+ for (let a of c) {
261
+ a.endsWith(" *") && (a = a.slice(0, -2));
262
+ const h = " * ";
263
+ if (a.includes(h) && !a.startsWith(h)) {
264
+ const u = a.split(h).map((r) => r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
265
+ if (new RegExp(`^${u.join(" .* ")}(\\s.*)?$`).test(n))
265
266
  return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
266
- } else if (n === h || n.startsWith(h + " "))
267
+ } else if (n === a || n.startsWith(a + " "))
267
268
  return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
268
269
  }
269
270
  return { command: t, requiresConfirmation: !0 };
@@ -286,22 +287,22 @@ function ke() {
286
287
  }
287
288
  set maxLength(a) {
288
289
  if (this._maxLength === a) return;
289
- const c = new Array(a);
290
- for (let u = 0; u < Math.min(a, this.length); u++) c[u] = this._array[this._getCyclicIndex(u)];
291
- this._array = c, this._maxLength = a, this._startIndex = 0;
290
+ const h = new Array(a);
291
+ for (let u = 0; u < Math.min(a, this.length); u++) h[u] = this._array[this._getCyclicIndex(u)];
292
+ this._array = h, this._maxLength = a, this._startIndex = 0;
292
293
  }
293
294
  get length() {
294
295
  return this._length;
295
296
  }
296
297
  set length(a) {
297
- if (a > this._length) for (let c = this._length; c < a; c++) this._array[c] = void 0;
298
+ if (a > this._length) for (let h = this._length; h < a; h++) this._array[h] = void 0;
298
299
  this._length = a;
299
300
  }
300
301
  get(a) {
301
302
  return this._array[this._getCyclicIndex(a)];
302
303
  }
303
- set(a, c) {
304
- this._array[this._getCyclicIndex(a)] = c;
304
+ set(a, h) {
305
+ this._array[this._getCyclicIndex(a)] = h;
305
306
  }
306
307
  push(a) {
307
308
  this._array[this._getCyclicIndex(this._length)] = a, this._length === this._maxLength ? (this._startIndex = ++this._startIndex % this._maxLength, this.onTrimEmitter.fire(1)) : this._length++;
@@ -316,10 +317,10 @@ function ke() {
316
317
  pop() {
317
318
  return this._array[this._getCyclicIndex(this._length-- - 1)];
318
319
  }
319
- splice(a, c, ...u) {
320
- if (c) {
321
- for (let e = a; e < this._length - c; e++) this._array[this._getCyclicIndex(e)] = this._array[this._getCyclicIndex(e + c)];
322
- this._length -= c, this.onDeleteEmitter.fire({ index: a, amount: c });
320
+ splice(a, h, ...u) {
321
+ if (h) {
322
+ for (let e = a; e < this._length - h; e++) this._array[this._getCyclicIndex(e)] = this._array[this._getCyclicIndex(e + h)];
323
+ this._length -= h, this.onDeleteEmitter.fire({ index: a, amount: h });
323
324
  }
324
325
  for (let e = this._length - 1; e >= a; e--) this._array[this._getCyclicIndex(e + u.length)] = this._array[this._getCyclicIndex(e)];
325
326
  for (let e = 0; e < u.length; e++) this._array[this._getCyclicIndex(a + e)] = u[e];
@@ -331,15 +332,15 @@ function ke() {
331
332
  trimStart(a) {
332
333
  a > this._length && (a = this._length), this._startIndex += a, this._length -= a, this.onTrimEmitter.fire(a);
333
334
  }
334
- shiftElements(a, c, u) {
335
- if (!(c <= 0)) {
335
+ shiftElements(a, h, u) {
336
+ if (!(h <= 0)) {
336
337
  if (a < 0 || a >= this._length) throw new Error("start argument out of range");
337
338
  if (a + u < 0) throw new Error("Cannot shift elements in list beyond index 0");
338
339
  if (u > 0) {
339
- for (let r = c - 1; r >= 0; r--) this.set(a + r + u, this.get(a + r));
340
- const e = a + c + u - this._length;
340
+ for (let r = h - 1; r >= 0; r--) this.set(a + r + u, this.get(a + r));
341
+ const e = a + h + u - this._length;
341
342
  if (e > 0) for (this._length += e; this._length > this._maxLength; ) this._length--, this._startIndex++, this.onTrimEmitter.fire(1);
342
- } else for (let e = 0; e < c; e++) this.set(a + e + u, this.get(a + e));
343
+ } else for (let e = 0; e < h; e++) this.set(a + e + u, this.get(a + e));
343
344
  }
344
345
  }
345
346
  _getCyclicIndex(a) {
@@ -351,12 +352,12 @@ function ke() {
351
352
  Object.defineProperty(t, "__esModule", { value: !0 }), t.clone = void 0, t.clone = function l(d, _ = 5) {
352
353
  if (typeof d != "object") return d;
353
354
  const n = Array.isArray(d) ? [] : {};
354
- for (const h in d) n[h] = _ <= 1 ? d[h] : d[h] && l(d[h], _ - 1);
355
+ for (const c in d) n[c] = _ <= 1 ? d[c] : d[c] && l(d[c], _ - 1);
355
356
  return n;
356
357
  };
357
358
  }, 969: (w, t, l) => {
358
359
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreTerminal = void 0;
359
- const d = l(844), _ = l(585), n = l(348), h = l(866), a = l(744), c = l(302), u = l(83), e = l(460), r = l(753), i = l(480), s = l(994), f = l(282), p = l(435), S = l(981), y = l(660);
360
+ const d = l(844), _ = l(585), n = l(348), c = l(866), a = l(744), h = l(302), u = l(83), e = l(460), r = l(753), i = l(480), s = l(994), f = l(282), p = l(435), S = l(981), y = l(660);
360
361
  let C = !1;
361
362
  class k extends d.Disposable {
362
363
  get onScroll() {
@@ -380,7 +381,7 @@ function ke() {
380
381
  for (const B in E) this.optionsService.options[B] = E[B];
381
382
  }
382
383
  constructor(E) {
383
- super(), this._windowsWrappingHeuristics = this.register(new d.MutableDisposable()), this._onBinary = this.register(new e.EventEmitter()), this.onBinary = this._onBinary.event, this._onData = this.register(new e.EventEmitter()), this.onData = this._onData.event, this._onLineFeed = this.register(new e.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onResize = this.register(new e.EventEmitter()), this.onResize = this._onResize.event, this._onWriteParsed = this.register(new e.EventEmitter()), this.onWriteParsed = this._onWriteParsed.event, this._onScroll = this.register(new e.EventEmitter()), this._instantiationService = new n.InstantiationService(), this.optionsService = this.register(new c.OptionsService(E)), this._instantiationService.setService(_.IOptionsService, this.optionsService), this._bufferService = this.register(this._instantiationService.createInstance(a.BufferService)), this._instantiationService.setService(_.IBufferService, this._bufferService), this._logService = this.register(this._instantiationService.createInstance(h.LogService)), this._instantiationService.setService(_.ILogService, this._logService), this.coreService = this.register(this._instantiationService.createInstance(u.CoreService)), this._instantiationService.setService(_.ICoreService, this.coreService), this.coreMouseService = this.register(this._instantiationService.createInstance(r.CoreMouseService)), this._instantiationService.setService(_.ICoreMouseService, this.coreMouseService), this.unicodeService = this.register(this._instantiationService.createInstance(i.UnicodeService)), this._instantiationService.setService(_.IUnicodeService, this.unicodeService), this._charsetService = this._instantiationService.createInstance(s.CharsetService), this._instantiationService.setService(_.ICharsetService, this._charsetService), this._oscLinkService = this._instantiationService.createInstance(y.OscLinkService), this._instantiationService.setService(_.IOscLinkService, this._oscLinkService), this._inputHandler = this.register(new p.InputHandler(this._bufferService, this._charsetService, this.coreService, this._logService, this.optionsService, this._oscLinkService, this.coreMouseService, this.unicodeService)), this.register((0, e.forwardEvent)(this._inputHandler.onLineFeed, this._onLineFeed)), this.register(this._inputHandler), this.register((0, e.forwardEvent)(this._bufferService.onResize, this._onResize)), this.register((0, e.forwardEvent)(this.coreService.onData, this._onData)), this.register((0, e.forwardEvent)(this.coreService.onBinary, this._onBinary)), this.register(this.coreService.onRequestScrollToBottom(() => this.scrollToBottom())), this.register(this.coreService.onUserInput(() => this._writeBuffer.handleUserInput())), this.register(this.optionsService.onMultipleOptionChange(["windowsMode", "windowsPty"], () => this._handleWindowsPtyOptionChange())), this.register(this._bufferService.onScroll((B) => {
384
+ super(), this._windowsWrappingHeuristics = this.register(new d.MutableDisposable()), this._onBinary = this.register(new e.EventEmitter()), this.onBinary = this._onBinary.event, this._onData = this.register(new e.EventEmitter()), this.onData = this._onData.event, this._onLineFeed = this.register(new e.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onResize = this.register(new e.EventEmitter()), this.onResize = this._onResize.event, this._onWriteParsed = this.register(new e.EventEmitter()), this.onWriteParsed = this._onWriteParsed.event, this._onScroll = this.register(new e.EventEmitter()), this._instantiationService = new n.InstantiationService(), this.optionsService = this.register(new h.OptionsService(E)), this._instantiationService.setService(_.IOptionsService, this.optionsService), this._bufferService = this.register(this._instantiationService.createInstance(a.BufferService)), this._instantiationService.setService(_.IBufferService, this._bufferService), this._logService = this.register(this._instantiationService.createInstance(c.LogService)), this._instantiationService.setService(_.ILogService, this._logService), this.coreService = this.register(this._instantiationService.createInstance(u.CoreService)), this._instantiationService.setService(_.ICoreService, this.coreService), this.coreMouseService = this.register(this._instantiationService.createInstance(r.CoreMouseService)), this._instantiationService.setService(_.ICoreMouseService, this.coreMouseService), this.unicodeService = this.register(this._instantiationService.createInstance(i.UnicodeService)), this._instantiationService.setService(_.IUnicodeService, this.unicodeService), this._charsetService = this._instantiationService.createInstance(s.CharsetService), this._instantiationService.setService(_.ICharsetService, this._charsetService), this._oscLinkService = this._instantiationService.createInstance(y.OscLinkService), this._instantiationService.setService(_.IOscLinkService, this._oscLinkService), this._inputHandler = this.register(new p.InputHandler(this._bufferService, this._charsetService, this.coreService, this._logService, this.optionsService, this._oscLinkService, this.coreMouseService, this.unicodeService)), this.register((0, e.forwardEvent)(this._inputHandler.onLineFeed, this._onLineFeed)), this.register(this._inputHandler), this.register((0, e.forwardEvent)(this._bufferService.onResize, this._onResize)), this.register((0, e.forwardEvent)(this.coreService.onData, this._onData)), this.register((0, e.forwardEvent)(this.coreService.onBinary, this._onBinary)), this.register(this.coreService.onRequestScrollToBottom(() => this.scrollToBottom())), this.register(this.coreService.onUserInput(() => this._writeBuffer.handleUserInput())), this.register(this.optionsService.onMultipleOptionChange(["windowsMode", "windowsPty"], () => this._handleWindowsPtyOptionChange())), this.register(this._bufferService.onScroll((B) => {
384
385
  this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
385
386
  })), this.register(this._inputHandler.onScroll((B) => {
386
387
  this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
@@ -490,7 +491,7 @@ function ke() {
490
491
  };
491
492
  };
492
493
  Object.defineProperty(t, "__esModule", { value: !0 }), t.InputHandler = t.WindowsOptionsReportType = void 0;
493
- const n = l(584), h = l(116), a = l(15), c = l(844), u = l(482), e = l(437), r = l(460), i = l(643), s = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), k = l(941), $ = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
494
+ const n = l(584), c = l(116), a = l(15), h = l(844), u = l(482), e = l(437), r = l(460), i = l(643), s = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), k = l(941), $ = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
494
495
  function B(H, o) {
495
496
  if (H > 24) return o.setWinLines || !1;
496
497
  switch (H) {
@@ -546,12 +547,12 @@ function ke() {
546
547
  H[H.GET_WIN_SIZE_PIXELS = 0] = "GET_WIN_SIZE_PIXELS", H[H.GET_CELL_SIZE_PIXELS = 1] = "GET_CELL_SIZE_PIXELS";
547
548
  })(T || (t.WindowsOptionsReportType = T = {}));
548
549
  let G = 0;
549
- class V extends c.Disposable {
550
+ class V extends h.Disposable {
550
551
  getAttrData() {
551
552
  return this._curAttrData;
552
553
  }
553
554
  constructor(o, m, g, b, A, D, I, N, z = new a.EscapeSequenceParser()) {
554
- super(), this._bufferService = o, this._charsetService = m, this._coreService = g, this._logService = b, this._optionsService = A, this._oscLinkService = D, this._coreMouseService = I, this._unicodeService = N, this._parser = z, this._parseBuffer = new Uint32Array(4096), this._stringDecoder = new u.StringToUtf32(), this._utf8Decoder = new u.Utf8ToUtf32(), this._workCell = new s.CellData(), this._windowTitle = "", this._iconName = "", this._windowTitleStack = [], this._iconNameStack = [], this._curAttrData = e.DEFAULT_ATTR_DATA.clone(), this._eraseAttrDataInternal = e.DEFAULT_ATTR_DATA.clone(), this._onRequestBell = this.register(new r.EventEmitter()), this.onRequestBell = this._onRequestBell.event, this._onRequestRefreshRows = this.register(new r.EventEmitter()), this.onRequestRefreshRows = this._onRequestRefreshRows.event, this._onRequestReset = this.register(new r.EventEmitter()), this.onRequestReset = this._onRequestReset.event, this._onRequestSendFocus = this.register(new r.EventEmitter()), this.onRequestSendFocus = this._onRequestSendFocus.event, this._onRequestSyncScrollBar = this.register(new r.EventEmitter()), this.onRequestSyncScrollBar = this._onRequestSyncScrollBar.event, this._onRequestWindowsOptionsReport = this.register(new r.EventEmitter()), this.onRequestWindowsOptionsReport = this._onRequestWindowsOptionsReport.event, this._onA11yChar = this.register(new r.EventEmitter()), this.onA11yChar = this._onA11yChar.event, this._onA11yTab = this.register(new r.EventEmitter()), this.onA11yTab = this._onA11yTab.event, this._onCursorMove = this.register(new r.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onLineFeed = this.register(new r.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onScroll = this.register(new r.EventEmitter()), this.onScroll = this._onScroll.event, this._onTitleChange = this.register(new r.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onColor = this.register(new r.EventEmitter()), this.onColor = this._onColor.event, this._parseStack = { paused: !1, cursorStartX: 0, cursorStartY: 0, decodedLength: 0, position: 0 }, this._specialColors = [256, 257, 258], this.register(this._parser), this._dirtyRowTracker = new F(this._bufferService), this._activeBuffer = this._bufferService.buffer, this.register(this._bufferService.buffers.onBufferActivate((v) => this._activeBuffer = v.activeBuffer)), this._parser.setCsiHandlerFallback((v, M) => {
555
+ super(), this._bufferService = o, this._charsetService = m, this._coreService = g, this._logService = b, this._optionsService = A, this._oscLinkService = D, this._coreMouseService = I, this._unicodeService = N, this._parser = z, this._parseBuffer = new Uint32Array(4096), this._stringDecoder = new u.StringToUtf32(), this._utf8Decoder = new u.Utf8ToUtf32(), this._workCell = new s.CellData(), this._windowTitle = "", this._iconName = "", this._windowTitleStack = [], this._iconNameStack = [], this._curAttrData = e.DEFAULT_ATTR_DATA.clone(), this._eraseAttrDataInternal = e.DEFAULT_ATTR_DATA.clone(), this._onRequestBell = this.register(new r.EventEmitter()), this.onRequestBell = this._onRequestBell.event, this._onRequestRefreshRows = this.register(new r.EventEmitter()), this.onRequestRefreshRows = this._onRequestRefreshRows.event, this._onRequestReset = this.register(new r.EventEmitter()), this.onRequestReset = this._onRequestReset.event, this._onRequestSendFocus = this.register(new r.EventEmitter()), this.onRequestSendFocus = this._onRequestSendFocus.event, this._onRequestSyncScrollBar = this.register(new r.EventEmitter()), this.onRequestSyncScrollBar = this._onRequestSyncScrollBar.event, this._onRequestWindowsOptionsReport = this.register(new r.EventEmitter()), this.onRequestWindowsOptionsReport = this._onRequestWindowsOptionsReport.event, this._onA11yChar = this.register(new r.EventEmitter()), this.onA11yChar = this._onA11yChar.event, this._onA11yTab = this.register(new r.EventEmitter()), this.onA11yTab = this._onA11yTab.event, this._onCursorMove = this.register(new r.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onLineFeed = this.register(new r.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onScroll = this.register(new r.EventEmitter()), this.onScroll = this._onScroll.event, this._onTitleChange = this.register(new r.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onColor = this.register(new r.EventEmitter()), this.onColor = this._onColor.event, this._parseStack = { paused: !1, cursorStartX: 0, cursorStartY: 0, decodedLength: 0, position: 0 }, this._specialColors = [256, 257, 258], this.register(this._parser), this._dirtyRowTracker = new W(this._bufferService), this._activeBuffer = this._bufferService.buffer, this.register(this._bufferService.buffers.onBufferActivate((v) => this._activeBuffer = v.activeBuffer)), this._parser.setCsiHandlerFallback((v, M) => {
555
556
  this._logService.debug("Unknown CSI code: ", { identifier: this._parser.identToString(v), params: M.toArray() });
556
557
  }), this._parser.setEscHandlerFallback((v) => {
557
558
  this._logService.debug("Unknown ESC code: ", { identifier: this._parser.identToString(v) });
@@ -562,7 +563,7 @@ function ke() {
562
563
  }), this._parser.setDcsHandlerFallback((v, M, L) => {
563
564
  M === "HOOK" && (L = L.toArray()), this._logService.debug("Unknown DCS code: ", { identifier: this._parser.identToString(v), action: M, payload: L });
564
565
  }), this._parser.setPrintHandler((v, M, L) => this.print(v, M, L)), this._parser.registerCsiHandler({ final: "@" }, (v) => this.insertChars(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "@" }, (v) => this.scrollLeft(v)), this._parser.registerCsiHandler({ final: "A" }, (v) => this.cursorUp(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "A" }, (v) => this.scrollRight(v)), this._parser.registerCsiHandler({ final: "B" }, (v) => this.cursorDown(v)), this._parser.registerCsiHandler({ final: "C" }, (v) => this.cursorForward(v)), this._parser.registerCsiHandler({ final: "D" }, (v) => this.cursorBackward(v)), this._parser.registerCsiHandler({ final: "E" }, (v) => this.cursorNextLine(v)), this._parser.registerCsiHandler({ final: "F" }, (v) => this.cursorPrecedingLine(v)), this._parser.registerCsiHandler({ final: "G" }, (v) => this.cursorCharAbsolute(v)), this._parser.registerCsiHandler({ final: "H" }, (v) => this.cursorPosition(v)), this._parser.registerCsiHandler({ final: "I" }, (v) => this.cursorForwardTab(v)), this._parser.registerCsiHandler({ final: "J" }, (v) => this.eraseInDisplay(v, !1)), this._parser.registerCsiHandler({ prefix: "?", final: "J" }, (v) => this.eraseInDisplay(v, !0)), this._parser.registerCsiHandler({ final: "K" }, (v) => this.eraseInLine(v, !1)), this._parser.registerCsiHandler({ prefix: "?", final: "K" }, (v) => this.eraseInLine(v, !0)), this._parser.registerCsiHandler({ final: "L" }, (v) => this.insertLines(v)), this._parser.registerCsiHandler({ final: "M" }, (v) => this.deleteLines(v)), this._parser.registerCsiHandler({ final: "P" }, (v) => this.deleteChars(v)), this._parser.registerCsiHandler({ final: "S" }, (v) => this.scrollUp(v)), this._parser.registerCsiHandler({ final: "T" }, (v) => this.scrollDown(v)), this._parser.registerCsiHandler({ final: "X" }, (v) => this.eraseChars(v)), this._parser.registerCsiHandler({ final: "Z" }, (v) => this.cursorBackwardTab(v)), this._parser.registerCsiHandler({ final: "`" }, (v) => this.charPosAbsolute(v)), this._parser.registerCsiHandler({ final: "a" }, (v) => this.hPositionRelative(v)), this._parser.registerCsiHandler({ final: "b" }, (v) => this.repeatPrecedingCharacter(v)), this._parser.registerCsiHandler({ final: "c" }, (v) => this.sendDeviceAttributesPrimary(v)), this._parser.registerCsiHandler({ prefix: ">", final: "c" }, (v) => this.sendDeviceAttributesSecondary(v)), this._parser.registerCsiHandler({ final: "d" }, (v) => this.linePosAbsolute(v)), this._parser.registerCsiHandler({ final: "e" }, (v) => this.vPositionRelative(v)), this._parser.registerCsiHandler({ final: "f" }, (v) => this.hVPosition(v)), this._parser.registerCsiHandler({ final: "g" }, (v) => this.tabClear(v)), this._parser.registerCsiHandler({ final: "h" }, (v) => this.setMode(v)), this._parser.registerCsiHandler({ prefix: "?", final: "h" }, (v) => this.setModePrivate(v)), this._parser.registerCsiHandler({ final: "l" }, (v) => this.resetMode(v)), this._parser.registerCsiHandler({ prefix: "?", final: "l" }, (v) => this.resetModePrivate(v)), this._parser.registerCsiHandler({ final: "m" }, (v) => this.charAttributes(v)), this._parser.registerCsiHandler({ final: "n" }, (v) => this.deviceStatus(v)), this._parser.registerCsiHandler({ prefix: "?", final: "n" }, (v) => this.deviceStatusPrivate(v)), this._parser.registerCsiHandler({ intermediates: "!", final: "p" }, (v) => this.softReset(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "q" }, (v) => this.setCursorStyle(v)), this._parser.registerCsiHandler({ final: "r" }, (v) => this.setScrollRegion(v)), this._parser.registerCsiHandler({ final: "s" }, (v) => this.saveCursor(v)), this._parser.registerCsiHandler({ final: "t" }, (v) => this.windowOptions(v)), this._parser.registerCsiHandler({ final: "u" }, (v) => this.restoreCursor(v)), this._parser.registerCsiHandler({ intermediates: "'", final: "}" }, (v) => this.insertColumns(v)), this._parser.registerCsiHandler({ intermediates: "'", final: "~" }, (v) => this.deleteColumns(v)), this._parser.registerCsiHandler({ intermediates: '"', final: "q" }, (v) => this.selectProtected(v)), this._parser.registerCsiHandler({ intermediates: "$", final: "p" }, (v) => this.requestMode(v, !0)), this._parser.registerCsiHandler({ prefix: "?", intermediates: "$", final: "p" }, (v) => this.requestMode(v, !1)), this._parser.setExecuteHandler(n.C0.BEL, () => this.bell()), this._parser.setExecuteHandler(n.C0.LF, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.VT, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.FF, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.CR, () => this.carriageReturn()), this._parser.setExecuteHandler(n.C0.BS, () => this.backspace()), this._parser.setExecuteHandler(n.C0.HT, () => this.tab()), this._parser.setExecuteHandler(n.C0.SO, () => this.shiftOut()), this._parser.setExecuteHandler(n.C0.SI, () => this.shiftIn()), this._parser.setExecuteHandler(n.C1.IND, () => this.index()), this._parser.setExecuteHandler(n.C1.NEL, () => this.nextLine()), this._parser.setExecuteHandler(n.C1.HTS, () => this.tabSet()), this._parser.registerOscHandler(0, new y.OscHandler((v) => (this.setTitle(v), this.setIconName(v), !0))), this._parser.registerOscHandler(1, new y.OscHandler((v) => this.setIconName(v))), this._parser.registerOscHandler(2, new y.OscHandler((v) => this.setTitle(v))), this._parser.registerOscHandler(4, new y.OscHandler((v) => this.setOrReportIndexedColor(v))), this._parser.registerOscHandler(8, new y.OscHandler((v) => this.setHyperlink(v))), this._parser.registerOscHandler(10, new y.OscHandler((v) => this.setOrReportFgColor(v))), this._parser.registerOscHandler(11, new y.OscHandler((v) => this.setOrReportBgColor(v))), this._parser.registerOscHandler(12, new y.OscHandler((v) => this.setOrReportCursorColor(v))), this._parser.registerOscHandler(104, new y.OscHandler((v) => this.restoreIndexedColor(v))), this._parser.registerOscHandler(110, new y.OscHandler((v) => this.restoreFgColor(v))), this._parser.registerOscHandler(111, new y.OscHandler((v) => this.restoreBgColor(v))), this._parser.registerOscHandler(112, new y.OscHandler((v) => this.restoreCursorColor(v))), this._parser.registerEscHandler({ final: "7" }, () => this.saveCursor()), this._parser.registerEscHandler({ final: "8" }, () => this.restoreCursor()), this._parser.registerEscHandler({ final: "D" }, () => this.index()), this._parser.registerEscHandler({ final: "E" }, () => this.nextLine()), this._parser.registerEscHandler({ final: "H" }, () => this.tabSet()), this._parser.registerEscHandler({ final: "M" }, () => this.reverseIndex()), this._parser.registerEscHandler({ final: "=" }, () => this.keypadApplicationMode()), this._parser.registerEscHandler({ final: ">" }, () => this.keypadNumericMode()), this._parser.registerEscHandler({ final: "c" }, () => this.fullReset()), this._parser.registerEscHandler({ final: "n" }, () => this.setgLevel(2)), this._parser.registerEscHandler({ final: "o" }, () => this.setgLevel(3)), this._parser.registerEscHandler({ final: "|" }, () => this.setgLevel(3)), this._parser.registerEscHandler({ final: "}" }, () => this.setgLevel(2)), this._parser.registerEscHandler({ final: "~" }, () => this.setgLevel(1)), this._parser.registerEscHandler({ intermediates: "%", final: "@" }, () => this.selectDefaultCharset()), this._parser.registerEscHandler({ intermediates: "%", final: "G" }, () => this.selectDefaultCharset());
565
- for (const v in h.CHARSETS) this._parser.registerEscHandler({ intermediates: "(", final: v }, () => this.selectCharset("(" + v)), this._parser.registerEscHandler({ intermediates: ")", final: v }, () => this.selectCharset(")" + v)), this._parser.registerEscHandler({ intermediates: "*", final: v }, () => this.selectCharset("*" + v)), this._parser.registerEscHandler({ intermediates: "+", final: v }, () => this.selectCharset("+" + v)), this._parser.registerEscHandler({ intermediates: "-", final: v }, () => this.selectCharset("-" + v)), this._parser.registerEscHandler({ intermediates: ".", final: v }, () => this.selectCharset("." + v)), this._parser.registerEscHandler({ intermediates: "/", final: v }, () => this.selectCharset("/" + v));
566
+ for (const v in c.CHARSETS) this._parser.registerEscHandler({ intermediates: "(", final: v }, () => this.selectCharset("(" + v)), this._parser.registerEscHandler({ intermediates: ")", final: v }, () => this.selectCharset(")" + v)), this._parser.registerEscHandler({ intermediates: "*", final: v }, () => this.selectCharset("*" + v)), this._parser.registerEscHandler({ intermediates: "+", final: v }, () => this.selectCharset("+" + v)), this._parser.registerEscHandler({ intermediates: "-", final: v }, () => this.selectCharset("-" + v)), this._parser.registerEscHandler({ intermediates: ".", final: v }, () => this.selectCharset("." + v)), this._parser.registerEscHandler({ intermediates: "/", final: v }, () => this.selectCharset("/" + v));
566
567
  this._parser.registerEscHandler({ intermediates: "#", final: "8" }, () => this.screenAlignmentPattern()), this._parser.setErrorHandler((v) => (this._logService.error("Parsing error: ", v), v)), this._parser.registerDcsHandler({ intermediates: "$", final: "q" }, new C.DcsHandler((v, M) => this.requestStatusString(v, M)));
567
568
  }
568
569
  _preserveStack(o, m, g, b) {
@@ -895,7 +896,7 @@ function ke() {
895
896
  this._coreService.decPrivateModes.applicationCursorKeys = !0;
896
897
  break;
897
898
  case 2:
898
- this._charsetService.setgCharset(0, h.DEFAULT_CHARSET), this._charsetService.setgCharset(1, h.DEFAULT_CHARSET), this._charsetService.setgCharset(2, h.DEFAULT_CHARSET), this._charsetService.setgCharset(3, h.DEFAULT_CHARSET);
899
+ this._charsetService.setgCharset(0, c.DEFAULT_CHARSET), this._charsetService.setgCharset(1, c.DEFAULT_CHARSET), this._charsetService.setgCharset(2, c.DEFAULT_CHARSET), this._charsetService.setgCharset(3, c.DEFAULT_CHARSET);
899
900
  break;
900
901
  case 3:
901
902
  this._optionsService.rawOptions.windowOptions.setWinLines && (this._bufferService.resize(132, this._bufferService.rows), this._onRequestReset.fire());
@@ -1229,10 +1230,10 @@ function ke() {
1229
1230
  return this._logService.debug("Switching back to normal keypad."), this._coreService.decPrivateModes.applicationKeypad = !1, this._onRequestSyncScrollBar.fire(), !0;
1230
1231
  }
1231
1232
  selectDefaultCharset() {
1232
- return this._charsetService.setgLevel(0), this._charsetService.setgCharset(0, h.DEFAULT_CHARSET), !0;
1233
+ return this._charsetService.setgLevel(0), this._charsetService.setgCharset(0, c.DEFAULT_CHARSET), !0;
1233
1234
  }
1234
1235
  selectCharset(o) {
1235
- return o.length !== 2 ? (this.selectDefaultCharset(), !0) : (o[0] === "/" || this._charsetService.setgCharset($[o[0]], h.CHARSETS[o[1]] || h.DEFAULT_CHARSET), !0);
1236
+ return o.length !== 2 ? (this.selectDefaultCharset(), !0) : (o[0] === "/" || this._charsetService.setgCharset($[o[0]], c.CHARSETS[o[1]] || c.DEFAULT_CHARSET), !0);
1236
1237
  }
1237
1238
  index() {
1238
1239
  return this._restrictCursor(), this._activeBuffer.y++, this._activeBuffer.y === this._activeBuffer.scrollBottom + 1 ? (this._activeBuffer.y--, this._bufferService.scroll(this._eraseAttrData())) : this._activeBuffer.y >= this._bufferService.rows && (this._activeBuffer.y = this._bufferService.rows - 1), this._restrictCursor(), !0;
@@ -1277,7 +1278,7 @@ function ke() {
1277
1278
  }
1278
1279
  }
1279
1280
  t.InputHandler = V;
1280
- let F = class {
1281
+ let W = class {
1281
1282
  constructor(H) {
1282
1283
  this._bufferService = H, this.clearRange();
1283
1284
  }
@@ -1297,7 +1298,7 @@ function ke() {
1297
1298
  function q(H) {
1298
1299
  return 0 <= H && H < 256;
1299
1300
  }
1300
- F = d([_(0, p.IBufferService)], F);
1301
+ W = d([_(0, p.IBufferService)], W);
1301
1302
  }, 844: (w, t) => {
1302
1303
  function l(d) {
1303
1304
  for (const _ of d) _.dispose();
@@ -1370,9 +1371,9 @@ function ke() {
1370
1371
  }
1371
1372
  _process(a) {
1372
1373
  this._idleCallback = void 0;
1373
- let c = 0, u = 0, e = a.timeRemaining(), r = 0;
1374
+ let h = 0, u = 0, e = a.timeRemaining(), r = 0;
1374
1375
  for (; this._i < this._tasks.length; ) {
1375
- if (c = Date.now(), this._tasks[this._i]() || this._i++, c = Math.max(1, Date.now() - c), u = Math.max(c, u), r = a.timeRemaining(), 1.5 * u > r) return e - c < -20 && console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e - c))}ms`), void this._start();
1376
+ if (h = Date.now(), this._tasks[this._i]() || this._i++, h = Math.max(1, Date.now() - h), u = Math.max(h, u), r = a.timeRemaining(), 1.5 * u > r) return e - h < -20 && console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e - h))}ms`), void this._start();
1376
1377
  e = r;
1377
1378
  }
1378
1379
  this.clear();
@@ -1386,23 +1387,23 @@ function ke() {
1386
1387
  clearTimeout(a);
1387
1388
  }
1388
1389
  _createDeadline(a) {
1389
- const c = Date.now() + a;
1390
- return { timeRemaining: () => Math.max(0, c - Date.now()) };
1390
+ const h = Date.now() + a;
1391
+ return { timeRemaining: () => Math.max(0, h - Date.now()) };
1391
1392
  }
1392
1393
  }
1393
1394
  t.PriorityTaskQueue = n, t.IdleTaskQueue = !d.isNode && "requestIdleCallback" in window ? class extends _ {
1394
- _requestCallback(h) {
1395
- return requestIdleCallback(h);
1395
+ _requestCallback(c) {
1396
+ return requestIdleCallback(c);
1396
1397
  }
1397
- _cancelCallback(h) {
1398
- cancelIdleCallback(h);
1398
+ _cancelCallback(c) {
1399
+ cancelIdleCallback(c);
1399
1400
  }
1400
1401
  } : n, t.DebouncedIdleTask = class {
1401
1402
  constructor() {
1402
1403
  this._queue = new t.IdleTaskQueue();
1403
1404
  }
1404
- set(h) {
1405
- this._queue.clear(), this._queue.enqueue(h);
1405
+ set(c) {
1406
+ this._queue.clear(), this._queue.enqueue(c);
1406
1407
  }
1407
1408
  flush() {
1408
1409
  this._queue.flush();
@@ -1412,8 +1413,8 @@ function ke() {
1412
1413
  Object.defineProperty(t, "__esModule", { value: !0 }), t.updateWindowsModeWrappedState = void 0;
1413
1414
  const d = l(643);
1414
1415
  t.updateWindowsModeWrappedState = function(_) {
1415
- const n = _.buffer.lines.get(_.buffer.ybase + _.buffer.y - 1), h = n?.get(_.cols - 1), a = _.buffer.lines.get(_.buffer.ybase + _.buffer.y);
1416
- a && h && (a.isWrapped = h[d.CHAR_DATA_CODE_INDEX] !== d.NULL_CELL_CODE && h[d.CHAR_DATA_CODE_INDEX] !== d.WHITESPACE_CELL_CODE);
1416
+ const n = _.buffer.lines.get(_.buffer.ybase + _.buffer.y - 1), c = n?.get(_.cols - 1), a = _.buffer.lines.get(_.buffer.ybase + _.buffer.y);
1417
+ a && c && (a.isWrapped = c[d.CHAR_DATA_CODE_INDEX] !== d.NULL_CELL_CODE && c[d.CHAR_DATA_CODE_INDEX] !== d.WHITESPACE_CELL_CODE);
1417
1418
  };
1418
1419
  }, 734: (w, t) => {
1419
1420
  Object.defineProperty(t, "__esModule", { value: !0 }), t.ExtendedAttrs = t.AttributeData = void 0;
@@ -1580,8 +1581,8 @@ function ke() {
1580
1581
  set underlineVariantOffset(n) {
1581
1582
  this._ext &= 536870911, this._ext |= n << 29 & 3758096384;
1582
1583
  }
1583
- constructor(n = 0, h = 0) {
1584
- this._ext = 0, this._urlId = 0, this._ext = n, this._urlId = h;
1584
+ constructor(n = 0, c = 0) {
1585
+ this._ext = 0, this._urlId = 0, this._ext = n, this._urlId = c;
1585
1586
  }
1586
1587
  clone() {
1587
1588
  return new d(this._ext, this._urlId);
@@ -1593,10 +1594,10 @@ function ke() {
1593
1594
  t.ExtendedAttrs = d;
1594
1595
  }, 92: (w, t, l) => {
1595
1596
  Object.defineProperty(t, "__esModule", { value: !0 }), t.Buffer = t.MAX_BUFFER_SIZE = void 0;
1596
- const d = l(349), _ = l(226), n = l(734), h = l(437), a = l(634), c = l(511), u = l(643), e = l(863), r = l(116);
1597
+ const d = l(349), _ = l(226), n = l(734), c = l(437), a = l(634), h = l(511), u = l(643), e = l(863), r = l(116);
1597
1598
  t.MAX_BUFFER_SIZE = 4294967295, t.Buffer = class {
1598
1599
  constructor(i, s, f) {
1599
- this._hasScrollback = i, this._optionsService = s, this._bufferService = f, this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.tabs = {}, this.savedY = 0, this.savedX = 0, this.savedCurAttrData = h.DEFAULT_ATTR_DATA.clone(), this.savedCharset = r.DEFAULT_CHARSET, this.markers = [], this._nullCell = c.CellData.fromCharData([0, u.NULL_CELL_CHAR, u.NULL_CELL_WIDTH, u.NULL_CELL_CODE]), this._whitespaceCell = c.CellData.fromCharData([0, u.WHITESPACE_CELL_CHAR, u.WHITESPACE_CELL_WIDTH, u.WHITESPACE_CELL_CODE]), this._isClearing = !1, this._memoryCleanupQueue = new _.IdleTaskQueue(), this._memoryCleanupPosition = 0, this._cols = this._bufferService.cols, this._rows = this._bufferService.rows, this.lines = new d.CircularList(this._getCorrectBufferLength(this._rows)), this.scrollTop = 0, this.scrollBottom = this._rows - 1, this.setupTabStops();
1600
+ this._hasScrollback = i, this._optionsService = s, this._bufferService = f, this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.tabs = {}, this.savedY = 0, this.savedX = 0, this.savedCurAttrData = c.DEFAULT_ATTR_DATA.clone(), this.savedCharset = r.DEFAULT_CHARSET, this.markers = [], this._nullCell = h.CellData.fromCharData([0, u.NULL_CELL_CHAR, u.NULL_CELL_WIDTH, u.NULL_CELL_CODE]), this._whitespaceCell = h.CellData.fromCharData([0, u.WHITESPACE_CELL_CHAR, u.WHITESPACE_CELL_WIDTH, u.WHITESPACE_CELL_CODE]), this._isClearing = !1, this._memoryCleanupQueue = new _.IdleTaskQueue(), this._memoryCleanupPosition = 0, this._cols = this._bufferService.cols, this._rows = this._bufferService.rows, this.lines = new d.CircularList(this._getCorrectBufferLength(this._rows)), this.scrollTop = 0, this.scrollBottom = this._rows - 1, this.setupTabStops();
1600
1601
  }
1601
1602
  getNullCell(i) {
1602
1603
  return i ? (this._nullCell.fg = i.fg, this._nullCell.bg = i.bg, this._nullCell.extended = i.extended) : (this._nullCell.fg = 0, this._nullCell.bg = 0, this._nullCell.extended = new n.ExtendedAttrs()), this._nullCell;
@@ -1605,7 +1606,7 @@ function ke() {
1605
1606
  return i ? (this._whitespaceCell.fg = i.fg, this._whitespaceCell.bg = i.bg, this._whitespaceCell.extended = i.extended) : (this._whitespaceCell.fg = 0, this._whitespaceCell.bg = 0, this._whitespaceCell.extended = new n.ExtendedAttrs()), this._whitespaceCell;
1606
1607
  }
1607
1608
  getBlankLine(i, s) {
1608
- return new h.BufferLine(this._bufferService.cols, this.getNullCell(i), s);
1609
+ return new c.BufferLine(this._bufferService.cols, this.getNullCell(i), s);
1609
1610
  }
1610
1611
  get hasScrollback() {
1611
1612
  return this._hasScrollback && this.lines.maxLength > this._rows;
@@ -1621,7 +1622,7 @@ function ke() {
1621
1622
  }
1622
1623
  fillViewportRows(i) {
1623
1624
  if (this.lines.length === 0) {
1624
- i === void 0 && (i = h.DEFAULT_ATTR_DATA);
1625
+ i === void 0 && (i = c.DEFAULT_ATTR_DATA);
1625
1626
  let s = this._rows;
1626
1627
  for (; s--; ) this.lines.push(this.getBlankLine(i));
1627
1628
  }
@@ -1630,13 +1631,13 @@ function ke() {
1630
1631
  this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.lines = new d.CircularList(this._getCorrectBufferLength(this._rows)), this.scrollTop = 0, this.scrollBottom = this._rows - 1, this.setupTabStops();
1631
1632
  }
1632
1633
  resize(i, s) {
1633
- const f = this.getNullCell(h.DEFAULT_ATTR_DATA);
1634
+ const f = this.getNullCell(c.DEFAULT_ATTR_DATA);
1634
1635
  let p = 0;
1635
1636
  const S = this._getCorrectBufferLength(s);
1636
1637
  if (S > this.lines.maxLength && (this.lines.maxLength = S), this.lines.length > 0) {
1637
1638
  if (this._cols < i) for (let C = 0; C < this.lines.length; C++) p += +this.lines.get(C).resize(i, f);
1638
1639
  let y = 0;
1639
- if (this._rows < s) for (let C = this._rows; C < s; C++) this.lines.length < s + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new h.BufferLine(i, f)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + y + 1 ? (this.ybase--, y++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new h.BufferLine(i, f)));
1640
+ if (this._rows < s) for (let C = this._rows; C < s; C++) this.lines.length < s + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new c.BufferLine(i, f)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + y + 1 ? (this.ybase--, y++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new c.BufferLine(i, f)));
1640
1641
  else for (let C = this._rows; C > s; C--) this.lines.length > s + this.ybase && (this.lines.length > this.ybase + this.y + 1 ? this.lines.pop() : (this.ybase++, this.ydisp++));
1641
1642
  if (S < this.lines.maxLength) {
1642
1643
  const C = this.lines.length - S;
@@ -1662,20 +1663,20 @@ function ke() {
1662
1663
  this._cols !== i && (i > this._cols ? this._reflowLarger(i, s) : this._reflowSmaller(i, s));
1663
1664
  }
1664
1665
  _reflowLarger(i, s) {
1665
- const f = (0, a.reflowLargerGetLinesToRemove)(this.lines, this._cols, i, this.ybase + this.y, this.getNullCell(h.DEFAULT_ATTR_DATA));
1666
+ const f = (0, a.reflowLargerGetLinesToRemove)(this.lines, this._cols, i, this.ybase + this.y, this.getNullCell(c.DEFAULT_ATTR_DATA));
1666
1667
  if (f.length > 0) {
1667
1668
  const p = (0, a.reflowLargerCreateNewLayout)(this.lines, f);
1668
1669
  (0, a.reflowLargerApplyNewLayout)(this.lines, p.layout), this._reflowLargerAdjustViewport(i, s, p.countRemoved);
1669
1670
  }
1670
1671
  }
1671
1672
  _reflowLargerAdjustViewport(i, s, f) {
1672
- const p = this.getNullCell(h.DEFAULT_ATTR_DATA);
1673
+ const p = this.getNullCell(c.DEFAULT_ATTR_DATA);
1673
1674
  let S = f;
1674
- for (; S-- > 0; ) this.ybase === 0 ? (this.y > 0 && this.y--, this.lines.length < s && this.lines.push(new h.BufferLine(i, p))) : (this.ydisp === this.ybase && this.ydisp--, this.ybase--);
1675
+ for (; S-- > 0; ) this.ybase === 0 ? (this.y > 0 && this.y--, this.lines.length < s && this.lines.push(new c.BufferLine(i, p))) : (this.ydisp === this.ybase && this.ydisp--, this.ybase--);
1675
1676
  this.savedY = Math.max(this.savedY - f, 0);
1676
1677
  }
1677
1678
  _reflowSmaller(i, s) {
1678
- const f = this.getNullCell(h.DEFAULT_ATTR_DATA), p = [];
1679
+ const f = this.getNullCell(c.DEFAULT_ATTR_DATA), p = [];
1679
1680
  let S = 0;
1680
1681
  for (let y = this.lines.length - 1; y >= 0; y--) {
1681
1682
  let C = this.lines.get(y);
@@ -1689,17 +1690,17 @@ function ke() {
1689
1690
  G = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + T) : Math.max(0, this.lines.length - this.lines.maxLength + T);
1690
1691
  const V = [];
1691
1692
  for (let g = 0; g < T; g++) {
1692
- const b = this.getBlankLine(h.DEFAULT_ATTR_DATA, !0);
1693
+ const b = this.getBlankLine(c.DEFAULT_ATTR_DATA, !0);
1693
1694
  V.push(b);
1694
1695
  }
1695
1696
  V.length > 0 && (p.push({ start: y + k.length + S, newLines: V }), S += V.length), k.push(...V);
1696
- let F = B.length - 1, q = B[F];
1697
- q === 0 && (F--, q = B[F]);
1697
+ let W = B.length - 1, q = B[W];
1698
+ q === 0 && (W--, q = B[W]);
1698
1699
  let H = k.length - T - 1, o = E;
1699
1700
  for (; H >= 0; ) {
1700
1701
  const g = Math.min(o, q);
1701
- if (k[F] === void 0) break;
1702
- if (k[F].copyCellsFrom(k[H], o - g, q - g, g, !0), q -= g, q === 0 && (F--, q = B[F]), o -= g, o === 0) {
1702
+ if (k[W] === void 0) break;
1703
+ if (k[W].copyCellsFrom(k[H], o - g, q - g, g, !0), q -= g, q === 0 && (W--, q = B[W]), o -= g, o === 0) {
1703
1704
  H--;
1704
1705
  const b = Math.max(H, 0);
1705
1706
  o = (0, a.getWrappedLineTrimmedLength)(k, b, this._cols);
@@ -1712,17 +1713,17 @@ function ke() {
1712
1713
  }
1713
1714
  if (p.length > 0) {
1714
1715
  const y = [], C = [];
1715
- for (let F = 0; F < this.lines.length; F++) C.push(this.lines.get(F));
1716
+ for (let W = 0; W < this.lines.length; W++) C.push(this.lines.get(W));
1716
1717
  const k = this.lines.length;
1717
1718
  let $ = k - 1, E = 0, B = p[E];
1718
1719
  this.lines.length = Math.min(this.lines.maxLength, this.lines.length + S);
1719
1720
  let T = 0;
1720
- for (let F = Math.min(this.lines.maxLength - 1, k + S - 1); F >= 0; F--) if (B && B.start > $ + T) {
1721
- for (let q = B.newLines.length - 1; q >= 0; q--) this.lines.set(F--, B.newLines[q]);
1722
- F++, y.push({ index: $ + 1, amount: B.newLines.length }), T += B.newLines.length, B = p[++E];
1723
- } else this.lines.set(F, C[$--]);
1721
+ for (let W = Math.min(this.lines.maxLength - 1, k + S - 1); W >= 0; W--) if (B && B.start > $ + T) {
1722
+ for (let q = B.newLines.length - 1; q >= 0; q--) this.lines.set(W--, B.newLines[q]);
1723
+ W++, y.push({ index: $ + 1, amount: B.newLines.length }), T += B.newLines.length, B = p[++E];
1724
+ } else this.lines.set(W, C[$--]);
1724
1725
  let G = 0;
1725
- for (let F = y.length - 1; F >= 0; F--) y[F].index += G, this.lines.onInsertEmitter.fire(y[F]), G += y[F].amount;
1726
+ for (let W = y.length - 1; W >= 0; W--) y[W].index += G, this.lines.onInsertEmitter.fire(y[W]), G += y[W].amount;
1726
1727
  const V = Math.max(0, k + S - this.lines.maxLength);
1727
1728
  V > 0 && this.lines.onTrimEmitter.fire(V);
1728
1729
  }
@@ -1774,10 +1775,10 @@ function ke() {
1774
1775
  };
1775
1776
  }, 437: (w, t, l) => {
1776
1777
  Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferLine = t.DEFAULT_ATTR_DATA = void 0;
1777
- const d = l(734), _ = l(511), n = l(643), h = l(482);
1778
+ const d = l(734), _ = l(511), n = l(643), c = l(482);
1778
1779
  t.DEFAULT_ATTR_DATA = Object.freeze(new d.AttributeData());
1779
1780
  let a = 0;
1780
- class c {
1781
+ class h {
1781
1782
  constructor(e, r, i = !1) {
1782
1783
  this.isWrapped = i, this._combined = {}, this._extendedAttrs = {}, this._data = new Uint32Array(3 * e);
1783
1784
  const s = r || _.CellData.fromCharData([0, n.NULL_CELL_CHAR, n.NULL_CELL_WIDTH, n.NULL_CELL_CODE]);
@@ -1786,7 +1787,7 @@ function ke() {
1786
1787
  }
1787
1788
  get(e) {
1788
1789
  const r = this._data[3 * e + 0], i = 2097151 & r;
1789
- return [this._data[3 * e + 1], 2097152 & r ? this._combined[e] : i ? (0, h.stringFromCodePoint)(i) : "", r >> 22, 2097152 & r ? this._combined[e].charCodeAt(this._combined[e].length - 1) : i];
1790
+ return [this._data[3 * e + 1], 2097152 & r ? this._combined[e] : i ? (0, c.stringFromCodePoint)(i) : "", r >> 22, 2097152 & r ? this._combined[e].charCodeAt(this._combined[e].length - 1) : i];
1790
1791
  }
1791
1792
  set(e, r) {
1792
1793
  this._data[3 * e + 1] = r[n.CHAR_DATA_ATTR_INDEX], r[n.CHAR_DATA_CHAR_INDEX].length > 1 ? (this._combined[e] = r[1], this._data[3 * e + 0] = 2097152 | e | r[n.CHAR_DATA_WIDTH_INDEX] << 22) : this._data[3 * e + 0] = r[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | r[n.CHAR_DATA_WIDTH_INDEX] << 22;
@@ -1815,7 +1816,7 @@ function ke() {
1815
1816
  }
1816
1817
  getString(e) {
1817
1818
  const r = this._data[3 * e + 0];
1818
- return 2097152 & r ? this._combined[e] : 2097151 & r ? (0, h.stringFromCodePoint)(2097151 & r) : "";
1819
+ return 2097152 & r ? this._combined[e] : 2097151 & r ? (0, c.stringFromCodePoint)(2097151 & r) : "";
1819
1820
  }
1820
1821
  isProtected(e) {
1821
1822
  return 536870912 & this._data[3 * e + 2];
@@ -1831,7 +1832,7 @@ function ke() {
1831
1832
  }
1832
1833
  addCodepointToCell(e, r, i) {
1833
1834
  let s = this._data[3 * e + 0];
1834
- 2097152 & s ? this._combined[e] += (0, h.stringFromCodePoint)(r) : 2097151 & s ? (this._combined[e] = (0, h.stringFromCodePoint)(2097151 & s) + (0, h.stringFromCodePoint)(r), s &= -2097152, s |= 2097152) : s = r | 4194304, i && (s &= -12582913, s |= i << 22), this._data[3 * e + 0] = s;
1835
+ 2097152 & s ? this._combined[e] += (0, c.stringFromCodePoint)(r) : 2097151 & s ? (this._combined[e] = (0, c.stringFromCodePoint)(2097151 & s) + (0, c.stringFromCodePoint)(r), s &= -2097152, s |= 2097152) : s = r | 4194304, i && (s &= -12582913, s |= i << 22), this._data[3 * e + 0] = s;
1835
1836
  }
1836
1837
  insertCells(e, r, i) {
1837
1838
  if ((e %= this.length) && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), r < this.length - e) {
@@ -1900,7 +1901,7 @@ function ke() {
1900
1901
  this.isWrapped = e.isWrapped;
1901
1902
  }
1902
1903
  clone() {
1903
- const e = new c(0);
1904
+ const e = new h(0);
1904
1905
  e._data = new Uint32Array(this._data), e.length = this.length;
1905
1906
  for (const r in this._combined) e._combined[r] = this._combined[r];
1906
1907
  for (const r in this._extendedAttrs) e._extendedAttrs[r] = this._extendedAttrs[r];
@@ -1934,28 +1935,28 @@ function ke() {
1934
1935
  r = r ?? 0, i = i ?? this.length, e && (i = Math.min(i, this.getTrimmedLength())), s && (s.length = 0);
1935
1936
  let f = "";
1936
1937
  for (; r < i; ) {
1937
- const p = this._data[3 * r + 0], S = 2097151 & p, y = 2097152 & p ? this._combined[r] : S ? (0, h.stringFromCodePoint)(S) : n.WHITESPACE_CELL_CHAR;
1938
+ const p = this._data[3 * r + 0], S = 2097151 & p, y = 2097152 & p ? this._combined[r] : S ? (0, c.stringFromCodePoint)(S) : n.WHITESPACE_CELL_CHAR;
1938
1939
  if (f += y, s) for (let C = 0; C < y.length; ++C) s.push(r);
1939
1940
  r += p >> 22 || 1;
1940
1941
  }
1941
1942
  return s && s.push(r), f;
1942
1943
  }
1943
1944
  }
1944
- t.BufferLine = c;
1945
+ t.BufferLine = h;
1945
1946
  }, 634: (w, t) => {
1946
1947
  function l(d, _, n) {
1947
1948
  if (_ === d.length - 1) return d[_].getTrimmedLength();
1948
- const h = !d[_].hasContent(n - 1) && d[_].getWidth(n - 1) === 1, a = d[_ + 1].getWidth(0) === 2;
1949
- return h && a ? n - 1 : n;
1949
+ const c = !d[_].hasContent(n - 1) && d[_].getWidth(n - 1) === 1, a = d[_ + 1].getWidth(0) === 2;
1950
+ return c && a ? n - 1 : n;
1950
1951
  }
1951
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getWrappedLineTrimmedLength = t.reflowSmallerGetNewLineLengths = t.reflowLargerApplyNewLayout = t.reflowLargerCreateNewLayout = t.reflowLargerGetLinesToRemove = void 0, t.reflowLargerGetLinesToRemove = function(d, _, n, h, a) {
1952
- const c = [];
1952
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.getWrappedLineTrimmedLength = t.reflowSmallerGetNewLineLengths = t.reflowLargerApplyNewLayout = t.reflowLargerCreateNewLayout = t.reflowLargerGetLinesToRemove = void 0, t.reflowLargerGetLinesToRemove = function(d, _, n, c, a) {
1953
+ const h = [];
1953
1954
  for (let u = 0; u < d.length - 1; u++) {
1954
1955
  let e = u, r = d.get(++e);
1955
1956
  if (!r.isWrapped) continue;
1956
1957
  const i = [d.get(u)];
1957
1958
  for (; e < d.length && r.isWrapped; ) i.push(r), r = d.get(++e);
1958
- if (h >= u && h < e) {
1959
+ if (c >= u && c < e) {
1959
1960
  u += i.length - 1;
1960
1961
  continue;
1961
1962
  }
@@ -1967,46 +1968,46 @@ function ke() {
1967
1968
  i[s].replaceCells(f, n, a);
1968
1969
  let y = 0;
1969
1970
  for (let C = i.length - 1; C > 0 && (C > s || i[C].getTrimmedLength() === 0); C--) y++;
1970
- y > 0 && (c.push(u + i.length - y), c.push(y)), u += i.length - 1;
1971
+ y > 0 && (h.push(u + i.length - y), h.push(y)), u += i.length - 1;
1971
1972
  }
1972
- return c;
1973
+ return h;
1973
1974
  }, t.reflowLargerCreateNewLayout = function(d, _) {
1974
1975
  const n = [];
1975
- let h = 0, a = _[h], c = 0;
1976
+ let c = 0, a = _[c], h = 0;
1976
1977
  for (let u = 0; u < d.length; u++) if (a === u) {
1977
- const e = _[++h];
1978
- d.onDeleteEmitter.fire({ index: u - c, amount: e }), u += e - 1, c += e, a = _[++h];
1978
+ const e = _[++c];
1979
+ d.onDeleteEmitter.fire({ index: u - h, amount: e }), u += e - 1, h += e, a = _[++c];
1979
1980
  } else n.push(u);
1980
- return { layout: n, countRemoved: c };
1981
+ return { layout: n, countRemoved: h };
1981
1982
  }, t.reflowLargerApplyNewLayout = function(d, _) {
1982
1983
  const n = [];
1983
- for (let h = 0; h < _.length; h++) n.push(d.get(_[h]));
1984
- for (let h = 0; h < n.length; h++) d.set(h, n[h]);
1984
+ for (let c = 0; c < _.length; c++) n.push(d.get(_[c]));
1985
+ for (let c = 0; c < n.length; c++) d.set(c, n[c]);
1985
1986
  d.length = _.length;
1986
1987
  }, t.reflowSmallerGetNewLineLengths = function(d, _, n) {
1987
- const h = [], a = d.map((r, i) => l(d, i, _)).reduce((r, i) => r + i);
1988
- let c = 0, u = 0, e = 0;
1988
+ const c = [], a = d.map((r, i) => l(d, i, _)).reduce((r, i) => r + i);
1989
+ let h = 0, u = 0, e = 0;
1989
1990
  for (; e < a; ) {
1990
1991
  if (a - e < n) {
1991
- h.push(a - e);
1992
+ c.push(a - e);
1992
1993
  break;
1993
1994
  }
1994
- c += n;
1995
+ h += n;
1995
1996
  const r = l(d, u, _);
1996
- c > r && (c -= r, u++);
1997
- const i = d[u].getWidth(c - 1) === 2;
1998
- i && c--;
1997
+ h > r && (h -= r, u++);
1998
+ const i = d[u].getWidth(h - 1) === 2;
1999
+ i && h--;
1999
2000
  const s = i ? n - 1 : n;
2000
- h.push(s), e += s;
2001
+ c.push(s), e += s;
2001
2002
  }
2002
- return h;
2003
+ return c;
2003
2004
  }, t.getWrappedLineTrimmedLength = l;
2004
2005
  }, 295: (w, t, l) => {
2005
2006
  Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferSet = void 0;
2006
2007
  const d = l(460), _ = l(844), n = l(92);
2007
- class h extends _.Disposable {
2008
- constructor(c, u) {
2009
- super(), this._optionsService = c, this._bufferService = u, this._onBufferActivate = this.register(new d.EventEmitter()), this.onBufferActivate = this._onBufferActivate.event, this.reset(), this.register(this._optionsService.onSpecificOptionChange("scrollback", () => this.resize(this._bufferService.cols, this._bufferService.rows))), this.register(this._optionsService.onSpecificOptionChange("tabStopWidth", () => this.setupTabStops()));
2008
+ class c extends _.Disposable {
2009
+ constructor(h, u) {
2010
+ super(), this._optionsService = h, this._bufferService = u, this._onBufferActivate = this.register(new d.EventEmitter()), this.onBufferActivate = this._onBufferActivate.event, this.reset(), this.register(this._optionsService.onSpecificOptionChange("scrollback", () => this.resize(this._bufferService.cols, this._bufferService.rows))), this.register(this._optionsService.onSpecificOptionChange("tabStopWidth", () => this.setupTabStops()));
2010
2011
  }
2011
2012
  reset() {
2012
2013
  this._normal = new n.Buffer(!0, this._optionsService, this._bufferService), this._normal.fillViewportRows(), this._alt = new n.Buffer(!1, this._optionsService, this._bufferService), this._activeBuffer = this._normal, this._onBufferActivate.fire({ activeBuffer: this._normal, inactiveBuffer: this._alt }), this.setupTabStops();
@@ -2023,27 +2024,27 @@ function ke() {
2023
2024
  activateNormalBuffer() {
2024
2025
  this._activeBuffer !== this._normal && (this._normal.x = this._alt.x, this._normal.y = this._alt.y, this._alt.clearAllMarkers(), this._alt.clear(), this._activeBuffer = this._normal, this._onBufferActivate.fire({ activeBuffer: this._normal, inactiveBuffer: this._alt }));
2025
2026
  }
2026
- activateAltBuffer(c) {
2027
- this._activeBuffer !== this._alt && (this._alt.fillViewportRows(c), this._alt.x = this._normal.x, this._alt.y = this._normal.y, this._activeBuffer = this._alt, this._onBufferActivate.fire({ activeBuffer: this._alt, inactiveBuffer: this._normal }));
2027
+ activateAltBuffer(h) {
2028
+ this._activeBuffer !== this._alt && (this._alt.fillViewportRows(h), this._alt.x = this._normal.x, this._alt.y = this._normal.y, this._activeBuffer = this._alt, this._onBufferActivate.fire({ activeBuffer: this._alt, inactiveBuffer: this._normal }));
2028
2029
  }
2029
- resize(c, u) {
2030
- this._normal.resize(c, u), this._alt.resize(c, u), this.setupTabStops(c);
2030
+ resize(h, u) {
2031
+ this._normal.resize(h, u), this._alt.resize(h, u), this.setupTabStops(h);
2031
2032
  }
2032
- setupTabStops(c) {
2033
- this._normal.setupTabStops(c), this._alt.setupTabStops(c);
2033
+ setupTabStops(h) {
2034
+ this._normal.setupTabStops(h), this._alt.setupTabStops(h);
2034
2035
  }
2035
2036
  }
2036
- t.BufferSet = h;
2037
+ t.BufferSet = c;
2037
2038
  }, 511: (w, t, l) => {
2038
2039
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CellData = void 0;
2039
2040
  const d = l(482), _ = l(643), n = l(734);
2040
- class h extends n.AttributeData {
2041
+ class c extends n.AttributeData {
2041
2042
  constructor() {
2042
2043
  super(...arguments), this.content = 0, this.fg = 0, this.bg = 0, this.extended = new n.ExtendedAttrs(), this.combinedData = "";
2043
2044
  }
2044
- static fromCharData(c) {
2045
- const u = new h();
2046
- return u.setFromCharData(c), u;
2045
+ static fromCharData(h) {
2046
+ const u = new c();
2047
+ return u.setFromCharData(h), u;
2047
2048
  }
2048
2049
  isCombined() {
2049
2050
  return 2097152 & this.content;
@@ -2057,24 +2058,24 @@ function ke() {
2057
2058
  getCode() {
2058
2059
  return this.isCombined() ? this.combinedData.charCodeAt(this.combinedData.length - 1) : 2097151 & this.content;
2059
2060
  }
2060
- setFromCharData(c) {
2061
- this.fg = c[_.CHAR_DATA_ATTR_INDEX], this.bg = 0;
2061
+ setFromCharData(h) {
2062
+ this.fg = h[_.CHAR_DATA_ATTR_INDEX], this.bg = 0;
2062
2063
  let u = !1;
2063
- if (c[_.CHAR_DATA_CHAR_INDEX].length > 2) u = !0;
2064
- else if (c[_.CHAR_DATA_CHAR_INDEX].length === 2) {
2065
- const e = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);
2064
+ if (h[_.CHAR_DATA_CHAR_INDEX].length > 2) u = !0;
2065
+ else if (h[_.CHAR_DATA_CHAR_INDEX].length === 2) {
2066
+ const e = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);
2066
2067
  if (55296 <= e && e <= 56319) {
2067
- const r = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);
2068
- 56320 <= r && r <= 57343 ? this.content = 1024 * (e - 55296) + r - 56320 + 65536 | c[_.CHAR_DATA_WIDTH_INDEX] << 22 : u = !0;
2068
+ const r = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);
2069
+ 56320 <= r && r <= 57343 ? this.content = 1024 * (e - 55296) + r - 56320 + 65536 | h[_.CHAR_DATA_WIDTH_INDEX] << 22 : u = !0;
2069
2070
  } else u = !0;
2070
- } else this.content = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | c[_.CHAR_DATA_WIDTH_INDEX] << 22;
2071
- u && (this.combinedData = c[_.CHAR_DATA_CHAR_INDEX], this.content = 2097152 | c[_.CHAR_DATA_WIDTH_INDEX] << 22);
2071
+ } else this.content = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | h[_.CHAR_DATA_WIDTH_INDEX] << 22;
2072
+ u && (this.combinedData = h[_.CHAR_DATA_CHAR_INDEX], this.content = 2097152 | h[_.CHAR_DATA_WIDTH_INDEX] << 22);
2072
2073
  }
2073
2074
  getAsCharData() {
2074
2075
  return [this.fg, this.getChars(), this.getWidth(), this.getCode()];
2075
2076
  }
2076
2077
  }
2077
- t.CellData = h;
2078
+ t.CellData = c;
2078
2079
  }, 643: (w, t) => {
2079
2080
  Object.defineProperty(t, "__esModule", { value: !0 }), t.WHITESPACE_CELL_CODE = t.WHITESPACE_CELL_WIDTH = t.WHITESPACE_CELL_CHAR = t.NULL_CELL_CODE = t.NULL_CELL_WIDTH = t.NULL_CELL_CHAR = t.CHAR_DATA_CODE_INDEX = t.CHAR_DATA_WIDTH_INDEX = t.CHAR_DATA_CHAR_INDEX = t.CHAR_DATA_ATTR_INDEX = t.DEFAULT_EXT = t.DEFAULT_ATTR = t.DEFAULT_COLOR = void 0, t.DEFAULT_COLOR = 0, t.DEFAULT_ATTR = 256 | t.DEFAULT_COLOR << 9, t.DEFAULT_EXT = 0, t.CHAR_DATA_ATTR_INDEX = 0, t.CHAR_DATA_CHAR_INDEX = 1, t.CHAR_DATA_WIDTH_INDEX = 2, t.CHAR_DATA_CODE_INDEX = 3, t.NULL_CELL_CHAR = "", t.NULL_CELL_WIDTH = 1, t.NULL_CELL_CODE = 0, t.WHITESPACE_CELL_CHAR = " ", t.WHITESPACE_CELL_WIDTH = 1, t.WHITESPACE_CELL_CODE = 32;
2080
2081
  }, 863: (w, t, l) => {
@@ -2112,8 +2113,8 @@ function ke() {
2112
2113
  return l > 65535 ? (l -= 65536, String.fromCharCode(55296 + (l >> 10)) + String.fromCharCode(l % 1024 + 56320)) : String.fromCharCode(l);
2113
2114
  }, t.utf32ToString = function(l, d = 0, _ = l.length) {
2114
2115
  let n = "";
2115
- for (let h = d; h < _; ++h) {
2116
- let a = l[h];
2116
+ for (let c = d; c < _; ++c) {
2117
+ let a = l[c];
2117
2118
  a > 65535 ? (a -= 65536, n += String.fromCharCode(55296 + (a >> 10)) + String.fromCharCode(a % 1024 + 56320)) : n += String.fromCharCode(a);
2118
2119
  }
2119
2120
  return n;
@@ -2127,18 +2128,18 @@ function ke() {
2127
2128
  decode(l, d) {
2128
2129
  const _ = l.length;
2129
2130
  if (!_) return 0;
2130
- let n = 0, h = 0;
2131
+ let n = 0, c = 0;
2131
2132
  if (this._interim) {
2132
- const a = l.charCodeAt(h++);
2133
+ const a = l.charCodeAt(c++);
2133
2134
  56320 <= a && a <= 57343 ? d[n++] = 1024 * (this._interim - 55296) + a - 56320 + 65536 : (d[n++] = this._interim, d[n++] = a), this._interim = 0;
2134
2135
  }
2135
- for (let a = h; a < _; ++a) {
2136
- const c = l.charCodeAt(a);
2137
- if (55296 <= c && c <= 56319) {
2138
- if (++a >= _) return this._interim = c, n;
2136
+ for (let a = c; a < _; ++a) {
2137
+ const h = l.charCodeAt(a);
2138
+ if (55296 <= h && h <= 56319) {
2139
+ if (++a >= _) return this._interim = h, n;
2139
2140
  const u = l.charCodeAt(a);
2140
- 56320 <= u && u <= 57343 ? d[n++] = 1024 * (c - 55296) + u - 56320 + 65536 : (d[n++] = c, d[n++] = u);
2141
- } else c !== 65279 && (d[n++] = c);
2141
+ 56320 <= u && u <= 57343 ? d[n++] = 1024 * (h - 55296) + u - 56320 + 65536 : (d[n++] = h, d[n++] = u);
2142
+ } else h !== 65279 && (d[n++] = h);
2142
2143
  }
2143
2144
  return n;
2144
2145
  }
@@ -2152,7 +2153,7 @@ function ke() {
2152
2153
  decode(l, d) {
2153
2154
  const _ = l.length;
2154
2155
  if (!_) return 0;
2155
- let n, h, a, c, u = 0, e = 0, r = 0;
2156
+ let n, c, a, h, u = 0, e = 0, r = 0;
2156
2157
  if (this.interim[0]) {
2157
2158
  let f = !1, p = this.interim[0];
2158
2159
  p &= (224 & p) == 192 ? 31 : (240 & p) == 224 ? 15 : 7;
@@ -2172,49 +2173,49 @@ function ke() {
2172
2173
  const i = _ - 4;
2173
2174
  let s = r;
2174
2175
  for (; s < _; ) {
2175
- for (; !(!(s < i) || 128 & (n = l[s]) || 128 & (h = l[s + 1]) || 128 & (a = l[s + 2]) || 128 & (c = l[s + 3])); ) d[u++] = n, d[u++] = h, d[u++] = a, d[u++] = c, s += 4;
2176
+ for (; !(!(s < i) || 128 & (n = l[s]) || 128 & (c = l[s + 1]) || 128 & (a = l[s + 2]) || 128 & (h = l[s + 3])); ) d[u++] = n, d[u++] = c, d[u++] = a, d[u++] = h, s += 4;
2176
2177
  if (n = l[s++], n < 128) d[u++] = n;
2177
2178
  else if ((224 & n) == 192) {
2178
2179
  if (s >= _) return this.interim[0] = n, u;
2179
- if (h = l[s++], (192 & h) != 128) {
2180
+ if (c = l[s++], (192 & c) != 128) {
2180
2181
  s--;
2181
2182
  continue;
2182
2183
  }
2183
- if (e = (31 & n) << 6 | 63 & h, e < 128) {
2184
+ if (e = (31 & n) << 6 | 63 & c, e < 128) {
2184
2185
  s--;
2185
2186
  continue;
2186
2187
  }
2187
2188
  d[u++] = e;
2188
2189
  } else if ((240 & n) == 224) {
2189
2190
  if (s >= _) return this.interim[0] = n, u;
2190
- if (h = l[s++], (192 & h) != 128) {
2191
+ if (c = l[s++], (192 & c) != 128) {
2191
2192
  s--;
2192
2193
  continue;
2193
2194
  }
2194
- if (s >= _) return this.interim[0] = n, this.interim[1] = h, u;
2195
+ if (s >= _) return this.interim[0] = n, this.interim[1] = c, u;
2195
2196
  if (a = l[s++], (192 & a) != 128) {
2196
2197
  s--;
2197
2198
  continue;
2198
2199
  }
2199
- if (e = (15 & n) << 12 | (63 & h) << 6 | 63 & a, e < 2048 || e >= 55296 && e <= 57343 || e === 65279) continue;
2200
+ if (e = (15 & n) << 12 | (63 & c) << 6 | 63 & a, e < 2048 || e >= 55296 && e <= 57343 || e === 65279) continue;
2200
2201
  d[u++] = e;
2201
2202
  } else if ((248 & n) == 240) {
2202
2203
  if (s >= _) return this.interim[0] = n, u;
2203
- if (h = l[s++], (192 & h) != 128) {
2204
+ if (c = l[s++], (192 & c) != 128) {
2204
2205
  s--;
2205
2206
  continue;
2206
2207
  }
2207
- if (s >= _) return this.interim[0] = n, this.interim[1] = h, u;
2208
+ if (s >= _) return this.interim[0] = n, this.interim[1] = c, u;
2208
2209
  if (a = l[s++], (192 & a) != 128) {
2209
2210
  s--;
2210
2211
  continue;
2211
2212
  }
2212
- if (s >= _) return this.interim[0] = n, this.interim[1] = h, this.interim[2] = a, u;
2213
- if (c = l[s++], (192 & c) != 128) {
2213
+ if (s >= _) return this.interim[0] = n, this.interim[1] = c, this.interim[2] = a, u;
2214
+ if (h = l[s++], (192 & h) != 128) {
2214
2215
  s--;
2215
2216
  continue;
2216
2217
  }
2217
- if (e = (7 & n) << 18 | (63 & h) << 12 | (63 & a) << 6 | 63 & c, e < 65536 || e > 1114111) continue;
2218
+ if (e = (7 & n) << 18 | (63 & c) << 12 | (63 & a) << 6 | 63 & h, e < 65536 || e > 1114111) continue;
2218
2219
  d[u++] = e;
2219
2220
  }
2220
2221
  }
@@ -2224,30 +2225,30 @@ function ke() {
2224
2225
  }, 225: (w, t, l) => {
2225
2226
  Object.defineProperty(t, "__esModule", { value: !0 }), t.UnicodeV6 = void 0;
2226
2227
  const d = l(480), _ = [[768, 879], [1155, 1158], [1160, 1161], [1425, 1469], [1471, 1471], [1473, 1474], [1476, 1477], [1479, 1479], [1536, 1539], [1552, 1557], [1611, 1630], [1648, 1648], [1750, 1764], [1767, 1768], [1770, 1773], [1807, 1807], [1809, 1809], [1840, 1866], [1958, 1968], [2027, 2035], [2305, 2306], [2364, 2364], [2369, 2376], [2381, 2381], [2385, 2388], [2402, 2403], [2433, 2433], [2492, 2492], [2497, 2500], [2509, 2509], [2530, 2531], [2561, 2562], [2620, 2620], [2625, 2626], [2631, 2632], [2635, 2637], [2672, 2673], [2689, 2690], [2748, 2748], [2753, 2757], [2759, 2760], [2765, 2765], [2786, 2787], [2817, 2817], [2876, 2876], [2879, 2879], [2881, 2883], [2893, 2893], [2902, 2902], [2946, 2946], [3008, 3008], [3021, 3021], [3134, 3136], [3142, 3144], [3146, 3149], [3157, 3158], [3260, 3260], [3263, 3263], [3270, 3270], [3276, 3277], [3298, 3299], [3393, 3395], [3405, 3405], [3530, 3530], [3538, 3540], [3542, 3542], [3633, 3633], [3636, 3642], [3655, 3662], [3761, 3761], [3764, 3769], [3771, 3772], [3784, 3789], [3864, 3865], [3893, 3893], [3895, 3895], [3897, 3897], [3953, 3966], [3968, 3972], [3974, 3975], [3984, 3991], [3993, 4028], [4038, 4038], [4141, 4144], [4146, 4146], [4150, 4151], [4153, 4153], [4184, 4185], [4448, 4607], [4959, 4959], [5906, 5908], [5938, 5940], [5970, 5971], [6002, 6003], [6068, 6069], [6071, 6077], [6086, 6086], [6089, 6099], [6109, 6109], [6155, 6157], [6313, 6313], [6432, 6434], [6439, 6440], [6450, 6450], [6457, 6459], [6679, 6680], [6912, 6915], [6964, 6964], [6966, 6970], [6972, 6972], [6978, 6978], [7019, 7027], [7616, 7626], [7678, 7679], [8203, 8207], [8234, 8238], [8288, 8291], [8298, 8303], [8400, 8431], [12330, 12335], [12441, 12442], [43014, 43014], [43019, 43019], [43045, 43046], [64286, 64286], [65024, 65039], [65056, 65059], [65279, 65279], [65529, 65531]], n = [[68097, 68099], [68101, 68102], [68108, 68111], [68152, 68154], [68159, 68159], [119143, 119145], [119155, 119170], [119173, 119179], [119210, 119213], [119362, 119364], [917505, 917505], [917536, 917631], [917760, 917999]];
2227
- let h;
2228
+ let c;
2228
2229
  t.UnicodeV6 = class {
2229
2230
  constructor() {
2230
- if (this.version = "6", !h) {
2231
- h = new Uint8Array(65536), h.fill(1), h[0] = 0, h.fill(0, 1, 32), h.fill(0, 127, 160), h.fill(2, 4352, 4448), h[9001] = 2, h[9002] = 2, h.fill(2, 11904, 42192), h[12351] = 1, h.fill(2, 44032, 55204), h.fill(2, 63744, 64256), h.fill(2, 65040, 65050), h.fill(2, 65072, 65136), h.fill(2, 65280, 65377), h.fill(2, 65504, 65511);
2232
- for (let a = 0; a < _.length; ++a) h.fill(0, _[a][0], _[a][1] + 1);
2231
+ if (this.version = "6", !c) {
2232
+ c = new Uint8Array(65536), c.fill(1), c[0] = 0, c.fill(0, 1, 32), c.fill(0, 127, 160), c.fill(2, 4352, 4448), c[9001] = 2, c[9002] = 2, c.fill(2, 11904, 42192), c[12351] = 1, c.fill(2, 44032, 55204), c.fill(2, 63744, 64256), c.fill(2, 65040, 65050), c.fill(2, 65072, 65136), c.fill(2, 65280, 65377), c.fill(2, 65504, 65511);
2233
+ for (let a = 0; a < _.length; ++a) c.fill(0, _[a][0], _[a][1] + 1);
2233
2234
  }
2234
2235
  }
2235
2236
  wcwidth(a) {
2236
- return a < 32 ? 0 : a < 127 ? 1 : a < 65536 ? h[a] : function(c, u) {
2237
+ return a < 32 ? 0 : a < 127 ? 1 : a < 65536 ? c[a] : function(h, u) {
2237
2238
  let e, r = 0, i = u.length - 1;
2238
- if (c < u[0][0] || c > u[i][1]) return !1;
2239
- for (; i >= r; ) if (e = r + i >> 1, c > u[e][1]) r = e + 1;
2239
+ if (h < u[0][0] || h > u[i][1]) return !1;
2240
+ for (; i >= r; ) if (e = r + i >> 1, h > u[e][1]) r = e + 1;
2240
2241
  else {
2241
- if (!(c < u[e][0])) return !0;
2242
+ if (!(h < u[e][0])) return !0;
2242
2243
  i = e - 1;
2243
2244
  }
2244
2245
  return !1;
2245
2246
  }(a, n) ? 0 : a >= 131072 && a <= 196605 || a >= 196608 && a <= 262141 ? 2 : 1;
2246
2247
  }
2247
- charProperties(a, c) {
2248
- let u = this.wcwidth(a), e = u === 0 && c !== 0;
2248
+ charProperties(a, h) {
2249
+ let u = this.wcwidth(a), e = u === 0 && h !== 0;
2249
2250
  if (e) {
2250
- const r = d.UnicodeService.extractWidth(c);
2251
+ const r = d.UnicodeService.extractWidth(h);
2251
2252
  r === 0 ? e = !1 : r > u && (u = r);
2252
2253
  }
2253
2254
  return d.UnicodeService.createPropertyValue(0, u, e);
@@ -2263,8 +2264,8 @@ function ke() {
2263
2264
  handleUserInput() {
2264
2265
  this._didUserInput = !0;
2265
2266
  }
2266
- writeSync(a, c) {
2267
- if (c !== void 0 && this._syncCalls > c) return void (this._syncCalls = 0);
2267
+ writeSync(a, h) {
2268
+ if (h !== void 0 && this._syncCalls > h) return void (this._syncCalls = 0);
2268
2269
  if (this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(void 0), this._syncCalls++, this._isSyncWriting) return;
2269
2270
  let u;
2270
2271
  for (this._isSyncWriting = !0; u = this._writeBuffer.shift(); ) {
@@ -2274,18 +2275,18 @@ function ke() {
2274
2275
  }
2275
2276
  this._pendingData = 0, this._bufferOffset = 2147483647, this._isSyncWriting = !1, this._syncCalls = 0;
2276
2277
  }
2277
- write(a, c) {
2278
+ write(a, h) {
2278
2279
  if (this._pendingData > 5e7) throw new Error("write data discarded, use flow control to avoid losing data");
2279
2280
  if (!this._writeBuffer.length) {
2280
- if (this._bufferOffset = 0, this._didUserInput) return this._didUserInput = !1, this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(c), void this._innerWrite();
2281
+ if (this._bufferOffset = 0, this._didUserInput) return this._didUserInput = !1, this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(h), void this._innerWrite();
2281
2282
  setTimeout(() => this._innerWrite());
2282
2283
  }
2283
- this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(c);
2284
+ this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(h);
2284
2285
  }
2285
- _innerWrite(a = 0, c = !0) {
2286
+ _innerWrite(a = 0, h = !0) {
2286
2287
  const u = a || Date.now();
2287
2288
  for (; this._writeBuffer.length > this._bufferOffset; ) {
2288
- const e = this._writeBuffer[this._bufferOffset], r = this._action(e, c);
2289
+ const e = this._writeBuffer[this._bufferOffset], r = this._action(e, h);
2289
2290
  if (r) {
2290
2291
  const s = (f) => Date.now() - u >= 12 ? setTimeout(() => this._innerWrite(0, f)) : this._innerWrite(u, f);
2291
2292
  return void r.catch((f) => (queueMicrotask(() => {
@@ -2302,114 +2303,114 @@ function ke() {
2302
2303
  }, 941: (w, t) => {
2303
2304
  Object.defineProperty(t, "__esModule", { value: !0 }), t.toRgbString = t.parseColor = void 0;
2304
2305
  const l = /^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/, d = /^[\da-f]+$/;
2305
- function _(n, h) {
2306
- const a = n.toString(16), c = a.length < 2 ? "0" + a : a;
2307
- switch (h) {
2306
+ function _(n, c) {
2307
+ const a = n.toString(16), h = a.length < 2 ? "0" + a : a;
2308
+ switch (c) {
2308
2309
  case 4:
2309
2310
  return a[0];
2310
2311
  case 8:
2311
- return c;
2312
+ return h;
2312
2313
  case 12:
2313
- return (c + c).slice(0, 3);
2314
+ return (h + h).slice(0, 3);
2314
2315
  default:
2315
- return c + c;
2316
+ return h + h;
2316
2317
  }
2317
2318
  }
2318
2319
  t.parseColor = function(n) {
2319
2320
  if (!n) return;
2320
- let h = n.toLowerCase();
2321
- if (h.indexOf("rgb:") === 0) {
2322
- h = h.slice(4);
2323
- const a = l.exec(h);
2321
+ let c = n.toLowerCase();
2322
+ if (c.indexOf("rgb:") === 0) {
2323
+ c = c.slice(4);
2324
+ const a = l.exec(c);
2324
2325
  if (a) {
2325
- const c = a[1] ? 15 : a[4] ? 255 : a[7] ? 4095 : 65535;
2326
- return [Math.round(parseInt(a[1] || a[4] || a[7] || a[10], 16) / c * 255), Math.round(parseInt(a[2] || a[5] || a[8] || a[11], 16) / c * 255), Math.round(parseInt(a[3] || a[6] || a[9] || a[12], 16) / c * 255)];
2326
+ const h = a[1] ? 15 : a[4] ? 255 : a[7] ? 4095 : 65535;
2327
+ return [Math.round(parseInt(a[1] || a[4] || a[7] || a[10], 16) / h * 255), Math.round(parseInt(a[2] || a[5] || a[8] || a[11], 16) / h * 255), Math.round(parseInt(a[3] || a[6] || a[9] || a[12], 16) / h * 255)];
2327
2328
  }
2328
- } else if (h.indexOf("#") === 0 && (h = h.slice(1), d.exec(h) && [3, 6, 9, 12].includes(h.length))) {
2329
- const a = h.length / 3, c = [0, 0, 0];
2329
+ } else if (c.indexOf("#") === 0 && (c = c.slice(1), d.exec(c) && [3, 6, 9, 12].includes(c.length))) {
2330
+ const a = c.length / 3, h = [0, 0, 0];
2330
2331
  for (let u = 0; u < 3; ++u) {
2331
- const e = parseInt(h.slice(a * u, a * u + a), 16);
2332
- c[u] = a === 1 ? e << 4 : a === 2 ? e : a === 3 ? e >> 4 : e >> 8;
2332
+ const e = parseInt(c.slice(a * u, a * u + a), 16);
2333
+ h[u] = a === 1 ? e << 4 : a === 2 ? e : a === 3 ? e >> 4 : e >> 8;
2333
2334
  }
2334
- return c;
2335
+ return h;
2335
2336
  }
2336
- }, t.toRgbString = function(n, h = 16) {
2337
- const [a, c, u] = n;
2338
- return `rgb:${_(a, h)}/${_(c, h)}/${_(u, h)}`;
2337
+ }, t.toRgbString = function(n, c = 16) {
2338
+ const [a, h, u] = n;
2339
+ return `rgb:${_(a, c)}/${_(h, c)}/${_(u, c)}`;
2339
2340
  };
2340
2341
  }, 770: (w, t) => {
2341
2342
  Object.defineProperty(t, "__esModule", { value: !0 }), t.PAYLOAD_LIMIT = void 0, t.PAYLOAD_LIMIT = 1e7;
2342
2343
  }, 351: (w, t, l) => {
2343
2344
  Object.defineProperty(t, "__esModule", { value: !0 }), t.DcsHandler = t.DcsParser = void 0;
2344
- const d = l(482), _ = l(742), n = l(770), h = [];
2345
+ const d = l(482), _ = l(742), n = l(770), c = [];
2345
2346
  t.DcsParser = class {
2346
2347
  constructor() {
2347
- this._handlers = /* @__PURE__ */ Object.create(null), this._active = h, this._ident = 0, this._handlerFb = () => {
2348
+ this._handlers = /* @__PURE__ */ Object.create(null), this._active = c, this._ident = 0, this._handlerFb = () => {
2348
2349
  }, this._stack = { paused: !1, loopPosition: 0, fallThrough: !1 };
2349
2350
  }
2350
2351
  dispose() {
2351
2352
  this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2352
- }, this._active = h;
2353
+ }, this._active = c;
2353
2354
  }
2354
- registerHandler(c, u) {
2355
- this._handlers[c] === void 0 && (this._handlers[c] = []);
2356
- const e = this._handlers[c];
2355
+ registerHandler(h, u) {
2356
+ this._handlers[h] === void 0 && (this._handlers[h] = []);
2357
+ const e = this._handlers[h];
2357
2358
  return e.push(u), { dispose: () => {
2358
2359
  const r = e.indexOf(u);
2359
2360
  r !== -1 && e.splice(r, 1);
2360
2361
  } };
2361
2362
  }
2362
- clearHandler(c) {
2363
- this._handlers[c] && delete this._handlers[c];
2363
+ clearHandler(h) {
2364
+ this._handlers[h] && delete this._handlers[h];
2364
2365
  }
2365
- setHandlerFallback(c) {
2366
- this._handlerFb = c;
2366
+ setHandlerFallback(h) {
2367
+ this._handlerFb = h;
2367
2368
  }
2368
2369
  reset() {
2369
- if (this._active.length) for (let c = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; c >= 0; --c) this._active[c].unhook(!1);
2370
- this._stack.paused = !1, this._active = h, this._ident = 0;
2370
+ if (this._active.length) for (let h = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; h >= 0; --h) this._active[h].unhook(!1);
2371
+ this._stack.paused = !1, this._active = c, this._ident = 0;
2371
2372
  }
2372
- hook(c, u) {
2373
- if (this.reset(), this._ident = c, this._active = this._handlers[c] || h, this._active.length) for (let e = this._active.length - 1; e >= 0; e--) this._active[e].hook(u);
2373
+ hook(h, u) {
2374
+ if (this.reset(), this._ident = h, this._active = this._handlers[h] || c, this._active.length) for (let e = this._active.length - 1; e >= 0; e--) this._active[e].hook(u);
2374
2375
  else this._handlerFb(this._ident, "HOOK", u);
2375
2376
  }
2376
- put(c, u, e) {
2377
- if (this._active.length) for (let r = this._active.length - 1; r >= 0; r--) this._active[r].put(c, u, e);
2378
- else this._handlerFb(this._ident, "PUT", (0, d.utf32ToString)(c, u, e));
2377
+ put(h, u, e) {
2378
+ if (this._active.length) for (let r = this._active.length - 1; r >= 0; r--) this._active[r].put(h, u, e);
2379
+ else this._handlerFb(this._ident, "PUT", (0, d.utf32ToString)(h, u, e));
2379
2380
  }
2380
- unhook(c, u = !0) {
2381
+ unhook(h, u = !0) {
2381
2382
  if (this._active.length) {
2382
2383
  let e = !1, r = this._active.length - 1, i = !1;
2383
2384
  if (this._stack.paused && (r = this._stack.loopPosition - 1, e = u, i = this._stack.fallThrough, this._stack.paused = !1), !i && e === !1) {
2384
- for (; r >= 0 && (e = this._active[r].unhook(c), e !== !0); r--) if (e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = r, this._stack.fallThrough = !1, e;
2385
+ for (; r >= 0 && (e = this._active[r].unhook(h), e !== !0); r--) if (e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = r, this._stack.fallThrough = !1, e;
2385
2386
  r--;
2386
2387
  }
2387
2388
  for (; r >= 0; r--) if (e = this._active[r].unhook(!1), e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = r, this._stack.fallThrough = !0, e;
2388
- } else this._handlerFb(this._ident, "UNHOOK", c);
2389
- this._active = h, this._ident = 0;
2389
+ } else this._handlerFb(this._ident, "UNHOOK", h);
2390
+ this._active = c, this._ident = 0;
2390
2391
  }
2391
2392
  };
2392
2393
  const a = new _.Params();
2393
2394
  a.addParam(0), t.DcsHandler = class {
2394
- constructor(c) {
2395
- this._handler = c, this._data = "", this._params = a, this._hitLimit = !1;
2395
+ constructor(h) {
2396
+ this._handler = h, this._data = "", this._params = a, this._hitLimit = !1;
2396
2397
  }
2397
- hook(c) {
2398
- this._params = c.length > 1 || c.params[0] ? c.clone() : a, this._data = "", this._hitLimit = !1;
2398
+ hook(h) {
2399
+ this._params = h.length > 1 || h.params[0] ? h.clone() : a, this._data = "", this._hitLimit = !1;
2399
2400
  }
2400
- put(c, u, e) {
2401
- this._hitLimit || (this._data += (0, d.utf32ToString)(c, u, e), this._data.length > n.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2401
+ put(h, u, e) {
2402
+ this._hitLimit || (this._data += (0, d.utf32ToString)(h, u, e), this._data.length > n.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2402
2403
  }
2403
- unhook(c) {
2404
+ unhook(h) {
2404
2405
  let u = !1;
2405
2406
  if (this._hitLimit) u = !1;
2406
- else if (c && (u = this._handler(this._data, this._params), u instanceof Promise)) return u.then((e) => (this._params = a, this._data = "", this._hitLimit = !1, e));
2407
+ else if (h && (u = this._handler(this._data, this._params), u instanceof Promise)) return u.then((e) => (this._params = a, this._data = "", this._hitLimit = !1, e));
2407
2408
  return this._params = a, this._data = "", this._hitLimit = !1, u;
2408
2409
  }
2409
2410
  };
2410
2411
  }, 15: (w, t, l) => {
2411
2412
  Object.defineProperty(t, "__esModule", { value: !0 }), t.EscapeSequenceParser = t.VT500_TRANSITION_TABLE = t.TransitionTable = void 0;
2412
- const d = l(844), _ = l(742), n = l(242), h = l(351);
2413
+ const d = l(844), _ = l(742), n = l(242), c = l(351);
2413
2414
  class a {
2414
2415
  constructor(r) {
2415
2416
  this.table = new Uint8Array(r);
@@ -2425,14 +2426,14 @@ function ke() {
2425
2426
  }
2426
2427
  }
2427
2428
  t.TransitionTable = a;
2428
- const c = 160;
2429
+ const h = 160;
2429
2430
  t.VT500_TRANSITION_TABLE = function() {
2430
2431
  const e = new a(4095), r = Array.apply(null, Array(256)).map((y, C) => C), i = (y, C) => r.slice(y, C), s = i(32, 127), f = i(0, 24);
2431
2432
  f.push(25), f.push.apply(f, i(28, 32));
2432
2433
  const p = i(0, 14);
2433
2434
  let S;
2434
2435
  for (S in e.setDefault(1, 0), e.addMany(s, 0, 2, 0), p) e.addMany([24, 26, 153, 154], S, 3, 0), e.addMany(i(128, 144), S, 3, 0), e.addMany(i(144, 152), S, 3, 0), e.add(156, S, 0, 0), e.add(27, S, 11, 1), e.add(157, S, 4, 8), e.addMany([152, 158, 159], S, 0, 7), e.add(155, S, 11, 3), e.add(144, S, 11, 9);
2435
- return e.addMany(f, 0, 3, 0), e.addMany(f, 1, 3, 1), e.add(127, 1, 0, 1), e.addMany(f, 8, 0, 8), e.addMany(f, 3, 3, 3), e.add(127, 3, 0, 3), e.addMany(f, 4, 3, 4), e.add(127, 4, 0, 4), e.addMany(f, 6, 3, 6), e.addMany(f, 5, 3, 5), e.add(127, 5, 0, 5), e.addMany(f, 2, 3, 2), e.add(127, 2, 0, 2), e.add(93, 1, 4, 8), e.addMany(s, 8, 5, 8), e.add(127, 8, 5, 8), e.addMany([156, 27, 24, 26, 7], 8, 6, 0), e.addMany(i(28, 32), 8, 0, 8), e.addMany([88, 94, 95], 1, 0, 7), e.addMany(s, 7, 0, 7), e.addMany(f, 7, 0, 7), e.add(156, 7, 0, 0), e.add(127, 7, 0, 7), e.add(91, 1, 11, 3), e.addMany(i(64, 127), 3, 7, 0), e.addMany(i(48, 60), 3, 8, 4), e.addMany([60, 61, 62, 63], 3, 9, 4), e.addMany(i(48, 60), 4, 8, 4), e.addMany(i(64, 127), 4, 7, 0), e.addMany([60, 61, 62, 63], 4, 0, 6), e.addMany(i(32, 64), 6, 0, 6), e.add(127, 6, 0, 6), e.addMany(i(64, 127), 6, 0, 0), e.addMany(i(32, 48), 3, 9, 5), e.addMany(i(32, 48), 5, 9, 5), e.addMany(i(48, 64), 5, 0, 6), e.addMany(i(64, 127), 5, 7, 0), e.addMany(i(32, 48), 4, 9, 5), e.addMany(i(32, 48), 1, 9, 2), e.addMany(i(32, 48), 2, 9, 2), e.addMany(i(48, 127), 2, 10, 0), e.addMany(i(48, 80), 1, 10, 0), e.addMany(i(81, 88), 1, 10, 0), e.addMany([89, 90, 92], 1, 10, 0), e.addMany(i(96, 127), 1, 10, 0), e.add(80, 1, 11, 9), e.addMany(f, 9, 0, 9), e.add(127, 9, 0, 9), e.addMany(i(28, 32), 9, 0, 9), e.addMany(i(32, 48), 9, 9, 12), e.addMany(i(48, 60), 9, 8, 10), e.addMany([60, 61, 62, 63], 9, 9, 10), e.addMany(f, 11, 0, 11), e.addMany(i(32, 128), 11, 0, 11), e.addMany(i(28, 32), 11, 0, 11), e.addMany(f, 10, 0, 10), e.add(127, 10, 0, 10), e.addMany(i(28, 32), 10, 0, 10), e.addMany(i(48, 60), 10, 8, 10), e.addMany([60, 61, 62, 63], 10, 0, 11), e.addMany(i(32, 48), 10, 9, 12), e.addMany(f, 12, 0, 12), e.add(127, 12, 0, 12), e.addMany(i(28, 32), 12, 0, 12), e.addMany(i(32, 48), 12, 9, 12), e.addMany(i(48, 64), 12, 0, 11), e.addMany(i(64, 127), 12, 12, 13), e.addMany(i(64, 127), 10, 12, 13), e.addMany(i(64, 127), 9, 12, 13), e.addMany(f, 13, 13, 13), e.addMany(s, 13, 13, 13), e.add(127, 13, 0, 13), e.addMany([27, 156, 24, 26], 13, 14, 0), e.add(c, 0, 2, 0), e.add(c, 8, 5, 8), e.add(c, 6, 0, 6), e.add(c, 11, 0, 11), e.add(c, 13, 13, 13), e;
2436
+ return e.addMany(f, 0, 3, 0), e.addMany(f, 1, 3, 1), e.add(127, 1, 0, 1), e.addMany(f, 8, 0, 8), e.addMany(f, 3, 3, 3), e.add(127, 3, 0, 3), e.addMany(f, 4, 3, 4), e.add(127, 4, 0, 4), e.addMany(f, 6, 3, 6), e.addMany(f, 5, 3, 5), e.add(127, 5, 0, 5), e.addMany(f, 2, 3, 2), e.add(127, 2, 0, 2), e.add(93, 1, 4, 8), e.addMany(s, 8, 5, 8), e.add(127, 8, 5, 8), e.addMany([156, 27, 24, 26, 7], 8, 6, 0), e.addMany(i(28, 32), 8, 0, 8), e.addMany([88, 94, 95], 1, 0, 7), e.addMany(s, 7, 0, 7), e.addMany(f, 7, 0, 7), e.add(156, 7, 0, 0), e.add(127, 7, 0, 7), e.add(91, 1, 11, 3), e.addMany(i(64, 127), 3, 7, 0), e.addMany(i(48, 60), 3, 8, 4), e.addMany([60, 61, 62, 63], 3, 9, 4), e.addMany(i(48, 60), 4, 8, 4), e.addMany(i(64, 127), 4, 7, 0), e.addMany([60, 61, 62, 63], 4, 0, 6), e.addMany(i(32, 64), 6, 0, 6), e.add(127, 6, 0, 6), e.addMany(i(64, 127), 6, 0, 0), e.addMany(i(32, 48), 3, 9, 5), e.addMany(i(32, 48), 5, 9, 5), e.addMany(i(48, 64), 5, 0, 6), e.addMany(i(64, 127), 5, 7, 0), e.addMany(i(32, 48), 4, 9, 5), e.addMany(i(32, 48), 1, 9, 2), e.addMany(i(32, 48), 2, 9, 2), e.addMany(i(48, 127), 2, 10, 0), e.addMany(i(48, 80), 1, 10, 0), e.addMany(i(81, 88), 1, 10, 0), e.addMany([89, 90, 92], 1, 10, 0), e.addMany(i(96, 127), 1, 10, 0), e.add(80, 1, 11, 9), e.addMany(f, 9, 0, 9), e.add(127, 9, 0, 9), e.addMany(i(28, 32), 9, 0, 9), e.addMany(i(32, 48), 9, 9, 12), e.addMany(i(48, 60), 9, 8, 10), e.addMany([60, 61, 62, 63], 9, 9, 10), e.addMany(f, 11, 0, 11), e.addMany(i(32, 128), 11, 0, 11), e.addMany(i(28, 32), 11, 0, 11), e.addMany(f, 10, 0, 10), e.add(127, 10, 0, 10), e.addMany(i(28, 32), 10, 0, 10), e.addMany(i(48, 60), 10, 8, 10), e.addMany([60, 61, 62, 63], 10, 0, 11), e.addMany(i(32, 48), 10, 9, 12), e.addMany(f, 12, 0, 12), e.add(127, 12, 0, 12), e.addMany(i(28, 32), 12, 0, 12), e.addMany(i(32, 48), 12, 9, 12), e.addMany(i(48, 64), 12, 0, 11), e.addMany(i(64, 127), 12, 12, 13), e.addMany(i(64, 127), 10, 12, 13), e.addMany(i(64, 127), 9, 12, 13), e.addMany(f, 13, 13, 13), e.addMany(s, 13, 13, 13), e.add(127, 13, 0, 13), e.addMany([27, 156, 24, 26], 13, 14, 0), e.add(h, 0, 2, 0), e.add(h, 8, 5, 8), e.add(h, 6, 0, 6), e.add(h, 11, 0, 11), e.add(h, 13, 13, 13), e;
2436
2437
  }();
2437
2438
  class u extends d.Disposable {
2438
2439
  constructor(r = t.VT500_TRANSITION_TABLE) {
@@ -2442,7 +2443,7 @@ function ke() {
2442
2443
  }, this._escHandlerFb = (i) => {
2443
2444
  }, this._errorHandlerFb = (i) => i, this._printHandler = this._printHandlerFb, this._executeHandlers = /* @__PURE__ */ Object.create(null), this._csiHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null), this.register((0, d.toDisposable)(() => {
2444
2445
  this._csiHandlers = /* @__PURE__ */ Object.create(null), this._executeHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null);
2445
- })), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new h.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, () => !0);
2446
+ })), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new c.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, () => !0);
2446
2447
  }
2447
2448
  _identifier(r, i = [64, 126]) {
2448
2449
  let s = 0;
@@ -2574,22 +2575,22 @@ function ke() {
2574
2575
  this._parseStack.state = 0, y = this._parseStack.chunkPos + 1, this.precedingJoinState = 0, this.currentState = 15 & this._parseStack.transition;
2575
2576
  }
2576
2577
  for (let C = y; C < i; ++C) {
2577
- switch (p = r[C], S = this._transitions.table[this.currentState << 8 | (p < 160 ? p : c)], S >> 4) {
2578
+ switch (p = r[C], S = this._transitions.table[this.currentState << 8 | (p < 160 ? p : h)], S >> 4) {
2578
2579
  case 2:
2579
2580
  for (let T = C + 1; ; ++T) {
2580
- if (T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2581
+ if (T >= i || (p = r[T]) < 32 || p > 126 && p < h) {
2581
2582
  this._printHandler(r, C, T), C = T - 1;
2582
2583
  break;
2583
2584
  }
2584
- if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2585
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < h) {
2585
2586
  this._printHandler(r, C, T), C = T - 1;
2586
2587
  break;
2587
2588
  }
2588
- if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2589
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < h) {
2589
2590
  this._printHandler(r, C, T), C = T - 1;
2590
2591
  break;
2591
2592
  }
2592
- if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2593
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < h) {
2593
2594
  this._printHandler(r, C, T), C = T - 1;
2594
2595
  break;
2595
2596
  }
@@ -2640,7 +2641,7 @@ function ke() {
2640
2641
  this._dcsParser.hook(this._collect << 8 | p, this._params);
2641
2642
  break;
2642
2643
  case 13:
2643
- for (let T = C + 1; ; ++T) if (T >= i || (p = r[T]) === 24 || p === 26 || p === 27 || p > 127 && p < c) {
2644
+ for (let T = C + 1; ; ++T) if (T >= i || (p = r[T]) === 24 || p === 26 || p === 27 || p > 127 && p < h) {
2644
2645
  this._dcsParser.put(r, C, T), C = T - 1;
2645
2646
  break;
2646
2647
  }
@@ -2653,7 +2654,7 @@ function ke() {
2653
2654
  this._oscParser.start();
2654
2655
  break;
2655
2656
  case 5:
2656
- for (let T = C + 1; ; T++) if (T >= i || (p = r[T]) < 32 || p > 127 && p < c) {
2657
+ for (let T = C + 1; ; T++) if (T >= i || (p = r[T]) < 32 || p > 127 && p < h) {
2657
2658
  this._oscParser.put(r, C, T), C = T - 1;
2658
2659
  break;
2659
2660
  }
@@ -2675,43 +2676,43 @@ function ke() {
2675
2676
  this._state = 0, this._active = n, this._id = -1, this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2676
2677
  }, this._stack = { paused: !1, loopPosition: 0, fallThrough: !1 };
2677
2678
  }
2678
- registerHandler(h, a) {
2679
- this._handlers[h] === void 0 && (this._handlers[h] = []);
2680
- const c = this._handlers[h];
2681
- return c.push(a), { dispose: () => {
2682
- const u = c.indexOf(a);
2683
- u !== -1 && c.splice(u, 1);
2679
+ registerHandler(c, a) {
2680
+ this._handlers[c] === void 0 && (this._handlers[c] = []);
2681
+ const h = this._handlers[c];
2682
+ return h.push(a), { dispose: () => {
2683
+ const u = h.indexOf(a);
2684
+ u !== -1 && h.splice(u, 1);
2684
2685
  } };
2685
2686
  }
2686
- clearHandler(h) {
2687
- this._handlers[h] && delete this._handlers[h];
2687
+ clearHandler(c) {
2688
+ this._handlers[c] && delete this._handlers[c];
2688
2689
  }
2689
- setHandlerFallback(h) {
2690
- this._handlerFb = h;
2690
+ setHandlerFallback(c) {
2691
+ this._handlerFb = c;
2691
2692
  }
2692
2693
  dispose() {
2693
2694
  this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2694
2695
  }, this._active = n;
2695
2696
  }
2696
2697
  reset() {
2697
- if (this._state === 2) for (let h = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; h >= 0; --h) this._active[h].end(!1);
2698
+ if (this._state === 2) for (let c = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; c >= 0; --c) this._active[c].end(!1);
2698
2699
  this._stack.paused = !1, this._active = n, this._id = -1, this._state = 0;
2699
2700
  }
2700
2701
  _start() {
2701
- if (this._active = this._handlers[this._id] || n, this._active.length) for (let h = this._active.length - 1; h >= 0; h--) this._active[h].start();
2702
+ if (this._active = this._handlers[this._id] || n, this._active.length) for (let c = this._active.length - 1; c >= 0; c--) this._active[c].start();
2702
2703
  else this._handlerFb(this._id, "START");
2703
2704
  }
2704
- _put(h, a, c) {
2705
- if (this._active.length) for (let u = this._active.length - 1; u >= 0; u--) this._active[u].put(h, a, c);
2706
- else this._handlerFb(this._id, "PUT", (0, _.utf32ToString)(h, a, c));
2705
+ _put(c, a, h) {
2706
+ if (this._active.length) for (let u = this._active.length - 1; u >= 0; u--) this._active[u].put(c, a, h);
2707
+ else this._handlerFb(this._id, "PUT", (0, _.utf32ToString)(c, a, h));
2707
2708
  }
2708
2709
  start() {
2709
2710
  this.reset(), this._state = 1;
2710
2711
  }
2711
- put(h, a, c) {
2712
+ put(c, a, h) {
2712
2713
  if (this._state !== 3) {
2713
- if (this._state === 1) for (; a < c; ) {
2714
- const u = h[a++];
2714
+ if (this._state === 1) for (; a < h; ) {
2715
+ const u = c[a++];
2715
2716
  if (u === 59) {
2716
2717
  this._state = 2, this._start();
2717
2718
  break;
@@ -2719,36 +2720,36 @@ function ke() {
2719
2720
  if (u < 48 || 57 < u) return void (this._state = 3);
2720
2721
  this._id === -1 && (this._id = 0), this._id = 10 * this._id + u - 48;
2721
2722
  }
2722
- this._state === 2 && c - a > 0 && this._put(h, a, c);
2723
+ this._state === 2 && h - a > 0 && this._put(c, a, h);
2723
2724
  }
2724
2725
  }
2725
- end(h, a = !0) {
2726
+ end(c, a = !0) {
2726
2727
  if (this._state !== 0) {
2727
2728
  if (this._state !== 3) if (this._state === 1 && this._start(), this._active.length) {
2728
- let c = !1, u = this._active.length - 1, e = !1;
2729
- if (this._stack.paused && (u = this._stack.loopPosition - 1, c = a, e = this._stack.fallThrough, this._stack.paused = !1), !e && c === !1) {
2730
- for (; u >= 0 && (c = this._active[u].end(h), c !== !0); u--) if (c instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !1, c;
2729
+ let h = !1, u = this._active.length - 1, e = !1;
2730
+ if (this._stack.paused && (u = this._stack.loopPosition - 1, h = a, e = this._stack.fallThrough, this._stack.paused = !1), !e && h === !1) {
2731
+ for (; u >= 0 && (h = this._active[u].end(c), h !== !0); u--) if (h instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !1, h;
2731
2732
  u--;
2732
2733
  }
2733
- for (; u >= 0; u--) if (c = this._active[u].end(!1), c instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !0, c;
2734
- } else this._handlerFb(this._id, "END", h);
2734
+ for (; u >= 0; u--) if (h = this._active[u].end(!1), h instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !0, h;
2735
+ } else this._handlerFb(this._id, "END", c);
2735
2736
  this._active = n, this._id = -1, this._state = 0;
2736
2737
  }
2737
2738
  }
2738
2739
  }, t.OscHandler = class {
2739
- constructor(h) {
2740
- this._handler = h, this._data = "", this._hitLimit = !1;
2740
+ constructor(c) {
2741
+ this._handler = c, this._data = "", this._hitLimit = !1;
2741
2742
  }
2742
2743
  start() {
2743
2744
  this._data = "", this._hitLimit = !1;
2744
2745
  }
2745
- put(h, a, c) {
2746
- this._hitLimit || (this._data += (0, _.utf32ToString)(h, a, c), this._data.length > d.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2746
+ put(c, a, h) {
2747
+ this._hitLimit || (this._data += (0, _.utf32ToString)(c, a, h), this._data.length > d.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2747
2748
  }
2748
- end(h) {
2749
+ end(c) {
2749
2750
  let a = !1;
2750
2751
  if (this._hitLimit) a = !1;
2751
- else if (h && (a = this._handler(this._data), a instanceof Promise)) return a.then((c) => (this._data = "", this._hitLimit = !1, c));
2752
+ else if (c && (a = this._handler(this._data), a instanceof Promise)) return a.then((h) => (this._data = "", this._hitLimit = !1, h));
2752
2753
  return this._data = "", this._hitLimit = !1, a;
2753
2754
  }
2754
2755
  };
@@ -2757,18 +2758,18 @@ function ke() {
2757
2758
  const l = 2147483647;
2758
2759
  class d {
2759
2760
  static fromArray(n) {
2760
- const h = new d();
2761
- if (!n.length) return h;
2761
+ const c = new d();
2762
+ if (!n.length) return c;
2762
2763
  for (let a = Array.isArray(n[0]) ? 1 : 0; a < n.length; ++a) {
2763
- const c = n[a];
2764
- if (Array.isArray(c)) for (let u = 0; u < c.length; ++u) h.addSubParam(c[u]);
2765
- else h.addParam(c);
2764
+ const h = n[a];
2765
+ if (Array.isArray(h)) for (let u = 0; u < h.length; ++u) c.addSubParam(h[u]);
2766
+ else c.addParam(h);
2766
2767
  }
2767
- return h;
2768
+ return c;
2768
2769
  }
2769
- constructor(n = 32, h = 32) {
2770
- if (this.maxLength = n, this.maxSubParamsLength = h, h > 256) throw new Error("maxSubParamsLength must not be greater than 256");
2771
- this.params = new Int32Array(n), this.length = 0, this._subParams = new Int32Array(h), this._subParamsLength = 0, this._subParamsIdx = new Uint16Array(n), this._rejectDigits = !1, this._rejectSubDigits = !1, this._digitIsSub = !1;
2770
+ constructor(n = 32, c = 32) {
2771
+ if (this.maxLength = n, this.maxSubParamsLength = c, c > 256) throw new Error("maxSubParamsLength must not be greater than 256");
2772
+ this.params = new Int32Array(n), this.length = 0, this._subParams = new Int32Array(c), this._subParamsLength = 0, this._subParamsIdx = new Uint16Array(n), this._rejectDigits = !1, this._rejectSubDigits = !1, this._digitIsSub = !1;
2772
2773
  }
2773
2774
  clone() {
2774
2775
  const n = new d(this.maxLength, this.maxSubParamsLength);
@@ -2776,10 +2777,10 @@ function ke() {
2776
2777
  }
2777
2778
  toArray() {
2778
2779
  const n = [];
2779
- for (let h = 0; h < this.length; ++h) {
2780
- n.push(this.params[h]);
2781
- const a = this._subParamsIdx[h] >> 8, c = 255 & this._subParamsIdx[h];
2782
- c - a > 0 && n.push(Array.prototype.slice.call(this._subParams, a, c));
2780
+ for (let c = 0; c < this.length; ++c) {
2781
+ n.push(this.params[c]);
2782
+ const a = this._subParamsIdx[c] >> 8, h = 255 & this._subParamsIdx[c];
2783
+ h - a > 0 && n.push(Array.prototype.slice.call(this._subParams, a, h));
2783
2784
  }
2784
2785
  return n;
2785
2786
  }
@@ -2804,22 +2805,22 @@ function ke() {
2804
2805
  return (255 & this._subParamsIdx[n]) - (this._subParamsIdx[n] >> 8) > 0;
2805
2806
  }
2806
2807
  getSubParams(n) {
2807
- const h = this._subParamsIdx[n] >> 8, a = 255 & this._subParamsIdx[n];
2808
- return a - h > 0 ? this._subParams.subarray(h, a) : null;
2808
+ const c = this._subParamsIdx[n] >> 8, a = 255 & this._subParamsIdx[n];
2809
+ return a - c > 0 ? this._subParams.subarray(c, a) : null;
2809
2810
  }
2810
2811
  getSubParamsAll() {
2811
2812
  const n = {};
2812
- for (let h = 0; h < this.length; ++h) {
2813
- const a = this._subParamsIdx[h] >> 8, c = 255 & this._subParamsIdx[h];
2814
- c - a > 0 && (n[h] = this._subParams.slice(a, c));
2813
+ for (let c = 0; c < this.length; ++c) {
2814
+ const a = this._subParamsIdx[c] >> 8, h = 255 & this._subParamsIdx[c];
2815
+ h - a > 0 && (n[c] = this._subParams.slice(a, h));
2815
2816
  }
2816
2817
  return n;
2817
2818
  }
2818
2819
  addDigit(n) {
2819
- let h;
2820
- if (this._rejectDigits || !(h = this._digitIsSub ? this._subParamsLength : this.length) || this._digitIsSub && this._rejectSubDigits) return;
2821
- const a = this._digitIsSub ? this._subParams : this.params, c = a[h - 1];
2822
- a[h - 1] = ~c ? Math.min(10 * c + n, l) : n;
2820
+ let c;
2821
+ if (this._rejectDigits || !(c = this._digitIsSub ? this._subParamsLength : this.length) || this._digitIsSub && this._rejectSubDigits) return;
2822
+ const a = this._digitIsSub ? this._subParams : this.params, h = a[c - 1];
2823
+ a[c - 1] = ~h ? Math.min(10 * h + n, l) : n;
2823
2824
  }
2824
2825
  }
2825
2826
  t.Params = d;
@@ -2850,8 +2851,8 @@ function ke() {
2850
2851
  Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferApiView = void 0;
2851
2852
  const d = l(785), _ = l(511);
2852
2853
  t.BufferApiView = class {
2853
- constructor(n, h) {
2854
- this._buffer = n, this.type = h;
2854
+ constructor(n, c) {
2855
+ this._buffer = n, this.type = c;
2855
2856
  }
2856
2857
  init(n) {
2857
2858
  return this._buffer = n, this;
@@ -2872,8 +2873,8 @@ function ke() {
2872
2873
  return this._buffer.lines.length;
2873
2874
  }
2874
2875
  getLine(n) {
2875
- const h = this._buffer.lines.get(n);
2876
- if (h) return new d.BufferLineApiView(h);
2876
+ const c = this._buffer.lines.get(n);
2877
+ if (c) return new d.BufferLineApiView(c);
2877
2878
  }
2878
2879
  getNullCell() {
2879
2880
  return new _.CellData();
@@ -2895,16 +2896,16 @@ function ke() {
2895
2896
  getCell(_, n) {
2896
2897
  if (!(_ < 0 || _ >= this._line.length)) return n ? (this._line.loadCell(_, n), n) : this._line.loadCell(_, new d.CellData());
2897
2898
  }
2898
- translateToString(_, n, h) {
2899
- return this._line.translateToString(_, n, h);
2899
+ translateToString(_, n, c) {
2900
+ return this._line.translateToString(_, n, c);
2900
2901
  }
2901
2902
  };
2902
2903
  }, 285: (w, t, l) => {
2903
2904
  Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferNamespaceApi = void 0;
2904
2905
  const d = l(771), _ = l(460), n = l(844);
2905
- class h extends n.Disposable {
2906
- constructor(c) {
2907
- super(), this._core = c, this._onBufferChange = this.register(new _.EventEmitter()), this.onBufferChange = this._onBufferChange.event, this._normal = new d.BufferApiView(this._core.buffers.normal, "normal"), this._alternate = new d.BufferApiView(this._core.buffers.alt, "alternate"), this._core.buffers.onBufferActivate(() => this._onBufferChange.fire(this.active));
2906
+ class c extends n.Disposable {
2907
+ constructor(h) {
2908
+ super(), this._core = h, this._onBufferChange = this.register(new _.EventEmitter()), this.onBufferChange = this._onBufferChange.event, this._normal = new d.BufferApiView(this._core.buffers.normal, "normal"), this._alternate = new d.BufferApiView(this._core.buffers.alt, "alternate"), this._core.buffers.onBufferActivate(() => this._onBufferChange.fire(this.active));
2908
2909
  }
2909
2910
  get active() {
2910
2911
  if (this._core.buffers.active === this._core.buffers.normal) return this.normal;
@@ -2918,7 +2919,7 @@ function ke() {
2918
2919
  return this._alternate.init(this._core.buffers.alt);
2919
2920
  }
2920
2921
  }
2921
- t.BufferNamespaceApi = h;
2922
+ t.BufferNamespaceApi = c;
2922
2923
  }, 975: (w, t) => {
2923
2924
  Object.defineProperty(t, "__esModule", { value: !0 }), t.ParserApi = void 0, t.ParserApi = class {
2924
2925
  constructor(l) {
@@ -2979,9 +2980,9 @@ function ke() {
2979
2980
  };
2980
2981
  };
2981
2982
  Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferService = t.MINIMUM_ROWS = t.MINIMUM_COLS = void 0;
2982
- const n = l(460), h = l(844), a = l(295), c = l(585);
2983
+ const n = l(460), c = l(844), a = l(295), h = l(585);
2983
2984
  t.MINIMUM_COLS = 2, t.MINIMUM_ROWS = 1;
2984
- let u = t.BufferService = class extends h.Disposable {
2985
+ let u = t.BufferService = class extends c.Disposable {
2985
2986
  get buffer() {
2986
2987
  return this.buffers.active;
2987
2988
  }
@@ -3018,7 +3019,7 @@ function ke() {
3018
3019
  s.ydisp = Math.max(Math.min(s.ydisp + e, s.ybase), 0), f !== s.ydisp && (r || this._onScroll.fire(s.ydisp));
3019
3020
  }
3020
3021
  };
3021
- t.BufferService = u = d([_(0, c.IOptionsService)], u);
3022
+ t.BufferService = u = d([_(0, h.IOptionsService)], u);
3022
3023
  }, 994: (w, t) => {
3023
3024
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CharsetService = void 0, t.CharsetService = class {
3024
3025
  constructor() {
@@ -3046,7 +3047,7 @@ function ke() {
3046
3047
  };
3047
3048
  };
3048
3049
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreMouseService = void 0;
3049
- const n = l(585), h = l(460), a = l(844), c = { NONE: { events: 0, restrict: () => !1 }, X10: { events: 1, restrict: (s) => s.button !== 4 && s.action === 1 && (s.ctrl = !1, s.alt = !1, s.shift = !1, !0) }, VT200: { events: 19, restrict: (s) => s.action !== 32 }, DRAG: { events: 23, restrict: (s) => s.action !== 32 || s.button !== 3 }, ANY: { events: 31, restrict: (s) => !0 } };
3050
+ const n = l(585), c = l(460), a = l(844), h = { NONE: { events: 0, restrict: () => !1 }, X10: { events: 1, restrict: (s) => s.button !== 4 && s.action === 1 && (s.ctrl = !1, s.alt = !1, s.shift = !1, !0) }, VT200: { events: 19, restrict: (s) => s.action !== 32 }, DRAG: { events: 23, restrict: (s) => s.action !== 32 || s.button !== 3 }, ANY: { events: 31, restrict: (s) => !0 } };
3050
3051
  function u(s, f) {
3051
3052
  let p = (s.ctrl ? 16 : 0) | (s.shift ? 4 : 0) | (s.alt ? 8 : 0);
3052
3053
  return s.button === 4 ? (p |= 64, p |= s.action) : (p |= 3 & s.button, 4 & s.button && (p |= 64), 8 & s.button && (p |= 128), s.action === 32 ? p |= 32 : s.action !== 0 || f || (p |= 3)), p;
@@ -3063,8 +3064,8 @@ function ke() {
3063
3064
  } };
3064
3065
  let i = t.CoreMouseService = class extends a.Disposable {
3065
3066
  constructor(s, f) {
3066
- super(), this._bufferService = s, this._coreService = f, this._protocols = {}, this._encodings = {}, this._activeProtocol = "", this._activeEncoding = "", this._lastEvent = null, this._onProtocolChange = this.register(new h.EventEmitter()), this.onProtocolChange = this._onProtocolChange.event;
3067
- for (const p of Object.keys(c)) this.addProtocol(p, c[p]);
3067
+ super(), this._bufferService = s, this._coreService = f, this._protocols = {}, this._encodings = {}, this._activeProtocol = "", this._activeEncoding = "", this._lastEvent = null, this._onProtocolChange = this.register(new c.EventEmitter()), this.onProtocolChange = this._onProtocolChange.event;
3068
+ for (const p of Object.keys(h)) this.addProtocol(p, h[p]);
3068
3069
  for (const p of Object.keys(r)) this.addEncoding(p, r[p]);
3069
3070
  this.reset();
3070
3071
  }
@@ -3122,10 +3123,10 @@ function ke() {
3122
3123
  };
3123
3124
  };
3124
3125
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreService = void 0;
3125
- const n = l(439), h = l(460), a = l(844), c = l(585), u = Object.freeze({ insertMode: !1 }), e = Object.freeze({ applicationCursorKeys: !1, applicationKeypad: !1, bracketedPasteMode: !1, origin: !1, reverseWraparound: !1, sendFocus: !1, wraparound: !0 });
3126
+ const n = l(439), c = l(460), a = l(844), h = l(585), u = Object.freeze({ insertMode: !1 }), e = Object.freeze({ applicationCursorKeys: !1, applicationKeypad: !1, bracketedPasteMode: !1, origin: !1, reverseWraparound: !1, sendFocus: !1, wraparound: !0 });
3126
3127
  let r = t.CoreService = class extends a.Disposable {
3127
3128
  constructor(i, s, f) {
3128
- super(), this._bufferService = i, this._logService = s, this._optionsService = f, this.isCursorInitialized = !1, this.isCursorHidden = !1, this._onData = this.register(new h.EventEmitter()), this.onData = this._onData.event, this._onUserInput = this.register(new h.EventEmitter()), this.onUserInput = this._onUserInput.event, this._onBinary = this.register(new h.EventEmitter()), this.onBinary = this._onBinary.event, this._onRequestScrollToBottom = this.register(new h.EventEmitter()), this.onRequestScrollToBottom = this._onRequestScrollToBottom.event, this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
3129
+ super(), this._bufferService = i, this._logService = s, this._optionsService = f, this.isCursorInitialized = !1, this.isCursorHidden = !1, this._onData = this.register(new c.EventEmitter()), this.onData = this._onData.event, this._onUserInput = this.register(new c.EventEmitter()), this.onUserInput = this._onUserInput.event, this._onBinary = this.register(new c.EventEmitter()), this.onBinary = this._onBinary.event, this._onRequestScrollToBottom = this.register(new c.EventEmitter()), this.onRequestScrollToBottom = this._onRequestScrollToBottom.event, this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
3129
3130
  }
3130
3131
  reset() {
3131
3132
  this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
@@ -3139,21 +3140,21 @@ function ke() {
3139
3140
  this._optionsService.rawOptions.disableStdin || (this._logService.debug(`sending binary "${i}"`, () => i.split("").map((s) => s.charCodeAt(0))), this._onBinary.fire(i));
3140
3141
  }
3141
3142
  };
3142
- t.CoreService = r = d([_(0, c.IBufferService), _(1, c.ILogService), _(2, c.IOptionsService)], r);
3143
+ t.CoreService = r = d([_(0, h.IBufferService), _(1, h.ILogService), _(2, h.IOptionsService)], r);
3143
3144
  }, 348: (w, t, l) => {
3144
3145
  Object.defineProperty(t, "__esModule", { value: !0 }), t.InstantiationService = t.ServiceCollection = void 0;
3145
3146
  const d = l(585), _ = l(343);
3146
3147
  class n {
3147
3148
  constructor(...a) {
3148
3149
  this._entries = /* @__PURE__ */ new Map();
3149
- for (const [c, u] of a) this.set(c, u);
3150
+ for (const [h, u] of a) this.set(h, u);
3150
3151
  }
3151
- set(a, c) {
3152
+ set(a, h) {
3152
3153
  const u = this._entries.get(a);
3153
- return this._entries.set(a, c), u;
3154
+ return this._entries.set(a, h), u;
3154
3155
  }
3155
3156
  forEach(a) {
3156
- for (const [c, u] of this._entries.entries()) a(c, u);
3157
+ for (const [h, u] of this._entries.entries()) a(h, u);
3157
3158
  }
3158
3159
  has(a) {
3159
3160
  return this._entries.has(a);
@@ -3166,22 +3167,22 @@ function ke() {
3166
3167
  constructor() {
3167
3168
  this._services = new n(), this._services.set(d.IInstantiationService, this);
3168
3169
  }
3169
- setService(h, a) {
3170
- this._services.set(h, a);
3170
+ setService(c, a) {
3171
+ this._services.set(c, a);
3171
3172
  }
3172
- getService(h) {
3173
- return this._services.get(h);
3173
+ getService(c) {
3174
+ return this._services.get(c);
3174
3175
  }
3175
- createInstance(h, ...a) {
3176
- const c = (0, _.getServiceDependencies)(h).sort((r, i) => r.index - i.index), u = [];
3177
- for (const r of c) {
3176
+ createInstance(c, ...a) {
3177
+ const h = (0, _.getServiceDependencies)(c).sort((r, i) => r.index - i.index), u = [];
3178
+ for (const r of h) {
3178
3179
  const i = this._services.get(r.id);
3179
- if (!i) throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${r.id}.`);
3180
+ if (!i) throw new Error(`[createInstance] ${c.name} depends on UNKNOWN service ${r.id}.`);
3180
3181
  u.push(i);
3181
3182
  }
3182
- const e = c.length > 0 ? c[0].index : a.length;
3183
- if (a.length !== e) throw new Error(`[createInstance] First service dependency of ${h.name} at position ${e + 1} conflicts with ${a.length} static arguments`);
3184
- return new h(...a, ...u);
3183
+ const e = h.length > 0 ? h[0].index : a.length;
3184
+ if (a.length !== e) throw new Error(`[createInstance] First service dependency of ${c.name} at position ${e + 1} conflicts with ${a.length} static arguments`);
3185
+ return new c(...a, ...u);
3185
3186
  }
3186
3187
  };
3187
3188
  }, 866: function(w, t, l) {
@@ -3196,13 +3197,13 @@ function ke() {
3196
3197
  };
3197
3198
  };
3198
3199
  Object.defineProperty(t, "__esModule", { value: !0 }), t.traceCall = t.setTraceLogger = t.LogService = void 0;
3199
- const n = l(844), h = l(585), a = { trace: h.LogLevelEnum.TRACE, debug: h.LogLevelEnum.DEBUG, info: h.LogLevelEnum.INFO, warn: h.LogLevelEnum.WARN, error: h.LogLevelEnum.ERROR, off: h.LogLevelEnum.OFF };
3200
- let c, u = t.LogService = class extends n.Disposable {
3200
+ const n = l(844), c = l(585), a = { trace: c.LogLevelEnum.TRACE, debug: c.LogLevelEnum.DEBUG, info: c.LogLevelEnum.INFO, warn: c.LogLevelEnum.WARN, error: c.LogLevelEnum.ERROR, off: c.LogLevelEnum.OFF };
3201
+ let h, u = t.LogService = class extends n.Disposable {
3201
3202
  get logLevel() {
3202
3203
  return this._logLevel;
3203
3204
  }
3204
3205
  constructor(e) {
3205
- super(), this._optionsService = e, this._logLevel = h.LogLevelEnum.OFF, this._updateLogLevel(), this.register(this._optionsService.onSpecificOptionChange("logLevel", () => this._updateLogLevel())), c = this;
3206
+ super(), this._optionsService = e, this._logLevel = c.LogLevelEnum.OFF, this._updateLogLevel(), this.register(this._optionsService.onSpecificOptionChange("logLevel", () => this._updateLogLevel())), h = this;
3206
3207
  }
3207
3208
  _updateLogLevel() {
3208
3209
  this._logLevel = a[this._optionsService.rawOptions.logLevel];
@@ -3214,38 +3215,38 @@ function ke() {
3214
3215
  this._evalLazyOptionalParams(i), e.call(console, (this._optionsService.options.logger ? "" : "xterm.js: ") + r, ...i);
3215
3216
  }
3216
3217
  trace(e, ...r) {
3217
- this._logLevel <= h.LogLevelEnum.TRACE && this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger) ?? console.log, e, r);
3218
+ this._logLevel <= c.LogLevelEnum.TRACE && this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger) ?? console.log, e, r);
3218
3219
  }
3219
3220
  debug(e, ...r) {
3220
- this._logLevel <= h.LogLevelEnum.DEBUG && this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger) ?? console.log, e, r);
3221
+ this._logLevel <= c.LogLevelEnum.DEBUG && this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger) ?? console.log, e, r);
3221
3222
  }
3222
3223
  info(e, ...r) {
3223
- this._logLevel <= h.LogLevelEnum.INFO && this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger) ?? console.info, e, r);
3224
+ this._logLevel <= c.LogLevelEnum.INFO && this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger) ?? console.info, e, r);
3224
3225
  }
3225
3226
  warn(e, ...r) {
3226
- this._logLevel <= h.LogLevelEnum.WARN && this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger) ?? console.warn, e, r);
3227
+ this._logLevel <= c.LogLevelEnum.WARN && this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger) ?? console.warn, e, r);
3227
3228
  }
3228
3229
  error(e, ...r) {
3229
- this._logLevel <= h.LogLevelEnum.ERROR && this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger) ?? console.error, e, r);
3230
+ this._logLevel <= c.LogLevelEnum.ERROR && this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger) ?? console.error, e, r);
3230
3231
  }
3231
3232
  };
3232
- t.LogService = u = d([_(0, h.IOptionsService)], u), t.setTraceLogger = function(e) {
3233
- c = e;
3233
+ t.LogService = u = d([_(0, c.IOptionsService)], u), t.setTraceLogger = function(e) {
3234
+ h = e;
3234
3235
  }, t.traceCall = function(e, r, i) {
3235
3236
  if (typeof i.value != "function") throw new Error("not supported");
3236
3237
  const s = i.value;
3237
3238
  i.value = function(...f) {
3238
- if (c.logLevel !== h.LogLevelEnum.TRACE) return s.apply(this, f);
3239
- c.trace(`GlyphRenderer#${s.name}(${f.map((S) => JSON.stringify(S)).join(", ")})`);
3239
+ if (h.logLevel !== c.LogLevelEnum.TRACE) return s.apply(this, f);
3240
+ h.trace(`GlyphRenderer#${s.name}(${f.map((S) => JSON.stringify(S)).join(", ")})`);
3240
3241
  const p = s.apply(this, f);
3241
- return c.trace(`GlyphRenderer#${s.name} return`, p), p;
3242
+ return h.trace(`GlyphRenderer#${s.name} return`, p), p;
3242
3243
  };
3243
3244
  };
3244
3245
  }, 302: (w, t, l) => {
3245
3246
  Object.defineProperty(t, "__esModule", { value: !0 }), t.OptionsService = t.DEFAULT_OPTIONS = void 0;
3246
3247
  const d = l(460), _ = l(844), n = l(114);
3247
3248
  t.DEFAULT_OPTIONS = { cols: 80, rows: 24, cursorBlink: !1, cursorStyle: "block", cursorWidth: 1, cursorInactiveStyle: "outline", customGlyphs: !0, drawBoldTextInBrightColors: !0, documentOverride: null, fastScrollModifier: "alt", fastScrollSensitivity: 5, fontFamily: "courier-new, courier, monospace", fontSize: 15, fontWeight: "normal", fontWeightBold: "bold", ignoreBracketedPasteMode: !1, lineHeight: 1, letterSpacing: 0, linkHandler: null, logLevel: "info", logger: null, scrollback: 1e3, scrollOnUserInput: !0, scrollSensitivity: 1, screenReaderMode: !1, smoothScrollDuration: 0, macOptionIsMeta: !1, macOptionClickForcesSelection: !1, minimumContrastRatio: 1, disableStdin: !1, allowProposedApi: !1, allowTransparency: !1, tabStopWidth: 8, theme: {}, rescaleOverlappingGlyphs: !1, rightClickSelectsWord: n.isMac, windowOptions: {}, windowsMode: !1, windowsPty: {}, wordSeparator: " ()[]{}',\"`", altClickMovesCursor: !0, convertEol: !1, termName: "xterm", cancelEvents: !1, overviewRulerWidth: 0 };
3248
- const h = ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
3249
+ const c = ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
3249
3250
  class a extends _.Disposable {
3250
3251
  constructor(u) {
3251
3252
  super(), this._onOptionChange = this.register(new d.EventEmitter()), this.onOptionChange = this._onOptionChange.event;
@@ -3296,7 +3297,7 @@ function ke() {
3296
3297
  case "fontWeight":
3297
3298
  case "fontWeightBold":
3298
3299
  if (typeof e == "number" && 1 <= e && e <= 1e3) break;
3299
- e = h.includes(e) ? e : t.DEFAULT_OPTIONS[u];
3300
+ e = c.includes(e) ? e : t.DEFAULT_OPTIONS[u];
3300
3301
  break;
3301
3302
  case "cursorWidth":
3302
3303
  e = Math.floor(e);
@@ -3326,37 +3327,37 @@ function ke() {
3326
3327
  }
3327
3328
  t.OptionsService = a;
3328
3329
  }, 660: function(w, t, l) {
3329
- var d = this && this.__decorate || function(a, c, u, e) {
3330
- var r, i = arguments.length, s = i < 3 ? c : e === null ? e = Object.getOwnPropertyDescriptor(c, u) : e;
3331
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(a, c, u, e);
3332
- else for (var f = a.length - 1; f >= 0; f--) (r = a[f]) && (s = (i < 3 ? r(s) : i > 3 ? r(c, u, s) : r(c, u)) || s);
3333
- return i > 3 && s && Object.defineProperty(c, u, s), s;
3334
- }, _ = this && this.__param || function(a, c) {
3330
+ var d = this && this.__decorate || function(a, h, u, e) {
3331
+ var r, i = arguments.length, s = i < 3 ? h : e === null ? e = Object.getOwnPropertyDescriptor(h, u) : e;
3332
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(a, h, u, e);
3333
+ else for (var f = a.length - 1; f >= 0; f--) (r = a[f]) && (s = (i < 3 ? r(s) : i > 3 ? r(h, u, s) : r(h, u)) || s);
3334
+ return i > 3 && s && Object.defineProperty(h, u, s), s;
3335
+ }, _ = this && this.__param || function(a, h) {
3335
3336
  return function(u, e) {
3336
- c(u, e, a);
3337
+ h(u, e, a);
3337
3338
  };
3338
3339
  };
3339
3340
  Object.defineProperty(t, "__esModule", { value: !0 }), t.OscLinkService = void 0;
3340
3341
  const n = l(585);
3341
- let h = t.OscLinkService = class {
3342
+ let c = t.OscLinkService = class {
3342
3343
  constructor(a) {
3343
3344
  this._bufferService = a, this._nextId = 1, this._entriesWithId = /* @__PURE__ */ new Map(), this._dataByLinkId = /* @__PURE__ */ new Map();
3344
3345
  }
3345
3346
  registerLink(a) {
3346
- const c = this._bufferService.buffer;
3347
+ const h = this._bufferService.buffer;
3347
3348
  if (a.id === void 0) {
3348
- const f = c.addMarker(c.ybase + c.y), p = { data: a, id: this._nextId++, lines: [f] };
3349
+ const f = h.addMarker(h.ybase + h.y), p = { data: a, id: this._nextId++, lines: [f] };
3349
3350
  return f.onDispose(() => this._removeMarkerFromLink(p, f)), this._dataByLinkId.set(p.id, p), p.id;
3350
3351
  }
3351
3352
  const u = a, e = this._getEntryIdKey(u), r = this._entriesWithId.get(e);
3352
- if (r) return this.addLineToLink(r.id, c.ybase + c.y), r.id;
3353
- const i = c.addMarker(c.ybase + c.y), s = { id: this._nextId++, key: this._getEntryIdKey(u), data: u, lines: [i] };
3353
+ if (r) return this.addLineToLink(r.id, h.ybase + h.y), r.id;
3354
+ const i = h.addMarker(h.ybase + h.y), s = { id: this._nextId++, key: this._getEntryIdKey(u), data: u, lines: [i] };
3354
3355
  return i.onDispose(() => this._removeMarkerFromLink(s, i)), this._entriesWithId.set(s.key, s), this._dataByLinkId.set(s.id, s), s.id;
3355
3356
  }
3356
- addLineToLink(a, c) {
3357
+ addLineToLink(a, h) {
3357
3358
  const u = this._dataByLinkId.get(a);
3358
- if (u && u.lines.every((e) => e.line !== c)) {
3359
- const e = this._bufferService.buffer.addMarker(c);
3359
+ if (u && u.lines.every((e) => e.line !== h)) {
3360
+ const e = this._bufferService.buffer.addMarker(h);
3360
3361
  u.lines.push(e), e.onDispose(() => this._removeMarkerFromLink(u, e));
3361
3362
  }
3362
3363
  }
@@ -3366,12 +3367,12 @@ function ke() {
3366
3367
  _getEntryIdKey(a) {
3367
3368
  return `${a.id};;${a.uri}`;
3368
3369
  }
3369
- _removeMarkerFromLink(a, c) {
3370
- const u = a.lines.indexOf(c);
3370
+ _removeMarkerFromLink(a, h) {
3371
+ const u = a.lines.indexOf(h);
3371
3372
  u !== -1 && (a.lines.splice(u, 1), a.lines.length === 0 && (a.data.id !== void 0 && this._entriesWithId.delete(a.key), this._dataByLinkId.delete(a.id)));
3372
3373
  }
3373
3374
  };
3374
- t.OscLinkService = h = d([_(0, n.IBufferService)], h);
3375
+ t.OscLinkService = c = d([_(0, n.IBufferService)], c);
3375
3376
  }, 343: (w, t) => {
3376
3377
  Object.defineProperty(t, "__esModule", { value: !0 }), t.createDecorator = t.getServiceDependencies = t.serviceRegistry = void 0;
3377
3378
  const l = "di$target", d = "di$dependencies";
@@ -3379,11 +3380,11 @@ function ke() {
3379
3380
  return _[d] || [];
3380
3381
  }, t.createDecorator = function(_) {
3381
3382
  if (t.serviceRegistry.has(_)) return t.serviceRegistry.get(_);
3382
- const n = function(h, a, c) {
3383
+ const n = function(c, a, h) {
3383
3384
  if (arguments.length !== 3) throw new Error("@IServiceName-decorator can only be used to decorate a parameter");
3384
3385
  (function(u, e, r) {
3385
3386
  e[l] === e ? e[d].push({ id: u, index: r }) : (e[d] = [{ id: u, index: r }], e[l] = e);
3386
- })(n, h, c);
3387
+ })(n, c, h);
3387
3388
  };
3388
3389
  return n.toString = () => _, t.serviceRegistry.set(_, n), n;
3389
3390
  };
@@ -3407,8 +3408,8 @@ function ke() {
3407
3408
  static extractCharKind(a) {
3408
3409
  return a >> 3;
3409
3410
  }
3410
- static createPropertyValue(a, c, u = !1) {
3411
- return (16777215 & a) << 3 | (3 & c) << 1 | (u ? 1 : 0);
3411
+ static createPropertyValue(a, h, u = !1) {
3412
+ return (16777215 & a) << 3 | (3 & h) << 1 | (u ? 1 : 0);
3412
3413
  }
3413
3414
  constructor() {
3414
3415
  this._providers = /* @__PURE__ */ Object.create(null), this._active = "", this._onChange = new d.EventEmitter(), this.onChange = this._onChange.event;
@@ -3435,32 +3436,32 @@ function ke() {
3435
3436
  return this._activeProvider.wcwidth(a);
3436
3437
  }
3437
3438
  getStringCellWidth(a) {
3438
- let c = 0, u = 0;
3439
+ let h = 0, u = 0;
3439
3440
  const e = a.length;
3440
3441
  for (let r = 0; r < e; ++r) {
3441
3442
  let i = a.charCodeAt(r);
3442
3443
  if (55296 <= i && i <= 56319) {
3443
- if (++r >= e) return c + this.wcwidth(i);
3444
+ if (++r >= e) return h + this.wcwidth(i);
3444
3445
  const p = a.charCodeAt(r);
3445
- 56320 <= p && p <= 57343 ? i = 1024 * (i - 55296) + p - 56320 + 65536 : c += this.wcwidth(p);
3446
+ 56320 <= p && p <= 57343 ? i = 1024 * (i - 55296) + p - 56320 + 65536 : h += this.wcwidth(p);
3446
3447
  }
3447
3448
  const s = this.charProperties(i, u);
3448
3449
  let f = n.extractWidth(s);
3449
- n.extractShouldJoin(s) && (f -= n.extractWidth(u)), c += f, u = s;
3450
+ n.extractShouldJoin(s) && (f -= n.extractWidth(u)), h += f, u = s;
3450
3451
  }
3451
- return c;
3452
+ return h;
3452
3453
  }
3453
- charProperties(a, c) {
3454
- return this._activeProvider.charProperties(a, c);
3454
+ charProperties(a, h) {
3455
+ return this._activeProvider.charProperties(a, h);
3455
3456
  }
3456
3457
  }
3457
3458
  t.UnicodeService = n;
3458
3459
  }, 781: (w, t, l) => {
3459
3460
  Object.defineProperty(t, "__esModule", { value: !0 }), t.Terminal = void 0;
3460
3461
  const d = l(437), _ = l(969), n = l(460);
3461
- class h extends _.CoreTerminal {
3462
- constructor(c = {}) {
3463
- super(c), this._onBell = this.register(new n.EventEmitter()), this.onBell = this._onBell.event, this._onCursorMove = this.register(new n.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onTitleChange = this.register(new n.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onA11yCharEmitter = this.register(new n.EventEmitter()), this.onA11yChar = this._onA11yCharEmitter.event, this._onA11yTabEmitter = this.register(new n.EventEmitter()), this.onA11yTab = this._onA11yTabEmitter.event, this._setup(), this.register(this._inputHandler.onRequestBell(() => this.bell())), this.register(this._inputHandler.onRequestReset(() => this.reset())), this.register((0, n.forwardEvent)(this._inputHandler.onCursorMove, this._onCursorMove)), this.register((0, n.forwardEvent)(this._inputHandler.onTitleChange, this._onTitleChange)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yChar, this._onA11yCharEmitter)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yTab, this._onA11yTabEmitter));
3462
+ class c extends _.CoreTerminal {
3463
+ constructor(h = {}) {
3464
+ super(h), this._onBell = this.register(new n.EventEmitter()), this.onBell = this._onBell.event, this._onCursorMove = this.register(new n.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onTitleChange = this.register(new n.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onA11yCharEmitter = this.register(new n.EventEmitter()), this.onA11yChar = this._onA11yCharEmitter.event, this._onA11yTabEmitter = this.register(new n.EventEmitter()), this.onA11yTab = this._onA11yTabEmitter.event, this._setup(), this.register(this._inputHandler.onRequestBell(() => this.bell())), this.register(this._inputHandler.onRequestReset(() => this.reset())), this.register((0, n.forwardEvent)(this._inputHandler.onCursorMove, this._onCursorMove)), this.register((0, n.forwardEvent)(this._inputHandler.onTitleChange, this._onTitleChange)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yChar, this._onA11yCharEmitter)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yTab, this._onA11yTabEmitter));
3464
3465
  }
3465
3466
  get buffer() {
3466
3467
  return this.buffers.active;
@@ -3468,22 +3469,22 @@ function ke() {
3468
3469
  get markers() {
3469
3470
  return this.buffer.markers;
3470
3471
  }
3471
- addMarker(c) {
3472
- if (this.buffer === this.buffers.normal) return this.buffer.addMarker(this.buffer.ybase + this.buffer.y + c);
3472
+ addMarker(h) {
3473
+ if (this.buffer === this.buffers.normal) return this.buffer.addMarker(this.buffer.ybase + this.buffer.y + h);
3473
3474
  }
3474
3475
  bell() {
3475
3476
  this._onBell.fire();
3476
3477
  }
3477
- input(c, u = !0) {
3478
- this.coreService.triggerDataEvent(c, u);
3478
+ input(h, u = !0) {
3479
+ this.coreService.triggerDataEvent(h, u);
3479
3480
  }
3480
- resize(c, u) {
3481
- c === this.cols && u === this.rows || super.resize(c, u);
3481
+ resize(h, u) {
3482
+ h === this.cols && u === this.rows || super.resize(h, u);
3482
3483
  }
3483
3484
  clear() {
3484
3485
  if (this.buffer.ybase !== 0 || this.buffer.y !== 0) {
3485
3486
  this.buffer.lines.set(0, this.buffer.lines.get(this.buffer.ybase + this.buffer.y)), this.buffer.lines.length = 1, this.buffer.ydisp = 0, this.buffer.ybase = 0, this.buffer.y = 0;
3486
- for (let c = 1; c < this.rows; c++) this.buffer.lines.push(this.buffer.getBlankLine(d.DEFAULT_ATTR_DATA));
3487
+ for (let h = 1; h < this.rows; h++) this.buffer.lines.push(this.buffer.getBlankLine(d.DEFAULT_ATTR_DATA));
3487
3488
  this._onScroll.fire({ position: this.buffer.ydisp, source: 0 });
3488
3489
  }
3489
3490
  }
@@ -3491,7 +3492,7 @@ function ke() {
3491
3492
  this.options.rows = this.rows, this.options.cols = this.cols, this._setup(), super.reset();
3492
3493
  }
3493
3494
  }
3494
- t.Terminal = h;
3495
+ t.Terminal = c;
3495
3496
  } }, O = {};
3496
3497
  function P(w) {
3497
3498
  var t = O[w];
@@ -3499,12 +3500,12 @@ function ke() {
3499
3500
  var l = O[w] = { exports: {} };
3500
3501
  return j[w].call(l.exports, l, l.exports, P), l.exports;
3501
3502
  }
3502
- var W = {};
3503
+ var F = {};
3503
3504
  (() => {
3504
- var w = W;
3505
+ var w = F;
3505
3506
  Object.defineProperty(w, "__esModule", { value: !0 }), w.Terminal = void 0;
3506
- const t = P(285), l = P(975), d = P(90), _ = P(781), n = P(741), h = P(844), a = ["cols", "rows"];
3507
- class c extends h.Disposable {
3507
+ const t = P(285), l = P(975), d = P(90), _ = P(781), n = P(741), c = P(844), a = ["cols", "rows"];
3508
+ class h extends c.Disposable {
3508
3509
  constructor(e) {
3509
3510
  super(), this._core = this.register(new _.Terminal(e)), this._addonManager = this.register(new n.AddonManager()), this._publicOptions = { ...this._core.options };
3510
3511
  const r = (s) => this._core.options[s], i = (s, f) => {
@@ -3640,11 +3641,11 @@ function ke() {
3640
3641
  for (const r of e) if (r === 1 / 0 || isNaN(r) || r % 1 != 0) throw new Error("This API only accepts integers");
3641
3642
  }
3642
3643
  }
3643
- w.Terminal = c;
3644
+ w.Terminal = h;
3644
3645
  })();
3645
3646
  var X = x;
3646
- for (var U in W) X[U] = W[U];
3647
- W.__esModule && Object.defineProperty(X, "__esModule", { value: !0 });
3647
+ for (var U in F) X[U] = F[U];
3648
+ F.__esModule && Object.defineProperty(X, "__esModule", { value: !0 });
3648
3649
  })();
3649
3650
  }(ie)), ie;
3650
3651
  }
@@ -3663,7 +3664,7 @@ const De = {
3663
3664
  maxCharacterLength: pe
3664
3665
  };
3665
3666
  function xe(x, j = De) {
3666
- const O = x.buffer.active, P = [], W = Math.max(0, j.maxCharacterLength);
3667
+ const O = x.buffer.active, P = [], F = Math.max(0, j.maxCharacterLength);
3667
3668
  for (let U = 0; U < O.length; U++) {
3668
3669
  const w = O.getLine(U);
3669
3670
  if (!w)
@@ -3674,7 +3675,7 @@ function xe(x, j = De) {
3674
3675
  let X = 0;
3675
3676
  for (let U = P.length - 1; U > 0; U--) {
3676
3677
  const w = P[U];
3677
- if (X += w.length, X > W) {
3678
+ if (X += w.length, X > F) {
3678
3679
  const l = U, d = `Truncated ${l} ${ge(l, "line")} above this point`, _ = P.length - U - 1, n = _ === 1 ? "Below is the last line of the output" : `Below are the last ${_} lines of the output`;
3679
3680
  return {
3680
3681
  output: [
@@ -3699,16 +3700,16 @@ function Pe(x, j, O) {
3699
3700
  j.settings["terminal.commands.nodeSpawn.loadProfile"]
3700
3701
  ).pipe(
3701
3702
  ae(
3702
- (W) => ve(O.cmd, [], {
3703
+ (F) => ve(O.cmd, [], {
3703
3704
  shell: ce.userInfo().shell || !0,
3704
3705
  cwd: x,
3705
3706
  stdio: ["ignore", "pipe", "pipe"],
3706
- env: W
3707
+ env: F
3707
3708
  })
3708
3709
  ),
3709
- ae(({ lastData: W, exitCode: X, exited: U }) => me(
3710
+ ae(({ lastData: F, exitCode: X, exited: U }) => me(
3710
3711
  new Promise((w) => {
3711
- const t = W?.subarray() ?? new Uint8Array();
3712
+ const t = F?.subarray() ?? new Uint8Array();
3712
3713
  P.write(t, () => {
3713
3714
  const { output: l } = xe(P);
3714
3715
  w(U ? {
@@ -3723,12 +3724,12 @@ function Pe(x, j, O) {
3723
3724
  ))
3724
3725
  );
3725
3726
  }
3726
- const We = ({ args: x, userInput: j }, { dir: O, dirs: P, config: W, toolMessages: X }) => {
3727
+ const We = ({ args: x, userInput: j }, { dir: O, dirs: P, config: F, toolMessages: X }) => {
3727
3728
  be(O);
3728
- const U = ue(O.fsPath, x.cwd ? He(x.cwd) : "."), w = (h) => ({
3729
+ const U = ue(O.fsPath, x.cwd ? He(x.cwd) : "."), w = (c) => ({
3729
3730
  status: "done",
3730
3731
  result: {
3731
- output: `Error: ${h}`,
3732
+ output: `Error: ${c}`,
3732
3733
  exitCode: 1
3733
3734
  }
3734
3735
  }), t = Re(x.cmd);
@@ -3737,14 +3738,14 @@ const We = ({ args: x, userInput: j }, { dir: O, dirs: P, config: W, toolMessage
3737
3738
  const l = Me(U);
3738
3739
  if (l)
3739
3740
  return se.of(w(l));
3740
- const d = [U, ...P.map((h) => h.fsPath)], _ = Ae(x.cmd, d, {
3741
- config: W.settings
3741
+ const d = [U, ...P.map((c) => c.fsPath)], _ = Ae(x.cmd, d, {
3742
+ config: F.settings
3742
3743
  }), n = _.parts.flatMap(
3743
- (h) => (
3744
+ (c) => (
3744
3745
  // Only offer adding program to allowlist when parsable, non-dynamic, non-concatenated, and within cwd.
3745
- h.requiresConfirmation ? typeof h.command == "string" || h.command.program === ne || Array.isArray(h.command.program) || h.command.arguments.some(
3746
+ c.requiresConfirmation ? typeof c.command == "string" || c.command.program === ne || Array.isArray(c.command.program) || c.command.arguments.some(
3746
3747
  (a) => a === ne || typeof a == "string" && le(a, d)
3747
- ) ? [] : [h.command.program] : []
3748
+ ) ? [] : [c.command.program] : []
3748
3749
  )
3749
3750
  );
3750
3751
  if (_.requiresConfirmation) {
@@ -3753,7 +3754,7 @@ const We = ({ args: x, userInput: j }, { dir: O, dirs: P, config: W, toolMessage
3753
3754
  if (!j?.accepted)
3754
3755
  return se.of({ status: "blocked-on-user", toAllow: n });
3755
3756
  }
3756
- return W.settings["terminal.commands.environment"], Pe(U, W, x);
3757
+ return F.settings["terminal.commands.environment"], Pe(U, F, x);
3757
3758
  }, he = ce.homedir();
3758
3759
  function He(x) {
3759
3760
  return he ? x.replace(/^~(?=$|\/|\\)/, he) : x;
@@ -3769,4 +3770,4 @@ function Me(x) {
3769
3770
  export {
3770
3771
  We as nodeBashTool
3771
3772
  };
3772
- //# sourceMappingURL=node-CDbBRzSe.js.map
3773
+ //# sourceMappingURL=node-CBRPqFin.js.map