@pygmalionjs/pygmalion 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var Pa = Object.defineProperty;
2
2
  var Ca = (t, e, n) => e in t ? Pa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => Ca(t, typeof e != "symbol" ? e + "" : e, n);
3
+ var v = (t, e, n) => Ca(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsxs as ai, jsx as ci } from "react/jsx-runtime";
5
5
  import Qt, { useState as ir, forwardRef as or, memo as sr, createElement as en, useRef as bt, useEffect as ui, Component as Ta } from "react";
6
6
  import { unstable_batchedUpdates as $a, flushSync as Da } from "react-dom";
@@ -81,7 +81,7 @@ var Ra = {
81
81
  38: "'ownKeys()' can only be used on observable objects",
82
82
  39: "'defineProperty()' can only be used on observable objects"
83
83
  }, La = process.env.NODE_ENV !== "production" ? Ra : {};
84
- function _(t) {
84
+ function w(t) {
85
85
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
86
86
  n[r - 1] = arguments[r];
87
87
  if (process.env.NODE_ENV !== "production") {
@@ -94,19 +94,19 @@ var ka = {};
94
94
  function _n() {
95
95
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : ka;
96
96
  }
97
- var vo = Object.assign, tn = Object.getOwnPropertyDescriptor, _e = Object.defineProperty, Sn = Object.prototype, nn = [];
97
+ var vo = Object.assign, tn = Object.getOwnPropertyDescriptor, Se = Object.defineProperty, Sn = Object.prototype, nn = [];
98
98
  Object.freeze(nn);
99
99
  var Rr = {};
100
100
  Object.freeze(Rr);
101
101
  var Fa = typeof Proxy < "u", ja = /* @__PURE__ */ Object.toString();
102
102
  function bo() {
103
- Fa || _(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
103
+ Fa || w(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
104
104
  }
105
105
  function yt(t) {
106
- process.env.NODE_ENV !== "production" && y.verifyProxies && _("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + t);
106
+ process.env.NODE_ENV !== "production" && b.verifyProxies && w("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + t);
107
107
  }
108
108
  function se() {
109
- return ++y.mobxGuid;
109
+ return ++b.mobxGuid;
110
110
  }
111
111
  function Lr(t) {
112
112
  var e = !1;
@@ -120,7 +120,7 @@ var at = function() {
120
120
  function $(t) {
121
121
  return typeof t == "function";
122
122
  }
123
- function De(t) {
123
+ function Re(t) {
124
124
  var e = typeof t;
125
125
  switch (e) {
126
126
  case "string":
@@ -147,7 +147,7 @@ function yo(t) {
147
147
  return e ? e.name === "GeneratorFunction" || e.displayName === "GeneratorFunction" : !1;
148
148
  }
149
149
  function Tt(t, e, n) {
150
- _e(t, e, {
150
+ Se(t, e, {
151
151
  enumerable: !1,
152
152
  writable: !0,
153
153
  configurable: !0,
@@ -155,14 +155,14 @@ function Tt(t, e, n) {
155
155
  });
156
156
  }
157
157
  function _o(t, e, n) {
158
- _e(t, e, {
158
+ Se(t, e, {
159
159
  enumerable: !1,
160
160
  writable: !1,
161
161
  configurable: !0,
162
162
  value: n
163
163
  });
164
164
  }
165
- function Qe(t, e) {
165
+ function et(t, e) {
166
166
  var n = "isMobX" + t;
167
167
  return e.prototype[n] = !0, function(r) {
168
168
  return wn(r) && r[n] === !0;
@@ -175,7 +175,7 @@ function za(t) {
175
175
  var e = Object.getPrototypeOf(t), n = Object.getPrototypeOf(e), r = Object.getPrototypeOf(n);
176
176
  return r === null;
177
177
  }
178
- function Ae(t) {
178
+ function xe(t) {
179
179
  return t != null && Object.prototype.toString.call(t) === "[object Set]";
180
180
  }
181
181
  var So = typeof Object.getOwnPropertySymbols < "u";
@@ -209,10 +209,10 @@ var Ba = Object.getOwnPropertyDescriptors || function(e) {
209
209
  n[r] = tn(e, r);
210
210
  }), n;
211
211
  };
212
- function W(t, e) {
212
+ function U(t, e) {
213
213
  return !!(t & e);
214
214
  }
215
- function G(t, e, n) {
215
+ function W(t, e, n) {
216
216
  return n ? t |= e : t &= ~e, t;
217
217
  }
218
218
  function li(t, e) {
@@ -256,14 +256,14 @@ function ct(t, e) {
256
256
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
257
257
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
258
258
  }
259
- function Ie() {
260
- return Ie = Object.assign ? Object.assign.bind() : function(t) {
259
+ function Me() {
260
+ return Me = Object.assign ? Object.assign.bind() : function(t) {
261
261
  for (var e = 1; e < arguments.length; e++) {
262
262
  var n = arguments[e];
263
263
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
264
264
  }
265
265
  return t;
266
- }, Ie.apply(null, arguments);
266
+ }, Me.apply(null, arguments);
267
267
  }
268
268
  function cr(t) {
269
269
  return cr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
@@ -339,7 +339,7 @@ function ur(t) {
339
339
  }, ur(t);
340
340
  }
341
341
  var z = /* @__PURE__ */ Symbol("mobx-stored-annotations");
342
- function Se(t) {
342
+ function we(t) {
343
343
  function e(n, r) {
344
344
  if (Dt(r))
345
345
  return t.decorate_20223_(n, r);
@@ -348,31 +348,31 @@ function Se(t) {
348
348
  return Object.assign(e, t);
349
349
  }
350
350
  function $t(t, e, n) {
351
- if (ie(t, z) || Tt(t, z, Ie({}, t[z])), process.env.NODE_ENV !== "production" && rn(n) && !ie(t[z], e)) {
351
+ if (ie(t, z) || Tt(t, z, Me({}, t[z])), process.env.NODE_ENV !== "production" && rn(n) && !ie(t[z], e)) {
352
352
  var r = t.constructor.name + ".prototype." + e.toString();
353
- _("'" + r + "' is decorated with 'override', but no such decorated member was found on prototype.");
353
+ w("'" + r + "' is decorated with 'override', but no such decorated member was found on prototype.");
354
354
  }
355
355
  Ya(t, n, e), rn(n) || (t[z][e] = n);
356
356
  }
357
357
  function Ya(t, e, n) {
358
358
  if (process.env.NODE_ENV !== "production" && !rn(e) && ie(t[z], n)) {
359
359
  var r = t.constructor.name + ".prototype." + n.toString(), i = t[z][n].annotationType_, o = e.annotationType_;
360
- _("Cannot apply '@" + o + "' to '" + r + "':" + (`
360
+ w("Cannot apply '@" + o + "' to '" + r + "':" + (`
361
361
  The field is already decorated with '@` + i + "'.") + `
362
362
  Re-decorating fields is not allowed.
363
363
  Use '@override' decorator for methods overridden by subclass.`);
364
364
  }
365
365
  }
366
366
  function Xa(t) {
367
- return ie(t, z) || Tt(t, z, Ie({}, t[z])), t[z];
367
+ return ie(t, z) || Tt(t, z, Me({}, t[z])), t[z];
368
368
  }
369
369
  function Dt(t) {
370
370
  return typeof t == "object" && typeof t.kind == "string";
371
371
  }
372
372
  function On(t, e) {
373
- process.env.NODE_ENV !== "production" && !e.includes(t.kind) && _("The decorator applied to '" + String(t.name) + "' cannot be used on a " + t.kind + " element");
373
+ process.env.NODE_ENV !== "production" && !e.includes(t.kind) && w("The decorator applied to '" + String(t.name) + "' cannot be used on a " + t.kind + " element");
374
374
  }
375
- var O = /* @__PURE__ */ Symbol("mobx administration"), Le = /* @__PURE__ */ (function() {
375
+ var E = /* @__PURE__ */ Symbol("mobx administration"), ke = /* @__PURE__ */ (function() {
376
376
  function t(n) {
377
377
  n === void 0 && (n = process.env.NODE_ENV !== "production" ? "Atom@" + se() : "Atom"), this.name_ = void 0, this.flags_ = 0, this.observers_ = /* @__PURE__ */ new Set(), this.lastAccessedBy_ = 0, this.lowestObserverState_ = x.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = n;
378
378
  }
@@ -394,36 +394,36 @@ var O = /* @__PURE__ */ Symbol("mobx administration"), Le = /* @__PURE__ */ (fun
394
394
  }, mt(t, [{
395
395
  key: "isBeingObserved",
396
396
  get: function() {
397
- return W(this.flags_, t.isBeingObservedMask_);
397
+ return U(this.flags_, t.isBeingObservedMask_);
398
398
  },
399
399
  set: function(r) {
400
- this.flags_ = G(this.flags_, t.isBeingObservedMask_, r);
400
+ this.flags_ = W(this.flags_, t.isBeingObservedMask_, r);
401
401
  }
402
402
  }, {
403
403
  key: "isPendingUnobservation",
404
404
  get: function() {
405
- return W(this.flags_, t.isPendingUnobservationMask_);
405
+ return U(this.flags_, t.isPendingUnobservationMask_);
406
406
  },
407
407
  set: function(r) {
408
- this.flags_ = G(this.flags_, t.isPendingUnobservationMask_, r);
408
+ this.flags_ = W(this.flags_, t.isPendingUnobservationMask_, r);
409
409
  }
410
410
  }, {
411
411
  key: "diffValue",
412
412
  get: function() {
413
- return W(this.flags_, t.diffValueMask_) ? 1 : 0;
413
+ return U(this.flags_, t.diffValueMask_) ? 1 : 0;
414
414
  },
415
415
  set: function(r) {
416
- this.flags_ = G(this.flags_, t.diffValueMask_, r === 1);
416
+ this.flags_ = W(this.flags_, t.diffValueMask_, r === 1);
417
417
  }
418
418
  }]);
419
419
  })();
420
- Le.isBeingObservedMask_ = 1;
421
- Le.isPendingUnobservationMask_ = 2;
422
- Le.diffValueMask_ = 4;
423
- var Fr = /* @__PURE__ */ Qe("Atom", Le);
420
+ ke.isBeingObservedMask_ = 1;
421
+ ke.isPendingUnobservationMask_ = 2;
422
+ ke.diffValueMask_ = 4;
423
+ var Fr = /* @__PURE__ */ et("Atom", ke);
424
424
  function Eo(t, e, n) {
425
425
  e === void 0 && (e = at), n === void 0 && (n = at);
426
- var r = new Le(t);
426
+ var r = new ke(t);
427
427
  return e !== at && du(r, e), n !== at && Yo(r, n), r;
428
428
  }
429
429
  function Ja(t, e) {
@@ -432,23 +432,23 @@ function Ja(t, e) {
432
432
  function Za(t, e) {
433
433
  return Object.is ? Object.is(t, e) : t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
434
434
  }
435
- var Ue = {
435
+ var We = {
436
436
  structural: Ja,
437
437
  default: Za
438
438
  };
439
- function We(t, e, n) {
439
+ function Ge(t, e, n) {
440
440
  return Nt(t) ? t : Array.isArray(t) ? T.array(t, {
441
441
  name: n
442
442
  }) : V(t) ? T.object(t, void 0, {
443
443
  name: n
444
444
  }) : pt(t) ? T.map(t, {
445
445
  name: n
446
- }) : Ae(t) ? T.set(t, {
446
+ }) : xe(t) ? T.set(t, {
447
447
  name: n
448
- }) : typeof t == "function" && !Ye(t) && !xt(t) ? yo(t) ? ft(t) : At(n, t) : t;
448
+ }) : typeof t == "function" && !Xe(t) && !xt(t) ? yo(t) ? ft(t) : At(n, t) : t;
449
449
  }
450
450
  function Qa(t, e, n) {
451
- if (t == null || Xe(t) || Ft(t) || Me(t) || be(t))
451
+ if (t == null || Je(t) || Ft(t) || Pe(t) || ye(t))
452
452
  return t;
453
453
  if (Array.isArray(t))
454
454
  return T.array(t, {
@@ -465,18 +465,18 @@ function Qa(t, e, n) {
465
465
  name: n,
466
466
  deep: !1
467
467
  });
468
- if (Ae(t))
468
+ if (xe(t))
469
469
  return T.set(t, {
470
470
  name: n,
471
471
  deep: !1
472
472
  });
473
- process.env.NODE_ENV !== "production" && _("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets");
473
+ process.env.NODE_ENV !== "production" && w("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets");
474
474
  }
475
475
  function En(t) {
476
476
  return t;
477
477
  }
478
478
  function ec(t, e) {
479
- return process.env.NODE_ENV !== "production" && Nt(t) && _("observable.struct should not be used with observable values"), ls(t, e) ? e : t;
479
+ return process.env.NODE_ENV !== "production" && Nt(t) && w("observable.struct should not be used with observable values"), ls(t, e) ? e : t;
480
480
  }
481
481
  var tc = "override";
482
482
  function rn(t) {
@@ -497,10 +497,10 @@ function nc(t, e, n, r) {
497
497
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
498
498
  if (r === t.target_)
499
499
  return this.extend_(t, e, n, !1) === null ? 0 : 2;
500
- if (Ye(n.value))
500
+ if (Xe(n.value))
501
501
  return 1;
502
502
  var o = Ao(t, this, e, n, !1);
503
- return _e(r, e, o), 2;
503
+ return Se(r, e, o), 2;
504
504
  }
505
505
  function rc(t, e, n, r) {
506
506
  var i = Ao(t, this, e, n);
@@ -510,38 +510,38 @@ function ic(t, e) {
510
510
  process.env.NODE_ENV !== "production" && On(e, ["method", "field"]);
511
511
  var n = e.kind, r = e.name, i = e.addInitializer, o = this, s = function(u) {
512
512
  var l, d, f, h;
513
- return Ge((l = (d = o.options_) == null ? void 0 : d.name) != null ? l : r.toString(), u, (f = (h = o.options_) == null ? void 0 : h.autoAction) != null ? f : !1);
513
+ return qe((l = (d = o.options_) == null ? void 0 : d.name) != null ? l : r.toString(), u, (f = (h = o.options_) == null ? void 0 : h.autoAction) != null ? f : !1);
514
514
  };
515
515
  if (n == "field")
516
516
  return function(c) {
517
517
  var u, l = c;
518
- return Ye(l) || (l = s(l)), (u = o.options_) != null && u.bound && (l = l.bind(this), l.isMobxAction = !0), l;
518
+ return Xe(l) || (l = s(l)), (u = o.options_) != null && u.bound && (l = l.bind(this), l.isMobxAction = !0), l;
519
519
  };
520
520
  if (n == "method") {
521
521
  var a;
522
- return Ye(t) || (t = s(t)), (a = this.options_) != null && a.bound && i(function() {
522
+ return Xe(t) || (t = s(t)), (a = this.options_) != null && a.bound && i(function() {
523
523
  var c = this, u = c[r].bind(c);
524
524
  u.isMobxAction = !0, c[r] = u;
525
525
  }), t;
526
526
  }
527
- _("Cannot apply '" + o.annotationType_ + "' to '" + String(r) + "' (kind: " + n + "):" + (`
527
+ w("Cannot apply '" + o.annotationType_ + "' to '" + String(r) + "' (kind: " + n + "):" + (`
528
528
  '` + o.annotationType_ + "' can only be used on properties with a function value."));
529
529
  }
530
530
  function oc(t, e, n, r) {
531
531
  var i = e.annotationType_, o = r.value;
532
- process.env.NODE_ENV !== "production" && !$(o) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
532
+ process.env.NODE_ENV !== "production" && !$(o) && w("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
533
533
  '` + i + "' can only be used on properties with a function value."));
534
534
  }
535
535
  function Ao(t, e, n, r, i) {
536
536
  var o, s, a, c, u, l, d;
537
- i === void 0 && (i = y.safeDescriptors), oc(t, e, n, r);
537
+ i === void 0 && (i = b.safeDescriptors), oc(t, e, n, r);
538
538
  var f = r.value;
539
539
  if ((o = e.options_) != null && o.bound) {
540
540
  var h;
541
541
  f = f.bind((h = t.proxy_) != null ? h : t.target_);
542
542
  }
543
543
  return {
544
- value: Ge(
544
+ value: qe(
545
545
  (s = (a = e.options_) == null ? void 0 : a.name) != null ? s : n.toString(),
546
546
  f,
547
547
  (c = (u = e.options_) == null ? void 0 : u.autoAction) != null ? c : !1,
@@ -576,7 +576,7 @@ function sc(t, e, n, r) {
576
576
  if (xt(n.value))
577
577
  return 1;
578
578
  var o = No(t, this, e, n, !1, !1);
579
- return _e(r, e, o), 2;
579
+ return Se(r, e, o), 2;
580
580
  }
581
581
  function ac(t, e, n, r) {
582
582
  var i, o = No(t, this, e, n, (i = this.options_) == null ? void 0 : i.bound);
@@ -593,11 +593,11 @@ function cc(t, e) {
593
593
  }
594
594
  function uc(t, e, n, r) {
595
595
  var i = e.annotationType_, o = r.value;
596
- process.env.NODE_ENV !== "production" && !$(o) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
596
+ process.env.NODE_ENV !== "production" && !$(o) && w("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
597
597
  '` + i + "' can only be used on properties with a generator function value."));
598
598
  }
599
599
  function No(t, e, n, r, i, o) {
600
- o === void 0 && (o = y.safeDescriptors), uc(t, e, n, r);
600
+ o === void 0 && (o = b.safeDescriptors), uc(t, e, n, r);
601
601
  var s = r.value;
602
602
  if (xt(s) || (s = ft(s)), i) {
603
603
  var a;
@@ -628,7 +628,7 @@ function lc(t, e, n) {
628
628
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
629
629
  }
630
630
  function dc(t, e, n, r) {
631
- return hc(t, this, e, n), t.defineComputedProperty_(e, Ie({}, this.options_, {
631
+ return hc(t, this, e, n), t.defineComputedProperty_(e, Me({}, this.options_, {
632
632
  get: n.get,
633
633
  set: n.set
634
634
  }), r);
@@ -637,19 +637,19 @@ function fc(t, e) {
637
637
  process.env.NODE_ENV !== "production" && On(e, ["getter"]);
638
638
  var n = this, r = e.name, i = e.addInitializer, o;
639
639
  function s(a, c) {
640
- var u = Ie({}, n.options_, {
640
+ var u = Me({}, n.options_, {
641
641
  get: t,
642
642
  context: a
643
643
  });
644
644
  return u.name || (u.name = process.env.NODE_ENV !== "production" ? c.name_ + "." + r.toString() : "ObservableObject." + r.toString()), new B(u);
645
645
  }
646
646
  return i(function() {
647
- var a, c = tt(this)[O], u = this, l = c.values_.get(r);
647
+ var a, c = nt(this)[E], u = this, l = c.values_.get(r);
648
648
  l instanceof B && l.derivation !== t && c.values_.delete(r), ((a = c.lazyComputedKeys_) != null ? a : c.lazyComputedKeys_ = /* @__PURE__ */ new Map()).set(r, function() {
649
649
  return s(u, c);
650
650
  });
651
651
  }), function() {
652
- var a = this[O], c = a.values_.get(r);
652
+ var a = this[E], c = a.values_.get(r);
653
653
  if (c instanceof B && c.derivation !== t) {
654
654
  var u, l = (u = o) == null ? void 0 : u.get(this);
655
655
  if (!l) {
@@ -663,7 +663,7 @@ function fc(t, e) {
663
663
  }
664
664
  function hc(t, e, n, r) {
665
665
  var i = e.annotationType_, o = r.get;
666
- process.env.NODE_ENV !== "production" && !o && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
666
+ process.env.NODE_ENV !== "production" && !o && w("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
667
667
  '` + i + "' can only be used on getter(+setter) properties."));
668
668
  }
669
669
  function An(t, e) {
@@ -680,31 +680,31 @@ function pc(t, e, n) {
680
680
  }
681
681
  function mc(t, e, n, r) {
682
682
  var i, o;
683
- return vc(t, this, e, n), t.defineObservableProperty_(e, n.value, (i = (o = this.options_) == null ? void 0 : o.enhancer) != null ? i : We, r);
683
+ return vc(t, this, e, n), t.defineObservableProperty_(e, n.value, (i = (o = this.options_) == null ? void 0 : o.enhancer) != null ? i : Ge, r);
684
684
  }
685
685
  function gc(t, e) {
686
686
  if (process.env.NODE_ENV !== "production") {
687
687
  if (e.kind === "field")
688
- throw _("Please use `@observable accessor " + String(e.name) + "` instead of `@observable " + String(e.name) + "`");
688
+ throw w("Please use `@observable accessor " + String(e.name) + "` instead of `@observable " + String(e.name) + "`");
689
689
  On(e, ["accessor"]);
690
690
  }
691
691
  var n = this, r = e.kind, i = e.name;
692
692
  if (r !== "accessor")
693
693
  return;
694
694
  function o(s, a) {
695
- var c, u = tt(s)[O];
695
+ var c, u = nt(s)[E];
696
696
  return ((c = u.lazyObservableKeys_) != null ? c : u.lazyObservableKeys_ = /* @__PURE__ */ new Map()).set(i, function() {
697
697
  var l, d;
698
- return new Ke(a, (l = (d = n.options_) == null ? void 0 : d.enhancer) != null ? l : We, process.env.NODE_ENV !== "production" ? u.name_ + "." + i.toString() : "ObservableObject." + i.toString(), !1);
698
+ return new Ue(a, (l = (d = n.options_) == null ? void 0 : d.enhancer) != null ? l : Ge, process.env.NODE_ENV !== "production" ? u.name_ + "." + i.toString() : "ObservableObject." + i.toString(), !1);
699
699
  }), u;
700
700
  }
701
701
  return {
702
702
  get: function() {
703
- var a, c = (a = this[O]) != null ? a : o(this, t.get.call(this));
703
+ var a, c = (a = this[E]) != null ? a : o(this, t.get.call(this));
704
704
  return c.getObservablePropValue_(i);
705
705
  },
706
706
  set: function(a) {
707
- var c, u = (c = this[O]) != null ? c : o(this, a);
707
+ var c, u = (c = this[E]) != null ? c : o(this, a);
708
708
  return u.setObservablePropValue_(i, a);
709
709
  },
710
710
  init: function(a) {
@@ -714,7 +714,7 @@ function gc(t, e) {
714
714
  }
715
715
  function vc(t, e, n, r) {
716
716
  var i = e.annotationType_;
717
- process.env.NODE_ENV !== "production" && !("value" in r) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
717
+ process.env.NODE_ENV !== "production" && !("value" in r) && w("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
718
718
  '` + i + "' cannot be used on getter/setter properties"));
719
719
  }
720
720
  var bc = "true", yc = /* @__PURE__ */ Io();
@@ -732,11 +732,11 @@ function _c(t, e, n, r) {
732
732
  if (n.get)
733
733
  return xn.make_(t, e, n, r);
734
734
  if (n.set) {
735
- var s = Ye(n.set) ? n.set : Ge(e.toString(), n.set);
735
+ var s = Xe(n.set) ? n.set : qe(e.toString(), n.set);
736
736
  return r === t.target_ ? t.defineProperty_(e, {
737
- configurable: y.safeDescriptors ? t.isPlainObject_ : !0,
737
+ configurable: b.safeDescriptors ? t.isPlainObject_ : !0,
738
738
  set: s
739
- }) === null ? 0 : 2 : (_e(r, e, {
739
+ }) === null ? 0 : 2 : (Se(r, e, {
740
740
  configurable: !0,
741
741
  set: s
742
742
  }), 2);
@@ -763,8 +763,8 @@ function Sc(t, e, n, r) {
763
763
  return xn.extend_(t, e, n, r);
764
764
  if (n.set)
765
765
  return t.defineProperty_(e, {
766
- configurable: y.safeDescriptors ? t.isPlainObject_ : !0,
767
- set: Ge(e.toString(), n.set)
766
+ configurable: b.safeDescriptors ? t.isPlainObject_ : !0,
767
+ set: qe(e.toString(), n.set)
768
768
  }, r);
769
769
  if (typeof n.value == "function" && (i = this.options_) != null && i.autoBind) {
770
770
  var s;
@@ -774,7 +774,7 @@ function Sc(t, e, n, r) {
774
774
  return a.extend_(t, e, n, r);
775
775
  }
776
776
  function wc(t, e) {
777
- _("'" + this.annotationType_ + "' cannot be used as a decorator");
777
+ w("'" + this.annotationType_ + "' cannot be used as a decorator");
778
778
  }
779
779
  var Oc = "observable", Ec = "observable.ref", Ac = "observable.shallow", xc = "observable.struct", Mo = {
780
780
  deep: !0,
@@ -792,9 +792,9 @@ var lr = /* @__PURE__ */ An(Oc), Nc = /* @__PURE__ */ An(Ec, {
792
792
  enhancer: Qa
793
793
  }), Mc = /* @__PURE__ */ An(xc, {
794
794
  enhancer: ec
795
- }), Po = /* @__PURE__ */ Se(lr);
795
+ }), Po = /* @__PURE__ */ we(lr);
796
796
  function Vt(t) {
797
- return t.deep === !0 ? We : t.deep === !1 ? En : Cc(t.defaultDecorator);
797
+ return t.deep === !0 ? Ge : t.deep === !1 ? En : Cc(t.defaultDecorator);
798
798
  }
799
799
  function Pc(t) {
800
800
  var e;
@@ -802,26 +802,26 @@ function Pc(t) {
802
802
  }
803
803
  function Cc(t) {
804
804
  var e, n;
805
- return t && (e = (n = t.options_) == null ? void 0 : n.enhancer) != null ? e : We;
805
+ return t && (e = (n = t.options_) == null ? void 0 : n.enhancer) != null ? e : Ge;
806
806
  }
807
807
  function Co(t, e, n) {
808
808
  if (Dt(e))
809
809
  return lr.decorate_20223_(t, e);
810
- if (De(e)) {
810
+ if (Re(e)) {
811
811
  $t(t, e, lr);
812
812
  return;
813
813
  }
814
- return Nt(t) ? t : V(t) ? T.object(t, e, n) : Array.isArray(t) ? T.array(t, e) : pt(t) ? T.map(t, e) : Ae(t) ? T.set(t, e) : typeof t == "object" && t !== null ? t : T.box(t, e);
814
+ return Nt(t) ? t : V(t) ? T.object(t, e, n) : Array.isArray(t) ? T.array(t, e) : pt(t) ? T.map(t, e) : xe(t) ? T.set(t, e) : typeof t == "object" && t !== null ? t : T.box(t, e);
815
815
  }
816
816
  vo(Co, Po);
817
817
  var Tc = {
818
818
  box: function(e, n) {
819
819
  var r = zt(n);
820
- return new Ke(e, Vt(r), r.name, !0, r.equals);
820
+ return new Ue(e, Vt(r), r.name, !0, r.equals);
821
821
  },
822
822
  array: function(e, n) {
823
823
  var r = zt(n);
824
- return (y.useProxies === !1 || r.proxy === !1 ? Lu : xu)(e, Vt(r), r.name);
824
+ return (b.useProxies === !1 || r.proxy === !1 ? Lu : xu)(e, Vt(r), r.name);
825
825
  },
826
826
  map: function(e, n) {
827
827
  var r = zt(n);
@@ -832,29 +832,29 @@ var Tc = {
832
832
  return new os(e, Vt(r), r.name);
833
833
  },
834
834
  object: function(e, n, r) {
835
- return ke(function() {
836
- return Jo(y.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? tt({}, r) : wu({}, r), e, n);
835
+ return Fe(function() {
836
+ return Jo(b.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? nt({}, r) : wu({}, r), e, n);
837
837
  });
838
838
  },
839
- ref: /* @__PURE__ */ Se(Nc),
840
- shallow: /* @__PURE__ */ Se(Ic),
839
+ ref: /* @__PURE__ */ we(Nc),
840
+ shallow: /* @__PURE__ */ we(Ic),
841
841
  deep: Po,
842
- struct: /* @__PURE__ */ Se(Mc)
842
+ struct: /* @__PURE__ */ we(Mc)
843
843
  }, T = /* @__PURE__ */ vo(Co, Tc), To = "computed", $c = "computed.struct", dr = /* @__PURE__ */ jr(To), Dc = /* @__PURE__ */ jr($c, {
844
- equals: Ue.structural
844
+ equals: We.structural
845
845
  }), xn = function(e, n) {
846
846
  if (Dt(n))
847
847
  return dr.decorate_20223_(e, n);
848
- if (De(n))
848
+ if (Re(n))
849
849
  return $t(e, n, dr);
850
850
  if (V(e))
851
- return Se(jr(To, e));
852
- process.env.NODE_ENV !== "production" && ($(e) || _("First argument to `computed` should be an expression."), $(n) && _("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));
851
+ return we(jr(To, e));
852
+ process.env.NODE_ENV !== "production" && ($(e) || w("First argument to `computed` should be an expression."), $(n) && w("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));
853
853
  var r = V(n) ? n : {};
854
854
  return r.get = e, r.name || (r.name = e.name || ""), new B(r);
855
855
  };
856
856
  Object.assign(xn, dr);
857
- xn.struct = /* @__PURE__ */ Se(Dc);
857
+ xn.struct = /* @__PURE__ */ we(Dc);
858
858
  var di, fi, on = 0, Rc = 1, Lc = (di = (fi = /* @__PURE__ */ tn(function() {
859
859
  }, "name")) == null ? void 0 : fi.configurable) != null ? di : !1, hi = {
860
860
  value: "action",
@@ -862,14 +862,14 @@ var di, fi, on = 0, Rc = 1, Lc = (di = (fi = /* @__PURE__ */ tn(function() {
862
862
  writable: !1,
863
863
  enumerable: !1
864
864
  };
865
- function Ge(t, e, n, r) {
866
- n === void 0 && (n = !1), process.env.NODE_ENV !== "production" && ($(e) || _("`action` can only be invoked on functions"), (typeof t != "string" || !t) && _("actions should have valid names, got: '" + t + "'"));
865
+ function qe(t, e, n, r) {
866
+ n === void 0 && (n = !1), process.env.NODE_ENV !== "production" && ($(e) || w("`action` can only be invoked on functions"), (typeof t != "string" || !t) && w("actions should have valid names, got: '" + t + "'"));
867
867
  function i() {
868
868
  return $o(t, n, e, r || this, arguments);
869
869
  }
870
870
  return i.isMobxAction = !0, i.toString = function() {
871
871
  return e.toString();
872
- }, Lc && (hi.value = t, _e(i, "name", hi)), i;
872
+ }, Lc && (hi.value = t, Se(i, "name", hi)), i;
873
873
  }
874
874
  function $o(t, e, n, r, i) {
875
875
  var o = kc(t, e, r, i);
@@ -886,17 +886,17 @@ function kc(t, e, n, r) {
886
886
  if (process.env.NODE_ENV !== "production" && i) {
887
887
  o = Date.now();
888
888
  var s = r ? Array.from(r) : nn;
889
- q({
889
+ G({
890
890
  type: Vr,
891
891
  name: t,
892
892
  object: n,
893
893
  arguments: s
894
894
  });
895
895
  }
896
- var a = y.trackingDerivation, c = !e || !a;
896
+ var a = b.trackingDerivation, c = !e || !a;
897
897
  ne();
898
- var u = y.allowStateChanges;
899
- c && (et(), u = Nn(!0));
898
+ var u = b.allowStateChanges;
899
+ c && (tt(), u = Nn(!0));
900
900
  var l = zr(!0), d = {
901
901
  runAsAction_: c,
902
902
  prevDerivation_: a,
@@ -910,9 +910,9 @@ function kc(t, e, n, r) {
910
910
  return on = d.actionId_, d;
911
911
  }
912
912
  function Fc(t) {
913
- on !== t.actionId_ && _(30), on = t.parentActionId_, t.error_ !== void 0 && (y.suppressReactionErrors = !0), In(t.prevAllowStateChanges_), wt(t.prevAllowStateReads_), re(), t.runAsAction_ && Ne(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && Y({
913
+ on !== t.actionId_ && w(30), on = t.parentActionId_, t.error_ !== void 0 && (b.suppressReactionErrors = !0), In(t.prevAllowStateChanges_), wt(t.prevAllowStateReads_), re(), t.runAsAction_ && Ie(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && q({
914
914
  time: Date.now() - t.startTime_
915
- }), y.suppressReactionErrors = !1;
915
+ }), b.suppressReactionErrors = !1;
916
916
  }
917
917
  function jc(t, e) {
918
918
  var n = Nn(t);
@@ -923,18 +923,18 @@ function jc(t, e) {
923
923
  }
924
924
  }
925
925
  function Nn(t) {
926
- var e = y.allowStateChanges;
927
- return y.allowStateChanges = t, e;
926
+ var e = b.allowStateChanges;
927
+ return b.allowStateChanges = t, e;
928
928
  }
929
929
  function In(t) {
930
- y.allowStateChanges = t;
930
+ b.allowStateChanges = t;
931
931
  }
932
- var zc = "create", Ke = /* @__PURE__ */ (function(t) {
932
+ var zc = "create", Ue = /* @__PURE__ */ (function(t) {
933
933
  function e(r, i, o, s, a) {
934
934
  var c;
935
- if (o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableValue@" + se() : "ObservableValue"), s === void 0 && (s = !0), a === void 0 && (a = Ue.default), c = t.call(this, o) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = o, c.equals = a, c.value_ = i(r, void 0, o), process.env.NODE_ENV !== "production" && s && k()) {
935
+ if (o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableValue@" + se() : "ObservableValue"), s === void 0 && (s = !0), a === void 0 && (a = We.default), c = t.call(this, o) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = o, c.equals = a, c.value_ = i(r, void 0, o), process.env.NODE_ENV !== "production" && s && k()) {
936
936
  var u;
937
- qe({
937
+ Ye({
938
938
  type: zc,
939
939
  object: c,
940
940
  observableKind: "value",
@@ -950,29 +950,29 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
950
950
  return this.dehancer !== void 0 ? this.dehancer(i) : i;
951
951
  }, n.set = function(i) {
952
952
  var o = this.value_;
953
- if (i = this.prepareNewValue_(i), i !== y.UNCHANGED) {
953
+ if (i = this.prepareNewValue_(i), i !== b.UNCHANGED) {
954
954
  var s = k();
955
- process.env.NODE_ENV !== "production" && s && q({
955
+ process.env.NODE_ENV !== "production" && s && G({
956
956
  type: de,
957
957
  object: this,
958
958
  observableKind: "value",
959
959
  debugObjectName: this.name_,
960
960
  newValue: i,
961
961
  oldValue: o
962
- }), this.setNewValue_(i), process.env.NODE_ENV !== "production" && s && Y();
962
+ }), this.setNewValue_(i), process.env.NODE_ENV !== "production" && s && q();
963
963
  }
964
964
  }, n.prepareNewValue_ = function(i) {
965
- if (ye(this), ee(this)) {
965
+ if (_e(this), ee(this)) {
966
966
  var o = te(this, {
967
967
  object: this,
968
968
  type: de,
969
969
  newValue: i
970
970
  });
971
971
  if (!o)
972
- return y.UNCHANGED;
972
+ return b.UNCHANGED;
973
973
  i = o.newValue;
974
974
  }
975
- return i = this.enhancer(i, this.value_, this.name_), this.equals(this.value_, i) ? y.UNCHANGED : i;
975
+ return i = this.enhancer(i, this.value_, this.name_), this.equals(this.value_, i) ? b.UNCHANGED : i;
976
976
  }, n.setNewValue_ = function(i) {
977
977
  var o = this.value_;
978
978
  this.value_ = i, this.reportChanged(), fe(this) && he(this, {
@@ -1005,9 +1005,9 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1005
1005
  }, n[Symbol.toPrimitive] = function() {
1006
1006
  return this.valueOf();
1007
1007
  }, e;
1008
- })(Le), B = /* @__PURE__ */ (function() {
1008
+ })(ke), B = /* @__PURE__ */ (function() {
1009
1009
  function t(n) {
1010
- this.dependenciesState_ = x.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.observers_ = /* @__PURE__ */ new Set(), this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = x.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new sn(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.flags_ = 0, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = oe.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, n.get || _(31), this.derivation = n.get, this.name_ = n.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + se() : "ComputedValue"), n.set && (this.setter_ = Ge(process.env.NODE_ENV !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", n.set)), this.equals_ = n.equals || (n.compareStructural || n.struct ? Ue.structural : Ue.default), this.scope_ = n.context, this.requiresReaction_ = n.requiresReaction, this.keepAlive_ = !!n.keepAlive;
1010
+ this.dependenciesState_ = x.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.observers_ = /* @__PURE__ */ new Set(), this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = x.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new sn(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.flags_ = 0, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = oe.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, n.get || w(31), this.derivation = n.get, this.name_ = n.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + se() : "ComputedValue"), n.set && (this.setter_ = qe(process.env.NODE_ENV !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", n.set)), this.equals_ = n.equals || (n.compareStructural || n.struct ? We.structural : We.default), this.scope_ = n.context, this.requiresReaction_ = n.requiresReaction, this.keepAlive_ = !!n.keepAlive;
1011
1011
  }
1012
1012
  var e = t.prototype;
1013
1013
  return e.onBecomeStale_ = function() {
@@ -1021,12 +1021,12 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1021
1021
  return r();
1022
1022
  });
1023
1023
  }, e.get = function() {
1024
- if (this.isComputing && _(32, this.name_, this.derivation), y.inBatch === 0 && // !globalState.trackingDerivatpion &&
1024
+ if (this.isComputing && w(32, this.name_, this.derivation), b.inBatch === 0 && // !globalState.trackingDerivatpion &&
1025
1025
  this.observers_.size === 0 && !this.keepAlive_)
1026
1026
  fr(this) && (this.warnAboutUntrackedRead_(), ne(), this.value_ = this.computeValue_(!1), re());
1027
1027
  else if (zo(this), fr(this)) {
1028
- var r = y.trackingContext;
1029
- this.keepAlive_ && !r && (y.trackingContext = this), this.trackAndCompute() && qc(this), y.trackingContext = r;
1028
+ var r = b.trackingContext;
1029
+ this.keepAlive_ && !r && (b.trackingContext = this), this.trackAndCompute() && qc(this), b.trackingContext = r;
1030
1030
  }
1031
1031
  var i = this.value_;
1032
1032
  if (qt(i))
@@ -1034,20 +1034,20 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1034
1034
  return i;
1035
1035
  }, e.set = function(r) {
1036
1036
  if (this.setter_) {
1037
- this.isRunningSetter && _(33, this.name_), this.isRunningSetter = !0;
1037
+ this.isRunningSetter && w(33, this.name_), this.isRunningSetter = !0;
1038
1038
  try {
1039
1039
  this.setter_.call(this.scope_, r);
1040
1040
  } finally {
1041
1041
  this.isRunningSetter = !1;
1042
1042
  }
1043
1043
  } else
1044
- _(34, this.name_);
1044
+ w(34, this.name_);
1045
1045
  }, e.trackAndCompute = function() {
1046
1046
  var r = this.value_, i = (
1047
1047
  /* see #1208 */
1048
1048
  this.dependenciesState_ === x.NOT_TRACKING_
1049
1049
  ), o = this.computeValue_(!0), s = i || qt(r) || qt(o) || !this.equals_(r, o);
1050
- return s && (this.value_ = o, process.env.NODE_ENV !== "production" && k() && qe({
1050
+ return s && (this.value_ = o, process.env.NODE_ENV !== "production" && k() && Ye({
1051
1051
  observableKind: "computed",
1052
1052
  debugObjectName: this.name_,
1053
1053
  object: this.scope_,
@@ -1060,7 +1060,7 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1060
1060
  var i = Nn(!1), o;
1061
1061
  if (r)
1062
1062
  o = Do(this, this.derivation, this.scope_);
1063
- else if (y.disableErrorBoundaries === !0)
1063
+ else if (b.disableErrorBoundaries === !0)
1064
1064
  o = this.derivation.call(this.scope_);
1065
1065
  else
1066
1066
  try {
@@ -1076,7 +1076,7 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1076
1076
  return ou(function() {
1077
1077
  var c = o.get();
1078
1078
  if (!s || i) {
1079
- var u = et();
1079
+ var u = tt();
1080
1080
  r({
1081
1081
  observableKind: "computed",
1082
1082
  debugObjectName: o.name_,
@@ -1084,12 +1084,12 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1084
1084
  object: o,
1085
1085
  newValue: c,
1086
1086
  oldValue: a
1087
- }), Ne(u);
1087
+ }), Ie(u);
1088
1088
  }
1089
1089
  s = !1, a = c;
1090
1090
  });
1091
1091
  }, e.warnAboutUntrackedRead_ = function() {
1092
- process.env.NODE_ENV !== "production" && (this.isTracing_ !== oe.NONE && console.log("[mobx.trace] Computed value '" + this.name_ + "' is being read outside a reactive context. Doing a full recompute."), (typeof this.requiresReaction_ == "boolean" ? this.requiresReaction_ : y.computedRequiresReaction) && console.warn("[mobx] Computed value '" + this.name_ + "' is being read outside a reactive context. Doing a full recompute."));
1092
+ process.env.NODE_ENV !== "production" && (this.isTracing_ !== oe.NONE && console.log("[mobx.trace] Computed value '" + this.name_ + "' is being read outside a reactive context. Doing a full recompute."), (typeof this.requiresReaction_ == "boolean" ? this.requiresReaction_ : b.computedRequiresReaction) && console.warn("[mobx] Computed value '" + this.name_ + "' is being read outside a reactive context. Doing a full recompute."));
1093
1093
  }, e.toString = function() {
1094
1094
  return this.name_ + "[" + this.derivation.toString() + "]";
1095
1095
  }, e.valueOf = function() {
@@ -1099,42 +1099,42 @@ var zc = "create", Ke = /* @__PURE__ */ (function(t) {
1099
1099
  }, mt(t, [{
1100
1100
  key: "isComputing",
1101
1101
  get: function() {
1102
- return W(this.flags_, t.isComputingMask_);
1102
+ return U(this.flags_, t.isComputingMask_);
1103
1103
  },
1104
1104
  set: function(r) {
1105
- this.flags_ = G(this.flags_, t.isComputingMask_, r);
1105
+ this.flags_ = W(this.flags_, t.isComputingMask_, r);
1106
1106
  }
1107
1107
  }, {
1108
1108
  key: "isRunningSetter",
1109
1109
  get: function() {
1110
- return W(this.flags_, t.isRunningSetterMask_);
1110
+ return U(this.flags_, t.isRunningSetterMask_);
1111
1111
  },
1112
1112
  set: function(r) {
1113
- this.flags_ = G(this.flags_, t.isRunningSetterMask_, r);
1113
+ this.flags_ = W(this.flags_, t.isRunningSetterMask_, r);
1114
1114
  }
1115
1115
  }, {
1116
1116
  key: "isBeingObserved",
1117
1117
  get: function() {
1118
- return W(this.flags_, t.isBeingObservedMask_);
1118
+ return U(this.flags_, t.isBeingObservedMask_);
1119
1119
  },
1120
1120
  set: function(r) {
1121
- this.flags_ = G(this.flags_, t.isBeingObservedMask_, r);
1121
+ this.flags_ = W(this.flags_, t.isBeingObservedMask_, r);
1122
1122
  }
1123
1123
  }, {
1124
1124
  key: "isPendingUnobservation",
1125
1125
  get: function() {
1126
- return W(this.flags_, t.isPendingUnobservationMask_);
1126
+ return U(this.flags_, t.isPendingUnobservationMask_);
1127
1127
  },
1128
1128
  set: function(r) {
1129
- this.flags_ = G(this.flags_, t.isPendingUnobservationMask_, r);
1129
+ this.flags_ = W(this.flags_, t.isPendingUnobservationMask_, r);
1130
1130
  }
1131
1131
  }, {
1132
1132
  key: "diffValue",
1133
1133
  get: function() {
1134
- return W(this.flags_, t.diffValueMask_) ? 1 : 0;
1134
+ return U(this.flags_, t.diffValueMask_) ? 1 : 0;
1135
1135
  },
1136
1136
  set: function(r) {
1137
- this.flags_ = G(this.flags_, t.diffValueMask_, r === 1);
1137
+ this.flags_ = W(this.flags_, t.diffValueMask_, r === 1);
1138
1138
  }
1139
1139
  }]);
1140
1140
  })();
@@ -1143,7 +1143,7 @@ B.isRunningSetterMask_ = 2;
1143
1143
  B.isBeingObservedMask_ = 4;
1144
1144
  B.isPendingUnobservationMask_ = 8;
1145
1145
  B.diffValueMask_ = 16;
1146
- var Mn = /* @__PURE__ */ Qe("ComputedValue", B), x;
1146
+ var Mn = /* @__PURE__ */ et("ComputedValue", B), x;
1147
1147
  (function(t) {
1148
1148
  t[t.NOT_TRACKING_ = -1] = "NOT_TRACKING_", t[t.UP_TO_DATE_ = 0] = "UP_TO_DATE_", t[t.POSSIBLY_STALE_ = 1] = "POSSIBLY_STALE_", t[t.STALE_ = 2] = "STALE_";
1149
1149
  })(x || (x = {}));
@@ -1165,33 +1165,33 @@ function fr(t) {
1165
1165
  case x.STALE_:
1166
1166
  return !0;
1167
1167
  case x.POSSIBLY_STALE_: {
1168
- for (var e = zr(!0), n = et(), r = t.observing_, i = r.length, o = 0; o < i; o++) {
1168
+ for (var e = zr(!0), n = tt(), r = t.observing_, i = r.length, o = 0; o < i; o++) {
1169
1169
  var s = r[o];
1170
1170
  if (Mn(s)) {
1171
- if (y.disableErrorBoundaries)
1171
+ if (b.disableErrorBoundaries)
1172
1172
  s.get();
1173
1173
  else
1174
1174
  try {
1175
1175
  s.get();
1176
1176
  } catch {
1177
- return Ne(n), wt(e), !0;
1177
+ return Ie(n), wt(e), !0;
1178
1178
  }
1179
1179
  if (t.dependenciesState_ === x.STALE_)
1180
- return Ne(n), wt(e), !0;
1180
+ return Ie(n), wt(e), !0;
1181
1181
  }
1182
1182
  }
1183
- return Lo(t), Ne(n), wt(e), !1;
1183
+ return Lo(t), Ie(n), wt(e), !1;
1184
1184
  }
1185
1185
  }
1186
1186
  }
1187
- function ye(t) {
1187
+ function _e(t) {
1188
1188
  if (process.env.NODE_ENV !== "production") {
1189
1189
  var e = t.observers_.size > 0;
1190
- !y.allowStateChanges && (e || y.enforceActions === "always") && console.warn("[MobX] " + (y.enforceActions ? "Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: " : "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ") + t.name_);
1190
+ !b.allowStateChanges && (e || b.enforceActions === "always") && console.warn("[MobX] " + (b.enforceActions ? "Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: " : "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ") + t.name_);
1191
1191
  }
1192
1192
  }
1193
1193
  function Vc(t) {
1194
- process.env.NODE_ENV !== "production" && !y.allowStateReads && y.observableRequiresReaction && console.warn("[mobx] Observable '" + t.name_ + "' being read outside a reactive context.");
1194
+ process.env.NODE_ENV !== "production" && !b.allowStateReads && b.observableRequiresReaction && console.warn("[mobx] Observable '" + t.name_ + "' being read outside a reactive context.");
1195
1195
  }
1196
1196
  function Do(t, e, n) {
1197
1197
  var r = zr(!0);
@@ -1199,11 +1199,11 @@ function Do(t, e, n) {
1199
1199
  // Reserve constant space for initial dependencies, dynamic space otherwise.
1200
1200
  // See https://github.com/mobxjs/mobx/pull/3833
1201
1201
  t.runId_ === 0 ? 100 : t.observing_.length
1202
- ), t.unboundDepsCount_ = 0, t.runId_ = ++y.runId;
1203
- var i = y.trackingDerivation;
1204
- y.trackingDerivation = t, y.inBatch++;
1202
+ ), t.unboundDepsCount_ = 0, t.runId_ = ++b.runId;
1203
+ var i = b.trackingDerivation;
1204
+ b.trackingDerivation = t, b.inBatch++;
1205
1205
  var o;
1206
- if (y.disableErrorBoundaries === !0)
1206
+ if (b.disableErrorBoundaries === !0)
1207
1207
  o = e.call(n);
1208
1208
  else
1209
1209
  try {
@@ -1211,10 +1211,10 @@ function Do(t, e, n) {
1211
1211
  } catch (s) {
1212
1212
  o = new sn(s);
1213
1213
  }
1214
- return y.inBatch--, y.trackingDerivation = i, Hc(t), Bc(t), wt(r), o;
1214
+ return b.inBatch--, b.trackingDerivation = i, Hc(t), Bc(t), wt(r), o;
1215
1215
  }
1216
1216
  function Bc(t) {
1217
- process.env.NODE_ENV !== "production" && t.observing_.length === 0 && (typeof t.requiresObservable_ == "boolean" ? t.requiresObservable_ : y.reactionRequiresObservable) && console.warn("[mobx] Derivation '" + t.name_ + "' is created/updated without reading any observable value.");
1217
+ process.env.NODE_ENV !== "production" && t.observing_.length === 0 && (typeof t.requiresObservable_ == "boolean" ? t.requiresObservable_ : b.reactionRequiresObservable) && console.warn("[mobx] Derivation '" + t.name_ + "' is created/updated without reading any observable value.");
1218
1218
  }
1219
1219
  function Hc(t) {
1220
1220
  for (var e = t.observing_, n = t.observing_ = t.newObserving_, r = x.UP_TO_DATE_, i = 0, o = t.unboundDepsCount_, s = 0; s < o; s++) {
@@ -1239,26 +1239,26 @@ function hr(t) {
1239
1239
  t.dependenciesState_ = x.NOT_TRACKING_;
1240
1240
  }
1241
1241
  function Ro(t) {
1242
- var e = et();
1242
+ var e = tt();
1243
1243
  try {
1244
1244
  return t();
1245
1245
  } finally {
1246
- Ne(e);
1246
+ Ie(e);
1247
1247
  }
1248
1248
  }
1249
- function et() {
1250
- var t = y.trackingDerivation;
1251
- return y.trackingDerivation = null, t;
1249
+ function tt() {
1250
+ var t = b.trackingDerivation;
1251
+ return b.trackingDerivation = null, t;
1252
1252
  }
1253
- function Ne(t) {
1254
- y.trackingDerivation = t;
1253
+ function Ie(t) {
1254
+ b.trackingDerivation = t;
1255
1255
  }
1256
1256
  function zr(t) {
1257
- var e = y.allowStateReads;
1258
- return y.allowStateReads = t, e;
1257
+ var e = b.allowStateReads;
1258
+ return b.allowStateReads = t, e;
1259
1259
  }
1260
1260
  function wt(t) {
1261
- y.allowStateReads = t;
1261
+ b.allowStateReads = t;
1262
1262
  }
1263
1263
  function Lo(t) {
1264
1264
  if (t.dependenciesState_ !== x.UP_TO_DATE_) {
@@ -1269,16 +1269,16 @@ function Lo(t) {
1269
1269
  }
1270
1270
  var Yt = function() {
1271
1271
  this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0;
1272
- }, Xt = !0, ko = !1, y = /* @__PURE__ */ (function() {
1272
+ }, Xt = !0, ko = !1, b = /* @__PURE__ */ (function() {
1273
1273
  var t = /* @__PURE__ */ _n();
1274
1274
  return t.__mobxInstanceCount > 0 && !t.__mobxGlobals && (Xt = !1), t.__mobxGlobals && t.__mobxGlobals.version !== new Yt().version && (Xt = !1), Xt ? t.__mobxGlobals ? (t.__mobxInstanceCount += 1, t.__mobxGlobals.UNCHANGED || (t.__mobxGlobals.UNCHANGED = {}), t.__mobxGlobals) : (t.__mobxInstanceCount = 1, t.__mobxGlobals = /* @__PURE__ */ new Yt()) : (setTimeout(function() {
1275
- ko || _(35);
1275
+ ko || w(35);
1276
1276
  }, 1), new Yt());
1277
1277
  })();
1278
1278
  function Kc() {
1279
- if ((y.pendingReactions.length || y.inBatch || y.isRunningReactions) && _(36), ko = !0, Xt) {
1279
+ if ((b.pendingReactions.length || b.inBatch || b.isRunningReactions) && w(36), ko = !0, Xt) {
1280
1280
  var t = _n();
1281
- --t.__mobxInstanceCount === 0 && (t.__mobxGlobals = void 0), y = new Yt();
1281
+ --t.__mobxInstanceCount === 0 && (t.__mobxGlobals = void 0), b = new Yt();
1282
1282
  }
1283
1283
  }
1284
1284
  function Uc(t) {
@@ -1294,25 +1294,25 @@ function Fo(t, e) {
1294
1294
  t.observers_.delete(e), t.observers_.size === 0 && jo(t);
1295
1295
  }
1296
1296
  function jo(t) {
1297
- t.isPendingUnobservation === !1 && (t.isPendingUnobservation = !0, y.pendingUnobservations.push(t));
1297
+ t.isPendingUnobservation === !1 && (t.isPendingUnobservation = !0, b.pendingUnobservations.push(t));
1298
1298
  }
1299
1299
  function ne() {
1300
- y.inBatch++;
1300
+ b.inBatch++;
1301
1301
  }
1302
1302
  function re() {
1303
- if (--y.inBatch === 0) {
1303
+ if (--b.inBatch === 0) {
1304
1304
  Ko();
1305
- for (var t = y.pendingUnobservations, e = 0; e < t.length; e++) {
1305
+ for (var t = b.pendingUnobservations, e = 0; e < t.length; e++) {
1306
1306
  var n = t[e];
1307
1307
  n.isPendingUnobservation = !1, n.observers_.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBUO()), n instanceof B && n.suspend_());
1308
1308
  }
1309
- y.pendingUnobservations = [];
1309
+ b.pendingUnobservations = [];
1310
1310
  }
1311
1311
  }
1312
1312
  function zo(t) {
1313
1313
  Vc(t);
1314
- var e = y.trackingDerivation;
1315
- return e !== null ? (e.runId_ !== t.lastAccessedBy_ && (t.lastAccessedBy_ = e.runId_, e.newObserving_[e.unboundDepsCount_++] = t, !t.isBeingObserved && y.trackingContext && (t.isBeingObserved = !0, t.onBO())), t.isBeingObserved) : (t.observers_.size === 0 && y.inBatch > 0 && jo(t), !1);
1314
+ var e = b.trackingDerivation;
1315
+ return e !== null ? (e.runId_ !== t.lastAccessedBy_ && (t.lastAccessedBy_ = e.runId_, e.newObserving_[e.unboundDepsCount_++] = t, !t.isBeingObserved && b.trackingContext && (t.isBeingObserved = !0, t.onBO())), t.isBeingObserved) : (t.observers_.size === 0 && b.inBatch > 0 && jo(t), !1);
1316
1316
  }
1317
1317
  function Vo(t) {
1318
1318
  t.lowestObserverState_ !== x.STALE_ && (t.lowestObserverState_ = x.STALE_, t.observers_.forEach(function(e) {
@@ -1359,7 +1359,7 @@ function Ho(t, e, n) {
1359
1359
  return Ho(r, e, n + 1);
1360
1360
  });
1361
1361
  }
1362
- var we = /* @__PURE__ */ (function() {
1362
+ var Oe = /* @__PURE__ */ (function() {
1363
1363
  function t(n, r, i, o) {
1364
1364
  n === void 0 && (n = process.env.NODE_ENV !== "production" ? "Reaction@" + se() : "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = x.NOT_TRACKING_, this.runId_ = 0, this.unboundDepsCount_ = 0, this.flags_ = 0, this.isTracing_ = oe.NONE, this.name_ = n, this.onInvalidate_ = r, this.errorHandler_ = i, this.requiresObservable_ = o;
1365
1365
  }
@@ -1367,15 +1367,15 @@ var we = /* @__PURE__ */ (function() {
1367
1367
  return e.onBecomeStale_ = function() {
1368
1368
  this.schedule_();
1369
1369
  }, e.schedule_ = function() {
1370
- this.isScheduled || (this.isScheduled = !0, y.pendingReactions.push(this), Ko());
1370
+ this.isScheduled || (this.isScheduled = !0, b.pendingReactions.push(this), Ko());
1371
1371
  }, e.runReaction_ = function() {
1372
1372
  if (!this.isDisposed) {
1373
1373
  ne(), this.isScheduled = !1;
1374
- var r = y.trackingContext;
1375
- if (y.trackingContext = this, fr(this)) {
1374
+ var r = b.trackingContext;
1375
+ if (b.trackingContext = this, fr(this)) {
1376
1376
  this.isTrackPending = !0;
1377
1377
  try {
1378
- this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && k() && qe({
1378
+ this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && k() && Ye({
1379
1379
  name: this.name_,
1380
1380
  type: "scheduled-reaction"
1381
1381
  });
@@ -1383,20 +1383,20 @@ var we = /* @__PURE__ */ (function() {
1383
1383
  this.reportExceptionInDerivation_(i);
1384
1384
  }
1385
1385
  }
1386
- y.trackingContext = r, re();
1386
+ b.trackingContext = r, re();
1387
1387
  }
1388
1388
  }, e.track = function(r) {
1389
1389
  if (!this.isDisposed) {
1390
1390
  ne();
1391
1391
  var i = k(), o;
1392
- process.env.NODE_ENV !== "production" && i && (o = Date.now(), q({
1392
+ process.env.NODE_ENV !== "production" && i && (o = Date.now(), G({
1393
1393
  name: this.name_,
1394
1394
  type: "reaction"
1395
1395
  })), this.isRunning = !0;
1396
- var s = y.trackingContext;
1397
- y.trackingContext = this;
1396
+ var s = b.trackingContext;
1397
+ b.trackingContext = this;
1398
1398
  var a = Do(this, r, void 0);
1399
- y.trackingContext = s, this.isRunning = !1, this.isTrackPending = !1, this.isDisposed && hr(this), qt(a) && this.reportExceptionInDerivation_(a.cause), process.env.NODE_ENV !== "production" && i && Y({
1399
+ b.trackingContext = s, this.isRunning = !1, this.isTrackPending = !1, this.isDisposed && hr(this), qt(a) && this.reportExceptionInDerivation_(a.cause), process.env.NODE_ENV !== "production" && i && q({
1400
1400
  time: Date.now() - o
1401
1401
  }), re();
1402
1402
  }
@@ -1406,15 +1406,15 @@ var we = /* @__PURE__ */ (function() {
1406
1406
  this.errorHandler_(r, this);
1407
1407
  return;
1408
1408
  }
1409
- if (y.disableErrorBoundaries)
1409
+ if (b.disableErrorBoundaries)
1410
1410
  throw r;
1411
1411
  var o = process.env.NODE_ENV !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
1412
- y.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(o, r), process.env.NODE_ENV !== "production" && k() && qe({
1412
+ b.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(o, r), process.env.NODE_ENV !== "production" && k() && Ye({
1413
1413
  type: "error",
1414
1414
  name: this.name_,
1415
1415
  message: o,
1416
1416
  error: "" + r
1417
- }), y.globalReactionErrorHandlers.forEach(function(s) {
1417
+ }), b.globalReactionErrorHandlers.forEach(function(s) {
1418
1418
  return s(r, i);
1419
1419
  });
1420
1420
  }, e.dispose = function() {
@@ -1423,7 +1423,7 @@ var we = /* @__PURE__ */ (function() {
1423
1423
  var i = this, o = function s() {
1424
1424
  i.dispose(), r == null || r.removeEventListener == null || r.removeEventListener("abort", s);
1425
1425
  };
1426
- return r == null || r.addEventListener == null || r.addEventListener("abort", o), o[O] = this, "dispose" in Symbol && typeof Symbol.dispose == "symbol" && (o[Symbol.dispose] = o), o;
1426
+ return r == null || r.addEventListener == null || r.addEventListener("abort", o), o[E] = this, "dispose" in Symbol && typeof Symbol.dispose == "symbol" && (o[Symbol.dispose] = o), o;
1427
1427
  }, e.toString = function() {
1428
1428
  return "Reaction[" + this.name_ + "]";
1429
1429
  }, e.trace = function(r) {
@@ -1431,66 +1431,66 @@ var we = /* @__PURE__ */ (function() {
1431
1431
  }, mt(t, [{
1432
1432
  key: "isDisposed",
1433
1433
  get: function() {
1434
- return W(this.flags_, t.isDisposedMask_);
1434
+ return U(this.flags_, t.isDisposedMask_);
1435
1435
  },
1436
1436
  set: function(r) {
1437
- this.flags_ = G(this.flags_, t.isDisposedMask_, r);
1437
+ this.flags_ = W(this.flags_, t.isDisposedMask_, r);
1438
1438
  }
1439
1439
  }, {
1440
1440
  key: "isScheduled",
1441
1441
  get: function() {
1442
- return W(this.flags_, t.isScheduledMask_);
1442
+ return U(this.flags_, t.isScheduledMask_);
1443
1443
  },
1444
1444
  set: function(r) {
1445
- this.flags_ = G(this.flags_, t.isScheduledMask_, r);
1445
+ this.flags_ = W(this.flags_, t.isScheduledMask_, r);
1446
1446
  }
1447
1447
  }, {
1448
1448
  key: "isTrackPending",
1449
1449
  get: function() {
1450
- return W(this.flags_, t.isTrackPendingMask_);
1450
+ return U(this.flags_, t.isTrackPendingMask_);
1451
1451
  },
1452
1452
  set: function(r) {
1453
- this.flags_ = G(this.flags_, t.isTrackPendingMask_, r);
1453
+ this.flags_ = W(this.flags_, t.isTrackPendingMask_, r);
1454
1454
  }
1455
1455
  }, {
1456
1456
  key: "isRunning",
1457
1457
  get: function() {
1458
- return W(this.flags_, t.isRunningMask_);
1458
+ return U(this.flags_, t.isRunningMask_);
1459
1459
  },
1460
1460
  set: function(r) {
1461
- this.flags_ = G(this.flags_, t.isRunningMask_, r);
1461
+ this.flags_ = W(this.flags_, t.isRunningMask_, r);
1462
1462
  }
1463
1463
  }, {
1464
1464
  key: "diffValue",
1465
1465
  get: function() {
1466
- return W(this.flags_, t.diffValueMask_) ? 1 : 0;
1466
+ return U(this.flags_, t.diffValueMask_) ? 1 : 0;
1467
1467
  },
1468
1468
  set: function(r) {
1469
- this.flags_ = G(this.flags_, t.diffValueMask_, r === 1);
1469
+ this.flags_ = W(this.flags_, t.diffValueMask_, r === 1);
1470
1470
  }
1471
1471
  }]);
1472
1472
  })();
1473
- we.isDisposedMask_ = 1;
1474
- we.isScheduledMask_ = 2;
1475
- we.isTrackPendingMask_ = 4;
1476
- we.isRunningMask_ = 8;
1477
- we.diffValueMask_ = 16;
1473
+ Oe.isDisposedMask_ = 1;
1474
+ Oe.isScheduledMask_ = 2;
1475
+ Oe.isTrackPendingMask_ = 4;
1476
+ Oe.isRunningMask_ = 8;
1477
+ Oe.diffValueMask_ = 16;
1478
1478
  var pi = 100, pr = function(e) {
1479
1479
  return e();
1480
1480
  };
1481
1481
  function Ko() {
1482
- y.inBatch > 0 || y.isRunningReactions || pr(Xc);
1482
+ b.inBatch > 0 || b.isRunningReactions || pr(Xc);
1483
1483
  }
1484
1484
  function Xc() {
1485
- y.isRunningReactions = !0;
1486
- for (var t = y.pendingReactions, e = 0; t.length > 0; ) {
1485
+ b.isRunningReactions = !0;
1486
+ for (var t = b.pendingReactions, e = 0; t.length > 0; ) {
1487
1487
  ++e === pi && (console.error(process.env.NODE_ENV !== "production" ? "Reaction doesn't converge to a stable state after " + pi + " iterations." + (" Probably there is a cycle in the reactive function: " + t[0]) : "[mobx] cycle in reaction: " + t[0]), t.splice(0));
1488
1488
  for (var n = t.splice(0), r = 0, i = n.length; r < i; r++)
1489
1489
  n[r].runReaction_();
1490
1490
  }
1491
- y.isRunningReactions = !1;
1491
+ b.isRunningReactions = !1;
1492
1492
  }
1493
- var an = /* @__PURE__ */ Qe("Reaction", we);
1493
+ var an = /* @__PURE__ */ et("Reaction", Oe);
1494
1494
  function Jc(t) {
1495
1495
  var e = pr;
1496
1496
  pr = function(r) {
@@ -1500,35 +1500,35 @@ function Jc(t) {
1500
1500
  };
1501
1501
  }
1502
1502
  function k() {
1503
- return process.env.NODE_ENV !== "production" && !!y.spyListeners.length;
1503
+ return process.env.NODE_ENV !== "production" && !!b.spyListeners.length;
1504
1504
  }
1505
- function qe(t) {
1506
- if (process.env.NODE_ENV !== "production" && y.spyListeners.length)
1507
- for (var e = y.spyListeners, n = 0, r = e.length; n < r; n++)
1505
+ function Ye(t) {
1506
+ if (process.env.NODE_ENV !== "production" && b.spyListeners.length)
1507
+ for (var e = b.spyListeners, n = 0, r = e.length; n < r; n++)
1508
1508
  e[n](t);
1509
1509
  }
1510
- function q(t) {
1510
+ function G(t) {
1511
1511
  if (process.env.NODE_ENV !== "production") {
1512
- var e = Ie({}, t, {
1512
+ var e = Me({}, t, {
1513
1513
  spyReportStart: !0
1514
1514
  });
1515
- qe(e);
1515
+ Ye(e);
1516
1516
  }
1517
1517
  }
1518
1518
  var Zc = {
1519
1519
  type: "report-end",
1520
1520
  spyReportEnd: !0
1521
1521
  };
1522
- function Y(t) {
1523
- process.env.NODE_ENV !== "production" && qe(t ? Ie({}, t, {
1522
+ function q(t) {
1523
+ process.env.NODE_ENV !== "production" && Ye(t ? Me({}, t, {
1524
1524
  type: "report-end",
1525
1525
  spyReportEnd: !0
1526
1526
  }) : Zc);
1527
1527
  }
1528
1528
  function Qc(t) {
1529
1529
  return process.env.NODE_ENV === "production" ? (console.warn("[mobx.spy] Is a no-op in production builds"), function() {
1530
- }) : (y.spyListeners.push(t), Lr(function() {
1531
- y.spyListeners = y.spyListeners.filter(function(e) {
1530
+ }) : (b.spyListeners.push(t), Lr(function() {
1531
+ b.spyListeners = b.spyListeners.filter(function(e) {
1532
1532
  return e !== t;
1533
1533
  });
1534
1534
  }));
@@ -1544,45 +1544,45 @@ var Vr = "action", eu = "action.bound", Uo = "autoAction", tu = "autoAction.boun
1544
1544
  function Go(t) {
1545
1545
  var e = function(r, i) {
1546
1546
  if ($(r))
1547
- return Ge(r.name || Wo, r, t);
1547
+ return qe(r.name || Wo, r, t);
1548
1548
  if ($(i))
1549
- return Ge(r, i, t);
1549
+ return qe(r, i, t);
1550
1550
  if (Dt(i))
1551
1551
  return (t ? gr : mr).decorate_20223_(r, i);
1552
- if (De(i))
1552
+ if (Re(i))
1553
1553
  return $t(r, i, t ? gr : mr);
1554
- if (De(r))
1555
- return Se(Rt(t ? Uo : Vr, {
1554
+ if (Re(r))
1555
+ return we(Rt(t ? Uo : Vr, {
1556
1556
  name: r,
1557
1557
  autoAction: t
1558
1558
  }));
1559
- process.env.NODE_ENV !== "production" && _("Invalid arguments for `action`");
1559
+ process.env.NODE_ENV !== "production" && w("Invalid arguments for `action`");
1560
1560
  };
1561
1561
  return e;
1562
1562
  }
1563
- var Be = /* @__PURE__ */ Go(!1);
1564
- Object.assign(Be, mr);
1563
+ var He = /* @__PURE__ */ Go(!1);
1564
+ Object.assign(He, mr);
1565
1565
  var At = /* @__PURE__ */ Go(!0);
1566
1566
  Object.assign(At, gr);
1567
- Be.bound = /* @__PURE__ */ Se(nu);
1568
- At.bound = /* @__PURE__ */ Se(ru);
1567
+ He.bound = /* @__PURE__ */ we(nu);
1568
+ At.bound = /* @__PURE__ */ we(ru);
1569
1569
  function iu(t) {
1570
1570
  return $o(t.name || Wo, !1, t, this, void 0);
1571
1571
  }
1572
- function Ye(t) {
1572
+ function Xe(t) {
1573
1573
  return $(t) && t.isMobxAction === !0;
1574
1574
  }
1575
1575
  function ou(t, e) {
1576
1576
  var n, r, i, o;
1577
- e === void 0 && (e = Rr), process.env.NODE_ENV !== "production" && ($(t) || _("Autorun expects a function as first argument"), Ye(t) && _("Autorun does not accept actions since actions are untrackable"));
1577
+ e === void 0 && (e = Rr), process.env.NODE_ENV !== "production" && ($(t) || w("Autorun expects a function as first argument"), Xe(t) && w("Autorun does not accept actions since actions are untrackable"));
1578
1578
  var s = (n = (r = e) == null ? void 0 : r.name) != null ? n : process.env.NODE_ENV !== "production" ? t.name || "Autorun@" + se() : "Autorun", a = !e.scheduler && !e.delay, c;
1579
1579
  if (a)
1580
- c = new we(s, function() {
1580
+ c = new Oe(s, function() {
1581
1581
  this.track(d);
1582
1582
  }, e.onError, e.requiresObservable);
1583
1583
  else {
1584
1584
  var u = qo(e), l = !1;
1585
- c = new we(s, function() {
1585
+ c = new Oe(s, function() {
1586
1586
  l || (l = !0, u(function() {
1587
1587
  l = !1, c.isDisposed || c.track(d);
1588
1588
  }));
@@ -1603,22 +1603,22 @@ function qo(t) {
1603
1603
  }
1604
1604
  function au(t, e, n) {
1605
1605
  var r, i, o;
1606
- n === void 0 && (n = Rr), process.env.NODE_ENV !== "production" && ((!$(t) || !$(e)) && _("First and second argument to reaction should be functions"), V(n) || _("Third argument of reactions should be an object"));
1607
- var s = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + se() : "Reaction", a = Be(s, n.onError ? cu(n.onError, e) : e), c = !n.scheduler && !n.delay, u = qo(n), l = !0, d = !1, f, h = n.compareStructural ? Ue.structural : n.equals || Ue.default, v = new we(s, function() {
1606
+ n === void 0 && (n = Rr), process.env.NODE_ENV !== "production" && ((!$(t) || !$(e)) && w("First and second argument to reaction should be functions"), V(n) || w("Third argument of reactions should be an object"));
1607
+ var s = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + se() : "Reaction", a = He(s, n.onError ? cu(n.onError, e) : e), c = !n.scheduler && !n.delay, u = qo(n), l = !0, d = !1, f, h = n.compareStructural ? We.structural : n.equals || We.default, g = new Oe(s, function() {
1608
1608
  l || c ? p() : d || (d = !0, u(p));
1609
1609
  }, n.onError, n.requiresObservable);
1610
1610
  function p() {
1611
- if (d = !1, !v.isDisposed) {
1612
- var m = !1, w = f;
1613
- v.track(function() {
1614
- var g = jc(!1, function() {
1615
- return t(v);
1611
+ if (d = !1, !g.isDisposed) {
1612
+ var m = !1, S = f;
1613
+ g.track(function() {
1614
+ var _ = jc(!1, function() {
1615
+ return t(g);
1616
1616
  });
1617
- m = l || !h(f, g), f = g;
1618
- }), (l && n.fireImmediately || !l && m) && a(f, w, v), l = !1;
1617
+ m = l || !h(f, _), f = _;
1618
+ }), (l && n.fireImmediately || !l && m) && a(f, S, g), l = !1;
1619
1619
  }
1620
1620
  }
1621
- return (i = n) != null && (i = i.signal) != null && i.aborted || v.schedule_(), v.getDisposer_((o = n) == null ? void 0 : o.signal);
1621
+ return (i = n) != null && (i = i.signal) != null && i.aborted || g.schedule_(), g.getDisposer_((o = n) == null ? void 0 : o.signal);
1622
1622
  }
1623
1623
  function cu(t, e) {
1624
1624
  return function() {
@@ -1637,7 +1637,7 @@ function Yo(t, e, n) {
1637
1637
  return Xo(lu, t, e, n);
1638
1638
  }
1639
1639
  function Xo(t, e, n, r) {
1640
- var i = Je(e), o = $(r) ? r : n, s = t + "L";
1640
+ var i = Ze(e), o = $(r) ? r : n, s = t + "L";
1641
1641
  return i[s] ? i[s].add(o) : i[s] = /* @__PURE__ */ new Set([o]), function() {
1642
1642
  var a = i[s];
1643
1643
  a && (a.delete(o), a.size === 0 && delete i[s]);
@@ -1647,19 +1647,19 @@ var fu = "never", Bt = "always", hu = "observed";
1647
1647
  function pu(t) {
1648
1648
  t.isolateGlobalState === !0 && Kc();
1649
1649
  var e = t.useProxies, n = t.enforceActions;
1650
- if (e !== void 0 && (y.useProxies = e === Bt ? !0 : e === fu ? !1 : typeof Proxy < "u"), e === "ifavailable" && (y.verifyProxies = !0), n !== void 0) {
1650
+ if (e !== void 0 && (b.useProxies = e === Bt ? !0 : e === fu ? !1 : typeof Proxy < "u"), e === "ifavailable" && (b.verifyProxies = !0), n !== void 0) {
1651
1651
  var r = n === Bt ? Bt : n === hu;
1652
- y.enforceActions = r, y.allowStateChanges = !(r === !0 || r === Bt);
1652
+ b.enforceActions = r, b.allowStateChanges = !(r === !0 || r === Bt);
1653
1653
  }
1654
1654
  ["computedRequiresReaction", "reactionRequiresObservable", "observableRequiresReaction", "disableErrorBoundaries", "safeDescriptors"].forEach(function(i) {
1655
- i in t && (y[i] = !!t[i]);
1656
- }), y.allowStateReads = !y.observableRequiresReaction, process.env.NODE_ENV !== "production" && y.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler && Jc(t.reactionScheduler);
1655
+ i in t && (b[i] = !!t[i]);
1656
+ }), b.allowStateReads = !b.observableRequiresReaction, process.env.NODE_ENV !== "production" && b.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler && Jc(t.reactionScheduler);
1657
1657
  }
1658
1658
  function Jo(t, e, n, r) {
1659
- process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Me(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), V(e) || _("'extendObservable' only accepts plain objects as second argument"), (Nt(e) || Nt(n)) && _("Extending an object with another observable (object) is not supported"));
1659
+ process.env.NODE_ENV !== "production" && (arguments.length > 4 && w("'extendObservable' expected 2-4 arguments"), typeof t != "object" && w("'extendObservable' expects an object as first argument"), Pe(t) && w("'extendObservable' should not be used on maps, use map.merge instead"), V(e) || w("'extendObservable' only accepts plain objects as second argument"), (Nt(e) || Nt(n)) && w("Extending an object with another observable (object) is not supported"));
1660
1660
  var i = Ba(e);
1661
- return ke(function() {
1662
- var o = tt(t, r)[O];
1661
+ return Fe(function() {
1662
+ var o = nt(t, r)[E];
1663
1663
  dt(i).forEach(function(s) {
1664
1664
  o.extend_(
1665
1665
  s,
@@ -1671,7 +1671,7 @@ function Jo(t, e, n, r) {
1671
1671
  }), t;
1672
1672
  }
1673
1673
  function Zo(t, e) {
1674
- return Qo(Je(t, e));
1674
+ return Qo(Ze(t, e));
1675
1675
  }
1676
1676
  function Qo(t) {
1677
1677
  var e = {
@@ -1680,7 +1680,7 @@ function Qo(t) {
1680
1680
  return t.observing_ && t.observing_.length > 0 && (e.dependencies = mu(t.observing_).map(Qo)), e;
1681
1681
  }
1682
1682
  function Kh(t, e) {
1683
- return es(Je(t, e));
1683
+ return es(Ze(t, e));
1684
1684
  }
1685
1685
  function es(t) {
1686
1686
  var e = {
@@ -1706,46 +1706,46 @@ var gu = 0, vu = /* @__PURE__ */ (function(t) {
1706
1706
  }), ft = /* @__PURE__ */ Object.assign(function(e, n) {
1707
1707
  if (Dt(n))
1708
1708
  return Cn.decorate_20223_(e, n);
1709
- if (De(n))
1709
+ if (Re(n))
1710
1710
  return $t(e, n, Cn);
1711
- process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("Flow expects single argument with generator function");
1711
+ process.env.NODE_ENV !== "production" && arguments.length !== 1 && w("Flow expects single argument with generator function");
1712
1712
  var r = e, i = r.name || "<unnamed flow>", o = function() {
1713
- var a = this, c = arguments, u = ++gu, l = Be(i + " - runid: " + u + " - init", r).apply(a, c), d, f = void 0, h = new Promise(function(v, p) {
1713
+ var a = this, c = arguments, u = ++gu, l = He(i + " - runid: " + u + " - init", r).apply(a, c), d, f = void 0, h = new Promise(function(g, p) {
1714
1714
  var m = 0;
1715
1715
  d = p;
1716
- function w(S) {
1716
+ function S(O) {
1717
1717
  f = void 0;
1718
- var I;
1718
+ var M;
1719
1719
  try {
1720
- I = Be(i + " - runid: " + u + " - yield " + m++, l.next).call(l, S);
1720
+ M = He(i + " - runid: " + u + " - yield " + m++, l.next).call(l, O);
1721
1721
  } catch (P) {
1722
1722
  return p(P);
1723
1723
  }
1724
- E(I);
1724
+ y(M);
1725
1725
  }
1726
- function g(S) {
1726
+ function _(O) {
1727
1727
  f = void 0;
1728
- var I;
1728
+ var M;
1729
1729
  try {
1730
- I = Be(i + " - runid: " + u + " - yield " + m++, l.throw).call(l, S);
1730
+ M = He(i + " - runid: " + u + " - yield " + m++, l.throw).call(l, O);
1731
1731
  } catch (P) {
1732
1732
  return p(P);
1733
1733
  }
1734
- E(I);
1734
+ y(M);
1735
1735
  }
1736
- function E(S) {
1737
- if ($(S == null ? void 0 : S.then)) {
1738
- S.then(E, p);
1736
+ function y(O) {
1737
+ if ($(O == null ? void 0 : O.then)) {
1738
+ O.then(y, p);
1739
1739
  return;
1740
1740
  }
1741
- return S.done ? v(S.value) : (f = Promise.resolve(S.value), f.then(w, g));
1741
+ return O.done ? g(O.value) : (f = Promise.resolve(O.value), f.then(S, _));
1742
1742
  }
1743
- w(void 0);
1743
+ S(void 0);
1744
1744
  });
1745
- return h.cancel = Be(i + " - runid: " + u + " - cancel", function() {
1745
+ return h.cancel = He(i + " - runid: " + u + " - cancel", function() {
1746
1746
  try {
1747
1747
  f && mi(f);
1748
- var v = l.return(void 0), p = Promise.resolve(v.value);
1748
+ var g = l.return(void 0), p = Promise.resolve(g.value);
1749
1749
  p.then(at, at), mi(p), d(new vu());
1750
1750
  } catch (m) {
1751
1751
  d(m);
@@ -1754,7 +1754,7 @@ var gu = 0, vu = /* @__PURE__ */ (function(t) {
1754
1754
  };
1755
1755
  return o.isMobXFlow = !0, o;
1756
1756
  }, Cn);
1757
- ft.bound = /* @__PURE__ */ Se(bu);
1757
+ ft.bound = /* @__PURE__ */ we(bu);
1758
1758
  function mi(t) {
1759
1759
  $(t.cancel) && t.cancel();
1760
1760
  }
@@ -1765,21 +1765,21 @@ function ts(t, e) {
1765
1765
  if (!t)
1766
1766
  return !1;
1767
1767
  if (e !== void 0) {
1768
- if (process.env.NODE_ENV !== "production" && (Me(t) || Ft(t)))
1769
- return _("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
1770
- if (Xe(t)) {
1771
- var n, r, i = t[O];
1768
+ if (process.env.NODE_ENV !== "production" && (Pe(t) || Ft(t)))
1769
+ return w("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
1770
+ if (Je(t)) {
1771
+ var n, r, i = t[E];
1772
1772
  return i.values_.has(e) || !!((n = i.lazyComputedKeys_) != null && n.has(e)) || !!((r = i.lazyObservableKeys_) != null && r.has(e));
1773
1773
  }
1774
1774
  return !1;
1775
1775
  }
1776
- return Xe(t) || !!t[O] || Fr(t) || an(t) || Mn(t);
1776
+ return Je(t) || !!t[E] || Fr(t) || an(t) || Mn(t);
1777
1777
  }
1778
1778
  function Nt(t) {
1779
- return process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), ts(t);
1779
+ return process.env.NODE_ENV !== "production" && arguments.length !== 1 && w("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), ts(t);
1780
1780
  }
1781
1781
  function Uh(t, e) {
1782
- return process.env.NODE_ENV !== "production" && !De(e) ? _("expected a property name as second argument") : ts(t, e);
1782
+ return process.env.NODE_ENV !== "production" && !Re(e) ? w("expected a property name as second argument") : ts(t, e);
1783
1783
  }
1784
1784
  function yu() {
1785
1785
  if (process.env.NODE_ENV !== "production") {
@@ -1788,21 +1788,21 @@ function yu() {
1788
1788
  typeof n[n.length - 1] == "boolean" && (t = n.pop());
1789
1789
  var i = _u(n);
1790
1790
  if (!i)
1791
- return _("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
1791
+ return w("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
1792
1792
  i.isTracing_ === oe.NONE && console.log("[mobx.trace] '" + i.name_ + "' tracing enabled"), i.isTracing_ = t ? oe.BREAK : oe.LOG;
1793
1793
  }
1794
1794
  }
1795
1795
  function _u(t) {
1796
1796
  switch (t.length) {
1797
1797
  case 0:
1798
- return y.trackingDerivation;
1798
+ return b.trackingDerivation;
1799
1799
  case 1:
1800
- return Je(t[0]);
1800
+ return Ze(t[0]);
1801
1801
  case 2:
1802
- return Je(t[0], t[1]);
1802
+ return Ze(t[0], t[1]);
1803
1803
  }
1804
1804
  }
1805
- function xe(t, e) {
1805
+ function Ne(t, e) {
1806
1806
  e === void 0 && (e = void 0), ne();
1807
1807
  try {
1808
1808
  return t.apply(e);
@@ -1810,38 +1810,38 @@ function xe(t, e) {
1810
1810
  re();
1811
1811
  }
1812
1812
  }
1813
- function ze(t) {
1814
- return t[O];
1813
+ function Ve(t) {
1814
+ return t[E];
1815
1815
  }
1816
1816
  var Su = {
1817
1817
  has: function(e, n) {
1818
- return process.env.NODE_ENV !== "production" && y.trackingDerivation && yt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), ze(e).has_(n);
1818
+ return process.env.NODE_ENV !== "production" && b.trackingDerivation && yt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), Ve(e).has_(n);
1819
1819
  },
1820
1820
  get: function(e, n) {
1821
- return ze(e).get_(n);
1821
+ return Ve(e).get_(n);
1822
1822
  },
1823
1823
  set: function(e, n, r) {
1824
1824
  var i;
1825
- return De(n) ? (process.env.NODE_ENV !== "production" && !ze(e).values_.has(n) && yt("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."), (i = ze(e).set_(n, r, !0)) != null ? i : !0) : !1;
1825
+ return Re(n) ? (process.env.NODE_ENV !== "production" && !Ve(e).values_.has(n) && yt("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."), (i = Ve(e).set_(n, r, !0)) != null ? i : !0) : !1;
1826
1826
  },
1827
1827
  deleteProperty: function(e, n) {
1828
1828
  var r;
1829
- return process.env.NODE_ENV !== "production" && yt("delete properties from an observable object. Use 'remove' from 'mobx' instead."), De(n) ? (r = ze(e).delete_(n, !0)) != null ? r : !0 : !1;
1829
+ return process.env.NODE_ENV !== "production" && yt("delete properties from an observable object. Use 'remove' from 'mobx' instead."), Re(n) ? (r = Ve(e).delete_(n, !0)) != null ? r : !0 : !1;
1830
1830
  },
1831
1831
  defineProperty: function(e, n, r) {
1832
1832
  var i;
1833
- return process.env.NODE_ENV !== "production" && yt("define property on an observable object. Use 'defineProperty' from 'mobx' instead."), (i = ze(e).defineProperty_(n, r)) != null ? i : !0;
1833
+ return process.env.NODE_ENV !== "production" && yt("define property on an observable object. Use 'defineProperty' from 'mobx' instead."), (i = Ve(e).defineProperty_(n, r)) != null ? i : !0;
1834
1834
  },
1835
1835
  ownKeys: function(e) {
1836
- return process.env.NODE_ENV !== "production" && y.trackingDerivation && yt("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."), ze(e).ownKeys_();
1836
+ return process.env.NODE_ENV !== "production" && b.trackingDerivation && yt("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."), Ve(e).ownKeys_();
1837
1837
  },
1838
1838
  preventExtensions: function(e) {
1839
- _(13);
1839
+ w(13);
1840
1840
  }
1841
1841
  };
1842
1842
  function wu(t, e) {
1843
1843
  var n, r;
1844
- return bo(), t = tt(t, e), (r = (n = t[O]).proxy_) != null ? r : n.proxy_ = new Proxy(t, Su);
1844
+ return bo(), t = nt(t, e), (r = (n = t[E]).proxy_) != null ? r : n.proxy_ = new Proxy(t, Su);
1845
1845
  }
1846
1846
  function ee(t) {
1847
1847
  return t.interceptors_ !== void 0 && t.interceptors_.length > 0;
@@ -1854,13 +1854,13 @@ function Lt(t, e) {
1854
1854
  });
1855
1855
  }
1856
1856
  function te(t, e) {
1857
- var n = et();
1857
+ var n = tt();
1858
1858
  try {
1859
- for (var r = [].concat(t.interceptors_ || []), i = 0, o = r.length; i < o && (e = r[i](e), e && !e.type && _(14), !!e); i++)
1859
+ for (var r = [].concat(t.interceptors_ || []), i = 0, o = r.length; i < o && (e = r[i](e), e && !e.type && w(14), !!e); i++)
1860
1860
  ;
1861
1861
  return e;
1862
1862
  } finally {
1863
- Ne(n);
1863
+ Ie(n);
1864
1864
  }
1865
1865
  }
1866
1866
  function fe(t) {
@@ -1874,29 +1874,29 @@ function kt(t, e) {
1874
1874
  });
1875
1875
  }
1876
1876
  function he(t, e) {
1877
- var n = et(), r = t.changeListeners_;
1877
+ var n = tt(), r = t.changeListeners_;
1878
1878
  if (r) {
1879
1879
  r = r.slice();
1880
1880
  for (var i = 0, o = r.length; i < o; i++)
1881
1881
  r[i](e);
1882
- Ne(n);
1882
+ Ie(n);
1883
1883
  }
1884
1884
  }
1885
1885
  function Ou(t, e, n) {
1886
- return ke(function() {
1887
- var r, i = tt(t, n)[O];
1888
- process.env.NODE_ENV !== "production" && e && t[z] && _("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e = Xa(t)), dt(e).forEach(function(o) {
1886
+ return Fe(function() {
1887
+ var r, i = nt(t, n)[E];
1888
+ process.env.NODE_ENV !== "production" && e && t[z] && w("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e = Xa(t)), dt(e).forEach(function(o) {
1889
1889
  return i.make_(o, e[o]);
1890
1890
  });
1891
1891
  }), t;
1892
1892
  }
1893
1893
  var Tn = /* @__PURE__ */ Symbol("mobx-keys");
1894
1894
  function ns(t, e, n) {
1895
- return process.env.NODE_ENV !== "production" && (!V(t) && !V(Object.getPrototypeOf(t)) && _("'makeAutoObservable' can only be used for classes that don't have a superclass"), Xe(t) && _("makeAutoObservable can only be used on objects not already made observable")), V(t) ? Jo(t, t, e, n) : (ke(function() {
1896
- var r = tt(t, n)[O];
1895
+ return process.env.NODE_ENV !== "production" && (!V(t) && !V(Object.getPrototypeOf(t)) && w("'makeAutoObservable' can only be used for classes that don't have a superclass"), Je(t) && w("makeAutoObservable can only be used on objects not already made observable")), V(t) ? Jo(t, t, e, n) : (Fe(function() {
1896
+ var r = nt(t, n)[E];
1897
1897
  if (!t[Tn]) {
1898
1898
  var i = Object.getPrototypeOf(t), o = new Set([].concat(dt(t), dt(i)));
1899
- o.delete("constructor"), o.delete(O), Tt(i, Tn, o);
1899
+ o.delete("constructor"), o.delete(E), Tt(i, Tn, o);
1900
1900
  }
1901
1901
  t[Tn].forEach(function(s) {
1902
1902
  return r.make_(
@@ -1909,19 +1909,19 @@ function ns(t, e, n) {
1909
1909
  }
1910
1910
  var gi = "splice", de = "update", Eu = 1e4, Au = {
1911
1911
  get: function(e, n) {
1912
- var r = e[O];
1913
- return n === O ? r : n === "length" ? r.getArrayLength_() : typeof n == "string" && !isNaN(n) ? r.get_(parseInt(n)) : ie(cn, n) ? cn[n] : e[n];
1912
+ var r = e[E];
1913
+ return n === E ? r : n === "length" ? r.getArrayLength_() : typeof n == "string" && !isNaN(n) ? r.get_(parseInt(n)) : ie(cn, n) ? cn[n] : e[n];
1914
1914
  },
1915
1915
  set: function(e, n, r) {
1916
- var i = e[O];
1916
+ var i = e[E];
1917
1917
  return n === "length" && i.setArrayLength_(r), typeof n == "symbol" || isNaN(n) ? e[n] = r : i.set_(parseInt(n), r), !0;
1918
1918
  },
1919
1919
  preventExtensions: function() {
1920
- _(15);
1920
+ w(15);
1921
1921
  }
1922
1922
  }, Br = /* @__PURE__ */ (function() {
1923
1923
  function t(n, r, i, o) {
1924
- n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = i, this.legacyMode_ = o, this.atom_ = new Le(n), this.enhancer_ = function(s, a) {
1924
+ n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = i, this.legacyMode_ = o, this.atom_ = new ke(n), this.enhancer_ = function(s, a) {
1925
1925
  return r(s, a, process.env.NODE_ENV !== "production" ? n + "[..]" : "ObservableArray[..]");
1926
1926
  };
1927
1927
  }
@@ -1947,7 +1947,7 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
1947
1947
  }, e.getArrayLength_ = function() {
1948
1948
  return this.atom_.reportObserved(), this.values_.length;
1949
1949
  }, e.setArrayLength_ = function(r) {
1950
- (typeof r != "number" || isNaN(r) || r < 0) && _("Out of range: " + r);
1950
+ (typeof r != "number" || isNaN(r) || r < 0) && w("Out of range: " + r);
1951
1951
  var i = this.values_.length;
1952
1952
  if (r !== i)
1953
1953
  if (r > i) {
@@ -1957,10 +1957,10 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
1957
1957
  } else
1958
1958
  this.spliceWithArray_(r, i - r);
1959
1959
  }, e.updateArrayLength_ = function(r, i) {
1960
- r !== this.lastKnownLength_ && _(16), this.lastKnownLength_ += i, this.legacyMode_ && i > 0 && cs(r + i + 1);
1960
+ r !== this.lastKnownLength_ && w(16), this.lastKnownLength_ += i, this.legacyMode_ && i > 0 && cs(r + i + 1);
1961
1961
  }, e.spliceWithArray_ = function(r, i, o) {
1962
1962
  var s = this;
1963
- ye(this.atom_);
1963
+ _e(this.atom_);
1964
1964
  var a = this.values_.length;
1965
1965
  if (r === void 0 ? r = 0 : r > a ? r = a : r < 0 && (r = Math.max(0, a + r)), arguments.length === 1 ? i = a - r : i == null ? i = 0 : i = Math.max(0, Math.min(i, a - r)), o === void 0 && (o = nn), ee(this)) {
1966
1966
  var c = te(this, {
@@ -2005,7 +2005,7 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
2005
2005
  newValue: i,
2006
2006
  oldValue: o
2007
2007
  } : null;
2008
- process.env.NODE_ENV !== "production" && s && q(c), this.atom_.reportChanged(), a && he(this, c), process.env.NODE_ENV !== "production" && s && Y();
2008
+ process.env.NODE_ENV !== "production" && s && G(c), this.atom_.reportChanged(), a && he(this, c), process.env.NODE_ENV !== "production" && s && q();
2009
2009
  }, e.notifyArraySplice_ = function(r, i, o) {
2010
2010
  var s = !this.owned_ && k(), a = fe(this), c = a || s ? {
2011
2011
  observableKind: "array",
@@ -2018,7 +2018,7 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
2018
2018
  removedCount: o.length,
2019
2019
  addedCount: i.length
2020
2020
  } : null;
2021
- process.env.NODE_ENV !== "production" && s && q(c), this.atom_.reportChanged(), a && he(this, c), process.env.NODE_ENV !== "production" && s && Y();
2021
+ process.env.NODE_ENV !== "production" && s && G(c), this.atom_.reportChanged(), a && he(this, c), process.env.NODE_ENV !== "production" && s && q();
2022
2022
  }, e.get_ = function(r) {
2023
2023
  if (this.legacyMode_ && r >= this.values_.length) {
2024
2024
  console.warn(process.env.NODE_ENV !== "production" ? "[mobx.array] Attempt to read an array index (" + r + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX" : "[mobx] Out of bounds read: " + r);
@@ -2027,8 +2027,8 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
2027
2027
  return this.atom_.reportObserved(), this.dehanceValue_(this.values_[r]);
2028
2028
  }, e.set_ = function(r, i) {
2029
2029
  var o = this.values_;
2030
- if (this.legacyMode_ && r > o.length && _(17, r, o.length), r < o.length) {
2031
- ye(this.atom_);
2030
+ if (this.legacyMode_ && r > o.length && w(17, r, o.length), r < o.length) {
2031
+ _e(this.atom_);
2032
2032
  var s = o[r];
2033
2033
  if (ee(this)) {
2034
2034
  var a = te(this, {
@@ -2053,9 +2053,9 @@ var gi = "splice", de = "update", Eu = 1e4, Au = {
2053
2053
  }, t;
2054
2054
  })();
2055
2055
  function xu(t, e, n, r) {
2056
- return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), r === void 0 && (r = !1), bo(), ke(function() {
2056
+ return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), r === void 0 && (r = !1), bo(), Fe(function() {
2057
2057
  var i = new Br(n, e, r, !1);
2058
- _o(i.values_, O, i);
2058
+ _o(i.values_, E, i);
2059
2059
  var o = new Proxy(i.values_, Au);
2060
2060
  return i.proxy_ = o, t && t.length && i.spliceWithArray_(0, 0, t), o;
2061
2061
  });
@@ -2065,7 +2065,7 @@ var cn = {
2065
2065
  return this.splice(0);
2066
2066
  },
2067
2067
  replace: function(e) {
2068
- var n = this[O];
2068
+ var n = this[E];
2069
2069
  return n.spliceWithArray_(0, n.values_.length, e);
2070
2070
  },
2071
2071
  // Used by JSON.stringify
@@ -2081,7 +2081,7 @@ var cn = {
2081
2081
  splice: function(e, n) {
2082
2082
  for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++)
2083
2083
  i[o - 2] = arguments[o];
2084
- var s = this[O];
2084
+ var s = this[E];
2085
2085
  switch (arguments.length) {
2086
2086
  case 0:
2087
2087
  return [];
@@ -2093,69 +2093,69 @@ var cn = {
2093
2093
  return s.spliceWithArray_(e, n, i);
2094
2094
  },
2095
2095
  spliceWithArray: function(e, n, r) {
2096
- return this[O].spliceWithArray_(e, n, r);
2096
+ return this[E].spliceWithArray_(e, n, r);
2097
2097
  },
2098
2098
  push: function() {
2099
- for (var e = this[O], n = arguments.length, r = new Array(n), i = 0; i < n; i++)
2099
+ for (var e = this[E], n = arguments.length, r = new Array(n), i = 0; i < n; i++)
2100
2100
  r[i] = arguments[i];
2101
2101
  return e.spliceWithArray_(e.values_.length, 0, r), e.values_.length;
2102
2102
  },
2103
2103
  pop: function() {
2104
- return this.splice(Math.max(this[O].values_.length - 1, 0), 1)[0];
2104
+ return this.splice(Math.max(this[E].values_.length - 1, 0), 1)[0];
2105
2105
  },
2106
2106
  shift: function() {
2107
2107
  return this.splice(0, 1)[0];
2108
2108
  },
2109
2109
  unshift: function() {
2110
- for (var e = this[O], n = arguments.length, r = new Array(n), i = 0; i < n; i++)
2110
+ for (var e = this[E], n = arguments.length, r = new Array(n), i = 0; i < n; i++)
2111
2111
  r[i] = arguments[i];
2112
2112
  return e.spliceWithArray_(0, 0, r), e.values_.length;
2113
2113
  },
2114
2114
  reverse: function() {
2115
- return y.trackingDerivation && _(37, "reverse"), this.replace(this.slice().reverse()), this;
2115
+ return b.trackingDerivation && w(37, "reverse"), this.replace(this.slice().reverse()), this;
2116
2116
  },
2117
2117
  sort: function() {
2118
- y.trackingDerivation && _(37, "sort");
2118
+ b.trackingDerivation && w(37, "sort");
2119
2119
  var e = this.slice();
2120
2120
  return e.sort.apply(e, arguments), this.replace(e), this;
2121
2121
  },
2122
2122
  remove: function(e) {
2123
- var n = this[O], r = n.dehanceValues_(n.values_).indexOf(e);
2123
+ var n = this[E], r = n.dehanceValues_(n.values_).indexOf(e);
2124
2124
  return r > -1 ? (this.splice(r, 1), !0) : !1;
2125
2125
  }
2126
2126
  };
2127
- M("at", J);
2128
- M("concat", J);
2129
- M("flat", J);
2130
- M("includes", J);
2131
- M("indexOf", J);
2132
- M("join", J);
2133
- M("lastIndexOf", J);
2134
- M("slice", J);
2135
- M("toString", J);
2136
- M("toLocaleString", J);
2137
- M("toSorted", J);
2138
- M("toSpliced", J);
2139
- M("with", J);
2140
- M("every", pe);
2141
- M("filter", pe);
2142
- M("find", pe);
2143
- M("findIndex", pe);
2144
- M("findLast", pe);
2145
- M("findLastIndex", pe);
2146
- M("flatMap", pe);
2147
- M("forEach", pe);
2148
- M("map", pe);
2149
- M("some", pe);
2150
- M("toReversed", pe);
2151
- M("reduce", rs);
2152
- M("reduceRight", rs);
2153
- function M(t, e) {
2127
+ I("at", X);
2128
+ I("concat", X);
2129
+ I("flat", X);
2130
+ I("includes", X);
2131
+ I("indexOf", X);
2132
+ I("join", X);
2133
+ I("lastIndexOf", X);
2134
+ I("slice", X);
2135
+ I("toString", X);
2136
+ I("toLocaleString", X);
2137
+ I("toSorted", X);
2138
+ I("toSpliced", X);
2139
+ I("with", X);
2140
+ I("every", pe);
2141
+ I("filter", pe);
2142
+ I("find", pe);
2143
+ I("findIndex", pe);
2144
+ I("findLast", pe);
2145
+ I("findLastIndex", pe);
2146
+ I("flatMap", pe);
2147
+ I("forEach", pe);
2148
+ I("map", pe);
2149
+ I("some", pe);
2150
+ I("toReversed", pe);
2151
+ I("reduce", rs);
2152
+ I("reduceRight", rs);
2153
+ function I(t, e) {
2154
2154
  typeof Array.prototype[t] == "function" && (cn[t] = e(t));
2155
2155
  }
2156
- function J(t) {
2156
+ function X(t) {
2157
2157
  return function() {
2158
- var e = this[O];
2158
+ var e = this[E];
2159
2159
  e.atom_.reportObserved();
2160
2160
  var n = e.dehanceValues_(e.values_);
2161
2161
  return n[t].apply(n, arguments);
@@ -2163,7 +2163,7 @@ function J(t) {
2163
2163
  }
2164
2164
  function pe(t) {
2165
2165
  return function(e, n) {
2166
- var r = this, i = this[O];
2166
+ var r = this, i = this[E];
2167
2167
  i.atom_.reportObserved();
2168
2168
  var o = i.dehanceValues_(i.values_);
2169
2169
  return o[t](function(s, a) {
@@ -2173,7 +2173,7 @@ function pe(t) {
2173
2173
  }
2174
2174
  function rs(t) {
2175
2175
  return function() {
2176
- var e = this, n = this[O];
2176
+ var e = this, n = this[E];
2177
2177
  n.atom_.reportObserved();
2178
2178
  var r = n.dehanceValues_(n.values_), i = arguments[0];
2179
2179
  return arguments[0] = function(o, s, a) {
@@ -2181,14 +2181,14 @@ function rs(t) {
2181
2181
  }, r[t].apply(r, arguments);
2182
2182
  };
2183
2183
  }
2184
- var Nu = /* @__PURE__ */ Qe("ObservableArrayAdministration", Br);
2184
+ var Nu = /* @__PURE__ */ et("ObservableArrayAdministration", Br);
2185
2185
  function Ft(t) {
2186
- return wn(t) && Nu(t[O]);
2186
+ return wn(t) && Nu(t[E]);
2187
2187
  }
2188
- var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2188
+ var Iu = {}, De = "add", un = "delete", is = /* @__PURE__ */ (function() {
2189
2189
  function t(n, r, i) {
2190
2190
  var o = this;
2191
- r === void 0 && (r = We), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = Iu, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = r, this.name_ = i, $(Map) || _(18), ke(function() {
2191
+ r === void 0 && (r = Ge), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[E] = Iu, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = r, this.name_ = i, $(Map) || w(18), Fe(function() {
2192
2192
  o.keysAtom_ = Eo(process.env.NODE_ENV !== "production" ? o.name_ + ".keys()" : "ObservableMap.keys()"), o.data_ = /* @__PURE__ */ new Map(), o.hasMap_ = /* @__PURE__ */ new Map(), n && o.merge(n);
2193
2193
  });
2194
2194
  }
@@ -2197,11 +2197,11 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2197
2197
  return this.data_.has(r);
2198
2198
  }, e.has = function(r) {
2199
2199
  var i = this;
2200
- if (!y.trackingDerivation)
2200
+ if (!b.trackingDerivation)
2201
2201
  return this.has_(r);
2202
2202
  var o = this.hasMap_.get(r);
2203
2203
  if (!o) {
2204
- var s = o = new Ke(this.has_(r), En, process.env.NODE_ENV !== "production" ? this.name_ + "." + ar(r) + "?" : "ObservableMap.key?", !1);
2204
+ var s = o = new Ue(this.has_(r), En, process.env.NODE_ENV !== "production" ? this.name_ + "." + ar(r) + "?" : "ObservableMap.key?", !1);
2205
2205
  this.hasMap_.set(r, s), Yo(s, function() {
2206
2206
  return i.hasMap_.delete(r);
2207
2207
  });
@@ -2211,7 +2211,7 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2211
2211
  var o = this.has_(r);
2212
2212
  if (ee(this)) {
2213
2213
  var s = te(this, {
2214
- type: o ? de : $e,
2214
+ type: o ? de : De,
2215
2215
  object: this,
2216
2216
  newValue: i,
2217
2217
  name: r
@@ -2223,7 +2223,7 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2223
2223
  return o ? this.updateValue_(r, i) : this.addValue_(r, i), this;
2224
2224
  }, e.delete = function(r) {
2225
2225
  var i = this;
2226
- if (ye(this.keysAtom_), ee(this)) {
2226
+ if (_e(this.keysAtom_), ee(this)) {
2227
2227
  var o = te(this, {
2228
2228
  type: un,
2229
2229
  object: this,
@@ -2241,17 +2241,17 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2241
2241
  oldValue: this.data_.get(r).value_,
2242
2242
  name: r
2243
2243
  } : null;
2244
- return process.env.NODE_ENV !== "production" && s && q(c), xe(function() {
2244
+ return process.env.NODE_ENV !== "production" && s && G(c), Ne(function() {
2245
2245
  var u;
2246
2246
  i.keysAtom_.reportChanged(), (u = i.hasMap_.get(r)) == null || u.setNewValue_(!1);
2247
2247
  var l = i.data_.get(r);
2248
2248
  l.setNewValue_(void 0), i.data_.delete(r);
2249
- }), a && he(this, c), process.env.NODE_ENV !== "production" && s && Y(), !0;
2249
+ }), a && he(this, c), process.env.NODE_ENV !== "production" && s && q(), !0;
2250
2250
  }
2251
2251
  return !1;
2252
2252
  }, e.updateValue_ = function(r, i) {
2253
2253
  var o = this.data_.get(r);
2254
- if (i = o.prepareNewValue_(i), i !== y.UNCHANGED) {
2254
+ if (i = o.prepareNewValue_(i), i !== b.UNCHANGED) {
2255
2255
  var s = k(), a = fe(this), c = a || s ? {
2256
2256
  observableKind: "map",
2257
2257
  debugObjectName: this.name_,
@@ -2261,23 +2261,23 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2261
2261
  name: r,
2262
2262
  newValue: i
2263
2263
  } : null;
2264
- process.env.NODE_ENV !== "production" && s && q(c), o.setNewValue_(i), a && he(this, c), process.env.NODE_ENV !== "production" && s && Y();
2264
+ process.env.NODE_ENV !== "production" && s && G(c), o.setNewValue_(i), a && he(this, c), process.env.NODE_ENV !== "production" && s && q();
2265
2265
  }
2266
2266
  }, e.addValue_ = function(r, i) {
2267
2267
  var o = this;
2268
- ye(this.keysAtom_), xe(function() {
2269
- var u, l = new Ke(i, o.enhancer_, process.env.NODE_ENV !== "production" ? o.name_ + "." + ar(r) : "ObservableMap.key", !1);
2268
+ _e(this.keysAtom_), Ne(function() {
2269
+ var u, l = new Ue(i, o.enhancer_, process.env.NODE_ENV !== "production" ? o.name_ + "." + ar(r) : "ObservableMap.key", !1);
2270
2270
  o.data_.set(r, l), i = l.value_, (u = o.hasMap_.get(r)) == null || u.setNewValue_(!0), o.keysAtom_.reportChanged();
2271
2271
  });
2272
2272
  var s = k(), a = fe(this), c = a || s ? {
2273
2273
  observableKind: "map",
2274
2274
  debugObjectName: this.name_,
2275
- type: $e,
2275
+ type: De,
2276
2276
  object: this,
2277
2277
  name: r,
2278
2278
  newValue: i
2279
2279
  } : null;
2280
- process.env.NODE_ENV !== "production" && s && q(c), a && he(this, c), process.env.NODE_ENV !== "production" && s && Y();
2280
+ process.env.NODE_ENV !== "production" && s && G(c), a && he(this, c), process.env.NODE_ENV !== "production" && s && q();
2281
2281
  }, e.get = function(r) {
2282
2282
  return this.has(r) ? this.dehanceValue_(this.data_.get(r).get()) : this.dehanceValue_(void 0);
2283
2283
  }, e.getOrInsert = function(r, i) {
@@ -2319,19 +2319,19 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2319
2319
  }
2320
2320
  }, e.merge = function(r) {
2321
2321
  var i = this;
2322
- return Me(r) && (r = new Map(r)), xe(function() {
2322
+ return Pe(r) && (r = new Map(r)), Ne(function() {
2323
2323
  V(r) ? Va(r).forEach(function(o) {
2324
2324
  return i.set(o, r[o]);
2325
2325
  }) : Array.isArray(r) ? r.forEach(function(o) {
2326
2326
  var s = o[0], a = o[1];
2327
2327
  return i.set(s, a);
2328
- }) : pt(r) ? (za(r) || _(19, r), r.forEach(function(o, s) {
2328
+ }) : pt(r) ? (za(r) || w(19, r), r.forEach(function(o, s) {
2329
2329
  return i.set(s, o);
2330
- })) : r != null && _(20, r);
2330
+ })) : r != null && w(20, r);
2331
2331
  }), this;
2332
2332
  }, e.clear = function() {
2333
2333
  var r = this;
2334
- xe(function() {
2334
+ Ne(function() {
2335
2335
  Ro(function() {
2336
2336
  for (var i = ct(r.keys()), o; !(o = i()).done; ) {
2337
2337
  var s = o.value;
@@ -2341,7 +2341,7 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2341
2341
  });
2342
2342
  }, e.replace = function(r) {
2343
2343
  var i = this;
2344
- return xe(function() {
2344
+ return Ne(function() {
2345
2345
  for (var o = Mu(r), s = /* @__PURE__ */ new Map(), a = !1, c = ct(i.data_.keys()), u; !(u = c()).done; ) {
2346
2346
  var l = u.value;
2347
2347
  if (!o.has(l)) {
@@ -2354,23 +2354,23 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2354
2354
  }
2355
2355
  }
2356
2356
  }
2357
- for (var h = ct(o.entries()), v; !(v = h()).done; ) {
2358
- var p = v.value, m = p[0], w = p[1], g = i.data_.has(m);
2359
- if (i.set(m, w), i.data_.has(m)) {
2360
- var E = i.data_.get(m);
2361
- s.set(m, E), g || (a = !0);
2357
+ for (var h = ct(o.entries()), g; !(g = h()).done; ) {
2358
+ var p = g.value, m = p[0], S = p[1], _ = i.data_.has(m);
2359
+ if (i.set(m, S), i.data_.has(m)) {
2360
+ var y = i.data_.get(m);
2361
+ s.set(m, y), _ || (a = !0);
2362
2362
  }
2363
2363
  }
2364
2364
  if (!a)
2365
2365
  if (i.data_.size !== s.size)
2366
2366
  i.keysAtom_.reportChanged();
2367
2367
  else
2368
- for (var S = i.data_.keys(), I = s.keys(), P = S.next(), C = I.next(); !P.done; ) {
2368
+ for (var O = i.data_.keys(), M = s.keys(), P = O.next(), C = M.next(); !P.done; ) {
2369
2369
  if (P.value !== C.value) {
2370
2370
  i.keysAtom_.reportChanged();
2371
2371
  break;
2372
2372
  }
2373
- P = S.next(), C = I.next();
2373
+ P = O.next(), C = M.next();
2374
2374
  }
2375
2375
  i.data_ = s;
2376
2376
  }), this;
@@ -2379,7 +2379,7 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2379
2379
  }, e.toJSON = function() {
2380
2380
  return Array.from(this);
2381
2381
  }, e.observe_ = function(r, i) {
2382
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with maps."), kt(this, r);
2382
+ return process.env.NODE_ENV !== "production" && i === !0 && w("`observe` doesn't support fireImmediately=true in combination with maps."), kt(this, r);
2383
2383
  }, e.intercept_ = function(r) {
2384
2384
  return Lt(this, r);
2385
2385
  }, mt(t, [{
@@ -2393,12 +2393,12 @@ var Iu = {}, $e = "add", un = "delete", is = /* @__PURE__ */ (function() {
2393
2393
  return "Map";
2394
2394
  }
2395
2395
  }]);
2396
- })(), Me = /* @__PURE__ */ Qe("ObservableMap", is);
2396
+ })(), Pe = /* @__PURE__ */ et("ObservableMap", is);
2397
2397
  function vi(t) {
2398
2398
  return t[Symbol.toStringTag] = "MapIterator", Kr(t);
2399
2399
  }
2400
2400
  function Mu(t) {
2401
- if (pt(t) || Me(t))
2401
+ if (pt(t) || Pe(t))
2402
2402
  return t;
2403
2403
  if (Array.isArray(t))
2404
2404
  return new Map(t);
@@ -2408,14 +2408,14 @@ function Mu(t) {
2408
2408
  e.set(n, t[n]);
2409
2409
  return e;
2410
2410
  } else
2411
- return _(21, t);
2411
+ return w(21, t);
2412
2412
  }
2413
2413
  var Pu = {}, os = /* @__PURE__ */ (function() {
2414
2414
  function t(n, r, i) {
2415
2415
  var o = this;
2416
- r === void 0 && (r = We), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + se() : "ObservableSet"), this.name_ = void 0, this[O] = Pu, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, $(Set) || _(22), this.enhancer_ = function(s, a) {
2416
+ r === void 0 && (r = Ge), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + se() : "ObservableSet"), this.name_ = void 0, this[E] = Pu, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, $(Set) || w(22), this.enhancer_ = function(s, a) {
2417
2417
  return r(s, a, i);
2418
- }, ke(function() {
2418
+ }, Fe(function() {
2419
2419
  o.atom_ = Eo(o.name_), n && o.replace(n);
2420
2420
  });
2421
2421
  }
@@ -2424,7 +2424,7 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2424
2424
  return this.dehancer !== void 0 ? this.dehancer(r) : r;
2425
2425
  }, e.clear = function() {
2426
2426
  var r = this;
2427
- xe(function() {
2427
+ Ne(function() {
2428
2428
  Ro(function() {
2429
2429
  for (var i = ct(r.data_.values()), o; !(o = i()).done; ) {
2430
2430
  var s = o.value;
@@ -2439,9 +2439,9 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2439
2439
  }
2440
2440
  }, e.add = function(r) {
2441
2441
  var i = this;
2442
- if (ye(this.atom_), ee(this)) {
2442
+ if (_e(this.atom_), ee(this)) {
2443
2443
  var o = te(this, {
2444
- type: $e,
2444
+ type: De,
2445
2445
  object: this,
2446
2446
  newValue: r
2447
2447
  });
@@ -2450,17 +2450,17 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2450
2450
  r = o.newValue;
2451
2451
  }
2452
2452
  if (!this.has(r)) {
2453
- xe(function() {
2453
+ Ne(function() {
2454
2454
  i.data_.add(i.enhancer_(r, void 0)), i.atom_.reportChanged();
2455
2455
  });
2456
2456
  var s = process.env.NODE_ENV !== "production" && k(), a = fe(this), c = a || s ? {
2457
2457
  observableKind: "set",
2458
2458
  debugObjectName: this.name_,
2459
- type: $e,
2459
+ type: De,
2460
2460
  object: this,
2461
2461
  newValue: r
2462
2462
  } : null;
2463
- s && process.env.NODE_ENV !== "production" && q(c), a && he(this, c), s && process.env.NODE_ENV !== "production" && Y();
2463
+ s && process.env.NODE_ENV !== "production" && G(c), a && he(this, c), s && process.env.NODE_ENV !== "production" && q();
2464
2464
  }
2465
2465
  return this;
2466
2466
  }, e.delete = function(r) {
@@ -2482,9 +2482,9 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2482
2482
  object: this,
2483
2483
  oldValue: r
2484
2484
  } : null;
2485
- return s && process.env.NODE_ENV !== "production" && q(c), xe(function() {
2485
+ return s && process.env.NODE_ENV !== "production" && G(c), Ne(function() {
2486
2486
  i.atom_.reportChanged(), i.data_.delete(r);
2487
- }), a && he(this, c), s && process.env.NODE_ENV !== "production" && Y(), !0;
2487
+ }), a && he(this, c), s && process.env.NODE_ENV !== "production" && q(), !0;
2488
2488
  }
2489
2489
  return !1;
2490
2490
  }, e.has = function(r) {
@@ -2521,19 +2521,19 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2521
2521
  }
2522
2522
  });
2523
2523
  }, e.intersection = function(r) {
2524
- if (Ae(r) && !be(r))
2524
+ if (xe(r) && !ye(r))
2525
2525
  return r.intersection(this);
2526
2526
  var i = new Set(this);
2527
2527
  return i.intersection(r);
2528
2528
  }, e.union = function(r) {
2529
- if (Ae(r) && !be(r))
2529
+ if (xe(r) && !ye(r))
2530
2530
  return r.union(this);
2531
2531
  var i = new Set(this);
2532
2532
  return i.union(r);
2533
2533
  }, e.difference = function(r) {
2534
2534
  return new Set(this).difference(r);
2535
2535
  }, e.symmetricDifference = function(r) {
2536
- if (Ae(r) && !be(r))
2536
+ if (xe(r) && !ye(r))
2537
2537
  return r.symmetricDifference(this);
2538
2538
  var i = new Set(this);
2539
2539
  return i.symmetricDifference(r);
@@ -2542,21 +2542,21 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2542
2542
  }, e.isSupersetOf = function(r) {
2543
2543
  return new Set(this).isSupersetOf(r);
2544
2544
  }, e.isDisjointFrom = function(r) {
2545
- if (Ae(r) && !be(r))
2545
+ if (xe(r) && !ye(r))
2546
2546
  return r.isDisjointFrom(this);
2547
2547
  var i = new Set(this);
2548
2548
  return i.isDisjointFrom(r);
2549
2549
  }, e.replace = function(r) {
2550
2550
  var i = this;
2551
- return be(r) && (r = new Set(r)), xe(function() {
2551
+ return ye(r) && (r = new Set(r)), Ne(function() {
2552
2552
  Array.isArray(r) ? (i.clear(), r.forEach(function(o) {
2553
2553
  return i.add(o);
2554
- })) : Ae(r) ? (i.clear(), r.forEach(function(o) {
2554
+ })) : xe(r) ? (i.clear(), r.forEach(function(o) {
2555
2555
  return i.add(o);
2556
- })) : r != null && _("Cannot initialize set from " + r);
2556
+ })) : r != null && w("Cannot initialize set from " + r);
2557
2557
  }), this;
2558
2558
  }, e.observe_ = function(r, i) {
2559
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with sets."), kt(this, r);
2559
+ return process.env.NODE_ENV !== "production" && i === !0 && w("`observe` doesn't support fireImmediately=true in combination with sets."), kt(this, r);
2560
2560
  }, e.intercept_ = function(r) {
2561
2561
  return Lt(this, r);
2562
2562
  }, e.toJSON = function() {
@@ -2576,13 +2576,13 @@ var Pu = {}, os = /* @__PURE__ */ (function() {
2576
2576
  return "Set";
2577
2577
  }
2578
2578
  }]);
2579
- })(), be = /* @__PURE__ */ Qe("ObservableSet", os);
2579
+ })(), ye = /* @__PURE__ */ et("ObservableSet", os);
2580
2580
  function bi(t) {
2581
2581
  return t[Symbol.toStringTag] = "SetIterator", Kr(t);
2582
2582
  }
2583
2583
  var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ */ (function() {
2584
2584
  function t(n, r, i, o) {
2585
- r === void 0 && (r = /* @__PURE__ */ new Map()), o === void 0 && (o = yc), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.lazyComputedKeys_ = void 0, this.lazyObservableKeys_ = void 0, this.target_ = n, this.values_ = r, this.name_ = i, this.defaultAnnotation_ = o, this.keysAtom_ = new Le(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = V(this.target_), process.env.NODE_ENV !== "production" && !ds(this.defaultAnnotation_) && _("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
2585
+ r === void 0 && (r = /* @__PURE__ */ new Map()), o === void 0 && (o = yc), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.lazyComputedKeys_ = void 0, this.lazyObservableKeys_ = void 0, this.target_ = n, this.values_ = r, this.name_ = i, this.defaultAnnotation_ = o, this.keysAtom_ = new ke(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = V(this.target_), process.env.NODE_ENV !== "production" && !ds(this.defaultAnnotation_) && w("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
2586
2586
  }
2587
2587
  var e = t.prototype;
2588
2588
  return e.getObservablePropValue_ = function(r) {
@@ -2617,7 +2617,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2617
2617
  return null;
2618
2618
  i = c.newValue;
2619
2619
  }
2620
- if (i = a.prepareNewValue_(i), i !== y.UNCHANGED) {
2620
+ if (i = a.prepareNewValue_(i), i !== b.UNCHANGED) {
2621
2621
  var u = fe(this), l = process.env.NODE_ENV !== "production" && k(), d = u || l ? {
2622
2622
  type: de,
2623
2623
  observableKind: "object",
@@ -2627,11 +2627,11 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2627
2627
  name: r,
2628
2628
  newValue: i
2629
2629
  } : null;
2630
- process.env.NODE_ENV !== "production" && l && q(d), a.setNewValue_(i), u && he(this, d), process.env.NODE_ENV !== "production" && l && Y();
2630
+ process.env.NODE_ENV !== "production" && l && G(d), a.setNewValue_(i), u && he(this, d), process.env.NODE_ENV !== "production" && l && q();
2631
2631
  }
2632
2632
  return !0;
2633
2633
  }, e.get_ = function(r) {
2634
- return y.trackingDerivation && !ie(this.target_, r) && this.has_(r), this.target_[r];
2634
+ return b.trackingDerivation && !ie(this.target_, r) && this.has_(r), this.target_[r];
2635
2635
  }, e.set_ = function(r, i, o) {
2636
2636
  return o === void 0 && (o = !1), ie(this.target_, r) ? this.values_.has(r) ? this.setObservablePropValue_(r, i) : o ? Reflect.set(this.target_, r, i) : (this.target_[r] = i, !0) : this.extend_(r, {
2637
2637
  value: i,
@@ -2640,18 +2640,18 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2640
2640
  configurable: !0
2641
2641
  }, this.defaultAnnotation_, o);
2642
2642
  }, e.has_ = function(r) {
2643
- if (!y.trackingDerivation)
2643
+ if (!b.trackingDerivation)
2644
2644
  return r in this.target_;
2645
2645
  this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
2646
2646
  var i = this.pendingKeys_.get(r);
2647
- return i || (i = new Ke(r in this.target_, En, process.env.NODE_ENV !== "production" ? this.name_ + "." + ar(r) + "?" : "ObservableObject.key?", !1), this.pendingKeys_.set(r, i)), i.get();
2647
+ return i || (i = new Ue(r in this.target_, En, process.env.NODE_ENV !== "production" ? this.name_ + "." + ar(r) + "?" : "ObservableObject.key?", !1), this.pendingKeys_.set(r, i)), i.get();
2648
2648
  }, e.make_ = function(r, i) {
2649
2649
  if (i === !0 && (i = this.defaultAnnotation_), i !== !1) {
2650
2650
  if (Oi(this, i, r), !(r in this.target_)) {
2651
2651
  var o;
2652
2652
  if ((o = this.target_[z]) != null && o[r])
2653
2653
  return;
2654
- _(1, i.annotationType_, this.name_ + "." + r.toString());
2654
+ w(1, i.annotationType_, this.name_ + "." + r.toString());
2655
2655
  }
2656
2656
  for (var s = this.target_; s && s !== Sn; ) {
2657
2657
  var a = tn(s, r);
@@ -2673,7 +2673,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2673
2673
  var a = o.extend_(this, r, i, s);
2674
2674
  return a && wi(this, o, r), a;
2675
2675
  }, e.defineProperty_ = function(r, i, o) {
2676
- o === void 0 && (o = !1), ye(this.keysAtom_);
2676
+ o === void 0 && (o = !1), _e(this.keysAtom_);
2677
2677
  try {
2678
2678
  ne();
2679
2679
  var s = this.delete_(r);
@@ -2683,13 +2683,13 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2683
2683
  var a = te(this, {
2684
2684
  object: this.proxy_ || this.target_,
2685
2685
  name: r,
2686
- type: $e,
2686
+ type: De,
2687
2687
  newValue: i.value
2688
2688
  });
2689
2689
  if (!a)
2690
2690
  return null;
2691
2691
  var c = a.newValue;
2692
- i.value !== c && (i = Ie({}, i, {
2692
+ i.value !== c && (i = Me({}, i, {
2693
2693
  value: c
2694
2694
  }));
2695
2695
  }
@@ -2697,14 +2697,14 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2697
2697
  if (!Reflect.defineProperty(this.target_, r, i))
2698
2698
  return !1;
2699
2699
  } else
2700
- _e(this.target_, r, i);
2700
+ Se(this.target_, r, i);
2701
2701
  this.notifyPropertyAddition_(r, i.value);
2702
2702
  } finally {
2703
2703
  re();
2704
2704
  }
2705
2705
  return !0;
2706
2706
  }, e.defineObservableProperty_ = function(r, i, o, s) {
2707
- s === void 0 && (s = !1), ye(this.keysAtom_);
2707
+ s === void 0 && (s = !1), _e(this.keysAtom_);
2708
2708
  try {
2709
2709
  ne();
2710
2710
  var a = this.delete_(r);
@@ -2714,7 +2714,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2714
2714
  var c = te(this, {
2715
2715
  object: this.proxy_ || this.target_,
2716
2716
  name: r,
2717
- type: $e,
2717
+ type: De,
2718
2718
  newValue: i
2719
2719
  });
2720
2720
  if (!c)
@@ -2722,7 +2722,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2722
2722
  i = c.newValue;
2723
2723
  }
2724
2724
  var u = Si(r), l = {
2725
- configurable: y.safeDescriptors ? this.isPlainObject_ : !0,
2725
+ configurable: b.safeDescriptors ? this.isPlainObject_ : !0,
2726
2726
  enumerable: !0,
2727
2727
  get: u.get,
2728
2728
  set: u.set
@@ -2731,15 +2731,15 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2731
2731
  if (!Reflect.defineProperty(this.target_, r, l))
2732
2732
  return !1;
2733
2733
  } else
2734
- _e(this.target_, r, l);
2735
- var d = new Ke(i, o, process.env.NODE_ENV !== "production" ? this.name_ + "." + r.toString() : "ObservableObject.key", !1);
2734
+ Se(this.target_, r, l);
2735
+ var d = new Ue(i, o, process.env.NODE_ENV !== "production" ? this.name_ + "." + r.toString() : "ObservableObject.key", !1);
2736
2736
  this.values_.set(r, d), this.notifyPropertyAddition_(r, d.value_);
2737
2737
  } finally {
2738
2738
  re();
2739
2739
  }
2740
2740
  return !0;
2741
2741
  }, e.defineComputedProperty_ = function(r, i, o) {
2742
- o === void 0 && (o = !1), ye(this.keysAtom_);
2742
+ o === void 0 && (o = !1), _e(this.keysAtom_);
2743
2743
  try {
2744
2744
  ne();
2745
2745
  var s = this.delete_(r);
@@ -2749,7 +2749,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2749
2749
  var a = te(this, {
2750
2750
  object: this.proxy_ || this.target_,
2751
2751
  name: r,
2752
- type: $e,
2752
+ type: De,
2753
2753
  newValue: void 0
2754
2754
  });
2755
2755
  if (!a)
@@ -2757,7 +2757,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2757
2757
  }
2758
2758
  i.name || (i.name = process.env.NODE_ENV !== "production" ? this.name_ + "." + r.toString() : "ObservableObject.key"), i.context = this.proxy_ || this.target_;
2759
2759
  var c = Si(r), u = {
2760
- configurable: y.safeDescriptors ? this.isPlainObject_ : !0,
2760
+ configurable: b.safeDescriptors ? this.isPlainObject_ : !0,
2761
2761
  enumerable: !1,
2762
2762
  get: c.get,
2763
2763
  set: c.set
@@ -2766,14 +2766,14 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2766
2766
  if (!Reflect.defineProperty(this.target_, r, u))
2767
2767
  return !1;
2768
2768
  } else
2769
- _e(this.target_, r, u);
2769
+ Se(this.target_, r, u);
2770
2770
  this.values_.set(r, new B(i)), this.notifyPropertyAddition_(r, void 0);
2771
2771
  } finally {
2772
2772
  re();
2773
2773
  }
2774
2774
  return !0;
2775
2775
  }, e.delete_ = function(r, i) {
2776
- if (i === void 0 && (i = !1), ye(this.keysAtom_), !ie(this.target_, r))
2776
+ if (i === void 0 && (i = !1), _e(this.keysAtom_), !ie(this.target_, r))
2777
2777
  return !0;
2778
2778
  if (ee(this)) {
2779
2779
  var o = te(this, {
@@ -2797,7 +2797,7 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2797
2797
  return !1;
2798
2798
  } else
2799
2799
  delete this.target_[r];
2800
- if (process.env.NODE_ENV !== "production" && delete this.appliedAnnotations_[r], u && (this.values_.delete(r), u instanceof Ke && (l = u.value_), Vo(u)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (s = s.get(r)) == null || s.set(r in this.target_), a || c) {
2800
+ if (process.env.NODE_ENV !== "production" && delete this.appliedAnnotations_[r], u && (this.values_.delete(r), u instanceof Ue && (l = u.value_), Vo(u)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (s = s.get(r)) == null || s.set(r in this.target_), a || c) {
2801
2801
  var f = {
2802
2802
  type: _i,
2803
2803
  observableKind: "object",
@@ -2806,28 +2806,28 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2806
2806
  oldValue: l,
2807
2807
  name: r
2808
2808
  };
2809
- process.env.NODE_ENV !== "production" && c && q(f), a && he(this, f), process.env.NODE_ENV !== "production" && c && Y();
2809
+ process.env.NODE_ENV !== "production" && c && G(f), a && he(this, f), process.env.NODE_ENV !== "production" && c && q();
2810
2810
  }
2811
2811
  } finally {
2812
2812
  re();
2813
2813
  }
2814
2814
  return !0;
2815
2815
  }, e.observe_ = function(r, i) {
2816
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support the fire immediately property for observable objects."), kt(this, r);
2816
+ return process.env.NODE_ENV !== "production" && i === !0 && w("`observe` doesn't support the fire immediately property for observable objects."), kt(this, r);
2817
2817
  }, e.intercept_ = function(r) {
2818
2818
  return Lt(this, r);
2819
2819
  }, e.notifyPropertyAddition_ = function(r, i) {
2820
2820
  var o, s = fe(this), a = process.env.NODE_ENV !== "production" && k();
2821
2821
  if (s || a) {
2822
2822
  var c = s || a ? {
2823
- type: $e,
2823
+ type: De,
2824
2824
  observableKind: "object",
2825
2825
  debugObjectName: this.name_,
2826
2826
  object: this.proxy_ || this.target_,
2827
2827
  name: r,
2828
2828
  newValue: i
2829
2829
  } : null;
2830
- process.env.NODE_ENV !== "production" && a && q(c), s && he(this, c), process.env.NODE_ENV !== "production" && a && Y();
2830
+ process.env.NODE_ENV !== "production" && a && G(c), s && he(this, c), process.env.NODE_ENV !== "production" && a && q();
2831
2831
  }
2832
2832
  (o = this.pendingKeys_) == null || (o = o.get(r)) == null || o.set(!0), this.keysAtom_.reportChanged();
2833
2833
  }, e.ownKeys_ = function() {
@@ -2836,38 +2836,38 @@ var yi = /* @__PURE__ */ Object.create(null), _i = "remove", vr = /* @__PURE__ *
2836
2836
  return this.keysAtom_.reportObserved(), Object.keys(this.target_);
2837
2837
  }, t;
2838
2838
  })();
2839
- function tt(t, e) {
2839
+ function nt(t, e) {
2840
2840
  var n;
2841
- if (process.env.NODE_ENV !== "production" && e && Xe(t) && _("Options can't be provided for already observable objects."), ie(t, O))
2842
- return process.env.NODE_ENV !== "production" && !(us(t) instanceof vr) && _("Cannot convert '" + ln(t) + `' into observable object:
2841
+ if (process.env.NODE_ENV !== "production" && e && Je(t) && w("Options can't be provided for already observable objects."), ie(t, E))
2842
+ return process.env.NODE_ENV !== "production" && !(us(t) instanceof vr) && w("Cannot convert '" + ln(t) + `' into observable object:
2843
2843
  The target is already observable of different type.
2844
2844
  Extending builtins is not supported.`), t;
2845
- process.env.NODE_ENV !== "production" && !Object.isExtensible(t) && _("Cannot make the designated object observable; it is not extensible");
2845
+ process.env.NODE_ENV !== "production" && !Object.isExtensible(t) && w("Cannot make the designated object observable; it is not extensible");
2846
2846
  var r = (n = e == null ? void 0 : e.name) != null ? n : process.env.NODE_ENV !== "production" ? (V(t) ? "ObservableObject" : t.constructor.name) + "@" + se() : "ObservableObject", i = new vr(t, /* @__PURE__ */ new Map(), String(r), Pc(e));
2847
- return Tt(t, O, i), t;
2847
+ return Tt(t, E, i), t;
2848
2848
  }
2849
- var Cu = /* @__PURE__ */ Qe("ObservableObjectAdministration", vr);
2849
+ var Cu = /* @__PURE__ */ et("ObservableObjectAdministration", vr);
2850
2850
  function Si(t) {
2851
2851
  return yi[t] || (yi[t] = {
2852
2852
  get: function() {
2853
- return this[O].getObservablePropValue_(t);
2853
+ return this[E].getObservablePropValue_(t);
2854
2854
  },
2855
2855
  set: function(n) {
2856
- return this[O].setObservablePropValue_(t, n);
2856
+ return this[E].setObservablePropValue_(t, n);
2857
2857
  }
2858
2858
  });
2859
2859
  }
2860
- function Xe(t) {
2861
- return wn(t) ? Cu(t[O]) : !1;
2860
+ function Je(t) {
2861
+ return wn(t) ? Cu(t[E]) : !1;
2862
2862
  }
2863
2863
  function wi(t, e, n) {
2864
2864
  var r;
2865
2865
  process.env.NODE_ENV !== "production" && (t.appliedAnnotations_[n] = e), (r = t.target_[z]) == null || delete r[n];
2866
2866
  }
2867
2867
  function Oi(t, e, n) {
2868
- if (process.env.NODE_ENV !== "production" && !ds(e) && _("Cannot annotate '" + t.name_ + "." + n.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !rn(e) && ie(t.appliedAnnotations_, n)) {
2868
+ if (process.env.NODE_ENV !== "production" && !ds(e) && w("Cannot annotate '" + t.name_ + "." + n.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !rn(e) && ie(t.appliedAnnotations_, n)) {
2869
2869
  var r = t.name_ + "." + n.toString(), i = t.appliedAnnotations_[n].annotationType_, o = e.annotationType_;
2870
- _("Cannot apply '" + o + "' to '" + r + "':" + (`
2870
+ w("Cannot apply '" + o + "' to '" + r + "':" + (`
2871
2871
  The field is already annotated with '` + i + "'.") + `
2872
2872
  Re-annotating fields is not allowed.
2873
2873
  Use 'override' annotation for methods overridden by subclass.`);
@@ -2889,15 +2889,15 @@ Du(ss, Array.prototype);
2889
2889
  var Hr = /* @__PURE__ */ (function(t) {
2890
2890
  function e(r, i, o, s) {
2891
2891
  var a;
2892
- return o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), s === void 0 && (s = !1), a = t.call(this) || this, ke(function() {
2892
+ return o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), s === void 0 && (s = !1), a = t.call(this) || this, Fe(function() {
2893
2893
  var c = new Br(o, i, s, !0);
2894
- c.proxy_ = a, _o(a, O, c), r && r.length && a.spliceWithArray(0, 0, r), $u && Object.defineProperty(a, "0", Tu);
2894
+ c.proxy_ = a, _o(a, E, c), r && r.length && a.spliceWithArray(0, 0, r), $u && Object.defineProperty(a, "0", Tu);
2895
2895
  }), a;
2896
2896
  }
2897
2897
  kr(e, t);
2898
2898
  var n = e.prototype;
2899
2899
  return n.concat = function() {
2900
- this[O].atom_.reportObserved();
2900
+ this[E].atom_.reportObserved();
2901
2901
  for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
2902
2902
  o[s] = arguments[s];
2903
2903
  return Array.prototype.concat.apply(
@@ -2923,10 +2923,10 @@ var Hr = /* @__PURE__ */ (function(t) {
2923
2923
  }, mt(e, [{
2924
2924
  key: "length",
2925
2925
  get: function() {
2926
- return this[O].getArrayLength_();
2926
+ return this[E].getArrayLength_();
2927
2927
  },
2928
2928
  set: function(i) {
2929
- this[O].setArrayLength_(i);
2929
+ this[E].setArrayLength_(i);
2930
2930
  }
2931
2931
  }, {
2932
2932
  key: Symbol.toStringTag,
@@ -2944,15 +2944,15 @@ function as(t) {
2944
2944
  enumerable: !1,
2945
2945
  configurable: !0,
2946
2946
  get: function() {
2947
- return this[O].get_(t);
2947
+ return this[E].get_(t);
2948
2948
  },
2949
2949
  set: function(n) {
2950
- this[O].set_(t, n);
2950
+ this[E].set_(t, n);
2951
2951
  }
2952
2952
  };
2953
2953
  }
2954
2954
  function Ru(t) {
2955
- _e(Hr.prototype, "" + t, as(t));
2955
+ Se(Hr.prototype, "" + t, as(t));
2956
2956
  }
2957
2957
  function cs(t) {
2958
2958
  if (t > $n) {
@@ -2965,56 +2965,56 @@ cs(1e3);
2965
2965
  function Lu(t, e, n) {
2966
2966
  return new Hr(t, e, n);
2967
2967
  }
2968
- function Je(t, e) {
2968
+ function Ze(t, e) {
2969
2969
  if (typeof t == "object" && t !== null) {
2970
2970
  if (Ft(t))
2971
- return e !== void 0 && _(23), t[O].atom_;
2972
- if (be(t))
2971
+ return e !== void 0 && w(23), t[E].atom_;
2972
+ if (ye(t))
2973
2973
  return t.atom_;
2974
- if (Me(t)) {
2974
+ if (Pe(t)) {
2975
2975
  if (e === void 0)
2976
2976
  return t.keysAtom_;
2977
2977
  var n = t.data_.get(e) || t.hasMap_.get(e);
2978
- return n || _(25, e, ln(t)), n;
2978
+ return n || w(25, e, ln(t)), n;
2979
2979
  }
2980
- if (Xe(t)) {
2980
+ if (Je(t)) {
2981
2981
  var r, i;
2982
2982
  if (!e)
2983
- return _(26);
2984
- var o = t[O], s = (r = (i = o.values_.get(e)) != null ? i : o.materializeLazyComputed_(e)) != null ? r : o.materializeLazyObservable_(e);
2985
- return s || _(27, e, ln(t)), s;
2983
+ return w(26);
2984
+ var o = t[E], s = (r = (i = o.values_.get(e)) != null ? i : o.materializeLazyComputed_(e)) != null ? r : o.materializeLazyObservable_(e);
2985
+ return s || w(27, e, ln(t)), s;
2986
2986
  }
2987
2987
  if (Fr(t) || Mn(t) || an(t))
2988
2988
  return t;
2989
- } else if ($(t) && an(t[O]))
2990
- return t[O];
2991
- _(28);
2989
+ } else if ($(t) && an(t[E]))
2990
+ return t[E];
2991
+ w(28);
2992
2992
  }
2993
2993
  function us(t, e) {
2994
- if (t || _(29), Fr(t) || Mn(t) || an(t) || Me(t) || be(t))
2994
+ if (t || w(29), Fr(t) || Mn(t) || an(t) || Pe(t) || ye(t))
2995
2995
  return t;
2996
- if (t[O])
2997
- return t[O];
2998
- _(24, t);
2996
+ if (t[E])
2997
+ return t[E];
2998
+ w(24, t);
2999
2999
  }
3000
3000
  function ln(t, e) {
3001
3001
  var n;
3002
3002
  if (e !== void 0)
3003
- n = Je(t, e);
3003
+ n = Ze(t, e);
3004
3004
  else {
3005
- if (Ye(t))
3005
+ if (Xe(t))
3006
3006
  return t.name;
3007
- Xe(t) || Me(t) || be(t) ? n = us(t) : n = Je(t);
3007
+ Je(t) || Pe(t) || ye(t) ? n = us(t) : n = Ze(t);
3008
3008
  }
3009
3009
  return n.name_;
3010
3010
  }
3011
- function ke(t) {
3012
- var e = et(), n = Nn(!0);
3011
+ function Fe(t) {
3012
+ var e = tt(), n = Nn(!0);
3013
3013
  ne();
3014
3014
  try {
3015
3015
  return t();
3016
3016
  } finally {
3017
- re(), In(n), Ne(e);
3017
+ re(), In(n), Ie(e);
3018
3018
  }
3019
3019
  }
3020
3020
  var Ei = Sn.toString;
@@ -3078,15 +3078,15 @@ function br(t, e, n, r, i) {
3078
3078
  if (Object.keys(e).length !== f)
3079
3079
  return !1;
3080
3080
  for (var h = 0; h < f; h++) {
3081
- var v = d[h];
3082
- if (!(ie(e, v) && br(t[v], e[v], n - 1, r, i)))
3081
+ var g = d[h];
3082
+ if (!(ie(e, g) && br(t[g], e[g], n - 1, r, i)))
3083
3083
  return !1;
3084
3084
  }
3085
3085
  }
3086
3086
  return r.pop(), i.pop(), !0;
3087
3087
  }
3088
3088
  function Ai(t) {
3089
- return Ft(t) ? t.slice() : pt(t) || Me(t) || Ae(t) || be(t) ? Array.from(t.entries()) : t;
3089
+ return Ft(t) ? t.slice() : pt(t) || Pe(t) || xe(t) || ye(t) ? Array.from(t.entries()) : t;
3090
3090
  }
3091
3091
  var xi, ku = /* @__PURE__ */ _n(), Fu = ((xi = ku.Iterator) == null ? void 0 : xi.prototype) || {};
3092
3092
  function Kr(t) {
@@ -3103,14 +3103,14 @@ function ds(t) {
3103
3103
  }
3104
3104
  ["Symbol", "Map", "Set"].forEach(function(t) {
3105
3105
  var e = _n();
3106
- typeof e[t] > "u" && _("MobX requires global '" + t + "' to be available or polyfilled");
3106
+ typeof e[t] > "u" && w("MobX requires global '" + t + "' to be available or polyfilled");
3107
3107
  });
3108
3108
  typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
3109
3109
  spy: Qc,
3110
3110
  extras: {
3111
3111
  getDebugName: ln
3112
3112
  },
3113
- $mobx: O
3113
+ $mobx: E
3114
3114
  });
3115
3115
  if (!ir)
3116
3116
  throw new Error("mobx-react-lite requires React with Hooks support");
@@ -3214,7 +3214,7 @@ function Gu() {
3214
3214
  }
3215
3215
  var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, i = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;
3216
3216
  function a(d, f) {
3217
- var h = f(), v = r({ inst: { value: h, getSnapshot: f } }), p = v[0].inst, m = v[1];
3217
+ var h = f(), g = r({ inst: { value: h, getSnapshot: f } }), p = g[0].inst, m = g[1];
3218
3218
  return o(
3219
3219
  function() {
3220
3220
  p.value = h, p.getSnapshot = f, c(p) && m({ inst: p });
@@ -3258,50 +3258,50 @@ var Rn = {};
3258
3258
  var Ii;
3259
3259
  function qu() {
3260
3260
  return Ii || (Ii = 1, process.env.NODE_ENV !== "production" && (function() {
3261
- function t(h, v) {
3262
- return h === v && (h !== 0 || 1 / h === 1 / v) || h !== h && v !== v;
3261
+ function t(h, g) {
3262
+ return h === g && (h !== 0 || 1 / h === 1 / g) || h !== h && g !== g;
3263
3263
  }
3264
- function e(h, v) {
3264
+ function e(h, g) {
3265
3265
  l || i.startTransition === void 0 || (l = !0, console.error(
3266
3266
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
3267
3267
  ));
3268
- var p = v();
3268
+ var p = g();
3269
3269
  if (!d) {
3270
- var m = v();
3270
+ var m = g();
3271
3271
  o(p, m) || (console.error(
3272
3272
  "The result of getSnapshot should be cached to avoid an infinite loop"
3273
3273
  ), d = !0);
3274
3274
  }
3275
3275
  m = s({
3276
- inst: { value: p, getSnapshot: v }
3276
+ inst: { value: p, getSnapshot: g }
3277
3277
  });
3278
- var w = m[0].inst, g = m[1];
3278
+ var S = m[0].inst, _ = m[1];
3279
3279
  return c(
3280
3280
  function() {
3281
- w.value = p, w.getSnapshot = v, n(w) && g({ inst: w });
3281
+ S.value = p, S.getSnapshot = g, n(S) && _({ inst: S });
3282
3282
  },
3283
- [h, p, v]
3283
+ [h, p, g]
3284
3284
  ), a(
3285
3285
  function() {
3286
- return n(w) && g({ inst: w }), h(function() {
3287
- n(w) && g({ inst: w });
3286
+ return n(S) && _({ inst: S }), h(function() {
3287
+ n(S) && _({ inst: S });
3288
3288
  });
3289
3289
  },
3290
3290
  [h]
3291
3291
  ), u(p), p;
3292
3292
  }
3293
3293
  function n(h) {
3294
- var v = h.getSnapshot;
3294
+ var g = h.getSnapshot;
3295
3295
  h = h.value;
3296
3296
  try {
3297
- var p = v();
3297
+ var p = g();
3298
3298
  return !o(h, p);
3299
3299
  } catch {
3300
3300
  return !0;
3301
3301
  }
3302
3302
  }
3303
- function r(h, v) {
3304
- return v();
3303
+ function r(h, g) {
3304
+ return g();
3305
3305
  }
3306
3306
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3307
3307
  var i = Qt, o = typeof Object.is == "function" ? Object.is : t, s = i.useState, a = i.useEffect, c = i.useLayoutEffect, u = i.useDebugValue, l = !1, d = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
@@ -3314,7 +3314,7 @@ function Yu() {
3314
3314
  }
3315
3315
  var Xu = Yu();
3316
3316
  function Pi(t) {
3317
- t.reaction = new we("observer".concat(t.name), function() {
3317
+ t.reaction = new Oe("observer".concat(t.name), function() {
3318
3318
  var e;
3319
3319
  t.stateVersion = Symbol(), (e = t.onStoreChange) === null || e === void 0 || e.call(t);
3320
3320
  });
@@ -3469,8 +3469,8 @@ function ul(t, e) {
3469
3469
  o || s || (r != null && r.requestAnimationFrame ? s = r.requestAnimationFrame(c) : c());
3470
3470
  }, l = r == null ? void 0 : r.ResizeObserver, d = l ? new l(u) : null;
3471
3471
  for (const m of i) d == null || d.observe(m);
3472
- const f = r == null ? void 0 : r.MutationObserver, h = f ? new f(u) : null, v = "documentElement" in t ? t.documentElement : t;
3473
- return h == null || h.observe(v, {
3472
+ const f = r == null ? void 0 : r.MutationObserver, h = f ? new f(u) : null, g = "documentElement" in t ? t.documentElement : t;
3473
+ return h == null || h.observe(g, {
3474
3474
  attributes: !0,
3475
3475
  characterData: !0,
3476
3476
  childList: !0,
@@ -3533,7 +3533,7 @@ function ps(t) {
3533
3533
  const f = Di(d);
3534
3534
  let h = e.get(d) ?? e.get(f);
3535
3535
  if (!h && typeof f == "function") {
3536
- const v = f, p = v.displayName ?? v.name;
3536
+ const g = f, p = g.displayName ?? g.name;
3537
3537
  p && t[p] && (h = p);
3538
3538
  }
3539
3539
  !h || r != null && r.has(h) || dl(l) === n && (i = l, o = h);
@@ -3768,16 +3768,16 @@ function bl(t, e, n, r) {
3768
3768
  class yl {
3769
3769
  constructor() {
3770
3770
  /** Final commit candidate. Only one combination of the same element, attribute, and breakpoint is always maintained. */
3771
- b(this, "entries", []);
3772
- b(this, "toastMsg", "");
3773
- b(this, "toastSeq", 0);
3774
- b(this, "seq", 0);
3771
+ v(this, "entries", []);
3772
+ v(this, "toastMsg", "");
3773
+ v(this, "toastSeq", 0);
3774
+ v(this, "seq", 0);
3775
3775
  /** Undo/Redo is a session memory cache separate from the final patch. */
3776
- b(this, "undoHistory", []);
3777
- b(this, "redoHistory", []);
3776
+ v(this, "undoHistory", []);
3777
+ v(this, "redoHistory", []);
3778
3778
  /** Original value before editing for each (element, property, breakpoint). */
3779
- b(this, "originals", /* @__PURE__ */ new WeakMap());
3780
- b(this, "listeners", /* @__PURE__ */ new Set());
3779
+ v(this, "originals", /* @__PURE__ */ new WeakMap());
3780
+ v(this, "listeners", /* @__PURE__ */ new Set());
3781
3781
  }
3782
3782
  get canUndo() {
3783
3783
  return this.undoHistory.length > 0;
@@ -3967,7 +3967,7 @@ class yl {
3967
3967
  if (this.hasPendingStructuralEdit(e) || !s || !n || jn(r) !== jn(i)) return !1;
3968
3968
  const c = jn(r), u = ki(r), l = this.scopeKey("prop", n, null), d = this.originalValue(e, l, () => u), f = ((p = this.pendingFor({ kind: "prop", el: e, prop: n, media: null })) == null ? void 0 : p.to) ?? d, h = ki(i);
3969
3969
  if (f === h) return vs(e, n);
3970
- const v = Fi(e, n, i);
3970
+ const g = Fi(e, n, i);
3971
3971
  return this.pushOperation({
3972
3972
  id: ++this.seq,
3973
3973
  kind: "prop",
@@ -3983,9 +3983,9 @@ class yl {
3983
3983
  sourceIdentity: s,
3984
3984
  sourceScope: rt(s),
3985
3985
  valueType: c,
3986
- previewApplied: v,
3986
+ previewApplied: g,
3987
3987
  affectedFrames: Q(a)
3988
- }), v;
3988
+ }), g;
3989
3989
  }
3990
3990
  recordDuplicate(e, n, r = []) {
3991
3991
  if (this.structuralBlockReason(e, "insert")) return !1;
@@ -4226,23 +4226,23 @@ class yl {
4226
4226
  updateAffectedFrames(e) {
4227
4227
  const n = Q(e), r = JSON.stringify(n);
4228
4228
  let i = !1;
4229
- this.entries = this.entries.map((o) => !Ve(o) || JSON.stringify(o.affectedFrames) === r ? o : (i = !0, { ...o, affectedFrames: n.map((s) => ({ ...s })) })), i && (this.undoHistory = this.undoHistory.map(
4230
- (o) => Ve(o) ? { ...o, affectedFrames: n.map((s) => ({ ...s })) } : o
4229
+ this.entries = this.entries.map((o) => !Be(o) || JSON.stringify(o.affectedFrames) === r ? o : (i = !0, { ...o, affectedFrames: n.map((s) => ({ ...s })) })), i && (this.undoHistory = this.undoHistory.map(
4230
+ (o) => Be(o) ? { ...o, affectedFrames: n.map((s) => ({ ...s })) } : o
4231
4231
  ), this.redoHistory = this.redoHistory.map(
4232
- (o) => Ve(o) ? { ...o, affectedFrames: n.map((s) => ({ ...s })) } : o
4232
+ (o) => Be(o) ? { ...o, affectedFrames: n.map((s) => ({ ...s })) } : o
4233
4233
  ), this.notify());
4234
4234
  }
4235
4235
  /** After successful reflection — only the mapped and reflected entries are emptied from the log (leaving live-only entries). */
4236
4236
  clearApplied() {
4237
4237
  var n;
4238
- const e = this.entries.filter(Ve);
4238
+ const e = this.entries.filter(Be);
4239
4239
  for (const r of e)
4240
4240
  r.structureInsertMode === "component" && ((n = r.structurePreview) == null || n.unmount());
4241
4241
  for (const r of e) this.setOriginalValue(r, r.to);
4242
- this.entries = this.entries.filter((r) => !Ve(r)), this.undoHistory = this.undoHistory.filter((r) => !Ve(r)), this.redoHistory = this.redoHistory.filter((r) => !Ve(r)), this.notify();
4242
+ this.entries = this.entries.filter((r) => !Be(r)), this.undoHistory = this.undoHistory.filter((r) => !Be(r)), this.redoHistory = this.redoHistory.filter((r) => !Be(r)), this.notify();
4243
4243
  }
4244
4244
  }
4245
- function Ve(t) {
4245
+ function Be(t) {
4246
4246
  return t.kind === "style" ? t.source != null : t.sourceIdentity ? !0 : t.kind === "text" && t.componentFile != null;
4247
4247
  }
4248
4248
  const Gh = new yl(), bs = "data-pygmalion-auto-motion", ys = "data-pygmalion-auto-motions", _l = "data-pygmalion-motion", Sl = Object.freeze({
@@ -4670,7 +4670,7 @@ function op(t, e, n = {}) {
4670
4670
  ), d = Math.max(
4671
4671
  1,
4672
4672
  e.height - c - u - r * 2
4673
- ), f = Math.max(1, t.width), h = Math.max(1, t.height), v = Math.min(
4673
+ ), f = Math.max(1, t.width), h = Math.max(1, t.height), g = Math.min(
4674
4674
  o,
4675
4675
  Math.max(
4676
4676
  i,
@@ -4678,9 +4678,9 @@ function op(t, e, n = {}) {
4678
4678
  )
4679
4679
  ), p = s + r + l / 2, m = c + r + d / 2;
4680
4680
  return {
4681
- panX: p - (t.x + f / 2) * v,
4682
- panY: m - (t.y + h / 2) * v,
4683
- zoom: v
4681
+ panX: p - (t.x + f / 2) * g,
4682
+ panY: m - (t.y + h / 2) * g,
4683
+ zoom: g
4684
4684
  };
4685
4685
  }
4686
4686
  function Wi(t, e, n, r, i, o, s) {
@@ -4730,18 +4730,18 @@ function Ul(t, e = {}) {
4730
4730
  width: fn(m.width),
4731
4731
  height: fn(m.height)
4732
4732
  }));
4733
- let d = 0, f = a, h = 0, v = 0;
4734
- l.forEach((m, w) => {
4735
- w > 0 && w % i === 0 && (d = 0, f += h + n, h = 0), o.push({ ...m, x: d, y: f }), v = Math.max(v, d + m.width), h = Math.max(h, m.height), d += m.width + n;
4733
+ let d = 0, f = a, h = 0, g = 0;
4734
+ l.forEach((m, S) => {
4735
+ S > 0 && S % i === 0 && (d = 0, f += h + n, h = 0), o.push({ ...m, x: d, y: f }), g = Math.max(g, d + m.width), h = Math.max(h, m.height), d += m.width + n;
4736
4736
  });
4737
4737
  const p = f + h - a;
4738
4738
  s.push({
4739
4739
  laneId: u.laneId,
4740
4740
  x: 0,
4741
4741
  y: a,
4742
- width: v,
4742
+ width: g,
4743
4743
  height: p
4744
- }), c = Math.max(c, v), a += p + r;
4744
+ }), c = Math.max(c, g), a += p + r;
4745
4745
  }
4746
4746
  return {
4747
4747
  frames: o,
@@ -4772,16 +4772,16 @@ function Vn(t, e = {}) {
4772
4772
  Math.min(i, c)
4773
4773
  );
4774
4774
  if (o.length > 1) {
4775
- const p = o.map((w) => w.width).sort((w, g) => g - w), m = p[0] + n + p[1];
4775
+ const p = o.map((S) => S.width).sort((S, _) => _ - S), m = p[0] + n + p[1];
4776
4776
  m <= i && (u = Math.max(u, m));
4777
4777
  }
4778
4778
  const l = [];
4779
- let d = 0, f = 0, h = 0, v = 0;
4779
+ let d = 0, f = 0, h = 0, g = 0;
4780
4780
  for (const p of o)
4781
- d > 0 && d + p.width > u && (d = 0, f += h + n, h = 0), l.push({ ...p, x: d, y: f }), v = Math.max(v, d + p.width), h = Math.max(h, p.height), d += p.width + n;
4781
+ d > 0 && d + p.width > u && (d = 0, f += h + n, h = 0), l.push({ ...p, x: d, y: f }), g = Math.max(g, d + p.width), h = Math.max(h, p.height), d += p.width + n;
4782
4782
  return {
4783
4783
  frames: l,
4784
- width: v,
4784
+ width: g,
4785
4785
  height: f + h,
4786
4786
  rowWidth: u
4787
4787
  };
@@ -4908,16 +4908,16 @@ function Yl(t) {
4908
4908
  });
4909
4909
  const l = c.steps ?? [];
4910
4910
  if (r.kind === "interaction") {
4911
- u && l.every((v) => v.action === "wait") && e.push({
4911
+ u && l.every((g) => g.action === "wait") && e.push({
4912
4912
  severity: "error",
4913
4913
  interactionId: r.id,
4914
4914
  message: `Interaction state "${r.id}" option "${c.id}" needs a gesture. A wait-only variation is a condition or a separate frame.`
4915
4915
  });
4916
4916
  let d = -1;
4917
- for (let v = 0; v < l.length; v += 1)
4918
- l[v].action === "fill" && (d = v);
4917
+ for (let g = 0; g < l.length; g += 1)
4918
+ l[g].action === "fill" && (d = g);
4919
4919
  const f = l.slice(d + 1).some(
4920
- (v) => v.action === "wait" && !!(v.selector || v.text)
4920
+ (g) => g.action === "wait" && !!(g.selector || g.text)
4921
4921
  );
4922
4922
  d >= 0 && !f && e.push({
4923
4923
  severity: "error",
@@ -4925,9 +4925,9 @@ function Yl(t) {
4925
4925
  message: `Interaction state "${r.id}" option "${c.id}" ends as an editable parameter sample. Add a targeted wait for the distinct visible result, or leave value and length samples to edit mode and tests.`
4926
4926
  });
4927
4927
  const h = l.findIndex(
4928
- (v) => ["hover", "focus-visible", "active"].includes(v.action)
4928
+ (g) => ["hover", "focus-visible", "active"].includes(g.action)
4929
4929
  );
4930
- h >= 0 && l.slice(h + 1).some((v) => v.action !== "wait") && e.push({
4930
+ h >= 0 && l.slice(h + 1).some((g) => g.action !== "wait") && e.push({
4931
4931
  severity: "error",
4932
4932
  interactionId: r.id,
4933
4933
  message: `Interaction state "${r.id}" option "${c.id}" has a held pseudo state before another gesture. A held pseudo state must be terminal.`
@@ -5221,7 +5221,7 @@ function $p() {
5221
5221
  function Dp(t) {
5222
5222
  return Xr.find((e) => e.section === t) ?? null;
5223
5223
  }
5224
- function X(t, e) {
5224
+ function Y(t, e) {
5225
5225
  const n = t.domAttributes ?? {};
5226
5226
  if (e.testId && n["data-testid"] === e.testId)
5227
5227
  return !0;
@@ -5230,7 +5230,7 @@ function X(t, e) {
5230
5230
  const i = `${n.className ?? ""} ${t.name ?? ""}`;
5231
5231
  return (typeof r == "string" ? [r] : r).some((s) => s !== "" && i.includes(s));
5232
5232
  }
5233
- function Fe(t, e, n) {
5233
+ function je(t, e, n) {
5234
5234
  const r = [], i = (o) => {
5235
5235
  if (!(r.length >= n)) {
5236
5236
  e(o) && r.push(o);
@@ -5332,10 +5332,10 @@ function Rp(t, e) {
5332
5332
  return n;
5333
5333
  }
5334
5334
  function id(t, e) {
5335
- return t.componentName === e.component ? !0 : X(t, e.match);
5335
+ return t.componentName === e.component ? !0 : Y(t, e.match);
5336
5336
  }
5337
5337
  function od(t, e) {
5338
- return Fe(
5338
+ return je(
5339
5339
  t.root,
5340
5340
  (n) => id(n, e),
5341
5341
  rd
@@ -5425,8 +5425,8 @@ function jp(t, e) {
5425
5425
  continue;
5426
5426
  }
5427
5427
  for (const [p, m] of Object.entries(f.props)) {
5428
- const w = (o = h.props) == null ? void 0 : o[p];
5429
- (!w || !w.some((g) => Object.is(g, m))) && n.push({
5428
+ const S = (o = h.props) == null ? void 0 : o[p];
5429
+ (!S || !S.some((_) => Object.is(_, m))) && n.push({
5430
5430
  severity: "error",
5431
5431
  cardId: s.id,
5432
5432
  message: `option "${f.label}" sets ${p}=${JSON.stringify(m)} outside the adapter's vocabulary`
@@ -5446,16 +5446,16 @@ function jp(t, e) {
5446
5446
  return n;
5447
5447
  }
5448
5448
  function zp(t, e) {
5449
- return Fe(
5449
+ return je(
5450
5450
  t.root,
5451
- (n) => X(n, e.card),
5451
+ (n) => Y(n, e.card),
5452
5452
  Jr
5453
5453
  );
5454
5454
  }
5455
5455
  function Vs(t, e) {
5456
- return Fe(
5456
+ return je(
5457
5457
  t,
5458
- (n) => n !== t && X(n, e.container),
5458
+ (n) => n !== t && Y(n, e.container),
5459
5459
  1
5460
5460
  )[0] ?? null;
5461
5461
  }
@@ -5465,7 +5465,7 @@ function Jt(t, e) {
5465
5465
  var i;
5466
5466
  return Object.is((i = t.componentProps) == null ? void 0 : i[n], r);
5467
5467
  }
5468
- ) : X(t, e.match);
5468
+ ) : Y(t, e.match);
5469
5469
  }
5470
5470
  function Vp(t, e) {
5471
5471
  const n = Vs(t, e);
@@ -5481,16 +5481,16 @@ function Bp(t, e) {
5481
5481
  return nd(t) || `#${e + 1}`;
5482
5482
  }
5483
5483
  function cd(t, e, n) {
5484
- return Fe(
5484
+ return je(
5485
5485
  t.root,
5486
- (i) => i.componentName !== e.component && X(i, e.match),
5486
+ (i) => i.componentName !== e.component && Y(i, e.match),
5487
5487
  Jr
5488
5488
  ).find((i) => !Zr(n, i)) ?? null;
5489
5489
  }
5490
5490
  function ud(t, e, n) {
5491
- return Fe(
5491
+ return je(
5492
5492
  t.root,
5493
- (i) => X(i, e.container),
5493
+ (i) => Y(i, e.container),
5494
5494
  Jr
5495
5495
  ).find((i) => !Zr(n, i)) ?? null;
5496
5496
  }
@@ -5500,22 +5500,22 @@ function Zr(t, e) {
5500
5500
  function ld(t, e) {
5501
5501
  const n = e.placement;
5502
5502
  if (!n) return null;
5503
- const r = Fe(
5503
+ const r = je(
5504
5504
  t,
5505
- (o) => X(o, n.parent),
5505
+ (o) => Y(o, n.parent),
5506
5506
  1
5507
5507
  )[0] ?? null;
5508
5508
  if (!r) return null;
5509
5509
  const i = r.children ?? [];
5510
5510
  if (n.before) {
5511
5511
  const o = i.findIndex(
5512
- (s) => X(s, n.before)
5512
+ (s) => Y(s, n.before)
5513
5513
  );
5514
5514
  if (o >= 0) return { parent: r, index: o };
5515
5515
  }
5516
5516
  if (n.after) {
5517
5517
  const o = i.findIndex(
5518
- (s) => X(s, n.after)
5518
+ (s) => Y(s, n.after)
5519
5519
  );
5520
5520
  if (o >= 0) return { parent: r, index: o + 1 };
5521
5521
  }
@@ -5525,12 +5525,12 @@ function dd(t, e) {
5525
5525
  var o, s;
5526
5526
  const n = t.children ?? [], r = (o = e.anchor) == null ? void 0 : o.before;
5527
5527
  if (r) {
5528
- const a = n.findIndex((c) => X(c, r));
5528
+ const a = n.findIndex((c) => Y(c, r));
5529
5529
  if (a >= 0) return a;
5530
5530
  }
5531
5531
  const i = (s = e.anchor) == null ? void 0 : s.after;
5532
5532
  if (i) {
5533
- const a = n.findIndex((c) => X(c, i));
5533
+ const a = n.findIndex((c) => Y(c, i));
5534
5534
  if (a >= 0) return a + 1;
5535
5535
  }
5536
5536
  return n.length;
@@ -5583,12 +5583,12 @@ function Up(t) {
5583
5583
  return e;
5584
5584
  }
5585
5585
  function md(t, e) {
5586
- return Fe(t.root, (n) => X(n, e.container), 1)[0] ?? null;
5586
+ return je(t.root, (n) => Y(n, e.container), 1)[0] ?? null;
5587
5587
  }
5588
5588
  function gd(t, e) {
5589
- return Fe(
5589
+ return je(
5590
5590
  t,
5591
- (n) => n !== t && X(n, e.item),
5591
+ (n) => n !== t && Y(n, e.item),
5592
5592
  pd
5593
5593
  );
5594
5594
  }
@@ -5597,28 +5597,28 @@ function vd(t, e) {
5597
5597
  return Number.isFinite(e) ? Math.min(r, Math.max(n, Math.round(e))) : n;
5598
5598
  }
5599
5599
  const bd = /^(-?\d+(?:\.\d+)?)px$/;
5600
- function Ze(t) {
5600
+ function Qe(t) {
5601
5601
  if (!t) return null;
5602
5602
  const e = bd.exec(t.trim());
5603
5603
  return e ? Number(e[1]) : null;
5604
5604
  }
5605
5605
  function hn(t) {
5606
- return t ? Ze(t.trim().split(/\s+/)[0]) : null;
5606
+ return t ? Qe(t.trim().split(/\s+/)[0]) : null;
5607
5607
  }
5608
5608
  function Er(t) {
5609
5609
  return `${Number(t.toFixed(4))}px`;
5610
5610
  }
5611
5611
  function Yi(t, e) {
5612
5612
  var i, o, s;
5613
- const n = Ze((i = e.domStyle) == null ? void 0 : i.height) ?? 0, r = hn((o = t.domStyle) == null ? void 0 : o.rowGap) ?? hn((s = t.domStyle) == null ? void 0 : s.gap) ?? 0;
5613
+ const n = Qe((i = e.domStyle) == null ? void 0 : i.height) ?? 0, r = hn((o = t.domStyle) == null ? void 0 : o.rowGap) ?? hn((s = t.domStyle) == null ? void 0 : s.gap) ?? 0;
5614
5614
  return n + r;
5615
5615
  }
5616
5616
  function yd(t, e) {
5617
5617
  const n = { ...t.domStyle };
5618
5618
  let r = !1;
5619
- const i = Ze(n.height);
5619
+ const i = Qe(n.height);
5620
5620
  i != null && (n.height = Er(i + e), r = !0);
5621
- const o = Ze(n.maxHeight);
5621
+ const o = Qe(n.maxHeight);
5622
5622
  o != null && (n.maxHeight = Er(o + e), r = !0), r && (t.domStyle = n);
5623
5623
  }
5624
5624
  function _d(t, e, n) {
@@ -5628,7 +5628,7 @@ function _d(t, e, n) {
5628
5628
  for (const s of t.children.slice(r + 1)) {
5629
5629
  const a = (i = s.domStyle) == null ? void 0 : i.position;
5630
5630
  if (a !== "absolute" && a !== "fixed") continue;
5631
- const c = Ze((o = s.domStyle) == null ? void 0 : o.top);
5631
+ const c = Qe((o = s.domStyle) == null ? void 0 : o.top);
5632
5632
  c != null && (s.domStyle = { ...s.domStyle, top: Er(c + n) });
5633
5633
  }
5634
5634
  }
@@ -5653,14 +5653,14 @@ function Ad(t) {
5653
5653
  for (const u of n) {
5654
5654
  const l = (a = u.domStyle) == null ? void 0 : a.position;
5655
5655
  if (l === "absolute" || l === "fixed") continue;
5656
- const d = Ze((c = u.domStyle) == null ? void 0 : c.height);
5656
+ const d = Qe((c = u.domStyle) == null ? void 0 : c.height);
5657
5657
  d != null && (r += d, i += 1);
5658
5658
  }
5659
5659
  return i > 0 ? r + e * (i - 1) : 0;
5660
5660
  }
5661
5661
  function xd(t) {
5662
5662
  var a, c;
5663
- const e = Ze((a = t.domStyle) == null ? void 0 : a.height);
5663
+ const e = Qe((a = t.domStyle) == null ? void 0 : a.height);
5664
5664
  if (e == null) return;
5665
5665
  const n = { ...t.domAttributes ?? {} }, r = n[Bn], i = Ad(t) > e + 0.5, o = Us(t);
5666
5666
  if (i) {
@@ -5730,7 +5730,7 @@ function Ut(t, e) {
5730
5730
  ...e
5731
5731
  };
5732
5732
  }
5733
- const Ee = (t) => Math.round(parseFloat(t) || 0);
5733
+ const Ae = (t) => Math.round(parseFloat(t) || 0);
5734
5734
  function Dd(t) {
5735
5735
  const e = Number.parseFloat(t);
5736
5736
  return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 1;
@@ -5973,7 +5973,7 @@ function Gn(t, e) {
5973
5973
  return n != null && n !== Wd && t.localName || e.toLowerCase();
5974
5974
  }
5975
5975
  function Gs(t, e, n, r, i, o, s) {
5976
- var Z, nt, gt;
5976
+ var Z, me, gt;
5977
5977
  const a = o.maxNodes ?? Md, c = o.maxDepth ?? Id;
5978
5978
  if (r.maxDepth = Math.max(r.maxDepth, n), r.count >= a)
5979
5979
  return Kn(r, {
@@ -5992,14 +5992,14 @@ function Gs(t, e, n, r, i, o, s) {
5992
5992
  if (f.width < 1 && f.height < 1 && !o.includeZeroSize) return null;
5993
5993
  const h = o.scale ?? 1;
5994
5994
  r.count += 1, d || Xi(r, s, f, h);
5995
- const v = o.instanceMode ?? "collapse", p = v === "ignore" ? null : (Z = o.resolveInstance) == null ? void 0 : Z.call(o, t, o.exclude), m = o.resolveSourceStyle ? null : Pn(t), w = {
5995
+ const g = o.instanceMode ?? "collapse", p = g === "ignore" ? null : (Z = o.resolveInstance) == null ? void 0 : Z.call(o, t, o.exclude), m = o.resolveSourceStyle ? null : Pn(t), S = {
5996
5996
  sourceComponent: (p == null ? void 0 : p.sourceId) ?? "",
5997
5997
  sourceStyle: o.resolveSourceStyle ? o.resolveSourceStyle(t) : m ? `${m.file}#${m.localName}` : "",
5998
5998
  sourceProps: _r(
5999
5999
  t.getAttribute("data-pygmalion-own-props")
6000
6000
  )
6001
- }, g = p != null && v === "expand" && ((nt = o.collapseInstance) == null ? void 0 : nt.call(o, p)) === !0 && !Ud(t, o) && Hd(t, p) && !Kd(t);
6002
- if (p && (v === "collapse" || g))
6001
+ }, _ = p != null && g === "expand" && ((me = o.collapseInstance) == null ? void 0 : me.call(o, p)) === !0 && !Ud(t, o) && Hd(t, p) && !Kd(t);
6002
+ if (p && (g === "collapse" || _))
6003
6003
  return Ut("component", {
6004
6004
  name: p.name,
6005
6005
  componentName: p.name,
@@ -6008,36 +6008,36 @@ function Gs(t, e, n, r, i, o, s) {
6008
6008
  domTag: Gn(t, u),
6009
6009
  domAttributes: Un(t),
6010
6010
  domStyle: Wn(l),
6011
- ...w,
6011
+ ...S,
6012
6012
  ...Ji(f, e, l.display, h)
6013
6013
  });
6014
- const E = Vd(t, u, p == null ? void 0 : p.name);
6014
+ const y = Vd(t, u, p == null ? void 0 : p.name);
6015
6015
  if (Cd.has(u) && (o.mediaMode ?? "placeholder") === "placeholder")
6016
6016
  return Ut("rows", {
6017
- name: E,
6017
+ name: y,
6018
6018
  widthMode: "fixed",
6019
6019
  width: Math.max(4, Math.round(f.width / h)),
6020
6020
  heightMode: "fixed",
6021
6021
  height: Math.max(4, Math.round(f.height / h)),
6022
6022
  fill: "#e6e9ec",
6023
- radius: Ee(l.borderTopLeftRadius),
6023
+ radius: Ae(l.borderTopLeftRadius),
6024
6024
  hidden: d,
6025
6025
  domTag: Gn(t, u),
6026
6026
  domAttributes: Un(t),
6027
6027
  domStyle: Wn(l),
6028
- ...w
6028
+ ...S
6029
6029
  });
6030
- const S = l.display === "flex" || l.display === "inline-flex", I = S && l.flexDirection.startsWith("row") ? "columns" : "rows", P = Ee(I === "columns" ? l.columnGap : l.rowGap), C = Math.round(
6031
- (Ee(l.paddingTop) + Ee(l.paddingRight) + Ee(l.paddingBottom) + Ee(l.paddingLeft)) / 4
6032
- ), F = Ee(l.borderTopWidth), H = Ut(I, {
6033
- name: E,
6030
+ const O = l.display === "flex" || l.display === "inline-flex", M = O && l.flexDirection.startsWith("row") ? "columns" : "rows", P = Ae(M === "columns" ? l.columnGap : l.rowGap), C = Math.round(
6031
+ (Ae(l.paddingTop) + Ae(l.paddingRight) + Ae(l.paddingBottom) + Ae(l.paddingLeft)) / 4
6032
+ ), F = Ae(l.borderTopWidth), J = Ut(M, {
6033
+ name: y,
6034
6034
  ...Ji(f, e, l.display, h),
6035
6035
  gap: Number.isFinite(P) ? P : 0,
6036
6036
  padding: C,
6037
- justify: S ? Rd[l.justifyContent] ?? "start" : "start",
6038
- alignItems: S ? Ld[l.alignItems] ?? "start" : "start",
6037
+ justify: O ? Rd[l.justifyContent] ?? "start" : "start",
6038
+ alignItems: O ? Ld[l.alignItems] ?? "start" : "start",
6039
6039
  fill: Hn(l.backgroundColor),
6040
- radius: Ee(l.borderTopLeftRadius),
6040
+ radius: Ae(l.borderTopLeftRadius),
6041
6041
  borderWidth: F,
6042
6042
  borderColor: F && Hn(l.borderTopColor) || "#d1d5db",
6043
6043
  // A fully transparent element reads as opacity "0", and 0 is falsy — an
@@ -6048,7 +6048,7 @@ function Gs(t, e, n, r, i, o, s) {
6048
6048
  domTag: Gn(t, u),
6049
6049
  domAttributes: Un(t),
6050
6050
  domStyle: Wn(l),
6051
- ...w
6051
+ ...S
6052
6052
  });
6053
6053
  if (n >= c)
6054
6054
  return t.childNodes.length && Kn(r, {
@@ -6058,8 +6058,8 @@ function Gs(t, e, n, r, i, o, s) {
6058
6058
  message: `DOM capture stopped descending at depth ${c}.`,
6059
6059
  limit: c,
6060
6060
  actual: n
6061
- }), H;
6062
- for (const Pe of Array.from(t.childNodes)) {
6061
+ }), J;
6062
+ for (const Ce of Array.from(t.childNodes)) {
6063
6063
  if (r.count >= a) {
6064
6064
  Kn(r, {
6065
6065
  severity: "warning",
@@ -6071,42 +6071,42 @@ function Gs(t, e, n, r, i, o, s) {
6071
6071
  });
6072
6072
  break;
6073
6073
  }
6074
- if (Pe.nodeType === Node.TEXT_NODE) {
6075
- const A = (Pe.textContent ?? "").replace(/\s+/g, " ").trim();
6074
+ if (Ce.nodeType === Node.TEXT_NODE) {
6075
+ const A = (Ce.textContent ?? "").replace(/\s+/g, " ").trim();
6076
6076
  if (!A) continue;
6077
6077
  if (r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1), typeof ((gt = t.ownerDocument) == null ? void 0 : gt.createRange) == "function")
6078
6078
  try {
6079
- const je = t.ownerDocument.createRange();
6080
- je.selectNodeContents(Pe);
6081
- const N = je.getBoundingClientRect();
6079
+ const ze = t.ownerDocument.createRange();
6080
+ ze.selectNodeContents(Ce);
6081
+ const N = ze.getBoundingClientRect();
6082
6082
  (N.width >= 1 || N.height >= 1) && Xi(
6083
6083
  r,
6084
- [...s, H.children.length],
6084
+ [...s, J.children.length],
6085
6085
  N,
6086
6086
  h
6087
6087
  );
6088
6088
  } catch {
6089
6089
  }
6090
- H.children.push(
6090
+ J.children.push(
6091
6091
  Ut("text", {
6092
6092
  name: "text",
6093
6093
  text: A,
6094
- fontSize: Ee(l.fontSize) || 14,
6094
+ fontSize: Ae(l.fontSize) || 14,
6095
6095
  fontWeight: Number(l.fontWeight) || 400,
6096
6096
  color: Hn(l.color) || "#191f28",
6097
6097
  textAlign: ["center", "right"].includes(l.textAlign) ? l.textAlign : "left",
6098
6098
  domTag: "#text"
6099
6099
  })
6100
6100
  );
6101
- } else if (Pe.nodeType === Node.ELEMENT_NODE) {
6102
- const A = Gs(Pe, f, n + 1, r, i, o, [
6101
+ } else if (Ce.nodeType === Node.ELEMENT_NODE) {
6102
+ const A = Gs(Ce, f, n + 1, r, i, o, [
6103
6103
  ...s,
6104
- H.children.length
6104
+ J.children.length
6105
6105
  ]);
6106
- A && H.children.push(A);
6106
+ A && J.children.push(A);
6107
6107
  }
6108
6108
  }
6109
- return H;
6109
+ return J;
6110
6110
  }
6111
6111
  function Qr(t, e, n = {}) {
6112
6112
  const r = {
@@ -6300,23 +6300,31 @@ async function tf(t, {
6300
6300
  // that beat to show a quiet stretch, so the ceiling is 4s rather than 2s.
6301
6301
  timeoutMs: o = 4e3
6302
6302
  } = {}) {
6303
- var f, h, v;
6303
+ var f;
6304
6304
  const s = t.defaultView;
6305
6305
  if (!s) return !1;
6306
- const a = (p) => new Promise((m) => {
6307
- s.setTimeout(m, p);
6306
+ const a = Date.now(), c = (h) => new Promise((g) => {
6307
+ s.setTimeout(g, h);
6308
+ }), u = (f = t.fonts) == null ? void 0 : f.ready;
6309
+ u && o > 0 && await new Promise((h) => {
6310
+ let g = !1;
6311
+ const p = () => {
6312
+ g || (g = !0, s.clearTimeout(m), h());
6313
+ }, m = s.setTimeout(p, o);
6314
+ Promise.resolve(u).then(p, p);
6308
6315
  });
6309
- await ((v = (h = (f = t.fonts) == null ? void 0 : f.ready) == null ? void 0 : h.catch) == null ? void 0 : v.call(h, () => {
6310
- }));
6311
- let c = "", u = 0, l = 0;
6312
- const d = Math.max(1, Math.ceil(o / r));
6313
- for (let p = 0; p < d; p += 1) {
6314
- const m = Qd(t, e);
6315
- if (m === c ? u += 1 : u = 0, c = m, u >= n && l >= i)
6316
+ let l = "", d = 0;
6317
+ for (; ; ) {
6318
+ const h = Qd(t, e);
6319
+ h === l ? d += 1 : d = 0, l = h;
6320
+ const g = Date.now() - a;
6321
+ if (d >= n && g >= i)
6316
6322
  return !0;
6317
- await a(r), l += r;
6323
+ const p = o - g;
6324
+ if (p <= 0) break;
6325
+ await c(Math.min(r, p));
6318
6326
  }
6319
- return u >= n && l >= i;
6327
+ return !1;
6320
6328
  }
6321
6329
  const j = {
6322
6330
  hover: "data-pygmalion-held-hover",
@@ -6630,7 +6638,7 @@ function df(t, e, n) {
6630
6638
  const u = i;
6631
6639
  return typeof u.scrollTo == "function" ? u.scrollTo(a, c) : (u.scrollLeft = a, u.scrollTop = c), !0;
6632
6640
  }
6633
- async function He(t, e) {
6641
+ async function Ke(t, e) {
6634
6642
  await new Promise((n) => {
6635
6643
  let r = null;
6636
6644
  try {
@@ -6706,7 +6714,7 @@ async function Xn(t, e, n) {
6706
6714
  return a;
6707
6715
  const c = i - (Date.now() - r);
6708
6716
  if (c <= 0) break;
6709
- await He(t, Math.min(100, c));
6717
+ await Ke(t, Math.min(100, c));
6710
6718
  } while (!0);
6711
6719
  return null;
6712
6720
  }
@@ -6734,7 +6742,7 @@ async function xr(t, e) {
6734
6742
  error: `"${i.label}"I waited for the screen status of the step, but it did not appear.`
6735
6743
  };
6736
6744
  }
6737
- await He(t, i.settleMs ?? Number(i.value ?? 500)), n += 1;
6745
+ await Ke(t, i.settleMs ?? Number(i.value ?? 500)), n += 1;
6738
6746
  continue;
6739
6747
  }
6740
6748
  if (i.action === "storage") {
@@ -6752,7 +6760,7 @@ async function xr(t, e) {
6752
6760
  error: `"${i.label}"Failed to access the app store in step.`
6753
6761
  };
6754
6762
  }
6755
- n += 1, await He(t, i.settleMs ?? 50);
6763
+ n += 1, await Ke(t, i.settleMs ?? 50);
6756
6764
  continue;
6757
6765
  }
6758
6766
  if (i.action === "scroll") {
@@ -6773,7 +6781,7 @@ async function xr(t, e) {
6773
6781
  error: `"${i.label}" scroll target was not found.`
6774
6782
  };
6775
6783
  }
6776
- n += 1, await He(t, i.settleMs ?? 100);
6784
+ n += 1, await Ke(t, i.settleMs ?? 100);
6777
6785
  continue;
6778
6786
  }
6779
6787
  const o = await Xn(t, i, "actionable");
@@ -6830,7 +6838,7 @@ async function xr(t, e) {
6830
6838
  const a = i.key ?? i.value ?? "Enter";
6831
6839
  o.dispatchEvent(new s.KeyboardEvent("keydown", { key: a, bubbles: !0 })), o.dispatchEvent(new s.KeyboardEvent("keyup", { key: a, bubbles: !0 }));
6832
6840
  }
6833
- n += 1, await He(t, i.settleMs ?? 600);
6841
+ n += 1, await Ke(t, i.settleMs ?? 600);
6834
6842
  }
6835
6843
  return { complete: !0, completed: n, total: e.length };
6836
6844
  }
@@ -6838,7 +6846,7 @@ const qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6838
6846
  __proto__: null,
6839
6847
  elementVisible: Mt,
6840
6848
  runScreenInteractions: xr,
6841
- settleScreen: He
6849
+ settleScreen: Ke
6842
6850
  }, Symbol.toStringTag, { value: "Module" })), ot = ["icons", "design-tokens", "atoms", "components", "screens"];
6843
6851
  function hf(t) {
6844
6852
  if (!(!t || t.complete))
@@ -6871,7 +6879,7 @@ const ta = {
6871
6879
  maxDepth: 64,
6872
6880
  maxNodes: 1e4
6873
6881
  };
6874
- function Re(t) {
6882
+ function Le(t) {
6875
6883
  const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
6876
6884
  for (const r of t)
6877
6885
  e.has(r) && n.add(r), e.add(r);
@@ -6879,7 +6887,7 @@ function Re(t) {
6879
6887
  }
6880
6888
  function na(t) {
6881
6889
  const e = t.map((r) => r.id.trim()), n = [
6882
- ...Re(e).map((r) => `Duplicate viewport ID: ${r}`)
6890
+ ...Le(e).map((r) => `Duplicate viewport ID: ${r}`)
6883
6891
  ];
6884
6892
  for (const r of t)
6885
6893
  r.id.trim() || n.push("Viewport ID must not be empty."), r.label.trim() || n.push(`Viewport "${r.id}" label must not be empty.`), (!Number.isFinite(r.width) || r.width <= 0) && n.push(`Viewport "${r.id}" width must be a positive finite number.`), (!Number.isFinite(r.height) || r.height <= 0) && n.push(`Viewport "${r.id}" height must be a positive finite number.`);
@@ -6909,7 +6917,7 @@ function mf(t, e, n = {}) {
6909
6917
  maxHeight: o.maxHeight ?? (a == null ? void 0 : a.maxHeight) ?? s.maxHeight
6910
6918
  };
6911
6919
  })
6912
- ), i = Re(r.map((o) => o.id));
6920
+ ), i = Le(r.map((o) => o.id));
6913
6921
  if (i.length)
6914
6922
  throw new Error(
6915
6923
  [
@@ -6921,7 +6929,7 @@ function mf(t, e, n = {}) {
6921
6929
  return r;
6922
6930
  }
6923
6931
  function gf(t, e, n = {}) {
6924
- var l, d, f, h, v;
6932
+ var l, d, f, h, g;
6925
6933
  if (na(e), e.length === 0)
6926
6934
  return {
6927
6935
  ...t,
@@ -6937,28 +6945,28 @@ function gf(t, e, n = {}) {
6937
6945
  for (const p of e)
6938
6946
  for (const m of t.pages) {
6939
6947
  if (((l = n.include) == null ? void 0 : l.call(n, m, p)) === !1) continue;
6940
- const w = (d = n.transformPage) == null ? void 0 : d.call(n, m, p), g = ((f = n.createPageId) == null ? void 0 : f.call(n, m, p)) ?? `${m.id}:viewport:${p.id}`, E = ((h = n.createPageName) == null ? void 0 : h.call(n, m, p)) ?? `${m.name} · ${p.label}`, S = ((v = n.createSection) == null ? void 0 : v.call(n, m, p)) ?? `${m.section} · ${p.label}`;
6948
+ const S = (d = n.transformPage) == null ? void 0 : d.call(n, m, p), _ = ((f = n.createPageId) == null ? void 0 : f.call(n, m, p)) ?? `${m.id}:viewport:${p.id}`, y = ((h = n.createPageName) == null ? void 0 : h.call(n, m, p)) ?? `${m.name} · ${p.label}`, O = ((g = n.createSection) == null ? void 0 : g.call(n, m, p)) ?? `${m.section} · ${p.label}`;
6941
6949
  i.push({
6942
6950
  ...m,
6943
- ...w,
6944
- id: g,
6945
- name: E,
6946
- section: S,
6951
+ ...S,
6952
+ id: _,
6953
+ name: y,
6954
+ section: O,
6947
6955
  width: Math.round(p.width),
6948
6956
  height: Math.round(p.height),
6949
- heightMode: p.heightMode ?? (w == null ? void 0 : w.heightMode) ?? m.heightMode,
6950
- maxHeight: p.maxHeight ?? (w == null ? void 0 : w.maxHeight) ?? m.maxHeight
6957
+ heightMode: p.heightMode ?? (S == null ? void 0 : S.heightMode) ?? m.heightMode,
6958
+ maxHeight: p.maxHeight ?? (S == null ? void 0 : S.maxHeight) ?? m.maxHeight
6951
6959
  });
6952
- for (const I of r.get(m.id) ?? [])
6960
+ for (const M of r.get(m.id) ?? [])
6953
6961
  o.push({
6954
- ...I,
6955
- id: `${I.id}:viewport:${p.id}`,
6956
- name: `${I.name} · ${p.label}`,
6957
- section: S,
6958
- pageId: g
6962
+ ...M,
6963
+ id: `${M.id}:viewport:${p.id}`,
6964
+ name: `${M.name} · ${p.label}`,
6965
+ section: O,
6966
+ pageId: _
6959
6967
  });
6960
6968
  }
6961
- const s = i.map((p) => p.id), a = o.map((p) => p.id), c = Re(s), u = Re(a);
6969
+ const s = i.map((p) => p.id), a = o.map((p) => p.id), c = Le(s), u = Le(a);
6962
6970
  if (c.length || u.length)
6963
6971
  throw new Error(
6964
6972
  [
@@ -6981,80 +6989,80 @@ function vf({
6981
6989
  captureDefaults: r,
6982
6990
  captureRequirements: i
6983
6991
  }) {
6984
- var w;
6985
- const o = t.map((g) => {
6986
- var E, S;
6992
+ var S;
6993
+ const o = t.map((_) => {
6994
+ var y, O;
6987
6995
  return {
6988
- ...g,
6989
- preset: r != null && r.preset || g.preset ? ia(r == null ? void 0 : r.preset, g.preset) : void 0,
6990
- assertions: (E = r == null ? void 0 : r.assertions) != null && E.length || (S = g.assertions) != null && S.length ? [
6996
+ ..._,
6997
+ preset: r != null && r.preset || _.preset ? ia(r == null ? void 0 : r.preset, _.preset) : void 0,
6998
+ assertions: (y = r == null ? void 0 : r.assertions) != null && y.length || (O = _.assertions) != null && O.length ? [
6991
6999
  ...((r == null ? void 0 : r.assertions) ?? []).map(co),
6992
- ...(g.assertions ?? []).map(co)
7000
+ ...(_.assertions ?? []).map(co)
6993
7001
  ] : void 0
6994
7002
  };
6995
- }), s = e.map((g) => g.id), a = new Set(s), c = o.map((g) => g.id), u = [
6996
- ...Re(s).map((g) => `Duplicate scenario ID:${g}`),
6997
- ...Re(c).map((g) => `Duplicate screen case IDs:${g}`)
7003
+ }), s = e.map((_) => _.id), a = new Set(s), c = o.map((_) => _.id), u = [
7004
+ ...Le(s).map((_) => `Duplicate scenario ID:${_}`),
7005
+ ...Le(c).map((_) => `Duplicate screen case IDs:${_}`)
6998
7006
  ], l = /* @__PURE__ */ new Map();
6999
- for (const g of o) {
7000
- i != null && i.preset && !g.preset && u.push(`screen "${g.id}"There are no required presets.`), i != null && i.assertions && !((w = g.assertions) != null && w.length) && u.push(`screen "${g.id}" is missing a required assertion.`);
7001
- for (const E of g.scenarioIds ?? []) {
7002
- if (!a.has(E)) {
7003
- u.push(`screen "${g.id}"Scenario without${E}see`);
7007
+ for (const _ of o) {
7008
+ i != null && i.preset && !_.preset && u.push(`screen "${_.id}"There are no required presets.`), i != null && i.assertions && !((S = _.assertions) != null && S.length) && u.push(`screen "${_.id}" is missing a required assertion.`);
7009
+ for (const y of _.scenarioIds ?? []) {
7010
+ if (!a.has(y)) {
7011
+ u.push(`screen "${_.id}"Scenario without${y}see`);
7004
7012
  continue;
7005
7013
  }
7006
- const S = l.get(E);
7007
- if (S) {
7008
- u.push(`scenario${E}Go to screen "${S}", "${g.id}"Duplicate classification in`);
7014
+ const O = l.get(y);
7015
+ if (O) {
7016
+ u.push(`scenario${y}Go to screen "${O}", "${_.id}"Duplicate classification in`);
7009
7017
  continue;
7010
7018
  }
7011
- l.set(E, g.id);
7019
+ l.set(y, _.id);
7012
7020
  }
7013
7021
  }
7014
7022
  const d = /* @__PURE__ */ new Set();
7015
- for (const g of n) {
7016
- if (!a.has(g.id)) {
7017
- u.push(`Scenario without non-visual classification${g.id}see`);
7023
+ for (const _ of n) {
7024
+ if (!a.has(_.id)) {
7025
+ u.push(`Scenario without non-visual classification${_.id}see`);
7018
7026
  continue;
7019
7027
  }
7020
- if (l.has(g.id)) {
7021
- u.push(`scenario${g.id}Overlapping classification of visual and non-visual actions`);
7028
+ if (l.has(_.id)) {
7029
+ u.push(`scenario${_.id}Overlapping classification of visual and non-visual actions`);
7022
7030
  continue;
7023
7031
  }
7024
- if (d.has(g.id)) {
7025
- u.push(`scenario${g.id}Non-visual classification overlap of`);
7032
+ if (d.has(_.id)) {
7033
+ u.push(`scenario${_.id}Non-visual classification overlap of`);
7026
7034
  continue;
7027
7035
  }
7028
- d.add(g.id);
7036
+ d.add(_.id);
7029
7037
  }
7030
- const f = s.filter((g) => !l.has(g) && !d.has(g));
7038
+ const f = s.filter((_) => !l.has(_) && !d.has(_));
7031
7039
  if (f.length && u.push(`Unclassified Scenario:${f.join(", ")}`), u.length)
7032
7040
  throw new Error(`[Pygmalion] Screens scenario classification error${u.join(`
7033
7041
  `)}`);
7034
- const h = new Map(e.map((g) => [g.id, g])), v = o.map((g) => ({
7035
- id: `state:${g.id}`,
7036
- name: g.name,
7037
- section: g.section,
7038
- pageId: g.id,
7039
- sourcePath: g.sourcePath,
7040
- codeName: g.codeName ?? g.state,
7041
- flow: g.flow,
7042
- scenarioId: g.scenarioId,
7043
- description: [g.scenario, g.state].filter(Boolean).join(" · ")
7044
- })), p = [...l.entries()].map(([g, E]) => {
7045
- const S = h.get(g);
7042
+ const h = new Map(e.map((_) => [_.id, _])), g = o.map((_) => ({
7043
+ id: `state:${_.id}`,
7044
+ name: _.name,
7045
+ section: _.section,
7046
+ pageId: _.id,
7047
+ sourcePath: _.sourcePath,
7048
+ codeName: _.codeName ?? _.state,
7049
+ flow: _.flow,
7050
+ scenarioId: _.scenarioId,
7051
+ description: [_.scenario, _.state].filter(Boolean).join(" · ")
7052
+ })), p = [...l.entries()].map(([_, y]) => {
7053
+ const O = h.get(_);
7046
7054
  return {
7047
- id: `scenario:${g}`,
7048
- name: S.name ?? g,
7049
- section: S.section,
7050
- pageId: E,
7051
- sourcePath: S.sourcePath,
7052
- codeName: S.codeName,
7053
- flow: S.flow,
7054
- scenarioId: g,
7055
- description: S.description
7055
+ id: `scenario:${_}`,
7056
+ name: O.name ?? _,
7057
+ section: O.section,
7058
+ pageId: y,
7059
+ sourcePath: O.sourcePath,
7060
+ codeName: O.codeName,
7061
+ flow: O.flow,
7062
+ scenarioId: _,
7063
+ description: O.description
7056
7064
  };
7057
- }), m = [...v, ...p];
7065
+ }), m = [...g, ...p];
7058
7066
  return {
7059
7067
  collection: {
7060
7068
  expectedCount: m.length,
@@ -7064,11 +7072,11 @@ function vf({
7064
7072
  // and no canonical id look uncovered.
7065
7073
  pages: o.map(
7066
7074
  ({
7067
- sourcePath: g,
7068
- codeName: E,
7069
- coverageRoutes: S,
7070
- ...I
7071
- }) => I
7075
+ sourcePath: _,
7076
+ codeName: y,
7077
+ coverageRoutes: O,
7078
+ ...M
7079
+ }) => M
7072
7080
  )
7073
7081
  },
7074
7082
  coverage: {
@@ -7218,7 +7226,7 @@ async function wf(t, e) {
7218
7226
  actual: !1,
7219
7227
  message: `"${o.label}"The screen document could not be accessed.`
7220
7228
  }, !c || c.code === "invalid_selector" || Date.now() - s >= a) break;
7221
- await He(t, 100);
7229
+ await Ke(t, 100);
7222
7230
  } while (!0);
7223
7231
  c ? o.optional || n.push(c) : r += 1;
7224
7232
  }
@@ -7232,233 +7240,244 @@ async function wf(t, e) {
7232
7240
  function Of(t, e = {}) {
7233
7241
  const n = t.registry, r = [...t.tokens], i = ps(n), s = {
7234
7242
  ...pf,
7235
- collapseInstance: (u) => {
7236
- const l = n[u.name];
7237
- return l != null && l.collapsible === !0 && Object.keys(l.props ?? {}).length > 0 && l.children !== "nodes";
7243
+ collapseInstance: (l) => {
7244
+ const d = n[l.name];
7245
+ return d != null && d.collapsible === !0 && Object.keys(d.props ?? {}).length > 0 && d.children !== "nodes";
7238
7246
  },
7239
7247
  ...e.layerOptions
7240
7248
  }, a = () => {
7241
- const u = ot.map((d) => {
7242
- const f = t.collections[d];
7249
+ const l = ot.map((f) => {
7250
+ const h = t.collections[f];
7243
7251
  return [
7244
- d,
7252
+ f,
7245
7253
  {
7246
- expected: f.expectedCount,
7247
- imported: f.assets.length,
7248
- pages: f.pages.length,
7249
- missing: Math.max(0, f.expectedCount - f.assets.length)
7254
+ expected: h.expectedCount,
7255
+ imported: h.assets.length,
7256
+ pages: h.pages.length,
7257
+ missing: Math.max(0, h.expectedCount - h.assets.length)
7250
7258
  }
7251
7259
  ];
7252
- }), l = Object.fromEntries(u);
7260
+ }), d = Object.fromEntries(l);
7253
7261
  return {
7254
- ...l,
7262
+ ...d,
7255
7263
  sourceSha: t.sourceSha,
7256
7264
  complete: ot.every(
7257
- (d) => l[d].expected === l[d].imported && l[d].missing === 0
7265
+ (f) => d[f].expected === d[f].imported && d[f].missing === 0
7258
7266
  )
7259
7267
  };
7260
7268
  }, c = () => {
7261
- var f, h, v;
7262
- const u = [], l = [], d = [];
7263
- for (const p of ot) {
7264
- const m = t.collections[p], w = new Set(m.pages.map((g) => g.id));
7265
- l.push(...m.assets.map((g) => `${p}:${g.id}`)), d.push(...m.pages.map((g) => `${p}:${g.id}`)), m.assets.length !== m.expectedCount && u.push(`${p}: expected ${m.expectedCount}, imported ${m.assets.length}`);
7266
- for (const g of m.assets)
7267
- w.has(g.pageId) || u.push(`${p}:${g.id}: unknown pageId ${g.pageId}`);
7268
- for (const g of m.pages) {
7269
- p === "screens" && ((f = g.interactions) != null && f.length || (h = g.assertions) != null && h.length || g.preset) && !g.route && u.push(`${p}:${g.id}: capture contract requires a route preview`), g.preset && !mn(g.preset) && u.push(`${p}:${g.id}: preset must contain only finite JSON-serializable data`), g.environment && !mn(g.environment) && u.push(`${p}:${g.id}: environment must contain only finite JSON-serializable data`);
7270
- for (const E of g.assertions ?? [])
7271
- E.selector.trim() || u.push(`${p}:${g.id}: assertion selector is required`), E.label.trim() || u.push(`${p}:${g.id}: assertion label is required`), E.attribute && !E.attribute.name.trim() && u.push(`${p}:${g.id}: assertion attribute name is required`);
7272
- !g.route && !g.componentName && !((v = g.gallery) != null && v.length) && u.push(`${p}:${g.id}: componentName, gallery, or route is required`), g.frameSizeMode != null && g.frameSizeMode !== "fixed" && g.frameSizeMode !== "content" && u.push(`${p}:${g.id}: frameSizeMode must be fixed or content`), g.heightMode != null && g.heightMode !== "fixed" && g.heightMode !== "document" && u.push(`${p}:${g.id}: heightMode must be fixed or document`), g.maxHeight != null && (!Number.isFinite(g.maxHeight) || g.maxHeight <= 0) && u.push(`${p}:${g.id}: maxHeight must be a positive finite number`), g.componentName && !n[g.componentName] && u.push(`${p}:${g.id}: missing registry component ${g.componentName}`);
7273
- for (const E of g.gallery ?? [])
7274
- n[E] || u.push(`${p}:${g.id}: missing gallery component ${E}`);
7269
+ var h, g, p;
7270
+ const l = [], d = [], f = [];
7271
+ for (const m of ot) {
7272
+ const S = t.collections[m], _ = new Set(S.pages.map((y) => y.id));
7273
+ d.push(...S.assets.map((y) => `${m}:${y.id}`)), f.push(...S.pages.map((y) => `${m}:${y.id}`)), S.assets.length !== S.expectedCount && l.push(`${m}: expected ${S.expectedCount}, imported ${S.assets.length}`);
7274
+ for (const y of S.assets)
7275
+ _.has(y.pageId) || l.push(`${m}:${y.id}: unknown pageId ${y.pageId}`);
7276
+ for (const y of S.pages) {
7277
+ m === "screens" && ((h = y.interactions) != null && h.length || (g = y.assertions) != null && g.length || y.preset) && !y.route && l.push(`${m}:${y.id}: capture contract requires a route preview`), y.preset && !mn(y.preset) && l.push(`${m}:${y.id}: preset must contain only finite JSON-serializable data`), y.environment && !mn(y.environment) && l.push(`${m}:${y.id}: environment must contain only finite JSON-serializable data`);
7278
+ for (const O of y.assertions ?? [])
7279
+ O.selector.trim() || l.push(`${m}:${y.id}: assertion selector is required`), O.label.trim() || l.push(`${m}:${y.id}: assertion label is required`), O.attribute && !O.attribute.name.trim() && l.push(`${m}:${y.id}: assertion attribute name is required`);
7280
+ !y.route && !y.componentName && !((p = y.gallery) != null && p.length) && l.push(`${m}:${y.id}: componentName, gallery, or route is required`), y.frameSizeMode != null && y.frameSizeMode !== "fixed" && y.frameSizeMode !== "content" && l.push(`${m}:${y.id}: frameSizeMode must be fixed or content`), y.heightMode != null && y.heightMode !== "fixed" && y.heightMode !== "document" && l.push(`${m}:${y.id}: heightMode must be fixed or document`), y.maxHeight != null && (!Number.isFinite(y.maxHeight) || y.maxHeight <= 0) && l.push(`${m}:${y.id}: maxHeight must be a positive finite number`), y.componentName && !n[y.componentName] && l.push(`${m}:${y.id}: missing registry component ${y.componentName}`);
7281
+ for (const O of y.gallery ?? [])
7282
+ n[O] || l.push(`${m}:${y.id}: missing gallery component ${O}`);
7275
7283
  }
7276
7284
  }
7277
- for (const p of Re(l)) u.push(`duplicate asset id ${p}`);
7278
- for (const p of Re(d)) u.push(`duplicate page id ${p}`);
7279
- if (u.length) throw new Error(`Pygmalion design import is incomplete:
7280
- ${u.join(`
7285
+ for (const m of Le(d)) l.push(`duplicate asset id ${m}`);
7286
+ for (const m of Le(f)) l.push(`duplicate page id ${m}`);
7287
+ if (l.length) throw new Error(`Pygmalion design import is incomplete:
7288
+ ${l.join(`
7281
7289
  `)}`);
7282
7290
  };
7283
- return c(), {
7291
+ c();
7292
+ const u = async (l, d) => {
7293
+ var S, _;
7294
+ const f = [];
7295
+ let h = !d.preset;
7296
+ if (d.preset)
7297
+ if (!e.executeScreenPreset)
7298
+ f.push({
7299
+ stage: "preset",
7300
+ code: "preset_executor_missing",
7301
+ label: "screen preset",
7302
+ message: "There is a screen preset, but the host executor is not set."
7303
+ });
7304
+ else
7305
+ try {
7306
+ const y = await e.executeScreenPreset(
7307
+ { pageId: d.pageId, route: d.route, preset: Pt(d.preset) },
7308
+ { iframe: l }
7309
+ );
7310
+ y && !y.complete ? f.push({
7311
+ stage: "preset",
7312
+ code: "preset_rejected",
7313
+ label: "screen preset",
7314
+ message: y.message ?? "The host refused to apply the screen preset.",
7315
+ actual: y.details
7316
+ }) : h = !0;
7317
+ } catch (y) {
7318
+ f.push({
7319
+ stage: "preset",
7320
+ code: "preset_error",
7321
+ label: "screen preset",
7322
+ message: `An error occurred while applying the screen preset:${String(y).slice(0, 160)}`
7323
+ });
7324
+ }
7325
+ let g = bf(((S = d.interactions) == null ? void 0 : S.length) ?? 0), p = yf(((_ = d.assertions) == null ? void 0 : _.length) ?? 0);
7326
+ f.length === 0 && (g = await xr(l, d.interactions ?? []), g.complete || f.push({
7327
+ stage: "interaction",
7328
+ code: "interaction_failed",
7329
+ label: g.failedLabel,
7330
+ message: g.error ?? "Couldn't reproduce the user flow."
7331
+ })), f.length === 0 && (p = await wf(l, d.assertions ?? []), f.push(...p.failures));
7332
+ const m = f[0];
7333
+ return {
7334
+ complete: f.length === 0,
7335
+ presetApplied: h,
7336
+ interactions: g,
7337
+ assertions: p,
7338
+ failures: f,
7339
+ failedLabel: m == null ? void 0 : m.label,
7340
+ error: m == null ? void 0 : m.message
7341
+ };
7342
+ };
7343
+ return {
7284
7344
  sourceSha: t.sourceSha,
7285
7345
  getRegistry: () => n,
7286
7346
  getTokens: () => [...r],
7287
- getAssets: (u) => (u ? t.collections[u].assets : ot.flatMap((l) => t.collections[l].assets)).map((l) => ({ ...l })),
7347
+ getAssets: (l) => (l ? t.collections[l].assets : ot.flatMap((d) => t.collections[d].assets)).map((d) => ({ ...d })),
7288
7348
  getInitialPages: () => ot.flatMap(
7289
- (u) => t.collections[u].pages.map((l) => {
7290
- const d = t.collections[u].assets.filter((h) => h.pageId === l.id), f = u === "screens" ? ea(
7291
- l,
7349
+ (l) => t.collections[l].pages.map((d) => {
7350
+ const f = t.collections[l].assets.filter((g) => g.pageId === d.id), h = l === "screens" ? ea(
7351
+ d,
7292
7352
  e.screensCanvasPartition,
7293
7353
  e.screenLanes
7294
- ) : ta[u];
7354
+ ) : ta[l];
7295
7355
  return {
7296
- name: l.name,
7297
- canvas: f,
7298
- section: l.section,
7299
- componentName: l.componentName,
7300
- gallery: l.gallery ? [...l.gallery] : void 0,
7301
- route: l.route,
7302
- path: l.path,
7303
- publish: l.publish,
7304
- width: l.width,
7305
- height: l.height,
7306
- frameSizeMode: l.frameSizeMode,
7307
- heightMode: l.heightMode,
7308
- maxHeight: l.maxHeight,
7356
+ name: d.name,
7357
+ canvas: h,
7358
+ section: d.section,
7359
+ componentName: d.componentName,
7360
+ gallery: d.gallery ? [...d.gallery] : void 0,
7361
+ route: d.route,
7362
+ path: d.path,
7363
+ publish: d.publish,
7364
+ width: d.width,
7365
+ height: d.height,
7366
+ frameSizeMode: d.frameSizeMode,
7367
+ heightMode: d.heightMode,
7368
+ maxHeight: d.maxHeight,
7309
7369
  importLayers: !0,
7310
- importPageId: l.id,
7311
- importKind: u,
7312
- assetIds: d.map((h) => h.id),
7313
- sourcePaths: [...new Set(d.map((h) => h.sourcePath).filter((h) => !!h))],
7314
- flow: l.flow,
7315
- scenario: l.scenario,
7316
- state: l.state,
7317
- stateKind: l.stateKind,
7318
- lane: l.lane,
7319
- runtimes: l.runtimes ? [...l.runtimes] : void 0,
7320
- scenarioId: l.scenarioId,
7370
+ importPageId: d.id,
7371
+ importKind: l,
7372
+ assetIds: f.map((g) => g.id),
7373
+ sourcePaths: [...new Set(f.map((g) => g.sourcePath).filter((g) => !!g))],
7374
+ flow: d.flow,
7375
+ scenario: d.scenario,
7376
+ state: d.state,
7377
+ stateKind: d.stateKind,
7378
+ lane: d.lane,
7379
+ runtimes: d.runtimes ? [...d.runtimes] : void 0,
7380
+ scenarioId: d.scenarioId,
7321
7381
  // The declared set, not only the canonical id: a screen that names
7322
7382
  // several scenarios and elects none of them is still covered, and
7323
7383
  // this enumeration is the one place that decides what a page knows.
7324
- scenarioIds: l.scenarioIds ? [...l.scenarioIds] : void 0,
7325
- interactions: l.interactions ? l.interactions.map((h) => ({ ...h })) : void 0,
7326
- environment: l.environment ? JSON.parse(JSON.stringify(l.environment)) : void 0,
7327
- preset: l.preset ? Pt(l.preset) : void 0,
7384
+ scenarioIds: d.scenarioIds ? [...d.scenarioIds] : void 0,
7385
+ interactions: d.interactions ? d.interactions.map((g) => ({ ...g })) : void 0,
7386
+ environment: d.environment ? JSON.parse(JSON.stringify(d.environment)) : void 0,
7387
+ preset: d.preset ? Pt(d.preset) : void 0,
7328
7388
  // A declared screen names the warm instance group it can share.
7329
- session: typeof l.session == "string" ? l.session : void 0,
7330
- assertions: l.assertions ? l.assertions.map((h) => ({
7331
- ...h,
7332
- attribute: h.attribute ? { ...h.attribute } : void 0
7389
+ session: typeof d.session == "string" ? d.session : void 0,
7390
+ assertions: d.assertions ? d.assertions.map((g) => ({
7391
+ ...g,
7392
+ attribute: g.attribute ? { ...g.attribute } : void 0
7333
7393
  })) : void 0
7334
7394
  };
7335
7395
  })
7336
7396
  ),
7337
7397
  getCoverage: a,
7338
7398
  assertComplete: c,
7339
- captureElement: (u, l = u.ownerDocument.defaultView ?? window, d = {}) => Qr(u, l, {
7399
+ captureElement: (l, d = l.ownerDocument.defaultView ?? window, f = {}) => Qr(l, d, {
7340
7400
  ...s,
7341
7401
  resolveInstance: i,
7342
- ...d
7402
+ ...f
7343
7403
  }),
7344
- captureIframe: (u, l = {}) => Zi(u, {
7404
+ captureIframe: (l, d = {}) => Zi(l, {
7345
7405
  ...s,
7346
7406
  resolveInstance: i,
7347
- ...l
7407
+ ...d
7348
7408
  }),
7349
- captureIframeWhenStable: async (u, l = {}) => {
7350
- var P;
7409
+ captureIframeWhenStable: async (l, d = {}) => {
7410
+ var C;
7351
7411
  const {
7352
- settleMs: d = 1e3,
7353
- timeoutMs: f = 8e3,
7354
- minElementCount: h = 3,
7355
- ...v
7356
- } = l;
7357
- let p = null, m = null;
7412
+ settleMs: f = 1e3,
7413
+ timeoutMs: h = 8e3,
7414
+ minElementCount: g = 3,
7415
+ ...p
7416
+ } = d;
7417
+ let m = null, S = null;
7358
7418
  try {
7359
- p = u.contentDocument, m = u.contentWindow;
7419
+ m = l.contentDocument, S = l.contentWindow;
7360
7420
  } catch {
7361
7421
  return null;
7362
7422
  }
7363
- if (!(p != null && p.body) || !m) return null;
7364
- const w = Date.now();
7365
- let g = Date.now(), E = p.body.querySelectorAll("*").length;
7366
- const S = m.MutationObserver, I = new S(() => {
7367
- g = Date.now(), E = p.body.querySelectorAll("*").length;
7423
+ if (!(m != null && m.body) || !S) return null;
7424
+ const _ = Date.now();
7425
+ let y = Date.now(), O = m.body.querySelectorAll("*").length;
7426
+ const M = S.MutationObserver, P = new M(() => {
7427
+ y = Date.now(), O = m.body.querySelectorAll("*").length;
7368
7428
  });
7369
- I.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
7429
+ P.observe(m.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
7370
7430
  try {
7371
- await new Promise((C) => {
7372
- const F = () => {
7373
- const H = Date.now(), Z = p.body.querySelectorAll("*").length;
7374
- if (Z !== E && (E = Z, g = H), Z >= h && H - g >= d || H - w >= f) {
7375
- C();
7431
+ await new Promise((F) => {
7432
+ const J = () => {
7433
+ const Z = Date.now(), me = m.body.querySelectorAll("*").length;
7434
+ if (me !== O && (O = me, y = Z), me >= g && Z - y >= f || Z - _ >= h) {
7435
+ F();
7376
7436
  return;
7377
7437
  }
7378
- m.setTimeout(F, 100);
7438
+ S.setTimeout(J, 100);
7379
7439
  };
7380
- m.setTimeout(F, 100);
7440
+ S.setTimeout(J, 100);
7381
7441
  });
7382
7442
  } finally {
7383
- I.disconnect();
7443
+ P.disconnect();
7384
7444
  }
7385
7445
  try {
7386
- await ((P = p.fonts) == null ? void 0 : P.ready), await new Promise((C) => {
7387
- m.requestAnimationFrame(() => C());
7446
+ await ((C = m.fonts) == null ? void 0 : C.ready), await new Promise((F) => {
7447
+ S.requestAnimationFrame(() => F());
7388
7448
  });
7389
7449
  } catch {
7390
7450
  }
7391
- return u.contentDocument ? Zi(u, {
7451
+ return l.contentDocument ? Zi(l, {
7392
7452
  ...s,
7393
7453
  resolveInstance: i,
7394
- ...v
7454
+ ...p
7395
7455
  }) : null;
7396
7456
  },
7397
7457
  runScreenInteractions: xr,
7398
- prepareScreenCapture: async (u, l) => {
7399
- var w, g, E;
7400
- const d = [];
7401
- let f = !l.preset;
7402
- if (l.preset)
7403
- if (!e.executeScreenPreset)
7404
- d.push({
7405
- stage: "preset",
7406
- code: "preset_executor_missing",
7407
- label: "screen preset",
7408
- message: "There is a screen preset, but the host executor is not set."
7409
- });
7410
- else
7411
- try {
7412
- const S = await e.executeScreenPreset(
7413
- { pageId: l.pageId, route: l.route, preset: Pt(l.preset) },
7414
- { iframe: u }
7415
- );
7416
- S && !S.complete ? d.push({
7417
- stage: "preset",
7418
- code: "preset_rejected",
7419
- label: "screen preset",
7420
- message: S.message ?? "The host refused to apply the screen preset.",
7421
- actual: S.details
7422
- }) : f = !0;
7423
- } catch (S) {
7424
- d.push({
7425
- stage: "preset",
7426
- code: "preset_error",
7427
- label: "screen preset",
7428
- message: `An error occurred while applying the screen preset:${String(S).slice(0, 160)}`
7429
- });
7430
- }
7431
- let h = bf(((w = l.interactions) == null ? void 0 : w.length) ?? 0), v = yf(((g = l.assertions) == null ? void 0 : g.length) ?? 0), p;
7432
- if (d.length === 0 && (h = await xr(u, l.interactions ?? []), h.complete || d.push({
7433
- stage: "interaction",
7434
- code: "interaction_failed",
7435
- label: h.failedLabel,
7436
- message: h.error ?? "Couldn't reproduce the user flow."
7437
- })), d.length === 0 && (v = await wf(u, l.assertions ?? []), d.push(...v.failures)), d.length === 0) {
7438
- let S = null;
7458
+ prepareScreenState: u,
7459
+ prepareScreenCapture: async (l, d) => {
7460
+ var g;
7461
+ const f = await u(l, d);
7462
+ let h;
7463
+ if (f.complete) {
7464
+ let p = null;
7439
7465
  try {
7440
- S = u.contentDocument;
7466
+ p = l.contentDocument;
7441
7467
  } catch {
7442
- S = null;
7468
+ p = null;
7443
7469
  }
7444
- if (S) {
7445
- const I = await tf(S, e.stability);
7446
- p = {
7447
- stable: I,
7448
- churn: I ? [] : ef(S, (E = e.stability) == null ? void 0 : E.volatileSelectors)
7470
+ if (p) {
7471
+ const m = await tf(p, e.stability);
7472
+ h = {
7473
+ stable: m,
7474
+ churn: m ? [] : ef(p, (g = e.stability) == null ? void 0 : g.volatileSelectors)
7449
7475
  };
7450
7476
  }
7451
7477
  }
7452
- const m = d[0];
7453
7478
  return {
7454
- complete: d.length === 0,
7455
- presetApplied: f,
7456
- interactions: h,
7457
- assertions: v,
7458
- failures: d,
7459
- failedLabel: m == null ? void 0 : m.label,
7460
- error: m == null ? void 0 : m.message,
7461
- ...p ? { stability: p } : {}
7479
+ ...f,
7480
+ ...h ? { stability: h } : {}
7462
7481
  };
7463
7482
  }
7464
7483
  };
@@ -7518,17 +7537,17 @@ function Cf(t) {
7518
7537
  for (const f of n) {
7519
7538
  const h = Pf(e, f.path);
7520
7539
  if (!h || h.hidden) continue;
7521
- const v = f.path.length === 0 ? o : i(h.id);
7522
- if (!v) continue;
7523
- const p = Af(v);
7540
+ const g = f.path.length === 0 ? o : i(h.id);
7541
+ if (!g) continue;
7542
+ const p = Af(g);
7524
7543
  if (!p) continue;
7525
- const m = (p.x - s.x) / r - f.x, w = (p.y - s.y) / r - f.y, g = p.width / r - f.width, E = p.height / r - f.height, S = Math.max(
7544
+ const m = (p.x - s.x) / r - f.x, S = (p.y - s.y) / r - f.y, _ = p.width / r - f.width, y = p.height / r - f.height, O = Math.max(
7526
7545
  Math.abs(m),
7527
- Math.abs(w),
7528
- Math.abs(g),
7529
- Math.abs(E)
7546
+ Math.abs(S),
7547
+ Math.abs(_),
7548
+ Math.abs(y)
7530
7549
  );
7531
- a += 1, !(S <= xf) && (c = Math.max(c, S), u.push({
7550
+ a += 1, !(O <= xf) && (c = Math.max(c, O), u.push({
7532
7551
  nodeId: h.id,
7533
7552
  name: h.name ?? "",
7534
7553
  path: f.path,
@@ -7545,10 +7564,10 @@ function Cf(t) {
7545
7564
  height: Math.round(p.height / r)
7546
7565
  },
7547
7566
  dx: Math.round(m),
7548
- dy: Math.round(w),
7549
- dwidth: Math.round(g),
7550
- dheight: Math.round(E),
7551
- drift: Math.round(S)
7567
+ dy: Math.round(S),
7568
+ dwidth: Math.round(_),
7569
+ dheight: Math.round(y),
7570
+ drift: Math.round(O)
7552
7571
  }));
7553
7572
  }
7554
7573
  if (a === 0) return null;
@@ -7915,9 +7934,9 @@ function lh(t) {
7915
7934
  }
7916
7935
  class dh {
7917
7936
  constructor(e) {
7918
- b(this, "baselines", /* @__PURE__ */ new Map());
7919
- b(this, "parseIdentity");
7920
- b(this, "revision", 0);
7937
+ v(this, "baselines", /* @__PURE__ */ new Map());
7938
+ v(this, "parseIdentity");
7939
+ v(this, "revision", 0);
7921
7940
  this.parseIdentity = e;
7922
7941
  }
7923
7942
  captureBefore(e, n, r) {
@@ -8225,15 +8244,15 @@ function Oh(t) {
8225
8244
  const o = t.domTag || (t.type === "text" ? "#text" : t.type);
8226
8245
  return r.length ? `${o}[${r.join("&")}]` : `${o}:${le(t.name)}`;
8227
8246
  }
8228
- function Ce(t, e) {
8247
+ function Te(t, e) {
8229
8248
  const n = wh(e), r = (i, o, s) => {
8230
8249
  var f;
8231
8250
  const a = i.sourceComponent || (i.type === "component" ? i.componentName : ""), c = a ? i.componentName ? `component:${le(a)}:${le(i.componentName)}` : `component:${le(a)}` : o, u = a ? "$" : s, l = (f = i.domAttributes) == null ? void 0 : f["data-pygmalion-source"];
8232
8251
  i.sourceKey = l ? `explicit:${le(l)}` : i.sourceStyle ? `style:${le(i.sourceStyle)}` : `${c}/${u}`;
8233
8252
  const d = /* @__PURE__ */ new Map();
8234
8253
  for (const h of i.children) {
8235
- const v = Oh(h), p = d.get(v) ?? 0;
8236
- d.set(v, p + 1), r(h, c, `${u}/${v}@${p}`);
8254
+ const g = Oh(h), p = d.get(g) ?? 0;
8255
+ d.set(g, p + 1), r(h, c, `${u}/${g}@${p}`);
8237
8256
  }
8238
8257
  };
8239
8258
  r(t, n, "$");
@@ -8285,7 +8304,7 @@ function Ih(t, e) {
8285
8304
  const l = o++, d = xh(Ah(c), e), f = u || d;
8286
8305
  let h = d ? 60 : u ? 30 : 0;
8287
8306
  r && (c.name === r || c.componentName === r) && (h += 100), lo(Nh(c), n) && (h += 140), lo(Dr(c.sourceComponent), n) && (h += 120), h > 0 && i.push({ node: c, score: h, order: l });
8288
- for (const v of c.children) s(v, f);
8307
+ for (const g of c.children) s(g, f);
8289
8308
  };
8290
8309
  return s(t, !1), i.sort((c, u) => u.score - c.score || c.order - u.order), ((a = i[0]) == null ? void 0 : a.node) ?? null;
8291
8310
  }
@@ -8311,59 +8330,59 @@ const Ea = (t) => t === "rows" || t === "columns", fo = (t) => {
8311
8330
  let Ph = 0;
8312
8331
  class L {
8313
8332
  constructor(e, n) {
8314
- b(this, "id", `n${++Ph}`);
8315
- b(this, "type");
8316
- b(this, "name");
8317
- b(this, "children", []);
8333
+ v(this, "id", `n${++Ph}`);
8334
+ v(this, "type");
8335
+ v(this, "name");
8336
+ v(this, "children", []);
8318
8337
  // Layout supports three width and height modes: fill, fit, and fixed.
8319
- b(this, "widthMode", "fill");
8320
- b(this, "width", 200);
8338
+ v(this, "widthMode", "fill");
8339
+ v(this, "width", 200);
8321
8340
  // Only used when widthMode === 'fixed'
8322
- b(this, "heightMode", "fit");
8323
- b(this, "height", 100);
8324
- b(this, "gap", 0);
8325
- b(this, "padding", 0);
8341
+ v(this, "heightMode", "fit");
8342
+ v(this, "height", 100);
8343
+ v(this, "gap", 0);
8344
+ v(this, "padding", 0);
8326
8345
  // Auto Layout Alignment (9-point grid) — Main axis justify(+space-between) × Cross axis alignItems.
8327
- b(this, "justify", "start");
8328
- b(this, "alignItems", "start");
8346
+ v(this, "justify", "start");
8347
+ v(this, "alignItems", "start");
8329
8348
  // Style
8330
- b(this, "fill", "");
8349
+ v(this, "fill", "");
8331
8350
  // '' = transparent
8332
- b(this, "radius", 0);
8333
- b(this, "borderWidth", 0);
8334
- b(this, "borderColor", "#d1d5db");
8335
- b(this, "opacity", 1);
8351
+ v(this, "radius", 0);
8352
+ v(this, "borderWidth", 0);
8353
+ v(this, "borderColor", "#d1d5db");
8354
+ v(this, "opacity", 1);
8336
8355
  // situation
8337
- b(this, "hidden", !1);
8338
- b(this, "locked", !1);
8356
+ v(this, "hidden", !1);
8357
+ v(this, "locked", !1);
8339
8358
  // Text (type === 'text' only)
8340
- b(this, "text", "text");
8341
- b(this, "fontSize", 14);
8342
- b(this, "fontWeight", 400);
8343
- b(this, "color", "#191f28");
8344
- b(this, "textAlign", "left");
8359
+ v(this, "text", "text");
8360
+ v(this, "fontSize", 14);
8361
+ v(this, "fontWeight", 400);
8362
+ v(this, "color", "#191f28");
8363
+ v(this, "textAlign", "left");
8345
8364
  // Component (type === 'component' only) — Render the actual React component from the registry.
8346
- b(this, "componentName", "");
8347
- b(this, "componentProps", {});
8348
- b(this, "childrenText", "");
8365
+ v(this, "componentName", "");
8366
+ v(this, "componentProps", {});
8367
+ v(this, "childrenText", "");
8349
8368
  // DOM import source metadata — Tracks which tag/role/test identifier a layer comes from.
8350
- b(this, "domTag", "");
8351
- b(this, "domAttributes", {});
8352
- b(this, "domStyle", {});
8369
+ v(this, "domTag", "");
8370
+ v(this, "domAttributes", {});
8371
+ v(this, "domStyle", {});
8353
8372
  /** registry importPath/component file boundary. Connects sub-DOMs of the same implementation between frames. */
8354
- b(this, "sourceComponent", "");
8373
+ v(this, "sourceComponent", "");
8355
8374
  /** CSS module source (file#localClass). The strongest shared identifier for style editing. */
8356
- b(this, "sourceStyle", "");
8375
+ v(this, "sourceStyle", "");
8357
8376
  /** Stable shared key calculated from the sourceComponent/sourceStyle/route structure. */
8358
- b(this, "sourceKey", "");
8377
+ v(this, "sourceKey", "");
8359
8378
  /** Primitive literals authored on this rendered element's owning JSX opening. */
8360
- b(this, "sourceProps", {});
8379
+ v(this, "sourceProps", {});
8361
8380
  // Prototype — Page id to be taken to when clicked ('' = none). Operates only in preview mode.
8362
- b(this, "linkTo", "");
8381
+ v(this, "linkTo", "");
8363
8382
  this.type = e, this.name = { rows: "Rows", columns: "Columns", text: "Text", component: "Component" }[e], Object.assign(this, n), ns(this);
8364
8383
  }
8365
8384
  }
8366
- function K(t) {
8385
+ function H(t) {
8367
8386
  return {
8368
8387
  id: t.id,
8369
8388
  type: t.type,
@@ -8399,15 +8418,15 @@ function K(t) {
8399
8418
  sourceKey: t.sourceKey,
8400
8419
  sourceProps: { ...t.sourceProps },
8401
8420
  linkTo: t.linkTo,
8402
- children: t.children.map(K)
8421
+ children: t.children.map(H)
8403
8422
  };
8404
8423
  }
8405
- function U(t, e = !1) {
8424
+ function K(t, e = !1) {
8406
8425
  const { children: n, id: r, type: i, ...o } = t;
8407
8426
  return new L(i, {
8408
8427
  ...o,
8409
8428
  ...e ? {} : { id: r },
8410
- children: n.map((s) => U(s, e))
8429
+ children: n.map((s) => K(s, e))
8411
8430
  });
8412
8431
  }
8413
8432
  function Qn(t) {
@@ -8417,7 +8436,7 @@ function mo() {
8417
8436
  return Fs().length > 0 ? td : 0;
8418
8437
  }
8419
8438
  const ni = 5, Ch = `pygmalion.canvas-layout.v${ni}`, er = 120, tr = 80;
8420
- function Te(t) {
8439
+ function $e(t) {
8421
8440
  return typeof t == "number" && Number.isFinite(t);
8422
8441
  }
8423
8442
  function Th(t) {
@@ -8439,8 +8458,8 @@ let it = 0;
8439
8458
  class Dh {
8440
8459
  constructor() {
8441
8460
  /** Multi-page — each page has an independent tree. */
8442
- b(this, "pages");
8443
- b(this, "activePageId");
8461
+ v(this, "pages");
8462
+ v(this, "activePageId");
8444
8463
  /**
8445
8464
  * Whether the active frame is one the reader chose.
8446
8465
  *
@@ -8452,21 +8471,21 @@ class Dh {
8452
8471
  * difference visible: twenty-seven canvases walked meant twenty-five boots
8453
8472
  * and most of a gigabyte of heap, all of it evicted on the next switch.
8454
8473
  */
8455
- b(this, "activationIntent", "incidental");
8474
+ v(this, "activationIntent", "incidental");
8456
8475
  /** Multiple selection — Last element is primary (targeted in the Properties panel). */
8457
- b(this, "selectedIds", []);
8476
+ v(this, "selectedIds", []);
8458
8477
  /** Frames and sections are selected as canvas objects separate from internal nodes. */
8459
- b(this, "selectedCanvasObject", null);
8460
- b(this, "hoveredId", null);
8461
- b(this, "showRenderCount", !1);
8478
+ v(this, "selectedCanvasObject", null);
8479
+ v(this, "hoveredId", null);
8480
+ v(this, "showRenderCount", !1);
8462
8481
  /** Canvas zoom from 0.25 to 3, controlled by Command/Ctrl-scroll or keyboard shortcuts. */
8463
- b(this, "zoom", 1);
8482
+ v(this, "zoom", 1);
8464
8483
  /** Infinite canvas pan (viewport px, no limit — negative numbers allowed). The initial value is an offset that avoids the left panel. */
8465
- b(this, "panX", 300);
8466
- b(this, "panY", 40);
8484
+ v(this, "panX", 300);
8485
+ v(this, "panY", 40);
8467
8486
  /** Active canvas. Each canvas preserves its pan and zoom in canvasViews. */
8468
- b(this, "activeCanvas", "default");
8469
- b(this, "canvasViews", {});
8487
+ v(this, "activeCanvas", "default");
8488
+ v(this, "canvasViews", {});
8470
8489
  // ── Screen-state canvas folding ─────────────────────────────────────────
8471
8490
  // A scenario group occupies one canvas slot. Its members are declared
8472
8491
  // state variants of the same screen; loading them all as frames doubled
@@ -8474,78 +8493,78 @@ class Dh {
8474
8493
  // right panel is their surface. The group's shown member holds the slot;
8475
8494
  // activating a folded variant swaps it into the slot in place.
8476
8495
  /** canvas + scenario -> the group member currently holding the canvas slot. */
8477
- b(this, "screenStateSelections", T.map());
8496
+ v(this, "screenStateSelections", T.map());
8478
8497
  /** Shows the docked source code drawer. */
8479
- b(this, "codeOpen", !0);
8498
+ v(this, "codeOpen", !0);
8480
8499
  /** Collapsed node id in the layer tree. */
8481
- b(this, "collapsed", /* @__PURE__ */ new Set());
8500
+ v(this, "collapsed", /* @__PURE__ */ new Set());
8482
8501
  /** The node id being dragged (displayed semi-transparently on the canvas). */
8483
- b(this, "dragNodeId", null);
8502
+ v(this, "dragNodeId", null);
8484
8503
  /** Preview drop location while dragging. */
8485
- b(this, "dropHint", null);
8504
+ v(this, "dropHint", null);
8486
8505
  /** Right-click context menu location (viewport). */
8487
- b(this, "ctxMenu", null);
8506
+ v(this, "ctxMenu", null);
8488
8507
  /** Layer tree inline rename target (⌘R·double-click). */
8489
- b(this, "renamingId", null);
8508
+ v(this, "renamingId", null);
8490
8509
  /** Canvas inline text editing target (double click, Enter). */
8491
- b(this, "editingTextId", null);
8510
+ v(this, "editingTextId", null);
8492
8511
  /** Internal clipboard (⌘C/X/V — OS clipboard integration is on the roadmap). */
8493
- b(this, "clipboardJSON", []);
8512
+ v(this, "clipboardJSON", []);
8494
8513
  // History — Snapshot-based undo/redo. Continuous input (patch burst) is one entry with 600ms coalescing.
8495
- b(this, "undoStack", []);
8496
- b(this, "redoStack", []);
8497
- b(this, "lastCheckpointTag", "");
8498
- b(this, "lastCheckpointTime", 0);
8514
+ v(this, "undoStack", []);
8515
+ v(this, "redoStack", []);
8516
+ v(this, "lastCheckpointTag", "");
8517
+ v(this, "lastCheckpointTime", 0);
8499
8518
  /** Final shared style patch that will also be applied to the same source frame that has not yet been rendered/fetched. */
8500
- b(this, "sharedSourceOverrides", /* @__PURE__ */ new Map());
8519
+ v(this, "sharedSourceOverrides", /* @__PURE__ */ new Map());
8501
8520
  /** Child structures of the same source container. It is applied immediately after import to frames that have not yet been captured. */
8502
- b(this, "sharedSourceStructureOverrides", /* @__PURE__ */ new Map());
8521
+ v(this, "sharedSourceStructureOverrides", /* @__PURE__ */ new Map());
8503
8522
  /** Common CSS to be immediately injected into route snapshots that have not yet created a detailed layer. */
8504
- b(this, "sharedFrozenCssRules", /* @__PURE__ */ new Map());
8523
+ v(this, "sharedFrozenCssRules", /* @__PURE__ */ new Map());
8505
8524
  /** A script-free DOM patch with text and display states that cannot be expressed in CSS. */
8506
- b(this, "sharedFrozenDomMutations", /* @__PURE__ */ new Map());
8525
+ v(this, "sharedFrozenDomMutations", /* @__PURE__ */ new Map());
8507
8526
  /** sourceSha + Canvas layout repository with fixed scope as a page catalog. */
8508
- b(this, "canvasLayoutScope", "");
8509
- b(this, "canvasLayoutStorageKey", "");
8510
- b(this, "canvasLayoutDisposer", null);
8527
+ v(this, "canvasLayoutScope", "");
8528
+ v(this, "canvasLayoutStorageKey", "");
8529
+ v(this, "canvasLayoutDisposer", null);
8511
8530
  /** Explicit edit scope by sourceKey. Unspecified is shared like the existing operation. */
8512
- b(this, "sharedSourceEditScopes", /* @__PURE__ */ new Map());
8531
+ v(this, "sharedSourceEditScopes", /* @__PURE__ */ new Map());
8513
8532
  /** The final change that can be safely reflected to the original source during a regular canvas NodeModel patch. */
8514
- b(this, "sourcePatchJournal", new dh(Ur));
8533
+ v(this, "sourcePatchJournal", new dh(Ur));
8515
8534
  /** Asset-list edit intent waiting for the catalog page's DOM layer import. */
8516
- b(this, "pendingDesignAssetEdit", null);
8535
+ v(this, "pendingDesignAssetEdit", null);
8517
8536
  /** Page DOM as of last load/reflection. Asynchronous screens register upon completion of each capture. */
8518
- b(this, "pageRootBaselines", /* @__PURE__ */ new Map());
8537
+ v(this, "pageRootBaselines", /* @__PURE__ */ new Map());
8519
8538
  /** Monotonic per-page edit revision derived from the checkpoint funnel every mutation passes through. */
8520
- b(this, "pageEditRevisions", /* @__PURE__ */ new Map());
8539
+ v(this, "pageEditRevisions", /* @__PURE__ */ new Map());
8521
8540
  /** pageId → edit revision at the moment a frozen preview was promoted without a boot (D2). */
8522
- b(this, "provisionalLayerImports", /* @__PURE__ */ new Map());
8541
+ v(this, "provisionalLayerImports", /* @__PURE__ */ new Map());
8523
8542
  /** pageId → source geometry awaiting its post-mount fidelity measurement. */
8524
- b(this, "pendingLayerImportGeometry", /* @__PURE__ */ new Map());
8543
+ v(this, "pendingLayerImportGeometry", /* @__PURE__ */ new Map());
8525
8544
  /** View-only motion playback never becomes part of a frame recipe or undo history. */
8526
- b(this, "previewMotionStates", T.map());
8527
- b(this, "contentLayoutScheduled", !1);
8528
- b(this, "contentLayoutCanvases", /* @__PURE__ */ new Set());
8529
- b(this, "pagesInitialized", !1);
8545
+ v(this, "previewMotionStates", T.map());
8546
+ v(this, "contentLayoutScheduled", !1);
8547
+ v(this, "contentLayoutCanvases", /* @__PURE__ */ new Set());
8548
+ v(this, "pagesInitialized", !1);
8530
8549
  /** Pages whose mounted frozen preview was refused at the import boundary. */
8531
- b(this, "frozenPromotionRefusals", T.set());
8550
+ v(this, "frozenPromotionRefusals", T.set());
8532
8551
  // ── Prototype Preview (▶) ──────────────────────────────────────
8533
8552
  /** Show preview overlay — page navigation with Scyllender, linkTo/host navigation without editor chrome. */
8534
- b(this, "previewOpen", !1);
8553
+ v(this, "previewOpen", !1);
8535
8554
  /** Preview navigation history (back) — Stack of page ids. */
8536
- b(this, "previewHistory", []);
8555
+ v(this, "previewHistory", []);
8537
8556
  /** Edit Mode (top right toggle) — If false, block manipulation of canvas (view only). */
8538
- b(this, "editMode", !0);
8557
+ v(this, "editMode", !0);
8539
8558
  /** Shows the Reflect (Change Summary) panel. */
8540
- b(this, "applyOpen", !1);
8541
- b(this, "editModeInitialized", !1);
8559
+ v(this, "applyOpen", !1);
8560
+ v(this, "editModeInitialized", !1);
8542
8561
  // ── Canvas tools. hand = drag to pan (H); zoom = click to zoom in or Option-click to zoom out (K).
8543
8562
  // section = Draw a section rectangle by dragging (⇧S) ──
8544
- b(this, "tool", "select");
8563
+ v(this, "tool", "select");
8545
8564
  /** A section is a first-class object. Its display bounds include its rectangle and member frames. */
8546
- b(this, "sections", []);
8565
+ v(this, "sections", []);
8547
8566
  /** Section name whose name is entered immediately after creation/double-clicking — SectionBoxes are rendered as input. */
8548
- b(this, "sectionRenameTarget", null);
8567
+ v(this, "sectionRenameTarget", null);
8549
8568
  this.pages = [{ id: `p${++it}`, name: "Page 1", x: 60, y: 60, root: Rh() }], this.activePageId = this.pages[0].id, ns(this);
8550
8569
  }
8551
8570
  /**
@@ -8776,7 +8795,7 @@ ${e}`;
8776
8795
  );
8777
8796
  if (n)
8778
8797
  for (const r of this.pages)
8779
- (!r.importLayers || r.layersImported) && this.pageRootBaselines.set(r.id, K(r.root));
8798
+ (!r.importLayers || r.layersImported) && this.pageRootBaselines.set(r.id, H(r.root));
8780
8799
  return n;
8781
8800
  }
8782
8801
  /**
@@ -8787,13 +8806,13 @@ ${e}`;
8787
8806
  let e = !1;
8788
8807
  for (const n of this.pages) {
8789
8808
  const r = this.pageRootBaselines.get(n.id);
8790
- r && JSON.stringify(K(n.root)) !== JSON.stringify(r) && (n.root = U(r), e = !0);
8809
+ r && JSON.stringify(H(n.root)) !== JSON.stringify(r) && (n.root = K(r), e = !0);
8791
8810
  }
8792
8811
  return (this.undoStack.length > 0 || this.redoStack.length > 0 || this.sharedSourceOverrides.size > 0 || this.sharedSourceStructureOverrides.size > 0 || this.sharedFrozenCssRules.size > 0 || this.sharedFrozenDomMutations.size > 0 || this.sharedSourceEditScopes.size > 0) && (e = !0), this.undoStack = [], this.redoStack = [], this.sharedSourceOverrides.clear(), this.sharedSourceStructureOverrides.clear(), this.sharedFrozenCssRules.clear(), this.sharedFrozenDomMutations.clear(), this.sharedSourceEditScopes.clear(), this.sourcePatchJournal.discard(), this.pendingDesignAssetEdit = null, this.lastCheckpointTag = "", this.lastCheckpointTime = 0, this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null, e;
8793
8812
  }
8794
8813
  sourceEditScopeForNode(e, n) {
8795
8814
  for (const r of this.pages) {
8796
- const i = ve(r.root, e);
8815
+ const i = be(r.root, e);
8797
8816
  if (i)
8798
8817
  return this.sharedSourceEditScopeFor(i) === "instance" ? "instance" : "shared-source";
8799
8818
  }
@@ -8871,10 +8890,10 @@ ${e}`;
8871
8890
  maxHeight: s.maxHeight,
8872
8891
  root: c
8873
8892
  };
8874
- return Ce(u.root, u), u;
8893
+ return Te(u.root, u), u;
8875
8894
  });
8876
8895
  for (const s of this.pages)
8877
- s.importLayers || this.pageRootBaselines.set(s.id, K(s.root));
8896
+ s.importLayers || this.pageRootBaselines.set(s.id, H(s.root));
8878
8897
  const r = (o = n.initialCanvas) == null ? void 0 : o.trim(), i = r ? this.pages.find(
8879
8898
  (s) => (s.canvas ?? "default") === r
8880
8899
  ) ?? this.pages.find(
@@ -8904,7 +8923,7 @@ ${e}`;
8904
8923
  y: n.y,
8905
8924
  root: new L("rows", { name: "Page", padding: 20, gap: 16, fill: "#ffffff" })
8906
8925
  };
8907
- return Ce(i.root, i), this.pages.push(i), this.activePageId = e, this.selectedIds = [], this.selectedCanvasObject = { kind: "frame", id: e }, this.hoveredId = null, this.editingTextId = null, !0;
8926
+ return Te(i.root, i), this.pages.push(i), this.activePageId = e, this.selectedIds = [], this.selectedCanvasObject = { kind: "frame", id: e }, this.hoveredId = null, this.editingTextId = null, !0;
8908
8927
  }
8909
8928
  switchPage(e, n = {}) {
8910
8929
  var o;
@@ -8971,7 +8990,7 @@ ${e}`;
8971
8990
  if (c.length) {
8972
8991
  const d = Math.min(...c.map((m) => m.x ?? 60)), f = Math.max(...c.map((m) => m.y ?? 60)), h = c.filter(
8973
8992
  (m) => (m.y ?? 60) === f
8974
- ), v = Math.max(
8993
+ ), g = Math.max(
8975
8994
  ...h.map(
8976
8995
  (m) => (m.x ?? 60) + (m.width ?? 390)
8977
8996
  )
@@ -8985,8 +9004,8 @@ ${e}`;
8985
9004
  height: r.height ?? 600
8986
9005
  }
8987
9006
  ]).rowWidth;
8988
- return v + 80 + (r.width ?? 390) - d <= p ? {
8989
- x: v + 80,
9007
+ return g + 80 + (r.width ?? 390) - d <= p ? {
9008
+ x: g + 80,
8990
9009
  y: f
8991
9010
  } : {
8992
9011
  x: d,
@@ -9029,11 +9048,11 @@ ${e}`;
9029
9048
  const l = u.filter((p) => p.x == null);
9030
9049
  if (l.length !== u.length) {
9031
9050
  for (const m of l) {
9032
- const w = this.nextFramePos(m.section, m.canvas, {
9051
+ const S = this.nextFramePos(m.section, m.canvas, {
9033
9052
  width: m.width,
9034
9053
  height: ce(m)
9035
9054
  });
9036
- m.x = w.x, m.y = w.y;
9055
+ m.x = S.x, m.y = S.y;
9037
9056
  }
9038
9057
  c = Math.max(
9039
9058
  ...u.map(
@@ -9063,13 +9082,13 @@ ${e}`;
9063
9082
  { gap: 80 }
9064
9083
  );
9065
9084
  (f.length ? f.flatMap((p) => p.frames) : d).forEach((p, m) => {
9066
- const w = h.frames[m];
9067
- p.x = 60 + w.x, p.y = c + w.y;
9085
+ const S = h.frames[m];
9086
+ p.x = 60 + S.x, p.y = c + S.y;
9068
9087
  });
9069
9088
  for (const p of u) {
9070
9089
  if (this.isScreenStateShown(p) || !p.scenario) continue;
9071
9090
  const m = this.pages.find(
9072
- (w) => w.id === this.shownScreenStateId(p.scenario, p.canvas ?? "default")
9091
+ (S) => S.id === this.shownScreenStateId(p.scenario, p.canvas ?? "default")
9073
9092
  );
9074
9093
  p.x = (m == null ? void 0 : m.x) ?? 60, p.y = (m == null ? void 0 : m.y) ?? c;
9075
9094
  }
@@ -9141,7 +9160,7 @@ ${e}`;
9141
9160
  restoreCanvasLayout(e) {
9142
9161
  const n = new Map(
9143
9162
  e.frames.filter(
9144
- (a) => !!a && typeof a.key == "string" && Te(a.x) && Te(a.y) && Te(a.width) && Te(a.height)
9163
+ (a) => !!a && typeof a.key == "string" && $e(a.x) && $e(a.y) && $e(a.width) && $e(a.height)
9145
9164
  ).map((a) => [a.key, a])
9146
9165
  ), r = /* @__PURE__ */ new Set();
9147
9166
  this.pages.forEach((a, c) => {
@@ -9158,7 +9177,7 @@ ${e}`;
9158
9177
  this.scheduleContentFrameLayout(a);
9159
9178
  const i = new Set(this.pages.map((a) => a.canvas ?? "default")), o = /* @__PURE__ */ new Set(), s = [];
9160
9179
  for (const a of e.sections) {
9161
- if (!a || typeof a.canvas != "string" || !i.has(a.canvas) || typeof a.name != "string" || !a.name.trim() || !Te(a.x) || !Te(a.y) || !Te(a.width) || !Te(a.height))
9180
+ if (!a || typeof a.canvas != "string" || !i.has(a.canvas) || typeof a.name != "string" || !a.name.trim() || !$e(a.x) || !$e(a.y) || !$e(a.width) || !$e(a.height))
9162
9181
  continue;
9163
9182
  const c = `${a.canvas}\0${a.name}`;
9164
9183
  o.has(c) || (o.add(c), s.push({
@@ -9207,7 +9226,7 @@ ${e}`;
9207
9226
  } catch {
9208
9227
  }
9209
9228
  },
9210
- { delay: 180, equals: Ue.structural }
9229
+ { delay: 180, equals: We.structural }
9211
9230
  );
9212
9231
  }
9213
9232
  }
@@ -9308,11 +9327,11 @@ ${e}`;
9308
9327
  height: n.height,
9309
9328
  x: i.x,
9310
9329
  y: i.y,
9311
- root: U(e, !0),
9330
+ root: K(e, !0),
9312
9331
  path: `/${n.name.trim().replace(/\s+/g, "-").toLowerCase() || "screen"}`,
9313
9332
  publish: !0
9314
9333
  };
9315
- Ce(o.root, o), _t(o.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(o), this.pages.push(o), this.switchPage(r);
9334
+ Te(o.root, o), _t(o.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(o), this.pages.push(o), this.switchPage(r);
9316
9335
  }
9317
9336
  /**
9318
9337
  * D2 bootless edit promotion: when the page being activated still needs its
@@ -9356,7 +9375,7 @@ ${e}`;
9356
9375
  applyScreenDimension(e, n, r, i) {
9357
9376
  const o = this.pages.find((d) => d.id === e);
9358
9377
  if (!o || !o.layersImported) return !1;
9359
- const s = ad(n, r), a = i ? ve(o.root, i) : sd(o, n);
9378
+ const s = ad(n, r), a = i ? be(o.root, i) : sd(o, n);
9360
9379
  if (!s || !a) return !1;
9361
9380
  if (a.componentName === n.component) {
9362
9381
  for (const [d, f] of Object.entries(s))
@@ -9412,7 +9431,7 @@ ${e}`;
9412
9431
  let d = u.children.indexOf(c);
9413
9432
  if (d < 0) return !1;
9414
9433
  for (let f = s.length; f < a; f += 1) {
9415
- const h = U(K(c), !0);
9434
+ const h = K(H(c), !0);
9416
9435
  d += 1, u.children.splice(d, 0, h), l += Yi(u, h);
9417
9436
  }
9418
9437
  }
@@ -9430,7 +9449,7 @@ ${e}`;
9430
9449
  applyCardBadge(e, n, r, i, o, s) {
9431
9450
  const a = this.pages.find((f) => f.id === e);
9432
9451
  if (!a || !a.layersImported) return !1;
9433
- const c = ve(a.root, r);
9452
+ const c = be(a.root, r);
9434
9453
  if (!c) return !1;
9435
9454
  let u = Vs(c, i);
9436
9455
  if (!s && !u) return !0;
@@ -9444,8 +9463,8 @@ ${e}`;
9444
9463
  u.children.length,
9445
9464
  ...f
9446
9465
  ), i.hideWhenEmpty && f.length === 0) {
9447
- const h = R(c, u.id), v = (h == null ? void 0 : h.children.indexOf(u)) ?? -1;
9448
- h && v >= 0 && h.children.splice(v, 1);
9466
+ const h = R(c, u.id), g = (h == null ? void 0 : h.children.indexOf(u)) ?? -1;
9467
+ h && g >= 0 && h.children.splice(g, 1);
9449
9468
  }
9450
9469
  return this.bumpPageEditRevision(e), !0;
9451
9470
  }
@@ -9454,17 +9473,17 @@ ${e}`;
9454
9473
  if (!f) return !1;
9455
9474
  const h = ld(c, i);
9456
9475
  if (!h) return !1;
9457
- const v = U(K(f), !0);
9458
- v.children.splice(0, v.children.length), h.parent.children.splice(h.index, 0, v), u = v;
9476
+ const g = K(H(f), !0);
9477
+ g.children.splice(0, g.children.length), h.parent.children.splice(h.index, 0, g), u = g;
9459
9478
  }
9460
9479
  if ((i.arity ?? "multiple") === "single") {
9461
9480
  const f = u.children.filter(
9462
- (h) => !i.options.some((v) => Jt(h, v))
9481
+ (h) => !i.options.some((g) => Jt(h, g))
9463
9482
  );
9464
9483
  u.children.splice(0, u.children.length, ...f);
9465
9484
  } else if (u.children.some((f) => Jt(f, o)))
9466
9485
  return !0;
9467
- const l = cd(a, o, c), d = l ? U(K(l), !0) : new L("component", {
9486
+ const l = cd(a, o, c), d = l ? K(H(l), !0) : new L("component", {
9468
9487
  name: o.component,
9469
9488
  componentName: o.component,
9470
9489
  componentProps: { ...o.props },
@@ -9614,7 +9633,7 @@ ${e}`;
9614
9633
  replacePageRootFromDom(e, n, r) {
9615
9634
  var o, s, a;
9616
9635
  const i = this.pages.find((c) => c.id === e);
9617
- !i || i.layersImported && !this.provisionalLayerImports.has(e) || (Yd(n, e), i.root = U(n, !0), Ce(i.root, i), this.pageRootBaselines.set(i.id, K(i.root)), _t(i.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(i), i.layersImported = !0, i.layerImportCount = r == null ? void 0 : r.count, i.layerImportTruncated = r == null ? void 0 : r.truncated, i.layerImportDiagnostics = r == null ? void 0 : r.diagnostics, i.layerImportError = r != null && r.truncated ? ((s = (o = r.diagnostics) == null ? void 0 : o[0]) == null ? void 0 : s.message) ?? "Some DOM layers were omitted because they exceeded the budget." : void 0, (i.root.name === "body" || i.root.name === "div") && (i.root.name = "Page"), this.provisionalLayerImports.delete(e), this.bumpPageEditRevision(e), i.layerImportRevision = this.pageEditRevision(e), i.layerImportViewportWidth = i.width ?? 390, i.layerImportFidelity = void 0, (a = r == null ? void 0 : r.geometry) != null && a.length ? (this.pendingLayerImportGeometry.set(e, r.geometry), this.scheduleLayerImportFidelityCheck(e)) : this.pendingLayerImportGeometry.delete(e), i.id === this.activePageId && !this.resolvePendingDesignAssetEdit(i) && (this.selectedIds = []));
9636
+ !i || i.layersImported && !this.provisionalLayerImports.has(e) || (Yd(n, e), i.root = K(n, !0), Te(i.root, i), this.pageRootBaselines.set(i.id, H(i.root)), _t(i.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(i), i.layersImported = !0, i.layerImportCount = r == null ? void 0 : r.count, i.layerImportTruncated = r == null ? void 0 : r.truncated, i.layerImportDiagnostics = r == null ? void 0 : r.diagnostics, i.layerImportError = r != null && r.truncated ? ((s = (o = r.diagnostics) == null ? void 0 : o[0]) == null ? void 0 : s.message) ?? "Some DOM layers were omitted because they exceeded the budget." : void 0, (i.root.name === "body" || i.root.name === "div") && (i.root.name = "Page"), this.provisionalLayerImports.delete(e), this.bumpPageEditRevision(e), i.layerImportRevision = this.pageEditRevision(e), i.layerImportViewportWidth = i.width ?? 390, i.layerImportFidelity = void 0, (a = r == null ? void 0 : r.geometry) != null && a.length ? (this.pendingLayerImportGeometry.set(e, r.geometry), this.scheduleLayerImportFidelityCheck(e)) : this.pendingLayerImportGeometry.delete(e), i.id === this.activePageId && !this.resolvePendingDesignAssetEdit(i) && (this.selectedIds = []));
9618
9637
  }
9619
9638
  setPageLayerImportError(e, n) {
9620
9639
  const r = this.pages.find((i) => i.id === e);
@@ -9700,8 +9719,8 @@ ${e}`;
9700
9719
  const d = `section${l}`;
9701
9720
  this.checkpoint("section-create", !0), this.sections.push({ canvas: this.activeCanvas, name: d, x: Math.round(o), y: Math.round(a), width: Math.round(s - o), height: Math.round(c - a) });
9702
9721
  for (const f of this.canvasPages) {
9703
- const h = f.x ?? 0, v = f.y ?? 0;
9704
- h < s && h + (f.width ?? 390) > o && v < c && v + ce(f) > a && (f.section = d);
9722
+ const h = f.x ?? 0, g = f.y ?? 0;
9723
+ h < s && h + (f.width ?? 390) > o && g < c && g + ce(f) > a && (f.section = d);
9705
9724
  }
9706
9725
  this.sectionRenameTarget = d, this.selectedIds = [], this.selectedCanvasObject = { kind: "section", name: d };
9707
9726
  }
@@ -9738,7 +9757,7 @@ ${e}`;
9738
9757
  return this.selectedIds.length ? this.selectedIds[this.selectedIds.length - 1] : null;
9739
9758
  }
9740
9759
  get selected() {
9741
- return this.selectedId ? ve(this.root, this.selectedId) : null;
9760
+ return this.selectedId ? be(this.root, this.selectedId) : null;
9742
9761
  }
9743
9762
  /** Select nodes — tree DFS order (preserve visual order when grouping/copying). */
9744
9763
  get selectedNodes() {
@@ -9827,7 +9846,7 @@ ${e}`;
9827
9846
  // ── History ─────────────────────────────────────────────────
9828
9847
  currentSnapshot() {
9829
9848
  return JSON.stringify({
9830
- pages: this.pages.map((e) => ({ ...e, root: void 0, tree: K(e.root) })),
9849
+ pages: this.pages.map((e) => ({ ...e, root: void 0, tree: H(e.root) })),
9831
9850
  sections: this.sections,
9832
9851
  activePageId: this.activePageId,
9833
9852
  activeCanvas: this.activeCanvas,
@@ -9865,7 +9884,7 @@ ${e}`;
9865
9884
  }
9866
9885
  restore(e) {
9867
9886
  const n = JSON.parse(e);
9868
- this.previewMotionStates.clear(), this.pages = n.pages.map((r) => ({ ...r, tree: void 0, root: U(r.tree) })), this.sections = n.sections ?? [], this.activePageId = this.pages.some((r) => r.id === n.activePageId) ? n.activePageId : this.pages[0].id, this.activeCanvas = n.activeCanvas ?? this.activeCanvas, this.selectedIds = n.selectedIds ?? [], this.selectedCanvasObject = n.selectedCanvasObject ?? null, this.sharedSourceOverrides = new Map(
9887
+ this.previewMotionStates.clear(), this.pages = n.pages.map((r) => ({ ...r, tree: void 0, root: K(r.tree) })), this.sections = n.sections ?? [], this.activePageId = this.pages.some((r) => r.id === n.activePageId) ? n.activePageId : this.pages[0].id, this.activeCanvas = n.activeCanvas ?? this.activeCanvas, this.selectedIds = n.selectedIds ?? [], this.selectedCanvasObject = n.selectedCanvasObject ?? null, this.sharedSourceOverrides = new Map(
9869
9888
  (n.sharedSourceOverrides ?? []).map(([r, i]) => [r, st(i)])
9870
9889
  ), this.sharedSourceStructureOverrides = new Map(
9871
9890
  (n.sharedSourceStructureOverrides ?? []).map(([r, i]) => [
@@ -9963,7 +9982,7 @@ ${e}`;
9963
9982
  if (!e.sourceKey) return;
9964
9983
  const n = this.frozenSemanticSelector(e) || this.frozenStyleSelector(e), r = [];
9965
9984
  let i = "";
9966
- for (const o of e.children.map(K)) {
9985
+ for (const o of e.children.map(H)) {
9967
9986
  const s = this.serializeFrozenNode(o);
9968
9987
  if (s == null) {
9969
9988
  i = "Added and moved component structures cannot be safely replayed without running React.";
@@ -10051,19 +10070,19 @@ ${e}`;
10051
10070
  if (!this.sharedSourceStructureOverrides.size) return;
10052
10071
  const n = (r, i) => {
10053
10072
  const o = r.sourceKey, s = o ? this.sharedSourceStructureOverrides.get(o) : void 0;
10054
- s && !i.has(o) && (r.children = s.map((c) => U(c, !0)));
10073
+ s && !i.has(o) && (r.children = s.map((c) => K(c, !0)));
10055
10074
  const a = o ? /* @__PURE__ */ new Set([...i, o]) : i;
10056
10075
  for (const c of r.children) n(c, a);
10057
10076
  };
10058
- n(e.root, /* @__PURE__ */ new Set()), Ce(e.root, e), _t(e.root, this.sharedSourceOverrides);
10077
+ n(e.root, /* @__PURE__ */ new Set()), Te(e.root, e), _t(e.root, this.sharedSourceOverrides);
10059
10078
  }
10060
10079
  /**
10061
10080
  * Instantly replicates the structure of the common source container to all already captured frames,
10062
10081
  * A final structure override is also left for frames that have not yet been captured.
10063
10082
  */
10064
10083
  syncSharedSourceStructure(e) {
10065
- if (Ce(this.activePage.root, this.activePage), !e.sourceKey || this.sharedSourceEditScopeFor(e) !== "shared") return;
10066
- const n = e.children.map((i) => K(i));
10084
+ if (Te(this.activePage.root, this.activePage), !e.sourceKey || this.sharedSourceEditScopeFor(e) !== "shared") return;
10085
+ const n = e.children.map((i) => H(i));
10067
10086
  this.sharedSourceStructureOverrides.set(
10068
10087
  e.sourceKey,
10069
10088
  n.map(Qn)
@@ -10075,12 +10094,12 @@ ${e}`;
10075
10094
  s !== e && s.sourceKey === e.sourceKey && o.push(s);
10076
10095
  }), !!o.length) {
10077
10096
  for (const s of o)
10078
- s.children = n.map((a) => U(a, !0));
10097
+ s.children = n.map((a) => K(a, !0));
10079
10098
  r.add(i);
10080
10099
  }
10081
10100
  }
10082
10101
  for (const i of r)
10083
- Ce(i.root, i), _t(i.root, this.sharedSourceOverrides);
10102
+ Te(i.root, i), _t(i.root, this.sharedSourceOverrides);
10084
10103
  }
10085
10104
  // ── Mutation actions (all can be undoed after passing checkpoint) ────────────────
10086
10105
  /** A single action through which all changes pass through the properties panel, resize, and rename. */
@@ -10182,7 +10201,7 @@ ${e}`;
10182
10201
  for (const i of e) {
10183
10202
  const o = R(this.root, i.id);
10184
10203
  if (!o) continue;
10185
- const s = U(K(i), !0);
10204
+ const s = K(H(i), !0);
10186
10205
  o.children.splice(o.children.indexOf(i) + 1, 0, s), r.add(o), n.push(s.id);
10187
10206
  }
10188
10207
  for (const i of r) this.syncSharedSourceStructure(i);
@@ -10191,7 +10210,7 @@ ${e}`;
10191
10210
  // ── Clipboard ───────────────────────────────────────────────────
10192
10211
  copySelection() {
10193
10212
  const e = this.topLevelSelected();
10194
- e.length && (this.clipboardJSON = e.map(K));
10213
+ e.length && (this.clipboardJSON = e.map(H));
10195
10214
  }
10196
10215
  cutSelection() {
10197
10216
  this.copySelection(), this.removeSelected();
@@ -10199,7 +10218,7 @@ ${e}`;
10199
10218
  paste() {
10200
10219
  if (!this.clipboardJSON.length) return;
10201
10220
  this.checkpoint("paste", !0);
10202
- const e = this.insertTarget(), n = this.clipboardJSON.map((r) => U(r, !0));
10221
+ const e = this.insertTarget(), n = this.clipboardJSON.map((r) => K(r, !0));
10203
10222
  e.children.push(...n), this.syncSharedSourceStructure(e), this.selectedIds = n.map((r) => r.id);
10204
10223
  }
10205
10224
  // ── Group ──────────────────────────────────────────────────────
@@ -10258,8 +10277,8 @@ ${e}`;
10258
10277
  ).filter((d) => d != null);
10259
10278
  if (!a.length) return;
10260
10279
  this.checkpoint("decompose", !0);
10261
- const c = a.map((d) => U(d.root, !0));
10262
- c.length === 1 && (c[0].name = e.name), n.children.splice(n.children.indexOf(e), 1, ...c), Ce(this.activePage.root, this.activePage), _t(this.activePage.root, this.sharedSourceOverrides), this.syncSharedSourceStructure(n), this.selectedIds = c.map((d) => d.id);
10280
+ const c = a.map((d) => K(d.root, !0));
10281
+ c.length === 1 && (c[0].name = e.name), n.children.splice(n.children.indexOf(e), 1, ...c), Te(this.activePage.root, this.activePage), _t(this.activePage.root, this.sharedSourceOverrides), this.syncSharedSourceStructure(n), this.selectedIds = c.map((d) => d.id);
10263
10282
  }
10264
10283
  // ── Order (z-order ≈ Auto Layout sibling order) ───────────────────────
10265
10284
  /** Brackets move to the first or last position; modified brackets move one position. */
@@ -10300,8 +10319,8 @@ ${e}`;
10300
10319
  /** Drag drop commit — reorder/reparent. index is based on the child list “excluding the drag node”. */
10301
10320
  moveNode(e, n, r) {
10302
10321
  if (e === this.root.id) return;
10303
- const i = ve(this.root, e), o = ve(this.root, n);
10304
- if (!i || !o || !fo(o) || ve(i, n)) return;
10322
+ const i = be(this.root, e), o = be(this.root, n);
10323
+ if (!i || !o || !fo(o) || be(i, n)) return;
10305
10324
  const s = R(this.root, e);
10306
10325
  if (!s) return;
10307
10326
  this.checkpoint("move", !0), s.children.splice(s.children.indexOf(i), 1);
@@ -10320,8 +10339,8 @@ ${e}`;
10320
10339
  }
10321
10340
  /** Is id in the rootId subtree (including itself)? */
10322
10341
  isInSubtree(e, n) {
10323
- const r = ve(this.root, e);
10324
- return !!r && !!ve(r, n);
10342
+ const r = be(this.root, e);
10343
+ return !!r && !!be(r, n);
10325
10344
  }
10326
10345
  /**
10327
10346
  * Selection rules:
@@ -10380,10 +10399,10 @@ ${e}`;
10380
10399
  n && (this.selectedIds = [n.id]);
10381
10400
  }
10382
10401
  }
10383
- function ve(t, e) {
10402
+ function be(t, e) {
10384
10403
  if (t.id === e) return t;
10385
10404
  for (const n of t.children) {
10386
- const r = ve(n, e);
10405
+ const r = be(n, e);
10387
10406
  if (r) return r;
10388
10407
  }
10389
10408
  return null;
@@ -10436,7 +10455,7 @@ const rr = new Dh();
10436
10455
  class Lh extends Ta {
10437
10456
  constructor() {
10438
10457
  super(...arguments);
10439
- b(this, "state", { failed: !1 });
10458
+ v(this, "state", { failed: !1 });
10440
10459
  }
10441
10460
  static getDerivedStateFromError() {
10442
10461
  return { failed: !0 };
@@ -10463,39 +10482,39 @@ function kh({
10463
10482
  }), c = bt(() => {
10464
10483
  }), u = bt(i);
10465
10484
  u.current = i;
10466
- const l = bt(0), [d, f] = ir([]), [h, v] = ir("none"), p = rr.frozenPreviewOverrideCss(t), m = rr.frozenPreviewCssRules(), w = rr.frozenPreviewMutations(), g = JSON.stringify({ cssRules: m, mutations: w }), E = () => {
10467
- var gt, Pe;
10468
- const S = (gt = s.current) == null ? void 0 : gt.contentDocument;
10469
- if (!(S != null && S.head)) return;
10470
- const I = ++l.current, P = [];
10471
- let C = S.querySelector(
10485
+ const l = bt(0), [d, f] = ir([]), [h, g] = ir("none"), p = rr.frozenPreviewOverrideCss(t), m = rr.frozenPreviewCssRules(), S = rr.frozenPreviewMutations(), _ = JSON.stringify({ cssRules: m, mutations: S }), y = () => {
10486
+ var gt, Ce;
10487
+ const O = (gt = s.current) == null ? void 0 : gt.contentDocument;
10488
+ if (!(O != null && O.head)) return;
10489
+ const M = ++l.current, P = [];
10490
+ let C = O.querySelector(
10472
10491
  "style[data-pygmalion-frozen-overrides]"
10473
10492
  );
10474
- p ? C || (C = S.createElement("style"), C.dataset.pygmalionFrozenOverrides = "", S.head.append(C)) : C == null || C.remove(), C && C.textContent !== p && (C.textContent = p), a.current();
10493
+ p ? C || (C = O.createElement("style"), C.dataset.pygmalionFrozenOverrides = "", O.head.append(C)) : C == null || C.remove(), C && C.textContent !== p && (C.textContent = p), a.current();
10475
10494
  const F = [];
10476
- let H = 0, Z = 0;
10495
+ let J = 0, Z = 0;
10477
10496
  for (const A of m)
10478
10497
  try {
10479
- S.querySelector(A.selector);
10498
+ O.querySelector(A.selector);
10480
10499
  } catch {
10481
10500
  P.push(`Style selector cannot be applied:${A.key}`);
10482
10501
  }
10483
- for (const A of w) {
10484
- let je = [];
10502
+ for (const A of S) {
10503
+ let ze = [];
10485
10504
  try {
10486
- je = [...S.querySelectorAll(A.selector)];
10505
+ ze = [...O.querySelectorAll(A.selector)];
10487
10506
  } catch {
10488
10507
  P.push(`DOM selector cannot be applied:${A.key}`);
10489
10508
  continue;
10490
10509
  }
10491
- if (A.staleReason && je.length > 0) {
10492
- P.push(A.staleReason), (A.component || A.key.endsWith(":component-props")) && (Z += je.length);
10510
+ if (A.staleReason && ze.length > 0) {
10511
+ P.push(A.staleReason), (A.component || A.key.endsWith(":component-props")) && (Z += ze.length);
10493
10512
  continue;
10494
10513
  }
10495
- for (const N of je) {
10514
+ for (const N of ze) {
10496
10515
  if (A.component) {
10497
- const D = A.component, me = ue()[D.name];
10498
- if (!me) {
10516
+ const D = A.component, ge = ue()[D.name];
10517
+ if (!ge) {
10499
10518
  P.push(
10500
10519
  `Component registry entry not found:${D.name}`
10501
10520
  ), Z += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
@@ -10503,7 +10522,7 @@ function kh({
10503
10522
  });
10504
10523
  continue;
10505
10524
  }
10506
- if (me.children === "nodes") {
10525
+ if (ge.children === "nodes") {
10507
10526
  P.push(
10508
10527
  "Components that use node children cannot be safely replayed in a frozen sandbox."
10509
10528
  ), Z += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
@@ -10511,40 +10530,40 @@ function kh({
10511
10530
  });
10512
10531
  continue;
10513
10532
  }
10514
- const Oe = S.createElement("pygmalion-sandbox-root");
10515
- Oe.setAttribute("data-pygmalion-sandbox-replay", "applied"), Oe.style.display = "contents", N.before(Oe);
10533
+ const Ee = O.createElement("pygmalion-sandbox-root");
10534
+ Ee.setAttribute("data-pygmalion-sandbox-replay", "applied"), Ee.style.display = "contents", N.before(Ee);
10516
10535
  const ri = N.hasAttribute("hidden");
10517
10536
  N.setAttribute("hidden", ""), N.setAttribute("data-pygmalion-sandbox-replay", "source");
10518
- let vt = go(Oe);
10537
+ let vt = go(Ee);
10519
10538
  const Na = () => {
10520
- const ge = vt;
10521
- vt = null, Oe.remove(), N.toggleAttribute("hidden", ri), N.removeAttribute("data-pygmalion-sandbox-replay"), ge && queueMicrotask(() => ge.unmount());
10539
+ const ve = vt;
10540
+ vt = null, Ee.remove(), N.toggleAttribute("hidden", ri), N.removeAttribute("data-pygmalion-sandbox-replay"), ve && queueMicrotask(() => ve.unmount());
10522
10541
  };
10523
10542
  F.push(Na);
10524
- const ii = (ge) => {
10525
- if (l.current !== I) return;
10543
+ const ii = (ve) => {
10544
+ if (l.current !== M) return;
10526
10545
  Z += 1;
10527
- const Ia = ge instanceof Error ? ge.message : String(ge), oi = `Component sandbox rendering failed:${D.name} · ${Ia}`;
10528
- P.push(oi), Oe.setAttribute("data-pygmalion-sandbox-replay", "stale"), N.toggleAttribute("hidden", ri), v("stale"), f((Ma) => {
10546
+ const Ia = ve instanceof Error ? ve.message : String(ve), oi = `Component sandbox rendering failed:${D.name} · ${Ia}`;
10547
+ P.push(oi), Ee.setAttribute("data-pygmalion-sandbox-replay", "stale"), N.toggleAttribute("hidden", ri), g("stale"), f((Ma) => {
10529
10548
  const si = [.../* @__PURE__ */ new Set([...Ma, oi])];
10530
10549
  return o == null || o(si), si;
10531
10550
  });
10532
10551
  };
10533
10552
  try {
10534
- const ge = me.children === "text" ? D.childrenText : void 0;
10553
+ const ve = ge.children === "text" ? D.childrenText : void 0;
10535
10554
  vt == null || vt.render(
10536
10555
  en(
10537
10556
  Lh,
10538
10557
  { onError: ii },
10539
10558
  en(
10540
- me.component,
10559
+ ge.component,
10541
10560
  { ...D.props },
10542
- ge
10561
+ ve
10543
10562
  )
10544
10563
  )
10545
- ), H += 1;
10546
- } catch (ge) {
10547
- ii(ge);
10564
+ ), J += 1;
10565
+ } catch (ve) {
10566
+ ii(ve);
10548
10567
  }
10549
10568
  continue;
10550
10569
  }
@@ -10553,10 +10572,10 @@ function kh({
10553
10572
  N.toggleAttribute("hidden", A.hidden), F.push(() => N.toggleAttribute("hidden", D));
10554
10573
  }
10555
10574
  if (A.attributes)
10556
- for (const [D, me] of Object.entries(A.attributes)) {
10557
- const Oe = N.getAttribute(D);
10558
- me == null ? N.removeAttribute(D) : N.setAttribute(D, me), F.push(() => {
10559
- Oe == null ? N.removeAttribute(D) : N.setAttribute(D, Oe);
10575
+ for (const [D, ge] of Object.entries(A.attributes)) {
10576
+ const Ee = N.getAttribute(D);
10577
+ ge == null ? N.removeAttribute(D) : N.setAttribute(D, ge), F.push(() => {
10578
+ Ee == null ? N.removeAttribute(D) : N.setAttribute(D, Ee);
10560
10579
  });
10561
10580
  }
10562
10581
  if (A.replaceChildrenHtml != null) {
@@ -10573,10 +10592,10 @@ function kh({
10573
10592
  });
10574
10593
  continue;
10575
10594
  }
10576
- const Aa = ((Pe = S.defaultView) == null ? void 0 : Pe.Node.TEXT_NODE) ?? 3, jt = [...N.childNodes].filter(
10595
+ const Aa = ((Ce = O.defaultView) == null ? void 0 : Ce.Node.TEXT_NODE) ?? 3, jt = [...N.childNodes].filter(
10577
10596
  (D) => {
10578
- var me;
10579
- return D.nodeType === Aa && !!((me = D.textContent) != null && me.trim());
10597
+ var ge;
10598
+ return D.nodeType === Aa && !!((ge = D.textContent) != null && ge.trim());
10580
10599
  }
10581
10600
  )[A.textNodeOrdinal];
10582
10601
  if (!jt) continue;
@@ -10589,16 +10608,16 @@ function kh({
10589
10608
  a.current = () => {
10590
10609
  for (const A of F.reverse()) A();
10591
10610
  };
10592
- const nt = [...new Set(P)];
10593
- v(
10594
- Z > 0 ? "stale" : H > 0 ? "applied" : "none"
10611
+ const me = [...new Set(P)];
10612
+ g(
10613
+ Z > 0 ? "stale" : J > 0 ? "applied" : "none"
10595
10614
  ), f(
10596
- (A) => JSON.stringify(A) === JSON.stringify(nt) ? A : nt
10597
- ), o == null || o(nt);
10615
+ (A) => JSON.stringify(A) === JSON.stringify(me) ? A : me
10616
+ ), o == null || o(me);
10598
10617
  };
10599
- return ui(() => (E(), () => {
10618
+ return ui(() => (y(), () => {
10600
10619
  l.current += 1, a.current();
10601
- }), [p, e, g]), ui(
10620
+ }), [p, e, _]), ui(
10602
10621
  () => () => {
10603
10622
  c.current();
10604
10623
  },
@@ -10620,16 +10639,16 @@ function kh({
10620
10639
  className: "block border-0 bg-white",
10621
10640
  style: { width: "100%", height: n, pointerEvents: "none" },
10622
10641
  onLoad: () => {
10623
- E();
10624
- const S = s.current;
10625
- if (!S) return;
10642
+ y();
10643
+ const O = s.current;
10644
+ if (!O) return;
10626
10645
  c.current();
10627
- const I = S.contentDocument;
10628
- c.current = t.heightMode === "document" && I ? ul(I, (P) => {
10646
+ const M = O.contentDocument;
10647
+ c.current = t.heightMode === "document" && M ? ul(M, (P) => {
10629
10648
  var C;
10630
10649
  (C = u.current) == null || C.call(u, P);
10631
10650
  }) : () => {
10632
- }, r == null || r(S);
10651
+ }, r == null || r(O);
10633
10652
  }
10634
10653
  }
10635
10654
  ),
@@ -10678,7 +10697,7 @@ export {
10678
10697
  Sp as B,
10679
10698
  pp as C,
10680
10699
  Ep as D,
10681
- ve as E,
10700
+ be as E,
10682
10701
  kh as F,
10683
10702
  fo as G,
10684
10703
  R as H,
@@ -10691,7 +10710,7 @@ export {
10691
10710
  ap as O,
10692
10711
  Dp as P,
10693
10712
  Cp as Q,
10694
- we as R,
10713
+ Oe as R,
10695
10714
  Pp as S,
10696
10715
  $p as T,
10697
10716
  xs as U,
@@ -10740,12 +10759,12 @@ export {
10740
10759
  Hp as aY,
10741
10760
  fp as aZ,
10742
10761
  Zf as a_,
10743
- Ue as aa,
10762
+ We as aa,
10744
10763
  Gh as ab,
10745
10764
  vl as ac,
10746
10765
  Li as ad,
10747
10766
  ae,
10748
- Ve as af,
10767
+ Be as af,
10749
10768
  vs as ag,
10750
10769
  Qf as ah,
10751
10770
  Sa as ai,
@@ -10812,7 +10831,7 @@ export {
10812
10831
  Qh as p,
10813
10832
  gn as q,
10814
10833
  ce as r,
10815
- K as s,
10834
+ H as s,
10816
10835
  el as t,
10817
10836
  Ro as u,
10818
10837
  mp as v,