@difizen/libro-cofine-editor-core 0.3.28 → 0.3.30

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.
@@ -2249,8 +2249,8 @@ __webpack_require__.r(__webpack_exports__);
2249
2249
  /* harmony export */ StringDiffSequence: () => (/* binding */ StringDiffSequence),
2250
2250
  /* harmony export */ stringDiff: () => (/* binding */ stringDiff)
2251
2251
  /* harmony export */ });
2252
- /* harmony import */ var _diffChange_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./diffChange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/diff/diffChange.js");
2253
- /* harmony import */ var _hash_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../hash.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/hash.js");
2252
+ /* harmony import */ var _diffChange_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./diffChange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/diff/diffChange.js");
2253
+ /* harmony import */ var _hash_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hash.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/hash.js");
2254
2254
  /*---------------------------------------------------------------------------------------------
2255
2255
  * Copyright (c) Microsoft Corporation. All rights reserved.
2256
2256
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -2336,7 +2336,7 @@ class DiffChangeHelper {
2336
2336
  // Only add to the list if there is something to add
2337
2337
  if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {
2338
2338
  // Add the new change to our list
2339
- this.m_changes.push(new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount));
2339
+ this.m_changes.push(new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount));
2340
2340
  }
2341
2341
  // Reset for the next change
2342
2342
  this.m_originalCount = 0;
@@ -2422,7 +2422,7 @@ class LcsDiff {
2422
2422
  if (LcsDiff._isStringArray(elements)) {
2423
2423
  const hashes = new Int32Array(elements.length);
2424
2424
  for (let i = 0, len = elements.length; i < len; i++) {
2425
- hashes[i] = (0,_hash_js__WEBPACK_IMPORTED_MODULE_0__.stringHash)(elements[i], 0);
2425
+ hashes[i] = (0,_hash_js__WEBPACK_IMPORTED_MODULE_1__.stringHash)(elements[i], 0);
2426
2426
  }
2427
2427
  return [elements, hashes, true];
2428
2428
  }
@@ -2509,14 +2509,14 @@ class LcsDiff {
2509
2509
  Debug.Assert(originalStart === originalEnd + 1, 'originalStart should only be one more than originalEnd');
2510
2510
  // All insertions
2511
2511
  changes = [
2512
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStart, 0, modifiedStart, modifiedEnd - modifiedStart + 1)
2512
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, 0, modifiedStart, modifiedEnd - modifiedStart + 1)
2513
2513
  ];
2514
2514
  }
2515
2515
  else if (originalStart <= originalEnd) {
2516
2516
  Debug.Assert(modifiedStart === modifiedEnd + 1, 'modifiedStart should only be one more than modifiedEnd');
2517
2517
  // All deletions
2518
2518
  changes = [
2519
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, 0)
2519
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, 0)
2520
2520
  ];
2521
2521
  }
2522
2522
  else {
@@ -2552,14 +2552,14 @@ class LcsDiff {
2552
2552
  // We didn't have time to finish the first half, so we don't have time to compute this half.
2553
2553
  // Consider the entire rest of the sequence different.
2554
2554
  rightChanges = [
2555
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(midOriginal + 1, originalEnd - (midOriginal + 1) + 1, midModified + 1, modifiedEnd - (midModified + 1) + 1)
2555
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(midOriginal + 1, originalEnd - (midOriginal + 1) + 1, midModified + 1, modifiedEnd - (midModified + 1) + 1)
2556
2556
  ];
2557
2557
  }
2558
2558
  return this.ConcatenateChanges(leftChanges, rightChanges);
2559
2559
  }
2560
2560
  // If we hit here, we quit early, and so can't return anything meaningful
2561
2561
  return [
2562
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)
2562
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)
2563
2563
  ];
2564
2564
  }
2565
2565
  WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr) {
@@ -2619,7 +2619,7 @@ class LcsDiff {
2619
2619
  modifiedStartPoint = Math.max(modifiedStartPoint, lastForwardChange.getModifiedEnd());
2620
2620
  }
2621
2621
  reverseChanges = [
2622
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStartPoint, originalEnd - originalStartPoint + 1, modifiedStartPoint, modifiedEnd - modifiedStartPoint + 1)
2622
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStartPoint, originalEnd - originalStartPoint + 1, modifiedStartPoint, modifiedEnd - modifiedStartPoint + 1)
2623
2623
  ];
2624
2624
  }
2625
2625
  else {
@@ -2805,7 +2805,7 @@ class LcsDiff {
2805
2805
  originalStart++;
2806
2806
  modifiedStart++;
2807
2807
  return [
2808
- new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)
2808
+ new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)
2809
2809
  ];
2810
2810
  }
2811
2811
  }
@@ -3110,7 +3110,7 @@ class LcsDiff {
3110
3110
  if (left.modifiedStart + left.modifiedLength >= right.modifiedStart) {
3111
3111
  modifiedLength = right.modifiedStart + right.modifiedLength - left.modifiedStart;
3112
3112
  }
3113
- mergedChangeArr[0] = new _diffChange_js__WEBPACK_IMPORTED_MODULE_1__.DiffChange(originalStart, originalLength, modifiedStart, modifiedLength);
3113
+ mergedChangeArr[0] = new _diffChange_js__WEBPACK_IMPORTED_MODULE_0__.DiffChange(originalStart, originalLength, modifiedStart, modifiedLength);
3114
3114
  return true;
3115
3115
  }
3116
3116
  else {
@@ -3473,10 +3473,10 @@ __webpack_require__.r(__webpack_exports__);
3473
3473
  /* harmony export */ setGlobalLeakWarningThreshold: () => (/* binding */ setGlobalLeakWarningThreshold)
3474
3474
  /* harmony export */ });
3475
3475
  /* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./errors.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/errors.js");
3476
- /* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./functional.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/functional.js");
3477
- /* harmony import */ var _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lifecycle.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/lifecycle.js");
3478
- /* harmony import */ var _linkedList_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linkedList.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/linkedList.js");
3479
- /* harmony import */ var _stopwatch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stopwatch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/stopwatch.js");
3476
+ /* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functional.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/functional.js");
3477
+ /* harmony import */ var _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lifecycle.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/lifecycle.js");
3478
+ /* harmony import */ var _linkedList_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./linkedList.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/linkedList.js");
3479
+ /* harmony import */ var _stopwatch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stopwatch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/stopwatch.js");
3480
3480
  /*---------------------------------------------------------------------------------------------
3481
3481
  * Copyright (c) Microsoft Corporation. All rights reserved.
3482
3482
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -3507,7 +3507,7 @@ const _enableDisposeWithListenerWarning = false;
3507
3507
  const _enableSnapshotPotentialLeakWarning = false;
3508
3508
  var Event;
3509
3509
  (function (Event) {
3510
- Event.None = () => _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.Disposable.None;
3510
+ Event.None = () => _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;
3511
3511
  function _addLeakageTraceLogic(options) {
3512
3512
  if (_enableSnapshotPotentialLeakWarning) {
3513
3513
  const { onDidAddListener: origListenerDidAdd } = options;
@@ -3614,7 +3614,7 @@ var Event;
3614
3614
  }
3615
3615
  Event.signal = signal;
3616
3616
  function any(...events) {
3617
- return (listener, thisArgs = null, disposables) => (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.combinedDisposable)(...events.map(event => event(e => listener.call(thisArgs, e), null, disposables)));
3617
+ return (listener, thisArgs = null, disposables) => (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.combinedDisposable)(...events.map(event => event(e => listener.call(thisArgs, e), null, disposables)));
3618
3618
  }
3619
3619
  Event.any = any;
3620
3620
  /**
@@ -3835,7 +3835,7 @@ var Event;
3835
3835
  class ChainableEvent {
3836
3836
  constructor(event) {
3837
3837
  this.event = event;
3838
- this.disposables = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.DisposableStore();
3838
+ this.disposables = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore();
3839
3839
  }
3840
3840
  /** @see {@link Event.map} */
3841
3841
  map(fn) {
@@ -3946,12 +3946,12 @@ var Event;
3946
3946
  let store = null;
3947
3947
  function run(e) {
3948
3948
  store === null || store === void 0 ? void 0 : store.dispose();
3949
- store = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.DisposableStore();
3949
+ store = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore();
3950
3950
  handler(e, store);
3951
3951
  }
3952
3952
  run(undefined);
3953
3953
  const disposable = event(e => run(e));
3954
- return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.toDisposable)(() => {
3954
+ return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.toDisposable)(() => {
3955
3955
  disposable.dispose();
3956
3956
  store === null || store === void 0 ? void 0 : store.dispose();
3957
3957
  });
@@ -4058,7 +4058,7 @@ class EventProfiling {
4058
4058
  EventProfiling.all.add(this);
4059
4059
  }
4060
4060
  start(listenerCount) {
4061
- this._stopWatch = new _stopwatch_js__WEBPACK_IMPORTED_MODULE_3__.StopWatch(true);
4061
+ this._stopWatch = new _stopwatch_js__WEBPACK_IMPORTED_MODULE_4__.StopWatch(true);
4062
4062
  this.listenerCount = listenerCount;
4063
4063
  }
4064
4064
  stop() {
@@ -4143,7 +4143,7 @@ class Listener {
4143
4143
  this.callback = callback;
4144
4144
  this.callbackThis = callbackThis;
4145
4145
  this.stack = stack;
4146
- this.subscription = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.SafeDisposable();
4146
+ this.subscription = new _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.SafeDisposable();
4147
4147
  }
4148
4148
  invoke(e) {
4149
4149
  this.callback.call(this.callbackThis, e);
@@ -4221,11 +4221,11 @@ class Emitter {
4221
4221
  this._event = (callback, thisArgs, disposables) => {
4222
4222
  var _a, _b, _c;
4223
4223
  if (!this._listeners) {
4224
- this._listeners = new _linkedList_js__WEBPACK_IMPORTED_MODULE_2__.LinkedList();
4224
+ this._listeners = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();
4225
4225
  }
4226
4226
  if (this._leakageMon && this._listeners.size > this._leakageMon.threshold * 3) {
4227
4227
  console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`);
4228
- return _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.Disposable.None;
4228
+ return _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;
4229
4229
  }
4230
4230
  const firstListener = this._listeners.isEmpty();
4231
4231
  if (firstListener && ((_a = this._options) === null || _a === void 0 ? void 0 : _a.onWillAddFirstListener)) {
@@ -4263,7 +4263,7 @@ class Emitter {
4263
4263
  }
4264
4264
  }
4265
4265
  });
4266
- if (disposables instanceof _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.DisposableStore) {
4266
+ if (disposables instanceof _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.DisposableStore) {
4267
4267
  disposables.add(result);
4268
4268
  }
4269
4269
  else if (Array.isArray(disposables)) {
@@ -4306,7 +4306,7 @@ class Emitter {
4306
4306
  class EventDeliveryQueue {
4307
4307
  constructor(_onListenerError = _errors_js__WEBPACK_IMPORTED_MODULE_0__.onUnexpectedError) {
4308
4308
  this._onListenerError = _onListenerError;
4309
- this._queue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_2__.LinkedList();
4309
+ this._queue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();
4310
4310
  }
4311
4311
  get size() {
4312
4312
  return this._queue.size;
@@ -4315,7 +4315,7 @@ class EventDeliveryQueue {
4315
4315
  this._queue.push(new EventDeliveryQueueElement(emitter, listener, event));
4316
4316
  }
4317
4317
  clear(emitter) {
4318
- const newQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_2__.LinkedList();
4318
+ const newQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();
4319
4319
  for (const element of this._queue) {
4320
4320
  if (element.emitter !== emitter) {
4321
4321
  newQueue.push(element);
@@ -4359,7 +4359,7 @@ class AsyncEmitter extends Emitter {
4359
4359
  return;
4360
4360
  }
4361
4361
  if (!this._asyncDeliveryQueue) {
4362
- this._asyncDeliveryQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_2__.LinkedList();
4362
+ this._asyncDeliveryQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();
4363
4363
  }
4364
4364
  for (const listener of this._listeners) {
4365
4365
  this._asyncDeliveryQueue.push([listener, data]);
@@ -4404,7 +4404,7 @@ class PauseableEmitter extends Emitter {
4404
4404
  constructor(options) {
4405
4405
  super(options);
4406
4406
  this._isPaused = 0;
4407
- this._eventQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_2__.LinkedList();
4407
+ this._eventQueue = new _linkedList_js__WEBPACK_IMPORTED_MODULE_3__.LinkedList();
4408
4408
  this._mergeFn = options === null || options === void 0 ? void 0 : options.merge;
4409
4409
  }
4410
4410
  pause() {
@@ -4511,7 +4511,7 @@ class EventMultiplexer {
4511
4511
  const idx = this.events.indexOf(e);
4512
4512
  this.events.splice(idx, 1);
4513
4513
  };
4514
- return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.toDisposable)((0,_functional_js__WEBPACK_IMPORTED_MODULE_4__.once)(dispose));
4514
+ return (0,_lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.toDisposable)((0,_functional_js__WEBPACK_IMPORTED_MODULE_1__.once)(dispose));
4515
4515
  }
4516
4516
  onFirstListenerAdd() {
4517
4517
  this.hasListeners = true;
@@ -4590,7 +4590,7 @@ class Relay {
4590
4590
  constructor() {
4591
4591
  this.listening = false;
4592
4592
  this.inputEvent = Event.None;
4593
- this.inputEventListener = _lifecycle_js__WEBPACK_IMPORTED_MODULE_1__.Disposable.None;
4593
+ this.inputEventListener = _lifecycle_js__WEBPACK_IMPORTED_MODULE_2__.Disposable.None;
4594
4594
  this.emitter = new Emitter({
4595
4595
  onDidAddFirstListener: () => {
4596
4596
  this.listening = true;
@@ -5561,8 +5561,8 @@ __webpack_require__.r(__webpack_exports__);
5561
5561
  /* harmony export */ setDisposableTracker: () => (/* binding */ setDisposableTracker),
5562
5562
  /* harmony export */ toDisposable: () => (/* binding */ toDisposable)
5563
5563
  /* harmony export */ });
5564
- /* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functional.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/functional.js");
5565
- /* harmony import */ var _iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iterator.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/iterator.js");
5564
+ /* harmony import */ var _functional_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./functional.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/functional.js");
5565
+ /* harmony import */ var _iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterator.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/iterator.js");
5566
5566
  /*---------------------------------------------------------------------------------------------
5567
5567
  * Copyright (c) Microsoft Corporation. All rights reserved.
5568
5568
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -5657,7 +5657,7 @@ function isDisposable(thing) {
5657
5657
  return typeof thing.dispose === 'function' && thing.dispose.length === 0;
5658
5658
  }
5659
5659
  function dispose(arg) {
5660
- if (_iterator_js__WEBPACK_IMPORTED_MODULE_0__.Iterable.is(arg)) {
5660
+ if (_iterator_js__WEBPACK_IMPORTED_MODULE_1__.Iterable.is(arg)) {
5661
5661
  const errors = [];
5662
5662
  for (const d of arg) {
5663
5663
  if (d) {
@@ -5703,7 +5703,7 @@ function combinedDisposable(...disposables) {
5703
5703
  */
5704
5704
  function toDisposable(fn) {
5705
5705
  const self = trackDisposable({
5706
- dispose: (0,_functional_js__WEBPACK_IMPORTED_MODULE_1__.once)(() => {
5706
+ dispose: (0,_functional_js__WEBPACK_IMPORTED_MODULE_0__.once)(() => {
5707
5707
  markAsDisposed(self);
5708
5708
  fn();
5709
5709
  })
@@ -5913,7 +5913,7 @@ class ReferenceCollection {
5913
5913
  this.references.set(key, reference);
5914
5914
  }
5915
5915
  const { object } = reference;
5916
- const dispose = (0,_functional_js__WEBPACK_IMPORTED_MODULE_1__.once)(() => {
5916
+ const dispose = (0,_functional_js__WEBPACK_IMPORTED_MODULE_0__.once)(() => {
5917
5917
  if (--reference.counter === 0) {
5918
5918
  this.destroyReferencedObject(key, reference.object);
5919
5919
  this.references.delete(key);
@@ -11536,8 +11536,8 @@ __webpack_require__.r(__webpack_exports__);
11536
11536
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11537
11537
  /* harmony export */ Selection: () => (/* binding */ Selection)
11538
11538
  /* harmony export */ });
11539
- /* harmony import */ var _position_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
11540
- /* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
11539
+ /* harmony import */ var _position_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
11540
+ /* harmony import */ var _range_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
11541
11541
  /*---------------------------------------------------------------------------------------------
11542
11542
  * Copyright (c) Microsoft Corporation. All rights reserved.
11543
11543
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -11548,7 +11548,7 @@ __webpack_require__.r(__webpack_exports__);
11548
11548
  * A selection in the editor.
11549
11549
  * The selection is a range that has an orientation.
11550
11550
  */
11551
- class Selection extends _range_js__WEBPACK_IMPORTED_MODULE_0__.Range {
11551
+ class Selection extends _range_js__WEBPACK_IMPORTED_MODULE_1__.Range {
11552
11552
  constructor(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn) {
11553
11553
  super(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn);
11554
11554
  this.selectionStartLineNumber = selectionStartLineNumber;
@@ -11599,13 +11599,13 @@ class Selection extends _range_js__WEBPACK_IMPORTED_MODULE_0__.Range {
11599
11599
  * Get the position at `positionLineNumber` and `positionColumn`.
11600
11600
  */
11601
11601
  getPosition() {
11602
- return new _position_js__WEBPACK_IMPORTED_MODULE_1__.Position(this.positionLineNumber, this.positionColumn);
11602
+ return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(this.positionLineNumber, this.positionColumn);
11603
11603
  }
11604
11604
  /**
11605
11605
  * Get the position at the start of the selection.
11606
11606
  */
11607
11607
  getSelectionStart() {
11608
- return new _position_js__WEBPACK_IMPORTED_MODULE_1__.Position(this.selectionStartLineNumber, this.selectionStartColumn);
11608
+ return new _position_js__WEBPACK_IMPORTED_MODULE_0__.Position(this.selectionStartLineNumber, this.selectionStartColumn);
11609
11609
  }
11610
11610
  /**
11611
11611
  * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.
@@ -12545,9 +12545,9 @@ __webpack_require__.r(__webpack_exports__);
12545
12545
  /* harmony import */ var _base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/diff/diff.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/diff/diff.js");
12546
12546
  /* harmony import */ var _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linesDiffComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputer.js");
12547
12547
  /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/strings.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/strings.js");
12548
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
12549
- /* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/assert.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/assert.js");
12550
- /* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/lineRange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/lineRange.js");
12548
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
12549
+ /* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../base/common/assert.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/assert.js");
12550
+ /* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/lineRange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/lineRange.js");
12551
12551
  /*---------------------------------------------------------------------------------------------
12552
12552
  * Copyright (c) Microsoft Corporation. All rights reserved.
12553
12553
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -12576,20 +12576,20 @@ class SmartLinesDiffComputer {
12576
12576
  let originalRange;
12577
12577
  if (c.originalEndLineNumber === 0) {
12578
12578
  // Insertion
12579
- originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_4__.LineRange(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1);
12579
+ originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1);
12580
12580
  }
12581
12581
  else {
12582
- originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_4__.LineRange(c.originalStartLineNumber, c.originalEndLineNumber + 1);
12582
+ originalRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(c.originalStartLineNumber, c.originalEndLineNumber + 1);
12583
12583
  }
12584
12584
  let modifiedRange;
12585
12585
  if (c.modifiedEndLineNumber === 0) {
12586
12586
  // Deletion
12587
- modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_4__.LineRange(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1);
12587
+ modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1);
12588
12588
  }
12589
12589
  else {
12590
- modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_4__.LineRange(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1);
12590
+ modifiedRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_5__.LineRange(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1);
12591
12591
  }
12592
- let change = new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(originalRange, modifiedRange, (_a = c.charChanges) === null || _a === void 0 ? void 0 : _a.map(c => new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.RangeMapping(new _core_range_js__WEBPACK_IMPORTED_MODULE_5__.Range(c.originalStartLineNumber, c.originalStartColumn, c.originalEndLineNumber, c.originalEndColumn), new _core_range_js__WEBPACK_IMPORTED_MODULE_5__.Range(c.modifiedStartLineNumber, c.modifiedStartColumn, c.modifiedEndLineNumber, c.modifiedEndColumn))));
12592
+ let change = new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.LineRangeMapping(originalRange, modifiedRange, (_a = c.charChanges) === null || _a === void 0 ? void 0 : _a.map(c => new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_1__.RangeMapping(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(c.originalStartLineNumber, c.originalStartColumn, c.originalEndLineNumber, c.originalEndColumn), new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(c.modifiedStartLineNumber, c.modifiedStartColumn, c.modifiedEndLineNumber, c.modifiedEndColumn))));
12593
12593
  if (lastChange) {
12594
12594
  if (lastChange.modifiedRange.endLineNumberExclusive === change.modifiedRange.startLineNumber
12595
12595
  || lastChange.originalRange.endLineNumberExclusive === change.originalRange.startLineNumber) {
@@ -12602,8 +12602,8 @@ class SmartLinesDiffComputer {
12602
12602
  changes.push(change);
12603
12603
  lastChange = change;
12604
12604
  }
12605
- (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__.assertFn)(() => {
12606
- return (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__.checkAdjacentItems)(changes, (m1, m2) => m2.originalRange.startLineNumber - m1.originalRange.endLineNumberExclusive === m2.modifiedRange.startLineNumber - m1.modifiedRange.endLineNumberExclusive &&
12605
+ (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_4__.assertFn)(() => {
12606
+ return (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_4__.checkAdjacentItems)(changes, (m1, m2) => m2.originalRange.startLineNumber - m1.originalRange.endLineNumberExclusive === m2.modifiedRange.startLineNumber - m1.modifiedRange.endLineNumberExclusive &&
12607
12607
  // There has to be an unchanged line in between (otherwise both diffs should have been joined)
12608
12608
  m1.originalRange.endLineNumberExclusive < m2.originalRange.startLineNumber &&
12609
12609
  m1.modifiedRange.endLineNumberExclusive < m2.modifiedRange.startLineNumber);
@@ -13033,13 +13033,13 @@ __webpack_require__.r(__webpack_exports__);
13033
13033
  /* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/assert.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/assert.js");
13034
13034
  /* harmony import */ var _core_lineRange_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/lineRange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/lineRange.js");
13035
13035
  /* harmony import */ var _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/offsetRange.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/offsetRange.js");
13036
- /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
13037
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
13038
- /* harmony import */ var _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./algorithms/diffAlgorithm.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/diffAlgorithm.js");
13039
- /* harmony import */ var _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./algorithms/dynamicProgrammingDiffing.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/dynamicProgrammingDiffing.js");
13040
- /* harmony import */ var _algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./algorithms/joinSequenceDiffs.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/joinSequenceDiffs.js");
13041
- /* harmony import */ var _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./algorithms/myersDiffAlgorithm.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/myersDiffAlgorithm.js");
13042
- /* harmony import */ var _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./linesDiffComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputer.js");
13036
+ /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
13037
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
13038
+ /* harmony import */ var _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./algorithms/diffAlgorithm.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/diffAlgorithm.js");
13039
+ /* harmony import */ var _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./algorithms/dynamicProgrammingDiffing.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/dynamicProgrammingDiffing.js");
13040
+ /* harmony import */ var _algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./algorithms/joinSequenceDiffs.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/joinSequenceDiffs.js");
13041
+ /* harmony import */ var _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./algorithms/myersDiffAlgorithm.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/algorithms/myersDiffAlgorithm.js");
13042
+ /* harmony import */ var _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./linesDiffComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputer.js");
13043
13043
  /*---------------------------------------------------------------------------------------------
13044
13044
  * Copyright (c) Microsoft Corporation. All rights reserved.
13045
13045
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -13056,11 +13056,11 @@ __webpack_require__.r(__webpack_exports__);
13056
13056
 
13057
13057
  class StandardLinesDiffComputer {
13058
13058
  constructor() {
13059
- this.dynamicProgrammingDiffing = new _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_4__.DynamicProgrammingDiffing();
13060
- this.myersDiffingAlgorithm = new _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_6__.MyersDiffAlgorithm();
13059
+ this.dynamicProgrammingDiffing = new _algorithms_dynamicProgrammingDiffing_js__WEBPACK_IMPORTED_MODULE_6__.DynamicProgrammingDiffing();
13060
+ this.myersDiffingAlgorithm = new _algorithms_myersDiffAlgorithm_js__WEBPACK_IMPORTED_MODULE_8__.MyersDiffAlgorithm();
13061
13061
  }
13062
13062
  computeDiff(originalLines, modifiedLines, options) {
13063
- const timeout = options.maxComputationTimeMs === 0 ? _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_3__.InfiniteTimeout.instance : new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_3__.DateTimeout(options.maxComputationTimeMs);
13063
+ const timeout = options.maxComputationTimeMs === 0 ? _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.InfiniteTimeout.instance : new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.DateTimeout(options.maxComputationTimeMs);
13064
13064
  const considerWhitespaceChanges = !options.ignoreTrimWhitespace;
13065
13065
  const perfectHashes = new Map();
13066
13066
  function getOrCreateHash(text) {
@@ -13088,7 +13088,7 @@ class StandardLinesDiffComputer {
13088
13088
  })();
13089
13089
  let lineAlignments = lineAlignmentResult.diffs;
13090
13090
  let hitTimeout = lineAlignmentResult.hitTimeout;
13091
- lineAlignments = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_5__.optimizeSequenceDiffs)(sequence1, sequence2, lineAlignments);
13091
+ lineAlignments = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_7__.optimizeSequenceDiffs)(sequence1, sequence2, lineAlignments);
13092
13092
  const alignments = [];
13093
13093
  const scanForWhitespaceChanges = (equalLinesCount) => {
13094
13094
  if (!considerWhitespaceChanges) {
@@ -13099,7 +13099,7 @@ class StandardLinesDiffComputer {
13099
13099
  const seq2Offset = seq2LastStart + i;
13100
13100
  if (originalLines[seq1Offset] !== modifiedLines[seq2Offset]) {
13101
13101
  // This is because of whitespace changes, diff these lines
13102
- const characterDiffs = this.refineDiff(originalLines, modifiedLines, new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_3__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(seq1Offset, seq1Offset + 1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(seq2Offset, seq2Offset + 1)), timeout, considerWhitespaceChanges);
13102
+ const characterDiffs = this.refineDiff(originalLines, modifiedLines, new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.SequenceDiff(new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(seq1Offset, seq1Offset + 1), new _core_offsetRange_js__WEBPACK_IMPORTED_MODULE_2__.OffsetRange(seq2Offset, seq2Offset + 1)), timeout, considerWhitespaceChanges);
13103
13103
  for (const a of characterDiffs.mappings) {
13104
13104
  alignments.push(a);
13105
13105
  }
@@ -13127,7 +13127,7 @@ class StandardLinesDiffComputer {
13127
13127
  }
13128
13128
  scanForWhitespaceChanges(originalLines.length - seq1LastStart);
13129
13129
  const changes = lineRangeMappingFromRangeMappings(alignments, originalLines, modifiedLines);
13130
- return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_7__.LinesDiff(changes, hitTimeout);
13130
+ return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_9__.LinesDiff(changes, hitTimeout);
13131
13131
  }
13132
13132
  refineDiff(originalLines, modifiedLines, diff, timeout, considerWhitespaceChanges) {
13133
13133
  const sourceSlice = new Slice(originalLines, diff.seq1Range, considerWhitespaceChanges);
@@ -13136,10 +13136,10 @@ class StandardLinesDiffComputer {
13136
13136
  ? this.dynamicProgrammingDiffing.compute(sourceSlice, targetSlice, timeout)
13137
13137
  : this.myersDiffingAlgorithm.compute(sourceSlice, targetSlice, timeout);
13138
13138
  let diffs = diffResult.diffs;
13139
- diffs = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_5__.optimizeSequenceDiffs)(sourceSlice, targetSlice, diffs);
13139
+ diffs = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_7__.optimizeSequenceDiffs)(sourceSlice, targetSlice, diffs);
13140
13140
  diffs = coverFullWords(sourceSlice, targetSlice, diffs);
13141
- diffs = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_5__.smoothenSequenceDiffs)(sourceSlice, targetSlice, diffs);
13142
- const result = diffs.map((d) => new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_7__.RangeMapping(sourceSlice.translateRange(d.seq1Range), targetSlice.translateRange(d.seq2Range)));
13141
+ diffs = (0,_algorithms_joinSequenceDiffs_js__WEBPACK_IMPORTED_MODULE_7__.smoothenSequenceDiffs)(sourceSlice, targetSlice, diffs);
13142
+ const result = diffs.map((d) => new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_9__.RangeMapping(sourceSlice.translateRange(d.seq1Range), targetSlice.translateRange(d.seq2Range)));
13143
13143
  // Assert: result applied on original should be the same as diff applied to original
13144
13144
  return {
13145
13145
  mappings: result,
@@ -13160,7 +13160,7 @@ function coverFullWords(sequence1, sequence2, sequenceDiffs) {
13160
13160
  // TODO figure out why this happens
13161
13161
  }
13162
13162
  if (Math.max(lastModifiedWord.deleted, lastModifiedWord.added) + (lastModifiedWord.count - 1) > originalLength1) {
13163
- additional.push(new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_3__.SequenceDiff(lastModifiedWord.s1Range, lastModifiedWord.s2Range));
13163
+ additional.push(new _algorithms_diffAlgorithm_js__WEBPACK_IMPORTED_MODULE_5__.SequenceDiff(lastModifiedWord.s1Range, lastModifiedWord.s2Range));
13164
13164
  }
13165
13165
  lastModifiedWord = undefined;
13166
13166
  }
@@ -13234,7 +13234,7 @@ function lineRangeMappingFromRangeMappings(alignments, originalLines, modifiedLi
13234
13234
  || a1.modifiedRange.overlapOrTouch(a2.modifiedRange))) {
13235
13235
  const first = g[0];
13236
13236
  const last = g[g.length - 1];
13237
- changes.push(new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_7__.LineRangeMapping(first.originalRange.join(last.originalRange), first.modifiedRange.join(last.modifiedRange), g.map(a => a.innerChanges[0])));
13237
+ changes.push(new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_9__.LineRangeMapping(first.originalRange.join(last.originalRange), first.modifiedRange.join(last.modifiedRange), g.map(a => a.innerChanges[0])));
13238
13238
  }
13239
13239
  (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_0__.assertFn)(() => {
13240
13240
  return (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_0__.checkAdjacentItems)(changes, (m1, m2) => m2.originalRange.startLineNumber - m1.originalRange.endLineNumberExclusive === m2.modifiedRange.startLineNumber - m1.modifiedRange.endLineNumberExclusive &&
@@ -13263,7 +13263,7 @@ function getLineRangeMapping(rangeMapping, originalLines, modifiedLines) {
13263
13263
  }
13264
13264
  const originalLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_1__.LineRange(rangeMapping.originalRange.startLineNumber + lineStartDelta, rangeMapping.originalRange.endLineNumber + 1 + lineEndDelta);
13265
13265
  const modifiedLineRange = new _core_lineRange_js__WEBPACK_IMPORTED_MODULE_1__.LineRange(rangeMapping.modifiedRange.startLineNumber + lineStartDelta, rangeMapping.modifiedRange.endLineNumber + 1 + lineEndDelta);
13266
- return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_7__.LineRangeMapping(originalLineRange, modifiedLineRange, [rangeMapping]);
13266
+ return new _linesDiffComputer_js__WEBPACK_IMPORTED_MODULE_9__.LineRangeMapping(originalLineRange, modifiedLineRange, [rangeMapping]);
13267
13267
  }
13268
13268
  function* group(items, shouldBeGrouped) {
13269
13269
  let currentGroup;
@@ -13386,7 +13386,7 @@ class Slice {
13386
13386
  translateOffset(offset) {
13387
13387
  // find smallest i, so that lineBreakOffsets[i] <= offset using binary search
13388
13388
  if (this.lineRange.isEmpty) {
13389
- return new _core_position_js__WEBPACK_IMPORTED_MODULE_8__.Position(this.lineRange.start + 1, 1);
13389
+ return new _core_position_js__WEBPACK_IMPORTED_MODULE_3__.Position(this.lineRange.start + 1, 1);
13390
13390
  }
13391
13391
  let i = 0;
13392
13392
  let j = this.firstCharOffsetByLineMinusOne.length;
@@ -13400,10 +13400,10 @@ class Slice {
13400
13400
  }
13401
13401
  }
13402
13402
  const offsetOfPrevLineBreak = i === 0 ? 0 : this.firstCharOffsetByLineMinusOne[i - 1];
13403
- return new _core_position_js__WEBPACK_IMPORTED_MODULE_8__.Position(this.lineRange.start + i + 1, offset - offsetOfPrevLineBreak + 1 + this.offsetByLine[i]);
13403
+ return new _core_position_js__WEBPACK_IMPORTED_MODULE_3__.Position(this.lineRange.start + i + 1, offset - offsetOfPrevLineBreak + 1 + this.offsetByLine[i]);
13404
13404
  }
13405
13405
  translateRange(range) {
13406
- return _core_range_js__WEBPACK_IMPORTED_MODULE_9__.Range.fromPositions(this.translateOffset(range.start), this.translateOffset(range.endExclusive));
13406
+ return _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range.fromPositions(this.translateOffset(range.start), this.translateOffset(range.endExclusive));
13407
13407
  }
13408
13408
  /**
13409
13409
  * Finds the word that contains the character at the given offset
@@ -13510,8 +13510,8 @@ __webpack_require__.r(__webpack_exports__);
13510
13510
  /* harmony export */ });
13511
13511
  /* harmony import */ var _base_common_codicons_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/common/codicons.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/codicons.js");
13512
13512
  /* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/common/uri.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/uri.js");
13513
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
13514
- /* harmony import */ var _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tokenizationRegistry.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/tokenizationRegistry.js");
13513
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
13514
+ /* harmony import */ var _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tokenizationRegistry.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/tokenizationRegistry.js");
13515
13515
  /*---------------------------------------------------------------------------------------------
13516
13516
  * Copyright (c) Microsoft Corporation. All rights reserved.
13517
13517
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -13672,7 +13672,7 @@ class SelectedSuggestionInfo {
13672
13672
  this.isSnippetText = isSnippetText;
13673
13673
  }
13674
13674
  equals(other) {
13675
- return _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.lift(this.range).equalsRange(other.range)
13675
+ return _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.lift(this.range).equalsRange(other.range)
13676
13676
  && this.text === other.text
13677
13677
  && this.completionKind === other.completionKind
13678
13678
  && this.isSnippetText === other.isSnippetText;
@@ -13708,8 +13708,8 @@ var DocumentHighlightKind;
13708
13708
  function isLocationLink(thing) {
13709
13709
  return thing
13710
13710
  && _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__.URI.isUri(thing.uri)
13711
- && _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isIRange(thing.range)
13712
- && (_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isIRange(thing.originSelectionRange) || _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isIRange(thing.targetSelectionRange));
13711
+ && _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.range)
13712
+ && (_core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.originSelectionRange) || _core_range_js__WEBPACK_IMPORTED_MODULE_2__.Range.isIRange(thing.targetSelectionRange));
13713
13713
  }
13714
13714
  /**
13715
13715
  * @internal
@@ -13879,7 +13879,7 @@ class LazyTokenizationSupport {
13879
13879
  /**
13880
13880
  * @internal
13881
13881
  */
13882
- const TokenizationRegistry = new _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_2__.TokenizationRegistry();
13882
+ const TokenizationRegistry = new _tokenizationRegistry_js__WEBPACK_IMPORTED_MODULE_3__.TokenizationRegistry();
13883
13883
  /**
13884
13884
  * @internal
13885
13885
  */
@@ -14606,8 +14606,8 @@ __webpack_require__.r(__webpack_exports__);
14606
14606
  /* harmony export */ MirrorTextModel: () => (/* binding */ MirrorTextModel)
14607
14607
  /* harmony export */ });
14608
14608
  /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/strings.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/strings.js");
14609
- /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
14610
- /* harmony import */ var _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prefixSumComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/prefixSumComputer.js");
14609
+ /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
14610
+ /* harmony import */ var _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prefixSumComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/prefixSumComputer.js");
14611
14611
  /*---------------------------------------------------------------------------------------------
14612
14612
  * Copyright (c) Microsoft Corporation. All rights reserved.
14613
14613
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -14645,7 +14645,7 @@ class MirrorTextModel {
14645
14645
  const changes = e.changes;
14646
14646
  for (const change of changes) {
14647
14647
  this._acceptDeleteRange(change.range);
14648
- this._acceptInsertText(new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(change.range.startLineNumber, change.range.startColumn), change.text);
14648
+ this._acceptInsertText(new _core_position_js__WEBPACK_IMPORTED_MODULE_1__.Position(change.range.startLineNumber, change.range.startColumn), change.text);
14649
14649
  }
14650
14650
  this._versionId = e.versionId;
14651
14651
  this._cachedTextValue = null;
@@ -14658,7 +14658,7 @@ class MirrorTextModel {
14658
14658
  for (let i = 0; i < linesLength; i++) {
14659
14659
  lineStartValues[i] = this._lines[i].length + eolLength;
14660
14660
  }
14661
- this._lineStarts = new _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_1__.PrefixSumComputer(lineStartValues);
14661
+ this._lineStarts = new _prefixSumComputer_js__WEBPACK_IMPORTED_MODULE_2__.PrefixSumComputer(lineStartValues);
14662
14662
  }
14663
14663
  }
14664
14664
  /**
@@ -14987,9 +14987,9 @@ __webpack_require__.r(__webpack_exports__);
14987
14987
  /* harmony export */ });
14988
14988
  /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/strings.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/strings.js");
14989
14989
  /* harmony import */ var _core_wordCharacterClassifier_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/wordCharacterClassifier.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/wordCharacterClassifier.js");
14990
- /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
14990
+ /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
14991
14991
  /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
14992
- /* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model.js");
14992
+ /* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model.js");
14993
14993
  /*---------------------------------------------------------------------------------------------
14994
14994
  * Copyright (c) Microsoft Corporation. All rights reserved.
14995
14995
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -15040,7 +15040,7 @@ class SearchParams {
15040
15040
  // casing might make a difference
15041
15041
  canUseSimpleSearch = this.matchCase;
15042
15042
  }
15043
- return new _model_js__WEBPACK_IMPORTED_MODULE_2__.SearchData(regex, this.wordSeparators ? (0,_core_wordCharacterClassifier_js__WEBPACK_IMPORTED_MODULE_1__.getMapForWordSeparators)(this.wordSeparators) : null, canUseSimpleSearch ? this.searchString : null);
15043
+ return new _model_js__WEBPACK_IMPORTED_MODULE_4__.SearchData(regex, this.wordSeparators ? (0,_core_wordCharacterClassifier_js__WEBPACK_IMPORTED_MODULE_1__.getMapForWordSeparators)(this.wordSeparators) : null, canUseSimpleSearch ? this.searchString : null);
15044
15044
  }
15045
15045
  }
15046
15046
  function isMultilineRegexSource(searchString) {
@@ -15069,13 +15069,13 @@ function isMultilineRegexSource(searchString) {
15069
15069
  }
15070
15070
  function createFindMatch(range, rawMatches, captureMatches) {
15071
15071
  if (!captureMatches) {
15072
- return new _model_js__WEBPACK_IMPORTED_MODULE_2__.FindMatch(range, null);
15072
+ return new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(range, null);
15073
15073
  }
15074
15074
  const matches = [];
15075
15075
  for (let i = 0, len = rawMatches.length; i < len; i++) {
15076
15076
  matches[i] = rawMatches[i];
15077
15077
  }
15078
- return new _model_js__WEBPACK_IMPORTED_MODULE_2__.FindMatch(range, matches);
15078
+ return new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(range, matches);
15079
15079
  }
15080
15080
  class LineFeedCounter {
15081
15081
  constructor(text) {
@@ -15208,7 +15208,7 @@ class TextModelSearch {
15208
15208
  let lastMatchIndex = -searchStringLen;
15209
15209
  while ((lastMatchIndex = text.indexOf(searchString, lastMatchIndex + searchStringLen)) !== -1) {
15210
15210
  if (!wordSeparators || isValidMatch(wordSeparators, text, textLength, lastMatchIndex, searchStringLen)) {
15211
- result[resultLen++] = new _model_js__WEBPACK_IMPORTED_MODULE_2__.FindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, lastMatchIndex + 1 + deltaOffset, lineNumber, lastMatchIndex + 1 + searchStringLen + deltaOffset), null);
15211
+ result[resultLen++] = new _model_js__WEBPACK_IMPORTED_MODULE_4__.FindMatch(new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(lineNumber, lastMatchIndex + 1 + deltaOffset, lineNumber, lastMatchIndex + 1 + searchStringLen + deltaOffset), null);
15212
15212
  if (resultLen >= limitResultCount) {
15213
15213
  return resultLen;
15214
15214
  }
@@ -15243,7 +15243,7 @@ class TextModelSearch {
15243
15243
  return this._doFindNextMatchLineByLine(model, searchStart, searcher, captureMatches);
15244
15244
  }
15245
15245
  static _doFindNextMatchMultiline(model, searchStart, searcher, captureMatches) {
15246
- const searchTextStart = new _core_position_js__WEBPACK_IMPORTED_MODULE_4__.Position(searchStart.lineNumber, 1);
15246
+ const searchTextStart = new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(searchStart.lineNumber, 1);
15247
15247
  const deltaOffset = model.getOffsetAt(searchTextStart);
15248
15248
  const lineCount = model.getLineCount();
15249
15249
  // We always execute multiline search over the lines joined with \n
@@ -15258,7 +15258,7 @@ class TextModelSearch {
15258
15258
  }
15259
15259
  if (searchStart.lineNumber !== 1 || searchStart.column !== 1) {
15260
15260
  // Try again from the top
15261
- return this._doFindNextMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_4__.Position(1, 1), searcher, captureMatches);
15261
+ return this._doFindNextMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(1, 1), searcher, captureMatches);
15262
15262
  }
15263
15263
  return null;
15264
15264
  }
@@ -15309,7 +15309,7 @@ class TextModelSearch {
15309
15309
  const lineCount = model.getLineCount();
15310
15310
  if (searchStart.lineNumber !== lineCount || searchStart.column !== model.getLineMaxColumn(lineCount)) {
15311
15311
  // Try again with all content
15312
- return this._doFindPreviousMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_4__.Position(lineCount, model.getLineMaxColumn(lineCount)), searcher, captureMatches);
15312
+ return this._doFindPreviousMatchMultiline(model, new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(lineCount, model.getLineMaxColumn(lineCount)), searcher, captureMatches);
15313
15313
  }
15314
15314
  return null;
15315
15315
  }
@@ -15461,11 +15461,11 @@ __webpack_require__.r(__webpack_exports__);
15461
15461
  /* harmony import */ var _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/event.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/event.js");
15462
15462
  /* harmony import */ var _base_common_keyCodes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/keyCodes.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/keyCodes.js");
15463
15463
  /* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/uri.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/uri.js");
15464
- /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
15465
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
15466
- /* harmony import */ var _core_selection_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/selection.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/selection.js");
15467
- /* harmony import */ var _languages_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../languages.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages.js");
15468
- /* harmony import */ var _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../standalone/standaloneEnums.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/standalone/standaloneEnums.js");
15464
+ /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
15465
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
15466
+ /* harmony import */ var _core_selection_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/selection.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/selection.js");
15467
+ /* harmony import */ var _languages_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../languages.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages.js");
15468
+ /* harmony import */ var _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../standalone/standaloneEnums.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/standalone/standaloneEnums.js");
15469
15469
  /*---------------------------------------------------------------------------------------------
15470
15470
  * Copyright (c) Microsoft Corporation. All rights reserved.
15471
15471
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -15494,16 +15494,16 @@ function createMonacoBaseAPI() {
15494
15494
  languages: undefined,
15495
15495
  CancellationTokenSource: _base_common_cancellation_js__WEBPACK_IMPORTED_MODULE_0__.CancellationTokenSource,
15496
15496
  Emitter: _base_common_event_js__WEBPACK_IMPORTED_MODULE_1__.Emitter,
15497
- KeyCode: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_6__.KeyCode,
15497
+ KeyCode: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.KeyCode,
15498
15498
  KeyMod: KeyMod,
15499
- Position: _core_position_js__WEBPACK_IMPORTED_MODULE_7__.Position,
15500
- Range: _core_range_js__WEBPACK_IMPORTED_MODULE_8__.Range,
15501
- Selection: _core_selection_js__WEBPACK_IMPORTED_MODULE_4__.Selection,
15502
- SelectionDirection: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_6__.SelectionDirection,
15503
- MarkerSeverity: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_6__.MarkerSeverity,
15504
- MarkerTag: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_6__.MarkerTag,
15499
+ Position: _core_position_js__WEBPACK_IMPORTED_MODULE_4__.Position,
15500
+ Range: _core_range_js__WEBPACK_IMPORTED_MODULE_5__.Range,
15501
+ Selection: _core_selection_js__WEBPACK_IMPORTED_MODULE_6__.Selection,
15502
+ SelectionDirection: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.SelectionDirection,
15503
+ MarkerSeverity: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.MarkerSeverity,
15504
+ MarkerTag: _standalone_standaloneEnums_js__WEBPACK_IMPORTED_MODULE_8__.MarkerTag,
15505
15505
  Uri: _base_common_uri_js__WEBPACK_IMPORTED_MODULE_3__.URI,
15506
- Token: _languages_js__WEBPACK_IMPORTED_MODULE_5__.Token
15506
+ Token: _languages_js__WEBPACK_IMPORTED_MODULE_7__.Token
15507
15507
  };
15508
15508
  }
15509
15509
 
@@ -15523,20 +15523,20 @@ __webpack_require__.r(__webpack_exports__);
15523
15523
  /* harmony export */ });
15524
15524
  /* harmony import */ var _base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../base/common/diff/diff.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/diff/diff.js");
15525
15525
  /* harmony import */ var _base_common_uri_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/uri.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/uri.js");
15526
- /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
15527
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
15528
- /* harmony import */ var _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model/mirrorTextModel.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/mirrorTextModel.js");
15529
- /* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/wordHelper.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/wordHelper.js");
15530
- /* harmony import */ var _languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../languages/linkComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/linkComputer.js");
15531
- /* harmony import */ var _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../languages/supports/inplaceReplaceSupport.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js");
15532
- /* harmony import */ var _editorBaseApi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editorBaseApi.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/services/editorBaseApi.js");
15533
- /* harmony import */ var _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../base/common/stopwatch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/stopwatch.js");
15534
- /* harmony import */ var _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./unicodeTextModelHighlighter.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/services/unicodeTextModelHighlighter.js");
15535
- /* harmony import */ var _diff_smartLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../diff/smartLinesDiffComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/smartLinesDiffComputer.js");
15536
- /* harmony import */ var _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../diff/linesDiffComputers.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputers.js");
15537
- /* harmony import */ var _base_common_objects_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../base/common/objects.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/objects.js");
15538
- /* harmony import */ var _base_common_errors_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../base/common/errors.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/errors.js");
15539
- /* harmony import */ var _languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../languages/defaultDocumentColorsComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js");
15526
+ /* harmony import */ var _core_position_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/position.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/position.js");
15527
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
15528
+ /* harmony import */ var _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model/mirrorTextModel.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/mirrorTextModel.js");
15529
+ /* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/wordHelper.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/wordHelper.js");
15530
+ /* harmony import */ var _languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../languages/linkComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/linkComputer.js");
15531
+ /* harmony import */ var _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../languages/supports/inplaceReplaceSupport.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js");
15532
+ /* harmony import */ var _editorBaseApi_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./editorBaseApi.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/services/editorBaseApi.js");
15533
+ /* harmony import */ var _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../base/common/stopwatch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/stopwatch.js");
15534
+ /* harmony import */ var _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./unicodeTextModelHighlighter.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/services/unicodeTextModelHighlighter.js");
15535
+ /* harmony import */ var _diff_smartLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../diff/smartLinesDiffComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/smartLinesDiffComputer.js");
15536
+ /* harmony import */ var _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../diff/linesDiffComputers.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputers.js");
15537
+ /* harmony import */ var _base_common_objects_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../base/common/objects.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/objects.js");
15538
+ /* harmony import */ var _base_common_errors_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../base/common/errors.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/errors.js");
15539
+ /* harmony import */ var _languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../languages/defaultDocumentColorsComputer.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js");
15540
15540
  /*---------------------------------------------------------------------------------------------
15541
15541
  * Copyright (c) Microsoft Corporation. All rights reserved.
15542
15542
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -15569,7 +15569,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15569
15569
  /**
15570
15570
  * @internal
15571
15571
  */
15572
- class MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_2__.MirrorTextModel {
15572
+ class MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_4__.MirrorTextModel {
15573
15573
  get uri() {
15574
15574
  return this._uri;
15575
15575
  }
@@ -15583,7 +15583,7 @@ class MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_2__
15583
15583
  const matches = [];
15584
15584
  for (let i = 0; i < this._lines.length; i++) {
15585
15585
  const line = this._lines[i];
15586
- const offsetToAdd = this.offsetAt(new _core_position_js__WEBPACK_IMPORTED_MODULE_13__.Position(i + 1, 1));
15586
+ const offsetToAdd = this.offsetAt(new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(i + 1, 1));
15587
15587
  const iteratorOverMatches = line.matchAll(regex);
15588
15588
  for (const match of iteratorOverMatches) {
15589
15589
  if (match.index || match.index === 0) {
@@ -15604,9 +15604,9 @@ class MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_2__
15604
15604
  return this._lines[lineNumber - 1];
15605
15605
  }
15606
15606
  getWordAtPosition(position, wordDefinition) {
15607
- const wordAtText = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__.getWordAtText)(position.column, (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__.ensureValidWordDefinition)(wordDefinition), this._lines[position.lineNumber - 1], 0);
15607
+ const wordAtText = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__.getWordAtText)(position.column, (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_5__.ensureValidWordDefinition)(wordDefinition), this._lines[position.lineNumber - 1], 0);
15608
15608
  if (wordAtText) {
15609
- return new _core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range(position.lineNumber, wordAtText.startColumn, position.lineNumber, wordAtText.endColumn);
15609
+ return new _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range(position.lineNumber, wordAtText.startColumn, position.lineNumber, wordAtText.endColumn);
15610
15610
  }
15611
15611
  return null;
15612
15612
  }
@@ -15731,7 +15731,7 @@ class MirrorModel extends _model_mirrorTextModel_js__WEBPACK_IMPORTED_MODULE_2__
15731
15731
  return range;
15732
15732
  }
15733
15733
  _validatePosition(position) {
15734
- if (!_core_position_js__WEBPACK_IMPORTED_MODULE_13__.Position.isIPosition(position)) {
15734
+ if (!_core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position.isIPosition(position)) {
15735
15735
  throw new Error('bad position');
15736
15736
  }
15737
15737
  let { lineNumber, column } = position;
@@ -15808,7 +15808,7 @@ class EditorSimpleWorker {
15808
15808
  if (!model) {
15809
15809
  return { ranges: [], hasMore: false, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 };
15810
15810
  }
15811
- return _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_7__.UnicodeTextModelHighlighter.computeUnicodeHighlights(model, options, range);
15811
+ return _unicodeTextModelHighlighter_js__WEBPACK_IMPORTED_MODULE_10__.UnicodeTextModelHighlighter.computeUnicodeHighlights(model, options, range);
15812
15812
  });
15813
15813
  }
15814
15814
  // ---- BEGIN diff --------------------------------------------------------------------------
@@ -15823,7 +15823,7 @@ class EditorSimpleWorker {
15823
15823
  });
15824
15824
  }
15825
15825
  static computeDiff(originalTextModel, modifiedTextModel, options, algorithm) {
15826
- const diffAlgorithm = algorithm === 'advanced' ? _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_9__.linesDiffComputers.advanced : _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_9__.linesDiffComputers.legacy;
15826
+ const diffAlgorithm = algorithm === 'advanced' ? _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_12__.linesDiffComputers.advanced : _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_12__.linesDiffComputers.legacy;
15827
15827
  const originalLines = originalTextModel.getLinesContent();
15828
15828
  const modifiedLines = modifiedTextModel.getLinesContent();
15829
15829
  const result = diffAlgorithm.computeDiff(originalLines, modifiedLines, options);
@@ -15870,7 +15870,7 @@ class EditorSimpleWorker {
15870
15870
  }
15871
15871
  const originalLines = original.getLinesContent();
15872
15872
  const modifiedLines = modified.getLinesContent();
15873
- const diffComputer = new _diff_smartLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_8__.DiffComputer(originalLines, modifiedLines, {
15873
+ const diffComputer = new _diff_smartLinesDiffComputer_js__WEBPACK_IMPORTED_MODULE_11__.DiffComputer(originalLines, modifiedLines, {
15874
15874
  shouldComputeCharChanges: false,
15875
15875
  shouldPostProcessCharChanges: false,
15876
15876
  shouldIgnoreTrimWhitespace: ignoreTrimWhitespace,
@@ -15890,7 +15890,7 @@ class EditorSimpleWorker {
15890
15890
  let lastEol = undefined;
15891
15891
  edits = edits.slice(0).sort((a, b) => {
15892
15892
  if (a.range && b.range) {
15893
- return _core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.compareRangesUsingStarts(a.range, b.range);
15893
+ return _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.compareRangesUsingStarts(a.range, b.range);
15894
15894
  }
15895
15895
  // eol only changes should go to the end
15896
15896
  const aRng = a.range ? 0 : 1;
@@ -15901,7 +15901,7 @@ class EditorSimpleWorker {
15901
15901
  if (typeof eol === 'number') {
15902
15902
  lastEol = eol;
15903
15903
  }
15904
- if (_core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.isEmpty(range) && !text) {
15904
+ if (_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isEmpty(range) && !text) {
15905
15905
  // empty change
15906
15906
  continue;
15907
15907
  }
@@ -15918,7 +15918,7 @@ class EditorSimpleWorker {
15918
15918
  }
15919
15919
  // compute diff between original and edit.text
15920
15920
  const changes = (0,_base_common_diff_diff_js__WEBPACK_IMPORTED_MODULE_0__.stringDiff)(original, text, pretty);
15921
- const editOffset = model.offsetAt(_core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.lift(range).getStartPosition());
15921
+ const editOffset = model.offsetAt(_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.lift(range).getStartPosition());
15922
15922
  for (const change of changes) {
15923
15923
  const start = model.positionAt(editOffset + change.originalStart);
15924
15924
  const end = model.positionAt(editOffset + change.originalStart + change.originalLength);
@@ -15947,7 +15947,7 @@ class EditorSimpleWorker {
15947
15947
  let lastEol = undefined;
15948
15948
  edits = edits.slice(0).sort((a, b) => {
15949
15949
  if (a.range && b.range) {
15950
- return _core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.compareRangesUsingStarts(a.range, b.range);
15950
+ return _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.compareRangesUsingStarts(a.range, b.range);
15951
15951
  }
15952
15952
  // eol only changes should go to the end
15953
15953
  const aRng = a.range ? 0 : 1;
@@ -15958,7 +15958,7 @@ class EditorSimpleWorker {
15958
15958
  if (typeof eol === 'number') {
15959
15959
  lastEol = eol;
15960
15960
  }
15961
- if (_core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.isEmpty(range) && !text) {
15961
+ if (_core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.isEmpty(range) && !text) {
15962
15962
  // empty change
15963
15963
  continue;
15964
15964
  }
@@ -15976,10 +15976,10 @@ class EditorSimpleWorker {
15976
15976
  // compute diff between original and edit.text
15977
15977
  const originalLines = original.split(/\r\n|\n|\r/);
15978
15978
  const modifiedLines = text.split(/\r\n|\n|\r/);
15979
- const diff = _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_9__.linesDiffComputers.advanced.computeDiff(originalLines, modifiedLines, options);
15980
- const start = _core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.lift(range).getStartPosition();
15979
+ const diff = _diff_linesDiffComputers_js__WEBPACK_IMPORTED_MODULE_12__.linesDiffComputers.advanced.computeDiff(originalLines, modifiedLines, options);
15980
+ const start = _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.lift(range).getStartPosition();
15981
15981
  function addPositions(pos1, pos2) {
15982
- return new _core_position_js__WEBPACK_IMPORTED_MODULE_13__.Position(pos1.lineNumber + pos2.lineNumber - 1, pos2.lineNumber === 1 ? pos1.column + pos2.column - 1 : pos2.column);
15982
+ return new _core_position_js__WEBPACK_IMPORTED_MODULE_2__.Position(pos1.lineNumber + pos2.lineNumber - 1, pos2.lineNumber === 1 ? pos1.column + pos2.column - 1 : pos2.column);
15983
15983
  }
15984
15984
  function getText(lines, range) {
15985
15985
  const result = [];
@@ -16004,13 +16004,13 @@ class EditorSimpleWorker {
16004
16004
  if (c.innerChanges) {
16005
16005
  for (const x of c.innerChanges) {
16006
16006
  result.push({
16007
- range: _core_range_js__WEBPACK_IMPORTED_MODULE_14__.Range.fromPositions(addPositions(start, x.originalRange.getStartPosition()), addPositions(start, x.originalRange.getEndPosition())),
16007
+ range: _core_range_js__WEBPACK_IMPORTED_MODULE_3__.Range.fromPositions(addPositions(start, x.originalRange.getStartPosition()), addPositions(start, x.originalRange.getEndPosition())),
16008
16008
  text: getText(modifiedLines, x.modifiedRange).join(model.eol)
16009
16009
  });
16010
16010
  }
16011
16011
  }
16012
16012
  else {
16013
- throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_11__.BugIndicatingError('The experimental diff algorithm always produces inner changes');
16013
+ throw new _base_common_errors_js__WEBPACK_IMPORTED_MODULE_14__.BugIndicatingError('The experimental diff algorithm always produces inner changes');
16014
16014
  }
16015
16015
  }
16016
16016
  }
@@ -16027,7 +16027,7 @@ class EditorSimpleWorker {
16027
16027
  if (!model) {
16028
16028
  return null;
16029
16029
  }
16030
- return (0,_languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_15__.computeLinks)(model);
16030
+ return (0,_languages_linkComputer_js__WEBPACK_IMPORTED_MODULE_6__.computeLinks)(model);
16031
16031
  });
16032
16032
  }
16033
16033
  // --- BEGIN default document colors -----------------------------------------------------------
@@ -16037,12 +16037,12 @@ class EditorSimpleWorker {
16037
16037
  if (!model) {
16038
16038
  return null;
16039
16039
  }
16040
- return (0,_languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_12__.computeDefaultDocumentColors)(model);
16040
+ return (0,_languages_defaultDocumentColorsComputer_js__WEBPACK_IMPORTED_MODULE_15__.computeDefaultDocumentColors)(model);
16041
16041
  });
16042
16042
  }
16043
16043
  textualSuggest(modelUrls, leadingWord, wordDef, wordDefFlags) {
16044
16044
  return __awaiter(this, void 0, void 0, function* () {
16045
- const sw = new _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_6__.StopWatch(true);
16045
+ const sw = new _base_common_stopwatch_js__WEBPACK_IMPORTED_MODULE_9__.StopWatch(true);
16046
16046
  const wordDefRegExp = new RegExp(wordDef, wordDefFlags);
16047
16047
  const seen = new Set();
16048
16048
  outer: for (const url of modelUrls) {
@@ -16117,7 +16117,7 @@ class EditorSimpleWorker {
16117
16117
  return null;
16118
16118
  }
16119
16119
  const word = model.getValueInRange(wordRange);
16120
- const result = _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_4__.BasicInplaceReplace.INSTANCE.navigateValueSet(range, selectionText, wordRange, word, up);
16120
+ const result = _languages_supports_inplaceReplaceSupport_js__WEBPACK_IMPORTED_MODULE_7__.BasicInplaceReplace.INSTANCE.navigateValueSet(range, selectionText, wordRange, word, up);
16121
16121
  return result;
16122
16122
  });
16123
16123
  }
@@ -16126,7 +16126,7 @@ class EditorSimpleWorker {
16126
16126
  const proxyMethodRequest = (method, args) => {
16127
16127
  return this._host.fhr(method, args);
16128
16128
  };
16129
- const foreignHost = (0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_10__.createProxyObject)(foreignHostMethods, proxyMethodRequest);
16129
+ const foreignHost = (0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_13__.createProxyObject)(foreignHostMethods, proxyMethodRequest);
16130
16130
  const ctx = {
16131
16131
  host: foreignHost,
16132
16132
  getMirrorModels: () => {
@@ -16136,7 +16136,7 @@ class EditorSimpleWorker {
16136
16136
  if (this._foreignModuleFactory) {
16137
16137
  this._foreignModule = this._foreignModuleFactory(ctx, createData);
16138
16138
  // static foreing module
16139
- return Promise.resolve((0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_10__.getAllMethodNames)(this._foreignModule));
16139
+ return Promise.resolve((0,_base_common_objects_js__WEBPACK_IMPORTED_MODULE_13__.getAllMethodNames)(this._foreignModule));
16140
16140
  }
16141
16141
  // ESM-comment-begin
16142
16142
  // return new Promise<any>((resolve, reject) => {
@@ -16179,7 +16179,7 @@ function create(host) {
16179
16179
  }
16180
16180
  if (typeof importScripts === 'function') {
16181
16181
  // Running in a web worker
16182
- globalThis.monaco = (0,_editorBaseApi_js__WEBPACK_IMPORTED_MODULE_5__.createMonacoBaseAPI)();
16182
+ globalThis.monaco = (0,_editorBaseApi_js__WEBPACK_IMPORTED_MODULE_8__.createMonacoBaseAPI)();
16183
16183
  }
16184
16184
 
16185
16185
 
@@ -16195,11 +16195,11 @@ __webpack_require__.r(__webpack_exports__);
16195
16195
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16196
16196
  /* harmony export */ UnicodeTextModelHighlighter: () => (/* binding */ UnicodeTextModelHighlighter)
16197
16197
  /* harmony export */ });
16198
- /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
16199
- /* harmony import */ var _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../model/textModelSearch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/textModelSearch.js");
16200
- /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../base/common/strings.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/strings.js");
16201
- /* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/assert.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/assert.js");
16202
- /* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/wordHelper.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/wordHelper.js");
16198
+ /* harmony import */ var _core_range_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/range.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/range.js");
16199
+ /* harmony import */ var _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model/textModelSearch.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/model/textModelSearch.js");
16200
+ /* harmony import */ var _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../base/common/strings.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/strings.js");
16201
+ /* harmony import */ var _base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../base/common/assert.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/base/common/assert.js");
16202
+ /* harmony import */ var _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/wordHelper.js */ "../../node_modules/.pnpm/@difizen+monaco-editor-core@0.39.4/node_modules/@difizen/monaco-editor-core/esm/vs/editor/common/core/wordHelper.js");
16203
16203
  /*---------------------------------------------------------------------------------------------
16204
16204
  * Copyright (c) Microsoft Corporation. All rights reserved.
16205
16205
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -16222,7 +16222,7 @@ class UnicodeTextModelHighlighter {
16222
16222
  else {
16223
16223
  regex = new RegExp(`${buildRegExpCharClassExpr(Array.from(candidates))}`, 'g');
16224
16224
  }
16225
- const searcher = new _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_0__.Searcher(null, regex);
16225
+ const searcher = new _model_textModelSearch_js__WEBPACK_IMPORTED_MODULE_1__.Searcher(null, regex);
16226
16226
  const ranges = [];
16227
16227
  let hasMore = false;
16228
16228
  let m;
@@ -16242,18 +16242,18 @@ class UnicodeTextModelHighlighter {
16242
16242
  // Extend range to entire code point
16243
16243
  if (startIndex > 0) {
16244
16244
  const charCodeBefore = lineContent.charCodeAt(startIndex - 1);
16245
- if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.isHighSurrogate(charCodeBefore)) {
16245
+ if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isHighSurrogate(charCodeBefore)) {
16246
16246
  startIndex--;
16247
16247
  }
16248
16248
  }
16249
16249
  if (endIndex + 1 < lineLength) {
16250
16250
  const charCodeBefore = lineContent.charCodeAt(endIndex - 1);
16251
- if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.isHighSurrogate(charCodeBefore)) {
16251
+ if (_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isHighSurrogate(charCodeBefore)) {
16252
16252
  endIndex++;
16253
16253
  }
16254
16254
  }
16255
16255
  const str = lineContent.substring(startIndex, endIndex);
16256
- let word = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__.getWordAtText)(startIndex + 1, _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_3__.DEFAULT_WORD_REGEXP, lineContent, 0);
16256
+ let word = (0,_core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__.getWordAtText)(startIndex + 1, _core_wordHelper_js__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_WORD_REGEXP, lineContent, 0);
16257
16257
  if (word && word.endColumn <= startIndex + 1) {
16258
16258
  // The word does not include the problematic character, ignore the word
16259
16259
  word = null;
@@ -16270,14 +16270,14 @@ class UnicodeTextModelHighlighter {
16270
16270
  nonBasicAsciiCharacterCount++;
16271
16271
  }
16272
16272
  else {
16273
- (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_2__.assertNever)(highlightReason);
16273
+ (0,_base_common_assert_js__WEBPACK_IMPORTED_MODULE_3__.assertNever)(highlightReason);
16274
16274
  }
16275
16275
  const MAX_RESULT_LENGTH = 1000;
16276
16276
  if (ranges.length >= MAX_RESULT_LENGTH) {
16277
16277
  hasMore = true;
16278
16278
  break forLoop;
16279
16279
  }
16280
- ranges.push(new _core_range_js__WEBPACK_IMPORTED_MODULE_4__.Range(lineNumber, startIndex + 1, lineNumber, endIndex + 1));
16280
+ ranges.push(new _core_range_js__WEBPACK_IMPORTED_MODULE_0__.Range(lineNumber, startIndex + 1, lineNumber, endIndex + 1));
16281
16281
  }
16282
16282
  }
16283
16283
  } while (m);
@@ -16301,7 +16301,7 @@ class UnicodeTextModelHighlighter {
16301
16301
  case 3 /* SimpleHighlightReason.Ambiguous */: {
16302
16302
  const codePoint = char.codePointAt(0);
16303
16303
  const primaryConfusable = codePointHighlighter.ambiguousCharacters.getPrimaryConfusable(codePoint);
16304
- const notAmbiguousInLocales = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.AmbiguousCharacters.getLocales().filter((l) => !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.AmbiguousCharacters.getInstance(new Set([...options.allowedLocales, l])).isAmbiguous(codePoint));
16304
+ const notAmbiguousInLocales = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getLocales().filter((l) => !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getInstance(new Set([...options.allowedLocales, l])).isAmbiguous(codePoint));
16305
16305
  return { kind: 0 /* UnicodeHighlighterReasonKind.Ambiguous */, confusableWith: String.fromCodePoint(primaryConfusable), notAmbiguousInLocales };
16306
16306
  }
16307
16307
  case 1 /* SimpleHighlightReason.NonBasicASCII */:
@@ -16310,14 +16310,14 @@ class UnicodeTextModelHighlighter {
16310
16310
  }
16311
16311
  }
16312
16312
  function buildRegExpCharClassExpr(codePoints, flags) {
16313
- const src = `[${_base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.escapeRegExpCharacters(codePoints.map((i) => String.fromCodePoint(i)).join(''))}]`;
16313
+ const src = `[${_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.escapeRegExpCharacters(codePoints.map((i) => String.fromCodePoint(i)).join(''))}]`;
16314
16314
  return src;
16315
16315
  }
16316
16316
  class CodePointHighlighter {
16317
16317
  constructor(options) {
16318
16318
  this.options = options;
16319
16319
  this.allowedCodePoints = new Set(options.allowedCodePoints);
16320
- this.ambiguousCharacters = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.AmbiguousCharacters.getInstance(new Set(options.allowedLocales));
16320
+ this.ambiguousCharacters = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.AmbiguousCharacters.getInstance(new Set(options.allowedLocales));
16321
16321
  }
16322
16322
  getCandidateCodePoints() {
16323
16323
  if (this.options.nonBasicASCII) {
@@ -16325,7 +16325,7 @@ class CodePointHighlighter {
16325
16325
  }
16326
16326
  const set = new Set();
16327
16327
  if (this.options.invisibleCharacters) {
16328
- for (const cp of _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.InvisibleCharacters.codePoints) {
16328
+ for (const cp of _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.codePoints) {
16329
16329
  if (!isAllowedInvisibleCharacter(String.fromCodePoint(cp))) {
16330
16330
  set.add(cp);
16331
16331
  }
@@ -16354,11 +16354,11 @@ class CodePointHighlighter {
16354
16354
  if (wordContext) {
16355
16355
  for (const char of wordContext) {
16356
16356
  const codePoint = char.codePointAt(0);
16357
- const isBasicASCII = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.isBasicASCII(char);
16357
+ const isBasicASCII = _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.isBasicASCII(char);
16358
16358
  hasBasicASCIICharacters = hasBasicASCIICharacters || isBasicASCII;
16359
16359
  if (!isBasicASCII &&
16360
16360
  !this.ambiguousCharacters.isAmbiguous(codePoint) &&
16361
- !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {
16361
+ !_base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {
16362
16362
  hasNonConfusableNonBasicAsciiCharacter = true;
16363
16363
  }
16364
16364
  }
@@ -16370,7 +16370,7 @@ class CodePointHighlighter {
16370
16370
  }
16371
16371
  if (this.options.invisibleCharacters) {
16372
16372
  // TODO check for emojis
16373
- if (!isAllowedInvisibleCharacter(character) && _base_common_strings_js__WEBPACK_IMPORTED_MODULE_1__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {
16373
+ if (!isAllowedInvisibleCharacter(character) && _base_common_strings_js__WEBPACK_IMPORTED_MODULE_2__.InvisibleCharacters.isInvisibleCharacter(codePoint)) {
16374
16374
  return 2 /* SimpleHighlightReason.Invisible */;
16375
16375
  }
16376
16376
  }