oiu-core 0.0.21 → 0.0.23

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.
@@ -232,8 +232,8 @@ function El() {
232
232
  null
233
233
  ), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(fe.createContext, t)), t;
234
234
  }
235
- var at = /* @__PURE__ */ El();
236
- function Lo(e = at) {
235
+ var st = /* @__PURE__ */ El();
236
+ function Lo(e = st) {
237
237
  return function() {
238
238
  const r = fe.useContext(e);
239
239
  if (process.env.NODE_ENV !== "production" && !r)
@@ -244,8 +244,8 @@ function Lo(e = at) {
244
244
  };
245
245
  }
246
246
  var $s = /* @__PURE__ */ Lo();
247
- function Ls(e = at) {
248
- const t = e === at ? $s : (
247
+ function Ls(e = st) {
248
+ const t = e === st ? $s : (
249
249
  // @ts-ignore
250
250
  Lo(e)
251
251
  ), r = () => {
@@ -257,15 +257,15 @@ function Ls(e = at) {
257
257
  }), r;
258
258
  }
259
259
  var Sl = /* @__PURE__ */ Ls();
260
- function wl(e = at) {
261
- const t = e === at ? Sl : Ls(e), r = () => t().dispatch;
260
+ function wl(e = st) {
261
+ const t = e === st ? Sl : Ls(e), r = () => t().dispatch;
262
262
  return Object.assign(r, {
263
263
  withTypes: () => r
264
264
  }), r;
265
265
  }
266
266
  var xr = /* @__PURE__ */ wl(), _l = (e, t) => e === t;
267
- function Ol(e = at) {
268
- const t = e === at ? $s : Lo(e), r = (n, o = {}) => {
267
+ function Ol(e = st) {
268
+ const t = e === st ? $s : Lo(e), r = (n, o = {}) => {
269
269
  const { equalityFn: i = _l } = typeof o == "function" ? { equalityFn: o } : o;
270
270
  if (process.env.NODE_ENV !== "production") {
271
271
  if (!n)
@@ -388,7 +388,7 @@ var Nl = typeof Symbol == "function" && Symbol.observable || "@@observable", Ci
388
388
  INIT: `@@redux/INIT${/* @__PURE__ */ un()}`,
389
389
  REPLACE: `@@redux/REPLACE${/* @__PURE__ */ un()}`,
390
390
  PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${un()}`
391
- }, it = Il;
391
+ }, at = Il;
392
392
  function Fe(e) {
393
393
  if (typeof e != "object" || e === null)
394
394
  return !1;
@@ -501,7 +501,7 @@ function Hs(e, t, r) {
501
501
  if (typeof d != "function")
502
502
  throw new Error(process.env.NODE_ENV === "production" ? ve(10) : `Expected the nextReducer to be a function. Instead, received: '${Ke(d)}`);
503
503
  n = d, v({
504
- type: it.REPLACE
504
+ type: at.REPLACE
505
505
  });
506
506
  }
507
507
  function p() {
@@ -532,7 +532,7 @@ function Hs(e, t, r) {
532
532
  };
533
533
  }
534
534
  return v({
535
- type: it.INIT
535
+ type: at.INIT
536
536
  }), {
537
537
  dispatch: v,
538
538
  subscribe: y,
@@ -549,7 +549,7 @@ function Mi(e) {
549
549
  }
550
550
  }
551
551
  function Fl(e, t, r, n) {
552
- const o = Object.keys(t), i = r && r.type === it.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
552
+ const o = Object.keys(t), i = r && r.type === at.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
553
553
  if (o.length === 0)
554
554
  return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
555
555
  if (!Fe(e))
@@ -557,20 +557,20 @@ function Fl(e, t, r, n) {
557
557
  const a = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !n[s]);
558
558
  if (a.forEach((s) => {
559
559
  n[s] = !0;
560
- }), !(r && r.type === it.REPLACE) && a.length > 0)
560
+ }), !(r && r.type === at.REPLACE) && a.length > 0)
561
561
  return `Unexpected ${a.length > 1 ? "keys" : "key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`;
562
562
  }
563
563
  function $l(e) {
564
564
  Object.keys(e).forEach((t) => {
565
565
  const r = e[t];
566
566
  if (typeof r(void 0, {
567
- type: it.INIT
567
+ type: at.INIT
568
568
  }) > "u")
569
569
  throw new Error(process.env.NODE_ENV === "production" ? ve(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
570
570
  if (typeof r(void 0, {
571
- type: it.PROBE_UNKNOWN_ACTION()
571
+ type: at.PROBE_UNKNOWN_ACTION()
572
572
  }) > "u")
573
- throw new Error(process.env.NODE_ENV === "production" ? ve(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${it.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
573
+ throw new Error(process.env.NODE_ENV === "production" ? ve(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${at.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
574
574
  });
575
575
  }
576
576
  function ks(e) {
@@ -670,7 +670,7 @@ function me(e, ...t) {
670
670
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
671
671
  );
672
672
  }
673
- var _e = Object, st = _e.getPrototypeOf, Ht = "constructor", Wt = "prototype", fo = "configurable", Tr = "enumerable", Sr = "writable", kt = "value", Oe = (e) => !!e && !!e[ge];
673
+ var _e = Object, ut = _e.getPrototypeOf, Ht = "constructor", Wt = "prototype", fo = "configurable", Tr = "enumerable", Sr = "writable", kt = "value", Oe = (e) => !!e && !!e[ge];
674
674
  function Ae(e) {
675
675
  return e ? js(e) || Qt(e) || !!e[$t] || !!e[Ht]?.[$t] || Kt(e) || Xt(e) : !1;
676
676
  }
@@ -678,7 +678,7 @@ var Bl = _e[Wt][Ht].toString(), Di = /* @__PURE__ */ new WeakMap();
678
678
  function js(e) {
679
679
  if (!e || !vt(e))
680
680
  return !1;
681
- const t = st(e);
681
+ const t = ut(e);
682
682
  if (t === null || t === _e[Wt])
683
683
  return !0;
684
684
  const r = _e.hasOwnProperty.call(t, Ht) && t[Ht];
@@ -693,18 +693,18 @@ function Hl(e) {
693
693
  return Oe(e) || me(15, e), e[ge].base_;
694
694
  }
695
695
  function Ot(e, t, r = !0) {
696
- ut(e) === 0 ? (r ? Reflect.ownKeys(e) : _e.keys(e)).forEach((o) => {
696
+ ct(e) === 0 ? (r ? Reflect.ownKeys(e) : _e.keys(e)).forEach((o) => {
697
697
  t(o, e[o], e);
698
698
  }) : e.forEach((n, o) => t(o, n, e));
699
699
  }
700
- function ut(e) {
700
+ function ct(e) {
701
701
  const t = e[ge];
702
702
  return t ? t.type_ : Qt(e) ? 1 : Kt(e) ? 2 : Xt(e) ? 3 : 0;
703
703
  }
704
- var Lt = (e, t, r = ut(e)) => r === 2 ? e.has(t) : _e[Wt].hasOwnProperty.call(e, t), Be = (e, t, r = ut(e)) => (
704
+ var Lt = (e, t, r = ct(e)) => r === 2 ? e.has(t) : _e[Wt].hasOwnProperty.call(e, t), Be = (e, t, r = ct(e)) => (
705
705
  // @ts-ignore
706
706
  r === 2 ? e.get(t) : e[t]
707
- ), Pr = (e, t, r, n = ut(e)) => {
707
+ ), Pr = (e, t, r, n = ct(e)) => {
708
708
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
709
709
  };
710
710
  function kl(e, t) {
@@ -738,9 +738,9 @@ function ho(e, t) {
738
738
  [kt]: e[a]
739
739
  });
740
740
  }
741
- return _e.create(st(e), n);
741
+ return _e.create(ut(e), n);
742
742
  } else {
743
- const n = st(e);
743
+ const n = ut(e);
744
744
  if (n !== null && r)
745
745
  return { ...e };
746
746
  const o = _e.create(n);
@@ -748,7 +748,7 @@ function ho(e, t) {
748
748
  }
749
749
  }
750
750
  function jo(e, t = !1) {
751
- return Fr(e) || Oe(e) || !Ae(e) || (ut(e) > 1 && _e.defineProperties(e, {
751
+ return Fr(e) || Oe(e) || !Ae(e) || (ct(e) > 1 && _e.defineProperties(e, {
752
752
  set: lr,
753
753
  add: lr,
754
754
  clear: lr,
@@ -771,7 +771,7 @@ function Fr(e) {
771
771
  return e === null || !vt(e) ? !0 : _e.isFrozen(e);
772
772
  }
773
773
  var Rr = "MapSet", Nr = "Patches", xi = "ArrayMethods", Ir = {};
774
- function ct(e) {
774
+ function lt(e) {
775
775
  const t = Ir[e];
776
776
  return t || me(0, e), t;
777
777
  }
@@ -789,11 +789,11 @@ var Ut, qs = () => Ut, Gl = (e, t) => ({
789
789
  unfinalizedDrafts_: 0,
790
790
  handledSet_: /* @__PURE__ */ new Set(),
791
791
  processedForPatches_: /* @__PURE__ */ new Set(),
792
- mapSetPlugin_: Fi(Rr) ? ct(Rr) : void 0,
793
- arrayMethodsPlugin_: Fi(xi) ? ct(xi) : void 0
792
+ mapSetPlugin_: Fi(Rr) ? lt(Rr) : void 0,
793
+ arrayMethodsPlugin_: Fi(xi) ? lt(xi) : void 0
794
794
  });
795
795
  function $i(e, t) {
796
- t && (e.patchPlugin_ = ct(Nr), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
796
+ t && (e.patchPlugin_ = lt(Nr), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
797
797
  }
798
798
  function po(e) {
799
799
  yo(e), e.drafts_.forEach(zl), e.drafts_ = null;
@@ -1010,7 +1010,7 @@ var Vo = {
1010
1010
  me(11);
1011
1011
  },
1012
1012
  getPrototypeOf(e) {
1013
- return st(e.base_);
1013
+ return ut(e.base_);
1014
1014
  },
1015
1015
  setPrototypeOf() {
1016
1016
  me(12);
@@ -1043,12 +1043,12 @@ function Zl(e, t, r) {
1043
1043
  function Ws(e, t) {
1044
1044
  if (!(t in e))
1045
1045
  return;
1046
- let r = st(e);
1046
+ let r = ut(e);
1047
1047
  for (; r; ) {
1048
1048
  const n = Object.getOwnPropertyDescriptor(r, t);
1049
1049
  if (n)
1050
1050
  return n;
1051
- r = st(r);
1051
+ r = ut(r);
1052
1052
  }
1053
1053
  }
1054
1054
  function mo(e) {
@@ -1085,7 +1085,7 @@ var Jl = class {
1085
1085
  } else if (!t || !vt(t)) {
1086
1086
  if (o = r(t), o === void 0 && (o = t), o === ko && (o = void 0), this.autoFreeze_ && jo(o, !0), n) {
1087
1087
  const i = [], a = [];
1088
- ct(Nr).generateReplacementPatches_(t, o, {
1088
+ lt(Nr).generateReplacementPatches_(t, o, {
1089
1089
  patches_: i,
1090
1090
  inversePatches_: a
1091
1091
  }), n(i, a);
@@ -1151,7 +1151,7 @@ var Jl = class {
1151
1151
  }
1152
1152
  }
1153
1153
  r > -1 && (t = t.slice(r + 1));
1154
- const n = ct(Nr).applyPatches_;
1154
+ const n = lt(Nr).applyPatches_;
1155
1155
  return Oe(e) ? n(e, t) : this.produce(
1156
1156
  e,
1157
1157
  (o) => n(o, t)
@@ -1159,7 +1159,7 @@ var Jl = class {
1159
1159
  }
1160
1160
  };
1161
1161
  function go(e, t, r, n) {
1162
- const [o, i] = Kt(t) ? ct(Rr).proxyMap_(t, r) : Xt(t) ? ct(Rr).proxySet_(t, r) : Yl(t, r);
1162
+ const [o, i] = Kt(t) ? lt(Rr).proxyMap_(t, r) : Xt(t) ? lt(Rr).proxySet_(t, r) : Yl(t, r);
1163
1163
  return (r?.scope_ ?? qs()).drafts_.push(o), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? Kl(r, i, n) : i.callbacks_.push(function(u) {
1164
1164
  u.mapSetPlugin_?.fixSetContents(i);
1165
1165
  const { patchPlugin_: c } = u;
@@ -1370,11 +1370,11 @@ function ef() {
1370
1370
  const { path: g, op: E } = d;
1371
1371
  let m = p;
1372
1372
  for (let A = 0; A < g.length - 1; A++) {
1373
- const P = ut(m);
1373
+ const P = ct(m);
1374
1374
  let N = g[A];
1375
1375
  typeof N != "string" && typeof N != "number" && (N = "" + N), (P === 0 || P === 1) && (N === "__proto__" || N === Ht) && me(19), Ye(m) && N === Wt && me(19), m = Be(m, N), vt(m) || me(18, g.join("/"));
1376
1376
  }
1377
- const b = ut(m), f = v(d.value), w = g[g.length - 1];
1377
+ const b = ct(m), f = v(d.value), w = g[g.length - 1];
1378
1378
  switch (E) {
1379
1379
  case n:
1380
1380
  switch (b) {
@@ -1423,7 +1423,7 @@ function ef() {
1423
1423
  );
1424
1424
  if (Xt(p))
1425
1425
  return new Set(Array.from(p).map(v));
1426
- const S = Object.create(st(p));
1426
+ const S = Object.create(ut(p));
1427
1427
  for (const d in p)
1428
1428
  S[d] = v(p[d]);
1429
1429
  return Lt(p, $t) && (S[$t] = p[$t]), S;
@@ -2561,7 +2561,18 @@ function zf(e, ...t) {
2561
2561
  (r, n) => typeof t[n] < "u" ? t[n] : r
2562
2562
  );
2563
2563
  }
2564
- const Wf = {
2564
+ function Wf(e) {
2565
+ if (!e) return null;
2566
+ const t = e.split(".");
2567
+ if (t.length < 2) return null;
2568
+ try {
2569
+ const r = t[1].replace(/-/g, "+").replace(/_/g, "/"), n = `${r}${"=".repeat((4 - r.length % 4) % 4)}`, o = atob(n);
2570
+ return JSON.parse(o);
2571
+ } catch {
2572
+ return null;
2573
+ }
2574
+ }
2575
+ const Qf = {
2565
2576
  auth: {
2566
2577
  reason: "default",
2567
2578
  identity: void 0
@@ -2571,7 +2582,7 @@ const Wf = {
2571
2582
  theme: "dark"
2572
2583
  }, su = "app", At = Xe({
2573
2584
  name: su,
2574
- initialState: Wf,
2585
+ initialState: Qf,
2575
2586
  reducers: {
2576
2587
  screenResize(e, t) {
2577
2588
  e.screen = t.payload;
@@ -2589,28 +2600,28 @@ const Wf = {
2589
2600
  e.auth.seed = Eo(), e.auth.reason = "clear", e.auth.identity = void 0, e.auth.twoFactor = void 0;
2590
2601
  }
2591
2602
  }
2592
- }), ft = (e) => e[su];
2593
- function Qf() {
2603
+ }), et = (e) => e[su];
2604
+ function Kf() {
2594
2605
  const e = ul(Bs);
2595
2606
  if (!e) throw new Error("AuthService not found");
2596
2607
  return e;
2597
2608
  }
2598
2609
  function uu() {
2599
- return xe((e) => ft(e).auth?.identity);
2610
+ return xe((e) => et(e).auth?.identity);
2600
2611
  }
2601
- const Kf = () => {
2612
+ const Xf = () => {
2602
2613
  const e = Rl(Bo), t = Ds(
2603
2614
  (n) => e.can(n.I, n.a, n.f),
2604
2615
  [e]
2605
2616
  );
2606
2617
  return je(() => ({ can: e.can, allowed: t }), [t, e]);
2607
2618
  };
2608
- let Xf = 0;
2609
- function Yf(e) {
2610
- const t = (++Xf).toString();
2619
+ let Yf = 0;
2620
+ function Zf(e) {
2621
+ const t = (++Yf).toString();
2611
2622
  return { I: t, a: t, f: e };
2612
2623
  }
2613
- const Zf = Pl(Bo.Consumer), Jf = Ms(({ permission: e, children: t }) => /* @__PURE__ */ he(Zf, { I: e.I, a: e.a, children: t }));
2624
+ const Jf = Pl(Bo.Consumer), ed = Ms(({ permission: e, children: t }) => /* @__PURE__ */ he(Jf, { I: e.I, a: e.a, children: t }));
2614
2625
  var So = function(e, t) {
2615
2626
  return So = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2616
2627
  r.__proto__ = n;
@@ -2650,17 +2661,17 @@ function De(e, t, r) {
2650
2661
  return e.concat(i || Array.prototype.slice.call(t));
2651
2662
  }
2652
2663
  function Ce(e, t) {
2653
- var r = t && t.cache ? t.cache : ad, n = t && t.serializer ? t.serializer : od, o = t && t.strategy ? t.strategy : rd;
2664
+ var r = t && t.cache ? t.cache : sd, n = t && t.serializer ? t.serializer : id, o = t && t.strategy ? t.strategy : nd;
2654
2665
  return o(e, {
2655
2666
  cache: r,
2656
2667
  serializer: n
2657
2668
  });
2658
2669
  }
2659
- function ed(e) {
2670
+ function td(e) {
2660
2671
  return e == null || typeof e == "number" || typeof e == "boolean";
2661
2672
  }
2662
- function td(e, t, r, n) {
2663
- var o = ed(n) ? n : r(n), i = t.get(o);
2673
+ function rd(e, t, r, n) {
2674
+ var o = td(n) ? n : r(n), i = t.get(o);
2664
2675
  return typeof i > "u" && (i = e.call(this, n), t.set(o, i)), i;
2665
2676
  }
2666
2677
  function cu(e, t, r) {
@@ -2670,16 +2681,16 @@ function cu(e, t, r) {
2670
2681
  function lu(e, t, r, n, o) {
2671
2682
  return r.bind(t, e, n, o);
2672
2683
  }
2673
- function rd(e, t) {
2674
- var r = e.length === 1 ? td : cu;
2684
+ function nd(e, t) {
2685
+ var r = e.length === 1 ? rd : cu;
2675
2686
  return lu(e, this, r, t.cache.create(), t.serializer);
2676
2687
  }
2677
- function nd(e, t) {
2688
+ function od(e, t) {
2678
2689
  return lu(e, this, cu, t.cache.create(), t.serializer);
2679
2690
  }
2680
- var od = function() {
2691
+ var id = function() {
2681
2692
  return JSON.stringify(arguments);
2682
- }, id = (
2693
+ }, ad = (
2683
2694
  /** @class */
2684
2695
  (function() {
2685
2696
  function e() {
@@ -2691,12 +2702,12 @@ var od = function() {
2691
2702
  this.cache[t] = r;
2692
2703
  }, e;
2693
2704
  })()
2694
- ), ad = {
2705
+ ), sd = {
2695
2706
  create: function() {
2696
- return new id();
2707
+ return new ad();
2697
2708
  }
2698
2709
  }, Me = {
2699
- variadic: nd
2710
+ variadic: od
2700
2711
  }, W;
2701
2712
  (function(e) {
2702
2713
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -2712,7 +2723,7 @@ var St;
2712
2723
  function Ki(e) {
2713
2724
  return e.type === le.literal;
2714
2725
  }
2715
- function sd(e) {
2726
+ function ud(e) {
2716
2727
  return e.type === le.argument;
2717
2728
  }
2718
2729
  function fu(e) {
@@ -2730,7 +2741,7 @@ function pu(e) {
2730
2741
  function yu(e) {
2731
2742
  return e.type === le.plural;
2732
2743
  }
2733
- function ud(e) {
2744
+ function cd(e) {
2734
2745
  return e.type === le.pound;
2735
2746
  }
2736
2747
  function mu(e) {
@@ -2742,10 +2753,10 @@ function gu(e) {
2742
2753
  function wo(e) {
2743
2754
  return !!(e && typeof e == "object" && e.type === St.dateTime);
2744
2755
  }
2745
- var vu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cd = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2746
- function ld(e) {
2756
+ var vu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ld = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2757
+ function fd(e) {
2747
2758
  var t = {};
2748
- return e.replace(cd, function(r) {
2759
+ return e.replace(ld, function(r) {
2749
2760
  var n = r.length;
2750
2761
  switch (r[0]) {
2751
2762
  // Era
@@ -2851,11 +2862,11 @@ function ld(e) {
2851
2862
  return "";
2852
2863
  }), t;
2853
2864
  }
2854
- var fd = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2855
- function dd(e) {
2865
+ var dd = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2866
+ function hd(e) {
2856
2867
  if (e.length === 0)
2857
2868
  throw new Error("Number skeleton cannot be empty");
2858
- for (var t = e.split(fd).filter(function(v) {
2869
+ for (var t = e.split(dd).filter(function(v) {
2859
2870
  return v.length > 0;
2860
2871
  }), r = [], n = 0, o = t; n < o.length; n++) {
2861
2872
  var i = o[n], a = i.split("/");
@@ -2870,10 +2881,10 @@ function dd(e) {
2870
2881
  }
2871
2882
  return r;
2872
2883
  }
2873
- function hd(e) {
2884
+ function pd(e) {
2874
2885
  return e.replace(/^(.*?)-/, "");
2875
2886
  }
2876
- var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bu = /^(@+)?(\+|#+)?[rs]?$/g, pd = /(\*)(0+)|(#+)(0+)|(0+)/g, Eu = /^(0+)$/;
2887
+ var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bu = /^(@+)?(\+|#+)?[rs]?$/g, yd = /(\*)(0+)|(#+)(0+)|(0+)/g, Eu = /^(0+)$/;
2877
2888
  function Yi(e) {
2878
2889
  var t = {};
2879
2890
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bu, function(r, n, o) {
@@ -2920,7 +2931,7 @@ function Su(e) {
2920
2931
  };
2921
2932
  }
2922
2933
  }
2923
- function yd(e) {
2934
+ function md(e) {
2924
2935
  var t;
2925
2936
  if (e[0] === "E" && e[1] === "E" ? (t = {
2926
2937
  notation: "engineering"
@@ -2938,7 +2949,7 @@ function Zi(e) {
2938
2949
  var t = {}, r = Su(e);
2939
2950
  return r || t;
2940
2951
  }
2941
- function md(e) {
2952
+ function gd(e) {
2942
2953
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2943
2954
  var o = n[r];
2944
2955
  switch (o.stem) {
@@ -2962,7 +2973,7 @@ function md(e) {
2962
2973
  continue;
2963
2974
  case "measure-unit":
2964
2975
  case "unit":
2965
- t.style = "unit", t.unit = hd(o.options[0]);
2976
+ t.style = "unit", t.unit = pd(o.options[0]);
2966
2977
  continue;
2967
2978
  case "compact-short":
2968
2979
  case "K":
@@ -3026,7 +3037,7 @@ function md(e) {
3026
3037
  case "integer-width":
3027
3038
  if (o.options.length > 1)
3028
3039
  throw new RangeError("integer-width stems only accept a single optional option");
3029
- o.options[0].replace(pd, function(u, c, l, y, v, h) {
3040
+ o.options[0].replace(yd, function(u, c, l, y, v, h) {
3030
3041
  if (c)
3031
3042
  t.minimumIntegerDigits = l.length;
3032
3043
  else {
@@ -3059,7 +3070,7 @@ function md(e) {
3059
3070
  }
3060
3071
  var a = Su(o.stem);
3061
3072
  a && (t = B(B({}, t), a));
3062
- var s = yd(o.stem);
3073
+ var s = md(o.stem);
3063
3074
  s && (t = B(B({}, t), s));
3064
3075
  }
3065
3076
  return t;
@@ -4489,13 +4500,13 @@ var yr = {
4489
4500
  "h"
4490
4501
  ]
4491
4502
  };
4492
- function gd(e, t) {
4503
+ function vd(e, t) {
4493
4504
  for (var r = "", n = 0; n < e.length; n++) {
4494
4505
  var o = e.charAt(n);
4495
4506
  if (o === "j") {
4496
4507
  for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === o; )
4497
4508
  i++, n++;
4498
- var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c = vd(t);
4509
+ var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c = bd(t);
4499
4510
  for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
4500
4511
  r += u;
4501
4512
  for (; a-- > 0; )
@@ -4504,7 +4515,7 @@ function gd(e, t) {
4504
4515
  }
4505
4516
  return r;
4506
4517
  }
4507
- function vd(e) {
4518
+ function bd(e) {
4508
4519
  var t = e.hourCycle;
4509
4520
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4510
4521
  e.hourCycles && // @ts-ignore
@@ -4526,13 +4537,13 @@ function vd(e) {
4526
4537
  var o = yr[n || ""] || yr[r || ""] || yr["".concat(r, "-001")] || yr["001"];
4527
4538
  return o[0];
4528
4539
  }
4529
- var bd = new RegExp("^".concat(vu.source, "*")), Ed = new RegExp("".concat(vu.source, "*$"));
4540
+ var Ed = new RegExp("^".concat(vu.source, "*")), Sd = new RegExp("".concat(vu.source, "*$"));
4530
4541
  function K(e, t) {
4531
4542
  return { start: e, end: t };
4532
4543
  }
4533
- var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.prototype.trimEnd, Ji = (
4544
+ var wd = !!Object.fromEntries, _d = !!String.prototype.trimStart, Od = !!String.prototype.trimEnd, Ji = (
4534
4545
  // native
4535
- Sd ? Object.fromEntries : (
4546
+ wd ? Object.fromEntries : (
4536
4547
  // Ponyfill
4537
4548
  function(t) {
4538
4549
  for (var r = {}, n = 0, o = t; n < o.length; n++) {
@@ -4542,7 +4553,7 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4542
4553
  return r;
4543
4554
  }
4544
4555
  )
4545
- ), Od = wd ? (
4556
+ ), Ad = _d ? (
4546
4557
  // Native
4547
4558
  function(t) {
4548
4559
  return t.trimStart();
@@ -4550,9 +4561,9 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4550
4561
  ) : (
4551
4562
  // Ponyfill
4552
4563
  function(t) {
4553
- return t.replace(bd, "");
4564
+ return t.replace(Ed, "");
4554
4565
  }
4555
- ), Ad = _d ? (
4566
+ ), Td = Od ? (
4556
4567
  // Native
4557
4568
  function(t) {
4558
4569
  return t.trimEnd();
@@ -4560,16 +4571,16 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4560
4571
  ) : (
4561
4572
  // Ponyfill
4562
4573
  function(t) {
4563
- return t.replace(Ed, "");
4574
+ return t.replace(Sd, "");
4564
4575
  }
4565
4576
  ), ea = new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4566
- function Td(e, t) {
4577
+ function Pd(e, t) {
4567
4578
  var r;
4568
4579
  ea.lastIndex = t;
4569
4580
  var n = ea.exec(e);
4570
4581
  return (r = n[1]) !== null && r !== void 0 ? r : "";
4571
4582
  }
4572
- var Pd = (
4583
+ var Rd = (
4573
4584
  /** @class */
4574
4585
  (function() {
4575
4586
  function e(t, r) {
@@ -4651,7 +4662,7 @@ var Pd = (
4651
4662
  return this.error(W.INVALID_TAG, K(n, this.clonePosition()));
4652
4663
  }, e.prototype.parseTagName = function() {
4653
4664
  var t = this.offset();
4654
- for (this.bump(); !this.isEOF() && Nd(this.char()); )
4665
+ for (this.bump(); !this.isEOF() && Id(this.char()); )
4655
4666
  this.bump();
4656
4667
  return this.message.slice(t, this.offset());
4657
4668
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4680,7 +4691,7 @@ var Pd = (
4680
4691
  };
4681
4692
  }, e.prototype.tryParseLeftAngleBracket = function() {
4682
4693
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4683
- !Rd(this.peek() || 0)) ? (this.bump(), "<") : null;
4694
+ !Nd(this.peek() || 0)) ? (this.bump(), "<") : null;
4684
4695
  }, e.prototype.tryParseQuote = function(t) {
4685
4696
  if (this.isEOF() || this.char() !== 39)
4686
4697
  return null;
@@ -4751,7 +4762,7 @@ var Pd = (
4751
4762
  return this.error(W.MALFORMED_ARGUMENT, K(n, this.clonePosition()));
4752
4763
  }
4753
4764
  }, e.prototype.parseIdentifierIfPossible = function() {
4754
- var t = this.clonePosition(), r = this.offset(), n = Td(this.message, r), o = r + n.length;
4765
+ var t = this.clonePosition(), r = this.offset(), n = Pd(this.message, r), o = r + n.length;
4755
4766
  this.bumpTo(o);
4756
4767
  var i = this.clonePosition(), a = K(t, i);
4757
4768
  return { value: n, location: a };
@@ -4770,7 +4781,7 @@ var Pd = (
4770
4781
  var l = this.clonePosition(), y = this.parseSimpleArgStyleIfPossible();
4771
4782
  if (y.err)
4772
4783
  return y;
4773
- var v = Ad(y.val);
4784
+ var v = Td(y.val);
4774
4785
  if (v.length === 0)
4775
4786
  return this.error(W.EXPECT_ARGUMENT_STYLE, K(this.clonePosition(), this.clonePosition()));
4776
4787
  var h = K(l, this.clonePosition());
@@ -4781,7 +4792,7 @@ var Pd = (
4781
4792
  return p;
4782
4793
  var S = K(o, this.clonePosition());
4783
4794
  if (c && c.style.startsWith("::")) {
4784
- var d = Od(c.style.slice(2));
4795
+ var d = Ad(c.style.slice(2));
4785
4796
  if (s === "number") {
4786
4797
  var y = this.parseNumberSkeletonFromString(d, c.styleLocation);
4787
4798
  return y.err ? y : {
@@ -4792,12 +4803,12 @@ var Pd = (
4792
4803
  if (d.length === 0)
4793
4804
  return this.error(W.EXPECT_DATE_TIME_SKELETON, S);
4794
4805
  var g = d;
4795
- this.locale && (g = gd(d, this.locale));
4806
+ this.locale && (g = vd(d, this.locale));
4796
4807
  var v = {
4797
4808
  type: St.dateTime,
4798
4809
  pattern: g,
4799
4810
  location: c.styleLocation,
4800
- parsedOptions: this.shouldParseSkeletons ? ld(g) : {}
4811
+ parsedOptions: this.shouldParseSkeletons ? fd(g) : {}
4801
4812
  }, E = s === "date" ? le.date : le.time;
4802
4813
  return {
4803
4814
  val: { type: E, value: n, location: S, style: v },
@@ -4902,7 +4913,7 @@ var Pd = (
4902
4913
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4903
4914
  var n = [];
4904
4915
  try {
4905
- n = dd(t);
4916
+ n = hd(t);
4906
4917
  } catch {
4907
4918
  return this.error(W.INVALID_NUMBER_SKELETON, r);
4908
4919
  }
@@ -4911,7 +4922,7 @@ var Pd = (
4911
4922
  type: St.number,
4912
4923
  tokens: n,
4913
4924
  location: r,
4914
- parsedOptions: this.shouldParseSkeletons ? md(n) : {}
4925
+ parsedOptions: this.shouldParseSkeletons ? gd(n) : {}
4915
4926
  },
4916
4927
  err: null
4917
4928
  };
@@ -5015,7 +5026,7 @@ var Pd = (
5015
5026
  break;
5016
5027
  }
5017
5028
  }, e.prototype.bumpSpace = function() {
5018
- for (; !this.isEOF() && Id(this.char()); )
5029
+ for (; !this.isEOF() && Cd(this.char()); )
5019
5030
  this.bump();
5020
5031
  }, e.prototype.peek = function() {
5021
5032
  if (this.isEOF())
@@ -5028,13 +5039,13 @@ var Pd = (
5028
5039
  function _o(e) {
5029
5040
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5030
5041
  }
5031
- function Rd(e) {
5042
+ function Nd(e) {
5032
5043
  return _o(e) || e === 47;
5033
5044
  }
5034
- function Nd(e) {
5045
+ function Id(e) {
5035
5046
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
5036
5047
  }
5037
- function Id(e) {
5048
+ function Cd(e) {
5038
5049
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5039
5050
  }
5040
5051
  function Oo(e) {
@@ -5045,9 +5056,9 @@ function Oo(e) {
5045
5056
  else fu(t) && gu(t.style) || (du(t) || hu(t)) && wo(t.style) ? delete t.style.location : mu(t) && Oo(t.children);
5046
5057
  });
5047
5058
  }
5048
- function Cd(e, t) {
5059
+ function Md(e, t) {
5049
5060
  t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5050
- var r = new Pd(e, t).parse();
5061
+ var r = new Rd(e, t).parse();
5051
5062
  if (r.err) {
5052
5063
  var n = SyntaxError(W[r.err.kind]);
5053
5064
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -5058,7 +5069,7 @@ var $e;
5058
5069
  (function(e) {
5059
5070
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5060
5071
  })($e || ($e = {}));
5061
- var et = (
5072
+ var tt = (
5062
5073
  /** @class */
5063
5074
  (function(e) {
5064
5075
  Te(t, e);
@@ -5078,8 +5089,8 @@ var et = (
5078
5089
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(o).join('", "'), '"'), $e.INVALID_VALUE, i) || this;
5079
5090
  }
5080
5091
  return t;
5081
- })(et)
5082
- ), Md = (
5092
+ })(tt)
5093
+ ), Dd = (
5083
5094
  /** @class */
5084
5095
  (function(e) {
5085
5096
  Te(t, e);
@@ -5087,8 +5098,8 @@ var et = (
5087
5098
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, o) || this;
5088
5099
  }
5089
5100
  return t;
5090
- })(et)
5091
- ), Dd = (
5101
+ })(tt)
5102
+ ), xd = (
5092
5103
  /** @class */
5093
5104
  (function(e) {
5094
5105
  Te(t, e);
@@ -5096,12 +5107,12 @@ var et = (
5096
5107
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
5097
5108
  }
5098
5109
  return t;
5099
- })(et)
5110
+ })(tt)
5100
5111
  ), Ee;
5101
5112
  (function(e) {
5102
5113
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5103
5114
  })(Ee || (Ee = {}));
5104
- function xd(e) {
5115
+ function Fd(e) {
5105
5116
  return e.length < 2 ? e : e.reduce(function(t, r) {
5106
5117
  var n = t[t.length - 1];
5107
5118
  return !n || n.type !== Ee.literal || r.type !== Ee.literal ? t.push(r) : n.value += r.value, t;
@@ -5127,7 +5138,7 @@ function _r(e, t, r, n, o, i, a) {
5127
5138
  });
5128
5139
  continue;
5129
5140
  }
5130
- if (ud(l)) {
5141
+ if (cd(l)) {
5131
5142
  typeof i == "number" && s.push({
5132
5143
  type: Ee.literal,
5133
5144
  value: r.getNumberFormat(t).format(i)
@@ -5136,9 +5147,9 @@ function _r(e, t, r, n, o, i, a) {
5136
5147
  }
5137
5148
  var y = l.value;
5138
5149
  if (!(o && y in o))
5139
- throw new Dd(y, a);
5150
+ throw new xd(y, a);
5140
5151
  var v = o[y];
5141
- if (sd(l)) {
5152
+ if (ud(l)) {
5142
5153
  (!v || typeof v == "string" || typeof v == "number") && (v = typeof v == "string" || typeof v == "number" ? String(v) : ""), s.push({
5143
5154
  type: typeof v == "string" ? Ee.literal : Ee.object,
5144
5155
  value: v
@@ -5172,7 +5183,7 @@ function _r(e, t, r, n, o, i, a) {
5172
5183
  if (mu(l)) {
5173
5184
  var p = l.children, S = l.value, d = o[S];
5174
5185
  if (!wu(d))
5175
- throw new Md(S, "function", a);
5186
+ throw new Dd(S, "function", a);
5176
5187
  var g = _r(p, t, r, n, o, i), E = d(g.map(function(f) {
5177
5188
  return f.value;
5178
5189
  }));
@@ -5194,7 +5205,7 @@ function _r(e, t, r, n, o, i, a) {
5194
5205
  var m = l.options["=".concat(v)];
5195
5206
  if (!m) {
5196
5207
  if (!Intl.PluralRules)
5197
- throw new et(`Intl.PluralRules is not available in this environment.
5208
+ throw new tt(`Intl.PluralRules is not available in this environment.
5198
5209
  Try polyfilling it using "@formatjs/intl-pluralrules"
5199
5210
  `, $e.MISSING_INTL_API, a);
5200
5211
  var b = r.getPluralRules(t, { type: l.pluralType }).select(v - (l.offset || 0));
@@ -5206,16 +5217,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5206
5217
  continue;
5207
5218
  }
5208
5219
  }
5209
- return xd(s);
5220
+ return Fd(s);
5210
5221
  }
5211
- function Fd(e, t) {
5222
+ function $d(e, t) {
5212
5223
  return t ? B(B(B({}, e), t), Object.keys(e).reduce(function(r, n) {
5213
5224
  return r[n] = B(B({}, e[n]), t[n]), r;
5214
5225
  }, {})) : e;
5215
5226
  }
5216
- function $d(e, t) {
5227
+ function Ld(e, t) {
5217
5228
  return t ? Object.keys(e).reduce(function(r, n) {
5218
- return r[n] = Fd(e[n], t[n]), r;
5229
+ return r[n] = $d(e[n], t[n]), r;
5219
5230
  }, B({}, e)) : e;
5220
5231
  }
5221
5232
  function dn(e) {
@@ -5232,7 +5243,7 @@ function dn(e) {
5232
5243
  }
5233
5244
  };
5234
5245
  }
5235
- function Ld(e) {
5246
+ function Bd(e) {
5236
5247
  return e === void 0 && (e = {
5237
5248
  number: {},
5238
5249
  dateTime: {},
@@ -5303,7 +5314,7 @@ var _u = (
5303
5314
  this.ast = t;
5304
5315
  if (!Array.isArray(this.ast))
5305
5316
  throw new TypeError("A message must be provided as a String or AST.");
5306
- this.formats = $d(e.formats, n), this.formatters = o && o.formatters || Ld(this.formatterCache);
5317
+ this.formats = Ld(e.formats, n), this.formatters = o && o.formatters || Bd(this.formatterCache);
5307
5318
  }
5308
5319
  return Object.defineProperty(e, "defaultLocale", {
5309
5320
  get: function() {
@@ -5316,7 +5327,7 @@ var _u = (
5316
5327
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5317
5328
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5318
5329
  }
5319
- }, e.__parse = Cd, e.formats = {
5330
+ }, e.__parse = Md, e.formats = {
5320
5331
  number: {
5321
5332
  integer: {
5322
5333
  maximumFractionDigits: 0
@@ -5376,10 +5387,10 @@ var _u = (
5376
5387
  }
5377
5388
  }, e;
5378
5389
  })()
5379
- ), lt;
5390
+ ), ft;
5380
5391
  (function(e) {
5381
5392
  e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
5382
- })(lt || (lt = {}));
5393
+ })(ft || (ft = {}));
5383
5394
  var Jt = (
5384
5395
  /** @class */
5385
5396
  (function(e) {
@@ -5393,21 +5404,21 @@ var Jt = (
5393
5404
  }
5394
5405
  return t;
5395
5406
  })(Error)
5396
- ), Bd = (
5407
+ ), Hd = (
5397
5408
  /** @class */
5398
5409
  (function(e) {
5399
5410
  Te(t, e);
5400
5411
  function t(r, n) {
5401
- return e.call(this, lt.UNSUPPORTED_FORMATTER, r, n) || this;
5412
+ return e.call(this, ft.UNSUPPORTED_FORMATTER, r, n) || this;
5402
5413
  }
5403
5414
  return t;
5404
5415
  })(Jt)
5405
- ), Hd = (
5416
+ ), kd = (
5406
5417
  /** @class */
5407
5418
  (function(e) {
5408
5419
  Te(t, e);
5409
5420
  function t(r, n) {
5410
- return e.call(this, lt.INVALID_CONFIG, r, n) || this;
5421
+ return e.call(this, ft.INVALID_CONFIG, r, n) || this;
5411
5422
  }
5412
5423
  return t;
5413
5424
  })(Jt)
@@ -5416,7 +5427,7 @@ var Jt = (
5416
5427
  (function(e) {
5417
5428
  Te(t, e);
5418
5429
  function t(r, n) {
5419
- return e.call(this, lt.MISSING_DATA, r, n) || this;
5430
+ return e.call(this, ft.MISSING_DATA, r, n) || this;
5420
5431
  }
5421
5432
  return t;
5422
5433
  })(Jt)
@@ -5425,7 +5436,7 @@ var Jt = (
5425
5436
  (function(e) {
5426
5437
  Te(t, e);
5427
5438
  function t(r, n, o) {
5428
- var i = e.call(this, lt.FORMAT_ERROR, "".concat(r, `
5439
+ var i = e.call(this, ft.FORMAT_ERROR, "".concat(r, `
5429
5440
  Locale: `).concat(n, `
5430
5441
  `), o) || this;
5431
5442
  return i.locale = n, i;
@@ -5446,12 +5457,12 @@ Description: `).concat(o?.description, `
5446
5457
  }
5447
5458
  return t;
5448
5459
  })(Pe)
5449
- ), kd = (
5460
+ ), Ud = (
5450
5461
  /** @class */
5451
5462
  (function(e) {
5452
5463
  Te(t, e);
5453
5464
  function t(r, n) {
5454
- var o = e.call(this, lt.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(i) {
5465
+ var o = e.call(this, ft.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(i) {
5455
5466
  var a;
5456
5467
  return (a = i.value) !== null && a !== void 0 ? a : JSON.stringify(i);
5457
5468
  }).join(), ")") : "id", " as fallback.")) || this;
@@ -5460,7 +5471,7 @@ Description: `).concat(o?.description, `
5460
5471
  return t;
5461
5472
  })(Jt)
5462
5473
  );
5463
- function Ud(e, t, r) {
5474
+ function jd(e, t, r) {
5464
5475
  if (r === void 0 && (r = Error), !e)
5465
5476
  throw new r(t);
5466
5477
  }
@@ -5469,9 +5480,9 @@ function Tt(e, t, r) {
5469
5480
  return o in e ? n[o] = e[o] : o in r && (n[o] = r[o]), n;
5470
5481
  }, {});
5471
5482
  }
5472
- var jd = function(e) {
5483
+ var qd = function(e) {
5473
5484
  process.env.NODE_ENV !== "production" && console.error(e);
5474
- }, qd = function(e) {
5485
+ }, Vd = function(e) {
5475
5486
  process.env.NODE_ENV !== "production" && console.warn(e);
5476
5487
  }, Ou = {
5477
5488
  formats: {},
@@ -5480,8 +5491,8 @@ var jd = function(e) {
5480
5491
  defaultLocale: "en",
5481
5492
  defaultFormats: {},
5482
5493
  fallbackOnEmptyString: !0,
5483
- onError: jd,
5484
- onWarn: qd
5494
+ onError: qd,
5495
+ onWarn: Vd
5485
5496
  };
5486
5497
  function Au() {
5487
5498
  return {
@@ -5494,7 +5505,7 @@ function Au() {
5494
5505
  displayNames: {}
5495
5506
  };
5496
5507
  }
5497
- function rt(e) {
5508
+ function nt(e) {
5498
5509
  return {
5499
5510
  create: function() {
5500
5511
  return {
@@ -5508,28 +5519,28 @@ function rt(e) {
5508
5519
  }
5509
5520
  };
5510
5521
  }
5511
- function Vd(e) {
5522
+ function Gd(e) {
5512
5523
  e === void 0 && (e = Au());
5513
5524
  var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, o = Ce(function() {
5514
5525
  for (var s, u = [], c = 0; c < arguments.length; c++)
5515
5526
  u[c] = arguments[c];
5516
5527
  return new ((s = Intl.DateTimeFormat).bind.apply(s, De([void 0], u, !1)))();
5517
5528
  }, {
5518
- cache: rt(e.dateTime),
5529
+ cache: nt(e.dateTime),
5519
5530
  strategy: Me.variadic
5520
5531
  }), i = Ce(function() {
5521
5532
  for (var s, u = [], c = 0; c < arguments.length; c++)
5522
5533
  u[c] = arguments[c];
5523
5534
  return new ((s = Intl.NumberFormat).bind.apply(s, De([void 0], u, !1)))();
5524
5535
  }, {
5525
- cache: rt(e.number),
5536
+ cache: nt(e.number),
5526
5537
  strategy: Me.variadic
5527
5538
  }), a = Ce(function() {
5528
5539
  for (var s, u = [], c = 0; c < arguments.length; c++)
5529
5540
  u[c] = arguments[c];
5530
5541
  return new ((s = Intl.PluralRules).bind.apply(s, De([void 0], u, !1)))();
5531
5542
  }, {
5532
- cache: rt(e.pluralRules),
5543
+ cache: nt(e.pluralRules),
5533
5544
  strategy: Me.variadic
5534
5545
  });
5535
5546
  return {
@@ -5542,7 +5553,7 @@ function Vd(e) {
5542
5553
  getPluralRules: a
5543
5554
  } }, l));
5544
5555
  }, {
5545
- cache: rt(e.message),
5556
+ cache: nt(e.message),
5546
5557
  strategy: Me.variadic
5547
5558
  }),
5548
5559
  getRelativeTimeFormat: Ce(function() {
@@ -5550,7 +5561,7 @@ function Vd(e) {
5550
5561
  s[u] = arguments[u];
5551
5562
  return new (t.bind.apply(t, De([void 0], s, !1)))();
5552
5563
  }, {
5553
- cache: rt(e.relativeTime),
5564
+ cache: nt(e.relativeTime),
5554
5565
  strategy: Me.variadic
5555
5566
  }),
5556
5567
  getPluralRules: a,
@@ -5559,7 +5570,7 @@ function Vd(e) {
5559
5570
  s[u] = arguments[u];
5560
5571
  return new (r.bind.apply(r, De([void 0], s, !1)))();
5561
5572
  }, {
5562
- cache: rt(e.list),
5573
+ cache: nt(e.list),
5563
5574
  strategy: Me.variadic
5564
5575
  }),
5565
5576
  getDisplayNames: Ce(function() {
@@ -5567,7 +5578,7 @@ function Vd(e) {
5567
5578
  s[u] = arguments[u];
5568
5579
  return new (n.bind.apply(n, De([void 0], s, !1)))();
5569
5580
  }, {
5570
- cache: rt(e.displayNames),
5581
+ cache: nt(e.displayNames),
5571
5582
  strategy: Me.variadic
5572
5583
  })
5573
5584
  };
@@ -5576,7 +5587,7 @@ function Qo(e, t, r, n) {
5576
5587
  var o = e && e[t], i;
5577
5588
  if (o && (i = o[r]), i)
5578
5589
  return i;
5579
- n(new Bd("No ".concat(t, " format named: ").concat(r)));
5590
+ n(new Hd("No ".concat(t, " format named: ").concat(r)));
5580
5591
  }
5581
5592
  function mr(e, t) {
5582
5593
  return Object.keys(e).reduce(function(r, n) {
@@ -5599,7 +5610,7 @@ var Ao = function(e, t, r, n, o) {
5599
5610
  var i = e.locale, a = e.formats, s = e.messages, u = e.defaultLocale, c = e.defaultFormats, l = e.fallbackOnEmptyString, y = e.onError, v = e.timeZone, h = e.defaultRichTextElements;
5600
5611
  r === void 0 && (r = { id: "" });
5601
5612
  var p = r.id, S = r.defaultMessage;
5602
- Ud(!!p, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
5613
+ jd(!!p, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
5603
5614
  var d = String(p), g = (
5604
5615
  // In case messages is Object.create(null)
5605
5616
  // e.g import('foo.json') from webpack)
@@ -5613,7 +5624,7 @@ var Ao = function(e, t, r, n, o) {
5613
5624
  if (n = B(B({}, h), n), a = oa(a, v), c = oa(c, v), !g) {
5614
5625
  if (l === !1 && g === "")
5615
5626
  return g;
5616
- if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new kd(r, i)), S)
5627
+ if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new Ud(r, i)), S)
5617
5628
  try {
5618
5629
  var E = t.getMessageFormat(S, u, c, o);
5619
5630
  return E.format(n);
@@ -5636,7 +5647,7 @@ var Ao = function(e, t, r, n, o) {
5636
5647
  y(new hn('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), i, r, m));
5637
5648
  }
5638
5649
  return typeof g == "string" ? g : typeof S == "string" ? S : d;
5639
- }, Gd = [
5650
+ }, zd = [
5640
5651
  "formatMatcher",
5641
5652
  "timeZone",
5642
5653
  "hour12",
@@ -5660,10 +5671,10 @@ var Ao = function(e, t, r, n, o) {
5660
5671
  function er(e, t, r, n) {
5661
5672
  var o = e.locale, i = e.formats, a = e.onError, s = e.timeZone;
5662
5673
  n === void 0 && (n = {});
5663
- var u = n.format, c = B(B({}, s && { timeZone: s }), u && Qo(i, t, u, a)), l = Tt(n, Gd, c);
5674
+ var u = n.format, c = B(B({}, s && { timeZone: s }), u && Qo(i, t, u, a)), l = Tt(n, zd, c);
5664
5675
  return t === "time" && !l.hour && !l.minute && !l.second && !l.timeStyle && !l.dateStyle && (l = B(B({}, l), { hour: "numeric", minute: "numeric" })), r(o, l);
5665
5676
  }
5666
- function zd(e, t) {
5677
+ function Wd(e, t) {
5667
5678
  for (var r = [], n = 2; n < arguments.length; n++)
5668
5679
  r[n - 2] = arguments[n];
5669
5680
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5674,7 +5685,7 @@ function zd(e, t) {
5674
5685
  }
5675
5686
  return String(s);
5676
5687
  }
5677
- function Wd(e, t) {
5688
+ function Qd(e, t) {
5678
5689
  for (var r = [], n = 2; n < arguments.length; n++)
5679
5690
  r[n - 2] = arguments[n];
5680
5691
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5685,7 +5696,7 @@ function Wd(e, t) {
5685
5696
  }
5686
5697
  return String(s);
5687
5698
  }
5688
- function Qd(e, t) {
5699
+ function Kd(e, t) {
5689
5700
  for (var r = [], n = 2; n < arguments.length; n++)
5690
5701
  r[n - 2] = arguments[n];
5691
5702
  var o = r[0], i = r[1], a = r[2], s = a === void 0 ? {} : a, u = typeof o == "string" ? new Date(o || 0) : o, c = typeof i == "string" ? new Date(i || 0) : i;
@@ -5696,7 +5707,7 @@ function Qd(e, t) {
5696
5707
  }
5697
5708
  return String(u);
5698
5709
  }
5699
- function Kd(e, t) {
5710
+ function Xd(e, t) {
5700
5711
  for (var r = [], n = 2; n < arguments.length; n++)
5701
5712
  r[n - 2] = arguments[n];
5702
5713
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5707,7 +5718,7 @@ function Kd(e, t) {
5707
5718
  }
5708
5719
  return [];
5709
5720
  }
5710
- function Xd(e, t) {
5721
+ function Yd(e, t) {
5711
5722
  for (var r = [], n = 2; n < arguments.length; n++)
5712
5723
  r[n - 2] = arguments[n];
5713
5724
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5718,32 +5729,32 @@ function Xd(e, t) {
5718
5729
  }
5719
5730
  return [];
5720
5731
  }
5721
- var Yd = [
5732
+ var Zd = [
5722
5733
  "style",
5723
5734
  "type",
5724
5735
  "fallback",
5725
5736
  "languageDisplay"
5726
5737
  ];
5727
- function Zd(e, t, r, n) {
5738
+ function Jd(e, t, r, n) {
5728
5739
  var o = e.locale, i = e.onError, a = Intl.DisplayNames;
5729
- a || i(new et(`Intl.DisplayNames is not available in this environment.
5740
+ a || i(new tt(`Intl.DisplayNames is not available in this environment.
5730
5741
  Try polyfilling it using "@formatjs/intl-displaynames"
5731
5742
  `, $e.MISSING_INTL_API));
5732
- var s = Tt(n, Yd);
5743
+ var s = Tt(n, Zd);
5733
5744
  try {
5734
5745
  return t(o, s).of(r);
5735
5746
  } catch (u) {
5736
5747
  i(new Pe("Error formatting display name.", o, u));
5737
5748
  }
5738
5749
  }
5739
- var Jd = [
5750
+ var eh = [
5740
5751
  "type",
5741
5752
  "style"
5742
5753
  ], ia = Date.now();
5743
- function eh(e) {
5754
+ function th(e) {
5744
5755
  return "".concat(ia, "_").concat(e, "_").concat(ia);
5745
5756
  }
5746
- function th(e, t, r, n) {
5757
+ function rh(e, t, r, n) {
5747
5758
  n === void 0 && (n = {});
5748
5759
  var o = Tu(e, t, r, n).reduce(function(i, a) {
5749
5760
  var s = a.value;
@@ -5755,14 +5766,14 @@ function Tu(e, t, r, n) {
5755
5766
  var o = e.locale, i = e.onError;
5756
5767
  n === void 0 && (n = {});
5757
5768
  var a = Intl.ListFormat;
5758
- a || i(new et(`Intl.ListFormat is not available in this environment.
5769
+ a || i(new tt(`Intl.ListFormat is not available in this environment.
5759
5770
  Try polyfilling it using "@formatjs/intl-listformat"
5760
5771
  `, $e.MISSING_INTL_API));
5761
- var s = Tt(n, Jd);
5772
+ var s = Tt(n, eh);
5762
5773
  try {
5763
5774
  var u = {}, c = Array.from(r).map(function(l, y) {
5764
5775
  if (typeof l == "object" && l !== null) {
5765
- var v = eh(y);
5776
+ var v = th(y);
5766
5777
  return u[v] = l, v;
5767
5778
  }
5768
5779
  return String(l);
@@ -5775,13 +5786,13 @@ Try polyfilling it using "@formatjs/intl-listformat"
5775
5786
  }
5776
5787
  return r;
5777
5788
  }
5778
- var rh = ["type"];
5779
- function nh(e, t, r, n) {
5789
+ var nh = ["type"];
5790
+ function oh(e, t, r, n) {
5780
5791
  var o = e.locale, i = e.onError;
5781
- n === void 0 && (n = {}), Intl.PluralRules || i(new et(`Intl.PluralRules is not available in this environment.
5792
+ n === void 0 && (n = {}), Intl.PluralRules || i(new tt(`Intl.PluralRules is not available in this environment.
5782
5793
  Try polyfilling it using "@formatjs/intl-pluralrules"
5783
5794
  `, $e.MISSING_INTL_API));
5784
- var a = Tt(n, rh);
5795
+ var a = Tt(n, nh);
5785
5796
  try {
5786
5797
  return t(o, a).select(r);
5787
5798
  } catch (s) {
@@ -5789,27 +5800,27 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5789
5800
  }
5790
5801
  return "other";
5791
5802
  }
5792
- var oh = ["numeric", "style"];
5793
- function ih(e, t, r) {
5803
+ var ih = ["numeric", "style"];
5804
+ function ah(e, t, r) {
5794
5805
  var n = e.locale, o = e.formats, i = e.onError;
5795
5806
  r === void 0 && (r = {});
5796
- var a = r.format, s = !!a && Qo(o, "relative", a, i) || {}, u = Tt(r, oh, s);
5807
+ var a = r.format, s = !!a && Qo(o, "relative", a, i) || {}, u = Tt(r, ih, s);
5797
5808
  return t(n, u);
5798
5809
  }
5799
- function ah(e, t, r, n, o) {
5810
+ function sh(e, t, r, n, o) {
5800
5811
  o === void 0 && (o = {}), n || (n = "second");
5801
5812
  var i = Intl.RelativeTimeFormat;
5802
- i || e.onError(new et(`Intl.RelativeTimeFormat is not available in this environment.
5813
+ i || e.onError(new tt(`Intl.RelativeTimeFormat is not available in this environment.
5803
5814
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
5804
5815
  `, $e.MISSING_INTL_API));
5805
5816
  try {
5806
- return ih(e, t, o).format(r, n);
5817
+ return ah(e, t, o).format(r, n);
5807
5818
  } catch (a) {
5808
5819
  e.onError(new Pe("Error formatting relative time.", e.locale, a));
5809
5820
  }
5810
5821
  return String(r);
5811
5822
  }
5812
- var sh = [
5823
+ var uh = [
5813
5824
  "style",
5814
5825
  "currency",
5815
5826
  "unit",
@@ -5838,10 +5849,10 @@ var sh = [
5838
5849
  function Pu(e, t, r) {
5839
5850
  var n = e.locale, o = e.formats, i = e.onError;
5840
5851
  r === void 0 && (r = {});
5841
- var a = r.format, s = a && Qo(o, "number", a, i) || {}, u = Tt(r, sh, s);
5852
+ var a = r.format, s = a && Qo(o, "number", a, i) || {}, u = Tt(r, uh, s);
5842
5853
  return t(n, u);
5843
5854
  }
5844
- function uh(e, t, r, n) {
5855
+ function ch(e, t, r, n) {
5845
5856
  n === void 0 && (n = {});
5846
5857
  try {
5847
5858
  return Pu(e, t, n).format(r);
@@ -5850,7 +5861,7 @@ function uh(e, t, r, n) {
5850
5861
  }
5851
5862
  return String(r);
5852
5863
  }
5853
- function ch(e, t, r, n) {
5864
+ function lh(e, t, r, n) {
5854
5865
  n === void 0 && (n = {});
5855
5866
  try {
5856
5867
  return Pu(e, t, n).formatToParts(r);
@@ -5859,25 +5870,25 @@ function ch(e, t, r, n) {
5859
5870
  }
5860
5871
  return [];
5861
5872
  }
5862
- function lh(e) {
5873
+ function fh(e) {
5863
5874
  var t = e ? e[Object.keys(e)[0]] : void 0;
5864
5875
  return typeof t == "string";
5865
5876
  }
5866
- function fh(e) {
5867
- e.onWarn && e.defaultRichTextElements && lh(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
5877
+ function dh(e) {
5878
+ e.onWarn && e.defaultRichTextElements && fh(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
5868
5879
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
5869
5880
  For more details see https://formatjs.github.io/docs/getting-started/message-distribution`);
5870
5881
  }
5871
- function dh(e, t) {
5872
- var r = Vd(t), n = B(B({}, Ou), e), o = n.locale, i = n.defaultLocale, a = n.onError;
5873
- return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new Hd('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), fh(n), B(B({}, n), { formatters: r, formatNumber: uh.bind(null, n, r.getNumberFormat), formatNumberToParts: ch.bind(null, n, r.getNumberFormat), formatRelativeTime: ah.bind(null, n, r.getRelativeTimeFormat), formatDate: zd.bind(null, n, r.getDateTimeFormat), formatDateToParts: Kd.bind(null, n, r.getDateTimeFormat), formatTime: Wd.bind(null, n, r.getDateTimeFormat), formatDateTimeRange: Qd.bind(null, n, r.getDateTimeFormat), formatTimeToParts: Xd.bind(null, n, r.getDateTimeFormat), formatPlural: nh.bind(null, n, r.getPluralRules), formatMessage: Ao.bind(null, n, r), $t: Ao.bind(null, n, r), formatList: th.bind(null, n, r.getListFormat), formatListToParts: Tu.bind(null, n, r.getListFormat), formatDisplayName: Zd.bind(null, n, r.getDisplayNames) });
5882
+ function hh(e, t) {
5883
+ var r = Gd(t), n = B(B({}, Ou), e), o = n.locale, i = n.defaultLocale, a = n.onError;
5884
+ return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new kd('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), dh(n), B(B({}, n), { formatters: r, formatNumber: ch.bind(null, n, r.getNumberFormat), formatNumberToParts: lh.bind(null, n, r.getNumberFormat), formatRelativeTime: sh.bind(null, n, r.getRelativeTimeFormat), formatDate: Wd.bind(null, n, r.getDateTimeFormat), formatDateToParts: Xd.bind(null, n, r.getDateTimeFormat), formatTime: Qd.bind(null, n, r.getDateTimeFormat), formatDateTimeRange: Kd.bind(null, n, r.getDateTimeFormat), formatTimeToParts: Yd.bind(null, n, r.getDateTimeFormat), formatPlural: oh.bind(null, n, r.getPluralRules), formatMessage: Ao.bind(null, n, r), $t: Ao.bind(null, n, r), formatList: rh.bind(null, n, r.getListFormat), formatListToParts: Tu.bind(null, n, r.getListFormat), formatDisplayName: Jd.bind(null, n, r.getDisplayNames) });
5874
5885
  }
5875
- function hh(e, t, r) {
5886
+ function ph(e, t, r) {
5876
5887
  if (r === void 0 && (r = Error), !e)
5877
5888
  throw new r(t);
5878
5889
  }
5879
5890
  function Ru(e) {
5880
- hh(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
5891
+ ph(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
5881
5892
  }
5882
5893
  var Nu = B(B({}, Ou), { textComponent: fe.Fragment }), Iu = function(e) {
5883
5894
  var t = fe.Children.toArray(e);
@@ -5885,7 +5896,7 @@ var Nu = B(B({}, Ou), { textComponent: fe.Fragment }), Iu = function(e) {
5885
5896
  return fe.isValidElement(r) ? fe.createElement(fe.Fragment, { key: n }, r) : r;
5886
5897
  });
5887
5898
  };
5888
- function ph(e) {
5899
+ function yh(e) {
5889
5900
  return function(t) {
5890
5901
  return e(Iu(t));
5891
5902
  };
@@ -5907,7 +5918,7 @@ function To(e, t) {
5907
5918
  }
5908
5919
  var gr = { exports: {} }, re = {};
5909
5920
  var aa;
5910
- function yh() {
5921
+ function mh() {
5911
5922
  if (aa) return re;
5912
5923
  aa = 1;
5913
5924
  var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
@@ -5974,7 +5985,7 @@ function yh() {
5974
5985
  }
5975
5986
  var ne = {};
5976
5987
  var sa;
5977
- function mh() {
5988
+ function gh() {
5978
5989
  return sa || (sa = 1, process.env.NODE_ENV !== "production" && (function() {
5979
5990
  var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
5980
5991
  function m(D) {
@@ -6057,14 +6068,14 @@ function mh() {
6057
6068
  })()), ne;
6058
6069
  }
6059
6070
  var ua;
6060
- function gh() {
6061
- return ua || (ua = 1, process.env.NODE_ENV === "production" ? gr.exports = yh() : gr.exports = mh()), gr.exports;
6071
+ function vh() {
6072
+ return ua || (ua = 1, process.env.NODE_ENV === "production" ? gr.exports = mh() : gr.exports = gh()), gr.exports;
6062
6073
  }
6063
6074
  var pn, ca;
6064
- function vh() {
6075
+ function bh() {
6065
6076
  if (ca) return pn;
6066
6077
  ca = 1;
6067
- var e = gh(), t = {
6078
+ var e = vh(), t = {
6068
6079
  childContextTypes: !0,
6069
6080
  contextType: !0,
6070
6081
  contextTypes: !0,
@@ -6126,12 +6137,12 @@ function vh() {
6126
6137
  }
6127
6138
  return pn = h, pn;
6128
6139
  }
6129
- vh();
6140
+ bh();
6130
6141
  var Ko = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = fe.createContext(null)) : fe.createContext(null);
6131
6142
  Ko.Consumer;
6132
- var bh = Ko.Provider, Eh = bh, Sh = Ko;
6143
+ var Eh = Ko.Provider, Sh = Eh, wh = Ko;
6133
6144
  function kr() {
6134
- var e = fe.useContext(Sh);
6145
+ var e = fe.useContext(wh);
6135
6146
  return Ru(e), e;
6136
6147
  }
6137
6148
  var Po;
@@ -6165,7 +6176,7 @@ function tr(e) {
6165
6176
  function Mu(e) {
6166
6177
  return e && Object.keys(e).reduce(function(t, r) {
6167
6178
  var n = e[r];
6168
- return t[r] = wu(n) ? ph(n) : n, t;
6179
+ return t[r] = wu(n) ? yh(n) : n, t;
6169
6180
  }, {});
6170
6181
  }
6171
6182
  var la = function(e, t, r, n) {
@@ -6179,7 +6190,7 @@ var la = function(e, t, r, n) {
6179
6190
  ], o, !1));
6180
6191
  return Array.isArray(s) ? Iu(s) : s;
6181
6192
  }, fa = function(e, t) {
6182
- var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = Mu(r), i = dh(B(B(B({}, Nu), n), { defaultRichTextElements: o }), t), a = {
6193
+ var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = Mu(r), i = hh(B(B(B({}, Nu), n), { defaultRichTextElements: o }), t), a = {
6183
6194
  locale: i.locale,
6184
6195
  timeZone: i.timeZone,
6185
6196
  fallbackOnEmptyString: i.fallbackOnEmptyString,
@@ -6192,7 +6203,7 @@ var la = function(e, t, r, n) {
6192
6203
  };
6193
6204
  return B(B({}, i), { formatMessage: la.bind(null, a, i.formatters), $t: la.bind(null, a, i.formatters) });
6194
6205
  };
6195
- function wh(e, t) {
6206
+ function _h(e, t) {
6196
6207
  var r = e.values, n = Et(e, ["values"]), o = t.values, i = Et(t, ["values"]);
6197
6208
  return To(o, r) && To(n, i);
6198
6209
  }
@@ -6203,7 +6214,7 @@ function Du(e) {
6203
6214
  return typeof c == "function" ? c(Array.isArray(p) ? p : [p]) : y ? fe.createElement(y, null, p) : fe.createElement(fe.Fragment, null, p);
6204
6215
  }
6205
6216
  Du.displayName = "FormattedMessage";
6206
- var xu = fe.memo(Du, wh);
6217
+ var xu = fe.memo(Du, _h);
6207
6218
  xu.displayName = "MemoizedFormattedMessage";
6208
6219
  function yn(e) {
6209
6220
  return {
@@ -6221,7 +6232,7 @@ function yn(e) {
6221
6232
  defaultRichTextElements: e.defaultRichTextElements
6222
6233
  };
6223
6234
  }
6224
- var _h = (
6235
+ var Oh = (
6225
6236
  /** @class */
6226
6237
  (function(e) {
6227
6238
  Te(t, e);
@@ -6240,7 +6251,7 @@ var _h = (
6240
6251
  prevConfig: a
6241
6252
  };
6242
6253
  }, t.prototype.render = function() {
6243
- return Ru(this.state.intl), fe.createElement(Eh, { value: this.state.intl }, this.props.children);
6254
+ return Ru(this.state.intl), fe.createElement(Sh, { value: this.state.intl }, this.props.children);
6244
6255
  }, t.displayName = "IntlProvider", t.defaultProps = Nu, t;
6245
6256
  })(fe.PureComponent)
6246
6257
  );
@@ -6260,10 +6271,10 @@ function Lu(e, t) {
6260
6271
  ke[r] = t[r];
6261
6272
  ke[gt] = e;
6262
6273
  }
6263
- function Oh(e) {
6274
+ function Ah(e) {
6264
6275
  return /* @__PURE__ */ he(xu, { id: e, defaultMessage: e });
6265
6276
  }
6266
- function Ah(e) {
6277
+ function Th(e) {
6267
6278
  return e;
6268
6279
  }
6269
6280
  function wt(e) {
@@ -6298,8 +6309,8 @@ const pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6298
6309
  getLangInfo: wt,
6299
6310
  isValidLocale: $u,
6300
6311
  setDefaultTranslation: Lu,
6301
- t: Oh,
6302
- tt: Ah
6312
+ t: Ah,
6313
+ tt: Th
6303
6314
  }, Symbol.toStringTag, { value: "Module" }));
6304
6315
  function Uu(e) {
6305
6316
  var t, r, n = "";
@@ -6310,13 +6321,13 @@ function Uu(e) {
6310
6321
  } else for (r in e) e[r] && (n && (n += " "), n += r);
6311
6322
  return n;
6312
6323
  }
6313
- function Th() {
6324
+ function Ph() {
6314
6325
  for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Uu(e)) && (n && (n += " "), n += t);
6315
6326
  return n;
6316
6327
  }
6317
- const Ph = "_overlay_1ol4o_1", Rh = "_dummy_1ol4o_7", da = {
6318
- overlay: Ph,
6319
- dummy: Rh
6328
+ const Rh = "_overlay_1ol4o_1", Nh = "_dummy_1ol4o_7", da = {
6329
+ overlay: Rh,
6330
+ dummy: Nh
6320
6331
  }, Ge = Ms(function({
6321
6332
  showChildren: e = !0,
6322
6333
  useTranslation: t = !0,
@@ -6326,10 +6337,10 @@ const Ph = "_overlay_1ol4o_1", Rh = "_dummy_1ol4o_7", da = {
6326
6337
  children: i
6327
6338
  }) {
6328
6339
  const a = n ? n.spinning : !o.spinning;
6329
- return a ? t ? /* @__PURE__ */ he(Nh, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : /* @__PURE__ */ he(ju, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : i;
6340
+ return a ? t ? /* @__PURE__ */ he(Ih, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : /* @__PURE__ */ he(ju, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : i;
6330
6341
  });
6331
6342
  Ge.displayName = "Wait";
6332
- function Nh({ className: e, spin: t, skeleton: r, children: n }) {
6343
+ function Ih({ className: e, spin: t, skeleton: r, children: n }) {
6333
6344
  const o = kr();
6334
6345
  if (t && t.spinning) {
6335
6346
  if (t.tip && typeof t.tip != "string") throw new Error("Only string is allowed when using translation");
@@ -6343,7 +6354,7 @@ function ju({ className: e, skeleton: t, spin: r, children: n }) {
6343
6354
  const i = Ge;
6344
6355
  if (i.spin) {
6345
6356
  const a = i.spin, { extraProps: s, ...u } = r ?? {};
6346
- return /* @__PURE__ */ he(a, { className: Th(da.overlay, e), ...u, extraProps: s ?? i.spinProps, children: n ?? /* @__PURE__ */ he("div", { className: da.dummy, children: " " }) });
6357
+ return /* @__PURE__ */ he(a, { className: Ph(da.overlay, e), ...u, extraProps: s ?? i.spinProps, children: n ?? /* @__PURE__ */ he("div", { className: da.dummy, children: " " }) });
6347
6358
  }
6348
6359
  if (i.skeleton) {
6349
6360
  const a = i.skeleton, { extraProps: s, ...u } = t ?? {};
@@ -6352,10 +6363,10 @@ function ju({ className: e, skeleton: t, spin: r, children: n }) {
6352
6363
  throw new Error("Wait component must have either spin or skeleton defined");
6353
6364
  }, [e, n, t, r]);
6354
6365
  }
6355
- const { setIdentity: Ih } = At.actions;
6356
- function Ch({ className: e, service: t, children: r }) {
6357
- const n = xr(), o = cl(!1), i = xe((u) => !ft(u).auth.seed), a = je(() => ({ spinning: i, tip: "spin.auth" }), [i]), s = Ds(
6358
- (u, c) => n(Ih({ reason: u, identity: c })),
6366
+ const { setIdentity: Ch } = At.actions;
6367
+ function Mh({ className: e, service: t, children: r }) {
6368
+ const n = xr(), o = cl(!1), i = xe((u) => !et(u).auth.seed), a = je(() => ({ spinning: i, tip: "spin.auth" }), [i]), s = Ds(
6369
+ (u, c) => n(Ch({ reason: u, identity: c })),
6359
6370
  [n]
6360
6371
  );
6361
6372
  return zt(() => {
@@ -6395,7 +6406,7 @@ let jr = class extends qu {
6395
6406
  }
6396
6407
  };
6397
6408
  const Vu = new Xo("__null__", null), No = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
6398
- function Mh(e, t) {
6409
+ function Dh(e, t) {
6399
6410
  return t instanceof Ur && t.operator === e;
6400
6411
  }
6401
6412
  function Gu(e, t) {
@@ -6403,19 +6414,19 @@ function Gu(e, t) {
6403
6414
  const a = i || [];
6404
6415
  for (let s = 0, u = o.length; s < u; s++) {
6405
6416
  const c = o[s];
6406
- Mh(n, c) ? r(n, c.value, a) : a.push(c);
6417
+ Dh(n, c) ? r(n, c.value, a) : a.push(c);
6407
6418
  }
6408
6419
  return a;
6409
6420
  })(e, t));
6410
6421
  }
6411
- const Dh = (e) => e, zu = () => /* @__PURE__ */ Object.create(null), Wu = Object.defineProperty(zu(), "__@type@__", { value: "ignore value" });
6412
- function xh(e, t, r = !1) {
6422
+ const xh = (e) => e, zu = () => /* @__PURE__ */ Object.create(null), Wu = Object.defineProperty(zu(), "__@type@__", { value: "ignore value" });
6423
+ function Fh(e, t, r = !1) {
6413
6424
  if (!e || e && e.constructor !== Object) return !1;
6414
6425
  for (const n in e)
6415
6426
  if (No(e, n) && No(t, n) && (!r || e[n] !== Wu)) return !0;
6416
6427
  return !1;
6417
6428
  }
6418
- function Fh(e) {
6429
+ function $h(e) {
6419
6430
  const t = [];
6420
6431
  for (const r in e) No(e, r) && e[r] !== Wu && t.push(r);
6421
6432
  return t;
@@ -6427,9 +6438,9 @@ const Qu = (e) => Gu("and", e), Ku = { compound(e, t, r) {
6427
6438
  const n = (Array.isArray(t) ? t : [t]).map((o) => r.parse(o));
6428
6439
  return new Ur(e.name, n);
6429
6440
  }, field: (e, t, r) => new jr(e.name, r.field, t), document: (e, t) => new Xo(e.name, t) };
6430
- let $h = class {
6441
+ let Lh = class {
6431
6442
  constructor(t, r = zu()) {
6432
- this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName || Dh, defaultOperatorName: r.defaultOperatorName || "eq", mergeFinalConditions: r.mergeFinalConditions || Qu }, this.o = Object.keys(t).reduce((n, o) => (n[o] = Object.assign({ name: this.u.operatorToConditionName(o) }, t[o]), n), {}), this.s = Object.assign({}, r.fieldContext, { field: "", query: {}, parse: this.parse, hasOperators: (n) => xh(n, this.o, r.useIgnoreValue) }), this.i = Object.assign({}, r.documentContext, { parse: this.parse, query: {} }), this.h = r.useIgnoreValue ? Fh : Object.keys;
6443
+ this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName || xh, defaultOperatorName: r.defaultOperatorName || "eq", mergeFinalConditions: r.mergeFinalConditions || Qu }, this.o = Object.keys(t).reduce((n, o) => (n[o] = Object.assign({ name: this.u.operatorToConditionName(o) }, t[o]), n), {}), this.s = Object.assign({}, r.fieldContext, { field: "", query: {}, parse: this.parse, hasOperators: (n) => Fh(n, this.o, r.useIgnoreValue) }), this.i = Object.assign({}, r.documentContext, { parse: this.parse, query: {} }), this.h = r.useIgnoreValue ? $h : Object.keys;
6433
6444
  }
6434
6445
  setParse(t) {
6435
6446
  this.parse = t, this.s.parse = t, this.i.parse = t;
@@ -6470,11 +6481,11 @@ function gn(e, t) {
6470
6481
  if (typeof r != "function") throw new Error(`Unable to interpret "${t}" condition. Did you forget to register interpreter for it?`);
6471
6482
  return r;
6472
6483
  }
6473
- function Lh(e) {
6484
+ function Bh(e) {
6474
6485
  return e.operator;
6475
6486
  }
6476
- function Bh(e, t) {
6477
- const r = t, n = r && r.getInterpreterName || Lh;
6487
+ function Hh(e, t) {
6488
+ const r = t, n = r && r.getInterpreterName || Bh;
6478
6489
  let o;
6479
6490
  switch (r ? r.numberOfArguments : 0) {
6480
6491
  case 1:
@@ -6498,7 +6509,7 @@ function Bh(e, t) {
6498
6509
  const i = Object.assign({}, r, { interpret: o });
6499
6510
  return i.interpret;
6500
6511
  }
6501
- function Hh(e, t) {
6512
+ function kh(e, t) {
6502
6513
  return (r, ...n) => {
6503
6514
  const o = e(r, ...n), i = t.bind(null, o);
6504
6515
  return i.ast = o, i;
@@ -6515,7 +6526,7 @@ const Yo = (e) => (t, r) => {
6515
6526
  }, Zu = { type: "compound", validate: Yu, parse(e, t, { parse: r }) {
6516
6527
  const n = t.map((o) => r(o));
6517
6528
  return Gu(e.name, n);
6518
- } }, kh = Zu, Uh = { type: "compound", validate: Yu }, jh = { type: "field", validate(e, t) {
6529
+ } }, Uh = Zu, jh = { type: "compound", validate: Yu }, qh = { type: "field", validate(e, t) {
6519
6530
  if (!(t && (t instanceof RegExp || t.constructor === Object))) throw new Error(`"${e.name}" expects to receive either regular expression or object of field operators`);
6520
6531
  }, parse(e, t, r) {
6521
6532
  const n = t instanceof RegExp ? new jr("regex", r.field, t) : r.parse(t, r);
@@ -6525,7 +6536,7 @@ const Yo = (e) => (t, r) => {
6525
6536
  }, parse(e, t, { parse: r, field: n, hasOperators: o }) {
6526
6537
  const i = o(t) ? r(t, { field: rr }) : r(t);
6527
6538
  return new jr(e.name, n, i);
6528
- } }, ec = { type: "field", validate: Yo("number") }, qr = { type: "field", validate: Xu }, tc = qr, rc = qr, qh = { type: "field", validate(e, t) {
6539
+ } }, ec = { type: "field", validate: Yo("number") }, qr = { type: "field", validate: Xu }, tc = qr, rc = qr, Vh = { type: "field", validate(e, t) {
6529
6540
  if (!Array.isArray(t) || t.length !== 2) throw new Error(`"${e.name}" expects an array with 2 numeric elements`);
6530
6541
  } }, nc = { type: "field", validate: Yo("boolean") }, Zo = { type: "field", validate: function(e, t) {
6531
6542
  if (!(typeof t == "string" || typeof t == "number" || t instanceof Date)) throw new Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`);
@@ -6534,9 +6545,9 @@ const Yo = (e) => (t, r) => {
6534
6545
  }, parse(e, t, r) {
6535
6546
  const n = typeof t == "string" ? new RegExp(t, r.query.$options || "") : t;
6536
6547
  return new jr(e.name, r.field, n);
6537
- } }, uc = { type: "field", parse: () => Vu }, Vh = { type: "document", validate: Yo("function") };
6538
- var Gh = Object.freeze({ __proto__: null, $and: Zu, $or: kh, $nor: Uh, $not: jh, $elemMatch: Ju, $size: ec, $in: qr, $nin: tc, $all: rc, $mod: qh, $exists: nc, $gte: Zo, $gt: Vr, $lt: oc, $lte: ic, $eq: Jo, $ne: ac, $regex: sc, $options: uc, $where: Vh });
6539
- class zh extends $h {
6548
+ } }, uc = { type: "field", parse: () => Vu }, Gh = { type: "document", validate: Yo("function") };
6549
+ var zh = Object.freeze({ __proto__: null, $and: Zu, $or: Uh, $nor: jh, $not: qh, $elemMatch: Ju, $size: ec, $in: qr, $nin: tc, $all: rc, $mod: Vh, $exists: nc, $gte: Zo, $gt: Vr, $lt: oc, $lte: ic, $eq: Jo, $ne: ac, $regex: sc, $options: uc, $where: Gh });
6550
+ class Wh extends Lh {
6540
6551
  constructor(t) {
6541
6552
  super(t, { defaultOperatorName: "$eq", operatorToConditionName: (r) => r.slice(1) });
6542
6553
  }
@@ -6544,7 +6555,7 @@ class zh extends $h {
6544
6555
  return r && r.field ? Qu(this.parseFieldOperators(r.field, t)) : super.parse(t);
6545
6556
  }
6546
6557
  }
6547
- const Io = Gh;
6558
+ const Io = zh;
6548
6559
  function ei(e, t, r) {
6549
6560
  for (let n = 0, o = e.length; n < o; n++) if (r(e[n], t) === 0) return !0;
6550
6561
  return !1;
@@ -6567,12 +6578,12 @@ function dt(e) {
6567
6578
  return Array.isArray(o) ? o.some((i) => e(t, i, n)) : e(t, o, n);
6568
6579
  };
6569
6580
  }
6570
- const Wh = (e, t) => e[t];
6581
+ const Qh = (e, t) => e[t];
6571
6582
  function cc(e, t, r) {
6572
6583
  const n = t.lastIndexOf(".");
6573
6584
  return n === -1 ? [e, t] : [r(e, t.slice(0, n)), t.slice(n + 1)];
6574
6585
  }
6575
- function Qh(e, t, r = Wh) {
6586
+ function Kh(e, t, r = Qh) {
6576
6587
  if (t === rr) return e;
6577
6588
  if (!e) throw new Error(`Unable to get field "${t}" out of ${String(e)}.`);
6578
6589
  return (function(n, o, i) {
@@ -6587,9 +6598,9 @@ function lc(e, t) {
6587
6598
  return e === t ? 0 : e > t ? 1 : -1;
6588
6599
  }
6589
6600
  function fc(e, t = {}) {
6590
- return Bh(e, Object.assign({ get: Qh, compare: lc }, t));
6601
+ return Hh(e, Object.assign({ get: Kh, compare: lc }, t));
6591
6602
  }
6592
- const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t, r) => !dc(e, t, r), hc = (e, t, { interpret: r }) => e.value.every((n) => r(n, t)), Xh = (e, t, { interpret: r }) => !r(e.value[0], t), ri = (e, t, { compare: r, get: n }) => {
6603
+ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Xh = (e, t, r) => !dc(e, t, r), hc = (e, t, { interpret: r }) => e.value.every((n) => r(n, t)), Yh = (e, t, { interpret: r }) => !r(e.value[0], t), ri = (e, t, { compare: r, get: n }) => {
6593
6604
  const o = n(t, e.field);
6594
6605
  return Array.isArray(o) && !Array.isArray(e.value) ? ei(o, e.value, r) : r(o, e.value) === 0;
6595
6606
  }, pc = (e, t, r) => !ri(e, t, r), yc = dt((e, t, r) => {
@@ -6602,7 +6613,7 @@ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t,
6602
6613
  if (e.field === rr) return t !== void 0;
6603
6614
  const [n, o] = cc(t, e.field, r), i = (a) => a == null ? !!a === e.value : a.hasOwnProperty(o) === e.value;
6604
6615
  return ti(n, o) ? n.some(i) : i(n);
6605
- }, Yh = dt((e, t) => typeof t == "number" && t % e.value[0] === e.value[1]), Ec = (e, t, { get: r }) => {
6616
+ }, Zh = dt((e, t) => typeof t == "number" && t % e.value[0] === e.value[1]), Ec = (e, t, { get: r }) => {
6606
6617
  const [n, o] = cc(t, e.field, r), i = (a) => {
6607
6618
  const s = r(a, o);
6608
6619
  return Array.isArray(s) && s.length === e.value;
@@ -6614,34 +6625,34 @@ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t,
6614
6625
  }, Oc = (e, t, { interpret: r, get: n }) => {
6615
6626
  const o = n(t, e.field);
6616
6627
  return Array.isArray(o) && o.some((i) => r(e.value, i));
6617
- }, Zh = (e, t) => e.value.call(t);
6618
- var Jh = Object.freeze({ __proto__: null, or: dc, nor: Kh, and: hc, not: Xh, eq: ri, ne: pc, lte: yc, lt: mc, gt: gc, gte: vc, exists: bc, mod: Yh, size: Ec, regex: Sc, within: Gr, nin: wc, all: _c, elemMatch: Oc, where: Zh });
6619
- const ni = Object.assign({}, Jh, { in: Gr });
6628
+ }, Jh = (e, t) => e.value.call(t);
6629
+ var ep = Object.freeze({ __proto__: null, or: dc, nor: Xh, and: hc, not: Yh, eq: ri, ne: pc, lte: yc, lt: mc, gt: gc, gte: vc, exists: bc, mod: Zh, size: Ec, regex: Sc, within: Gr, nin: wc, all: _c, elemMatch: Oc, where: Jh });
6630
+ const ni = Object.assign({}, ep, { in: Gr });
6620
6631
  fc(ni);
6621
6632
  function pa(e) {
6622
6633
  return e === null || typeof e != "object" ? e : e instanceof Date ? e.getTime() : e && typeof e.toJSON == "function" ? e.toJSON() : e;
6623
6634
  }
6624
- const ep = (e, t) => lc(pa(e), pa(t));
6635
+ const tp = (e, t) => lc(pa(e), pa(t));
6625
6636
  function oi(e, t, r) {
6626
- const n = new zh(e), o = fc(t, Object.assign({ compare: ep }, r));
6637
+ const n = new Wh(e), o = fc(t, Object.assign({ compare: tp }, r));
6627
6638
  if (r && r.forPrimitives) {
6628
6639
  const i = { field: rr }, a = n.parse;
6629
6640
  n.setParse((s) => a(s, i));
6630
6641
  }
6631
- return Hh(n.parse, o);
6642
+ return kh(n.parse, o);
6632
6643
  }
6633
6644
  oi(Io, ni);
6634
6645
  oi(["$and", "$or"].reduce((e, t) => (e[t] = Object.assign({}, e[t], { type: "field" }), e), Object.assign({}, Io, { $nor: Object.assign({}, Io.$nor, { type: "field", parse: Ku.compound }) })), ni, { forPrimitives: !0 });
6635
- const tp = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
6646
+ const rp = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
6636
6647
  function Co(e) {
6637
6648
  return Array.isArray(e) ? e : [e];
6638
6649
  }
6639
6650
  const ya = "__caslSubjectType__", Or = (e) => {
6640
6651
  const t = typeof e;
6641
6652
  return t === "string" || t === "function";
6642
- }, rp = (e) => e.modelName || e.name;
6653
+ }, np = (e) => e.modelName || e.name;
6643
6654
  function Ac(e) {
6644
- return tp(e, ya) ? e[ya] : rp(e.constructor);
6655
+ return rp(e, ya) ? e[ya] : np(e.constructor);
6645
6656
  }
6646
6657
  const ma = { function: (e) => e.constructor, string: Ac };
6647
6658
  function ga(e, t, r) {
@@ -6659,15 +6670,15 @@ function vr(e, t, r) {
6659
6670
  let n = e.get(t);
6660
6671
  return n || (n = r(), e.set(t, n)), n;
6661
6672
  }
6662
- const np = (e) => e;
6663
- function op(e, t) {
6673
+ const op = (e) => e;
6674
+ function ip(e, t) {
6664
6675
  if (Array.isArray(e.fields) && !e.fields.length) throw new Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");
6665
6676
  if (e.fields && !t.fieldMatcher) throw new Error('You need to pass "fieldMatcher" option in order to restrict access by fields');
6666
6677
  if (e.conditions && !t.conditionsMatcher) throw new Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions');
6667
6678
  }
6668
- class ip {
6679
+ class ap {
6669
6680
  constructor(t, r, n = 0) {
6670
- op(t, r), this.action = r.resolveAction(t.action), this.subject = t.subject, this.inverted = !!t.inverted, this.conditions = t.conditions, this.reason = t.reason, this.origin = t, this.fields = t.fields ? Co(t.fields) : void 0, this.priority = n, this.t = r;
6681
+ ip(t, r), this.action = r.resolveAction(t.action), this.subject = t.subject, this.inverted = !!t.inverted, this.conditions = t.conditions, this.reason = t.reason, this.origin = t, this.fields = t.fields ? Co(t.fields) : void 0, this.priority = n, this.t = r;
6671
6682
  }
6672
6683
  i() {
6673
6684
  return this.conditions && !this.o && (this.o = this.t.conditionsMatcher(this.conditions)), this.o;
@@ -6683,17 +6694,17 @@ class ip {
6683
6694
  return this.fields ? t ? (this.u || (this.u = this.t.fieldMatcher(this.fields)), this.u(t)) : !this.inverted : !0;
6684
6695
  }
6685
6696
  }
6686
- function ap(e, t) {
6697
+ function sp(e, t) {
6687
6698
  const r = { value: e, prev: t, next: null };
6688
6699
  return t && (t.next = r), r;
6689
6700
  }
6690
- function sp(e) {
6701
+ function up(e) {
6691
6702
  e.next && (e.next.prev = e.prev), e.prev && (e.prev.next = e.next), e.next = e.prev = null;
6692
6703
  }
6693
- const up = (e) => ({ value: e.value, prev: e.prev, next: e.next }), ba = () => ({ rules: [], merged: !1 }), Ea = () => /* @__PURE__ */ new Map();
6694
- class cp {
6704
+ const cp = (e) => ({ value: e.value, prev: e.prev, next: e.next }), ba = () => ({ rules: [], merged: !1 }), Ea = () => /* @__PURE__ */ new Map();
6705
+ class lp {
6695
6706
  constructor(t = [], r = {}) {
6696
- this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction || np }, this.$ = r.anyAction || "manage", this.A = r.anySubjectType || "all", this.m = t, this.M = !!r.detectSubjectType, this.j = r.detectSubjectType || Ac, this.v(t);
6707
+ this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction || op }, this.$ = r.anyAction || "manage", this.A = r.anySubjectType || "all", this.m = t, this.M = !!r.detectSubjectType, this.j = r.detectSubjectType || Ac, this.v(t);
6697
6708
  }
6698
6709
  get rules() {
6699
6710
  return this.m;
@@ -6709,7 +6720,7 @@ class cp {
6709
6720
  const r = /* @__PURE__ */ new Map();
6710
6721
  let n;
6711
6722
  for (let o = t.length - 1; o >= 0; o--) {
6712
- const i = t.length - o - 1, a = new ip(t[o], this.p, i), s = Co(a.action), u = Co(a.subject || this.A);
6723
+ const i = t.length - o - 1, a = new ap(t[o], this.p, i), s = Co(a.action), u = Co(a.subject || this.A);
6713
6724
  !this.h && a.fields && (this.h = !0);
6714
6725
  for (let c = 0; c < u.length; c++) {
6715
6726
  const l = vr(r, u[c], Ea);
@@ -6744,22 +6755,22 @@ class cp {
6744
6755
  }
6745
6756
  on(t, r) {
6746
6757
  this.F = this.F || /* @__PURE__ */ new Map();
6747
- const n = this.F, o = n.get(t) || null, i = ap(r, o);
6758
+ const n = this.F, o = n.get(t) || null, i = sp(r, o);
6748
6759
  return n.set(t, i), () => {
6749
6760
  const a = n.get(t);
6750
- !i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev), sp(i);
6761
+ !i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev), up(i);
6751
6762
  };
6752
6763
  }
6753
6764
  _(t, r) {
6754
6765
  if (!this.F) return;
6755
6766
  let n = this.F.get(t) || null;
6756
6767
  for (; n !== null; ) {
6757
- const o = n.prev ? up(n.prev) : null;
6768
+ const o = n.prev ? cp(n.prev) : null;
6758
6769
  n.value(r), n = o;
6759
6770
  }
6760
6771
  }
6761
6772
  }
6762
- class lp extends cp {
6773
+ class fp extends lp {
6763
6774
  can(t, r, n) {
6764
6775
  const o = this.relevantRuleFor(t, r, n);
6765
6776
  return !!o && !o.inverted;
@@ -6773,29 +6784,29 @@ class lp extends cp {
6773
6784
  return !this.can(t, r, n);
6774
6785
  }
6775
6786
  }
6776
- const fp = { $eq: Jo, $ne: ac, $lt: oc, $lte: ic, $gt: Vr, $gte: Zo, $in: qr, $nin: tc, $all: rc, $size: ec, $regex: sc, $options: uc, $elemMatch: Ju, $exists: nc }, dp = { eq: ri, ne: pc, lt: mc, lte: yc, gt: gc, gte: vc, in: Gr, nin: wc, all: _c, size: Ec, regex: Sc, elemMatch: Oc, exists: bc, and: hc }, hp = oi(fp, dp), pp = /[-/\\^$+?.()|[\]{}]/g, yp = /\.?\*+\.?/g, mp = /\*+/, gp = /\./g;
6777
- function vp(e, t, r) {
6778
- const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(gp, "\\$&").replace(mp, o + n);
6787
+ const dp = { $eq: Jo, $ne: ac, $lt: oc, $lte: ic, $gt: Vr, $gte: Zo, $in: qr, $nin: tc, $all: rc, $size: ec, $regex: sc, $options: uc, $elemMatch: Ju, $exists: nc }, hp = { eq: ri, ne: pc, lt: mc, lte: yc, gt: gc, gte: vc, in: Gr, nin: wc, all: _c, size: Ec, regex: Sc, elemMatch: Oc, exists: bc, and: hc }, pp = oi(dp, hp), yp = /[-/\\^$+?.()|[\]{}]/g, mp = /\.?\*+\.?/g, gp = /\*+/, vp = /\./g;
6788
+ function bp(e, t, r) {
6789
+ const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(vp, "\\$&").replace(gp, o + n);
6779
6790
  return t + e.length === r.length ? `(?:${i})?` : i;
6780
6791
  }
6781
- function bp(e, t, r) {
6792
+ function Ep(e, t, r) {
6782
6793
  return e === "." && (r[t - 1] === "*" || r[t + 1] === "*") ? e : `\\${e}`;
6783
6794
  }
6784
- function Ep(e) {
6785
- const t = e.map((n) => n.replace(pp, bp).replace(yp, vp)), r = t.length > 1 ? `(?:${t.join("|")})` : t[0];
6795
+ function Sp(e) {
6796
+ const t = e.map((n) => n.replace(yp, Ep).replace(mp, bp)), r = t.length > 1 ? `(?:${t.join("|")})` : t[0];
6786
6797
  return new RegExp(`^${r}$`);
6787
6798
  }
6788
- const Sp = (e) => {
6799
+ const wp = (e) => {
6789
6800
  let t;
6790
- return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null : Ep(e)), t === null ? e.indexOf(r) !== -1 : t.test(r));
6801
+ return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null : Sp(e)), t === null ? e.indexOf(r) !== -1 : t.test(r));
6791
6802
  };
6792
6803
  function Tc(e = [], t = {}) {
6793
- return new lp(e, Object.assign({ conditionsMatcher: hp, fieldMatcher: Sp }, t));
6804
+ return new fp(e, Object.assign({ conditionsMatcher: pp, fieldMatcher: wp }, t));
6794
6805
  }
6795
- function wp(e) {
6806
+ function _p(e) {
6796
6807
  return e.prototype !== void 0 && typeof e.prototype.possibleRulesFor == "function";
6797
6808
  }
6798
- class _p {
6809
+ class Op {
6799
6810
  constructor(t) {
6800
6811
  this.O = t;
6801
6812
  }
@@ -6805,25 +6816,25 @@ class _p {
6805
6816
  }
6806
6817
  class Pc {
6807
6818
  constructor(t) {
6808
- this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) => wp(this.C) ? new this.C(this.rules, r) : this.C(this.rules, r);
6819
+ this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) => _p(this.C) ? new this.C(this.rules, r) : this.C(this.rules, r);
6809
6820
  }
6810
6821
  R(t, r, n, o, i) {
6811
6822
  const a = { action: t };
6812
- return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new _p(a);
6823
+ return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new Op(a);
6813
6824
  }
6814
6825
  }
6815
- function Op(e) {
6826
+ function Ap(e) {
6816
6827
  return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
6817
6828
  }
6818
- function Ap(e) {
6829
+ function Tp(e) {
6819
6830
  return e;
6820
6831
  }
6821
- function Tp(e, t) {
6832
+ function Pp(e, t) {
6822
6833
  t = t || {};
6823
- const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey || Ap, i = {};
6834
+ const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey || Tp, i = {};
6824
6835
  function a(s, u, c) {
6825
6836
  c = c || 1, Object.keys(s).forEach(function(l) {
6826
- const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p = Op(y), S = h === "[object Object]" || h === "[object Array]", d = u ? u + r + o(l) : o(l);
6837
+ const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p = Ap(y), S = h === "[object Object]" || h === "[object Array]", d = u ? u + r + o(l) : o(l);
6827
6838
  if (!v && !p && S && Object.keys(y).length && (!t.maxDepth || c < n))
6828
6839
  return a(y, d, c + 1);
6829
6840
  i[d] = y;
@@ -6831,12 +6842,12 @@ function Tp(e, t) {
6831
6842
  }
6832
6843
  return a(e), i;
6833
6844
  }
6834
- const Pp = {
6845
+ const Rp = {
6835
6846
  lang: { code: "en", locale: "en-US" },
6836
6847
  data: {}
6837
6848
  }, Rc = "lang", nr = Xe({
6838
6849
  name: Rc,
6839
- initialState: Pp,
6850
+ initialState: Rp,
6840
6851
  reducers: {
6841
6852
  setLang(e, t) {
6842
6853
  const { locale: r } = t.payload;
@@ -6848,13 +6859,13 @@ const Pp = {
6848
6859
  const { files: i, messages: a } = e.data[r];
6849
6860
  if (i[n]) return;
6850
6861
  i[n] = !0;
6851
- const s = Tp(o);
6862
+ const s = Pp(o);
6852
6863
  for (const u in s)
6853
6864
  a[`${u}`] = [{ type: 0, value: s[u] }];
6854
6865
  e.lang?.locale !== r && (e.lang = wt(t.payload.locale));
6855
6866
  }
6856
6867
  }
6857
- }), Ze = (e) => e[Rc], { pushLangMessage: Rp } = nr.actions, Sa = "__global", Np = {
6868
+ }), Ze = (e) => e[Rc], { pushLangMessage: Np } = nr.actions, Sa = "__global", Ip = {
6858
6869
  en: {
6859
6870
  loading: {
6860
6871
  _: "Loading...",
@@ -6868,7 +6879,7 @@ const Pp = {
6868
6879
  }
6869
6880
  }
6870
6881
  };
6871
- function Ip({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o = Np }) {
6882
+ function Cp({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o = Ip }) {
6872
6883
  const i = xr(), { locale: a, code: s } = r, u = je(() => Go(
6873
6884
  [
6874
6885
  (h) => Ze(h).data[a]?.files[Sa],
@@ -6882,11 +6893,11 @@ function Ip({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o
6882
6893
  );
6883
6894
  return zt(() => {
6884
6895
  c || (async () => {
6885
- const h = await Bu(a, n), p = Rp({ locale: a, file: Sa, messages: h.default });
6896
+ const h = await Bu(a, n), p = Np({ locale: a, file: Sa, messages: h.default });
6886
6897
  p && i(p);
6887
6898
  })();
6888
6899
  }, [c, y, a, i, n]), /* @__PURE__ */ he(Ge, { useTranslation: !1, showChildren: !1, spin: v, className: t, children: /* @__PURE__ */ he(
6889
- _h,
6900
+ Oh,
6890
6901
  {
6891
6902
  messages: l,
6892
6903
  locale: a,
@@ -6953,7 +6964,7 @@ const wa = "Init configuration first.", Ue = {
6953
6964
  return Ue.getEndpoint(e);
6954
6965
  }
6955
6966
  };
6956
- function Cp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLoad: i }) {
6967
+ function Mp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLoad: i }) {
6957
6968
  const [a, s] = lo(!1);
6958
6969
  return zt(() => {
6959
6970
  (async () => {
@@ -6969,17 +6980,17 @@ function Cp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLo
6969
6980
  }
6970
6981
  const vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6971
6982
  __proto__: null,
6972
- ConfigLoader: Cp,
6973
- LangProvider: Ip,
6983
+ ConfigLoader: Mp,
6984
+ LangProvider: Cp,
6974
6985
  Wait: Ge
6975
6986
  }, Symbol.toStringTag, { value: "Module" }));
6976
- function Mp(e) {
6987
+ function Dp(e) {
6977
6988
  if (e) return e;
6978
6989
  const { build: t } = new Pc(Tc);
6979
6990
  return t();
6980
6991
  }
6981
- function Dp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
6982
- const o = uu(), [i, a] = lo(), [s, u] = lo(() => Mp(n)), c = xe((y) => ft(y).auth.seed);
6992
+ function xp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
6993
+ const o = uu(), [i, a] = lo(), [s, u] = lo(() => Dp(n)), c = xe((y) => et(y).auth.seed);
6983
6994
  zt(() => {
6984
6995
  if (c === i) return;
6985
6996
  const { can: y, cannot: v, build: h } = new Pc(Tc), { allowed: p, denied: S } = r(o);
@@ -7000,31 +7011,26 @@ function Dp({ className: e, children: t, getPermissionFor: r, defaultAbility: n
7000
7011
  return /* @__PURE__ */ he(Bo.Provider, { value: s, children: /* @__PURE__ */ he(Ge, { className: e, spin: l, showChildren: !1, children: t }) });
7001
7012
  }
7002
7013
  var Cc = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(Cc || {});
7003
- function xp(e) {
7004
- const r = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), n = atob(r).split("").map((i) => "%" + ("00" + i.charCodeAt(0).toString(16)).slice(-2)).join(""), o = decodeURIComponent(n);
7005
- return JSON.parse(o);
7006
- }
7007
7014
  const Fp = () => import(
7008
7015
  /* @vite-ignore */
7009
- "./index-BQa_SdMN.js"
7016
+ "./index-CEotyCD2.js"
7010
7017
  );
7011
7018
  async function $p(e, t, r) {
7012
7019
  return (await Fp()).default(e, t, r);
7013
7020
  }
7014
7021
  const bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7015
7022
  __proto__: null,
7016
- Allowed: Jf,
7023
+ Allowed: ed,
7017
7024
  AuthResultStatus: xs,
7018
7025
  AuthService: Fs,
7019
- AuthenticationProvider: Ch,
7020
- AuthorizationProvider: Dp,
7026
+ AuthenticationProvider: Mh,
7027
+ AuthorizationProvider: xp,
7021
7028
  CreateOAuthService: $p,
7022
7029
  DummyAuthService: fl,
7023
7030
  PopupPolicy: Cc,
7024
- createPermission: Yf,
7025
- decodeJwt: xp,
7026
- useAuthentication: Qf,
7027
- useAuthorization: Kf,
7031
+ createPermission: Zf,
7032
+ useAuthentication: Kf,
7033
+ useAuthorization: Xf,
7028
7034
  useIdentity: uu
7029
7035
  }, Symbol.toStringTag, { value: "Module" }));
7030
7036
  var Mc = /* @__PURE__ */ ((e) => (e[e.Info = 1] = "Info", e[e.Error = 2] = "Error", e[e.Warning = 3] = "Warning", e[e.Success = 4] = "Success", e))(Mc || {});
@@ -7079,7 +7085,7 @@ function zr() {
7079
7085
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
7080
7086
  if (ie(G, "numericSeparator") && typeof G.numericSeparator != "boolean")
7081
7087
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
7082
- var tt = G.numericSeparator;
7088
+ var rt = G.numericSeparator;
7083
7089
  if (typeof I > "u")
7084
7090
  return "undefined";
7085
7091
  if (I === null)
@@ -7092,11 +7098,11 @@ function zr() {
7092
7098
  if (I === 0)
7093
7099
  return 1 / 0 / I > 0 ? "0" : "-0";
7094
7100
  var we = String(I);
7095
- return tt ? x(I, we) : we;
7101
+ return rt ? x(I, we) : we;
7096
7102
  }
7097
7103
  if (typeof I == "bigint") {
7098
7104
  var Qe = String(I) + "n";
7099
- return tt ? x(I, Qe) : Qe;
7105
+ return rt ? x(I, Qe) : Qe;
7100
7106
  }
7101
7107
  var Zr = typeof G.depth > "u" ? 5 : G.depth;
7102
7108
  if (typeof ae > "u" && (ae = 0), ae >= Zr && Zr > 0 && typeof I == "object")
@@ -7396,8 +7402,8 @@ function zr() {
7396
7402
  var G = typeof _ == "function" ? _(R) : [], We;
7397
7403
  if (M) {
7398
7404
  We = {};
7399
- for (var tt = 0; tt < G.length; tt++)
7400
- We["$" + G[tt]] = G[tt];
7405
+ for (var rt = 0; rt < G.length; rt++)
7406
+ We["$" + G[rt]] = G[rt];
7401
7407
  }
7402
7408
  for (var we in R)
7403
7409
  ie(R, we) && (J && String(Number(we)) === we && we < R.length || M && We["$" + we] instanceof Symbol || (w.call(/[^\w$]/, we) ? ae.push(I(we, R) + ": " + I(R[we], R)) : ae.push(we + ": " + I(R[we], R))));
@@ -8641,6 +8647,7 @@ const Em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8641
8647
  __proto__: null,
8642
8648
  ErrType: Mc,
8643
8649
  buildQueryString: Sy,
8650
+ decodeJwt: Wf,
8644
8651
  format: zf,
8645
8652
  getReturnUrl: vy,
8646
8653
  getWindow: ii,
@@ -9100,8 +9107,8 @@ var Kc = class extends wy {
9100
9107
  constructor(e, t, r, n) {
9101
9108
  super(e), this.value = t, this.schemaName = r, this._bqMeta = n;
9102
9109
  }
9103
- }, nt = (e, t) => Array.isArray(e) ? e.includes(t) : !!e;
9104
- async function ot(e, t, r, n) {
9110
+ }, ot = (e, t) => Array.isArray(e) ? e.includes(t) : !!e;
9111
+ async function it(e, t, r, n) {
9105
9112
  const o = await e["~standard"].validate(t);
9106
9113
  if (o.issues)
9107
9114
  throw new Kc(o.issues, t, r, n);
@@ -9241,7 +9248,7 @@ function Uy({
9241
9248
  rawResponseSchema: te,
9242
9249
  responseSchema: Z
9243
9250
  } = $;
9244
- if (D && !nt(z, "arg") && (U = await ot(
9251
+ if (D && !ot(z, "arg") && (U = await it(
9245
9252
  D,
9246
9253
  U,
9247
9254
  "argSchema",
@@ -9273,9 +9280,9 @@ function Uy({
9273
9280
  let {
9274
9281
  data: pe
9275
9282
  } = F;
9276
- te && !nt(z, "rawResponse") && (pe = await ot(te, F.data, "rawResponseSchema", F.meta));
9283
+ te && !ot(z, "rawResponse") && (pe = await it(te, F.data, "rawResponseSchema", F.meta));
9277
9284
  let ue = await ye(pe, F.meta, U);
9278
- return Z && !nt(z, "response") && (ue = await ot(Z, ue, "responseSchema", F.meta)), {
9285
+ return Z && !ot(z, "response") && (ue = await it(Z, ue, "responseSchema", F.meta)), {
9279
9286
  ...F,
9280
9287
  data: ue
9281
9288
  };
@@ -9309,7 +9316,7 @@ function Uy({
9309
9316
  Q = D;
9310
9317
  } else
9311
9318
  Q = await V(O.originalArgs);
9312
- return k && !nt(z, "meta") && Q.meta && (Q.meta = await ot(k, Q.meta, "metaSchema", Q.meta)), L(Q.data, Ct({
9319
+ return k && !ot(z, "meta") && Q.meta && (Q.meta = await it(k, Q.meta, "metaSchema", Q.meta)), L(Q.data, Ct({
9313
9320
  fulfilledTimeStamp: Date.now(),
9314
9321
  baseQueryMeta: Q.meta
9315
9322
  }));
@@ -9326,9 +9333,9 @@ function Uy({
9326
9333
  meta: U
9327
9334
  } = X;
9328
9335
  try {
9329
- Q && !nt(z, "rawErrorResponse") && (V = await ot(Q, V, "rawErrorResponseSchema", U)), k && !nt(z, "meta") && (U = await ot(k, U, "metaSchema", U));
9336
+ Q && !ot(z, "rawErrorResponse") && (V = await it(Q, V, "rawErrorResponseSchema", U)), k && !ot(z, "meta") && (U = await it(k, U, "metaSchema", U));
9330
9337
  let F = await oe(V, U, O.originalArgs);
9331
- return q && !nt(z, "errorResponse") && (F = await ot(q, F, "errorResponseSchema", U)), M(F, Ct({
9338
+ return q && !ot(z, "errorResponse") && (F = await it(q, F, "errorResponseSchema", U)), M(F, Ct({
9332
9339
  baseQueryMeta: U
9333
9340
  }));
9334
9341
  } catch (F) {
@@ -10791,7 +10798,7 @@ const { spinUpdate: Ns } = At.actions;
10791
10798
  function rm(e, t) {
10792
10799
  const { beforeFetch: r, afterFetch: n } = t, o = nm(t);
10793
10800
  return async (i, a, s) => {
10794
- const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } = ft(l), h = xy({
10801
+ const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } = et(l), h = xy({
10795
10802
  baseUrl: ai.getEndpoint(e),
10796
10803
  prepareHeaders: async (d) => {
10797
10804
  if (d.get("Content-Type") || d.append("Content-Type", "application/json"), e !== 0) {
@@ -10880,7 +10887,7 @@ const Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10880
10887
  appSlice: At,
10881
10888
  buildStorage: Jc,
10882
10889
  fetchBaseQueryX: rm,
10883
- getAppStore: ft,
10890
+ getAppStore: et,
10884
10891
  getLangStore: Ze,
10885
10892
  langSlice: nr
10886
10893
  }, Symbol.toStringTag, { value: "Module" })), { pushLangMessage: am } = nr.actions;
@@ -10908,20 +10915,26 @@ const wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10908
10915
  __proto__: null,
10909
10916
  wl: sm
10910
10917
  }, Symbol.toStringTag, { value: "Module" })), { changeTheme: um } = At.actions;
10911
- function yi({ children: e, genCSSVars: t, getComponent: r, id: n = "__oiu-theme" }) {
10918
+ function yi({
10919
+ children: e,
10920
+ genCSSVars: t,
10921
+ getComponent: r,
10922
+ id: n = "__oiu-theme"
10923
+ }) {
10912
10924
  const o = yi;
10913
- if (!o.provider)
10914
- throw new Error("UITheme.provider is not defined, please set it before using UITheme");
10915
- const i = xr(), a = xe((l) => Ze(l).lang), s = xe((l) => localStorage.getItem("theme") ?? ft(l).theme), u = je(() => r(s), [r, s]);
10925
+ if (!o.provider) throw new Error("UITheme.provider is not defined, please set it before using UITheme");
10926
+ const i = xr(), a = xe((l) => Ze(l).lang), s = xe((l) => typeof localStorage > "u" ? et(l).theme : localStorage.getItem("theme") ?? et(l).theme), u = je(() => r(s), [r, s]);
10916
10927
  ll(() => {
10917
10928
  if (!t) return;
10918
10929
  const { head: l } = document, y = t(s, u);
10919
10930
  if (y) {
10920
- let h = l.querySelector(`style#${n}`);
10921
- h && h.remove(), h = document.createElement("style"), h.id = n, h.innerHTML = `:root {${y}}`, l.appendChild(h);
10931
+ let v = l.querySelector(`style#${n}`);
10932
+ v && v.remove(), v = document.createElement("style"), v.id = n, v.innerHTML = `:root {${y}}`, l.appendChild(v);
10933
+ }
10934
+ if (typeof localStorage < "u") {
10935
+ const v = localStorage.getItem("theme") ?? s;
10936
+ v !== s && i(um(v));
10922
10937
  }
10923
- const v = localStorage.getItem("theme") ?? s;
10924
- v !== s && i(um(v));
10925
10938
  }, [i, t, n, s, u]);
10926
10939
  const c = o.provider;
10927
10940
  return /* @__PURE__ */ he(c, { lang: a, token: u, children: e });
@@ -10930,7 +10943,7 @@ function cm(e, t) {
10930
10943
  return `/themes/${e}/${t}`;
10931
10944
  }
10932
10945
  function lm() {
10933
- return xe((e) => ft(e).theme);
10946
+ return xe((e) => et(e).theme);
10934
10947
  }
10935
10948
  const _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10936
10949
  __proto__: null,
@@ -10963,7 +10976,7 @@ export {
10963
10976
  xs as a,
10964
10977
  vm as b,
10965
10978
  pm as c,
10966
- xp as d,
10979
+ Wf as d,
10967
10980
  Sm as e,
10968
10981
  _m as f,
10969
10982
  Em as g,