stargazer-ui 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { jsx as x, jsxs as Ce } from "react/jsx-runtime";
2
- import { forwardRef as ze, useState as ce, useCallback as De, useMemo as Ne } from "react";
3
- import A, { DropdownContext as ke } from "../Dropdown/index.js";
4
- function Ae(e) {
1
+ import { jsx as H, jsxs as Pe } from "react/jsx-runtime";
2
+ import { forwardRef as Ce, useState as se, useCallback as ze, useMemo as De } from "react";
3
+ import C, { DropdownContextProvider as ke } from "../Dropdown/index.js";
4
+ function Ne(e) {
5
5
  if (typeof e != "object" || e === null)
6
6
  return !1;
7
7
  let t = e;
@@ -9,10 +9,10 @@ function Ae(e) {
9
9
  t = Object.getPrototypeOf(t);
10
10
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
11
11
  }
12
- function Fe(e) {
13
- return Ae(e) && "type" in e && typeof e.type == "string";
12
+ function Ae(e) {
13
+ return Ne(e) && "type" in e && typeof e.type == "string";
14
14
  }
15
- var he = Symbol.for("immer-nothing"), ue = Symbol.for("immer-draftable"), y = Symbol.for("immer-state"), Ie = process.env.NODE_ENV !== "production" ? [
15
+ var me = Symbol.for("immer-nothing"), ce = Symbol.for("immer-draftable"), y = Symbol.for("immer-state"), Fe = process.env.NODE_ENV !== "production" ? [
16
16
  // All error codes, starting by 0:
17
17
  function(e) {
18
18
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -45,68 +45,68 @@ var he = Symbol.for("immer-nothing"), ue = Symbol.for("immer-draftable"), y = Sy
45
45
  ] : [];
46
46
  function d(e, ...t) {
47
47
  if (process.env.NODE_ENV !== "production") {
48
- const r = Ie[e], n = typeof r == "function" ? r.apply(null, t) : r;
48
+ const r = Fe[e], n = typeof r == "function" ? r.apply(null, t) : r;
49
49
  throw new Error(`[Immer] ${n}`);
50
50
  }
51
51
  throw new Error(
52
52
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
53
53
  );
54
54
  }
55
- var C = Object.getPrototypeOf;
56
- function b(e) {
55
+ var z = Object.getPrototypeOf;
56
+ function v(e) {
57
57
  return !!e && !!e[y];
58
58
  }
59
- function S(e) {
59
+ function O(e) {
60
60
  var t;
61
- return e ? _e(e) || Array.isArray(e) || !!e[ue] || !!((t = e.constructor) != null && t[ue]) || U(e) || V(e) : !1;
61
+ return e ? he(e) || Array.isArray(e) || !!e[ce] || !!((t = e.constructor) != null && t[ce]) || $(e) || W(e) : !1;
62
62
  }
63
- var je = Object.prototype.constructor.toString();
64
- function _e(e) {
63
+ var Ie = Object.prototype.constructor.toString();
64
+ function he(e) {
65
65
  if (!e || typeof e != "object")
66
66
  return !1;
67
- const t = C(e);
67
+ const t = z(e);
68
68
  if (t === null)
69
69
  return !0;
70
70
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
71
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === je;
71
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ie;
72
72
  }
73
- function D(e, t) {
74
- q(e) === 0 ? Object.entries(e).forEach(([r, n]) => {
73
+ function k(e, t) {
74
+ x(e) === 0 ? Object.entries(e).forEach(([r, n]) => {
75
75
  t(r, n, e);
76
76
  }) : e.forEach((r, n) => t(n, r, e));
77
77
  }
78
- function q(e) {
78
+ function x(e) {
79
79
  const t = e[y];
80
- return t ? t.type_ : Array.isArray(e) ? 1 : U(e) ? 2 : V(e) ? 3 : 0;
80
+ return t ? t.type_ : Array.isArray(e) ? 1 : $(e) ? 2 : W(e) ? 3 : 0;
81
81
  }
82
- function Y(e, t) {
83
- return q(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
82
+ function Q(e, t) {
83
+ return x(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
84
84
  }
85
- function we(e, t, r) {
86
- const n = q(e);
85
+ function _e(e, t, r) {
86
+ const n = x(e);
87
87
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
88
88
  }
89
- function Me(e, t) {
89
+ function je(e, t) {
90
90
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
91
91
  }
92
- function U(e) {
92
+ function $(e) {
93
93
  return e instanceof Map;
94
94
  }
95
- function V(e) {
95
+ function W(e) {
96
96
  return e instanceof Set;
97
97
  }
98
- function v(e) {
98
+ function b(e) {
99
99
  return e.copy_ || e.base_;
100
100
  }
101
- function Z(e, t) {
102
- if (U(e))
101
+ function Y(e, t) {
102
+ if ($(e))
103
103
  return new Map(e);
104
- if (V(e))
104
+ if (W(e))
105
105
  return new Set(e);
106
106
  if (Array.isArray(e))
107
107
  return Array.prototype.slice.call(e);
108
- if (!t && _e(e))
109
- return C(e) ? { ...e } : Object.assign(/* @__PURE__ */ Object.create(null), e);
108
+ if (!t && he(e))
109
+ return z(e) ? { ...e } : Object.assign(/* @__PURE__ */ Object.create(null), e);
110
110
  const r = Object.getOwnPropertyDescriptors(e);
111
111
  delete r[y];
112
112
  let n = Reflect.ownKeys(r);
@@ -120,27 +120,27 @@ function Z(e, t) {
120
120
  value: e[i]
121
121
  });
122
122
  }
123
- return Object.create(C(e), r);
123
+ return Object.create(z(e), r);
124
124
  }
125
- function ne(e, t = !1) {
126
- return K(e) || b(e) || !S(e) || (q(e) > 1 && (e.set = e.add = e.clear = e.delete = Re), Object.freeze(e), t && D(e, (r, n) => ne(n, !0))), e;
125
+ function re(e, t = !1) {
126
+ return q(e) || v(e) || !O(e) || (x(e) > 1 && (e.set = e.add = e.clear = e.delete = Me), Object.freeze(e), t && k(e, (r, n) => re(n, !0))), e;
127
127
  }
128
- function Re() {
128
+ function Me() {
129
129
  d(2);
130
130
  }
131
- function K(e) {
131
+ function q(e) {
132
132
  return Object.isFrozen(e);
133
133
  }
134
- var Te = {};
135
- function O(e) {
136
- const t = Te[e];
134
+ var Re = {};
135
+ function S(e) {
136
+ const t = Re[e];
137
137
  return t || d(0, e), t;
138
138
  }
139
139
  var N;
140
- function ge() {
140
+ function we() {
141
141
  return N;
142
142
  }
143
- function xe(e, t) {
143
+ function Te(e, t) {
144
144
  return {
145
145
  drafts_: [],
146
146
  parent_: e,
@@ -151,53 +151,53 @@ function xe(e, t) {
151
151
  unfinalizedDrafts_: 0
152
152
  };
153
153
  }
154
- function ae(e, t) {
155
- t && (O("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
154
+ function ue(e, t) {
155
+ t && (S("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
156
156
  }
157
- function L(e) {
158
- ee(e), e.drafts_.forEach($e), e.drafts_ = null;
157
+ function Z(e) {
158
+ L(e), e.drafts_.forEach(xe), e.drafts_ = null;
159
159
  }
160
- function ee(e) {
160
+ function L(e) {
161
161
  e === N && (N = e.parent_);
162
162
  }
163
- function fe(e) {
164
- return N = xe(N, e);
163
+ function ae(e) {
164
+ return N = Te(N, e);
165
165
  }
166
- function $e(e) {
166
+ function xe(e) {
167
167
  const t = e[y];
168
168
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
169
169
  }
170
- function le(e, t) {
170
+ function fe(e, t) {
171
171
  t.unfinalizedDrafts_ = t.drafts_.length;
172
172
  const r = t.drafts_[0];
173
- return e !== void 0 && e !== r ? (r[y].modified_ && (L(t), d(4)), S(e) && (e = $(t, e), t.parent_ || W(t, e)), t.patches_ && O("Patches").generateReplacementPatches_(
173
+ return e !== void 0 && e !== r ? (r[y].modified_ && (Z(t), d(4)), O(e) && (e = R(t, e), t.parent_ || T(t, e)), t.patches_ && S("Patches").generateReplacementPatches_(
174
174
  r[y].base_,
175
175
  e,
176
176
  t.patches_,
177
177
  t.inversePatches_
178
- )) : e = $(t, r, []), L(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== he ? e : void 0;
178
+ )) : e = R(t, r, []), Z(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== me ? e : void 0;
179
179
  }
180
- function $(e, t, r) {
181
- if (K(t))
180
+ function R(e, t, r) {
181
+ if (q(t))
182
182
  return t;
183
183
  const n = t[y];
184
184
  if (!n)
185
- return D(
185
+ return k(
186
186
  t,
187
- (o, i) => de(e, n, t, o, i, r)
187
+ (o, i) => le(e, n, t, o, i, r)
188
188
  ), t;
189
189
  if (n.scope_ !== e)
190
190
  return t;
191
191
  if (!n.modified_)
192
- return W(e, n.base_, !0), n.base_;
192
+ return T(e, n.base_, !0), n.base_;
193
193
  if (!n.finalized_) {
194
194
  n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
195
195
  const o = n.copy_;
196
196
  let i = o, s = !1;
197
- n.type_ === 3 && (i = new Set(o), o.clear(), s = !0), D(
197
+ n.type_ === 3 && (i = new Set(o), o.clear(), s = !0), k(
198
198
  i,
199
- (c, u) => de(e, n, o, c, u, r, s)
200
- ), W(e, o, !1), r && e.patches_ && O("Patches").generatePatches_(
199
+ (c, u) => le(e, n, o, c, u, r, s)
200
+ ), T(e, o, !1), r && e.patches_ && S("Patches").generatePatches_(
201
201
  n,
202
202
  r,
203
203
  e.patches_,
@@ -206,30 +206,30 @@ function $(e, t, r) {
206
206
  }
207
207
  return n.copy_;
208
208
  }
209
- function de(e, t, r, n, o, i, s) {
210
- if (process.env.NODE_ENV !== "production" && o === r && d(5), b(o)) {
209
+ function le(e, t, r, n, o, i, s) {
210
+ if (process.env.NODE_ENV !== "production" && o === r && d(5), v(o)) {
211
211
  const c = i && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
212
- !Y(t.assigned_, n) ? i.concat(n) : void 0, u = $(e, o, c);
213
- if (we(r, n, u), b(u))
212
+ !Q(t.assigned_, n) ? i.concat(n) : void 0, u = R(e, o, c);
213
+ if (_e(r, n, u), v(u))
214
214
  e.canAutoFreeze_ = !1;
215
215
  else
216
216
  return;
217
217
  } else
218
218
  s && r.add(o);
219
- if (S(o) && !K(o)) {
219
+ if (O(o) && !q(o)) {
220
220
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
221
221
  return;
222
- $(e, o), (!t || !t.scope_.parent_) && W(e, o);
222
+ R(e, o), (!t || !t.scope_.parent_) && T(e, o);
223
223
  }
224
224
  }
225
- function W(e, t, r = !1) {
226
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && ne(t, r);
225
+ function T(e, t, r = !1) {
226
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && re(t, r);
227
227
  }
228
- function We(e, t) {
228
+ function $e(e, t) {
229
229
  const r = Array.isArray(e), n = {
230
230
  type_: r ? 1 : 0,
231
231
  // Track which produce call this is associated with.
232
- scope_: t ? t.scope_ : ge(),
232
+ scope_: t ? t.scope_ : we(),
233
233
  // True for both shallow and deep changes.
234
234
  modified_: !1,
235
235
  // Used during finalization.
@@ -249,50 +249,50 @@ function We(e, t) {
249
249
  revoke_: null,
250
250
  isManual_: !1
251
251
  };
252
- let o = n, i = oe;
253
- r && (o = [n], i = k);
252
+ let o = n, i = ne;
253
+ r && (o = [n], i = A);
254
254
  const { revoke: s, proxy: c } = Proxy.revocable(o, i);
255
255
  return n.draft_ = c, n.revoke_ = s, c;
256
256
  }
257
- var oe = {
257
+ var ne = {
258
258
  get(e, t) {
259
259
  if (t === y)
260
260
  return e;
261
- const r = v(e);
262
- if (!Y(r, t))
263
- return qe(e, r, t);
261
+ const r = b(e);
262
+ if (!Q(r, t))
263
+ return We(e, r, t);
264
264
  const n = r[t];
265
- return e.finalized_ || !S(n) ? n : n === J(e.base_, t) ? (Q(e), e.copy_[t] = re(n, e)) : n;
265
+ return e.finalized_ || !O(n) ? n : n === X(e.base_, t) ? (J(e), e.copy_[t] = te(n, e)) : n;
266
266
  },
267
267
  has(e, t) {
268
- return t in v(e);
268
+ return t in b(e);
269
269
  },
270
270
  ownKeys(e) {
271
- return Reflect.ownKeys(v(e));
271
+ return Reflect.ownKeys(b(e));
272
272
  },
273
273
  set(e, t, r) {
274
- const n = ve(v(e), t);
274
+ const n = ge(b(e), t);
275
275
  if (n != null && n.set)
276
276
  return n.set.call(e.draft_, r), !0;
277
277
  if (!e.modified_) {
278
- const o = J(v(e), t), i = o == null ? void 0 : o[y];
278
+ const o = X(b(e), t), i = o == null ? void 0 : o[y];
279
279
  if (i && i.base_ === r)
280
280
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
281
- if (Me(r, o) && (r !== void 0 || Y(e.base_, t)))
281
+ if (je(r, o) && (r !== void 0 || Q(e.base_, t)))
282
282
  return !0;
283
- Q(e), te(e);
283
+ J(e), ee(e);
284
284
  }
285
285
  return e.copy_[t] === r && // special case: handle new props with value 'undefined'
286
286
  (r !== void 0 || t in e.copy_) || // special case: NaN
287
287
  Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
288
288
  },
289
289
  deleteProperty(e, t) {
290
- return J(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, Q(e), te(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
290
+ return X(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, J(e), ee(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
291
291
  },
292
292
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
293
293
  // the same guarantee in ES5 mode.
294
294
  getOwnPropertyDescriptor(e, t) {
295
- const r = v(e), n = Reflect.getOwnPropertyDescriptor(r, t);
295
+ const r = b(e), n = Reflect.getOwnPropertyDescriptor(r, t);
296
296
  return n && {
297
297
  writable: !0,
298
298
  configurable: e.type_ !== 1 || t !== "length",
@@ -304,57 +304,57 @@ var oe = {
304
304
  d(11);
305
305
  },
306
306
  getPrototypeOf(e) {
307
- return C(e.base_);
307
+ return z(e.base_);
308
308
  },
309
309
  setPrototypeOf() {
310
310
  d(12);
311
311
  }
312
- }, k = {};
313
- D(oe, (e, t) => {
314
- k[e] = function() {
312
+ }, A = {};
313
+ k(ne, (e, t) => {
314
+ A[e] = function() {
315
315
  return arguments[0] = arguments[0][0], t.apply(this, arguments);
316
316
  };
317
317
  });
318
- k.deleteProperty = function(e, t) {
319
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && d(13), k.set.call(this, e, t, void 0);
318
+ A.deleteProperty = function(e, t) {
319
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && d(13), A.set.call(this, e, t, void 0);
320
320
  };
321
- k.set = function(e, t, r) {
322
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && d(14), oe.set.call(this, e[0], t, r, e[0]);
321
+ A.set = function(e, t, r) {
322
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && d(14), ne.set.call(this, e[0], t, r, e[0]);
323
323
  };
324
- function J(e, t) {
324
+ function X(e, t) {
325
325
  const r = e[y];
326
- return (r ? v(r) : e)[t];
326
+ return (r ? b(r) : e)[t];
327
327
  }
328
- function qe(e, t, r) {
328
+ function We(e, t, r) {
329
329
  var o;
330
- const n = ve(t, r);
330
+ const n = ge(t, r);
331
331
  return n ? "value" in n ? n.value : (
332
332
  // This is a very special case, if the prop is a getter defined by the
333
333
  // prototype, we should invoke it with the draft as context!
334
334
  (o = n.get) == null ? void 0 : o.call(e.draft_)
335
335
  ) : void 0;
336
336
  }
337
- function ve(e, t) {
337
+ function ge(e, t) {
338
338
  if (!(t in e))
339
339
  return;
340
- let r = C(e);
340
+ let r = z(e);
341
341
  for (; r; ) {
342
342
  const n = Object.getOwnPropertyDescriptor(r, t);
343
343
  if (n)
344
344
  return n;
345
- r = C(r);
345
+ r = z(r);
346
346
  }
347
347
  }
348
- function te(e) {
349
- e.modified_ || (e.modified_ = !0, e.parent_ && te(e.parent_));
348
+ function ee(e) {
349
+ e.modified_ || (e.modified_ = !0, e.parent_ && ee(e.parent_));
350
350
  }
351
- function Q(e) {
352
- e.copy_ || (e.copy_ = Z(
351
+ function J(e) {
352
+ e.copy_ || (e.copy_ = Y(
353
353
  e.base_,
354
354
  e.scope_.immer_.useStrictShallowCopy_
355
355
  ));
356
356
  }
357
- var Ue = class {
357
+ var qe = class {
358
358
  constructor(e) {
359
359
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
360
360
  if (typeof t == "function" && typeof r != "function") {
@@ -367,19 +367,19 @@ var Ue = class {
367
367
  }
368
368
  typeof r != "function" && d(6), n !== void 0 && typeof n != "function" && d(7);
369
369
  let o;
370
- if (S(t)) {
371
- const i = fe(this), s = re(t, void 0);
370
+ if (O(t)) {
371
+ const i = ae(this), s = te(t, void 0);
372
372
  let c = !0;
373
373
  try {
374
374
  o = r(s), c = !1;
375
375
  } finally {
376
- c ? L(i) : ee(i);
376
+ c ? Z(i) : L(i);
377
377
  }
378
- return ae(i, n), le(o, i);
378
+ return ue(i, n), fe(o, i);
379
379
  } else if (!t || typeof t != "object") {
380
- if (o = r(t), o === void 0 && (o = t), o === he && (o = void 0), this.autoFreeze_ && ne(o, !0), n) {
380
+ if (o = r(t), o === void 0 && (o = t), o === me && (o = void 0), this.autoFreeze_ && re(o, !0), n) {
381
381
  const i = [], s = [];
382
- O("Patches").generateReplacementPatches_(t, o, i, s), n(i, s);
382
+ S("Patches").generateReplacementPatches_(t, o, i, s), n(i, s);
383
383
  }
384
384
  return o;
385
385
  } else
@@ -394,15 +394,15 @@ var Ue = class {
394
394
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
395
395
  }
396
396
  createDraft(e) {
397
- S(e) || d(8), b(e) && (e = be(e));
398
- const t = fe(this), r = re(e, void 0);
399
- return r[y].isManual_ = !0, ee(t), r;
397
+ O(e) || d(8), v(e) && (e = be(e));
398
+ const t = ae(this), r = te(e, void 0);
399
+ return r[y].isManual_ = !0, L(t), r;
400
400
  }
401
401
  finishDraft(e, t) {
402
402
  const r = e && e[y];
403
403
  (!r || !r.isManual_) && d(9);
404
404
  const { scope_: n } = r;
405
- return ae(n, t), le(void 0, n);
405
+ return ue(n, t), fe(void 0, n);
406
406
  }
407
407
  /**
408
408
  * Pass true to automatically freeze all copies created by Immer.
@@ -430,36 +430,36 @@ var Ue = class {
430
430
  }
431
431
  }
432
432
  r > -1 && (t = t.slice(r + 1));
433
- const n = O("Patches").applyPatches_;
434
- return b(e) ? n(e, t) : this.produce(
433
+ const n = S("Patches").applyPatches_;
434
+ return v(e) ? n(e, t) : this.produce(
435
435
  e,
436
436
  (o) => n(o, t)
437
437
  );
438
438
  }
439
439
  };
440
- function re(e, t) {
441
- const r = U(e) ? O("MapSet").proxyMap_(e, t) : V(e) ? O("MapSet").proxySet_(e, t) : We(e, t);
442
- return (t ? t.scope_ : ge()).drafts_.push(r), r;
440
+ function te(e, t) {
441
+ const r = $(e) ? S("MapSet").proxyMap_(e, t) : W(e) ? S("MapSet").proxySet_(e, t) : $e(e, t);
442
+ return (t ? t.scope_ : we()).drafts_.push(r), r;
443
443
  }
444
444
  function be(e) {
445
- return b(e) || d(10, e), Se(e);
445
+ return v(e) || d(10, e), ve(e);
446
446
  }
447
- function Se(e) {
448
- if (!S(e) || K(e))
447
+ function ve(e) {
448
+ if (!O(e) || q(e))
449
449
  return e;
450
450
  const t = e[y];
451
451
  let r;
452
452
  if (t) {
453
453
  if (!t.modified_)
454
454
  return t.base_;
455
- t.finalized_ = !0, r = Z(e, t.scope_.immer_.useStrictShallowCopy_);
455
+ t.finalized_ = !0, r = Y(e, t.scope_.immer_.useStrictShallowCopy_);
456
456
  } else
457
- r = Z(e, !0);
458
- return D(r, (n, o) => {
459
- we(r, n, Se(o));
457
+ r = Y(e, !0);
458
+ return k(r, (n, o) => {
459
+ _e(r, n, ve(o));
460
460
  }), t && (t.finalized_ = !1), r;
461
461
  }
462
- var m = new Ue();
462
+ var m = new qe();
463
463
  m.produce;
464
464
  m.produceWithPatches.bind(
465
465
  m
@@ -469,7 +469,7 @@ m.setUseStrictShallowCopy.bind(m);
469
469
  m.applyPatches.bind(m);
470
470
  m.createDraft.bind(m);
471
471
  m.finishDraft.bind(m);
472
- var Ve = (e, t, r) => {
472
+ var Ue = (e, t, r) => {
473
473
  if (t.length === 1 && t[0] === r) {
474
474
  let n = !1;
475
475
  try {
@@ -493,7 +493,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
493
493
  );
494
494
  }
495
495
  }
496
- }, Ke = (e, t, r) => {
496
+ }, Ve = (e, t, r) => {
497
497
  const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: i, inputSelectorResultsCopy: s } = e, c = n(() => ({}), ...o);
498
498
  if (!(c.apply(null, i) === c.apply(null, s))) {
499
499
  let a;
@@ -515,19 +515,19 @@ Avoid returning a new reference inside your input selector, e.g.
515
515
  }
516
516
  );
517
517
  }
518
- }, Be = {
518
+ }, Ke = {
519
519
  inputStabilityCheck: "once",
520
520
  identityFunctionCheck: "once"
521
521
  };
522
- function Ge(e, t = `expected a function, instead received ${typeof e}`) {
522
+ function Be(e, t = `expected a function, instead received ${typeof e}`) {
523
523
  if (typeof e != "function")
524
524
  throw new TypeError(t);
525
525
  }
526
- function He(e, t = `expected an object, instead received ${typeof e}`) {
526
+ function Ge(e, t = `expected an object, instead received ${typeof e}`) {
527
527
  if (typeof e != "object")
528
528
  throw new TypeError(t);
529
529
  }
530
- function Xe(e, t = "expected all items to be functions, instead received the following types: ") {
530
+ function He(e, t = "expected all items to be functions, instead received the following types: ") {
531
531
  if (!e.every((r) => typeof r == "function")) {
532
532
  const r = e.map(
533
533
  (n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
@@ -535,53 +535,53 @@ function Xe(e, t = "expected all items to be functions, instead received the fol
535
535
  throw new TypeError(`${t}[${r}]`);
536
536
  }
537
537
  }
538
- var pe = (e) => Array.isArray(e) ? e : [e];
539
- function Je(e) {
538
+ var de = (e) => Array.isArray(e) ? e : [e];
539
+ function Xe(e) {
540
540
  const t = Array.isArray(e[0]) ? e[0] : e;
541
- return Xe(
541
+ return He(
542
542
  t,
543
543
  "createSelector expects all input-selectors to be functions, but received the following types: "
544
544
  ), t;
545
545
  }
546
- function ye(e, t) {
546
+ function pe(e, t) {
547
547
  const r = [], { length: n } = e;
548
548
  for (let o = 0; o < n; o++)
549
549
  r.push(e[o].apply(null, t));
550
550
  return r;
551
551
  }
552
- var Qe = (e, t) => {
552
+ var Je = (e, t) => {
553
553
  const { identityFunctionCheck: r, inputStabilityCheck: n } = {
554
- ...Be,
554
+ ...Ke,
555
555
  ...t
556
556
  };
557
557
  return {
558
558
  identityFunctionCheck: {
559
559
  shouldRun: r === "always" || r === "once" && e,
560
- run: Ve
560
+ run: Ue
561
561
  },
562
562
  inputStabilityCheck: {
563
563
  shouldRun: n === "always" || n === "once" && e,
564
- run: Ke
564
+ run: Ve
565
565
  }
566
566
  };
567
- }, Ye = class {
567
+ }, Qe = class {
568
568
  constructor(e) {
569
569
  this.value = e;
570
570
  }
571
571
  deref() {
572
572
  return this.value;
573
573
  }
574
- }, Ze = typeof WeakRef < "u" ? WeakRef : Ye, Le = 0, me = 1;
575
- function T() {
574
+ }, Ye = typeof WeakRef < "u" ? WeakRef : Qe, Ze = 0, ye = 1;
575
+ function M() {
576
576
  return {
577
- s: Le,
577
+ s: Ze,
578
578
  v: void 0,
579
579
  o: null,
580
580
  p: null
581
581
  };
582
582
  }
583
- function ie(e, t = {}) {
584
- let r = T();
583
+ function oe(e, t = {}) {
584
+ let r = M();
585
585
  const { resultEqualityCheck: n } = t;
586
586
  let o, i = 0;
587
587
  function s() {
@@ -594,24 +594,24 @@ function ie(e, t = {}) {
594
594
  let p = c.o;
595
595
  p === null && (c.o = p = /* @__PURE__ */ new WeakMap());
596
596
  const w = p.get(h);
597
- w === void 0 ? (c = T(), p.set(h, c)) : c = w;
597
+ w === void 0 ? (c = M(), p.set(h, c)) : c = w;
598
598
  } else {
599
599
  let p = c.p;
600
600
  p === null && (c.p = p = /* @__PURE__ */ new Map());
601
601
  const w = p.get(h);
602
- w === void 0 ? (c = T(), p.set(h, c)) : c = w;
602
+ w === void 0 ? (c = M(), p.set(h, c)) : c = w;
603
603
  }
604
604
  }
605
605
  const a = c;
606
606
  let f;
607
- if (c.s === me ? f = c.v : (f = e.apply(null, arguments), i++), a.s = me, n) {
607
+ if (c.s === ye ? f = c.v : (f = e.apply(null, arguments), i++), a.s = ye, n) {
608
608
  const _ = ((l = o == null ? void 0 : o.deref) == null ? void 0 : l.call(o)) ?? o;
609
- _ != null && n(_, f) && (f = _, i !== 0 && i--), o = typeof f == "object" && f !== null || typeof f == "function" ? new Ze(f) : f;
609
+ _ != null && n(_, f) && (f = _, i !== 0 && i--), o = typeof f == "object" && f !== null || typeof f == "function" ? new Ye(f) : f;
610
610
  }
611
611
  return a.v = f, f;
612
612
  }
613
613
  return s.clearCache = () => {
614
- r = T(), s.resetResultsCount();
614
+ r = M(), s.resetResultsCount();
615
615
  }, s.resultsCount = () => i, s.resetResultsCount = () => {
616
616
  i = 0;
617
617
  }, s;
@@ -622,7 +622,7 @@ function Oe(e, ...t) {
622
622
  memoizeOptions: t
623
623
  } : e, n = (...o) => {
624
624
  let i = 0, s = 0, c, u = {}, a = o.pop();
625
- typeof a == "object" && (u = a, a = o.pop()), Ge(
625
+ typeof a == "object" && (u = a, a = o.pop()), Be(
626
626
  a,
627
627
  `createSelector expects an output function after the inputs, but received: [${typeof a}]`
628
628
  );
@@ -632,35 +632,35 @@ function Oe(e, ...t) {
632
632
  }, {
633
633
  memoize: l,
634
634
  memoizeOptions: _ = [],
635
- argsMemoize: g = ie,
635
+ argsMemoize: g = oe,
636
636
  argsMemoizeOptions: h = [],
637
637
  devModeChecks: p = {}
638
- } = f, w = pe(_), I = pe(h), E = Je(o), H = l(function() {
638
+ } = f, w = de(_), F = de(h), E = Xe(o), K = l(function() {
639
639
  return i++, a.apply(
640
640
  null,
641
641
  arguments
642
642
  );
643
643
  }, ...w);
644
644
  let P = !0;
645
- const j = g(function() {
645
+ const B = g(function() {
646
646
  s++;
647
- const z = ye(
647
+ const D = pe(
648
648
  E,
649
649
  arguments
650
650
  );
651
- if (c = H.apply(null, z), process.env.NODE_ENV !== "production") {
652
- const { identityFunctionCheck: M, inputStabilityCheck: R } = Qe(P, p);
653
- if (M.shouldRun && M.run(
651
+ if (c = K.apply(null, D), process.env.NODE_ENV !== "production") {
652
+ const { identityFunctionCheck: I, inputStabilityCheck: j } = Je(P, p);
653
+ if (I.shouldRun && I.run(
654
654
  a,
655
- z,
655
+ D,
656
656
  c
657
- ), R.shouldRun) {
658
- const Pe = ye(
657
+ ), j.shouldRun) {
658
+ const Ee = pe(
659
659
  E,
660
660
  arguments
661
661
  );
662
- R.run(
663
- { inputSelectorResults: z, inputSelectorResultsCopy: Pe },
662
+ j.run(
663
+ { inputSelectorResults: D, inputSelectorResultsCopy: Ee },
664
664
  { memoize: l, memoizeOptions: w },
665
665
  arguments
666
666
  );
@@ -668,10 +668,10 @@ function Oe(e, ...t) {
668
668
  P && (P = !1);
669
669
  }
670
670
  return c;
671
- }, ...I);
672
- return Object.assign(j, {
671
+ }, ...F);
672
+ return Object.assign(B, {
673
673
  resultFunc: a,
674
- memoizedResultFunc: H,
674
+ memoizedResultFunc: K,
675
675
  dependencies: E,
676
676
  dependencyRecomputations: () => s,
677
677
  resetDependencyRecomputations: () => {
@@ -690,9 +690,9 @@ function Oe(e, ...t) {
690
690
  withTypes: () => n
691
691
  }), n;
692
692
  }
693
- var et = /* @__PURE__ */ Oe(ie), tt = Object.assign(
694
- (e, t = et) => {
695
- He(
693
+ var Le = /* @__PURE__ */ Oe(oe), et = Object.assign(
694
+ (e, t = Le) => {
695
+ Ge(
696
696
  e,
697
697
  `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
698
698
  );
@@ -704,23 +704,23 @@ var et = /* @__PURE__ */ Oe(ie), tt = Object.assign(
704
704
  (...i) => i.reduce((s, c, u) => (s[r[u]] = c, s), {})
705
705
  );
706
706
  },
707
- { withTypes: () => tt }
708
- ), rt = (...e) => {
707
+ { withTypes: () => et }
708
+ ), tt = (...e) => {
709
709
  const t = Oe(...e), r = Object.assign((...n) => {
710
- const o = t(...n), i = (s, ...c) => o(b(s) ? be(s) : s, ...c);
710
+ const o = t(...n), i = (s, ...c) => o(v(s) ? be(s) : s, ...c);
711
711
  return Object.assign(i, o), i;
712
712
  }, {
713
713
  withTypes: () => r
714
714
  });
715
715
  return r;
716
716
  };
717
- rt(ie);
718
- function B(e, t) {
717
+ tt(oe);
718
+ function U(e, t) {
719
719
  function r(...n) {
720
720
  if (t) {
721
721
  let o = t(...n);
722
722
  if (!o)
723
- throw new Error(process.env.NODE_ENV === "production" ? G(0) : "prepareAction did not return an object");
723
+ throw new Error(process.env.NODE_ENV === "production" ? V(0) : "prepareAction did not return an object");
724
724
  return {
725
725
  type: e,
726
726
  payload: o.payload,
@@ -737,18 +737,18 @@ function B(e, t) {
737
737
  payload: n[0]
738
738
  };
739
739
  }
740
- return r.toString = () => `${e}`, r.type = e, r.match = (n) => Fe(n) && n.type === e, r;
740
+ return r.toString = () => `${e}`, r.type = e, r.match = (n) => Ae(n) && n.type === e, r;
741
741
  }
742
742
  process.env.NODE_ENV;
743
- var nt = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Ee = (e = 21) => {
743
+ var rt = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Se = (e = 21) => {
744
744
  let t = "", r = e;
745
745
  for (; r--; )
746
- t += nt[Math.random() * 64 | 0];
746
+ t += rt[Math.random() * 64 | 0];
747
747
  return t;
748
- }, ot = (e, t) => {
748
+ }, nt = (e, t) => {
749
749
  if (typeof e != "function")
750
- throw new Error(process.env.NODE_ENV === "production" ? G(32) : `${t} is not a function`);
751
- }, se = "listenerMiddleware", it = (e) => {
750
+ throw new Error(process.env.NODE_ENV === "production" ? V(32) : `${t} is not a function`);
751
+ }, ie = "listenerMiddleware", ot = (e) => {
752
752
  let {
753
753
  type: t,
754
754
  actionCreator: r,
@@ -757,56 +757,56 @@ var nt = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Ee
757
757
  effect: i
758
758
  } = e;
759
759
  if (t)
760
- o = B(t).match;
760
+ o = U(t).match;
761
761
  else if (r)
762
762
  t = r.type, o = r.match;
763
763
  else if (n)
764
764
  o = n;
765
765
  else if (!o)
766
- throw new Error(process.env.NODE_ENV === "production" ? G(21) : "Creating or removing a listener requires one of the known fields for matching an action");
767
- return ot(i, "options.listener"), {
766
+ throw new Error(process.env.NODE_ENV === "production" ? V(21) : "Creating or removing a listener requires one of the known fields for matching an action");
767
+ return nt(i, "options.listener"), {
768
768
  predicate: o,
769
769
  type: t,
770
770
  effect: i
771
771
  };
772
- }, st = Object.assign((e) => {
772
+ }, it = Object.assign((e) => {
773
773
  const {
774
774
  type: t,
775
775
  predicate: r,
776
776
  effect: n
777
- } = it(e);
777
+ } = ot(e);
778
778
  return {
779
- id: Ee(),
779
+ id: Se(),
780
780
  effect: n,
781
781
  type: t,
782
782
  predicate: r,
783
783
  pending: /* @__PURE__ */ new Set(),
784
784
  unsubscribe: () => {
785
- throw new Error(process.env.NODE_ENV === "production" ? G(22) : "Unsubscribe not initialized");
785
+ throw new Error(process.env.NODE_ENV === "production" ? V(22) : "Unsubscribe not initialized");
786
786
  }
787
787
  };
788
788
  }, {
789
+ withTypes: () => it
790
+ }), st = Object.assign(U(`${ie}/add`), {
789
791
  withTypes: () => st
790
- }), ct = Object.assign(B(`${se}/add`), {
791
- withTypes: () => ct
792
792
  });
793
- B(`${se}/removeAll`);
794
- var ut = Object.assign(B(`${se}/remove`), {
795
- withTypes: () => ut
793
+ U(`${ie}/removeAll`);
794
+ var ct = Object.assign(U(`${ie}/remove`), {
795
+ withTypes: () => ct
796
796
  });
797
- function G(e) {
797
+ function V(e) {
798
798
  return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
799
799
  }
800
- const at = (e, t, r = !1) => {
800
+ const ut = (e, t, r = !1) => {
801
801
  const n = r ? "top-end" : "top-start", o = r ? "top-start" : "top-end", i = r ? "bottom-end" : "bottom-start", s = r ? "bottom-start" : "bottom-end", c = r ? "right-start" : "left-start", u = r ? "right-end" : "left-end", a = r ? "left-start" : "right-start", f = r ? "left-end" : "right-end";
802
802
  let l = e ? s : i;
803
803
  return t === "up" ? l = e ? o : n : t === "end" ? l = e ? f : a : t === "start" ? l = e ? u : c : t === "down-centered" ? l = "bottom" : t === "up-centered" && (l = "top"), l;
804
- }, ft = ({ children: e, value: t, ...r }) => /* @__PURE__ */ x(ke.Provider, { value: t, ...r, children: e }), F = ze(({
804
+ }, at = Ce(({
805
805
  children: e,
806
806
  className: t,
807
807
  onSelect: r,
808
808
  onToggle: n,
809
- controlID: o,
809
+ controlId: o,
810
810
  toggleProps: i,
811
811
  title: s,
812
812
  menuProps: c,
@@ -816,35 +816,43 @@ const at = (e, t, r = !1) => {
816
816
  show: l = "default",
817
817
  ..._
818
818
  }, g) => {
819
- const [h, p] = ce(l === "default" ? !1 : l), [w, I] = ce({ case: "" }), E = De((M) => {
820
- M.stopPropagation(), p((R) => !R);
821
- }, []), P = at(a === "end", u), j = {
819
+ const [h, p] = se(l === "default" ? !1 : l), [w, F] = se({ case: "" }), E = ze((I) => {
820
+ I.stopPropagation(), p((j) => !j);
821
+ }, []), P = ut(a === "end", u), B = {
822
822
  down: "dropdown",
823
823
  "down-centered": "dropdown-center",
824
824
  up: "dropup",
825
825
  "up-centered": "dropup-center dropup",
826
826
  end: "dropend",
827
827
  start: "dropstart"
828
- }, X = o || "nav-dropdown-" + Ee(), z = Ne(() => ({
828
+ }, G = o || "nav-dropdown-" + Se(), D = De(() => ({
829
829
  align: a,
830
830
  drop: u,
831
831
  showInternal: l != "default" && n ? l : h,
832
832
  handleToggle: l != "default" && n ? n : E,
833
833
  placement: P,
834
- directionClasses: j,
835
- controlID: X,
834
+ directionClasses: {
835
+ down: "dropdown",
836
+ "down-centered": "dropdown-center",
837
+ up: "dropup",
838
+ "up-centered": "dropup-center dropup",
839
+ end: "dropend",
840
+ start: "dropstart"
841
+ },
842
+ controlId: G,
836
843
  activeDescendant: w,
837
- setActiveDescendant: I
838
- }), [a, u, l, h, n, E, P, j, o, w, I]);
839
- return /* @__PURE__ */ x("div", { test: "true", id: o + "-wrapper", ref: g, className: `sg-dropdown${t ? " " + t : ""} sg-nav-item`, ..._, children: /* @__PURE__ */ Ce(ft, { value: z, children: [
840
- /* @__PURE__ */ x(A.Toggle, { navDropdown: !0, ...i, children: s }),
841
- /* @__PURE__ */ x(F.Menu, { ...c, children: e })
844
+ setActiveDescendant: F
845
+ }), [a, u, l, h, n, E, P, B, o, w, F]);
846
+ return /* @__PURE__ */ H("div", { ref: g, id: o + "-wrapper", className: `sg-dropdown${t ? " " + t : ""} sg-nav-item`, ..._, children: /* @__PURE__ */ Pe(ke, { value: D, children: [
847
+ /* @__PURE__ */ H(C.Toggle, { navDropdown: !0, ...i, children: s }),
848
+ /* @__PURE__ */ H(C.Menu, { ...c, children: e })
842
849
  ] }) });
850
+ }), pt = Object.assign(at, {
851
+ Toggle: C.Toggle,
852
+ Menu: C.Menu,
853
+ Item: C.Item,
854
+ Divider: C.Divider
843
855
  });
844
- F.Toggle = A.Toggle;
845
- F.Menu = A.Menu;
846
- F.Item = A.Item;
847
- F.Divider = A.Divider;
848
856
  export {
849
- F as default
857
+ pt as default
850
858
  };