@vscode/markdown-editor 0.0.2-2 → 0.0.2-21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/_observables/observableInternal/index.d.ts +1 -1
  2. package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +1 -1
  3. package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +1 -1
  4. package/dist/_observables/observableInternal/logging/logging.d.ts +1 -1
  5. package/dist/_observables/observableInternal/reactions/{autorun.d.ts → createEffect.d.ts} +11 -3
  6. package/dist/index.d.ts +1000 -52
  7. package/dist/index.js +4005 -2074
  8. package/dist/index.js.map +1 -1
  9. package/dist/markdown-editor.css +1 -0
  10. package/dist/observables.js +79 -101
  11. package/dist/observables.js.map +1 -1
  12. package/dist/{runOnChange-owE1SMC0.js → runOnChange-CkxK2gSn.js} +191 -163
  13. package/dist/runOnChange-CkxK2gSn.js.map +1 -0
  14. package/dist/stringEdit-DzLs4E1d.js +177 -0
  15. package/dist/stringEdit-DzLs4E1d.js.map +1 -0
  16. package/dist/web-editors.d.ts +125 -0
  17. package/dist/web-editors.js +5185 -0
  18. package/dist/web-editors.js.map +1 -0
  19. package/package.json +36 -9
  20. package/src/contrib/comments/commentInput.css +150 -0
  21. package/src/contrib/comments/comments.css +129 -0
  22. package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +166 -0
  23. package/src/view/editor.css +526 -32
  24. package/src/view/themes/default.css +11 -3
  25. package/src/view/themes/github.css +12 -9
  26. package/src/view/themes/vscode-default.css +347 -0
  27. package/src/view/themes/vscode-github.css +349 -0
  28. package/dist/runOnChange-owE1SMC0.js.map +0 -1
  29. /package/dist/_observables/observableInternal/reactions/{autorunImpl.d.ts → createEffectImpl.d.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  let m;
2
- function ae(n) {
2
+ function de(n) {
3
3
  m ? m instanceof K ? m.loggers.push(n) : m = new K([m, n]) : m = n;
4
4
  }
5
5
  function o() {
6
6
  return m;
7
7
  }
8
- let F;
9
- function de(n) {
10
- F = n;
11
- }
8
+ let x;
12
9
  function oe(n) {
13
- F && F(n);
10
+ x = n;
11
+ }
12
+ function ue(n) {
13
+ x && x(n);
14
14
  }
15
15
  class K {
16
16
  constructor(e) {
@@ -82,22 +82,22 @@ var u;
82
82
  const a = Error, d = a.stackTraceLimit;
83
83
  a.stackTraceLimit = 3;
84
84
  const h = new Error().stack;
85
- return a.stackTraceLimit = d, j.fromStack(h, i + 1);
85
+ return a.stackTraceLimit = d, L.fromStack(h, i + 1);
86
86
  }
87
87
  n.ofNthCaller = r;
88
88
  })(u || (u = {}));
89
- class j {
89
+ class L {
90
90
  static fromStack(e, t) {
91
91
  const s = e.split(`
92
- `), r = ue(s[t + 1]);
92
+ `), r = he(s[t + 1]);
93
93
  if (r)
94
- return new j(r.fileName, r.line, r.column, r.id);
94
+ return new L(r.fileName, r.line, r.column, r.id);
95
95
  }
96
96
  constructor(e, t, s, r) {
97
97
  this.fileName = e, this.line = t, this.column = s, this.id = r;
98
98
  }
99
99
  }
100
- function ue(n) {
100
+ function he(n) {
101
101
  if (!n)
102
102
  return;
103
103
  const e = n.match(/\((.*):(\d+):(\d+)\)/);
@@ -122,27 +122,27 @@ class l {
122
122
  this.owner = e, this.debugNameSource = t, this.referenceFn = s;
123
123
  }
124
124
  getDebugName(e) {
125
- return he(e, this);
125
+ return le(e, this);
126
126
  }
127
127
  }
128
- const P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new WeakMap();
129
- function he(n, e) {
130
- const t = B.get(n);
128
+ const P = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new WeakMap();
129
+ function le(n, e) {
130
+ const t = I.get(n);
131
131
  if (t)
132
132
  return t;
133
- const s = le(n, e);
133
+ const s = ce(n, e);
134
134
  if (s) {
135
135
  let r = P.get(s) ?? 0;
136
136
  r++, P.set(s, r);
137
137
  const i = r === 1 ? s : `${s}#${r}`;
138
- return B.set(n, i), i;
138
+ return I.set(n, i), i;
139
139
  }
140
140
  }
141
- function le(n, e) {
142
- const t = B.get(n);
141
+ function ce(n, e) {
142
+ const t = I.get(n);
143
143
  if (t)
144
144
  return t;
145
- const s = e.owner ? fe(e.owner) + "." : "";
145
+ const s = e.owner ? ge(e.owner) + "." : "";
146
146
  let r;
147
147
  const i = e.debugNameSource;
148
148
  if (i !== void 0)
@@ -152,21 +152,21 @@ function le(n, e) {
152
152
  } else
153
153
  return s + i;
154
154
  const a = e.referenceFn;
155
- if (a !== void 0 && (r = G(a), r !== void 0))
155
+ if (a !== void 0 && (r = W(a), r !== void 0))
156
156
  return s + r;
157
157
  if (e.owner !== void 0) {
158
- const d = ce(e.owner, n);
158
+ const d = fe(e.owner, n);
159
159
  if (d !== void 0)
160
160
  return s + d;
161
161
  }
162
162
  }
163
- function ce(n, e) {
163
+ function fe(n, e) {
164
164
  for (const t in n)
165
165
  if (n[t] === e)
166
166
  return t;
167
167
  }
168
168
  const Z = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new WeakMap();
169
- function fe(n) {
169
+ function ge(n) {
170
170
  const e = J.get(n);
171
171
  if (e)
172
172
  return e;
@@ -181,27 +181,27 @@ function ee(n) {
181
181
  if (e)
182
182
  return e.name === "Object" ? void 0 : e.name;
183
183
  }
184
- function G(n) {
184
+ function W(n) {
185
185
  const e = n.toString(), s = /\/\*\*\s*@description\s*([^*]*)\*\//.exec(e);
186
186
  return (s ? s[1] : void 0)?.trim();
187
187
  }
188
- let x;
189
- function ge(n) {
190
- x = n;
188
+ let j;
189
+ function _e(n) {
190
+ j = n;
191
191
  }
192
192
  let te;
193
- function _e(n) {
193
+ function be(n) {
194
194
  te = n;
195
195
  }
196
196
  let ne;
197
- function be(n) {
197
+ function pe(n) {
198
198
  ne = n;
199
199
  }
200
200
  let se;
201
- function pe(n) {
201
+ function me(n) {
202
202
  se = n;
203
203
  }
204
- class me {
204
+ class re {
205
205
  get TChange() {
206
206
  return null;
207
207
  }
@@ -214,10 +214,10 @@ class me {
214
214
  }
215
215
  map(e, t, s = u.ofCaller()) {
216
216
  const r = t === void 0 ? void 0 : e, i = t === void 0 ? e : t;
217
- return x({
217
+ return j({
218
218
  owner: r,
219
219
  debugName: () => {
220
- const a = G(i);
220
+ const a = W(i);
221
221
  if (a !== void 0)
222
222
  return a;
223
223
  const h = /^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());
@@ -234,7 +234,7 @@ class me {
234
234
  * Converts an observable of an observable value into a direct observable of the value.
235
235
  */
236
236
  flatten() {
237
- return x({
237
+ return j({
238
238
  owner: void 0,
239
239
  debugName: () => `${this.debugName} (flattened)`
240
240
  }, (e) => this.read(e).read(e));
@@ -257,7 +257,7 @@ class me {
257
257
  return se(this);
258
258
  }
259
259
  }
260
- class R extends me {
260
+ class N extends re {
261
261
  constructor(e) {
262
262
  super(), this._observers = /* @__PURE__ */ new Set(), o()?.handleObservableCreated(this, e);
263
263
  }
@@ -275,13 +275,13 @@ class R extends me {
275
275
  }
276
276
  log() {
277
277
  const e = !!o();
278
- return oe(this), e || o()?.handleObservableCreated(this, u.ofCaller()), this;
278
+ return ue(this), e || o()?.handleObservableCreated(this, u.ofCaller()), this;
279
279
  }
280
280
  debugGetObservers() {
281
281
  return this._observers;
282
282
  }
283
283
  }
284
- function N(n) {
284
+ function R(n) {
285
285
  return {
286
286
  dispose: n
287
287
  };
@@ -326,7 +326,7 @@ class f {
326
326
  this.disposables = [];
327
327
  }
328
328
  }
329
- class qe {
329
+ class Me {
330
330
  constructor() {
331
331
  this._store = new f();
332
332
  }
@@ -354,7 +354,7 @@ function Ce(n) {
354
354
  return "<unknown>";
355
355
  }
356
356
  }
357
- class b extends R {
357
+ class b extends N {
358
358
  get debugName() {
359
359
  return this._debugNameData.getDebugName(this) ?? "(anonymous)";
360
360
  }
@@ -545,23 +545,23 @@ class ye extends b {
545
545
  function Oe(n, e, t = u.ofCaller()) {
546
546
  return e !== void 0 ? new b(new l(n, void 0, e), e, void 0, void 0, _, t) : new b(new l(void 0, void 0, n), n, void 0, void 0, _, t);
547
547
  }
548
- function Me(n, e, t, s = u.ofCaller()) {
548
+ function He(n, e, t, s = u.ofCaller()) {
549
549
  return new ye(new l(n, void 0, e), e, void 0, void 0, _, t, s);
550
550
  }
551
551
  function V(n, e, t = u.ofCaller()) {
552
552
  return new b(new l(n.owner, n.debugName, n.debugReferenceFn), e, void 0, n.onLastObserverRemoved, n.equalsFn ?? _, t);
553
553
  }
554
- ge(V);
555
- function He(n, e, t = u.ofCaller()) {
554
+ _e(V);
555
+ function Ke(n, e, t = u.ofCaller()) {
556
556
  return new b(new l(n.owner, n.debugName, void 0), e, n.changeTracker, void 0, n.equalityComparer ?? _, t);
557
557
  }
558
- function Ke(n, e, t = u.ofCaller()) {
558
+ function Pe(n, e, t = u.ofCaller()) {
559
559
  let s, r;
560
560
  e === void 0 ? (s = n, r = void 0) : (r = n, s = e);
561
561
  let i = new f();
562
562
  return new b(new l(r, void 0, s), (a) => (i.isDisposed ? i = new f() : i.clear(), s(a, i)), void 0, () => i.dispose(), _, t);
563
563
  }
564
- function Pe(n, e, t = u.ofCaller()) {
564
+ function Ze(n, e, t = u.ofCaller()) {
565
565
  let s, r;
566
566
  e === void 0 ? (s = n, r = void 0) : (r = n, s = e);
567
567
  let i;
@@ -701,12 +701,14 @@ class k {
701
701
  this._isRunning ? this._state = 2 : this._run();
702
702
  }
703
703
  }
704
- function L(n, e = u.ofCaller()) {
704
+ function A(n, e = u.ofCaller()) {
705
705
  return new k(new l(void 0, void 0, n), n, void 0, e);
706
706
  }
707
- function W(n, e, t = u.ofCaller()) {
707
+ const Je = A;
708
+ function U(n, e, t = u.ofCaller()) {
708
709
  return new k(new l(n.owner, n.debugName, n.debugReferenceFn ?? e), e, void 0, t);
709
710
  }
711
+ const Qe = U;
710
712
  function Se(n, e, t = u.ofCaller()) {
711
713
  return new k(new l(n.owner, n.debugName, n.debugReferenceFn ?? e), e, n.changeTracker, t);
712
714
  }
@@ -719,32 +721,32 @@ function Te(n, e) {
719
721
  }, (r, i) => {
720
722
  t.clear(), e(r, i, t);
721
723
  });
722
- return N(() => {
724
+ return R(() => {
723
725
  s.dispose(), t.dispose();
724
726
  });
725
727
  }
726
- function Ze(n) {
727
- const e = new f(), t = W({
728
+ function Xe(n) {
729
+ const e = new f(), t = U({
728
730
  owner: void 0,
729
731
  debugName: void 0,
730
732
  debugReferenceFn: n
731
733
  }, (s) => {
732
734
  e.clear(), n(s, e);
733
735
  });
734
- return N(() => {
736
+ return R(() => {
735
737
  t.dispose(), e.dispose();
736
738
  });
737
739
  }
738
- function Je(n, e) {
740
+ function Ye(n, e) {
739
741
  let t;
740
- return W({ debugReferenceFn: e }, (s) => {
742
+ return U({ debugReferenceFn: e }, (s) => {
741
743
  const r = n.read(s), i = t;
742
744
  t = r, e({ lastValue: i, newValue: r });
743
745
  });
744
746
  }
745
- function Qe(n, e, t = (s) => s) {
747
+ function et(n, e, t = (s) => s) {
746
748
  const s = /* @__PURE__ */ new Map();
747
- return W({ debugReferenceFn: n }, (r) => {
749
+ return U({ debugReferenceFn: n }, (r) => {
748
750
  const i = /* @__PURE__ */ new Map(), a = new Map(s);
749
751
  for (const d of n(r)) {
750
752
  const h = t(d);
@@ -755,9 +757,9 @@ function Qe(n, e, t = (s) => s) {
755
757
  (i.size || a.size) && e({ addedValues: [...i.values()], removedValues: [...a.values()] });
756
758
  });
757
759
  }
758
- function Xe(n, e = u.ofCaller()) {
760
+ function tt(n, e = u.ofCaller()) {
759
761
  let t, s = !1;
760
- return t = L((r) => {
762
+ return t = A((r) => {
761
763
  n({
762
764
  delayedStore: r.delayedStore,
763
765
  store: r.store,
@@ -772,8 +774,8 @@ function Q(n) {
772
774
  const e = new Error("BugIndicatingErrorRecovery: " + n);
773
775
  ve(e), console.error("recovered from an error that indicates a bug", e);
774
776
  }
775
- function A(n, e) {
776
- const t = new U(n, e);
777
+ function E(n, e) {
778
+ const t = new $(n, e);
777
779
  try {
778
780
  n(t);
779
781
  } finally {
@@ -781,11 +783,11 @@ function A(n, e) {
781
783
  }
782
784
  }
783
785
  let S;
784
- function Ye(n) {
786
+ function nt(n) {
785
787
  if (S)
786
788
  n(S);
787
789
  else {
788
- const e = new U(n, void 0);
790
+ const e = new $(n, void 0);
789
791
  S = e;
790
792
  try {
791
793
  n(e);
@@ -794,8 +796,8 @@ function Ye(n) {
794
796
  }
795
797
  }
796
798
  }
797
- async function et(n, e) {
798
- const t = new U(n, e);
799
+ async function st(n, e) {
800
+ const t = new $(n, e);
799
801
  try {
800
802
  await n(t);
801
803
  } finally {
@@ -803,18 +805,18 @@ async function et(n, e) {
803
805
  }
804
806
  }
805
807
  function De(n, e, t) {
806
- n ? e(n) : A(e, t);
808
+ n ? e(n) : E(e, t);
807
809
  }
808
- class U {
810
+ class $ {
809
811
  constructor(e, t) {
810
812
  this._fn = e, this._getDebugName = t, this._updatingObservers = [], o()?.handleBeginTransaction(this);
811
813
  }
812
814
  getDebugName() {
813
- return this._getDebugName ? this._getDebugName() : G(this._fn);
815
+ return this._getDebugName ? this._getDebugName() : W(this._fn);
814
816
  }
815
817
  updateObserver(e, t) {
816
818
  if (!this._updatingObservers) {
817
- Q("Transaction already finished!"), A((s) => {
819
+ Q("Transaction already finished!"), E((s) => {
818
820
  s.updateObserver(e, t);
819
821
  });
820
822
  return;
@@ -841,7 +843,7 @@ function z(n, e, t = u.ofCaller()) {
841
843
  let s;
842
844
  return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new q(s, e, _, t);
843
845
  }
844
- class q extends R {
846
+ class q extends N {
845
847
  get debugName() {
846
848
  return this._debugNameData.getDebugName(this) ?? "ObservableValue";
847
849
  }
@@ -855,7 +857,7 @@ class q extends R {
855
857
  if (s === void 0 && this._equalityComparator(this._value, e))
856
858
  return;
857
859
  let r;
858
- t || (t = r = new U(() => {
860
+ t || (t = r = new $(() => {
859
861
  }, () => `Setting ${this.debugName}`));
860
862
  try {
861
863
  const i = this._value;
@@ -881,11 +883,11 @@ class q extends R {
881
883
  this._value = e;
882
884
  }
883
885
  }
884
- function tt(n, e, t = u.ofCaller()) {
886
+ function rt(n, e, t = u.ofCaller()) {
885
887
  let s;
886
- return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new Re(s, e, _, t);
888
+ return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new Ne(s, e, _, t);
887
889
  }
888
- class Re extends q {
890
+ class Ne extends q {
889
891
  _setValue(e) {
890
892
  this._value !== e && (this._value && this._value.dispose(), this._value = e);
891
893
  }
@@ -893,26 +895,26 @@ class Re extends q {
893
895
  this._value?.dispose();
894
896
  }
895
897
  }
896
- function I(...n) {
898
+ function G(...n) {
897
899
  let e, t, s, r;
898
900
  return n.length === 2 ? [t, s] = n : [e, t, s, r] = n, new p(new l(e, void 0, s), t, s, () => p.globalTransaction, _, r ?? u.ofCaller());
899
901
  }
900
- function nt(n, e, t, s = u.ofCaller()) {
902
+ function it(n, e, t, s = u.ofCaller()) {
901
903
  return new p(new l(n.owner, n.debugName, n.debugReferenceFn ?? t), e, t, () => p.globalTransaction, n.equalsFn ?? _, s);
902
904
  }
903
- class p extends R {
905
+ class p extends N {
904
906
  constructor(e, t, s, r, i, a) {
905
907
  super(a), this._debugNameData = e, this.event = t, this._getValue = s, this._getTransaction = r, this._equalityComparator = i, this._hasValue = !1, this.handleEvent = (d) => {
906
- const h = this._getValue(d), $ = this._value, E = !this._hasValue || !this._equalityComparator($, h);
908
+ const h = this._getValue(d), F = this._value, B = !this._hasValue || !this._equalityComparator(F, h);
907
909
  let M = !1;
908
- E && (this._value = h, this._hasValue && (M = !0, De(this._getTransaction(), (w) => {
909
- o()?.handleObservableUpdated(this, { oldValue: $, newValue: h, change: void 0, didChange: E, hadValue: this._hasValue });
910
+ B && (this._value = h, this._hasValue && (M = !0, De(this._getTransaction(), (w) => {
911
+ o()?.handleObservableUpdated(this, { oldValue: F, newValue: h, change: void 0, didChange: B, hadValue: this._hasValue });
910
912
  for (const H of this._observers)
911
913
  w.updateObserver(H, this), H.handleChange(this, void 0);
912
914
  }, () => {
913
915
  const w = this.getDebugName();
914
916
  return "Event fired" + (w ? `: ${w}` : "");
915
- })), this._hasValue = !0), M || o()?.handleObservableUpdated(this, { oldValue: $, newValue: h, change: void 0, didChange: E, hadValue: this._hasValue });
917
+ })), this._hasValue = !0), M || o()?.handleObservableUpdated(this, { oldValue: F, newValue: h, change: void 0, didChange: B, hadValue: this._hasValue });
916
918
  };
917
919
  }
918
920
  getDebugName() {
@@ -950,11 +952,11 @@ class p extends R {
950
952
  }
951
953
  }
952
954
  n.batchEventsGlobally = e;
953
- })(I || (I = {}));
954
- function Ne(n, e = u.ofCaller()) {
955
+ })(G || (G = {}));
956
+ function Re(n, e = u.ofCaller()) {
955
957
  return typeof n == "string" ? new X(n, void 0, e) : new X(void 0, n, e);
956
958
  }
957
- class X extends R {
959
+ class X extends N {
958
960
  get debugName() {
959
961
  return new l(this._owner, this._debugName, void 0).getDebugName(this) ?? "Observable Signal";
960
962
  }
@@ -966,7 +968,7 @@ class X extends R {
966
968
  }
967
969
  trigger(e, t) {
968
970
  if (!e) {
969
- A((s) => {
971
+ E((s) => {
970
972
  this.trigger(s, t);
971
973
  }, () => `Trigger signal ${this.debugName}`);
972
974
  return;
@@ -977,13 +979,13 @@ class X extends R {
977
979
  get() {
978
980
  }
979
981
  }
980
- function st(n) {
982
+ function at(n) {
981
983
  const e = z("promiseValue", {});
982
984
  return n.then((t) => {
983
985
  e.set({ value: t }, void 0);
984
986
  }), e;
985
987
  }
986
- function rt(n, e) {
988
+ function dt(n, e) {
987
989
  return V({
988
990
  owner: n,
989
991
  equalsFn: () => !1
@@ -991,22 +993,22 @@ function rt(n, e) {
991
993
  e.read(t);
992
994
  });
993
995
  }
994
- function it(n, e, t) {
996
+ function ot(n, e, t) {
995
997
  const s = z("debounced", void 0);
996
998
  let r;
997
- return t.add(L((i) => {
999
+ return t.add(A((i) => {
998
1000
  const a = n.read(i);
999
1001
  r && clearTimeout(r), r = setTimeout(() => {
1000
- A((d) => {
1002
+ E((d) => {
1001
1003
  s.set(a, d);
1002
1004
  });
1003
1005
  }, e);
1004
1006
  })), s;
1005
1007
  }
1006
- function at(n, e) {
1008
+ function ut(n, e) {
1007
1009
  let t = !1, s, r;
1008
- return I((i) => {
1009
- const a = L((d) => {
1010
+ return G((i) => {
1011
+ const a = A((d) => {
1010
1012
  const h = n.read(d);
1011
1013
  t ? (r && clearTimeout(r), r = setTimeout(() => {
1012
1014
  s = h, i();
@@ -1019,7 +1021,7 @@ function at(n, e) {
1019
1021
  };
1020
1022
  }, () => t ? s : n.get());
1021
1023
  }
1022
- function dt(n, e, t) {
1024
+ function ht(n, e, t) {
1023
1025
  const s = z("triggeredRecently", !1);
1024
1026
  let r;
1025
1027
  return t.add(n(() => {
@@ -1029,26 +1031,26 @@ function dt(n, e, t) {
1029
1031
  })), s;
1030
1032
  }
1031
1033
  function Ve(n) {
1032
- const e = new re(!1, void 0);
1033
- return n.addObserver(e), N(() => {
1034
+ const e = new ie(!1, void 0);
1035
+ return n.addObserver(e), R(() => {
1034
1036
  n.removeObserver(e);
1035
1037
  });
1036
1038
  }
1037
- be(Ve);
1039
+ pe(Ve);
1038
1040
  function ke(n, e) {
1039
- const t = new re(!0, e);
1041
+ const t = new ie(!0, e);
1040
1042
  n.addObserver(t);
1041
1043
  try {
1042
1044
  t.beginUpdate(n);
1043
1045
  } finally {
1044
1046
  t.endUpdate(n);
1045
1047
  }
1046
- return N(() => {
1048
+ return R(() => {
1047
1049
  n.removeObserver(t);
1048
1050
  });
1049
1051
  }
1050
- _e(ke);
1051
- class re {
1052
+ be(ke);
1053
+ class ie {
1052
1054
  constructor(e, t) {
1053
1055
  this._forceRecompute = e, this._handleValue = t, this._counter = 0;
1054
1056
  }
@@ -1063,13 +1065,13 @@ class re {
1063
1065
  handleChange(e, t) {
1064
1066
  }
1065
1067
  }
1066
- function ot(n, e) {
1068
+ function lt(n, e) {
1067
1069
  let t;
1068
1070
  return V({ owner: n, debugReferenceFn: e }, (r) => (t = e(r, t), t));
1069
1071
  }
1070
- function ut(n, e) {
1072
+ function ct(n, e) {
1071
1073
  let t;
1072
- const s = Ne("derivedObservableWithWritableCache"), r = Oe(n, (i) => (s.read(i), t = e(i, t), t));
1074
+ const s = Re("derivedObservableWithWritableCache"), r = Oe(n, (i) => (s.read(i), t = e(i, t), t));
1073
1075
  return Object.assign(r, {
1074
1076
  clearCache: (i) => {
1075
1077
  t = void 0, s.trigger(i);
@@ -1079,7 +1081,7 @@ function ut(n, e) {
1079
1081
  }
1080
1082
  });
1081
1083
  }
1082
- function ht(n, e, t, s) {
1084
+ function ft(n, e, t, s) {
1083
1085
  let r = new Y(t, s);
1084
1086
  return V({
1085
1087
  debugReferenceFn: t,
@@ -1119,7 +1121,7 @@ class Y {
1119
1121
  }
1120
1122
  let T;
1121
1123
  function Ae(n) {
1122
- T || (T = new Ue(), ae(T)), T.addFilteredObj(n);
1124
+ T || (T = new Ue(), de(T)), T.addFilteredObj(n);
1123
1125
  }
1124
1126
  class Ue {
1125
1127
  constructor() {
@@ -1132,7 +1134,7 @@ class Ue {
1132
1134
  return this._filteredObjects?.has(e) ?? !0;
1133
1135
  }
1134
1136
  textToConsoleArgs(e) {
1135
- return $e([
1137
+ return Ee([
1136
1138
  C(xe("| ", this.indentation)),
1137
1139
  e
1138
1140
  ]);
@@ -1242,7 +1244,7 @@ class Ue {
1242
1244
  this.indentation--;
1243
1245
  }
1244
1246
  }
1245
- function $e(n) {
1247
+ function Ee(n) {
1246
1248
  const e = new Array(), t = [];
1247
1249
  let s = "";
1248
1250
  function r(a) {
@@ -1277,12 +1279,12 @@ function c(n, e = {
1277
1279
  }
1278
1280
  function O(n, e) {
1279
1281
  try {
1280
- return Ee(n, e);
1282
+ return $e(n, e);
1281
1283
  } catch {
1282
1284
  return "[[???]]";
1283
1285
  }
1284
1286
  }
1285
- function Ee(n, e) {
1287
+ function $e(n, e) {
1286
1288
  switch (typeof n) {
1287
1289
  case "number":
1288
1290
  return "" + n;
@@ -1351,9 +1353,9 @@ function Ie(n, e) {
1351
1353
  }
1352
1354
  function je(n, e) {
1353
1355
  const t = e?.debugNamePostProcessor ?? ((i) => i), s = g.from(n, t);
1354
- return s ? ie(s, 0, /* @__PURE__ */ new Set()).trim() : "";
1356
+ return s ? ae(s, 0, /* @__PURE__ */ new Set()).trim() : "";
1355
1357
  }
1356
- function ie(n, e, t) {
1358
+ function ae(n, e, t) {
1357
1359
  const s = " ".repeat(e), r = [];
1358
1360
  if (t.has(n.sourceObj))
1359
1361
  return r.push(`${s}* ${n.type} ${n.name} (already listed)`), r.join(`
@@ -1361,7 +1363,7 @@ function ie(n, e, t) {
1361
1363
  if (t.add(n.sourceObj), r.push(`${s}* ${n.type} ${n.name}:`), r.push(`${s} value: ${O(n.value, 50)}`), r.push(`${s} state: ${n.state}`), n.dependencies.length > 0) {
1362
1364
  r.push(`${s} dependencies:`);
1363
1365
  for (const a of n.dependencies)
1364
- r.push(ie(a, e + 1, t));
1366
+ r.push(ae(a, e + 1, t));
1365
1367
  }
1366
1368
  return r.join(`
1367
1369
  `);
@@ -1389,9 +1391,9 @@ class g {
1389
1391
  this.sourceObj = e, this.name = t, this.type = s, this.value = r, this.state = i, this.dependencies = a;
1390
1392
  }
1391
1393
  }
1392
- pe(je);
1393
- de(Ae);
1394
- class lt extends Error {
1394
+ me(je);
1395
+ oe(Ae);
1396
+ class gt extends Error {
1395
1397
  constructor(e = "Operation was cancelled") {
1396
1398
  super(e), this.name = "CancellationError";
1397
1399
  }
@@ -1425,7 +1427,31 @@ function Le(n) {
1425
1427
  const e = new Ge();
1426
1428
  return n.add(e), e.token;
1427
1429
  }
1428
- function We(n, e) {
1430
+ function _t(n) {
1431
+ return new We(n);
1432
+ }
1433
+ class We extends re {
1434
+ constructor(e) {
1435
+ super(), this.value = e;
1436
+ }
1437
+ get debugName() {
1438
+ return this.toString();
1439
+ }
1440
+ get() {
1441
+ return this.value;
1442
+ }
1443
+ addObserver(e) {
1444
+ }
1445
+ removeObserver(e) {
1446
+ }
1447
+ log() {
1448
+ return this;
1449
+ }
1450
+ toString() {
1451
+ return `Const: ${this.value}`;
1452
+ }
1453
+ }
1454
+ function ze(n, e) {
1429
1455
  let t, s = !0;
1430
1456
  return Te({
1431
1457
  changeTracker: {
@@ -1443,8 +1469,8 @@ function We(n, e) {
1443
1469
  i.didChange && (t = a, e(a, d, i.deltas)), s && (s = !1, t = a);
1444
1470
  });
1445
1471
  }
1446
- function ze(n, e) {
1447
- const t = new f(), s = We(n, (r, i, a) => {
1472
+ function qe(n, e) {
1473
+ const t = new f(), s = ze(n, (r, i, a) => {
1448
1474
  t.clear(), e(r, i, a, t);
1449
1475
  });
1450
1476
  return {
@@ -1453,62 +1479,64 @@ function ze(n, e) {
1453
1479
  }
1454
1480
  };
1455
1481
  }
1456
- function ct(n, e) {
1457
- return ze(n, (t, s, r, i) => {
1482
+ function bt(n, e) {
1483
+ return qe(n, (t, s, r, i) => {
1458
1484
  e(t, s, r, Le(i));
1459
1485
  });
1460
1486
  }
1461
1487
  export {
1462
- at as A,
1463
- R as B,
1464
- lt as C,
1465
- qe as D,
1466
- it as E,
1467
- Pe as F,
1468
- He as G,
1469
- ut as H,
1470
- V as I,
1471
- Me as J,
1472
- Ke as K,
1473
- tt as L,
1474
- Ye as M,
1475
- ht as N,
1488
+ Xe as A,
1489
+ N as B,
1490
+ gt as C,
1491
+ Me as D,
1492
+ Te as E,
1493
+ ut as F,
1494
+ ot as G,
1495
+ Ze as H,
1496
+ Ke as I,
1497
+ ct as J,
1498
+ V as K,
1499
+ He as L,
1500
+ Pe as M,
1501
+ rt as N,
1476
1502
  q as O,
1477
1503
  nt as P,
1478
- st as Q,
1479
- Ne as R,
1480
- ke as S,
1481
- U as T,
1482
- ct as U,
1483
- ze as V,
1484
- rt as W,
1485
- De as X,
1504
+ ft as Q,
1505
+ it as R,
1506
+ at as S,
1507
+ $ as T,
1508
+ Re as U,
1509
+ ke as V,
1510
+ bt as W,
1511
+ qe as X,
1486
1512
  dt as Y,
1487
- L as a,
1513
+ De as Z,
1514
+ ht as _,
1515
+ Je as a,
1488
1516
  l as b,
1489
- u as c,
1517
+ _t as c,
1490
1518
  Oe as d,
1491
- b as e,
1492
- Ge as f,
1519
+ u as e,
1520
+ b as f,
1493
1521
  o as g,
1494
- v as h,
1495
- me as i,
1496
- I as j,
1497
- ot as k,
1498
- f as l,
1499
- W as m,
1500
- he as n,
1522
+ A as h,
1523
+ Ge as i,
1524
+ v as j,
1525
+ G as k,
1526
+ lt as l,
1527
+ f as m,
1528
+ U as n,
1501
1529
  z as o,
1502
- Ve as p,
1503
- et as q,
1504
- We as r,
1530
+ le as p,
1531
+ Ve as q,
1532
+ ze as r,
1505
1533
  _ as s,
1506
- A as t,
1507
- Je as u,
1508
- Se as v,
1509
- Qe as w,
1510
- Xe as x,
1511
- Ze as y,
1512
- Te as z
1534
+ E as t,
1535
+ st as u,
1536
+ Ye as v,
1537
+ Se as w,
1538
+ et as x,
1539
+ Qe as y,
1540
+ tt as z
1513
1541
  };
1514
- //# sourceMappingURL=runOnChange-owE1SMC0.js.map
1542
+ //# sourceMappingURL=runOnChange-CkxK2gSn.js.map