@open-kingdom/shared-frontend-data-access-api-client 0.0.2-6 → 0.0.2-8

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nanoid as $n, formatProdErrorMessage as ye, isPlainObject as ze, createAction as De, createSelector as Ir, createNextState as Wt, createAsyncThunk as cn, createSlice as Se, prepareAutoBatched as Ne, isAnyOf as Ue, isFulfilled as be, isRejectedWithValue as Bt, combineReducers as Ar, SHOULD_AUTOBATCH as Ln, isAllOf as Ot, isRejected as Gt, isPending as jn, isAction as Cr, isAsyncThunkAction as an, createListenerMiddleware as Tr } from "@reduxjs/toolkit";
1
+ import { nanoid as $n, formatProdErrorMessage as ye, isPlainObject as Ve, createAction as De, createSelector as Ir, createNextState as Wt, createAsyncThunk as an, createSlice as Se, prepareAutoBatched as Ne, isAnyOf as ze, isFulfilled as be, isRejectedWithValue as Bt, combineReducers as Ar, SHOULD_AUTOBATCH as Ln, isAllOf as Ot, isRejected as Gt, isPending as jn, isAction as Cr, isAsyncThunkAction as cn, createListenerMiddleware as Tr } from "@reduxjs/toolkit";
2
2
  import * as he from "react";
3
3
  import Kn, { useCallback as ge, useDebugValue as It, useMemo as G, useState as un, useEffect as de, useRef as fe, useLayoutEffect as Dr } from "react";
4
4
  var Yt = /* @__PURE__ */ Symbol.for("immer-nothing"), Fe = /* @__PURE__ */ Symbol.for("immer-draftable"), B = /* @__PURE__ */ Symbol.for("immer-state"), Hn = process.env.NODE_ENV !== "production" ? [
@@ -86,7 +86,7 @@ function Qr(e) {
86
86
  const t = +e;
87
87
  return Number.isInteger(t) && String(t) === e;
88
88
  }
89
- var qr = (e) => Ce(e) ? e?.[B] : null, ce = (e) => e.copy_ || e.base_, Jt = (e) => e.modified_ ? e.copy_ : e.base_;
89
+ var qr = (e) => Ce(e) ? e?.[B] : null, ae = (e) => e.copy_ || e.base_, Jt = (e) => e.modified_ ? e.copy_ : e.base_;
90
90
  function Ft(e, t) {
91
91
  if (Xe(e))
92
92
  return new Map(e);
@@ -150,7 +150,7 @@ var dn = (e) => !!yt[e];
150
150
  function xr(e, t) {
151
151
  yt[e] || (yt[e] = t);
152
152
  }
153
- var je, Bn = () => je, Vr = (e, t) => ({
153
+ var je, Bn = () => je, Ur = (e, t) => ({
154
154
  drafts_: [],
155
155
  parent_: e,
156
156
  immer_: t,
@@ -167,13 +167,13 @@ function pn(e, t) {
167
167
  t && (e.patchPlugin_ = we(ht), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
168
168
  }
169
169
  function xt(e) {
170
- Vt(e), e.drafts_.forEach(zr), e.drafts_ = null;
170
+ Ut(e), e.drafts_.forEach(Vr), e.drafts_ = null;
171
171
  }
172
- function Vt(e) {
172
+ function Ut(e) {
173
173
  e === je && (je = e.parent_);
174
174
  }
175
- var hn = (e) => je = Vr(je, e);
176
- function zr(e) {
175
+ var hn = (e) => je = Ur(je, e);
176
+ function Vr(e) {
177
177
  const t = e[B];
178
178
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
179
179
  }
@@ -190,7 +190,7 @@ function yn(e, t) {
190
190
  );
191
191
  } else
192
192
  e = gn(t, n);
193
- return Ur(t, e, !0), xt(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Yt ? e : void 0;
193
+ return zr(t, e, !0), xt(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Yt ? e : void 0;
194
194
  }
195
195
  function gn(e, t) {
196
196
  if (bt(t))
@@ -211,7 +211,7 @@ function gn(e, t) {
211
211
  }
212
212
  return n.copy_;
213
213
  }
214
- function Ur(e, t, n = !1) {
214
+ function zr(e, t, n = !1) {
215
215
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Xt(t, n);
216
216
  }
217
217
  function Gn(e) {
@@ -219,7 +219,7 @@ function Gn(e) {
219
219
  }
220
220
  var Et = (e, t) => e.scope_ === t, $r = [];
221
221
  function Yn(e, t, n, r) {
222
- const i = ce(e), u = e.type_;
222
+ const i = ae(e), u = e.type_;
223
223
  if (r !== void 0 && se(i, r, u) === t) {
224
224
  dt(i, r, n, u);
225
225
  return;
@@ -267,7 +267,7 @@ function jr(e, t, n) {
267
267
  Yn(e, n, m, t);
268
268
  });
269
269
  } else ne(n) && e.callbacks_.push(function() {
270
- const u = ce(e);
270
+ const u = ae(e);
271
271
  e.type_ === 3 ? u.has(n) && gt(n, r.handledSet_, r) : se(u, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && gt(
272
272
  se(e.copy_, t, e.type_),
273
273
  r.handledSet_,
@@ -326,7 +326,7 @@ var mt = {
326
326
  const r = e.type_ === 1 && typeof t == "string";
327
327
  if (r && n?.isArrayOperationMethod(t))
328
328
  return n.createMethodInterceptor(e, t);
329
- const i = ce(e);
329
+ const i = ae(e);
330
330
  if (!xe(i, t, e.type_))
331
331
  return Hr(e, i, t);
332
332
  const u = i[t];
@@ -336,40 +336,40 @@ var mt = {
336
336
  return u;
337
337
  if (u === Ct(e.base_, t)) {
338
338
  lt(e);
339
- const m = e.type_ === 1 ? +t : t, _ = Ut(e.scope_, u, e, m);
339
+ const m = e.type_ === 1 ? +t : t, _ = zt(e.scope_, u, e, m);
340
340
  return e.copy_[m] = _;
341
341
  }
342
342
  return u;
343
343
  },
344
344
  has(e, t) {
345
- return t in ce(e);
345
+ return t in ae(e);
346
346
  },
347
347
  ownKeys(e) {
348
- return Reflect.ownKeys(ce(e));
348
+ return Reflect.ownKeys(ae(e));
349
349
  },
350
350
  set(e, t, n) {
351
- const r = Xn(ce(e), t);
351
+ const r = Xn(ae(e), t);
352
352
  if (r?.set)
353
353
  return r.set.call(e.draft_, n), !0;
354
354
  if (!e.modified_) {
355
- const i = Ct(ce(e), t), u = i?.[B];
355
+ const i = Ct(ae(e), t), u = i?.[B];
356
356
  if (u && u.base_ === n)
357
357
  return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
358
358
  if (Mr(n, i) && (n !== void 0 || xe(e.base_, t, e.type_)))
359
359
  return !0;
360
- lt(e), zt(e);
360
+ lt(e), Vt(e);
361
361
  }
362
362
  return e.copy_[t] === n && // special case: handle new props with value 'undefined'
363
363
  (n !== void 0 || t in e.copy_) || // special case: NaN
364
364
  Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), jr(e, t, n)), !0;
365
365
  },
366
366
  deleteProperty(e, t) {
367
- return lt(e), Ct(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), zt(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
367
+ return lt(e), Ct(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Vt(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
368
368
  },
369
369
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
370
370
  // the same guarantee in ES5 mode.
371
371
  getOwnPropertyDescriptor(e, t) {
372
- const n = ce(e), r = Reflect.getOwnPropertyDescriptor(n, t);
372
+ const n = ae(e), r = Reflect.getOwnPropertyDescriptor(n, t);
373
373
  return r && {
374
374
  [ut]: !0,
375
375
  [qt]: e.type_ !== 1 || t !== "length",
@@ -402,7 +402,7 @@ Ke.set = function(e, t, n) {
402
402
  };
403
403
  function Ct(e, t) {
404
404
  const n = e[B];
405
- return (n ? ce(n) : e)[t];
405
+ return (n ? ae(n) : e)[t];
406
406
  }
407
407
  function Hr(e, t, n) {
408
408
  const r = Xn(t, n);
@@ -423,8 +423,8 @@ function Xn(e, t) {
423
423
  n = Ee(n);
424
424
  }
425
425
  }
426
- function zt(e) {
427
- e.modified_ || (e.modified_ = !0, e.parent_ && zt(e.parent_));
426
+ function Vt(e) {
427
+ e.modified_ || (e.modified_ = !0, e.parent_ && Vt(e.parent_));
428
428
  }
429
429
  function lt(e) {
430
430
  e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Ft(
@@ -446,12 +446,12 @@ var Wr = class {
446
446
  pe(n) || W(6), r !== void 0 && !pe(r) && W(7);
447
447
  let i;
448
448
  if (ne(t)) {
449
- const u = hn(this), m = Ut(u, t, void 0);
449
+ const u = hn(this), m = zt(u, t, void 0);
450
450
  let _ = !0;
451
451
  try {
452
452
  i = n(m), _ = !1;
453
453
  } finally {
454
- _ ? xt(u) : Vt(u);
454
+ _ ? xt(u) : Ut(u);
455
455
  }
456
456
  return pn(u, r), yn(i, u);
457
457
  } else if (!t || !Ce(t)) {
@@ -476,8 +476,8 @@ var Wr = class {
476
476
  }
477
477
  createDraft(e) {
478
478
  ne(e) || W(8), Z(e) && (e = Zn(e));
479
- const t = hn(this), n = Ut(t, e, void 0);
480
- return n[B].isManual_ = !0, Vt(t), n;
479
+ const t = hn(this), n = zt(t, e, void 0);
480
+ return n[B].isManual_ = !0, Ut(t), n;
481
481
  }
482
482
  finishDraft(e, t) {
483
483
  const n = e && e[B];
@@ -530,7 +530,7 @@ var Wr = class {
530
530
  );
531
531
  }
532
532
  };
533
- function Ut(e, t, n, r) {
533
+ function zt(e, t, n, r) {
534
534
  const [i, u] = Xe(t) ? we(pt).proxyMap_(t, n) : Ze(t) ? we(pt).proxySet_(t, n) : Kr(t, n);
535
535
  return (n?.scope_ ?? Bn()).drafts_.push(i), u.callbacks_ = n?.callbacks_ ?? [], u.key_ = r, n && r !== void 0 ? Lr(n, u, r) : u.callbacks_.push(function(C) {
536
536
  C.mapSetPlugin_?.fixSetContents(u);
@@ -641,13 +641,13 @@ function Br() {
641
641
  let { base_: O, assigned_: f } = d, g = d.copy_;
642
642
  g.length < O.length && ([O, g] = [g, O], [p, P] = [P, p]);
643
643
  const s = d.allIndicesReassigned_ === !0;
644
- for (let c = 0; c < O.length; c++) {
645
- const S = g[c], b = O[c];
646
- if ((s || f?.get(c.toString())) && S !== b) {
644
+ for (let a = 0; a < O.length; a++) {
645
+ const S = g[a], b = O[a];
646
+ if ((s || f?.get(a.toString())) && S !== b) {
647
647
  const l = S?.[B];
648
648
  if (l && l.modified_)
649
649
  continue;
650
- const o = v.concat([c]);
650
+ const o = v.concat([a]);
651
651
  p.push({
652
652
  op: r,
653
653
  path: o,
@@ -661,18 +661,18 @@ function Br() {
661
661
  });
662
662
  }
663
663
  }
664
- for (let c = O.length; c < g.length; c++) {
665
- const S = v.concat([c]);
664
+ for (let a = O.length; a < g.length; a++) {
665
+ const S = v.concat([a]);
666
666
  p.push({
667
667
  op: i,
668
668
  path: S,
669
669
  // Need to maybe clone it, as it can in fact be the original value
670
670
  // due to the base/copy inversion at the start of this function
671
- value: R(g[c])
671
+ value: R(g[a])
672
672
  });
673
673
  }
674
- for (let c = g.length - 1; O.length <= c; --c) {
675
- const S = v.concat([c]);
674
+ for (let a = g.length - 1; O.length <= a; --a) {
675
+ const S = v.concat([a]);
676
676
  P.push({
677
677
  op: u,
678
678
  path: S
@@ -681,8 +681,8 @@ function Br() {
681
681
  }
682
682
  function C(d, v, p, P) {
683
683
  const { base_: O, copy_: f, type_: g } = d;
684
- Ye(d.assigned_, (s, c) => {
685
- const S = se(O, s, g), b = se(f, s, g), h = c ? xe(O, s) ? r : i : u;
684
+ Ye(d.assigned_, (s, a) => {
685
+ const S = se(O, s, g), b = se(f, s, g), h = a ? xe(O, s) ? r : i : u;
686
686
  if (S === b && h === r)
687
687
  return;
688
688
  const l = v.concat(s);
@@ -697,28 +697,28 @@ function Br() {
697
697
  let { base_: O, copy_: f } = d, g = 0;
698
698
  O.forEach((s) => {
699
699
  if (!f.has(s)) {
700
- const c = v.concat([g]);
700
+ const a = v.concat([g]);
701
701
  p.push({
702
702
  op: u,
703
- path: c,
703
+ path: a,
704
704
  value: s
705
705
  }), P.unshift({
706
706
  op: i,
707
- path: c,
707
+ path: a,
708
708
  value: s
709
709
  });
710
710
  }
711
711
  g++;
712
712
  }), g = 0, f.forEach((s) => {
713
713
  if (!O.has(s)) {
714
- const c = v.concat([g]);
714
+ const a = v.concat([g]);
715
715
  p.push({
716
716
  op: i,
717
- path: c,
717
+ path: a,
718
718
  value: s
719
719
  }), P.unshift({
720
720
  op: u,
721
- path: c,
721
+ path: a,
722
722
  value: s
723
723
  });
724
724
  }
@@ -746,38 +746,38 @@ function Br() {
746
746
  let h = P[S];
747
747
  typeof h != "string" && typeof h != "number" && (h = "" + h), (b === 0 || b === 1) && (h === "__proto__" || h === $e) && W(19), pe(f) && h === Ge && W(19), f = se(f, h), Ce(f) || W(18, P.join("/"));
748
748
  }
749
- const g = Pe(f), s = A(p.value), c = P[P.length - 1];
749
+ const g = Pe(f), s = A(p.value), a = P[P.length - 1];
750
750
  switch (O) {
751
751
  case r:
752
752
  switch (g) {
753
753
  case 2:
754
- return f.set(c, s);
754
+ return f.set(a, s);
755
755
  case 3:
756
756
  W(16);
757
757
  default:
758
- return f[c] = s;
758
+ return f[a] = s;
759
759
  }
760
760
  case i:
761
761
  switch (g) {
762
762
  case 1:
763
- return c === "-" ? f.push(s) : f.splice(c, 0, s);
763
+ return a === "-" ? f.push(s) : f.splice(a, 0, s);
764
764
  case 2:
765
- return f.set(c, s);
765
+ return f.set(a, s);
766
766
  case 3:
767
767
  return f.add(s);
768
768
  default:
769
- return f[c] = s;
769
+ return f[a] = s;
770
770
  }
771
771
  case u:
772
772
  switch (g) {
773
773
  case 1:
774
- return f.splice(c, 1);
774
+ return f.splice(a, 1);
775
775
  case 2:
776
- return f.delete(c);
776
+ return f.delete(a);
777
777
  case 3:
778
778
  return f.delete(p.value);
779
779
  default:
780
- return delete f[c];
780
+ return delete f[a];
781
781
  }
782
782
  default:
783
783
  W(17, O);
@@ -975,7 +975,7 @@ function vt(e, t = {}) {
975
975
  u = 0;
976
976
  }, m;
977
977
  }
978
- function ci(e, ...t) {
978
+ function ai(e, ...t) {
979
979
  const n = typeof e == "function" ? {
980
980
  memoize: e,
981
981
  memoizeOptions: t
@@ -1049,7 +1049,7 @@ function ci(e, ...t) {
1049
1049
  withTypes: () => r
1050
1050
  }), r;
1051
1051
  }
1052
- var nr = /* @__PURE__ */ ci(vt), ai = Object.assign(
1052
+ var nr = /* @__PURE__ */ ai(vt), ci = Object.assign(
1053
1053
  (e, t = nr) => {
1054
1054
  ei(
1055
1055
  e,
@@ -1063,18 +1063,18 @@ var nr = /* @__PURE__ */ ci(vt), ai = Object.assign(
1063
1063
  (...u) => u.reduce((m, _, C) => (m[n[C]] = _, m), {})
1064
1064
  );
1065
1065
  },
1066
- { withTypes: () => ai }
1067
- ), rr = /* @__PURE__ */ ((e) => (e.uninitialized = "uninitialized", e.pending = "pending", e.fulfilled = "fulfilled", e.rejected = "rejected", e))(rr || {}), ae = "uninitialized", $t = "pending", Qe = "fulfilled", qe = "rejected";
1066
+ { withTypes: () => ci }
1067
+ ), rr = /* @__PURE__ */ ((e) => (e.uninitialized = "uninitialized", e.pending = "pending", e.fulfilled = "fulfilled", e.rejected = "rejected", e))(rr || {}), ce = "uninitialized", $t = "pending", Qe = "fulfilled", qe = "rejected";
1068
1068
  function bn(e) {
1069
1069
  return {
1070
1070
  status: e,
1071
- isUninitialized: e === ae,
1071
+ isUninitialized: e === ce,
1072
1072
  isLoading: e === $t,
1073
1073
  isSuccess: e === Qe,
1074
1074
  isError: e === qe
1075
1075
  };
1076
1076
  }
1077
- var En = ze;
1077
+ var En = Ve;
1078
1078
  function Zt(e, t) {
1079
1079
  if (e === t || !(En(e) && En(t) || Array.isArray(e) && Array.isArray(t)))
1080
1080
  return t;
@@ -1142,7 +1142,7 @@ var jt = () => /* @__PURE__ */ new Map(), yi = (e) => {
1142
1142
  /ion\/(vnd\.api\+)?json/.test(e.get("content-type") || "")
1143
1143
  );
1144
1144
  function Rn(e) {
1145
- if (!ze(e))
1145
+ if (!Ve(e))
1146
1146
  return e;
1147
1147
  const t = {
1148
1148
  ...e
@@ -1151,7 +1151,7 @@ function Rn(e) {
1151
1151
  r === void 0 && delete t[n];
1152
1152
  return t;
1153
1153
  }
1154
- var Si = (e) => typeof e == "object" && (ze(e) || Array.isArray(e) || typeof e.toJSON == "function");
1154
+ var Si = (e) => typeof e == "object" && (Ve(e) || Array.isArray(e) || typeof e.toJSON == "function");
1155
1155
  function _i({
1156
1156
  baseUrl: e,
1157
1157
  prepareHeaders: t = (I) => I,
@@ -1175,7 +1175,7 @@ function _i({
1175
1175
  } = R;
1176
1176
  let g, {
1177
1177
  url: s,
1178
- headers: c = new Headers(T.headers),
1178
+ headers: a = new Headers(T.headers),
1179
1179
  params: S = void 0,
1180
1180
  responseHandler: b = C ?? "json",
1181
1181
  validateStatus: h = w ?? mi,
@@ -1183,12 +1183,12 @@ function _i({
1183
1183
  ...o
1184
1184
  } = typeof A == "string" ? {
1185
1185
  url: A
1186
- } : A, a = {
1186
+ } : A, c = {
1187
1187
  ...T,
1188
1188
  signal: l ? gi(R.signal, yi(l)) : R.signal,
1189
1189
  ...o
1190
1190
  };
1191
- c = new Headers(Rn(c)), a.headers = await t(c, {
1191
+ a = new Headers(Rn(a)), c.headers = await t(a, {
1192
1192
  getState: v,
1193
1193
  arg: A,
1194
1194
  extra: p,
@@ -1196,16 +1196,16 @@ function _i({
1196
1196
  forced: O,
1197
1197
  type: f,
1198
1198
  extraOptions: d
1199
- }) || c;
1200
- const y = Si(a.body);
1201
- if (a.body != null && !y && typeof a.body != "string" && a.headers.delete("content-type"), !a.headers.has("content-type") && y && a.headers.set("content-type", u), y && i(a.headers) && (a.body = JSON.stringify(a.body, m)), a.headers.has("accept") || (b === "json" ? a.headers.set("accept", "application/json") : b === "text" && a.headers.set("accept", "text/plain, text/html, */*")), S) {
1199
+ }) || a;
1200
+ const y = Si(c.body);
1201
+ if (c.body != null && !y && typeof c.body != "string" && c.headers.delete("content-type"), !c.headers.has("content-type") && y && c.headers.set("content-type", u), y && i(c.headers) && (c.body = JSON.stringify(c.body, m)), c.headers.has("accept") || (b === "json" ? c.headers.set("accept", "application/json") : b === "text" && c.headers.set("accept", "text/plain, text/html, */*")), S) {
1202
1202
  const Q = ~s.indexOf("?") ? "&" : "?", F = r ? r(S) : new URLSearchParams(Rn(S));
1203
1203
  s += Q + F;
1204
1204
  }
1205
1205
  s = hi(e, s);
1206
- const E = new Request(s, a);
1206
+ const E = new Request(s, c);
1207
1207
  g = {
1208
- request: new Request(s, a)
1208
+ request: new Request(s, c)
1209
1209
  };
1210
1210
  let M;
1211
1211
  try {
@@ -1267,15 +1267,15 @@ var On = class {
1267
1267
  constructor(e, t = void 0) {
1268
1268
  this.value = e, this.meta = t;
1269
1269
  }
1270
- }, Pt = "__rtkq/", bi = "online", Ei = "offline", ir = "focused", tn = /* @__PURE__ */ De(`${Pt}${ir}`), or = /* @__PURE__ */ De(`${Pt}un${ir}`), nn = /* @__PURE__ */ De(`${Pt}${bi}`), sr = /* @__PURE__ */ De(`${Pt}${Ei}`), et = "query", cr = "mutation", ar = "infinitequery";
1270
+ }, Pt = "__rtkq/", bi = "online", Ei = "offline", ir = "focused", tn = /* @__PURE__ */ De(`${Pt}${ir}`), or = /* @__PURE__ */ De(`${Pt}un${ir}`), nn = /* @__PURE__ */ De(`${Pt}${bi}`), sr = /* @__PURE__ */ De(`${Pt}${Ei}`), et = "query", ar = "mutation", cr = "infinitequery";
1271
1271
  function wt(e) {
1272
1272
  return e.type === et;
1273
1273
  }
1274
1274
  function Pi(e) {
1275
- return e.type === cr;
1275
+ return e.type === ar;
1276
1276
  }
1277
1277
  function tt(e) {
1278
- return e.type === ar;
1278
+ return e.type === cr;
1279
1279
  }
1280
1280
  function _t(e) {
1281
1281
  return wt(e) || tt(e);
@@ -1319,18 +1319,18 @@ function Oi({
1319
1319
  getRunningQueriesThunk: d,
1320
1320
  getRunningMutationsThunk: v
1321
1321
  };
1322
- function A(s, c) {
1322
+ function A(s, a) {
1323
1323
  return (S) => {
1324
1324
  const b = Te(u, s), h = e({
1325
- queryArgs: c,
1325
+ queryArgs: a,
1326
1326
  endpointDefinition: b,
1327
1327
  endpointName: s
1328
1328
  });
1329
1329
  return _(S)?.get(h);
1330
1330
  };
1331
1331
  }
1332
- function R(s, c) {
1333
- return (S) => C(S)?.get(c);
1332
+ function R(s, a) {
1333
+ return (S) => C(S)?.get(a);
1334
1334
  }
1335
1335
  function d() {
1336
1336
  return (s) => Pn(_(s));
@@ -1341,23 +1341,23 @@ function Oi({
1341
1341
  function p(s) {
1342
1342
  if (process.env.NODE_ENV !== "production") {
1343
1343
  if (p.triggered) return;
1344
- const c = s(i.internalActions.internal_getRTKQSubscriptions());
1345
- if (p.triggered = !0, typeof c != "object" || typeof c?.type == "string")
1344
+ const a = s(i.internalActions.internal_getRTKQSubscriptions());
1345
+ if (p.triggered = !0, typeof a != "object" || typeof a?.type == "string")
1346
1346
  throw new Error(process.env.NODE_ENV === "production" ? ye(34) : `Warning: Middleware for RTK-Query API at reducerPath "${i.reducerPath}" has not been added to the store.
1347
1347
  You must add the middleware for RTK-Query to function correctly!`);
1348
1348
  }
1349
1349
  }
1350
- function P(s, c) {
1350
+ function P(s, a) {
1351
1351
  const S = (b, {
1352
1352
  subscribe: h = !0,
1353
1353
  forceRefetch: l,
1354
1354
  subscriptionOptions: o,
1355
- [We]: a,
1355
+ [We]: c,
1356
1356
  ...y
1357
1357
  } = {}) => (E, N) => {
1358
1358
  const M = e({
1359
1359
  queryArgs: b,
1360
- endpointDefinition: c,
1360
+ endpointDefinition: a,
1361
1361
  endpointName: s
1362
1362
  });
1363
1363
  let q;
@@ -1370,14 +1370,14 @@ You must add the middleware for RTK-Query to function correctly!`);
1370
1370
  endpointName: s,
1371
1371
  originalArgs: b,
1372
1372
  queryCacheKey: M,
1373
- [We]: a
1373
+ [We]: c
1374
1374
  };
1375
- if (wt(c))
1375
+ if (wt(a))
1376
1376
  q = t(k);
1377
1377
  else {
1378
1378
  const {
1379
1379
  direction: $,
1380
- initialPageParam: V,
1380
+ initialPageParam: U,
1381
1381
  refetchCachedPages: x
1382
1382
  } = y;
1383
1383
  q = n({
@@ -1385,7 +1385,7 @@ You must add the middleware for RTK-Query to function correctly!`);
1385
1385
  // Supply these even if undefined. This helps with a field existence
1386
1386
  // check over in `buildSlice.ts`
1387
1387
  direction: $,
1388
- initialPageParam: V,
1388
+ initialPageParam: U,
1389
1389
  refetchCachedPages: x
1390
1390
  });
1391
1391
  }
@@ -1394,11 +1394,11 @@ You must add the middleware for RTK-Query to function correctly!`);
1394
1394
  const {
1395
1395
  requestId: L,
1396
1396
  abort: j
1397
- } = Q, z = F.requestId !== L, K = _(E)?.get(M), H = () => D(N()), U = Object.assign(a ? (
1397
+ } = Q, V = F.requestId !== L, K = _(E)?.get(M), H = () => D(N()), z = Object.assign(c ? (
1398
1398
  // a query has been forced (upsertQueryData)
1399
1399
  // -> we want to resolve it once data has been written with the data that will be written
1400
1400
  Q.then(H)
1401
- ) : z && !K ? (
1401
+ ) : V && !K ? (
1402
1402
  // a query has been skipped due to a condition and we do not have any currently running query
1403
1403
  // -> we want to resolve it immediately with the current data
1404
1404
  Promise.resolve(F)
@@ -1413,7 +1413,7 @@ You must add the middleware for RTK-Query to function correctly!`);
1413
1413
  queryCacheKey: M,
1414
1414
  abort: j,
1415
1415
  async unwrap() {
1416
- const $ = await U;
1416
+ const $ = await z;
1417
1417
  if ($.isError)
1418
1418
  throw $.error;
1419
1419
  return $.data;
@@ -1430,7 +1430,7 @@ You must add the middleware for RTK-Query to function correctly!`);
1430
1430
  }));
1431
1431
  },
1432
1432
  updateSubscriptionOptions($) {
1433
- U.subscriptionOptions = $, E(I({
1433
+ z.subscriptionOptions = $, E(I({
1434
1434
  endpointName: s,
1435
1435
  requestId: L,
1436
1436
  queryCacheKey: M,
@@ -1438,40 +1438,40 @@ You must add the middleware for RTK-Query to function correctly!`);
1438
1438
  }));
1439
1439
  }
1440
1440
  });
1441
- if (!K && !z && !a) {
1441
+ if (!K && !V && !c) {
1442
1442
  const $ = _(E);
1443
- $.set(M, U), U.then(() => {
1443
+ $.set(M, z), z.then(() => {
1444
1444
  $.delete(M);
1445
1445
  });
1446
1446
  }
1447
- return U;
1447
+ return z;
1448
1448
  };
1449
1449
  return S;
1450
1450
  }
1451
- function O(s, c) {
1452
- return P(s, c);
1451
+ function O(s, a) {
1452
+ return P(s, a);
1453
1453
  }
1454
- function f(s, c) {
1455
- return P(s, c);
1454
+ function f(s, a) {
1455
+ return P(s, a);
1456
1456
  }
1457
1457
  function g(s) {
1458
- return (c, {
1458
+ return (a, {
1459
1459
  track: S = !0,
1460
1460
  fixedCacheKey: b
1461
1461
  } = {}) => (h, l) => {
1462
1462
  const o = r({
1463
1463
  type: "mutation",
1464
1464
  endpointName: s,
1465
- originalArgs: c,
1465
+ originalArgs: a,
1466
1466
  track: S,
1467
1467
  fixedCacheKey: b
1468
- }), a = h(o);
1468
+ }), c = h(o);
1469
1469
  p(h);
1470
1470
  const {
1471
1471
  requestId: y,
1472
1472
  abort: E,
1473
1473
  unwrap: N
1474
- } = a, M = Ri(a.unwrap().then((Q) => ({
1474
+ } = c, M = Ri(c.unwrap().then((Q) => ({
1475
1475
  data: Q
1476
1476
  })), (Q) => ({
1477
1477
  error: Q
@@ -1481,7 +1481,7 @@ You must add the middleware for RTK-Query to function correctly!`);
1481
1481
  fixedCacheKey: b
1482
1482
  }));
1483
1483
  }, k = Object.assign(M, {
1484
- arg: a.arg,
1484
+ arg: c.arg,
1485
1485
  requestId: y,
1486
1486
  abort: E,
1487
1487
  unwrap: N,
@@ -1527,9 +1527,9 @@ function Ii({
1527
1527
  catchSchemaFailure: C,
1528
1528
  skipSchemaValidation: w
1529
1529
  }) {
1530
- const T = (o, a, y, E) => (N, M) => {
1530
+ const T = (o, c, y, E) => (N, M) => {
1531
1531
  const q = n[o], k = r({
1532
- queryArgs: a,
1532
+ queryArgs: c,
1533
1533
  endpointDefinition: q,
1534
1534
  endpointName: o
1535
1535
  });
@@ -1538,33 +1538,33 @@ function Ii({
1538
1538
  patches: y
1539
1539
  })), !E)
1540
1540
  return;
1541
- const D = i.endpoints[o].select(a)(
1541
+ const D = i.endpoints[o].select(c)(
1542
1542
  // Work around TS 4.1 mismatch
1543
1543
  M()
1544
- ), Q = rn(q.providesTags, D.data, void 0, a, {}, u);
1544
+ ), Q = rn(q.providesTags, D.data, void 0, c, {}, u);
1545
1545
  N(i.internalActions.updateProvidedBy([{
1546
1546
  queryCacheKey: k,
1547
1547
  providedTags: Q
1548
1548
  }]));
1549
1549
  };
1550
- function I(o, a, y = 0) {
1551
- const E = [a, ...o];
1550
+ function I(o, c, y = 0) {
1551
+ const E = [c, ...o];
1552
1552
  return y && E.length > y ? E.slice(0, -1) : E;
1553
1553
  }
1554
- function A(o, a, y = 0) {
1555
- const E = [...o, a];
1554
+ function A(o, c, y = 0) {
1555
+ const E = [...o, c];
1556
1556
  return y && E.length > y ? E.slice(1) : E;
1557
1557
  }
1558
- const R = (o, a, y, E = !0) => (N, M) => {
1559
- const k = i.endpoints[o].select(a)(
1558
+ const R = (o, c, y, E = !0) => (N, M) => {
1559
+ const k = i.endpoints[o].select(c)(
1560
1560
  // Work around TS 4.1 mismatch
1561
1561
  M()
1562
1562
  ), D = {
1563
1563
  patches: [],
1564
1564
  inversePatches: [],
1565
- undo: () => N(i.util.patchQueryData(o, a, D.inversePatches, E))
1565
+ undo: () => N(i.util.patchQueryData(o, c, D.inversePatches, E))
1566
1566
  };
1567
- if (k.status === ae)
1567
+ if (k.status === ce)
1568
1568
  return D;
1569
1569
  let Q;
1570
1570
  if ("data" in k)
@@ -1581,15 +1581,15 @@ function Ii({
1581
1581
  path: [],
1582
1582
  value: k.data
1583
1583
  });
1584
- return D.patches.length === 0 || N(i.util.patchQueryData(o, a, D.patches, E)), D;
1585
- }, d = (o, a, y) => (E) => E(i.endpoints[o].initiate(a, {
1584
+ return D.patches.length === 0 || N(i.util.patchQueryData(o, c, D.patches, E)), D;
1585
+ }, d = (o, c, y) => (E) => E(i.endpoints[o].initiate(c, {
1586
1586
  subscribe: !1,
1587
1587
  forceRefetch: !0,
1588
1588
  [We]: () => ({
1589
1589
  data: y
1590
1590
  })
1591
- })), v = (o, a) => o.query && o[a] ? o[a] : In, p = async (o, {
1592
- signal: a,
1591
+ })), v = (o, c) => o.query && o[c] ? o[c] : In, p = async (o, {
1592
+ signal: c,
1593
1593
  abort: y,
1594
1594
  rejectWithValue: E,
1595
1595
  fulfillWithValue: N,
@@ -1603,8 +1603,8 @@ function Ii({
1603
1603
  } = D, L = o.type === et;
1604
1604
  try {
1605
1605
  let j = In;
1606
- const z = {
1607
- signal: a,
1606
+ const V = {
1607
+ signal: c,
1608
1608
  abort: y,
1609
1609
  dispatch: M,
1610
1610
  getState: q,
@@ -1615,10 +1615,10 @@ function Ii({
1615
1615
  queryCacheKey: L ? o.queryCacheKey : void 0
1616
1616
  }, K = L ? o[We] : void 0;
1617
1617
  let H;
1618
- const U = async (V, x, re, Y) => {
1619
- if (x == null && V.pages.length)
1618
+ const z = async (U, x, re, Y) => {
1619
+ if (x == null && U.pages.length)
1620
1620
  return Promise.resolve({
1621
- data: V
1621
+ data: U
1622
1622
  });
1623
1623
  const Oe = {
1624
1624
  queryArg: o.originalArgs,
@@ -1626,13 +1626,13 @@ function Ii({
1626
1626
  }, ie = await $(Oe), Ie = Y ? I : A;
1627
1627
  return {
1628
1628
  data: {
1629
- pages: Ie(V.pages, ie.data, re),
1630
- pageParams: Ie(V.pageParams, x, re)
1629
+ pages: Ie(U.pages, ie.data, re),
1630
+ pageParams: Ie(U.pageParams, x, re)
1631
1631
  },
1632
1632
  meta: ie.meta
1633
1633
  };
1634
1634
  };
1635
- async function $(V) {
1635
+ async function $(U) {
1636
1636
  let x;
1637
1637
  const {
1638
1638
  extraOptions: re,
@@ -1640,13 +1640,13 @@ function Ii({
1640
1640
  rawResponseSchema: Oe,
1641
1641
  responseSchema: ie
1642
1642
  } = D;
1643
- if (Y && !me(F, "arg") && (V = await ve(
1643
+ if (Y && !me(F, "arg") && (U = await ve(
1644
1644
  Y,
1645
- V,
1645
+ U,
1646
1646
  "argSchema",
1647
1647
  {}
1648
1648
  // we don't have a meta yet, so we can't pass it
1649
- )), K ? x = K() : D.query ? (j = v(D, "transformResponse"), x = await t(D.query(V), z, re)) : x = await D.queryFn(V, z, re, (X) => t(X, z, re)), typeof process < "u" && process.env.NODE_ENV === "development") {
1649
+ )), K ? x = K() : D.query ? (j = v(D, "transformResponse"), x = await t(D.query(U), V, re)) : x = await D.queryFn(U, V, re, (X) => t(X, V, re)), typeof process < "u" && process.env.NODE_ENV === "development") {
1650
1650
  const X = D.query ? "`baseQuery`" : "`queryFn`";
1651
1651
  let ee;
1652
1652
  if (!x)
@@ -1673,7 +1673,7 @@ function Ii({
1673
1673
  data: Ie
1674
1674
  } = x;
1675
1675
  Oe && !me(F, "rawResponse") && (Ie = await ve(Oe, x.data, "rawResponseSchema", x.meta));
1676
- let ue = await j(Ie, x.meta, V);
1676
+ let ue = await j(Ie, x.meta, U);
1677
1677
  return ie && !me(F, "response") && (ue = await ve(ie, ue, "responseSchema", x.meta)), {
1678
1678
  ...x,
1679
1679
  data: ue
@@ -1681,28 +1681,28 @@ function Ii({
1681
1681
  }
1682
1682
  if (L && "infiniteQueryOptions" in D) {
1683
1683
  const {
1684
- infiniteQueryOptions: V
1684
+ infiniteQueryOptions: U
1685
1685
  } = D, {
1686
1686
  maxPages: x = 1 / 0
1687
- } = V, re = o.refetchCachedPages ?? V.refetchCachedPages ?? !0;
1687
+ } = U, re = o.refetchCachedPages ?? U.refetchCachedPages ?? !0;
1688
1688
  let Y;
1689
1689
  const Oe = {
1690
1690
  pages: [],
1691
1691
  pageParams: []
1692
1692
  }, ie = m.selectQueryEntry(q(), o.queryCacheKey)?.data, ue = /* arg.forceRefetch */ P(o, q()) && !o.direction || !ie ? Oe : ie;
1693
1693
  if ("direction" in o && o.direction && ue.pages.length) {
1694
- const X = o.direction === "backward", le = (X ? fr : Ht)(V, ue, o.originalArgs);
1695
- Y = await U(ue, le, x, X);
1694
+ const X = o.direction === "backward", le = (X ? fr : Ht)(U, ue, o.originalArgs);
1695
+ Y = await z(ue, le, x, X);
1696
1696
  } else {
1697
1697
  const {
1698
- initialPageParam: X = V.initialPageParam
1698
+ initialPageParam: X = U.initialPageParam
1699
1699
  } = o, ee = ie?.pageParams ?? [], le = ee[0] ?? X, Rr = ee.length;
1700
- if (Y = await U(ue, le, x), K && (Y = {
1700
+ if (Y = await z(ue, le, x), K && (Y = {
1701
1701
  data: Y.data.pages[0]
1702
1702
  }), re)
1703
1703
  for (let sn = 1; sn < Rr; sn++) {
1704
- const Or = Ht(V, Y.data, o.originalArgs);
1705
- Y = await U(Y.data, Or, x);
1704
+ const Or = Ht(U, Y.data, o.originalArgs);
1705
+ Y = await z(Y.data, Or, x);
1706
1706
  }
1707
1707
  }
1708
1708
  H = Y;
@@ -1713,72 +1713,72 @@ function Ii({
1713
1713
  baseQueryMeta: H.meta
1714
1714
  }));
1715
1715
  } catch (j) {
1716
- let z = j;
1717
- if (z instanceof On) {
1716
+ let V = j;
1717
+ if (V instanceof On) {
1718
1718
  let K = v(D, "transformErrorResponse");
1719
1719
  const {
1720
1720
  rawErrorResponseSchema: H,
1721
- errorResponseSchema: U
1721
+ errorResponseSchema: z
1722
1722
  } = D;
1723
1723
  let {
1724
1724
  value: $,
1725
- meta: V
1726
- } = z;
1725
+ meta: U
1726
+ } = V;
1727
1727
  try {
1728
- H && !me(F, "rawErrorResponse") && ($ = await ve(H, $, "rawErrorResponseSchema", V)), Q && !me(F, "meta") && (V = await ve(Q, V, "metaSchema", V));
1729
- let x = await K($, V, o.originalArgs);
1730
- return U && !me(F, "errorResponse") && (x = await ve(U, x, "errorResponseSchema", V)), E(x, ke({
1731
- baseQueryMeta: V
1728
+ H && !me(F, "rawErrorResponse") && ($ = await ve(H, $, "rawErrorResponseSchema", U)), Q && !me(F, "meta") && (U = await ve(Q, U, "metaSchema", U));
1729
+ let x = await K($, U, o.originalArgs);
1730
+ return z && !me(F, "errorResponse") && (x = await ve(z, x, "errorResponseSchema", U)), E(x, ke({
1731
+ baseQueryMeta: U
1732
1732
  }));
1733
1733
  } catch (x) {
1734
- z = x;
1734
+ V = x;
1735
1735
  }
1736
1736
  }
1737
1737
  try {
1738
- if (z instanceof lr) {
1738
+ if (V instanceof lr) {
1739
1739
  const K = {
1740
1740
  endpoint: o.endpointName,
1741
1741
  arg: o.originalArgs,
1742
1742
  type: o.type,
1743
1743
  queryCacheKey: L ? o.queryCacheKey : void 0
1744
1744
  };
1745
- D.onSchemaFailure?.(z, K), _?.(z, K);
1745
+ D.onSchemaFailure?.(V, K), _?.(V, K);
1746
1746
  const {
1747
1747
  catchSchemaFailure: H = C
1748
1748
  } = D;
1749
1749
  if (H)
1750
- return E(H(z, K), ke({
1751
- baseQueryMeta: z._bqMeta
1750
+ return E(H(V, K), ke({
1751
+ baseQueryMeta: V._bqMeta
1752
1752
  }));
1753
1753
  }
1754
1754
  } catch (K) {
1755
- z = K;
1755
+ V = K;
1756
1756
  }
1757
1757
  throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${o.endpointName}".
1758
- In the case of an unhandled error, no tags will be "provided" or "invalidated".`, z) : console.error(z), z;
1758
+ In the case of an unhandled error, no tags will be "provided" or "invalidated".`, V) : console.error(V), V;
1759
1759
  }
1760
1760
  };
1761
- function P(o, a) {
1762
- const y = m.selectQueryEntry(a, o.queryCacheKey), E = m.selectConfig(a).refetchOnMountOrArgChange, N = y?.fulfilledTimeStamp, M = o.forceRefetch ?? (o.subscribe && E);
1761
+ function P(o, c) {
1762
+ const y = m.selectQueryEntry(c, o.queryCacheKey), E = m.selectConfig(c).refetchOnMountOrArgChange, N = y?.fulfilledTimeStamp, M = o.forceRefetch ?? (o.subscribe && E);
1763
1763
  return M ? M === !0 || (Number(/* @__PURE__ */ new Date()) - Number(N)) / 1e3 >= M : !1;
1764
1764
  }
1765
- const O = () => cn(`${e}/executeQuery`, p, {
1765
+ const O = () => an(`${e}/executeQuery`, p, {
1766
1766
  getPendingMeta({
1767
- arg: a
1767
+ arg: c
1768
1768
  }) {
1769
- const y = n[a.endpointName];
1769
+ const y = n[c.endpointName];
1770
1770
  return ke({
1771
1771
  startedTimeStamp: Date.now(),
1772
1772
  ...tt(y) ? {
1773
- direction: a.direction
1773
+ direction: c.direction
1774
1774
  } : {}
1775
1775
  });
1776
1776
  },
1777
- condition(a, {
1777
+ condition(c, {
1778
1778
  getState: y
1779
1779
  }) {
1780
- const E = y(), N = m.selectQueryEntry(E, a.queryCacheKey), M = N?.fulfilledTimeStamp, q = a.originalArgs, k = N?.originalArgs, D = n[a.endpointName], Q = a.direction;
1781
- return Kt(a) ? !0 : N?.status === "pending" ? !1 : P(a, E) || wt(D) && D?.forceRefetch?.({
1780
+ const E = y(), N = m.selectQueryEntry(E, c.queryCacheKey), M = N?.fulfilledTimeStamp, q = c.originalArgs, k = N?.originalArgs, D = n[c.endpointName], Q = c.direction;
1781
+ return Kt(c) ? !0 : N?.status === "pending" ? !1 : P(c, E) || wt(D) && D?.forceRefetch?.({
1782
1782
  currentArg: q,
1783
1783
  previousArg: k,
1784
1784
  endpointState: N,
@@ -1786,20 +1786,20 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
1786
1786
  }) ? !0 : !(M && !Q);
1787
1787
  },
1788
1788
  dispatchConditionRejection: !0
1789
- }), f = O(), g = O(), s = cn(`${e}/executeMutation`, p, {
1789
+ }), f = O(), g = O(), s = an(`${e}/executeMutation`, p, {
1790
1790
  getPendingMeta() {
1791
1791
  return ke({
1792
1792
  startedTimeStamp: Date.now()
1793
1793
  });
1794
1794
  }
1795
- }), c = (o) => "force" in o, S = (o) => "ifOlderThan" in o, b = (o, a, y = {}) => (E, N) => {
1796
- const M = c(y) && y.force, q = S(y) && y.ifOlderThan, k = (Q = !0) => {
1795
+ }), a = (o) => "force" in o, S = (o) => "ifOlderThan" in o, b = (o, c, y = {}) => (E, N) => {
1796
+ const M = a(y) && y.force, q = S(y) && y.ifOlderThan, k = (Q = !0) => {
1797
1797
  const F = {
1798
1798
  forceRefetch: Q,
1799
1799
  subscribe: !1
1800
1800
  };
1801
- return i.endpoints[o].initiate(a, F);
1802
- }, D = i.endpoints[o].select(a)(N());
1801
+ return i.endpoints[o].initiate(c, F);
1802
+ }, D = i.endpoints[o].select(c)(N());
1803
1803
  if (M)
1804
1804
  E(k());
1805
1805
  else if (q) {
@@ -1813,13 +1813,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
1813
1813
  E(k(!1));
1814
1814
  };
1815
1815
  function h(o) {
1816
- return (a) => a?.meta?.arg?.endpointName === o;
1816
+ return (c) => c?.meta?.arg?.endpointName === o;
1817
1817
  }
1818
- function l(o, a) {
1818
+ function l(o, c) {
1819
1819
  return {
1820
- matchPending: Ot(jn(o), h(a)),
1821
- matchFulfilled: Ot(be(o), h(a)),
1822
- matchRejected: Ot(Gt(o), h(a))
1820
+ matchPending: Ot(jn(o), h(c)),
1821
+ matchFulfilled: Ot(be(o), h(c)),
1822
+ matchRejected: Ot(Gt(o), h(c))
1823
1823
  };
1824
1824
  }
1825
1825
  return {
@@ -1879,9 +1879,9 @@ function Ai({
1879
1879
  config: w
1880
1880
  }) {
1881
1881
  const T = De(`${e}/resetApiState`);
1882
- function I(h, l, o, a) {
1882
+ function I(h, l, o, c) {
1883
1883
  h[l.queryCacheKey] ??= {
1884
- status: ae,
1884
+ status: ce,
1885
1885
  endpointName: l.endpointName
1886
1886
  }, ot(h, l.queryCacheKey, (y) => {
1887
1887
  y.status = $t, y.requestId = o && y.requestId ? (
@@ -1889,15 +1889,15 @@ function Ai({
1889
1889
  y.requestId
1890
1890
  ) : (
1891
1891
  // for normal queries or `upsertQuery` **inserts** always update the `requestId`
1892
- a.requestId
1893
- ), l.originalArgs !== void 0 && (y.originalArgs = l.originalArgs), y.startedTimeStamp = a.startedTimeStamp;
1894
- const E = i[a.arg.endpointName];
1892
+ c.requestId
1893
+ ), l.originalArgs !== void 0 && (y.originalArgs = l.originalArgs), y.startedTimeStamp = c.startedTimeStamp;
1894
+ const E = i[c.arg.endpointName];
1895
1895
  tt(E) && "direction" in l && (y.direction = l.direction);
1896
1896
  });
1897
1897
  }
1898
- function A(h, l, o, a) {
1898
+ function A(h, l, o, c) {
1899
1899
  ot(h, l.arg.queryCacheKey, (y) => {
1900
- if (y.requestId !== l.requestId && !a) return;
1900
+ if (y.requestId !== l.requestId && !c) return;
1901
1901
  const {
1902
1902
  merge: E
1903
1903
  } = i[l.arg.endpointName];
@@ -1941,17 +1941,17 @@ function Ai({
1941
1941
  reducer(h, l) {
1942
1942
  for (const o of l.payload) {
1943
1943
  const {
1944
- queryDescription: a,
1944
+ queryDescription: c,
1945
1945
  value: y
1946
1946
  } = o;
1947
- I(h, a, !0, {
1948
- arg: a,
1947
+ I(h, c, !0, {
1948
+ arg: c,
1949
1949
  requestId: l.meta.requestId,
1950
1950
  startedTimeStamp: l.meta.timestamp
1951
1951
  }), A(
1952
1952
  h,
1953
1953
  {
1954
- arg: a,
1954
+ arg: c,
1955
1955
  requestId: l.meta.requestId,
1956
1956
  fulfilledTimeStamp: l.meta.timestamp,
1957
1957
  baseQueryMeta: {}
@@ -1963,17 +1963,17 @@ function Ai({
1963
1963
  }
1964
1964
  },
1965
1965
  prepare: (h) => ({
1966
- payload: h.map((a) => {
1966
+ payload: h.map((c) => {
1967
1967
  const {
1968
1968
  endpointName: y,
1969
1969
  arg: E,
1970
1970
  value: N
1971
- } = a, M = i[y];
1971
+ } = c, M = i[y];
1972
1972
  return {
1973
1973
  queryDescription: {
1974
1974
  type: et,
1975
1975
  endpointName: y,
1976
- originalArgs: a.arg,
1976
+ originalArgs: c.arg,
1977
1977
  queryCacheKey: r({
1978
1978
  queryArgs: E,
1979
1979
  endpointDefinition: M,
@@ -1997,8 +1997,8 @@ function Ai({
1997
1997
  patches: o
1998
1998
  }
1999
1999
  }) {
2000
- ot(h, l, (a) => {
2001
- a.data = mn(a.data, o.concat());
2000
+ ot(h, l, (c) => {
2001
+ c.data = mn(c.data, o.concat());
2002
2002
  });
2003
2003
  },
2004
2004
  prepare: Ne()
@@ -2008,27 +2008,27 @@ function Ai({
2008
2008
  h.addCase(t.pending, (l, {
2009
2009
  meta: o,
2010
2010
  meta: {
2011
- arg: a
2011
+ arg: c
2012
2012
  }
2013
2013
  }) => {
2014
- const y = Kt(a);
2015
- I(l, a, y, o);
2014
+ const y = Kt(c);
2015
+ I(l, c, y, o);
2016
2016
  }).addCase(t.fulfilled, (l, {
2017
2017
  meta: o,
2018
- payload: a
2018
+ payload: c
2019
2019
  }) => {
2020
2020
  const y = Kt(o.arg);
2021
- A(l, o, a, y);
2021
+ A(l, o, c, y);
2022
2022
  }).addCase(t.rejected, (l, {
2023
2023
  meta: {
2024
2024
  condition: o,
2025
- arg: a,
2025
+ arg: c,
2026
2026
  requestId: y
2027
2027
  },
2028
2028
  error: E,
2029
2029
  payload: N
2030
2030
  }) => {
2031
- ot(l, a.queryCacheKey, (M) => {
2031
+ ot(l, c.queryCacheKey, (M) => {
2032
2032
  if (!o) {
2033
2033
  if (M.requestId !== y) return;
2034
2034
  M.status = qe, M.error = N ?? E;
@@ -2036,9 +2036,9 @@ function Ai({
2036
2036
  });
2037
2037
  }).addMatcher(_, (l, o) => {
2038
2038
  const {
2039
- queries: a
2039
+ queries: c
2040
2040
  } = m(o);
2041
- for (const [y, E] of Object.entries(a))
2041
+ for (const [y, E] of Object.entries(c))
2042
2042
  // do not rehydrate entries that were currently in flight.
2043
2043
  (E?.status === Qe || E?.status === qe) && (l[y] = E);
2044
2044
  });
@@ -2061,37 +2061,37 @@ function Ai({
2061
2061
  h.addCase(n.pending, (l, {
2062
2062
  meta: o,
2063
2063
  meta: {
2064
- requestId: a,
2064
+ requestId: c,
2065
2065
  arg: y,
2066
2066
  startedTimeStamp: E
2067
2067
  }
2068
2068
  }) => {
2069
2069
  y.track && (l[Be(o)] = {
2070
- requestId: a,
2070
+ requestId: c,
2071
2071
  status: $t,
2072
2072
  endpointName: y.endpointName,
2073
2073
  startedTimeStamp: E
2074
2074
  });
2075
2075
  }).addCase(n.fulfilled, (l, {
2076
2076
  payload: o,
2077
- meta: a
2077
+ meta: c
2078
2078
  }) => {
2079
- a.arg.track && Cn(l, a, (y) => {
2080
- y.requestId === a.requestId && (y.status = Qe, y.data = o, y.fulfilledTimeStamp = a.fulfilledTimeStamp);
2079
+ c.arg.track && Cn(l, c, (y) => {
2080
+ y.requestId === c.requestId && (y.status = Qe, y.data = o, y.fulfilledTimeStamp = c.fulfilledTimeStamp);
2081
2081
  });
2082
2082
  }).addCase(n.rejected, (l, {
2083
2083
  payload: o,
2084
- error: a,
2084
+ error: c,
2085
2085
  meta: y
2086
2086
  }) => {
2087
2087
  y.arg.track && Cn(l, y, (E) => {
2088
- E.requestId === y.requestId && (E.status = qe, E.error = o ?? a);
2088
+ E.requestId === y.requestId && (E.status = qe, E.error = o ?? c);
2089
2089
  });
2090
2090
  }).addMatcher(_, (l, o) => {
2091
2091
  const {
2092
- mutations: a
2092
+ mutations: c
2093
2093
  } = m(o);
2094
- for (const [y, E] of Object.entries(a))
2094
+ for (const [y, E] of Object.entries(c))
2095
2095
  // do not rehydrate entries that were currently in flight.
2096
2096
  (E?.status === Qe || E?.status === qe) && // only rehydrate endpoints that were persisted using a `fixedCacheKey`
2097
2097
  y !== E?.requestId && (l[y] = E);
@@ -2108,17 +2108,17 @@ function Ai({
2108
2108
  reducer(h, l) {
2109
2109
  for (const {
2110
2110
  queryCacheKey: o,
2111
- providedTags: a
2111
+ providedTags: c
2112
2112
  } of l.payload) {
2113
2113
  P(h, o);
2114
2114
  for (const {
2115
2115
  type: y,
2116
2116
  id: E
2117
- } of a) {
2117
+ } of c) {
2118
2118
  const N = (h.tags[y] ??= {})[E || "__internal_without_id"] ??= [];
2119
2119
  N.includes(o) || N.push(o);
2120
2120
  }
2121
- h.keys[o] = a;
2121
+ h.keys[o] = c;
2122
2122
  }
2123
2123
  },
2124
2124
  prepare: Ne()
@@ -2133,18 +2133,18 @@ function Ai({
2133
2133
  P(l, o);
2134
2134
  }).addMatcher(_, (l, o) => {
2135
2135
  const {
2136
- provided: a
2136
+ provided: c
2137
2137
  } = m(o);
2138
- for (const [y, E] of Object.entries(a.tags ?? {}))
2138
+ for (const [y, E] of Object.entries(c.tags ?? {}))
2139
2139
  for (const [N, M] of Object.entries(E)) {
2140
2140
  const q = (l.tags[y] ??= {})[N || "__internal_without_id"] ??= [];
2141
2141
  for (const k of M)
2142
- q.includes(k) || q.push(k), l.keys[k] = a.keys[k];
2142
+ q.includes(k) || q.push(k), l.keys[k] = c.keys[k];
2143
2143
  }
2144
- }).addMatcher(Ue(be(t), Bt(t)), (l, o) => {
2144
+ }).addMatcher(ze(be(t), Bt(t)), (l, o) => {
2145
2145
  O(l, [o]);
2146
2146
  }).addMatcher(R.actions.cacheEntriesUpserted.match, (l, o) => {
2147
- const a = o.payload.map(({
2147
+ const c = o.payload.map(({
2148
2148
  queryDescription: y,
2149
2149
  value: E
2150
2150
  }) => ({
@@ -2156,23 +2156,23 @@ function Ai({
2156
2156
  arg: y
2157
2157
  }
2158
2158
  }));
2159
- O(l, a);
2159
+ O(l, c);
2160
2160
  });
2161
2161
  }
2162
2162
  });
2163
2163
  function P(h, l) {
2164
2164
  const o = An(h.keys[l] ?? []);
2165
- for (const a of o) {
2166
- const y = a.type, E = a.id ?? "__internal_without_id", N = h.tags[y]?.[E];
2165
+ for (const c of o) {
2166
+ const y = c.type, E = c.id ?? "__internal_without_id", N = h.tags[y]?.[E];
2167
2167
  N && (h.tags[y][E] = An(N).filter((M) => M !== l));
2168
2168
  }
2169
2169
  delete h.keys[l];
2170
2170
  }
2171
2171
  function O(h, l) {
2172
- const o = l.map((a) => {
2173
- const y = dr(a, "providesTags", i, C), {
2172
+ const o = l.map((c) => {
2173
+ const y = dr(c, "providesTags", i, C), {
2174
2174
  queryCacheKey: E
2175
- } = a.meta.arg;
2175
+ } = c.meta.arg;
2176
2176
  return {
2177
2177
  queryCacheKey: E,
2178
2178
  providedTags: y
@@ -2230,13 +2230,13 @@ function Ai({
2230
2230
  ...l
2231
2231
  }));
2232
2232
  }
2233
- }), c = Ar({
2233
+ }), a = Ar({
2234
2234
  queries: R.reducer,
2235
2235
  mutations: d.reducer,
2236
2236
  provided: p.reducer,
2237
2237
  subscriptions: g.reducer,
2238
2238
  config: s.reducer
2239
- }), S = (h, l) => c(T.match(l) ? void 0 : h, l), b = {
2239
+ }), S = (h, l) => a(T.match(l) ? void 0 : h, l), b = {
2240
2240
  ...s.actions,
2241
2241
  ...R.actions,
2242
2242
  ...f.actions,
@@ -2251,7 +2251,7 @@ function Ai({
2251
2251
  };
2252
2252
  }
2253
2253
  var te = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), pr = {
2254
- status: ae
2254
+ status: ce
2255
2255
  }, Tn = /* @__PURE__ */ Wt(pr, () => {
2256
2256
  }), Dn = /* @__PURE__ */ Wt(pr, () => {
2257
2257
  });
@@ -2300,11 +2300,11 @@ function Ci({
2300
2300
  return m(f)?.config;
2301
2301
  }
2302
2302
  function I(f, g, s) {
2303
- return (c) => {
2304
- if (c === te)
2303
+ return (a) => {
2304
+ if (a === te)
2305
2305
  return n(r, s);
2306
2306
  const S = e({
2307
- queryArgs: c,
2307
+ queryArgs: a,
2308
2308
  endpointDefinition: g,
2309
2309
  endpointName: f
2310
2310
  });
@@ -2318,7 +2318,7 @@ function Ci({
2318
2318
  const {
2319
2319
  infiniteQueryOptions: s
2320
2320
  } = g;
2321
- function c(S) {
2321
+ function a(S) {
2322
2322
  const b = {
2323
2323
  ...S,
2324
2324
  ...bn(S.status)
@@ -2326,18 +2326,18 @@ function Ci({
2326
2326
  isLoading: h,
2327
2327
  isError: l,
2328
2328
  direction: o
2329
- } = b, a = o === "forward", y = o === "backward";
2329
+ } = b, c = o === "forward", y = o === "backward";
2330
2330
  return {
2331
2331
  ...b,
2332
2332
  hasNextPage: P(s, b.data, b.originalArgs),
2333
2333
  hasPreviousPage: O(s, b.data, b.originalArgs),
2334
- isFetchingNextPage: h && a,
2334
+ isFetchingNextPage: h && c,
2335
2335
  isFetchingPreviousPage: h && y,
2336
- isFetchNextPageError: l && a,
2336
+ isFetchNextPageError: l && c,
2337
2337
  isFetchPreviousPageError: l && y
2338
2338
  };
2339
2339
  }
2340
- return I(f, g, c);
2340
+ return I(f, g, a);
2341
2341
  }
2342
2342
  function d() {
2343
2343
  return (f) => {
@@ -2346,7 +2346,7 @@ function Ci({
2346
2346
  };
2347
2347
  }
2348
2348
  function v(f, g) {
2349
- const s = f[t], c = /* @__PURE__ */ new Set(), S = Lt(g, en, ur);
2349
+ const s = f[t], a = /* @__PURE__ */ new Set(), S = Lt(g, en, ur);
2350
2350
  for (const b of S) {
2351
2351
  const h = s.provided.tags[b.type];
2352
2352
  if (!h)
@@ -2359,9 +2359,9 @@ function Ci({
2359
2359
  Object.values(h).flat()
2360
2360
  )) ?? [];
2361
2361
  for (const o of l)
2362
- c.add(o);
2362
+ a.add(o);
2363
2363
  }
2364
- return Array.from(c.values()).flatMap((b) => {
2364
+ return Array.from(a.values()).flatMap((b) => {
2365
2365
  const h = s.queries[b];
2366
2366
  return h ? {
2367
2367
  queryCacheKey: b,
@@ -2371,7 +2371,7 @@ function Ci({
2371
2371
  });
2372
2372
  }
2373
2373
  function p(f, g) {
2374
- return Lt(Object.values(_(f)), (s) => s?.endpointName === g && s.status !== ae, (s) => s.originalArgs);
2374
+ return Lt(Object.values(_(f)), (s) => s?.endpointName === g && s.status !== ce, (s) => s.originalArgs);
2375
2375
  }
2376
2376
  function P(f, g, s) {
2377
2377
  return g ? Ht(f, g, s) != null : !1;
@@ -2391,8 +2391,8 @@ var Nn = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, kn = ({
2391
2391
  else {
2392
2392
  const i = JSON.stringify(t, (u, m) => (m = typeof m == "bigint" ? {
2393
2393
  $bigint: m.toString()
2394
- } : m, m = ze(m) ? Object.keys(m).sort().reduce((_, C) => (_[C] = m[C], _), {}) : m, m));
2395
- ze(t) && Nn?.set(t, i), n = i;
2394
+ } : m, m = Ve(m) ? Object.keys(m).sort().reduce((_, C) => (_[C] = m[C], _), {}) : m, m));
2395
+ Ve(t) && Nn?.set(t, i), n = i;
2396
2396
  }
2397
2397
  return `${e}(${n})`;
2398
2398
  };
@@ -2455,11 +2455,11 @@ function hr(...e) {
2455
2455
  }),
2456
2456
  mutation: (I) => ({
2457
2457
  ...I,
2458
- type: cr
2458
+ type: ar
2459
2459
  }),
2460
2460
  infiniteQuery: (I) => ({
2461
2461
  ...I,
2462
- type: ar
2462
+ type: cr
2463
2463
  })
2464
2464
  });
2465
2465
  for (const [I, A] of Object.entries(T)) {
@@ -2569,8 +2569,8 @@ var Ti = ({
2569
2569
  return [!1, n.currentPolls];
2570
2570
  if (P) {
2571
2571
  m || (m = setTimeout(() => {
2572
- const s = d(n.currentSubscriptions), [, c] = tr(u, () => s);
2573
- p.next(e.internalActions.subscriptionsUpdated(c)), u = s, m = null;
2572
+ const s = d(n.currentSubscriptions), [, a] = tr(u, () => s);
2573
+ p.next(e.internalActions.subscriptionsUpdated(a)), u = s, m = null;
2574
2574
  }, 500));
2575
2575
  const f = typeof v.type == "string" && !!v.type.startsWith(i), g = t.rejected.match(v) && v.meta.condition && !!v.meta.arg.subscribe;
2576
2576
  O = !f && !g;
@@ -2594,7 +2594,7 @@ var Ti = ({
2594
2594
  removeQueryResult: w,
2595
2595
  unsubscribeQueryResult: T,
2596
2596
  cacheEntriesUpserted: I
2597
- } = t.internalActions, A = Ue(T.match, n.fulfilled, n.rejected, I.match);
2597
+ } = t.internalActions, A = ze(T.match, n.fulfilled, n.rejected, I.match);
2598
2598
  function R(f) {
2599
2599
  const g = i.currentSubscriptions.get(f);
2600
2600
  return g ? g.size > 0 : !1;
@@ -2605,7 +2605,7 @@ var Ti = ({
2605
2605
  g?.abort?.();
2606
2606
  }
2607
2607
  const p = (f, g) => {
2608
- const s = g.getState(), c = m(s);
2608
+ const s = g.getState(), a = m(s);
2609
2609
  if (A(f)) {
2610
2610
  let S;
2611
2611
  if (I.match(f))
@@ -2616,7 +2616,7 @@ var Ti = ({
2616
2616
  } = T.match(f) ? f.payload : f.meta.arg;
2617
2617
  S = [b];
2618
2618
  }
2619
- P(S, g, c);
2619
+ P(S, g, a);
2620
2620
  }
2621
2621
  if (t.util.resetApiState.match(f)) {
2622
2622
  for (const [S, b] of Object.entries(d))
@@ -2627,18 +2627,18 @@ var Ti = ({
2627
2627
  const {
2628
2628
  queries: S
2629
2629
  } = r.extractRehydrationInfo(f);
2630
- P(Object.keys(S), g, c);
2630
+ P(Object.keys(S), g, a);
2631
2631
  }
2632
2632
  };
2633
2633
  function P(f, g, s) {
2634
- const c = g.getState();
2634
+ const a = g.getState();
2635
2635
  for (const S of f) {
2636
- const b = u(c, S);
2636
+ const b = u(a, S);
2637
2637
  b?.endpointName && O(S, b.endpointName, g, s);
2638
2638
  }
2639
2639
  }
2640
- function O(f, g, s, c) {
2641
- const b = Te(r, g)?.keepUnusedDataFor ?? c.keepUnusedDataFor;
2640
+ function O(f, g, s, a) {
2641
+ const b = Te(r, g)?.keepUnusedDataFor ?? a.keepUnusedDataFor;
2642
2642
  if (b === 1 / 0)
2643
2643
  return;
2644
2644
  const h = Math.max(0, Math.min(b, Di));
@@ -2668,57 +2668,57 @@ var Ti = ({
2668
2668
  selectApiState: _
2669
2669
  }
2670
2670
  }) => {
2671
- const C = an(r), w = an(i), T = be(r, i), I = {}, {
2671
+ const C = cn(r), w = cn(i), T = be(r, i), I = {}, {
2672
2672
  removeQueryResult: A,
2673
2673
  removeMutationResult: R,
2674
2674
  cacheEntriesUpserted: d
2675
2675
  } = e.internalActions;
2676
- function v(s, c, S) {
2676
+ function v(s, a, S) {
2677
2677
  const b = I[s];
2678
2678
  b?.valueResolved && (b.valueResolved({
2679
- data: c,
2679
+ data: a,
2680
2680
  meta: S
2681
2681
  }), delete b.valueResolved);
2682
2682
  }
2683
2683
  function p(s) {
2684
- const c = I[s];
2685
- c && (delete I[s], c.cacheEntryRemoved());
2684
+ const a = I[s];
2685
+ a && (delete I[s], a.cacheEntryRemoved());
2686
2686
  }
2687
2687
  function P(s) {
2688
2688
  const {
2689
- arg: c,
2689
+ arg: a,
2690
2690
  requestId: S
2691
2691
  } = s.meta, {
2692
2692
  endpointName: b,
2693
2693
  originalArgs: h
2694
- } = c;
2694
+ } = a;
2695
2695
  return [b, h, S];
2696
2696
  }
2697
- const O = (s, c, S) => {
2697
+ const O = (s, a, S) => {
2698
2698
  const b = f(s);
2699
- function h(l, o, a, y) {
2700
- const E = m(S, o), N = m(c.getState(), o);
2701
- !E && N && g(l, y, o, c, a);
2699
+ function h(l, o, c, y) {
2700
+ const E = m(S, o), N = m(a.getState(), o);
2701
+ !E && N && g(l, y, o, a, c);
2702
2702
  }
2703
2703
  if (r.pending.match(s)) {
2704
- const [l, o, a] = P(s);
2705
- h(l, b, a, o);
2704
+ const [l, o, c] = P(s);
2705
+ h(l, b, c, o);
2706
2706
  } else if (d.match(s))
2707
2707
  for (const {
2708
2708
  queryDescription: l,
2709
2709
  value: o
2710
2710
  } of s.payload) {
2711
2711
  const {
2712
- endpointName: a,
2712
+ endpointName: c,
2713
2713
  originalArgs: y,
2714
2714
  queryCacheKey: E
2715
2715
  } = l;
2716
- h(a, E, s.meta.requestId, y), v(E, o, {});
2716
+ h(c, E, s.meta.requestId, y), v(E, o, {});
2717
2717
  }
2718
2718
  else if (i.pending.match(s)) {
2719
- if (c.getState()[t].mutations[b]) {
2720
- const [o, a, y] = P(s);
2721
- g(o, a, b, c, y);
2719
+ if (a.getState()[t].mutations[b]) {
2720
+ const [o, c, y] = P(s);
2721
+ g(o, c, b, a, y);
2722
2722
  }
2723
2723
  } else if (T(s))
2724
2724
  v(b, s.payload, s.meta.baseQueryMeta);
@@ -2731,27 +2731,27 @@ var Ti = ({
2731
2731
  function f(s) {
2732
2732
  return C(s) ? s.meta.arg.queryCacheKey : w(s) ? s.meta.arg.fixedCacheKey ?? s.meta.requestId : A.match(s) ? s.payload.queryCacheKey : R.match(s) ? Be(s.payload) : "";
2733
2733
  }
2734
- function g(s, c, S, b, h) {
2734
+ function g(s, a, S, b, h) {
2735
2735
  const l = Te(n, s), o = l?.onCacheEntryAdded;
2736
2736
  if (!o) return;
2737
- const a = {}, y = new Promise((D) => {
2738
- a.cacheEntryRemoved = D;
2737
+ const c = {}, y = new Promise((D) => {
2738
+ c.cacheEntryRemoved = D;
2739
2739
  }), E = Promise.race([new Promise((D) => {
2740
- a.valueResolved = D;
2740
+ c.valueResolved = D;
2741
2741
  }), y.then(() => {
2742
2742
  throw Mn;
2743
2743
  })]);
2744
2744
  E.catch(() => {
2745
- }), I[S] = a;
2746
- const N = e.endpoints[s].select(_t(l) ? c : S), M = b.dispatch((D, Q, F) => F), q = {
2745
+ }), I[S] = c;
2746
+ const N = e.endpoints[s].select(_t(l) ? a : S), M = b.dispatch((D, Q, F) => F), q = {
2747
2747
  ...b,
2748
2748
  getCacheEntry: () => N(b.getState()),
2749
2749
  requestId: h,
2750
2750
  extra: M,
2751
- updateCachedData: _t(l) ? (D) => b.dispatch(e.util.updateQueryData(s, c, D)) : void 0,
2751
+ updateCachedData: _t(l) ? (D) => b.dispatch(e.util.updateQueryData(s, a, D)) : void 0,
2752
2752
  cacheDataLoaded: E,
2753
2753
  cacheEntryRemoved: y
2754
- }, k = o(c, q);
2754
+ }, k = o(a, q);
2755
2755
  Promise.resolve(k).catch((D) => {
2756
2756
  if (D !== Mn)
2757
2757
  throw D;
@@ -2783,7 +2783,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2783
2783
  }) => {
2784
2784
  const {
2785
2785
  removeQueryResult: w
2786
- } = u.internalActions, T = Ue(be(r), Bt(r)), I = Ue(be(i, r), Gt(i, r));
2786
+ } = u.internalActions, T = ze(be(r), Bt(r)), I = ze(be(i, r), Gt(i, r));
2787
2787
  let A = [], R = 0;
2788
2788
  const d = (P, O) => {
2789
2789
  (i.pending.match(P) || r.pending.match(P)) && R++, I(P) && (R = Math.max(0, R - 1)), T(P) ? p(dr(P, "invalidatesTags", n, m), O) : I(P) ? p([], O) : u.util.invalidateTags.match(P) && p(rn(P.payload, void 0, void 0, void 0, void 0, m), O);
@@ -2797,16 +2797,16 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2797
2797
  return;
2798
2798
  const s = A;
2799
2799
  if (A = [], s.length === 0) return;
2800
- const c = u.util.selectInvalidatedBy(f, s);
2800
+ const a = u.util.selectInvalidatedBy(f, s);
2801
2801
  t.batch(() => {
2802
- const S = Array.from(c.values());
2802
+ const S = Array.from(a.values());
2803
2803
  for (const {
2804
2804
  queryCacheKey: b
2805
2805
  } of S) {
2806
2806
  const h = g.queries[b], l = St(C.currentSubscriptions, b, jt);
2807
2807
  h && (l.size === 0 ? O.dispatch(w({
2808
2808
  queryCacheKey: b
2809
- })) : h.status !== ae && O.dispatch(_(h)));
2809
+ })) : h.status !== ce && O.dispatch(_(h)));
2810
2810
  }
2811
2811
  });
2812
2812
  }
@@ -2839,10 +2839,10 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2839
2839
  queryCacheKey: p
2840
2840
  }, P) {
2841
2841
  const O = P.getState()[e], f = O.queries[p], g = m.get(p);
2842
- if (!f || f.status === ae) return;
2842
+ if (!f || f.status === ce) return;
2843
2843
  const {
2844
2844
  lowestPollingInterval: s,
2845
- skipPollingIfUnfocused: c
2845
+ skipPollingIfUnfocused: a
2846
2846
  } = v(g);
2847
2847
  if (!Number.isFinite(s)) return;
2848
2848
  const S = u.get(p);
@@ -2852,7 +2852,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2852
2852
  nextPollTimestamp: b,
2853
2853
  pollingInterval: s,
2854
2854
  timeout: setTimeout(() => {
2855
- (O.config.focused || !c) && P.dispatch(r(f)), I({
2855
+ (O.config.focused || !a) && P.dispatch(r(f)), I({
2856
2856
  queryCacheKey: p
2857
2857
  }, P);
2858
2858
  }, s)
@@ -2862,7 +2862,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2862
2862
  queryCacheKey: p
2863
2863
  }, P) {
2864
2864
  const f = P.getState()[e].queries[p], g = m.get(p);
2865
- if (!f || f.status === ae)
2865
+ if (!f || f.status === ce)
2866
2866
  return;
2867
2867
  const {
2868
2868
  lowestPollingInterval: s
@@ -2875,8 +2875,8 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2875
2875
  R(p);
2876
2876
  return;
2877
2877
  }
2878
- const c = u.get(p), S = Date.now() + s;
2879
- (!c || S < c.nextPollTimestamp) && I({
2878
+ const a = u.get(p), S = Date.now() + s;
2879
+ (!a || S < a.nextPollTimestamp) && I({
2880
2880
  queryCacheKey: p
2881
2881
  }, P);
2882
2882
  }
@@ -2915,12 +2915,12 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2915
2915
  }
2916
2916
  } = w.meta, d = Te(t, A), v = d?.onQueryStarted;
2917
2917
  if (v) {
2918
- const p = {}, P = new Promise((s, c) => {
2919
- p.resolve = s, p.reject = c;
2918
+ const p = {}, P = new Promise((s, a) => {
2919
+ p.resolve = s, p.reject = a;
2920
2920
  });
2921
2921
  P.catch(() => {
2922
2922
  }), _[I] = p;
2923
- const O = e.endpoints[A].select(_t(d) ? R : I), f = T.dispatch((s, c, S) => S), g = {
2923
+ const O = e.endpoints[A].select(_t(d) ? R : I), f = T.dispatch((s, a, S) => S), g = {
2924
2924
  ...T,
2925
2925
  getCacheEntry: () => O(T.getState()),
2926
2926
  requestId: I,
@@ -2973,13 +2973,13 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
2973
2973
  const p = [...v.values()];
2974
2974
  (p.some((O) => O[w] === !0) || p.every((O) => O[w] === void 0) && T.config[w]) && (v.size === 0 ? C.dispatch(u({
2975
2975
  queryCacheKey: R
2976
- })) : d.status !== ae && C.dispatch(r(d)));
2976
+ })) : d.status !== ce && C.dispatch(r(d)));
2977
2977
  }
2978
2978
  });
2979
2979
  }
2980
2980
  return m;
2981
2981
  };
2982
- function Vi(e) {
2982
+ function Ui(e) {
2983
2983
  const {
2984
2984
  reducerPath: t,
2985
2985
  queryThunk: n,
@@ -3008,11 +3008,11 @@ function Vi(e) {
3008
3008
  const s = {
3009
3009
  ...A,
3010
3010
  next: f
3011
- }, c = A.getState(), [S, b] = P(g, s, c);
3011
+ }, a = A.getState(), [S, b] = P(g, s, a);
3012
3012
  let h;
3013
- if (S ? h = f(g) : h = b, A.getState()[t] && (O(g, s, c), C(g) || i.hasRehydrationInfo(g)))
3013
+ if (S ? h = f(g) : h = b, A.getState()[t] && (O(g, s, a), C(g) || i.hasRehydrationInfo(g)))
3014
3014
  for (const l of p)
3015
- l(g, s, c);
3015
+ l(g, s, a);
3016
3016
  return h;
3017
3017
  };
3018
3018
  },
@@ -3044,7 +3044,7 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3044
3044
  skipSchemaValidation: R
3045
3045
  }, d) {
3046
3046
  Br();
3047
- const v = (U) => (typeof process < "u" && process.env.NODE_ENV === "development" && (r.includes(U.type) || console.error(`Tag type '${U.type}' was used, but not specified in \`tagTypes\`!`)), U);
3047
+ const v = (z) => (typeof process < "u" && process.env.NODE_ENV === "development" && (r.includes(z.type) || console.error(`Tag type '${z.type}' was used, but not specified in \`tagTypes\`!`)), z);
3048
3048
  Object.assign(t, {
3049
3049
  reducerPath: i,
3050
3050
  endpoints: {},
@@ -3072,13 +3072,13 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3072
3072
  selectCachedArgsForQuery: O
3073
3073
  });
3074
3074
  const {
3075
- queryThunk: c,
3075
+ queryThunk: a,
3076
3076
  infiniteQueryThunk: S,
3077
3077
  mutationThunk: b,
3078
3078
  patchQueryData: h,
3079
3079
  updateQueryData: l,
3080
3080
  upsertQueryData: o,
3081
- prefetch: a,
3081
+ prefetch: c,
3082
3082
  buildMatchThunkActions: y
3083
3083
  } = Ii({
3084
3084
  baseQuery: n,
@@ -3096,7 +3096,7 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3096
3096
  actions: N
3097
3097
  } = Ai({
3098
3098
  context: d,
3099
- queryThunk: c,
3099
+ queryThunk: a,
3100
3100
  mutationThunk: b,
3101
3101
  serializeQueryArgs: u,
3102
3102
  reducerPath: i,
@@ -3114,11 +3114,11 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3114
3114
  patchQueryData: h,
3115
3115
  updateQueryData: l,
3116
3116
  upsertQueryData: o,
3117
- prefetch: a,
3117
+ prefetch: c,
3118
3118
  resetApiState: N.resetApiState,
3119
3119
  upsertQueryEntries: N.cacheEntriesUpserted
3120
3120
  }), oe(t.internalActions, N);
3121
- const M = /* @__PURE__ */ new WeakMap(), q = (U) => St(M, U, () => ({
3121
+ const M = /* @__PURE__ */ new WeakMap(), q = (z) => St(M, z, () => ({
3122
3122
  currentSubscriptions: /* @__PURE__ */ new Map(),
3123
3123
  currentPolls: /* @__PURE__ */ new Map(),
3124
3124
  runningQueries: /* @__PURE__ */ new Map(),
@@ -3130,9 +3130,9 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3130
3130
  getRunningMutationThunk: F,
3131
3131
  getRunningMutationsThunk: L,
3132
3132
  getRunningQueriesThunk: j,
3133
- getRunningQueryThunk: z
3133
+ getRunningQueryThunk: V
3134
3134
  } = Oi({
3135
- queryThunk: c,
3135
+ queryThunk: a,
3136
3136
  mutationThunk: b,
3137
3137
  infiniteQueryThunk: S,
3138
3138
  api: t,
@@ -3143,22 +3143,22 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3143
3143
  oe(t.util, {
3144
3144
  getRunningMutationThunk: F,
3145
3145
  getRunningMutationsThunk: L,
3146
- getRunningQueryThunk: z,
3146
+ getRunningQueryThunk: V,
3147
3147
  getRunningQueriesThunk: j
3148
3148
  });
3149
3149
  const {
3150
3150
  middleware: K,
3151
3151
  actions: H
3152
- } = Vi({
3152
+ } = Ui({
3153
3153
  reducerPath: i,
3154
3154
  context: d,
3155
- queryThunk: c,
3155
+ queryThunk: a,
3156
3156
  mutationThunk: b,
3157
3157
  infiniteQueryThunk: S,
3158
3158
  api: t,
3159
3159
  assertTagType: v,
3160
3160
  selectors: p,
3161
- getRunningQueryThunk: z,
3161
+ getRunningQueryThunk: V,
3162
3162
  getInternalState: q
3163
3163
  });
3164
3164
  return oe(t.util, H), oe(t, {
@@ -3166,29 +3166,29 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
3166
3166
  middleware: K
3167
3167
  }), {
3168
3168
  name: Qn,
3169
- injectEndpoint(U, $) {
3170
- const V = t, x = V.endpoints[U] ??= {};
3169
+ injectEndpoint(z, $) {
3170
+ const U = t, x = U.endpoints[z] ??= {};
3171
3171
  wt($) && oe(x, {
3172
- name: U,
3173
- select: f(U, $),
3174
- initiate: k(U, $)
3175
- }, y(c, U)), Pi($) && oe(x, {
3176
- name: U,
3172
+ name: z,
3173
+ select: f(z, $),
3174
+ initiate: k(z, $)
3175
+ }, y(a, z)), Pi($) && oe(x, {
3176
+ name: z,
3177
3177
  select: s(),
3178
- initiate: Q(U)
3179
- }, y(b, U)), tt($) && oe(x, {
3180
- name: U,
3181
- select: g(U, $),
3182
- initiate: D(U, $)
3183
- }, y(c, U));
3178
+ initiate: Q(z)
3179
+ }, y(b, z)), tt($) && oe(x, {
3180
+ name: z,
3181
+ select: g(z, $),
3182
+ initiate: D(z, $)
3183
+ }, y(a, z));
3184
3184
  }
3185
3185
  };
3186
3186
  }
3187
3187
  });
3188
3188
  yr();
3189
- var ct = { exports: {} }, Tt = {};
3189
+ var at = { exports: {} }, Tt = {};
3190
3190
  var qn;
3191
- function zi() {
3191
+ function Vi() {
3192
3192
  if (qn) return Tt;
3193
3193
  qn = 1;
3194
3194
  var e = Kn;
@@ -3207,15 +3207,15 @@ function zi() {
3207
3207
  function p(s) {
3208
3208
  if (!P) {
3209
3209
  if (P = !0, O = s, s = I(s), A !== void 0 && d.hasValue) {
3210
- var c = d.value;
3211
- if (A(c, s))
3212
- return f = c;
3210
+ var a = d.value;
3211
+ if (A(a, s))
3212
+ return f = a;
3213
3213
  }
3214
3214
  return f = s;
3215
3215
  }
3216
- if (c = f, n(O, s)) return c;
3216
+ if (a = f, n(O, s)) return a;
3217
3217
  var S = I(s);
3218
- return A !== void 0 && A(c, S) ? (O = s, c) : (O = s, f = S);
3218
+ return A !== void 0 && A(a, S) ? (O = s, a) : (O = s, f = S);
3219
3219
  }
3220
3220
  var P = !1, O, f, g = T === void 0 ? null : T;
3221
3221
  return [
@@ -3240,7 +3240,7 @@ function zi() {
3240
3240
  }
3241
3241
  var Dt = {};
3242
3242
  var Fn;
3243
- function Ui() {
3243
+ function zi() {
3244
3244
  return Fn || (Fn = 1, process.env.NODE_ENV !== "production" && (function() {
3245
3245
  function e(C, w) {
3246
3246
  return C === w && (C !== 0 || 1 / C === 1 / w) || C !== C && w !== w;
@@ -3258,16 +3258,16 @@ function Ui() {
3258
3258
  function p(s) {
3259
3259
  if (!P) {
3260
3260
  if (P = !0, O = s, s = I(s), A !== void 0 && d.hasValue) {
3261
- var c = d.value;
3262
- if (A(c, s))
3263
- return f = c;
3261
+ var a = d.value;
3262
+ if (A(a, s))
3263
+ return f = a;
3264
3264
  }
3265
3265
  return f = s;
3266
3266
  }
3267
- if (c = f, n(O, s))
3268
- return c;
3267
+ if (a = f, n(O, s))
3268
+ return a;
3269
3269
  var S = I(s);
3270
- return A !== void 0 && A(c, S) ? (O = s, c) : (O = s, f = S);
3270
+ return A !== void 0 && A(a, S) ? (O = s, a) : (O = s, f = S);
3271
3271
  }
3272
3272
  var P = !1, O, f, g = T === void 0 ? null : T;
3273
3273
  return [
@@ -3293,23 +3293,23 @@ function Ui() {
3293
3293
  }
3294
3294
  var xn;
3295
3295
  function $i() {
3296
- return xn || (xn = 1, process.env.NODE_ENV === "production" ? ct.exports = zi() : ct.exports = Ui()), ct.exports;
3296
+ return xn || (xn = 1, process.env.NODE_ENV === "production" ? at.exports = Vi() : at.exports = zi()), at.exports;
3297
3297
  }
3298
3298
  var Li = $i();
3299
3299
  function ji(e) {
3300
3300
  e();
3301
3301
  }
3302
- function Vn(e, t) {
3302
+ function Un(e, t) {
3303
3303
  return e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t;
3304
3304
  }
3305
- function Ve(e, t) {
3306
- if (Vn(e, t)) return !0;
3305
+ function Ue(e, t) {
3306
+ if (Un(e, t)) return !0;
3307
3307
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
3308
3308
  return !1;
3309
3309
  const n = Object.keys(e), r = Object.keys(t);
3310
3310
  if (n.length !== r.length) return !1;
3311
3311
  for (let i = 0; i < n.length; i++)
3312
- if (!Object.prototype.hasOwnProperty.call(t, n[i]) || !Vn(e[n[i]], t[n[i]]))
3312
+ if (!Object.prototype.hasOwnProperty.call(t, n[i]) || !Un(e[n[i]], t[n[i]]))
3313
3313
  return !1;
3314
3314
  return !0;
3315
3315
  }
@@ -3389,8 +3389,8 @@ function Ji(e = Re) {
3389
3389
  let s;
3390
3390
  try {
3391
3391
  throw new Error();
3392
- } catch (c) {
3393
- ({ stack: s } = c);
3392
+ } catch (a) {
3393
+ ({ stack: s } = a);
3394
3394
  }
3395
3395
  console.warn(
3396
3396
  "Selector " + (r.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
@@ -3437,7 +3437,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
3437
3437
  }), n;
3438
3438
  }
3439
3439
  var Xi = /* @__PURE__ */ Ji(), Zi = ji;
3440
- function at(e) {
3440
+ function ct(e) {
3441
3441
  return e.replace(e[0], e[0].toUpperCase());
3442
3442
  }
3443
3443
  function eo(e) {
@@ -3469,10 +3469,10 @@ function kt(e) {
3469
3469
  function Ae(e) {
3470
3470
  const t = fe(e);
3471
3471
  return de(() => {
3472
- Ve(t.current, e) || (t.current = e);
3473
- }, [e]), Ve(t.current, e) ? t.current : e;
3472
+ Ue(t.current, e) || (t.current = e);
3473
+ }, [e]), Ue(t.current, e) ? t.current : e;
3474
3474
  }
3475
- var so = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", co = /* @__PURE__ */ so(), ao = () => typeof navigator < "u" && navigator.product === "ReactNative", uo = /* @__PURE__ */ ao(), lo = () => co || uo ? Dr : de, fo = /* @__PURE__ */ lo(), zn = (e) => e.isUninitialized ? {
3475
+ var so = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ao = /* @__PURE__ */ so(), co = () => typeof navigator < "u" && navigator.product === "ReactNative", uo = /* @__PURE__ */ co(), lo = () => ao || uo ? Dr : de, fo = /* @__PURE__ */ lo(), Vn = (e) => e.isUninitialized ? {
3476
3476
  ...e,
3477
3477
  isUninitialized: !1,
3478
3478
  isFetching: !0,
@@ -3503,15 +3503,15 @@ function po({
3503
3503
  serializeQueryArgs: _,
3504
3504
  context: C
3505
3505
  }) {
3506
- const w = u ? (c) => c() : de, T = (c) => c.current?.unsubscribe?.(), I = C.endpointDefinitions;
3506
+ const w = u ? (a) => a() : de, T = (a) => a.current?.unsubscribe?.(), I = C.endpointDefinitions;
3507
3507
  return {
3508
3508
  buildQueryHooks: f,
3509
3509
  buildInfiniteQueryHooks: g,
3510
3510
  buildMutationHook: s,
3511
3511
  usePrefetch: d
3512
3512
  };
3513
- function A(c, S, b) {
3514
- if (S?.endpointName && c.isUninitialized) {
3513
+ function A(a, S, b) {
3514
+ if (S?.endpointName && a.isUninitialized) {
3515
3515
  const {
3516
3516
  endpointName: E
3517
3517
  } = S, N = I[E];
@@ -3525,20 +3525,20 @@ function po({
3525
3525
  endpointName: E
3526
3526
  }) && (S = void 0);
3527
3527
  }
3528
- let h = c.isSuccess ? c.data : S?.data;
3529
- h === void 0 && (h = c.data);
3530
- const l = h !== void 0, o = c.isLoading, a = (!S || S.isLoading || S.isUninitialized) && !l && o, y = c.isSuccess || l && (o && !S?.isError || c.isUninitialized);
3528
+ let h = a.isSuccess ? a.data : S?.data;
3529
+ h === void 0 && (h = a.data);
3530
+ const l = h !== void 0, o = a.isLoading, c = (!S || S.isLoading || S.isUninitialized) && !l && o, y = a.isSuccess || l && (o && !S?.isError || a.isUninitialized);
3531
3531
  return {
3532
- ...c,
3532
+ ...a,
3533
3533
  data: h,
3534
- currentData: c.data,
3534
+ currentData: a.data,
3535
3535
  isFetching: o,
3536
- isLoading: a,
3536
+ isLoading: c,
3537
3537
  isSuccess: y
3538
3538
  };
3539
3539
  }
3540
- function R(c, S, b) {
3541
- if (S?.endpointName && c.isUninitialized) {
3540
+ function R(a, S, b) {
3541
+ if (S?.endpointName && a.isUninitialized) {
3542
3542
  const {
3543
3543
  endpointName: E
3544
3544
  } = S, N = I[E];
@@ -3552,141 +3552,141 @@ function po({
3552
3552
  endpointName: E
3553
3553
  }) && (S = void 0);
3554
3554
  }
3555
- let h = c.isSuccess ? c.data : S?.data;
3556
- h === void 0 && (h = c.data);
3557
- const l = h !== void 0, o = c.isLoading, a = (!S || S.isLoading || S.isUninitialized) && !l && o, y = c.isSuccess || o && l;
3555
+ let h = a.isSuccess ? a.data : S?.data;
3556
+ h === void 0 && (h = a.data);
3557
+ const l = h !== void 0, o = a.isLoading, c = (!S || S.isLoading || S.isUninitialized) && !l && o, y = a.isSuccess || o && l;
3558
3558
  return {
3559
- ...c,
3559
+ ...a,
3560
3560
  data: h,
3561
- currentData: c.data,
3561
+ currentData: a.data,
3562
3562
  isFetching: o,
3563
- isLoading: a,
3563
+ isLoading: c,
3564
3564
  isSuccess: y
3565
3565
  };
3566
3566
  }
3567
- function d(c, S) {
3567
+ function d(a, S) {
3568
3568
  const b = n(), h = Ae(S);
3569
- return ge((l, o) => b(e.util.prefetch(c, l, {
3569
+ return ge((l, o) => b(e.util.prefetch(a, l, {
3570
3570
  ...h,
3571
3571
  ...o
3572
- })), [c, b, h]);
3572
+ })), [a, b, h]);
3573
3573
  }
3574
- function v(c, S, {
3574
+ function v(a, S, {
3575
3575
  refetchOnReconnect: b,
3576
3576
  refetchOnFocus: h,
3577
3577
  refetchOnMountOrArgChange: l,
3578
3578
  skip: o = !1,
3579
- pollingInterval: a = 0,
3579
+ pollingInterval: c = 0,
3580
3580
  skipPollingIfUnfocused: y = !1,
3581
3581
  ...E
3582
3582
  } = {}) {
3583
3583
  const {
3584
3584
  initiate: N
3585
- } = e.endpoints[c], M = n(), q = fe(void 0);
3585
+ } = e.endpoints[a], M = n(), q = fe(void 0);
3586
3586
  if (!q.current) {
3587
- const V = M(e.internalActions.internal_getRTKQSubscriptions());
3588
- if (process.env.NODE_ENV !== "production" && (typeof V != "object" || typeof V?.type == "string"))
3587
+ const U = M(e.internalActions.internal_getRTKQSubscriptions());
3588
+ if (process.env.NODE_ENV !== "production" && (typeof U != "object" || typeof U?.type == "string"))
3589
3589
  throw new Error(process.env.NODE_ENV === "production" ? ye(37) : `Warning: Middleware for RTK-Query API at reducerPath "${e.reducerPath}" has not been added to the store.
3590
3590
  You must add the middleware for RTK-Query to function correctly!`);
3591
- q.current = V;
3591
+ q.current = U;
3592
3592
  }
3593
3593
  const k = kt(o ? te : S), D = Ae({
3594
3594
  refetchOnReconnect: b,
3595
3595
  refetchOnFocus: h,
3596
- pollingInterval: a,
3596
+ pollingInterval: c,
3597
3597
  skipPollingIfUnfocused: y
3598
- }), Q = E.initialPageParam, F = Ae(Q), L = E.refetchCachedPages, j = Ae(L), z = fe(void 0);
3598
+ }), Q = E.initialPageParam, F = Ae(Q), L = E.refetchCachedPages, j = Ae(L), V = fe(void 0);
3599
3599
  let {
3600
3600
  queryCacheKey: K,
3601
3601
  requestId: H
3602
- } = z.current || {}, U = !1;
3603
- K && H && (U = q.current.isRequestSubscribed(K, H));
3604
- const $ = !U && z.current !== void 0;
3602
+ } = V.current || {}, z = !1;
3603
+ K && H && (z = q.current.isRequestSubscribed(K, H));
3604
+ const $ = !z && V.current !== void 0;
3605
3605
  return w(() => {
3606
- $ && (z.current = void 0);
3606
+ $ && (V.current = void 0);
3607
3607
  }, [$]), w(() => {
3608
- const V = z.current;
3608
+ const U = V.current;
3609
3609
  if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log($), k === te) {
3610
- V?.unsubscribe(), z.current = void 0;
3610
+ U?.unsubscribe(), V.current = void 0;
3611
3611
  return;
3612
3612
  }
3613
- const x = z.current?.subscriptionOptions;
3614
- if (!V || V.arg !== k) {
3615
- V?.unsubscribe();
3613
+ const x = V.current?.subscriptionOptions;
3614
+ if (!U || U.arg !== k) {
3615
+ U?.unsubscribe();
3616
3616
  const re = M(N(k, {
3617
3617
  subscriptionOptions: D,
3618
3618
  forceRefetch: l,
3619
- ...Sr(I[c]) ? {
3619
+ ...Sr(I[a]) ? {
3620
3620
  initialPageParam: F,
3621
3621
  refetchCachedPages: j
3622
3622
  } : {}
3623
3623
  }));
3624
- z.current = re;
3625
- } else D !== x && V.updateSubscriptionOptions(D);
3626
- }, [M, N, l, k, D, $, F, j, c]), [z, M, N, D];
3624
+ V.current = re;
3625
+ } else D !== x && U.updateSubscriptionOptions(D);
3626
+ }, [M, N, l, k, D, $, F, j, a]), [V, M, N, D];
3627
3627
  }
3628
- function p(c, S) {
3628
+ function p(a, S) {
3629
3629
  return (h, {
3630
3630
  skip: l = !1,
3631
3631
  selectFromResult: o
3632
3632
  } = {}) => {
3633
3633
  const {
3634
- select: a
3635
- } = e.endpoints[c], y = kt(l ? te : h), E = fe(void 0), N = G(() => (
3634
+ select: c
3635
+ } = e.endpoints[a], y = kt(l ? te : h), E = fe(void 0), N = G(() => (
3636
3636
  // Normally ts-ignores are bad and should be avoided, but we're
3637
3637
  // already casting this selector to be `Selector<any>` anyway,
3638
3638
  // so the inconsistencies don't matter here
3639
3639
  // @ts-ignore
3640
3640
  m([
3641
3641
  // @ts-ignore
3642
- a(y),
3642
+ c(y),
3643
3643
  (Q, F) => F,
3644
3644
  (Q) => y
3645
3645
  ], S, {
3646
3646
  memoizeOptions: {
3647
- resultEqualityCheck: Ve
3647
+ resultEqualityCheck: Ue
3648
3648
  }
3649
3649
  })
3650
- ), [a, y]), M = G(() => o ? m([N], o, {
3650
+ ), [c, y]), M = G(() => o ? m([N], o, {
3651
3651
  devModeChecks: {
3652
3652
  identityFunctionCheck: "never"
3653
3653
  }
3654
- }) : N, [N, o]), q = r((Q) => M(Q, E.current), Ve), k = i(), D = N(k.getState(), E.current);
3654
+ }) : N, [N, o]), q = r((Q) => M(Q, E.current), Ue), k = i(), D = N(k.getState(), E.current);
3655
3655
  return fo(() => {
3656
3656
  E.current = D;
3657
3657
  }, [D]), q;
3658
3658
  };
3659
3659
  }
3660
- function P(c) {
3660
+ function P(a) {
3661
3661
  de(() => () => {
3662
- T(c), c.current = void 0;
3663
- }, [c]);
3662
+ T(a), a.current = void 0;
3663
+ }, [a]);
3664
3664
  }
3665
- function O(c) {
3666
- if (!c.current) throw new Error(process.env.NODE_ENV === "production" ? ye(38) : "Cannot refetch a query that has not been started yet.");
3667
- return c.current.refetch();
3665
+ function O(a) {
3666
+ if (!a.current) throw new Error(process.env.NODE_ENV === "production" ? ye(38) : "Cannot refetch a query that has not been started yet.");
3667
+ return a.current.refetch();
3668
3668
  }
3669
- function f(c) {
3669
+ function f(a) {
3670
3670
  const S = (l, o = {}) => {
3671
- const [a] = v(c, l, o);
3672
- return P(a), G(() => ({
3671
+ const [c] = v(a, l, o);
3672
+ return P(c), G(() => ({
3673
3673
  /**
3674
3674
  * A method to manually refetch data for the query
3675
3675
  */
3676
- refetch: () => O(a)
3677
- }), [a]);
3676
+ refetch: () => O(c)
3677
+ }), [c]);
3678
3678
  }, b = ({
3679
3679
  refetchOnReconnect: l,
3680
3680
  refetchOnFocus: o,
3681
- pollingInterval: a = 0,
3681
+ pollingInterval: c = 0,
3682
3682
  skipPollingIfUnfocused: y = !1
3683
3683
  } = {}) => {
3684
3684
  const {
3685
3685
  initiate: E
3686
- } = e.endpoints[c], N = n(), [M, q] = un(Nt), k = fe(void 0), D = Ae({
3686
+ } = e.endpoints[a], N = n(), [M, q] = un(Nt), k = fe(void 0), D = Ae({
3687
3687
  refetchOnReconnect: l,
3688
3688
  refetchOnFocus: o,
3689
- pollingInterval: a,
3689
+ pollingInterval: c,
3690
3690
  skipPollingIfUnfocused: y
3691
3691
  });
3692
3692
  w(() => {
@@ -3697,12 +3697,12 @@ function po({
3697
3697
  w(() => {
3698
3698
  Q.current = D;
3699
3699
  }, [D]);
3700
- const F = ge(function(j, z = !1) {
3700
+ const F = ge(function(j, V = !1) {
3701
3701
  let K;
3702
3702
  return t(() => {
3703
3703
  T(k), k.current = K = N(E(j, {
3704
3704
  subscriptionOptions: Q.current,
3705
- forceRefetch: !z
3705
+ forceRefetch: !V
3706
3706
  })), q(j);
3707
3707
  }), K;
3708
3708
  }, [N, E]), L = ge(() => {
@@ -3717,52 +3717,52 @@ function po({
3717
3717
  }, [M, F]), G(() => [F, M, {
3718
3718
  reset: L
3719
3719
  }], [F, M, L]);
3720
- }, h = p(c, A);
3720
+ }, h = p(a, A);
3721
3721
  return {
3722
3722
  useQueryState: h,
3723
3723
  useQuerySubscription: S,
3724
3724
  useLazyQuerySubscription: b,
3725
3725
  useLazyQuery(l) {
3726
- const [o, a, {
3726
+ const [o, c, {
3727
3727
  reset: y
3728
- }] = b(l), E = h(a, {
3728
+ }] = b(l), E = h(c, {
3729
3729
  ...l,
3730
- skip: a === Nt
3730
+ skip: c === Nt
3731
3731
  }), N = G(() => ({
3732
- lastArg: a
3733
- }), [a]);
3732
+ lastArg: c
3733
+ }), [c]);
3734
3734
  return G(() => [o, {
3735
3735
  ...E,
3736
3736
  reset: y
3737
3737
  }, N], [o, E, y, N]);
3738
3738
  },
3739
3739
  useQuery(l, o) {
3740
- const a = S(l, o), y = h(l, {
3741
- selectFromResult: l === te || o?.skip ? void 0 : zn,
3740
+ const c = S(l, o), y = h(l, {
3741
+ selectFromResult: l === te || o?.skip ? void 0 : Vn,
3742
3742
  ...o
3743
3743
  }), E = Mt(y, ...Qt);
3744
3744
  return It(E), G(() => ({
3745
3745
  ...y,
3746
- ...a
3747
- }), [y, a]);
3746
+ ...c
3747
+ }), [y, c]);
3748
3748
  }
3749
3749
  };
3750
3750
  }
3751
- function g(c) {
3751
+ function g(a) {
3752
3752
  const S = (h, l = {}) => {
3753
- const [o, a, y, E] = v(c, h, l), N = fe(E);
3753
+ const [o, c, y, E] = v(a, h, l), N = fe(E);
3754
3754
  w(() => {
3755
3755
  N.current = E;
3756
3756
  }, [E]);
3757
3757
  const M = l.refetchCachedPages, q = Ae(M), k = ge(function(F, L) {
3758
3758
  let j;
3759
3759
  return t(() => {
3760
- T(o), o.current = j = a(y(F, {
3760
+ T(o), o.current = j = c(y(F, {
3761
3761
  subscriptionOptions: N.current,
3762
3762
  direction: L
3763
3763
  }));
3764
3764
  }), j;
3765
- }, [o, a, y]);
3765
+ }, [o, c, y]);
3766
3766
  P(o);
3767
3767
  const D = kt(l.skip ? te : h), Q = ge((F) => {
3768
3768
  if (!o.current) throw new Error(process.env.NODE_ENV === "production" ? ye(38) : "Cannot refetch a query that has not been started yet.");
@@ -3780,29 +3780,29 @@ function po({
3780
3780
  fetchNextPage: () => k(D, "forward"),
3781
3781
  fetchPreviousPage: () => k(D, "backward")
3782
3782
  }), [Q, k, D]);
3783
- }, b = p(c, R);
3783
+ }, b = p(a, R);
3784
3784
  return {
3785
3785
  useInfiniteQueryState: b,
3786
3786
  useInfiniteQuerySubscription: S,
3787
3787
  useInfiniteQuery(h, l) {
3788
3788
  const {
3789
3789
  refetch: o,
3790
- fetchNextPage: a,
3790
+ fetchNextPage: c,
3791
3791
  fetchPreviousPage: y
3792
3792
  } = S(h, l), E = b(h, {
3793
- selectFromResult: h === te || l?.skip ? void 0 : zn,
3793
+ selectFromResult: h === te || l?.skip ? void 0 : Vn,
3794
3794
  ...l
3795
3795
  }), N = Mt(E, ...Qt, "hasNextPage", "hasPreviousPage");
3796
3796
  return It(N), G(() => ({
3797
3797
  ...E,
3798
- fetchNextPage: a,
3798
+ fetchNextPage: c,
3799
3799
  fetchPreviousPage: y,
3800
3800
  refetch: o
3801
- }), [E, a, y, o]);
3801
+ }), [E, c, y, o]);
3802
3802
  }
3803
3803
  };
3804
3804
  }
3805
- function s(c) {
3805
+ function s(a) {
3806
3806
  return ({
3807
3807
  selectFromResult: S,
3808
3808
  fixedCacheKey: b
@@ -3810,28 +3810,28 @@ function po({
3810
3810
  const {
3811
3811
  select: h,
3812
3812
  initiate: l
3813
- } = e.endpoints[c], o = n(), [a, y] = un();
3813
+ } = e.endpoints[a], o = n(), [c, y] = un();
3814
3814
  de(() => () => {
3815
- a?.arg.fixedCacheKey || a?.reset();
3816
- }, [a]);
3815
+ c?.arg.fixedCacheKey || c?.reset();
3816
+ }, [c]);
3817
3817
  const E = ge(function(j) {
3818
- const z = o(l(j, {
3818
+ const V = o(l(j, {
3819
3819
  fixedCacheKey: b
3820
3820
  }));
3821
- return y(z), z;
3821
+ return y(V), V;
3822
3822
  }, [o, l, b]), {
3823
3823
  requestId: N
3824
- } = a || {}, M = G(() => h({
3824
+ } = c || {}, M = G(() => h({
3825
3825
  fixedCacheKey: b,
3826
- requestId: a?.requestId
3827
- }), [b, a, h]), q = G(() => S ? m([M], S) : M, [S, M]), k = r(q, Ve), D = b == null ? a?.arg.originalArgs : void 0, Q = ge(() => {
3826
+ requestId: c?.requestId
3827
+ }), [b, c, h]), q = G(() => S ? m([M], S) : M, [S, M]), k = r(q, Ue), D = b == null ? c?.arg.originalArgs : void 0, Q = ge(() => {
3828
3828
  t(() => {
3829
- a && y(void 0), b && o(e.internalActions.removeMutationResult({
3829
+ c && y(void 0), b && o(e.internalActions.removeMutationResult({
3830
3830
  requestId: N,
3831
3831
  fixedCacheKey: b
3832
3832
  }));
3833
3833
  });
3834
- }, [o, b, a, N]), F = Mt(k, ...Qt, "endpointName");
3834
+ }, [o, b, c, N]), F = Mt(k, ...Qt, "endpointName");
3835
3835
  It(F);
3836
3836
  const L = G(() => ({
3837
3837
  ...k,
@@ -3902,13 +3902,13 @@ Hook ${_} was either not provided or not a function.`);
3902
3902
  useLazyQuerySubscription: P,
3903
3903
  useQueryState: O,
3904
3904
  useQuerySubscription: f
3905
- }), u[`use${at(R)}Query`] = v, u[`useLazy${at(R)}Query`] = p;
3905
+ }), u[`use${ct(R)}Query`] = v, u[`useLazy${ct(R)}Query`] = p;
3906
3906
  }
3907
3907
  if (oo(d)) {
3908
3908
  const v = I(R);
3909
3909
  Me(C.endpoints[R], {
3910
3910
  useMutation: v
3911
- }), u[`use${at(R)}Mutation`] = v;
3911
+ }), u[`use${ct(R)}Mutation`] = v;
3912
3912
  } else if (Sr(d)) {
3913
3913
  const {
3914
3914
  useInfiniteQuery: v,
@@ -3919,7 +3919,7 @@ Hook ${_} was either not provided or not a function.`);
3919
3919
  useInfiniteQuery: v,
3920
3920
  useInfiniteQuerySubscription: p,
3921
3921
  useInfiniteQueryState: P
3922
- }), u[`use${at(R)}InfiniteQuery`] = v;
3922
+ }), u[`use${ct(R)}InfiniteQuery`] = v;
3923
3923
  }
3924
3924
  }
3925
3925
  };
@@ -3931,7 +3931,7 @@ let _r = null;
3931
3931
  function mo() {
3932
3932
  return _r;
3933
3933
  }
3934
- function wo(e) {
3934
+ function Do(e) {
3935
3935
  _r = e;
3936
3936
  }
3937
3937
  const vo = {
@@ -3947,7 +3947,7 @@ const vo = {
3947
3947
  e.token = null;
3948
3948
  }
3949
3949
  }
3950
- }), { setToken: Er, logout: Un } = br.actions, Ro = br.reducer, Oo = (e) => e[nt].token, Io = (e) => !!e[nt].token, So = "api", Rt = go({
3950
+ }), { setToken: Er, logout: zn } = br.actions, No = br.reducer, ko = (e) => e[nt].token, Mo = (e) => !!e[nt].token, So = "api", Rt = go({
3951
3951
  reducerPath: So,
3952
3952
  baseQuery: _i({
3953
3953
  baseUrl: process.env.VITE_API_BASE_URL || "",
@@ -3957,7 +3957,12 @@ const vo = {
3957
3957
  }
3958
3958
  }),
3959
3959
  endpoints: () => ({})
3960
- }), Ao = Rt.reducer, Co = Rt.middleware, Pr = ["Authentication"], wr = Rt.enhanceEndpoints({
3960
+ }), Qo = Rt.reducer, qo = Rt.middleware, Pr = [
3961
+ "Authentication",
3962
+ "Email",
3963
+ "Invitations",
3964
+ "Users"
3965
+ ], wr = Rt.enhanceEndpoints({
3961
3966
  addTagTypes: Pr
3962
3967
  }).injectEndpoints({
3963
3968
  endpoints: (e) => ({
@@ -3972,20 +3977,79 @@ const vo = {
3972
3977
  authControllerGetProfile: e.query({
3973
3978
  query: () => ({ url: "/api/profile" }),
3974
3979
  providesTags: ["Authentication"]
3980
+ }),
3981
+ emailControllerSendEmail: e.mutation({
3982
+ query: (t) => ({
3983
+ url: "/api/email/send",
3984
+ method: "POST",
3985
+ body: t.sendEmailDto
3986
+ }),
3987
+ invalidatesTags: ["Email"]
3988
+ }),
3989
+ invitationsControllerInvite: e.mutation({
3990
+ query: (t) => ({
3991
+ url: "/api/invitations/invite",
3992
+ method: "POST",
3993
+ body: t.inviteUserDto
3994
+ }),
3995
+ invalidatesTags: ["Invitations"]
3996
+ }),
3997
+ invitationsControllerValidate: e.query({
3998
+ query: (t) => ({
3999
+ url: `/api/invitations/validate/${t.token}`
4000
+ }),
4001
+ providesTags: ["Invitations"]
4002
+ }),
4003
+ invitationsControllerAccept: e.mutation({
4004
+ query: (t) => ({
4005
+ url: "/api/invitations/accept",
4006
+ method: "POST",
4007
+ body: t.acceptInvitationDto
4008
+ }),
4009
+ invalidatesTags: ["Invitations"]
4010
+ }),
4011
+ usersControllerFindAll: e.query({
4012
+ query: () => ({ url: "/api/users" }),
4013
+ providesTags: ["Users"]
4014
+ }),
4015
+ usersControllerFindOne: e.query({
4016
+ query: (t) => ({ url: `/api/users/${t.id}` }),
4017
+ providesTags: ["Users"]
4018
+ }),
4019
+ usersControllerDelete: e.mutation({
4020
+ query: (t) => ({
4021
+ url: `/api/users/${t.id}`,
4022
+ method: "DELETE"
4023
+ }),
4024
+ invalidatesTags: ["Users"]
3975
4025
  })
3976
4026
  }),
3977
4027
  overrideExisting: !1
3978
4028
  }), {
3979
4029
  useAuthControllerLoginMutation: _o,
3980
- useAuthControllerGetProfileQuery: bo
3981
- } = wr, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4030
+ useAuthControllerGetProfileQuery: bo,
4031
+ useEmailControllerSendEmailMutation: Eo,
4032
+ useInvitationsControllerInviteMutation: Po,
4033
+ useInvitationsControllerValidateQuery: wo,
4034
+ useInvitationsControllerAcceptMutation: Ro,
4035
+ useUsersControllerFindAllQuery: Oo,
4036
+ useUsersControllerFindOneQuery: Io,
4037
+ useUsersControllerDeleteMutation: Ao
4038
+ } = wr, Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3982
4039
  __proto__: null,
3983
4040
  addTagTypes: Pr,
3984
4041
  api: wr,
3985
4042
  useAuthControllerGetProfileQuery: bo,
3986
- useAuthControllerLoginMutation: _o
4043
+ useAuthControllerLoginMutation: _o,
4044
+ useEmailControllerSendEmailMutation: Eo,
4045
+ useInvitationsControllerAcceptMutation: Ro,
4046
+ useInvitationsControllerInviteMutation: Po,
4047
+ useInvitationsControllerValidateQuery: wo,
4048
+ useUsersControllerDeleteMutation: Ao,
4049
+ useUsersControllerFindAllQuery: Oo,
4050
+ useUsersControllerFindOneQuery: Io
3987
4051
  }, Symbol.toStringTag, { value: "Module" }));
3988
- function Do(e) {
4052
+ function xo(e) {
3989
4053
  return {
3990
4054
  prepareHeaders(t, n) {
3991
4055
  const r = e.formatValue ? e.formatValue(n) : n;
@@ -3994,18 +4058,18 @@ function Do(e) {
3994
4058
  };
3995
4059
  }
3996
4060
  let _e = {};
3997
- function No(e) {
4061
+ function Uo(e) {
3998
4062
  _e = e;
3999
4063
  }
4000
- function ko() {
4064
+ function Vo() {
4001
4065
  const e = Tr();
4002
4066
  return e.startListening({
4003
- actionCreator: Un,
4067
+ actionCreator: zn,
4004
4068
  effect: (t, n) => {
4005
4069
  n.dispatch(Rt.util.resetApiState()), _e.onLogout && _e.onLogout();
4006
4070
  }
4007
4071
  }), e.startListening({
4008
- matcher: Ue(Er, Un),
4072
+ matcher: ze(Er, zn),
4009
4073
  effect: (t, n) => {
4010
4074
  if (!_e.persistence) return;
4011
4075
  const r = n.getState();
@@ -4013,7 +4077,7 @@ function ko() {
4013
4077
  }
4014
4078
  }), e.middleware;
4015
4079
  }
4016
- function Mo() {
4080
+ function zo() {
4017
4081
  let e = !1;
4018
4082
  return (t) => (n) => (r) => {
4019
4083
  if (!e && _e.persistence) {
@@ -4024,7 +4088,7 @@ function Mo() {
4024
4088
  return n(r);
4025
4089
  };
4026
4090
  }
4027
- function Qo(e, t = "token") {
4091
+ function $o(e, t = "token") {
4028
4092
  return {
4029
4093
  getToken: () => {
4030
4094
  try {
@@ -4046,23 +4110,30 @@ export {
4046
4110
  nt as AuthKey,
4047
4111
  Pr as addTagTypes,
4048
4112
  wr as api,
4049
- Co as apiMiddleware,
4050
- Ao as apiReducer,
4051
- Ro as authReducer,
4113
+ qo as apiMiddleware,
4114
+ Qo as apiReducer,
4115
+ No as authReducer,
4052
4116
  br as authSlice,
4053
4117
  Rt as baseApi,
4054
- No as configureAuth,
4055
- Mo as createAuthHydrationMiddleware,
4056
- ko as createAuthListenerMiddleware,
4057
- Do as createCustomHeaderAdapter,
4058
- To as demoScaffoldBackend,
4118
+ Uo as configureAuth,
4119
+ zo as createAuthHydrationMiddleware,
4120
+ Vo as createAuthListenerMiddleware,
4121
+ xo as createCustomHeaderAdapter,
4122
+ Fo as demoScaffoldBackend,
4059
4123
  mo as getAuthAdapter,
4060
- Un as logout,
4061
- Io as selectIsAuthenticated,
4062
- Oo as selectToken,
4063
- wo as setAuthAdapter,
4124
+ zn as logout,
4125
+ Mo as selectIsAuthenticated,
4126
+ ko as selectToken,
4127
+ Do as setAuthAdapter,
4064
4128
  Er as setToken,
4065
- Qo as storagePersistence,
4129
+ $o as storagePersistence,
4066
4130
  bo as useAuthControllerGetProfileQuery,
4067
- _o as useAuthControllerLoginMutation
4131
+ _o as useAuthControllerLoginMutation,
4132
+ Eo as useEmailControllerSendEmailMutation,
4133
+ Ro as useInvitationsControllerAcceptMutation,
4134
+ Po as useInvitationsControllerInviteMutation,
4135
+ wo as useInvitationsControllerValidateQuery,
4136
+ Ao as useUsersControllerDeleteMutation,
4137
+ Oo as useUsersControllerFindAllQuery,
4138
+ Io as useUsersControllerFindOneQuery
4068
4139
  };