@clicktap/state 0.11.4 → 0.11.5

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.
package/index.mjs CHANGED
@@ -19,7 +19,7 @@ const xo = (e) => {
19
19
  const t = ko();
20
20
  t && t.register(e);
21
21
  };
22
- class Fr {
22
+ class $r {
23
23
  constructor(t) {
24
24
  this._process = t, this._active = !1, this._current = null, this._last = null;
25
25
  }
@@ -84,7 +84,7 @@ function Oe(e) {
84
84
  });
85
85
  }
86
86
  const Mo = (() => typeof Symbol == "function" && Symbol.observable || "@@observable")();
87
- function Mr(e, t) {
87
+ function Fr(e, t) {
88
88
  return `${e.sessionId}.${t}`;
89
89
  }
90
90
  let No = 0;
@@ -98,7 +98,7 @@ function Uo(e, t) {
98
98
  delay: w,
99
99
  id: b,
100
100
  startedAt: Date.now()
101
- }, j = Mr(d, b);
101
+ }, j = Fr(d, b);
102
102
  l._snapshot._scheduledEvents[j] = O;
103
103
  const J = c.setTimeout(() => {
104
104
  delete a[j], delete l._snapshot._scheduledEvents[j], l._relay(d, m, E);
@@ -106,7 +106,7 @@ function Uo(e, t) {
106
106
  a[j] = J;
107
107
  },
108
108
  cancel: (d, m) => {
109
- const E = Mr(d, m), w = a[E];
109
+ const E = Fr(d, m), w = a[E];
110
110
  delete a[E], delete l._snapshot._scheduledEvents[E], c.clearTimeout(w);
111
111
  },
112
112
  cancelAll: (d) => {
@@ -178,10 +178,10 @@ function Uo(e, t) {
178
178
  return l;
179
179
  }
180
180
  function vs(e, t) {
181
- const n = Nr(e), r = Nr(t);
181
+ const n = Mr(e), r = Mr(t);
182
182
  return typeof r == "string" ? typeof n == "string" ? r === n : !1 : typeof n == "string" ? n in r : Object.keys(n).every((s) => s in r ? vs(n[s], r[s]) : !1);
183
183
  }
184
- function Gn(e) {
184
+ function Kn(e) {
185
185
  if (_s(e))
186
186
  return e;
187
187
  let t = [], n = "";
@@ -198,12 +198,12 @@ function Gn(e) {
198
198
  }
199
199
  return t.push(n), t;
200
200
  }
201
- function Nr(e) {
201
+ function Mr(e) {
202
202
  if (mi(e))
203
203
  return e.value;
204
204
  if (typeof e != "string")
205
205
  return e;
206
- const t = Gn(e);
206
+ const t = Kn(e);
207
207
  return Lo(t);
208
208
  }
209
209
  function Lo(e) {
@@ -220,7 +220,7 @@ function Lo(e) {
220
220
  }
221
221
  return t;
222
222
  }
223
- function Ur(e, t) {
223
+ function Nr(e, t) {
224
224
  const n = {}, r = Object.keys(e);
225
225
  for (let s = 0; s < r.length; s++) {
226
226
  const i = r[s];
@@ -247,7 +247,7 @@ function _s(e) {
247
247
  function Bo(e) {
248
248
  return e.type.startsWith("xstate.error.actor");
249
249
  }
250
- function at(e) {
250
+ function it(e) {
251
251
  return gs(e).map((t) => typeof t > "u" || typeof t == "string" ? {
252
252
  target: t
253
253
  } : t);
@@ -256,7 +256,7 @@ function Es(e) {
256
256
  if (!(e === void 0 || e === Po))
257
257
  return $e(e);
258
258
  }
259
- function Lr(e, t, n) {
259
+ function Ur(e, t, n) {
260
260
  var i, a, c;
261
261
  const r = typeof e == "object", s = r ? e : void 0;
262
262
  return {
@@ -265,17 +265,17 @@ function Lr(e, t, n) {
265
265
  complete: (c = r ? e.complete : n) == null ? void 0 : c.bind(s)
266
266
  };
267
267
  }
268
- function Br(e, t) {
268
+ function Lr(e, t) {
269
269
  return `${t}.${e}`;
270
270
  }
271
- function Xn(e, t) {
271
+ function Gn(e, t) {
272
272
  const n = t.match(/^xstate\.invoke\.(\d+)\.(.*)/);
273
273
  if (!n)
274
274
  return e.implementations.actors[t];
275
275
  const [, r, s] = n, a = e.getStateNodeById(s).config.invoke;
276
276
  return (Array.isArray(a) ? a[r] : a).src;
277
277
  }
278
- const Zn = 1;
278
+ const Xn = 1;
279
279
  let fe = /* @__PURE__ */ function(e) {
280
280
  return e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped", e;
281
281
  }({});
@@ -295,7 +295,7 @@ class Vo {
295
295
  * @param options Actor options
296
296
  */
297
297
  constructor(t, n) {
298
- this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new Fr(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.logger = void 0, this._processingStatus = fe.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this._systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
298
+ this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new $r(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.logger = void 0, this._processingStatus = fe.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this._systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
299
299
  const r = {
300
300
  ...Wo,
301
301
  ...n
@@ -310,7 +310,7 @@ class Vo {
310
310
  } = r;
311
311
  this.system = a ? a.system : Uo(this, {
312
312
  clock: s
313
- }), d && !a && this.system.inspect(Lr(d)), this.sessionId = this.system._bookId(), this.id = h ?? this.sessionId, this.logger = i, this.clock = s, this._parent = a, this._syncSnapshot = c, this.options = r, this.src = r.src ?? t, this.ref = this, this._actorScope = {
313
+ }), d && !a && this.system.inspect(Ur(d)), this.sessionId = this.system._bookId(), this.id = h ?? this.sessionId, this.logger = i, this.clock = s, this._parent = a, this._syncSnapshot = c, this.options = r, this.src = r.src ?? t, this.ref = this, this._actorScope = {
314
314
  self: this,
315
315
  id: this.id,
316
316
  sessionId: this.sessionId,
@@ -434,7 +434,7 @@ class Vo {
434
434
  */
435
435
  subscribe(t, n, r) {
436
436
  var i;
437
- const s = Lr(t, n, r);
437
+ const s = Ur(t, n, r);
438
438
  if (this._processingStatus !== fe.Stopped)
439
439
  this.observers.add(s);
440
440
  else
@@ -576,7 +576,7 @@ class Vo {
576
576
  // right now, they are being stopped within the machine's transition
577
577
  // but that could throw and leave us with "orphaned" active actors
578
578
  _stopProcedure() {
579
- return this._processingStatus !== fe.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new Fr(this._process.bind(this)), this._processingStatus = fe.Stopped, this.system._unregister(this), this);
579
+ return this._processingStatus !== fe.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new $r(this._process.bind(this)), this._processingStatus = fe.Stopped, this.system._unregister(this), this);
580
580
  }
581
581
  /**
582
582
  * @internal
@@ -600,7 +600,7 @@ class Vo {
600
600
  }
601
601
  toJSON() {
602
602
  return {
603
- xstate$$type: Zn,
603
+ xstate$$type: Xn,
604
604
  id: this.id
605
605
  };
606
606
  }
@@ -640,7 +640,7 @@ class Vo {
640
640
  return this._snapshot;
641
641
  }
642
642
  }
643
- function Xe(e, t) {
643
+ function ut(e, t) {
644
644
  return new Vo(e, t);
645
645
  }
646
646
  function zo(e, t, n, r, {
@@ -666,9 +666,9 @@ function Yo(e, t, n, r, {
666
666
  input: c,
667
667
  syncSnapshot: h
668
668
  }) {
669
- const l = typeof a == "string" ? Xn(t.machine, a) : a, d = typeof s == "function" ? s(n) : s;
669
+ const l = typeof a == "string" ? Gn(t.machine, a) : a, d = typeof s == "function" ? s(n) : s;
670
670
  let m;
671
- return l && (m = Xe(l, {
671
+ return l && (m = ut(l, {
672
672
  id: d,
673
673
  src: a,
674
674
  parent: e.self,
@@ -679,7 +679,7 @@ function Yo(e, t, n, r, {
679
679
  event: n.event,
680
680
  self: e.self
681
681
  }) : c
682
- })), [Ze(t, {
682
+ })), [Xe(t, {
683
683
  children: {
684
684
  ...t.children,
685
685
  [d]: m
@@ -714,7 +714,7 @@ function Go(e, t, n, r, {
714
714
  let c = t.children;
715
715
  return a && (c = {
716
716
  ...c
717
- }, delete c[a.id]), [Ze(t, {
717
+ }, delete c[a.id]), [Xe(t, {
718
718
  children: c
719
719
  }), a];
720
720
  }
@@ -734,14 +734,14 @@ function bs(e) {
734
734
  }
735
735
  return t.type = "xstate.stopChild", t.actorRef = e, t.resolve = Go, t.execute = Xo, t;
736
736
  }
737
- function Qn(e, t, n, r) {
737
+ function Zn(e, t, n, r) {
738
738
  const {
739
739
  machine: s
740
740
  } = r, i = typeof e == "function", a = i ? e : s.implementations.guards[typeof e == "string" ? e : e.type];
741
741
  if (!i && !a)
742
742
  throw new Error(`Guard '${typeof e == "string" ? e : e.type}' is not implemented.'.`);
743
743
  if (typeof a != "function")
744
- return Qn(a, t, n, r);
744
+ return Zn(a, t, n, r);
745
745
  const c = {
746
746
  context: t,
747
747
  event: n
@@ -756,7 +756,7 @@ function Qn(e, t, n, r) {
756
756
  // this holds all params
757
757
  ) : a(c, h);
758
758
  }
759
- const er = (e) => e.type === "atomic" || e.type === "final";
759
+ const Qn = (e) => e.type === "atomic" || e.type === "final";
760
760
  function ct(e) {
761
761
  return Object.values(e.states).filter((t) => t.type !== "history");
762
762
  }
@@ -773,11 +773,11 @@ function Qt(e) {
773
773
  const t = new Set(e), n = ws(t);
774
774
  for (const r of t)
775
775
  if (r.type === "compound" && (!n.get(r) || !n.get(r).length))
776
- Wr(r).forEach((s) => t.add(s));
776
+ Br(r).forEach((s) => t.add(s));
777
777
  else if (r.type === "parallel") {
778
778
  for (const s of ct(r))
779
779
  if (s.type !== "history" && !t.has(s)) {
780
- const i = Wr(s);
780
+ const i = Br(s);
781
781
  for (const a of i)
782
782
  t.add(a);
783
783
  }
@@ -796,7 +796,7 @@ function Ss(e, t) {
796
796
  if (e.type === "compound") {
797
797
  const s = n[0];
798
798
  if (s) {
799
- if (er(s))
799
+ if (Qn(s))
800
800
  return s.key;
801
801
  } else
802
802
  return {};
@@ -816,8 +816,8 @@ function Ts(e, t) {
816
816
  const n = Qt(t);
817
817
  return Ss(e, ws(n));
818
818
  }
819
- function tr(e, t) {
820
- return t.type === "compound" ? ct(t).some((n) => n.type === "final" && e.has(n)) : t.type === "parallel" ? ct(t).every((n) => tr(e, n)) : t.type === "final";
819
+ function er(e, t) {
820
+ return t.type === "compound" ? ct(t).some((n) => n.type === "final" && e.has(n)) : t.type === "parallel" ? ct(t).every((n) => er(e, n)) : t.type === "final";
821
821
  }
822
822
  const rn = (e) => e[0] === Io;
823
823
  function Zo(e, t) {
@@ -891,24 +891,24 @@ function ei(e) {
891
891
  if (n === hs)
892
892
  throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');
893
893
  const r = e.config.on[n];
894
- t.set(n, at(r).map((s) => Ke(e, n, s)));
894
+ t.set(n, it(r).map((s) => Ke(e, n, s)));
895
895
  }
896
896
  if (e.config.onDone) {
897
897
  const n = `xstate.done.state.${e.id}`;
898
- t.set(n, at(e.config.onDone).map((r) => Ke(e, n, r)));
898
+ t.set(n, it(e.config.onDone).map((r) => Ke(e, n, r)));
899
899
  }
900
900
  for (const n of e.invoke) {
901
901
  if (n.onDone) {
902
902
  const r = `xstate.done.actor.${n.id}`;
903
- t.set(r, at(n.onDone).map((s) => Ke(e, r, s)));
903
+ t.set(r, it(n.onDone).map((s) => Ke(e, r, s)));
904
904
  }
905
905
  if (n.onError) {
906
906
  const r = `xstate.error.actor.${n.id}`;
907
- t.set(r, at(n.onError).map((s) => Ke(e, r, s)));
907
+ t.set(r, it(n.onError).map((s) => Ke(e, r, s)));
908
908
  }
909
909
  if (n.onSnapshot) {
910
910
  const r = `xstate.snapshot.${n.id}`;
911
- t.set(r, at(n.onSnapshot).map((s) => Ke(e, r, s)));
911
+ t.set(r, it(n.onSnapshot).map((s) => Ke(e, r, s)));
912
912
  }
913
913
  }
914
914
  for (const n of e.after) {
@@ -966,7 +966,7 @@ function Rs(e) {
966
966
  function Ge(e) {
967
967
  return e.type === "history";
968
968
  }
969
- function Wr(e) {
969
+ function Br(e) {
970
970
  const t = Os(e);
971
971
  for (const n of t)
972
972
  for (const r of Ot(n, e))
@@ -1002,7 +1002,7 @@ function en(e, t) {
1002
1002
  return e.machine.getStateNodeById(t);
1003
1003
  } catch {
1004
1004
  }
1005
- const n = Gn(t).slice();
1005
+ const n = Kn(t).slice();
1006
1006
  let r = e;
1007
1007
  for (; n.length; ) {
1008
1008
  const s = n.shift();
@@ -1029,7 +1029,7 @@ function ri(e, t, n, r) {
1029
1029
  return !i || !i.length ? e.next(n, r) : i;
1030
1030
  }
1031
1031
  function si(e, t, n, r) {
1032
- const s = Object.keys(t), i = ft(e, s[0]), a = nr(i, t[s[0]], n, r);
1032
+ const s = Object.keys(t), i = ft(e, s[0]), a = tr(i, t[s[0]], n, r);
1033
1033
  return !a || !a.length ? e.next(n, r) : a;
1034
1034
  }
1035
1035
  function oi(e, t, n, r) {
@@ -1038,12 +1038,12 @@ function oi(e, t, n, r) {
1038
1038
  const a = t[i];
1039
1039
  if (!a)
1040
1040
  continue;
1041
- const c = ft(e, i), h = nr(c, a, n, r);
1041
+ const c = ft(e, i), h = tr(c, a, n, r);
1042
1042
  h && s.push(...h);
1043
1043
  }
1044
1044
  return s.length ? s : e.next(n, r);
1045
1045
  }
1046
- function nr(e, t, n, r) {
1046
+ function tr(e, t, n, r) {
1047
1047
  return typeof t == "string" ? ri(e, t, n, r) : Object.keys(t).length === 1 ? si(e, t, n, r) : oi(e, t, n, r);
1048
1048
  }
1049
1049
  function ii(e) {
@@ -1092,7 +1092,7 @@ function ui(e) {
1092
1092
  if (n.every((s) => Fe(s, r)))
1093
1093
  return r;
1094
1094
  }
1095
- function rr(e, t) {
1095
+ function nr(e, t) {
1096
1096
  if (!e.target)
1097
1097
  return [];
1098
1098
  const n = /* @__PURE__ */ new Set();
@@ -1102,14 +1102,14 @@ function rr(e, t) {
1102
1102
  for (const s of t[r.id])
1103
1103
  n.add(s);
1104
1104
  else
1105
- for (const s of rr(Rs(r), t))
1105
+ for (const s of nr(Rs(r), t))
1106
1106
  n.add(s);
1107
1107
  else
1108
1108
  n.add(r);
1109
1109
  return [...n];
1110
1110
  }
1111
1111
  function As(e, t) {
1112
- const n = rr(e, t);
1112
+ const n = nr(e, t);
1113
1113
  if (!n)
1114
1114
  return;
1115
1115
  if (!e.reenter && n.every((s) => s === e.source || Fe(s, e.source)))
@@ -1151,7 +1151,7 @@ function Wn(e, t, n, r, s, i) {
1151
1151
  const d = [...a];
1152
1152
  l.status === "done" && (l = lt(l, r, n, d.sort((m, E) => E.order - m.order).flatMap((m) => m.exit), i));
1153
1153
  try {
1154
- return c === t.historyValue && ci(t._nodes, a) ? l : Ze(l, {
1154
+ return c === t.historyValue && ci(t._nodes, a) ? l : Xe(l, {
1155
1155
  _nodes: d,
1156
1156
  historyValue: c
1157
1157
  });
@@ -1186,11 +1186,11 @@ function li(e, t, n, r, s, i, a, c) {
1186
1186
  if (h = lt(h, t, n, w, i, E.invoke.map((b) => b.id)), E.type === "final") {
1187
1187
  const b = E.parent;
1188
1188
  let O = (b == null ? void 0 : b.type) === "parallel" ? b : b == null ? void 0 : b.parent, j = O || E;
1189
- for ((b == null ? void 0 : b.type) === "compound" && i.push(Un(b.id, E.output ? Ln(E.output, h.context, t, n.self) : void 0)); (O == null ? void 0 : O.type) === "parallel" && !m.has(O) && tr(s, O); )
1189
+ for ((b == null ? void 0 : b.type) === "compound" && i.push(Un(b.id, E.output ? Ln(E.output, h.context, t, n.self) : void 0)); (O == null ? void 0 : O.type) === "parallel" && !m.has(O) && er(s, O); )
1190
1190
  m.add(O), i.push(Un(O.id)), j = O, O = O.parent;
1191
1191
  if (O)
1192
1192
  continue;
1193
- h = Ze(h, {
1193
+ h = Xe(h, {
1194
1194
  status: "done",
1195
1195
  output: fi(h, t, n, h.machine.root, j)
1196
1196
  });
@@ -1206,42 +1206,42 @@ function di(e, t, n, r) {
1206
1206
  (s.source !== c || // we know that the domain can't lie within the source
1207
1207
  // if it's different than the source then it's outside of it and it means that the target has to be entered as well
1208
1208
  s.source !== i || // reentering transitions always enter the target, even if it's the source itself
1209
- s.reenter) && (r.add(c), n.add(c)), ut(c, t, n, r);
1210
- const a = rr(s, t);
1209
+ s.reenter) && (r.add(c), n.add(c)), at(c, t, n, r);
1210
+ const a = nr(s, t);
1211
1211
  for (const c of a) {
1212
1212
  const h = Ot(c, i);
1213
1213
  (i == null ? void 0 : i.type) === "parallel" && h.push(i), ks(r, t, n, h, !s.source.parent && s.reenter ? void 0 : i);
1214
1214
  }
1215
1215
  }
1216
1216
  }
1217
- function ut(e, t, n, r) {
1217
+ function at(e, t, n, r) {
1218
1218
  var s;
1219
1219
  if (Ge(e))
1220
1220
  if (t[e.id]) {
1221
1221
  const i = t[e.id];
1222
1222
  for (const a of i)
1223
- r.add(a), ut(a, t, n, r);
1223
+ r.add(a), at(a, t, n, r);
1224
1224
  for (const a of i)
1225
1225
  In(a, e.parent, r, t, n);
1226
1226
  } else {
1227
1227
  const i = Rs(e);
1228
1228
  for (const a of i.target)
1229
- r.add(a), i === ((s = e.parent) == null ? void 0 : s.initial) && n.add(e.parent), ut(a, t, n, r);
1229
+ r.add(a), i === ((s = e.parent) == null ? void 0 : s.initial) && n.add(e.parent), at(a, t, n, r);
1230
1230
  for (const a of i.target)
1231
1231
  In(a, e.parent, r, t, n);
1232
1232
  }
1233
1233
  else if (e.type === "compound") {
1234
1234
  const [i] = e.initial.target;
1235
- Ge(i) || (r.add(i), n.add(i)), ut(i, t, n, r), In(i, e, r, t, n);
1235
+ Ge(i) || (r.add(i), n.add(i)), at(i, t, n, r), In(i, e, r, t, n);
1236
1236
  } else if (e.type === "parallel")
1237
1237
  for (const i of ct(e).filter((a) => !Ge(a)))
1238
- [...r].some((a) => Fe(a, i)) || (Ge(i) || (r.add(i), n.add(i)), ut(i, t, n, r));
1238
+ [...r].some((a) => Fe(a, i)) || (Ge(i) || (r.add(i), n.add(i)), at(i, t, n, r));
1239
1239
  }
1240
1240
  function ks(e, t, n, r, s) {
1241
1241
  for (const i of r)
1242
1242
  if ((!s || Fe(i, s)) && e.add(i), i.type === "parallel")
1243
1243
  for (const a of ct(i).filter((c) => !Ge(c)))
1244
- [...e].some((c) => Fe(c, a)) || (e.add(a), ut(a, t, n, e));
1244
+ [...e].some((c) => Fe(c, a)) || (e.add(a), at(a, t, n, e));
1245
1245
  }
1246
1246
  function In(e, t, n, r, s) {
1247
1247
  ks(n, r, s, Ot(e, t));
@@ -1254,7 +1254,7 @@ function hi(e, t, n, r, s, i, a) {
1254
1254
  for (const d of h)
1255
1255
  for (const m of ii(d)) {
1256
1256
  let E;
1257
- m.history === "deep" ? E = (w) => er(w) && Fe(w, d) : E = (w) => w.parent === d, l ?? (l = {
1257
+ m.history === "deep" ? E = (w) => Qn(w) && Fe(w, d) : E = (w) => w.parent === d, l ?? (l = {
1258
1258
  ...i
1259
1259
  }), l[m.id] = Array.from(s).filter(E);
1260
1260
  }
@@ -1317,7 +1317,7 @@ function jn(e, t, n, r = []) {
1317
1317
  let s = e;
1318
1318
  const i = [];
1319
1319
  if (t.type === Tt)
1320
- return s = Ze(Vr(s, t, n), {
1320
+ return s = Xe(Wr(s, t, n), {
1321
1321
  status: "stopped"
1322
1322
  }), i.push(s), {
1323
1323
  snapshot: s,
@@ -1325,9 +1325,9 @@ function jn(e, t, n, r = []) {
1325
1325
  };
1326
1326
  let a = t;
1327
1327
  if (a.type !== ps) {
1328
- const h = a, l = Bo(h), d = zr(h, s);
1328
+ const h = a, l = Bo(h), d = Vr(h, s);
1329
1329
  if (l && !d.length)
1330
- return s = Ze(e, {
1330
+ return s = Xe(e, {
1331
1331
  status: "error",
1332
1332
  error: h.error
1333
1333
  }), i.push(s), {
@@ -1351,29 +1351,29 @@ function jn(e, t, n, r = []) {
1351
1351
  if (!h.length) {
1352
1352
  if (!r.length)
1353
1353
  break;
1354
- a = r.shift(), h = zr(a, s);
1354
+ a = r.shift(), h = Vr(a, s);
1355
1355
  }
1356
1356
  s = Wn(h, s, n, a, !1, r), c = s !== l, i.push(s);
1357
1357
  }
1358
- return s.status !== "active" && Vr(s, a, n), {
1358
+ return s.status !== "active" && Wr(s, a, n), {
1359
1359
  snapshot: s,
1360
1360
  microstates: i
1361
1361
  };
1362
1362
  }
1363
- function Vr(e, t, n) {
1363
+ function Wr(e, t, n) {
1364
1364
  return lt(e, t, n, Object.values(e.children).map((r) => bs(r)), []);
1365
1365
  }
1366
- function zr(e, t) {
1366
+ function Vr(e, t) {
1367
1367
  return t.machine.getTransitionData(t, e);
1368
1368
  }
1369
1369
  function pi(e, t) {
1370
- const n = /* @__PURE__ */ new Set(), r = e._nodes.filter(er);
1370
+ const n = /* @__PURE__ */ new Set(), r = e._nodes.filter(Qn);
1371
1371
  for (const s of r)
1372
1372
  e:
1373
1373
  for (const i of [s].concat(Ot(s, void 0)))
1374
1374
  if (i.always) {
1375
1375
  for (const a of i.always)
1376
- if (a.guard === void 0 || Qn(a.guard, e.context, t, e)) {
1376
+ if (a.guard === void 0 || Zn(a.guard, e.context, t, e)) {
1377
1377
  n.add(a);
1378
1378
  break e;
1379
1379
  }
@@ -1433,7 +1433,7 @@ function Jt(e, t) {
1433
1433
  toJSON: Ei
1434
1434
  };
1435
1435
  }
1436
- function Ze(e, t = {}) {
1436
+ function Xe(e, t = {}) {
1437
1437
  return Jt({
1438
1438
  ...e,
1439
1439
  ...t
@@ -1477,7 +1477,7 @@ function Ps(e) {
1477
1477
  t ?? (t = Array.isArray(e) ? e.slice() : {
1478
1478
  ...e
1479
1479
  }), t[n] = {
1480
- xstate$$type: Zn,
1480
+ xstate$$type: Xn,
1481
1481
  id: r.id
1482
1482
  };
1483
1483
  else {
@@ -1531,7 +1531,7 @@ function Ri(e, t) {
1531
1531
  }
1532
1532
  return n.type = "xstate.raise", n.event = e, n.id = t == null ? void 0 : t.id, n.delay = t == null ? void 0 : t.delay, n.resolve = wi, n.execute = Ti, n;
1533
1533
  }
1534
- const Hr = /* @__PURE__ */ new WeakMap();
1534
+ const zr = /* @__PURE__ */ new WeakMap();
1535
1535
  function Oi(e) {
1536
1536
  return {
1537
1537
  config: e,
@@ -1543,7 +1543,7 @@ function Oi(e) {
1543
1543
  receivers: void 0,
1544
1544
  dispose: void 0
1545
1545
  };
1546
- Hr.set(s, a), a.dispose = e({
1546
+ zr.set(s, a), a.dispose = e({
1547
1547
  input: n.input,
1548
1548
  system: i,
1549
1549
  self: s,
@@ -1557,7 +1557,7 @@ function Oi(e) {
1557
1557
  },
1558
1558
  transition: (n, r, s) => {
1559
1559
  var a, c;
1560
- const i = Hr.get(s.self);
1560
+ const i = zr.get(s.self);
1561
1561
  return r.type === Tt ? (n = {
1562
1562
  ...n,
1563
1563
  status: "stopped",
@@ -1574,7 +1574,7 @@ function Oi(e) {
1574
1574
  restoreSnapshot: (n) => n
1575
1575
  };
1576
1576
  }
1577
- const qr = "xstate.promise.resolve", Yr = "xstate.promise.reject";
1577
+ const Hr = "xstate.promise.resolve", qr = "xstate.promise.reject";
1578
1578
  function Dn(e) {
1579
1579
  return {
1580
1580
  config: e,
@@ -1582,7 +1582,7 @@ function Dn(e) {
1582
1582
  if (n.status !== "active")
1583
1583
  return n;
1584
1584
  switch (r.type) {
1585
- case qr: {
1585
+ case Hr: {
1586
1586
  const s = r.data;
1587
1587
  return {
1588
1588
  ...n,
@@ -1591,7 +1591,7 @@ function Dn(e) {
1591
1591
  input: void 0
1592
1592
  };
1593
1593
  }
1594
- case Yr:
1594
+ case qr:
1595
1595
  return {
1596
1596
  ...n,
1597
1597
  status: "error",
@@ -1620,12 +1620,12 @@ function Dn(e) {
1620
1620
  self: r
1621
1621
  })).then((a) => {
1622
1622
  r.getSnapshot().status === "active" && s._relay(r, r, {
1623
- type: qr,
1623
+ type: Hr,
1624
1624
  data: a
1625
1625
  });
1626
1626
  }, (a) => {
1627
1627
  r.getSnapshot().status === "active" && s._relay(r, r, {
1628
- type: Yr,
1628
+ type: qr,
1629
1629
  data: a
1630
1630
  });
1631
1631
  });
@@ -1650,10 +1650,10 @@ function Ci(e, {
1650
1650
  input: l
1651
1651
  } = c;
1652
1652
  if (typeof a == "string") {
1653
- const d = Xn(t, a);
1653
+ const d = Gn(t, a);
1654
1654
  if (!d)
1655
1655
  throw new Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);
1656
- const m = Xe(d, {
1656
+ const m = ut(d, {
1657
1657
  id: c.id,
1658
1658
  parent: e.self,
1659
1659
  syncSnapshot: c.syncSnapshot,
@@ -1667,7 +1667,7 @@ function Ci(e, {
1667
1667
  });
1668
1668
  return s[m.id] = m, m;
1669
1669
  } else
1670
- return Xe(a, {
1670
+ return ut(a, {
1671
1671
  id: c.id,
1672
1672
  parent: e.self,
1673
1673
  syncSnapshot: c.syncSnapshot,
@@ -1704,7 +1704,7 @@ function Ai(e, t, n, r, {
1704
1704
  c[l] = typeof d == "function" ? d(a, r) : d;
1705
1705
  }
1706
1706
  const h = Object.assign({}, t.context, c);
1707
- return [Ze(t, {
1707
+ return [Xe(t, {
1708
1708
  context: h,
1709
1709
  children: Object.keys(i).length ? {
1710
1710
  ...t.children,
@@ -1717,7 +1717,7 @@ function ge(e) {
1717
1717
  }
1718
1718
  return t.type = "xstate.assign", t.assignment = e, t.resolve = Ai, t;
1719
1719
  }
1720
- let Jr = /* @__PURE__ */ function(e) {
1720
+ let Yr = /* @__PURE__ */ function(e) {
1721
1721
  return e.Parent = "#_parent", e.Internal = "#_internal", e;
1722
1722
  }({});
1723
1723
  function ki(e, t, n, r, {
@@ -1740,7 +1740,7 @@ function ki(e, t, n, r, {
1740
1740
  const E = typeof s == "function" ? s(n, r) : s;
1741
1741
  let w;
1742
1742
  if (typeof E == "string") {
1743
- if (E === Jr.Parent ? w = e.self._parent : E === Jr.Internal ? w = e.self : E.startsWith("#_") ? w = t.children[E.slice(2)] : w = (b = h.deferredActorIds) != null && b.includes(E) ? E : t.children[E], !w)
1743
+ if (E === Yr.Parent ? w = e.self._parent : E === Yr.Internal ? w = e.self : E.startsWith("#_") ? w = t.children[E.slice(2)] : w = (b = h.deferredActorIds) != null && b.includes(E) ? E : t.children[E], !w)
1744
1744
  throw new Error(`Unable to send event to actor '${E}' from machine '${t.machine.id}'.`);
1745
1745
  } else
1746
1746
  w = E || e.self;
@@ -1775,17 +1775,17 @@ function Pi(e, t) {
1775
1775
  );
1776
1776
  });
1777
1777
  }
1778
- function Kr(e, t, n) {
1778
+ function Jr(e, t, n) {
1779
1779
  function r(s, i) {
1780
1780
  }
1781
1781
  return r.type = "xsnapshot.sendTo", r.to = e, r.event = t, r.id = n == null ? void 0 : n.id, r.delay = n == null ? void 0 : n.delay, r.resolve = ki, r.retryResolve = xi, r.execute = Pi, r;
1782
1782
  }
1783
- const Gr = /* @__PURE__ */ new WeakMap();
1784
- function it(e, t, n) {
1785
- let r = Gr.get(e);
1783
+ const Kr = /* @__PURE__ */ new WeakMap();
1784
+ function ot(e, t, n) {
1785
+ let r = Kr.get(e);
1786
1786
  return r ? t in r || (r[t] = n()) : (r = {
1787
1787
  [t]: n()
1788
- }, Gr.set(e, r)), r[t];
1788
+ }, Kr.set(e, r)), r[t];
1789
1789
  }
1790
1790
  const Ii = {}, _t = (e) => typeof e == "string" ? {
1791
1791
  type: e
@@ -1794,9 +1794,9 @@ const Ii = {}, _t = (e) => typeof e == "string" ? {
1794
1794
  } : {
1795
1795
  type: e.name
1796
1796
  } : e;
1797
- class sr {
1797
+ class rr {
1798
1798
  constructor(t, n) {
1799
- if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(ds), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? Ur(this.config.states, (r, s) => new sr(r, {
1799
+ if (this.config = t, this.key = void 0, this.id = void 0, this.type = void 0, this.path = void 0, this.states = void 0, this.history = void 0, this.entry = void 0, this.exit = void 0, this.parent = void 0, this.machine = void 0, this.meta = void 0, this.output = void 0, this.order = -1, this.description = void 0, this.tags = [], this.transitions = void 0, this.always = void 0, this.parent = n._parent, this.key = n._key, this.machine = n._machine, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.id = this.config.id || [this.machine.id, ...this.path].join(ds), this.type = this.config.type || (this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.description = this.config.description, this.order = this.machine.idMap.size, this.machine.idMap.set(this.id, this), this.states = this.config.states ? Nr(this.config.states, (r, s) => new rr(r, {
1800
1800
  _parent: this,
1801
1801
  _key: s,
1802
1802
  _machine: this.machine
@@ -1806,7 +1806,7 @@ class sr {
1806
1806
  }
1807
1807
  /** @internal */
1808
1808
  _initialize() {
1809
- this.transitions = ei(this), this.config.always && (this.always = at(this.config.always).map((t) => Ke(this, hs, t))), Object.keys(this.states).forEach((t) => {
1809
+ this.transitions = ei(this), this.config.always && (this.always = it(this.config.always).map((t) => Ke(this, hs, t))), Object.keys(this.states).forEach((t) => {
1810
1810
  this.states[t]._initialize();
1811
1811
  });
1812
1812
  }
@@ -1833,7 +1833,7 @@ class sr {
1833
1833
  })
1834
1834
  } : void 0,
1835
1835
  history: this.history,
1836
- states: Ur(this.states, (t) => t.definition),
1836
+ states: Nr(this.states, (t) => t.definition),
1837
1837
  on: this.on,
1838
1838
  transitions: [...this.transitions.values()].flat().map((t) => ({
1839
1839
  ...t,
@@ -1857,11 +1857,11 @@ class sr {
1857
1857
  * The logic invoked as actors by this state node.
1858
1858
  */
1859
1859
  get invoke() {
1860
- return it(this, "invoke", () => $e(this.config.invoke).map((t, n) => {
1860
+ return ot(this, "invoke", () => $e(this.config.invoke).map((t, n) => {
1861
1861
  const {
1862
1862
  src: r,
1863
1863
  systemId: s
1864
- } = t, i = t.id ?? Br(this.id, n), a = typeof r == "string" ? r : `xstate.invoke.${Br(this.id, n)}`;
1864
+ } = t, i = t.id ?? Lr(this.id, n), a = typeof r == "string" ? r : `xstate.invoke.${Lr(this.id, n)}`;
1865
1865
  return {
1866
1866
  ...t,
1867
1867
  src: a,
@@ -1887,26 +1887,26 @@ class sr {
1887
1887
  * The mapping of events to transitions.
1888
1888
  */
1889
1889
  get on() {
1890
- return it(this, "on", () => [...this.transitions].flatMap(([n, r]) => r.map((s) => [n, s])).reduce((n, [r, s]) => (n[r] = n[r] || [], n[r].push(s), n), {}));
1890
+ return ot(this, "on", () => [...this.transitions].flatMap(([n, r]) => r.map((s) => [n, s])).reduce((n, [r, s]) => (n[r] = n[r] || [], n[r].push(s), n), {}));
1891
1891
  }
1892
1892
  get after() {
1893
- return it(this, "delayedTransitions", () => Qo(this));
1893
+ return ot(this, "delayedTransitions", () => Qo(this));
1894
1894
  }
1895
1895
  get initial() {
1896
- return it(this, "initial", () => ti(this, this.config.initial));
1896
+ return ot(this, "initial", () => ti(this, this.config.initial));
1897
1897
  }
1898
1898
  /** @internal */
1899
1899
  next(t, n) {
1900
1900
  const r = n.type, s = [];
1901
1901
  let i;
1902
- const a = it(this, `candidates-${r}`, () => Zo(this, r));
1902
+ const a = ot(this, `candidates-${r}`, () => Zo(this, r));
1903
1903
  for (const c of a) {
1904
1904
  const {
1905
1905
  guard: h
1906
1906
  } = c, l = t.context;
1907
1907
  let d = !1;
1908
1908
  try {
1909
- d = !h || Qn(h, l, n, t);
1909
+ d = !h || Zn(h, l, n, t);
1910
1910
  } catch (m) {
1911
1911
  const E = typeof h == "string" ? h : typeof h == "object" ? h.type : void 0;
1912
1912
  throw new Error(`Unable to evaluate guard ${E ? `'${E}' ` : ""}in transition for event '${r}' in state node '${this.id}':
@@ -1923,7 +1923,7 @@ ${m.message}`);
1923
1923
  * All the event types accepted by this state node and its descendants.
1924
1924
  */
1925
1925
  get events() {
1926
- return it(this, "events", () => {
1926
+ return ot(this, "events", () => {
1927
1927
  const {
1928
1928
  states: t
1929
1929
  } = this, n = new Set(this.ownEvents);
@@ -1948,14 +1948,14 @@ ${m.message}`);
1948
1948
  }
1949
1949
  }
1950
1950
  const ji = "#";
1951
- class or {
1951
+ class sr {
1952
1952
  constructor(t, n) {
1953
1953
  this.config = t, this.version = void 0, this.implementations = void 0, this.__xstatenode = !0, this.idMap = /* @__PURE__ */ new Map(), this.root = void 0, this.id = void 0, this.states = void 0, this.events = void 0, this.__TResolvedTypesMeta = void 0, this.id = t.id || "(machine)", this.implementations = {
1954
1954
  actors: (n == null ? void 0 : n.actors) ?? {},
1955
1955
  actions: (n == null ? void 0 : n.actions) ?? {},
1956
1956
  delays: (n == null ? void 0 : n.delays) ?? {},
1957
1957
  guards: (n == null ? void 0 : n.guards) ?? {}
1958
- }, this.version = this.config.version, this.transition = this.transition.bind(this), this.getInitialSnapshot = this.getInitialSnapshot.bind(this), this.getPersistedSnapshot = this.getPersistedSnapshot.bind(this), this.restoreSnapshot = this.restoreSnapshot.bind(this), this.start = this.start.bind(this), this.root = new sr(t, {
1958
+ }, this.version = this.config.version, this.transition = this.transition.bind(this), this.getInitialSnapshot = this.getInitialSnapshot.bind(this), this.getPersistedSnapshot = this.getPersistedSnapshot.bind(this), this.restoreSnapshot = this.restoreSnapshot.bind(this), this.start = this.start.bind(this), this.root = new rr(t, {
1959
1959
  _key: this.id,
1960
1960
  _machine: this
1961
1961
  }), this.root._initialize(), this.states = this.root.states, this.events = this.root.events;
@@ -1976,7 +1976,7 @@ class or {
1976
1976
  actors: s,
1977
1977
  delays: i
1978
1978
  } = this.implementations;
1979
- return new or(this.config, {
1979
+ return new sr(this.config, {
1980
1980
  actions: {
1981
1981
  ...n,
1982
1982
  ...t.actions
@@ -2001,7 +2001,7 @@ class or {
2001
2001
  _nodes: [...r],
2002
2002
  context: t.context || {},
2003
2003
  children: {},
2004
- status: tr(r, this.root) ? "done" : t.status || "active",
2004
+ status: er(r, this.root) ? "done" : t.status || "active",
2005
2005
  output: t.output,
2006
2006
  error: t.error,
2007
2007
  historyValue: t.historyValue
@@ -2028,7 +2028,7 @@ class or {
2028
2028
  return jn(t, n, r).microstates;
2029
2029
  }
2030
2030
  getTransitionData(t, n) {
2031
- return nr(this.root, t.value, t, n) || [];
2031
+ return tr(this.root, t.value, t, n) || [];
2032
2032
  }
2033
2033
  /**
2034
2034
  * The initial state _before_ evaluating any microsteps.
@@ -2076,7 +2076,7 @@ class or {
2076
2076
  });
2077
2077
  }
2078
2078
  getStateNodeById(t) {
2079
- const n = Gn(t), r = n.slice(1), s = rn(n[0]) ? n[0].slice(ji.length) : n[0], i = this.idMap.get(s);
2079
+ const n = Kn(t), r = n.slice(1), s = rn(n[0]) ? n[0].slice(ji.length) : n[0], i = this.idMap.get(s);
2080
2080
  if (!i)
2081
2081
  throw new Error(`Child state node '#${s}' does not exist on machine '${this.id}'`);
2082
2082
  return en(i, r);
@@ -2093,10 +2093,10 @@ class or {
2093
2093
  restoreSnapshot(t, n) {
2094
2094
  const r = {}, s = t.children;
2095
2095
  Object.keys(s).forEach((h) => {
2096
- const l = s[h], d = l.snapshot, m = l.src, E = typeof m == "string" ? Xn(this, m) : m;
2096
+ const l = s[h], d = l.snapshot, m = l.src, E = typeof m == "string" ? Gn(this, m) : m;
2097
2097
  if (!E)
2098
2098
  return;
2099
- const w = Xe(E, {
2099
+ const w = ut(E, {
2100
2100
  id: h,
2101
2101
  parent: n.self,
2102
2102
  syncSnapshot: l.syncSnapshot,
@@ -2118,7 +2118,7 @@ class or {
2118
2118
  for (let d in h) {
2119
2119
  const m = h[d];
2120
2120
  if (m && typeof m == "object") {
2121
- if ("xstate$$type" in m && m.xstate$$type === Zn) {
2121
+ if ("xstate$$type" in m && m.xstate$$type === Xn) {
2122
2122
  h[d] = l[m.id];
2123
2123
  continue;
2124
2124
  }
@@ -2131,9 +2131,9 @@ class or {
2131
2131
  }
2132
2132
  }
2133
2133
  function Di(e, t) {
2134
- return new or(e, t);
2134
+ return new sr(e, t);
2135
2135
  }
2136
- function ir({
2136
+ function or({
2137
2137
  actors: e,
2138
2138
  actions: t,
2139
2139
  guards: n,
@@ -2153,7 +2153,7 @@ function Is(e, t) {
2153
2153
  return e.apply(t, arguments);
2154
2154
  };
2155
2155
  }
2156
- const { toString: $i } = Object.prototype, { getPrototypeOf: ar } = Object, sn = ((e) => (t) => {
2156
+ const { toString: $i } = Object.prototype, { getPrototypeOf: ir } = Object, sn = ((e) => (t) => {
2157
2157
  const n = $i.call(t);
2158
2158
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
2159
2159
  })(/* @__PURE__ */ Object.create(null)), we = (e) => (e = e.toLowerCase(), (t) => sn(t) === e), on = (e) => (t) => typeof t === e, { isArray: ht } = Array, Rt = on("undefined");
@@ -2168,7 +2168,7 @@ function Mi(e) {
2168
2168
  const Ni = on("string"), ye = on("function"), Ds = on("number"), an = (e) => e !== null && typeof e == "object", Ui = (e) => e === !0 || e === !1, Kt = (e) => {
2169
2169
  if (sn(e) !== "object")
2170
2170
  return !1;
2171
- const t = ar(e);
2171
+ const t = ir(e);
2172
2172
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
2173
2173
  }, Li = we("Date"), Bi = we("File"), Wi = we("Blob"), Vi = we("FileList"), zi = (e) => an(e) && ye(e.pipe), Hi = (e) => {
2174
2174
  let t;
@@ -2222,7 +2222,7 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
2222
2222
  do {
2223
2223
  for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
2224
2224
  a = s[i], (!r || r(a, e, t)) && !c[a] && (t[a] = e[a], c[a] = !0);
2225
- e = n !== !1 && ar(e);
2225
+ e = n !== !1 && ir(e);
2226
2226
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
2227
2227
  return t;
2228
2228
  }, Zi = (e, t, n) => {
@@ -2241,7 +2241,7 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
2241
2241
  for (; t-- > 0; )
2242
2242
  n[t] = e[t];
2243
2243
  return n;
2244
- }, ea = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ar(Uint8Array)), ta = (e, t) => {
2244
+ }, ea = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ir(Uint8Array)), ta = (e, t) => {
2245
2245
  const r = (e && e[Symbol.iterator]).call(e);
2246
2246
  let s;
2247
2247
  for (; (s = r.next()) && !s.done; ) {
@@ -2259,7 +2259,7 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
2259
2259
  function(n, r, s) {
2260
2260
  return r.toUpperCase() + s;
2261
2261
  }
2262
- ), Xr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), oa = we("RegExp"), Ns = (e, t) => {
2262
+ ), Gr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), oa = we("RegExp"), Ns = (e, t) => {
2263
2263
  const n = Object.getOwnPropertyDescriptors(e), r = {};
2264
2264
  Ct(n, (s, i) => {
2265
2265
  let a;
@@ -2288,10 +2288,10 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
2288
2288
  };
2289
2289
  return ht(e) ? r(e) : r(String(e).split(t)), n;
2290
2290
  }, ua = () => {
2291
- }, ca = (e, t) => (e = +e, Number.isFinite(e) ? e : t), $n = "abcdefghijklmnopqrstuvwxyz", Zr = "0123456789", Us = {
2292
- DIGIT: Zr,
2291
+ }, ca = (e, t) => (e = +e, Number.isFinite(e) ? e : t), $n = "abcdefghijklmnopqrstuvwxyz", Xr = "0123456789", Us = {
2292
+ DIGIT: Xr,
2293
2293
  ALPHA: $n,
2294
- ALPHA_DIGIT: $n + $n.toUpperCase() + Zr
2294
+ ALPHA_DIGIT: $n + $n.toUpperCase() + Xr
2295
2295
  }, fa = (e = 16, t = Us.ALPHA_DIGIT) => {
2296
2296
  let n = "";
2297
2297
  const { length: r } = t;
@@ -2354,8 +2354,8 @@ const da = (e) => {
2354
2354
  forEachEntry: ta,
2355
2355
  matchAll: na,
2356
2356
  isHTMLForm: ra,
2357
- hasOwnProperty: Xr,
2358
- hasOwnProp: Xr,
2357
+ hasOwnProperty: Gr,
2358
+ hasOwnProp: Gr,
2359
2359
  // an alias to avoid ESLint no-prototype-builtins detection
2360
2360
  reduceDescriptors: Ns,
2361
2361
  freezeMethods: ia,
@@ -2430,7 +2430,7 @@ function zn(e) {
2430
2430
  function Ws(e) {
2431
2431
  return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
2432
2432
  }
2433
- function Qr(e, t, n) {
2433
+ function Zr(e, t, n) {
2434
2434
  return e ? e.concat(t).map(function(s, i) {
2435
2435
  return s = Ws(s), !n && i ? "[" + s + "]" : s;
2436
2436
  }).join(n ? "." : "") : t;
@@ -2472,12 +2472,12 @@ function un(e, t, n) {
2472
2472
  return O = Ws(O), J.forEach(function(he, pe) {
2473
2473
  !(g.isUndefined(he) || he === null) && t.append(
2474
2474
  // eslint-disable-next-line no-nested-ternary
2475
- a === !0 ? Qr([O], pe, i) : a === null ? O : O + "[]",
2475
+ a === !0 ? Zr([O], pe, i) : a === null ? O : O + "[]",
2476
2476
  l(he)
2477
2477
  );
2478
2478
  }), !1;
2479
2479
  }
2480
- return zn(b) ? !0 : (t.append(Qr(j, O, i), l(b)), !1);
2480
+ return zn(b) ? !0 : (t.append(Zr(j, O, i), l(b)), !1);
2481
2481
  }
2482
2482
  const m = [], E = Object.assign(va, {
2483
2483
  defaultVisitor: d,
@@ -2503,7 +2503,7 @@ function un(e, t, n) {
2503
2503
  throw new TypeError("data must be an object");
2504
2504
  return w(e), t;
2505
2505
  }
2506
- function es(e) {
2506
+ function Qr(e) {
2507
2507
  const t = {
2508
2508
  "!": "%21",
2509
2509
  "'": "%27",
@@ -2517,17 +2517,17 @@ function es(e) {
2517
2517
  return t[r];
2518
2518
  });
2519
2519
  }
2520
- function ur(e, t) {
2520
+ function ar(e, t) {
2521
2521
  this._pairs = [], e && un(e, this, t);
2522
2522
  }
2523
- const Vs = ur.prototype;
2523
+ const Vs = ar.prototype;
2524
2524
  Vs.append = function(t, n) {
2525
2525
  this._pairs.push([t, n]);
2526
2526
  };
2527
2527
  Vs.toString = function(t) {
2528
2528
  const n = t ? function(r) {
2529
- return t.call(this, r, es);
2530
- } : es;
2529
+ return t.call(this, r, Qr);
2530
+ } : Qr;
2531
2531
  return this._pairs.map(function(s) {
2532
2532
  return n(s[0]) + "=" + n(s[1]);
2533
2533
  }, "").join("&");
@@ -2540,7 +2540,7 @@ function zs(e, t, n) {
2540
2540
  return e;
2541
2541
  const r = n && n.encode || ga, s = n && n.serialize;
2542
2542
  let i;
2543
- if (s ? i = s(t, n) : i = g.isURLSearchParams(t) ? t.toString() : new ur(t, n).toString(r), i) {
2543
+ if (s ? i = s(t, n) : i = g.isURLSearchParams(t) ? t.toString() : new ar(t, n).toString(r), i) {
2544
2544
  const a = e.indexOf("#");
2545
2545
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
2546
2546
  }
@@ -2600,11 +2600,11 @@ class _a {
2600
2600
  });
2601
2601
  }
2602
2602
  }
2603
- const ts = _a, Hs = {
2603
+ const es = _a, Hs = {
2604
2604
  silentJSONParsing: !0,
2605
2605
  forcedJSONParsing: !0,
2606
2606
  clarifyTimeoutError: !1
2607
- }, Ea = typeof URLSearchParams < "u" ? URLSearchParams : ur, ba = typeof FormData < "u" ? FormData : null, Sa = typeof Blob < "u" ? Blob : null, wa = (() => {
2607
+ }, Ea = typeof URLSearchParams < "u" ? URLSearchParams : ar, ba = typeof FormData < "u" ? FormData : null, Sa = typeof Blob < "u" ? Blob : null, wa = (() => {
2608
2608
  let e;
2609
2609
  return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
2610
2610
  })(), Ta = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
@@ -2662,7 +2662,7 @@ function Aa(e, t, n) {
2662
2662
  }
2663
2663
  return (n || JSON.stringify)(e);
2664
2664
  }
2665
- const cr = {
2665
+ const ur = {
2666
2666
  transitional: Hs,
2667
2667
  adapter: _e.isNode ? "http" : "xhr",
2668
2668
  transformRequest: [function(t, n) {
@@ -2691,7 +2691,7 @@ const cr = {
2691
2691
  return i || s ? (n.setContentType("application/json", !1), Aa(t)) : t;
2692
2692
  }],
2693
2693
  transformResponse: [function(t) {
2694
- const n = this.transitional || cr.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
2694
+ const n = this.transitional || ur.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
2695
2695
  if (t && g.isString(t) && (r && !this.responseType || s)) {
2696
2696
  const a = !(n && n.silentJSONParsing) && s;
2697
2697
  try {
@@ -2727,9 +2727,9 @@ const cr = {
2727
2727
  }
2728
2728
  };
2729
2729
  g.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2730
- cr.headers[e] = {};
2730
+ ur.headers[e] = {};
2731
2731
  });
2732
- const fr = cr, ka = g.toObjectSet([
2732
+ const cr = ur, ka = g.toObjectSet([
2733
2733
  "age",
2734
2734
  "authorization",
2735
2735
  "content-length",
@@ -2754,7 +2754,7 @@ const fr = cr, ka = g.toObjectSet([
2754
2754
  `).forEach(function(a) {
2755
2755
  s = a.indexOf(":"), n = a.substring(0, s).trim().toLowerCase(), r = a.substring(s + 1).trim(), !(!n || t[n] && ka[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
2756
2756
  }), t;
2757
- }, ns = Symbol("internals");
2757
+ }, ts = Symbol("internals");
2758
2758
  function Et(e) {
2759
2759
  return e && String(e).trim().toLowerCase();
2760
2760
  }
@@ -2892,7 +2892,7 @@ class cn {
2892
2892
  return n.forEach((s) => r.set(s)), r;
2893
2893
  }
2894
2894
  static accessor(t) {
2895
- const r = (this[ns] = this[ns] = {
2895
+ const r = (this[ts] = this[ts] = {
2896
2896
  accessors: {}
2897
2897
  }).accessors, s = this.prototype;
2898
2898
  function i(a) {
@@ -2915,7 +2915,7 @@ g.reduceDescriptors(cn.prototype, ({ value: e }, t) => {
2915
2915
  g.freezeMethods(cn);
2916
2916
  const Ce = cn;
2917
2917
  function Mn(e, t) {
2918
- const n = this || fr, r = t || n, s = Ce.from(r.headers);
2918
+ const n = this || cr, r = t || n, s = Ce.from(r.headers);
2919
2919
  let i = r.data;
2920
2920
  return g.forEach(e, function(c) {
2921
2921
  i = c.call(n, i, s.normalize(), t ? t.status : void 0);
@@ -3032,7 +3032,7 @@ function Ba(e, t) {
3032
3032
  return w ? Math.round(E * 1e3 / w) : void 0;
3033
3033
  };
3034
3034
  }
3035
- function rs(e, t) {
3035
+ function ns(e, t) {
3036
3036
  let n = 0;
3037
3037
  const r = Ba(50, 250);
3038
3038
  return (s) => {
@@ -3106,7 +3106,7 @@ const Wa = typeof XMLHttpRequest < "u", Va = Wa && function(e) {
3106
3106
  }
3107
3107
  s === void 0 && i.setContentType(null), "setRequestHeader" in l && g.forEach(i.toJSON(), function(b, O) {
3108
3108
  l.setRequestHeader(O, b);
3109
- }), g.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", rs(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", rs(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (w) => {
3109
+ }), g.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", ns(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", ns(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (w) => {
3110
3110
  l && (r(!w || w.type ? new At(null, e, l) : w), l.abort(), l = null);
3111
3111
  }, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
3112
3112
  const E = La(d);
@@ -3153,11 +3153,11 @@ function Nn(e) {
3153
3153
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3154
3154
  throw new At(null, e);
3155
3155
  }
3156
- function ss(e) {
3156
+ function rs(e) {
3157
3157
  return Nn(e), e.headers = Ce.from(e.headers), e.data = Mn.call(
3158
3158
  e,
3159
3159
  e.transformRequest
3160
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ks.getAdapter(e.adapter || fr.adapter)(e).then(function(r) {
3160
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ks.getAdapter(e.adapter || cr.adapter)(e).then(function(r) {
3161
3161
  return Nn(e), r.data = Mn.call(
3162
3162
  e,
3163
3163
  e.transformResponse,
@@ -3171,7 +3171,7 @@ function ss(e) {
3171
3171
  ), r.response.headers = Ce.from(r.response.headers))), Promise.reject(r);
3172
3172
  });
3173
3173
  }
3174
- const os = (e) => e instanceof Ce ? e.toJSON() : e;
3174
+ const ss = (e) => e instanceof Ce ? e.toJSON() : e;
3175
3175
  function dt(e, t) {
3176
3176
  t = t || {};
3177
3177
  const n = {};
@@ -3230,21 +3230,21 @@ function dt(e, t) {
3230
3230
  socketPath: a,
3231
3231
  responseEncoding: a,
3232
3232
  validateStatus: c,
3233
- headers: (l, d) => s(os(l), os(d), !0)
3233
+ headers: (l, d) => s(ss(l), ss(d), !0)
3234
3234
  };
3235
3235
  return g.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
3236
3236
  const m = h[d] || s, E = m(e[d], t[d], d);
3237
3237
  g.isUndefined(E) && m !== c || (n[d] = E);
3238
3238
  }), n;
3239
3239
  }
3240
- const Gs = "1.5.0", lr = {};
3240
+ const Gs = "1.5.0", fr = {};
3241
3241
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
3242
- lr[e] = function(r) {
3242
+ fr[e] = function(r) {
3243
3243
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
3244
3244
  };
3245
3245
  });
3246
- const is = {};
3247
- lr.transitional = function(t, n, r) {
3246
+ const os = {};
3247
+ fr.transitional = function(t, n, r) {
3248
3248
  function s(i, a) {
3249
3249
  return "[Axios v" + Gs + "] Transitional option '" + i + "'" + a + (r ? ". " + r : "");
3250
3250
  }
@@ -3254,7 +3254,7 @@ lr.transitional = function(t, n, r) {
3254
3254
  s(a, " has been removed" + (n ? " in " + n : "")),
3255
3255
  L.ERR_DEPRECATED
3256
3256
  );
3257
- return n && !is[a] && (is[a] = !0, console.warn(
3257
+ return n && !os[a] && (os[a] = !0, console.warn(
3258
3258
  s(
3259
3259
  a,
3260
3260
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -3281,13 +3281,13 @@ function za(e, t, n) {
3281
3281
  }
3282
3282
  const Hn = {
3283
3283
  assertOptions: za,
3284
- validators: lr
3284
+ validators: fr
3285
3285
  }, De = Hn.validators;
3286
3286
  class nn {
3287
3287
  constructor(t) {
3288
3288
  this.defaults = t, this.interceptors = {
3289
- request: new ts(),
3290
- response: new ts()
3289
+ request: new es(),
3290
+ response: new es()
3291
3291
  };
3292
3292
  }
3293
3293
  /**
@@ -3332,7 +3332,7 @@ class nn {
3332
3332
  });
3333
3333
  let d, m = 0, E;
3334
3334
  if (!h) {
3335
- const b = [ss.bind(this), void 0];
3335
+ const b = [rs.bind(this), void 0];
3336
3336
  for (b.unshift.apply(b, c), b.push.apply(b, l), E = b.length, d = Promise.resolve(n); m < E; )
3337
3337
  d = d.then(b[m++], b[m++]);
3338
3338
  return d;
@@ -3349,7 +3349,7 @@ class nn {
3349
3349
  }
3350
3350
  }
3351
3351
  try {
3352
- d = ss.call(this, w);
3352
+ d = rs.call(this, w);
3353
3353
  } catch (b) {
3354
3354
  return Promise.reject(b);
3355
3355
  }
@@ -3388,7 +3388,7 @@ g.forEach(["post", "put", "patch"], function(t) {
3388
3388
  nn.prototype[t] = n(), nn.prototype[t + "Form"] = n(!0);
3389
3389
  });
3390
3390
  const Zt = nn;
3391
- class dr {
3391
+ class lr {
3392
3392
  constructor(t) {
3393
3393
  if (typeof t != "function")
3394
3394
  throw new TypeError("executor must be a function.");
@@ -3449,14 +3449,14 @@ class dr {
3449
3449
  static source() {
3450
3450
  let t;
3451
3451
  return {
3452
- token: new dr(function(s) {
3452
+ token: new lr(function(s) {
3453
3453
  t = s;
3454
3454
  }),
3455
3455
  cancel: t
3456
3456
  };
3457
3457
  }
3458
3458
  }
3459
- const Ha = dr;
3459
+ const Ha = lr;
3460
3460
  function qa(e) {
3461
3461
  return function(n) {
3462
3462
  return e.apply(null, n);
@@ -3540,7 +3540,7 @@ function Xs(e) {
3540
3540
  return Xs(dt(e, s));
3541
3541
  }, n;
3542
3542
  }
3543
- const re = Xs(fr);
3543
+ const re = Xs(cr);
3544
3544
  re.Axios = Zt;
3545
3545
  re.CanceledError = At;
3546
3546
  re.CancelToken = Ha;
@@ -3561,14 +3561,14 @@ re.getAdapter = Ks.getAdapter;
3561
3561
  re.HttpStatusCode = Ja;
3562
3562
  re.default = re;
3563
3563
  const Ka = re;
3564
- async function as(e, t) {
3564
+ async function is(e, t) {
3565
3565
  const n = await fetch(e, t);
3566
3566
  return n.status === 200 ? n.json() : Promise.resolve({
3567
3567
  message: n.statusText,
3568
3568
  success: !1
3569
3569
  });
3570
3570
  }
3571
- const Yn = ir({
3571
+ const as = or({
3572
3572
  types: {
3573
3573
  context: {},
3574
3574
  events: {},
@@ -3665,7 +3665,7 @@ const Yn = ir({
3665
3665
  throw new Error("Could not complete refresh request (server)");
3666
3666
  }
3667
3667
  } else {
3668
- t = await as(
3668
+ t = await is(
3669
3669
  e.context.endpoints.refresh,
3670
3670
  {
3671
3671
  method: "POST",
@@ -3695,7 +3695,7 @@ const Yn = ir({
3695
3695
  }),
3696
3696
  authenticate: Dn(async ({ input: e }) => {
3697
3697
  var r;
3698
- const n = await as(
3698
+ const n = await is(
3699
3699
  e.context.endpoints.login,
3700
3700
  {
3701
3701
  method: "POST",
@@ -3865,7 +3865,7 @@ const Yn = ir({
3865
3865
  // },
3866
3866
  }
3867
3867
  });
3868
- var Jn = { exports: {} }, bt = {}, Kn = { exports: {} }, $ = {};
3868
+ var Yn = { exports: {} }, bt = {}, Jn = { exports: {} }, $ = {};
3869
3869
  /**
3870
3870
  * @license React
3871
3871
  * react.production.min.js
@@ -4286,7 +4286,7 @@ function Xa() {
4286
4286
  return Object.seal(o), o;
4287
4287
  }
4288
4288
  var kt = Array.isArray;
4289
- function Qe(o) {
4289
+ function Ze(o) {
4290
4290
  return kt(o);
4291
4291
  }
4292
4292
  function ln(o) {
@@ -4295,7 +4295,7 @@ function Xa() {
4295
4295
  return y;
4296
4296
  }
4297
4297
  }
4298
- function et(o) {
4298
+ function Qe(o) {
4299
4299
  try {
4300
4300
  return Be(o), !1;
4301
4301
  } catch {
@@ -4306,7 +4306,7 @@ function Xa() {
4306
4306
  return "" + o;
4307
4307
  }
4308
4308
  function We(o) {
4309
- if (et(o))
4309
+ if (Qe(o))
4310
4310
  return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ln(o)), Be(o);
4311
4311
  }
4312
4312
  function xt(o, u, y) {
@@ -4364,13 +4364,13 @@ function Xa() {
4364
4364
  }
4365
4365
  return null;
4366
4366
  }
4367
- var ze = Object.prototype.hasOwnProperty, tt = {
4367
+ var ze = Object.prototype.hasOwnProperty, et = {
4368
4368
  key: !0,
4369
4369
  ref: !0,
4370
4370
  __self: !0,
4371
4371
  __source: !0
4372
- }, Pt, It, nt;
4373
- nt = {};
4372
+ }, Pt, It, tt;
4373
+ tt = {};
4374
4374
  function yt(o) {
4375
4375
  if (ze.call(o, "ref")) {
4376
4376
  var u = Object.getOwnPropertyDescriptor(o, "ref").get;
@@ -4408,7 +4408,7 @@ function Xa() {
4408
4408
  function Dt(o) {
4409
4409
  if (typeof o.ref == "string" && ue.current && o.__self && ue.current.stateNode !== o.__self) {
4410
4410
  var u = Se(ue.current.type);
4411
- nt[u] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', u, o.ref), nt[u] = !0);
4411
+ tt[u] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', u, o.ref), tt[u] = !0);
4412
4412
  }
4413
4413
  }
4414
4414
  var He = function(o, u, y, v, S, x, A) {
@@ -4445,7 +4445,7 @@ function Xa() {
4445
4445
  if (u != null) {
4446
4446
  yt(u) && (A = u.ref, Dt(u)), xe(u) && (We(u.key), x = "" + u.key), P = u.__self === void 0 ? null : u.__self, N = u.__source === void 0 ? null : u.__source;
4447
4447
  for (v in u)
4448
- ze.call(u, v) && !tt.hasOwnProperty(v) && (S[v] = u[v]);
4448
+ ze.call(u, v) && !et.hasOwnProperty(v) && (S[v] = u[v]);
4449
4449
  }
4450
4450
  var q = arguments.length - 2;
4451
4451
  if (q === 1)
@@ -4479,7 +4479,7 @@ function Xa() {
4479
4479
  var G;
4480
4480
  o.type && o.type.defaultProps && (G = o.type.defaultProps);
4481
4481
  for (v in u)
4482
- ze.call(u, v) && !tt.hasOwnProperty(v) && (u[v] === void 0 && G !== void 0 ? S[v] = G[v] : S[v] = u[v]);
4482
+ ze.call(u, v) && !et.hasOwnProperty(v) && (u[v] === void 0 && G !== void 0 ? S[v] = G[v] : S[v] = u[v]);
4483
4483
  }
4484
4484
  var X = arguments.length - 2;
4485
4485
  if (X === 1)
@@ -4504,7 +4504,7 @@ function Xa() {
4504
4504
  });
4505
4505
  return "$" + v;
4506
4506
  }
4507
- var rt = !1, Ft = /\/+/g;
4507
+ var nt = !1, Ft = /\/+/g;
4508
4508
  function Re(o) {
4509
4509
  return o.replace(Ft, "$&/");
4510
4510
  }
@@ -4532,7 +4532,7 @@ function Xa() {
4532
4532
  }
4533
4533
  if (A) {
4534
4534
  var P = o, N = S(P), q = v === "" ? $t + qe(P, 0) : v;
4535
- if (Qe(N)) {
4535
+ if (Ze(N)) {
4536
4536
  var G = "";
4537
4537
  q != null && (G = Re(q) + "/"), Ie(N, u, G, "", function(Co) {
4538
4538
  return Co;
@@ -4552,19 +4552,19 @@ function Xa() {
4552
4552
  return 1;
4553
4553
  }
4554
4554
  var X, Q, ne = 0, ae = v === "" ? $t : v + mn;
4555
- if (Qe(o))
4555
+ if (Ze(o))
4556
4556
  for (var Yt = 0; Yt < o.length; Yt++)
4557
4557
  X = o[Yt], Q = ae + qe(X, Yt), ne += Ie(X, u, y, Q, S);
4558
4558
  else {
4559
4559
  var Pn = W(o);
4560
4560
  if (typeof Pn == "function") {
4561
- var jr = o;
4562
- Pn === jr.entries && (rt || me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), rt = !0);
4563
- for (var Ro = Pn.call(jr), Dr, Oo = 0; !(Dr = Ro.next()).done; )
4564
- X = Dr.value, Q = ae + qe(X, Oo++), ne += Ie(X, u, y, Q, S);
4561
+ var Ir = o;
4562
+ Pn === Ir.entries && (nt || me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), nt = !0);
4563
+ for (var Ro = Pn.call(Ir), jr, Oo = 0; !(jr = Ro.next()).done; )
4564
+ X = jr.value, Q = ae + qe(X, Oo++), ne += Ie(X, u, y, Q, S);
4565
4565
  } else if (x === "object") {
4566
- var $r = String(o);
4567
- throw new Error("Objects are not valid as a React child (found: " + ($r === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : $r) + "). If you meant to render a collection of children, use an array instead.");
4566
+ var Dr = String(o);
4567
+ throw new Error("Objects are not valid as a React child (found: " + (Dr === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : Dr) + "). If you meant to render a collection of children, use an array instead.");
4568
4568
  }
4569
4569
  }
4570
4570
  return ne;
@@ -4876,18 +4876,18 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
4876
4876
  var v = C();
4877
4877
  return v.useSyncExternalStore(o, u, y);
4878
4878
  }
4879
- var gt = 0, hr, pr, yr, mr, vr, gr, _r;
4880
- function Er() {
4879
+ var gt = 0, dr, hr, pr, yr, mr, vr, gr;
4880
+ function _r() {
4881
4881
  }
4882
- Er.__reactDisabledLog = !0;
4882
+ _r.__reactDisabledLog = !0;
4883
4883
  function oo() {
4884
4884
  {
4885
4885
  if (gt === 0) {
4886
- hr = console.log, pr = console.info, yr = console.warn, mr = console.error, vr = console.group, gr = console.groupCollapsed, _r = console.groupEnd;
4886
+ dr = console.log, hr = console.info, pr = console.warn, yr = console.error, mr = console.group, vr = console.groupCollapsed, gr = console.groupEnd;
4887
4887
  var o = {
4888
4888
  configurable: !0,
4889
4889
  enumerable: !0,
4890
- value: Er,
4890
+ value: _r,
4891
4891
  writable: !0
4892
4892
  };
4893
4893
  Object.defineProperties(console, {
@@ -4913,25 +4913,25 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
4913
4913
  };
4914
4914
  Object.defineProperties(console, {
4915
4915
  log: I({}, o, {
4916
- value: hr
4916
+ value: dr
4917
4917
  }),
4918
4918
  info: I({}, o, {
4919
- value: pr
4919
+ value: hr
4920
4920
  }),
4921
4921
  warn: I({}, o, {
4922
- value: yr
4922
+ value: pr
4923
4923
  }),
4924
4924
  error: I({}, o, {
4925
- value: mr
4925
+ value: yr
4926
4926
  }),
4927
4927
  group: I({}, o, {
4928
- value: vr
4928
+ value: mr
4929
4929
  }),
4930
4930
  groupCollapsed: I({}, o, {
4931
- value: gr
4931
+ value: vr
4932
4932
  }),
4933
4933
  groupEnd: I({}, o, {
4934
- value: _r
4934
+ value: gr
4935
4935
  })
4936
4936
  });
4937
4937
  }
@@ -4957,7 +4957,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
4957
4957
  var ao = typeof WeakMap == "function" ? WeakMap : Map;
4958
4958
  Wt = new ao();
4959
4959
  }
4960
- function br(o, u) {
4960
+ function Er(o, u) {
4961
4961
  if (!o || On)
4962
4962
  return "";
4963
4963
  {
@@ -5029,7 +5029,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5029
5029
  return typeof o == "function" && Wt.set(o, ne), ne;
5030
5030
  }
5031
5031
  function uo(o, u, y) {
5032
- return br(o, !1);
5032
+ return Er(o, !1);
5033
5033
  }
5034
5034
  function co(o) {
5035
5035
  var u = o.prototype;
@@ -5039,7 +5039,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5039
5039
  if (o == null)
5040
5040
  return "";
5041
5041
  if (typeof o == "function")
5042
- return br(o, co(o));
5042
+ return Er(o, co(o));
5043
5043
  if (typeof o == "string")
5044
5044
  return Bt(o);
5045
5045
  switch (o) {
@@ -5064,13 +5064,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5064
5064
  }
5065
5065
  return "";
5066
5066
  }
5067
- var Sr = {}, wr = oe.ReactDebugCurrentFrame;
5067
+ var br = {}, Sr = oe.ReactDebugCurrentFrame;
5068
5068
  function zt(o) {
5069
5069
  if (o) {
5070
5070
  var u = o._owner, y = Vt(o.type, o._source, u ? u.type : null);
5071
- wr.setExtraStackFrame(y);
5071
+ Sr.setExtraStackFrame(y);
5072
5072
  } else
5073
- wr.setExtraStackFrame(null);
5073
+ Sr.setExtraStackFrame(null);
5074
5074
  }
5075
5075
  function fo(o, u, y, v, S) {
5076
5076
  {
@@ -5087,11 +5087,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5087
5087
  } catch (q) {
5088
5088
  P = q;
5089
5089
  }
5090
- P && !(P instanceof Error) && (zt(S), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", y, A, typeof P), zt(null)), P instanceof Error && !(P.message in Sr) && (Sr[P.message] = !0, zt(S), k("Failed %s type: %s", y, P.message), zt(null));
5090
+ P && !(P instanceof Error) && (zt(S), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", y, A, typeof P), zt(null)), P instanceof Error && !(P.message in br) && (br[P.message] = !0, zt(S), k("Failed %s type: %s", y, P.message), zt(null));
5091
5091
  }
5092
5092
  }
5093
5093
  }
5094
- function st(o) {
5094
+ function rt(o) {
5095
5095
  if (o) {
5096
5096
  var u = o._owner, y = Vt(o.type, o._source, u ? u.type : null);
5097
5097
  Me(y);
@@ -5100,7 +5100,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5100
5100
  }
5101
5101
  var Cn;
5102
5102
  Cn = !1;
5103
- function Tr() {
5103
+ function wr() {
5104
5104
  if (ue.current) {
5105
5105
  var o = Se(ue.current.type);
5106
5106
  if (o)
@@ -5122,9 +5122,9 @@ Check your code at ` + u + ":" + y + ".";
5122
5122
  function ho(o) {
5123
5123
  return o != null ? lo(o.__source) : "";
5124
5124
  }
5125
- var Rr = {};
5125
+ var Tr = {};
5126
5126
  function po(o) {
5127
- var u = Tr();
5127
+ var u = wr();
5128
5128
  if (!u) {
5129
5129
  var y = typeof o == "string" ? o : o.displayName || o.name;
5130
5130
  y && (u = `
@@ -5133,23 +5133,23 @@ Check the top-level render call using <` + y + ">.");
5133
5133
  }
5134
5134
  return u;
5135
5135
  }
5136
- function Or(o, u) {
5136
+ function Rr(o, u) {
5137
5137
  if (!(!o._store || o._store.validated || o.key != null)) {
5138
5138
  o._store.validated = !0;
5139
5139
  var y = po(u);
5140
- if (!Rr[y]) {
5141
- Rr[y] = !0;
5140
+ if (!Tr[y]) {
5141
+ Tr[y] = !0;
5142
5142
  var v = "";
5143
- o && o._owner && o._owner !== ue.current && (v = " It was passed a child from " + Se(o._owner.type) + "."), st(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, v), st(null);
5143
+ o && o._owner && o._owner !== ue.current && (v = " It was passed a child from " + Se(o._owner.type) + "."), rt(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, v), rt(null);
5144
5144
  }
5145
5145
  }
5146
5146
  }
5147
- function Cr(o, u) {
5147
+ function Or(o, u) {
5148
5148
  if (typeof o == "object") {
5149
- if (Qe(o))
5149
+ if (Ze(o))
5150
5150
  for (var y = 0; y < o.length; y++) {
5151
5151
  var v = o[y];
5152
- Pe(v) && Or(v, u);
5152
+ Pe(v) && Rr(v, u);
5153
5153
  }
5154
5154
  else if (Pe(o))
5155
5155
  o._store && (o._store.validated = !0);
@@ -5157,11 +5157,11 @@ Check the top-level render call using <` + y + ">.");
5157
5157
  var S = W(o);
5158
5158
  if (typeof S == "function" && S !== o.entries)
5159
5159
  for (var x = S.call(o), A; !(A = x.next()).done; )
5160
- Pe(A.value) && Or(A.value, u);
5160
+ Pe(A.value) && Rr(A.value, u);
5161
5161
  }
5162
5162
  }
5163
5163
  }
5164
- function Ar(o) {
5164
+ function Cr(o) {
5165
5165
  {
5166
5166
  var u = o.type;
5167
5167
  if (u == null || typeof u == "string")
@@ -5191,35 +5191,35 @@ Check the top-level render call using <` + y + ">.");
5191
5191
  for (var u = Object.keys(o.props), y = 0; y < u.length; y++) {
5192
5192
  var v = u[y];
5193
5193
  if (v !== "children" && v !== "key") {
5194
- st(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), st(null);
5194
+ rt(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), rt(null);
5195
5195
  break;
5196
5196
  }
5197
5197
  }
5198
- o.ref !== null && (st(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), st(null));
5198
+ o.ref !== null && (rt(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
5199
5199
  }
5200
5200
  }
5201
- function kr(o, u, y) {
5201
+ function Ar(o, u, y) {
5202
5202
  var v = _(o);
5203
5203
  if (!v) {
5204
5204
  var S = "";
5205
5205
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5206
5206
  var x = ho(u);
5207
- x ? S += x : S += Tr();
5207
+ x ? S += x : S += wr();
5208
5208
  var A;
5209
- o === null ? A = "null" : Qe(o) ? A = "array" : o !== void 0 && o.$$typeof === r ? (A = "<" + (Se(o.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : A = typeof o, k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, S);
5209
+ o === null ? A = "null" : Ze(o) ? A = "array" : o !== void 0 && o.$$typeof === r ? (A = "<" + (Se(o.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : A = typeof o, k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, S);
5210
5210
  }
5211
5211
  var P = hn.apply(this, arguments);
5212
5212
  if (P == null)
5213
5213
  return P;
5214
5214
  if (v)
5215
5215
  for (var N = 2; N < arguments.length; N++)
5216
- Cr(arguments[N], o);
5217
- return o === i ? yo(P) : Ar(P), P;
5216
+ Or(arguments[N], o);
5217
+ return o === i ? yo(P) : Cr(P), P;
5218
5218
  }
5219
- var xr = !1;
5219
+ var kr = !1;
5220
5220
  function mo(o) {
5221
- var u = kr.bind(null, o);
5222
- return u.type = o, xr || (xr = !0, me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(u, "type", {
5221
+ var u = Ar.bind(null, o);
5222
+ return u.type = o, kr || (kr = !0, me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(u, "type", {
5223
5223
  enumerable: !1,
5224
5224
  get: function() {
5225
5225
  return me("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
@@ -5230,8 +5230,8 @@ Check the top-level render call using <` + y + ">.");
5230
5230
  }
5231
5231
  function vo(o, u, y) {
5232
5232
  for (var v = yn.apply(this, arguments), S = 2; S < arguments.length; S++)
5233
- Cr(arguments[S], v.type);
5234
- return Ar(v), v;
5233
+ Or(arguments[S], v.type);
5234
+ return Cr(v), v;
5235
5235
  }
5236
5236
  function go(o, u) {
5237
5237
  var y = pe.transition;
@@ -5247,7 +5247,7 @@ Check the top-level render call using <` + y + ">.");
5247
5247
  }
5248
5248
  }
5249
5249
  }
5250
- var Pr = !1, Ht = null;
5250
+ var xr = !1, Ht = null;
5251
5251
  function _o(o) {
5252
5252
  if (Ht === null)
5253
5253
  try {
@@ -5255,18 +5255,18 @@ Check the top-level render call using <` + y + ">.");
5255
5255
  Ht = y.call(e, "timers").setImmediate;
5256
5256
  } catch {
5257
5257
  Ht = function(S) {
5258
- Pr === !1 && (Pr = !0, typeof MessageChannel > "u" && k("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
5258
+ xr === !1 && (xr = !0, typeof MessageChannel > "u" && k("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
5259
5259
  var x = new MessageChannel();
5260
5260
  x.port1.onmessage = S, x.port2.postMessage(void 0);
5261
5261
  };
5262
5262
  }
5263
5263
  return Ht(o);
5264
5264
  }
5265
- var ot = 0, Ir = !1;
5265
+ var st = 0, Pr = !1;
5266
5266
  function Eo(o) {
5267
5267
  {
5268
- var u = ot;
5269
- ot++, te.current === null && (te.current = []);
5268
+ var u = st;
5269
+ st++, te.current === null && (te.current = []);
5270
5270
  var y = te.isBatchingLegacy, v;
5271
5271
  try {
5272
5272
  if (te.isBatchingLegacy = !0, v = o(), !y && te.didScheduleLegacyUpdate) {
@@ -5282,19 +5282,19 @@ Check the top-level render call using <` + y + ">.");
5282
5282
  var x = v, A = !1, P = {
5283
5283
  then: function(Q, ne) {
5284
5284
  A = !0, x.then(function(ae) {
5285
- qt(u), ot === 0 ? An(ae, Q, ne) : Q(ae);
5285
+ qt(u), st === 0 ? An(ae, Q, ne) : Q(ae);
5286
5286
  }, function(ae) {
5287
5287
  qt(u), ne(ae);
5288
5288
  });
5289
5289
  }
5290
5290
  };
5291
- return !Ir && typeof Promise < "u" && Promise.resolve().then(function() {
5291
+ return !Pr && typeof Promise < "u" && Promise.resolve().then(function() {
5292
5292
  }).then(function() {
5293
- A || (Ir = !0, k("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
5293
+ A || (Pr = !0, k("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
5294
5294
  }), P;
5295
5295
  } else {
5296
5296
  var N = v;
5297
- if (qt(u), ot === 0) {
5297
+ if (qt(u), st === 0) {
5298
5298
  var q = te.current;
5299
5299
  q !== null && (xn(q), te.current = null);
5300
5300
  var G = {
@@ -5315,7 +5315,7 @@ Check the top-level render call using <` + y + ">.");
5315
5315
  }
5316
5316
  }
5317
5317
  function qt(o) {
5318
- o !== ot - 1 && k("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ot = o;
5318
+ o !== st - 1 && k("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), st = o;
5319
5319
  }
5320
5320
  function An(o, u, y) {
5321
5321
  {
@@ -5352,7 +5352,7 @@ Check the top-level render call using <` + y + ">.");
5352
5352
  }
5353
5353
  }
5354
5354
  }
5355
- var bo = kr, So = vo, wo = mo, To = {
5355
+ var bo = Ar, So = vo, wo = mo, To = {
5356
5356
  map: Ye,
5357
5357
  forEach: Mt,
5358
5358
  count: gn,
@@ -5363,8 +5363,8 @@ Check the top-level render call using <` + y + ">.");
5363
5363
  }();
5364
5364
  }(wt, wt.exports)), wt.exports;
5365
5365
  }
5366
- process.env.NODE_ENV === "production" ? Kn.exports = Ga() : Kn.exports = Xa();
5367
- var Ae = Kn.exports;
5366
+ process.env.NODE_ENV === "production" ? Jn.exports = Ga() : Jn.exports = Xa();
5367
+ var Ae = Jn.exports;
5368
5368
  /**
5369
5369
  * @license React
5370
5370
  * react-jsx-runtime.production.min.js
@@ -5646,14 +5646,14 @@ function Qa() {
5646
5646
  var je = f ? f.displayName || f.name : "", Lt = je ? V(je) : "";
5647
5647
  return typeof f == "function" && ke.set(f, Lt), Lt;
5648
5648
  }
5649
- function Qe(f, _, R) {
5649
+ function Ze(f, _, R) {
5650
5650
  return kt(f, !1);
5651
5651
  }
5652
5652
  function ln(f) {
5653
5653
  var _ = f.prototype;
5654
5654
  return !!(_ && _.isReactComponent);
5655
5655
  }
5656
- function et(f, _, R) {
5656
+ function Qe(f, _, R) {
5657
5657
  if (f == null)
5658
5658
  return "";
5659
5659
  if (typeof f == "function")
@@ -5669,13 +5669,13 @@ function Qa() {
5669
5669
  if (typeof f == "object")
5670
5670
  switch (f.$$typeof) {
5671
5671
  case h:
5672
- return Qe(f.render);
5672
+ return Ze(f.render);
5673
5673
  case m:
5674
- return et(f.type, _, R);
5674
+ return Qe(f.type, _, R);
5675
5675
  case E: {
5676
5676
  var C = f, U = C._payload, z = C._init;
5677
5677
  try {
5678
- return et(z(U), _, R);
5678
+ return Qe(z(U), _, R);
5679
5679
  } catch {
5680
5680
  }
5681
5681
  }
@@ -5685,7 +5685,7 @@ function Qa() {
5685
5685
  var Be = Object.prototype.hasOwnProperty, We = {}, xt = J.ReactDebugCurrentFrame;
5686
5686
  function Ve(f) {
5687
5687
  if (f) {
5688
- var _ = f._owner, R = et(f.type, f._source, _ ? _.type : null);
5688
+ var _ = f._owner, R = Qe(f.type, f._source, _ ? _.type : null);
5689
5689
  xt.setExtraStackFrame(R);
5690
5690
  } else
5691
5691
  xt.setExtraStackFrame(null);
@@ -5710,7 +5710,7 @@ function Qa() {
5710
5710
  }
5711
5711
  }
5712
5712
  var ze = Array.isArray;
5713
- function tt(f) {
5713
+ function et(f) {
5714
5714
  return ze(f);
5715
5715
  }
5716
5716
  function Pt(f) {
@@ -5721,17 +5721,17 @@ function Qa() {
5721
5721
  }
5722
5722
  function It(f) {
5723
5723
  try {
5724
- return nt(f), !1;
5724
+ return tt(f), !1;
5725
5725
  } catch {
5726
5726
  return !0;
5727
5727
  }
5728
5728
  }
5729
- function nt(f) {
5729
+ function tt(f) {
5730
5730
  return "" + f;
5731
5731
  }
5732
5732
  function yt(f) {
5733
5733
  if (It(f))
5734
- return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(f)), nt(f);
5734
+ return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(f)), tt(f);
5735
5735
  }
5736
5736
  var xe = J.ReactCurrentOwner, dn = {
5737
5737
  key: !0,
@@ -5831,10 +5831,10 @@ function Qa() {
5831
5831
  return mn(f, D, ie, U, C, xe.current, M);
5832
5832
  }
5833
5833
  }
5834
- var rt = J.ReactCurrentOwner, Ft = J.ReactDebugCurrentFrame;
5834
+ var nt = J.ReactCurrentOwner, Ft = J.ReactDebugCurrentFrame;
5835
5835
  function Re(f) {
5836
5836
  if (f) {
5837
- var _ = f._owner, R = et(f.type, f._source, _ ? _.type : null);
5837
+ var _ = f._owner, R = Qe(f.type, f._source, _ ? _.type : null);
5838
5838
  Ft.setExtraStackFrame(R);
5839
5839
  } else
5840
5840
  Ft.setExtraStackFrame(null);
@@ -5846,8 +5846,8 @@ function Qa() {
5846
5846
  }
5847
5847
  function Ye() {
5848
5848
  {
5849
- if (rt.current) {
5850
- var f = ce(rt.current.type);
5849
+ if (nt.current) {
5850
+ var f = ce(nt.current.type);
5851
5851
  if (f)
5852
5852
  return `
5853
5853
 
@@ -5890,14 +5890,14 @@ Check the top-level render call using <` + R + ">.");
5890
5890
  return;
5891
5891
  Mt[R] = !0;
5892
5892
  var C = "";
5893
- f && f._owner && f._owner !== rt.current && (C = " It was passed a child from " + ce(f._owner.type) + "."), Re(f), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, C), Re(null);
5893
+ f && f._owner && f._owner !== nt.current && (C = " It was passed a child from " + ce(f._owner.type) + "."), Re(f), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, C), Re(null);
5894
5894
  }
5895
5895
  }
5896
5896
  function Ut(f, _) {
5897
5897
  {
5898
5898
  if (typeof f != "object")
5899
5899
  return;
5900
- if (tt(f))
5900
+ if (et(f))
5901
5901
  for (var R = 0; R < f.length; R++) {
5902
5902
  var C = f[R];
5903
5903
  Ie(C) && Nt(C, _);
@@ -5958,7 +5958,7 @@ Check the top-level render call using <` + R + ">.");
5958
5958
  var ie = gn(U);
5959
5959
  ie ? D += ie : D += Ye();
5960
5960
  var Z;
5961
- f === null ? Z = "null" : tt(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (ce(f.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof f, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, D);
5961
+ f === null ? Z = "null" : et(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (ce(f.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof f, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, D);
5962
5962
  }
5963
5963
  var ee = vn(f, _, R, U, z);
5964
5964
  if (ee == null)
@@ -5967,7 +5967,7 @@ Check the top-level render call using <` + R + ">.");
5967
5967
  var de = _.children;
5968
5968
  if (de !== void 0)
5969
5969
  if (C)
5970
- if (tt(de)) {
5970
+ if (et(de)) {
5971
5971
  for (var je = 0; je < de.length; je++)
5972
5972
  Ut(de[je], f);
5973
5973
  Object.freeze && Object.freeze(de);
@@ -5989,30 +5989,28 @@ Check the top-level render call using <` + R + ">.");
5989
5989
  St.Fragment = r, St.jsx = Sn, St.jsxs = wn;
5990
5990
  }()), St;
5991
5991
  }
5992
- process.env.NODE_ENV === "production" ? Jn.exports = Za() : Jn.exports = Qa();
5993
- var Zs = Jn.exports;
5994
- const Qs = Ae.createContext(
5995
- Xe(Yn)
5996
- ), nu = () => {
5992
+ process.env.NODE_ENV === "production" ? Yn.exports = Za() : Yn.exports = Qa();
5993
+ var Zs = Yn.exports;
5994
+ const Qs = Ae.createContext(void 0), nu = () => {
5997
5995
  const e = Ae.useContext(Qs), [t, n] = Ae.useState(
5998
- e.getSnapshot().value === "loggedIn"
5996
+ (e == null ? void 0 : e.getSnapshot().value) === "loggedIn"
5999
5997
  );
6000
5998
  return Ae.useEffect(() => {
6001
- const r = e.subscribe((s) => {
5999
+ const r = e == null ? void 0 : e.subscribe((s) => {
6002
6000
  (s.value === "loggedIn" || s.value === "loggedOut") && n(s.value === "loggedIn");
6003
6001
  });
6004
6002
  return () => {
6005
- r.unsubscribe();
6003
+ r == null || r.unsubscribe();
6006
6004
  };
6007
- }, [e]), { authActor: e, isLoggedIn: t };
6005
+ }, [e]), { authActor: e ?? void 0, isLoggedIn: t };
6008
6006
  }, ru = async (e = "", t = {
6009
6007
  inspect: void 0,
6010
6008
  endpoints: { login: "", logout: "", refresh: "", ssrRefresh: "" }
6011
6009
  }) => typeof window < "u" ? (console.warn(
6012
6010
  "App.getInitialProps::getAuth should not be run on the frontend. You are probably missing getServerSideProps in your page."
6013
- ), Xe(Yn, {
6011
+ ), ut(as, {
6014
6012
  inspect: t.inspect
6015
- }).start()) : Xe(Yn, {
6013
+ }).start()) : ut(as, {
6016
6014
  input: {
6017
6015
  initialContext: {
6018
6016
  endpoints: t.endpoints,
@@ -6024,7 +6022,7 @@ const Qs = Ae.createContext(
6024
6022
  function su({ actor: e, children: t }) {
6025
6023
  return /* @__PURE__ */ Zs.jsx(Qs.Provider, { value: e, children: t });
6026
6024
  }
6027
- const eu = {}, tu = ir({
6025
+ const eu = {}, tu = or({
6028
6026
  types: {
6029
6027
  context: {},
6030
6028
  events: {},
@@ -6111,7 +6109,7 @@ const eu = {}, tu = ir({
6111
6109
  type: "final"
6112
6110
  }
6113
6111
  }
6114
- }), ou = ir({
6112
+ }), ou = or({
6115
6113
  types: {
6116
6114
  context: {},
6117
6115
  events: {},
@@ -6199,11 +6197,11 @@ const eu = {}, tu = ir({
6199
6197
  target: "idle"
6200
6198
  },
6201
6199
  RESUME_TIMER: {
6202
- actions: Kr("timer", { type: "RESUME_TIMER" })
6200
+ actions: Jr("timer", { type: "RESUME_TIMER" })
6203
6201
  // cond: (context) => context.duration > 0,
6204
6202
  },
6205
6203
  PAUSE_TIMER: {
6206
- actions: Kr("timer", { type: "PAUSE_TIMER" })
6204
+ actions: Jr("timer", { type: "PAUSE_TIMER" })
6207
6205
  // cond: (context) => context.duration > 0,
6208
6206
  }
6209
6207
  }
@@ -6249,7 +6247,7 @@ export {
6249
6247
  su as AuthProvider,
6250
6248
  eo as ToastContext,
6251
6249
  au as ToastProvider,
6252
- Yn as authMachine,
6250
+ as as authMachine,
6253
6251
  ru as getAuth,
6254
6252
  tu as timerMachine,
6255
6253
  ou as toastMachine,