@inertiaui/modal-react 0.6.0 → 0.6.2

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,12 +1,12 @@
1
1
  var Fo = Object.defineProperty;
2
2
  var Co = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ye = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
4
- import * as mt from "react";
5
- import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useRef as j, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as xt, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
3
+ var ce = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import * as ht from "react";
5
+ import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Ot, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
6
6
  import jt from "axios";
7
- import { router as yt } from "@inertiajs/react";
8
- import { createPortal as jo } from "react-dom";
9
- const Ct = {
7
+ import { router as vt, usePage as jo } from "@inertiajs/react";
8
+ import { createPortal as Lo } from "react-dom";
9
+ const ct = {
10
10
  type: "modal",
11
11
  navigate: !1,
12
12
  modal: {
@@ -26,19 +26,20 @@ const Ct = {
26
26
  position: "right"
27
27
  }
28
28
  };
29
- class Lo {
29
+ class Wo {
30
30
  constructor() {
31
31
  this.config = {}, this.reset();
32
32
  }
33
33
  reset() {
34
- this.config = JSON.parse(JSON.stringify(Ct));
34
+ this.config = JSON.parse(JSON.stringify(ct));
35
35
  }
36
36
  put(e, r) {
37
37
  if (typeof e == "object") {
38
38
  this.config = {
39
- type: e.type ?? Ct.type,
40
- modal: { ...Ct.modal, ...e.modal ?? {} },
41
- slideover: { ...Ct.slideover, ...e.slideover ?? {} }
39
+ type: e.type ?? ct.type,
40
+ navigate: e.navigate ?? ct.navigate,
41
+ modal: { ...ct.modal, ...e.modal ?? {} },
42
+ slideover: { ...ct.slideover, ...e.slideover ?? {} }
42
43
  };
43
44
  return;
44
45
  }
@@ -61,12 +62,12 @@ class Lo {
61
62
  return n;
62
63
  }
63
64
  }
64
- const Yt = new Lo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
65
+ const Yt = new Wo(), Oc = () => Yt.reset(), Pc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
65
66
  var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
66
- function Wo(t) {
67
+ function Uo(t) {
67
68
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
68
69
  }
69
- function Uo(t) {
70
+ function Bo(t) {
70
71
  if (t.__esModule) return t;
71
72
  var e = t.default;
72
73
  if (typeof e == "function") {
@@ -85,7 +86,7 @@ function Uo(t) {
85
86
  });
86
87
  }), r;
87
88
  }
88
- var Tr = { exports: {} }, ct = {};
89
+ var Tr = { exports: {} }, ft = {};
89
90
  /**
90
91
  * @license React
91
92
  * react-jsx-runtime.production.min.js
@@ -96,20 +97,20 @@ var Tr = { exports: {} }, ct = {};
96
97
  * LICENSE file in the root directory of this source tree.
97
98
  */
98
99
  var wn;
99
- function Bo() {
100
- if (wn) return ct;
100
+ function Ho() {
101
+ if (wn) return ft;
101
102
  wn = 1;
102
103
  var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
103
- function l(u, i, d) {
104
- var s, g = {}, v = null, w = null;
105
- d !== void 0 && (v = "" + d), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
106
- for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (g[s] = i[s]);
107
- if (u && u.defaultProps) for (s in i = u.defaultProps, i) g[s] === void 0 && (g[s] = i[s]);
108
- return { $$typeof: e, type: u, key: v, ref: w, props: g, _owner: a.current };
104
+ function l(u, i, f) {
105
+ var s, h = {}, v = null, w = null;
106
+ f !== void 0 && (v = "" + f), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
107
+ for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (h[s] = i[s]);
108
+ if (u && u.defaultProps) for (s in i = u.defaultProps, i) h[s] === void 0 && (h[s] = i[s]);
109
+ return { $$typeof: e, type: u, key: v, ref: w, props: h, _owner: a.current };
109
110
  }
110
- return ct.Fragment = r, ct.jsx = l, ct.jsxs = l, ct;
111
+ return ft.Fragment = r, ft.jsx = l, ft.jsxs = l, ft;
111
112
  }
112
- var ft = {};
113
+ var dt = {};
113
114
  /**
114
115
  * @license React
115
116
  * react-jsx-runtime.development.js
@@ -120,17 +121,17 @@ var ft = {};
120
121
  * LICENSE file in the root directory of this source tree.
121
122
  */
122
123
  var En;
123
- function Ho() {
124
+ function Vo() {
124
125
  return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
125
- var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
126
+ var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
126
127
  function p(c) {
127
128
  if (c === null || typeof c != "object")
128
129
  return null;
129
- var E = f && c[f] || c[y];
130
+ var E = d && c[d] || c[y];
130
131
  return typeof E == "function" ? E : null;
131
132
  }
132
133
  var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
133
- function h(c) {
134
+ function g(c) {
134
135
  {
135
136
  for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
136
137
  x[P - 1] = arguments[P];
@@ -149,14 +150,14 @@ function Ho() {
149
150
  }
150
151
  var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
151
152
  H = Symbol.for("react.module.reference");
152
- function k(c) {
153
- return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === g || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
153
+ function j(c) {
154
+ return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === f || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === h || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
154
155
  // types supported by any Flight configuration anywhere since
155
156
  // we don't know which Flight build this will end up being used
156
157
  // with.
157
158
  c.$$typeof === H || c.getModuleId !== void 0));
158
159
  }
159
- function Y(c, E, x) {
160
+ function z(c, E, x) {
160
161
  var P = c.displayName;
161
162
  if (P)
162
163
  return P;
@@ -169,7 +170,7 @@ function Ho() {
169
170
  function $(c) {
170
171
  if (c == null)
171
172
  return null;
172
- if (typeof c.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
173
+ if (typeof c.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
173
174
  return c.displayName || c.name || null;
174
175
  if (typeof c == "string")
175
176
  return c;
@@ -182,7 +183,7 @@ function Ho() {
182
183
  return "Profiler";
183
184
  case a:
184
185
  return "StrictMode";
185
- case d:
186
+ case f:
186
187
  return "Suspense";
187
188
  case s:
188
189
  return "SuspenseList";
@@ -196,8 +197,8 @@ function Ho() {
196
197
  var x = c;
197
198
  return V(x._context) + ".Provider";
198
199
  case i:
199
- return Y(c, c.render, "ForwardRef");
200
- case g:
200
+ return z(c, c.render, "ForwardRef");
201
+ case h:
201
202
  var P = c.displayName || null;
202
203
  return P !== null ? P : $(c.type) || "Memo";
203
204
  case v: {
@@ -211,14 +212,14 @@ function Ho() {
211
212
  }
212
213
  return null;
213
214
  }
214
- var T = Object.assign, D = 0, ue, de, ge, te, pe, q, _e;
215
+ var T = Object.assign, D = 0, ue, pe, ge, te, ye, q, _e;
215
216
  function ee() {
216
217
  }
217
218
  ee.__reactDisabledLog = !0;
218
219
  function ar() {
219
220
  {
220
221
  if (D === 0) {
221
- ue = console.log, de = console.info, ge = console.warn, te = console.error, pe = console.group, q = console.groupCollapsed, _e = console.groupEnd;
222
+ ue = console.log, pe = console.info, ge = console.warn, te = console.error, ye = console.group, q = console.groupCollapsed, _e = console.groupEnd;
222
223
  var c = {
223
224
  configurable: !0,
224
225
  enumerable: !0,
@@ -251,7 +252,7 @@ function Ho() {
251
252
  value: ue
252
253
  }),
253
254
  info: T({}, c, {
254
- value: de
255
+ value: pe
255
256
  }),
256
257
  warn: T({}, c, {
257
258
  value: ge
@@ -260,7 +261,7 @@ function Ho() {
260
261
  value: te
261
262
  }),
262
263
  group: T({}, c, {
263
- value: pe
264
+ value: ye
264
265
  }),
265
266
  groupCollapsed: T({}, c, {
266
267
  value: q
@@ -270,7 +271,7 @@ function Ho() {
270
271
  })
271
272
  });
272
273
  }
273
- D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
+ D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
275
  }
275
276
  }
276
277
  var lt = m.ReactCurrentDispatcher, Ne;
@@ -287,16 +288,16 @@ function Ho() {
287
288
  ` + Ne + c;
288
289
  }
289
290
  }
290
- var Oe = !1, $t;
291
+ var Oe = !1, Rt;
291
292
  {
292
293
  var ao = typeof WeakMap == "function" ? WeakMap : Map;
293
- $t = new ao();
294
+ Rt = new ao();
294
295
  }
295
296
  function on(c, E) {
296
297
  if (!c || Oe)
297
298
  return "";
298
299
  {
299
- var x = $t.get(c);
300
+ var x = Rt.get(c);
300
301
  if (x !== void 0)
301
302
  return x;
302
303
  }
@@ -342,18 +343,18 @@ function Ho() {
342
343
  if (oe && P && typeof oe.stack == "string") {
343
344
  for (var F = oe.stack.split(`
344
345
  `), ne = P.stack.split(`
345
- `), G = F.length - 1, z = ne.length - 1; G >= 1 && z >= 0 && F[G] !== ne[z]; )
346
- z--;
347
- for (; G >= 1 && z >= 0; G--, z--)
348
- if (F[G] !== ne[z]) {
349
- if (G !== 1 || z !== 1)
346
+ `), G = F.length - 1, K = ne.length - 1; G >= 1 && K >= 0 && F[G] !== ne[K]; )
347
+ K--;
348
+ for (; G >= 1 && K >= 0; G--, K--)
349
+ if (F[G] !== ne[K]) {
350
+ if (G !== 1 || K !== 1)
350
351
  do
351
- if (G--, z--, z < 0 || F[G] !== ne[z]) {
352
+ if (G--, K--, K < 0 || F[G] !== ne[K]) {
352
353
  var se = `
353
354
  ` + F[G].replace(" at new ", " at ");
354
- return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && $t.set(c, se), se;
355
+ return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Rt.set(c, se), se;
355
356
  }
356
- while (G >= 1 && z >= 0);
357
+ while (G >= 1 && K >= 0);
357
358
  break;
358
359
  }
359
360
  }
@@ -361,7 +362,7 @@ function Ho() {
361
362
  Oe = !1, lt.current = L, De(), Error.prepareStackTrace = N;
362
363
  }
363
364
  var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
364
- return typeof c == "function" && $t.set(c, ke), ke;
365
+ return typeof c == "function" && Rt.set(c, ke), ke;
365
366
  }
366
367
  function oo(c, E, x) {
367
368
  return on(c, !1);
@@ -370,7 +371,7 @@ function Ho() {
370
371
  var E = c.prototype;
371
372
  return !!(E && E.isReactComponent);
372
373
  }
373
- function Rt(c, E, x) {
374
+ function Ft(c, E, x) {
374
375
  if (c == null)
375
376
  return "";
376
377
  if (typeof c == "function")
@@ -378,7 +379,7 @@ function Ho() {
378
379
  if (typeof c == "string")
379
380
  return xe(c);
380
381
  switch (c) {
381
- case d:
382
+ case f:
382
383
  return xe("Suspense");
383
384
  case s:
384
385
  return xe("SuspenseList");
@@ -387,12 +388,12 @@ function Ho() {
387
388
  switch (c.$$typeof) {
388
389
  case i:
389
390
  return oo(c.render);
390
- case g:
391
- return Rt(c.type, E, x);
391
+ case h:
392
+ return Ft(c.type, E, x);
392
393
  case v: {
393
394
  var P = c, N = P._payload, L = P._init;
394
395
  try {
395
- return Rt(L(N), E, x);
396
+ return Ft(L(N), E, x);
396
397
  } catch {
397
398
  }
398
399
  }
@@ -400,9 +401,9 @@ function Ho() {
400
401
  return "";
401
402
  }
402
403
  var ut = Object.prototype.hasOwnProperty, ln = {}, un = m.ReactDebugCurrentFrame;
403
- function Ft(c) {
404
+ function Ct(c) {
404
405
  if (c) {
405
- var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
406
+ var E = c._owner, x = Ft(c.type, c._source, E ? E.type : null);
406
407
  un.setExtraStackFrame(x);
407
408
  } else
408
409
  un.setExtraStackFrame(null);
@@ -422,7 +423,7 @@ function Ho() {
422
423
  } catch (G) {
423
424
  F = G;
424
425
  }
425
- F && !(F instanceof Error) && (Ft(N), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, I, typeof F), Ft(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ft(N), h("Failed %s type: %s", x, F.message), Ft(null));
426
+ F && !(F instanceof Error) && (Ct(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, I, typeof F), Ct(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ct(N), g("Failed %s type: %s", x, F.message), Ct(null));
426
427
  }
427
428
  }
428
429
  }
@@ -448,7 +449,7 @@ function Ho() {
448
449
  }
449
450
  function cn(c) {
450
451
  if (co(c))
451
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
452
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
452
453
  }
453
454
  var st = m.ReactCurrentOwner, fo = {
454
455
  key: !0,
@@ -476,13 +477,13 @@ function Ho() {
476
477
  function vo(c, E) {
477
478
  if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
478
479
  var x = $(st.current.type);
479
- ir[x] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), ir[x] = !0);
480
+ ir[x] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), ir[x] = !0);
480
481
  }
481
482
  }
482
483
  function mo(c, E) {
483
484
  {
484
485
  var x = function() {
485
- fn || (fn = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
486
+ fn || (fn = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
486
487
  };
487
488
  x.isReactWarning = !0, Object.defineProperty(c, "key", {
488
489
  get: x,
@@ -493,7 +494,7 @@ function Ho() {
493
494
  function ho(c, E) {
494
495
  {
495
496
  var x = function() {
496
- dn || (dn = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
497
+ dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
497
498
  };
498
499
  x.isReactWarning = !0, Object.defineProperty(c, "ref", {
499
500
  get: x,
@@ -542,8 +543,8 @@ function Ho() {
542
543
  I[L] === void 0 && (I[L] = G[L]);
543
544
  }
544
545
  if (F || ne) {
545
- var z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
546
- F && mo(I, z), ne && ho(I, z);
546
+ var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
547
+ F && mo(I, K), ne && ho(I, K);
547
548
  }
548
549
  return go(c, F, ne, N, P, st.current, I);
549
550
  }
@@ -551,7 +552,7 @@ function Ho() {
551
552
  var lr = m.ReactCurrentOwner, pn = m.ReactDebugCurrentFrame;
552
553
  function Ge(c) {
553
554
  if (c) {
554
- var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
555
+ var E = c._owner, x = Ft(c.type, c._source, E ? E.type : null);
555
556
  pn.setExtraStackFrame(x);
556
557
  } else
557
558
  pn.setExtraStackFrame(null);
@@ -599,7 +600,7 @@ Check the top-level render call using <` + x + ">.");
599
600
  return;
600
601
  vn[x] = !0;
601
602
  var P = "";
602
- c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
603
+ c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
603
604
  }
604
605
  }
605
606
  function hn(c, E) {
@@ -631,7 +632,7 @@ Check the top-level render call using <` + x + ">.");
631
632
  x = E.propTypes;
632
633
  else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
633
634
  // Inner props are checked in the reconciler.
634
- E.$$typeof === g))
635
+ E.$$typeof === h))
635
636
  x = E.propTypes;
636
637
  else
637
638
  return;
@@ -641,9 +642,9 @@ Check the top-level render call using <` + x + ">.");
641
642
  } else if (E.PropTypes !== void 0 && !ur) {
642
643
  ur = !0;
643
644
  var N = $(E);
644
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
645
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
645
646
  }
646
- typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
647
+ typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
647
648
  }
648
649
  }
649
650
  function xo(c) {
@@ -651,28 +652,28 @@ Check the top-level render call using <` + x + ">.");
651
652
  for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
652
653
  var P = E[x];
653
654
  if (P !== "children" && P !== "key") {
654
- Ge(c), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
655
+ Ge(c), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
655
656
  break;
656
657
  }
657
658
  }
658
- c.ref !== null && (Ge(c), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
+ c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
660
  }
660
661
  }
661
662
  var gn = {};
662
663
  function bn(c, E, x, P, N, L) {
663
664
  {
664
- var I = k(c);
665
+ var I = j(c);
665
666
  if (!I) {
666
667
  var F = "";
667
668
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
668
669
  var ne = wo();
669
670
  ne ? F += ne : F += yn();
670
671
  var G;
671
- c === null ? G = "null" : or(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
672
+ c === null ? G = "null" : or(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
672
673
  }
673
- var z = bo(c, E, x, N, L);
674
- if (z == null)
675
- return z;
674
+ var K = bo(c, E, x, N, L);
675
+ if (K == null)
676
+ return K;
676
677
  if (I) {
677
678
  var se = E.children;
678
679
  if (se !== void 0)
@@ -682,7 +683,7 @@ Check the top-level render call using <` + x + ">.");
682
683
  hn(se[Ye], c);
683
684
  Object.freeze && Object.freeze(se);
684
685
  } else
685
- h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
686
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
686
687
  else
687
688
  hn(se, c);
688
689
  }
@@ -692,7 +693,7 @@ Check the top-level render call using <` + x + ">.");
692
693
  }), cr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
693
694
  if (!gn[ke + cr]) {
694
695
  var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
695
- h(`A props object containing a "key" prop is being spread into JSX:
696
+ g(`A props object containing a "key" prop is being spread into JSX:
696
697
  let props = %s;
697
698
  <%s {...props} />
698
699
  React keys must be passed directly to JSX without using spread:
@@ -700,7 +701,7 @@ React keys must be passed directly to JSX without using spread:
700
701
  <%s key={someKey} {...props} />`, cr, ke, $o, ke), gn[ke + cr] = !0;
701
702
  }
702
703
  }
703
- return c === n ? xo(z) : So(z), z;
704
+ return c === n ? xo(K) : So(K), K;
704
705
  }
705
706
  }
706
707
  function Oo(c, E, x) {
@@ -710,21 +711,21 @@ React keys must be passed directly to JSX without using spread:
710
711
  return bn(c, E, x, !1);
711
712
  }
712
713
  var Ao = Po, To = Oo;
713
- ft.Fragment = n, ft.jsx = Ao, ft.jsxs = To;
714
- }()), ft;
714
+ dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
715
+ }()), dt;
715
716
  }
716
- process.env.NODE_ENV === "production" ? Tr.exports = Bo() : Tr.exports = Ho();
717
+ process.env.NODE_ENV === "production" ? Tr.exports = Ho() : Tr.exports = Vo();
717
718
  var R = Tr.exports;
718
- function Vo(t, e) {
719
+ function qo(t, e) {
719
720
  return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
720
721
  }
721
722
  function aa(t, e) {
722
723
  return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
723
724
  }
724
- function qo(t) {
725
+ function Go(t) {
725
726
  return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e, r) => (r in t && t[r] !== null && (e[r] = t[r]), e), {});
726
727
  }
727
- function Go(t, e = 3, r = 10) {
728
+ function Yo(t, e = 3, r = 10) {
728
729
  return new Promise((n, a) => {
729
730
  const o = t();
730
731
  if (o) {
@@ -738,44 +739,44 @@ function Go(t, e = 3, r = 10) {
738
739
  }, r);
739
740
  });
740
741
  }
741
- var Yo = function(e) {
742
- return zo(e) && !Ko(e);
742
+ var zo = function(e) {
743
+ return Ko(e) && !Xo(e);
743
744
  };
744
- function zo(t) {
745
+ function Ko(t) {
745
746
  return !!t && typeof t == "object";
746
747
  }
747
- function Ko(t) {
748
+ function Xo(t) {
748
749
  var e = Object.prototype.toString.call(t);
749
- return e === "[object RegExp]" || e === "[object Date]" || Qo(t);
750
- }
751
- var Xo = typeof Symbol == "function" && Symbol.for, Jo = Xo ? Symbol.for("react.element") : 60103;
752
- function Qo(t) {
753
- return t.$$typeof === Jo;
750
+ return e === "[object RegExp]" || e === "[object Date]" || Zo(t);
754
751
  }
752
+ var Jo = typeof Symbol == "function" && Symbol.for, Qo = Jo ? Symbol.for("react.element") : 60103;
755
753
  function Zo(t) {
754
+ return t.$$typeof === Qo;
755
+ }
756
+ function ei(t) {
756
757
  return Array.isArray(t) ? [] : {};
757
758
  }
758
- function St(t, e) {
759
- return e.clone !== !1 && e.isMergeableObject(t) ? Ze(Zo(t), t, e) : t;
759
+ function xt(t, e) {
760
+ return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ei(t), t, e) : t;
760
761
  }
761
- function ei(t, e, r) {
762
+ function ti(t, e, r) {
762
763
  return t.concat(e).map(function(n) {
763
- return St(n, r);
764
+ return xt(n, r);
764
765
  });
765
766
  }
766
- function ti(t, e) {
767
+ function ri(t, e) {
767
768
  if (!e.customMerge)
768
769
  return Ze;
769
770
  var r = e.customMerge(t);
770
771
  return typeof r == "function" ? r : Ze;
771
772
  }
772
- function ri(t) {
773
+ function ni(t) {
773
774
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
774
775
  return Object.propertyIsEnumerable.call(t, e);
775
776
  }) : [];
776
777
  }
777
778
  function Sn(t) {
778
- return Object.keys(t).concat(ri(t));
779
+ return Object.keys(t).concat(ni(t));
779
780
  }
780
781
  function oa(t, e) {
781
782
  try {
@@ -784,21 +785,21 @@ function oa(t, e) {
784
785
  return !1;
785
786
  }
786
787
  }
787
- function ni(t, e) {
788
+ function ai(t, e) {
788
789
  return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
789
790
  }
790
- function ai(t, e, r) {
791
+ function oi(t, e, r) {
791
792
  var n = {};
792
793
  return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
793
- n[a] = St(t[a], r);
794
+ n[a] = xt(t[a], r);
794
795
  }), Sn(e).forEach(function(a) {
795
- ni(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ti(a, r)(t[a], e[a], r) : n[a] = St(e[a], r));
796
+ ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] = xt(e[a], r));
796
797
  }), n;
797
798
  }
798
799
  function Ze(t, e, r) {
799
- r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || Yo, r.cloneUnlessOtherwiseSpecified = St;
800
+ r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified = xt;
800
801
  var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
801
- return o ? n ? r.arrayMerge(t, e, r) : ai(t, e, r) : St(e, r);
802
+ return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) : xt(e, r);
802
803
  }
803
804
  Ze.all = function(e, r) {
804
805
  if (!Array.isArray(e))
@@ -807,9 +808,9 @@ Ze.all = function(e, r) {
807
808
  return Ze(n, a, r);
808
809
  }, {});
809
810
  };
810
- var oi = Ze, ii = oi;
811
- const li = /* @__PURE__ */ Wo(ii);
812
- var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = SyntaxError, Ot = TypeError, di = URIError, pi = function() {
811
+ var ii = Ze, li = ii;
812
+ const ui = /* @__PURE__ */ Uo(li);
813
+ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError, Pt = TypeError, pi = URIError, yi = function() {
813
814
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
814
815
  return !1;
815
816
  if (typeof Symbol.iterator == "symbol")
@@ -832,32 +833,32 @@ var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = Synta
832
833
  return !1;
833
834
  }
834
835
  return !0;
835
- }, xn = typeof Symbol < "u" && Symbol, yi = pi, vi = function() {
836
- return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yi();
836
+ }, xn = typeof Symbol < "u" && Symbol, vi = yi, mi = function() {
837
+ return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vi();
837
838
  }, fr = {
838
839
  __proto__: null,
839
840
  foo: {}
840
- }, mi = Object, hi = function() {
841
- return { __proto__: fr }.foo === fr.foo && !(fr instanceof mi);
842
- }, gi = "Function.prototype.bind called on incompatible ", bi = Object.prototype.toString, wi = Math.max, Ei = "[object Function]", On = function(e, r) {
841
+ }, hi = Object, gi = function() {
842
+ return { __proto__: fr }.foo === fr.foo && !(fr instanceof hi);
843
+ }, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]", On = function(e, r) {
843
844
  for (var n = [], a = 0; a < e.length; a += 1)
844
845
  n[a] = e[a];
845
846
  for (var o = 0; o < r.length; o += 1)
846
847
  n[o + e.length] = r[o];
847
848
  return n;
848
- }, Si = function(e, r) {
849
+ }, xi = function(e, r) {
849
850
  for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
850
851
  n[o] = e[a];
851
852
  return n;
852
- }, xi = function(t, e) {
853
+ }, Oi = function(t, e) {
853
854
  for (var r = "", n = 0; n < t.length; n += 1)
854
855
  r += t[n], n + 1 < t.length && (r += e);
855
856
  return r;
856
- }, Oi = function(e) {
857
+ }, Pi = function(e) {
857
858
  var r = this;
858
- if (typeof r != "function" || bi.apply(r) !== Ei)
859
- throw new TypeError(gi + r);
860
- for (var n = Si(arguments, 1), a, o = function() {
859
+ if (typeof r != "function" || wi.apply(r) !== Si)
860
+ throw new TypeError(bi + r);
861
+ for (var n = xi(arguments, 1), a, o = function() {
861
862
  if (this instanceof a) {
862
863
  var s = r.apply(
863
864
  this,
@@ -869,15 +870,15 @@ var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = Synta
869
870
  e,
870
871
  On(n, arguments)
871
872
  );
872
- }, l = wi(0, r.length - n.length), u = [], i = 0; i < l; i++)
873
+ }, l = Ei(0, r.length - n.length), u = [], i = 0; i < l; i++)
873
874
  u[i] = "$" + i;
874
- if (a = Function("binder", "return function (" + xi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
875
- var d = function() {
875
+ if (a = Function("binder", "return function (" + Oi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
876
+ var f = function() {
876
877
  };
877
- d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
878
+ f.prototype = r.prototype, a.prototype = new f(), f.prototype = null;
878
879
  }
879
880
  return a;
880
- }, Pi = Oi, qr = Function.prototype.bind || Pi, Ai = Function.prototype.call, Ti = Object.prototype.hasOwnProperty, $i = qr, Ri = $i.call(Ai, Ti), C, Fi = ui, Ci = si, Ii = ci, Mi = fi, et = ia, Qe = Ot, _i = di, la = Function, dr = function(t) {
881
+ }, Ai = Pi, qr = Function.prototype.bind || Ai, Ti = Function.prototype.call, $i = Object.prototype.hasOwnProperty, Ri = qr, Fi = Ri.call(Ti, $i), C, Ci = si, Ii = ci, Mi = fi, _i = di, et = ia, Qe = Pt, Di = pi, la = Function, dr = function(t) {
881
882
  try {
882
883
  return la('"use strict"; return (' + t + ").constructor;")();
883
884
  } catch {
@@ -891,7 +892,7 @@ if (Be)
891
892
  }
892
893
  var pr = function() {
893
894
  throw new Qe();
894
- }, Di = Be ? function() {
895
+ }, Ni = Be ? function() {
895
896
  try {
896
897
  return arguments.callee, pr;
897
898
  } catch {
@@ -901,9 +902,9 @@ var pr = function() {
901
902
  return pr;
902
903
  }
903
904
  }
904
- }() : pr, Ke = vi(), Ni = hi(), Z = Object.getPrototypeOf || (Ni ? function(t) {
905
+ }() : pr, Ke = mi(), ki = gi(), Z = Object.getPrototypeOf || (ki ? function(t) {
905
906
  return t.__proto__;
906
- } : null), Je = {}, ki = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
907
+ } : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
907
908
  __proto__: null,
908
909
  "%AggregateError%": typeof AggregateError > "u" ? C : AggregateError,
909
910
  "%Array%": Array,
@@ -925,10 +926,10 @@ var pr = function() {
925
926
  "%decodeURIComponent%": decodeURIComponent,
926
927
  "%encodeURI%": encodeURI,
927
928
  "%encodeURIComponent%": encodeURIComponent,
928
- "%Error%": Fi,
929
+ "%Error%": Ci,
929
930
  "%eval%": eval,
930
931
  // eslint-disable-line no-eval
931
- "%EvalError%": Ci,
932
+ "%EvalError%": Ii,
932
933
  "%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
933
934
  "%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
934
935
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
@@ -950,8 +951,8 @@ var pr = function() {
950
951
  "%parseInt%": parseInt,
951
952
  "%Promise%": typeof Promise > "u" ? C : Promise,
952
953
  "%Proxy%": typeof Proxy > "u" ? C : Proxy,
953
- "%RangeError%": Ii,
954
- "%ReferenceError%": Mi,
954
+ "%RangeError%": Mi,
955
+ "%ReferenceError%": _i,
955
956
  "%Reflect%": typeof Reflect > "u" ? C : Reflect,
956
957
  "%RegExp%": RegExp,
957
958
  "%Set%": typeof Set > "u" ? C : Set,
@@ -961,14 +962,14 @@ var pr = function() {
961
962
  "%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : C,
962
963
  "%Symbol%": Ke ? Symbol : C,
963
964
  "%SyntaxError%": et,
964
- "%ThrowTypeError%": Di,
965
- "%TypedArray%": ki,
965
+ "%ThrowTypeError%": Ni,
966
+ "%TypedArray%": ji,
966
967
  "%TypeError%": Qe,
967
968
  "%Uint8Array%": typeof Uint8Array > "u" ? C : Uint8Array,
968
969
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? C : Uint8ClampedArray,
969
970
  "%Uint16Array%": typeof Uint16Array > "u" ? C : Uint16Array,
970
971
  "%Uint32Array%": typeof Uint32Array > "u" ? C : Uint32Array,
971
- "%URIError%": _i,
972
+ "%URIError%": Di,
972
973
  "%WeakMap%": typeof WeakMap > "u" ? C : WeakMap,
973
974
  "%WeakRef%": typeof WeakRef > "u" ? C : WeakRef,
974
975
  "%WeakSet%": typeof WeakSet > "u" ? C : WeakSet
@@ -977,10 +978,10 @@ if (Z)
977
978
  try {
978
979
  null.error;
979
980
  } catch (t) {
980
- var ji = Z(Z(t));
981
- He["%Error.prototype%"] = ji;
981
+ var Li = Z(Z(t));
982
+ He["%Error.prototype%"] = Li;
982
983
  }
983
- var Li = function t(e) {
984
+ var Wi = function t(e) {
984
985
  var r;
985
986
  if (e === "%AsyncFunction%")
986
987
  r = dr("async function () {}");
@@ -1049,21 +1050,21 @@ var Li = function t(e) {
1049
1050
  "%URIErrorPrototype%": ["URIError", "prototype"],
1050
1051
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1051
1052
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1052
- }, Pt = qr, Lt = Ri, Wi = Pt.call(Function.call, Array.prototype.concat), Ui = Pt.call(Function.apply, Array.prototype.splice), An = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Bi = Pt.call(Function.call, RegExp.prototype.exec), Hi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Vi = /\\(\\)?/g, qi = function(e) {
1053
+ }, At = qr, Lt = Fi, Ui = At.call(Function.call, Array.prototype.concat), Bi = At.call(Function.apply, Array.prototype.splice), An = At.call(Function.call, String.prototype.replace), Wt = At.call(Function.call, String.prototype.slice), Hi = At.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qi = /\\(\\)?/g, Gi = function(e) {
1053
1054
  var r = Wt(e, 0, 1), n = Wt(e, -1);
1054
1055
  if (r === "%" && n !== "%")
1055
1056
  throw new et("invalid intrinsic syntax, expected closing `%`");
1056
1057
  if (n === "%" && r !== "%")
1057
1058
  throw new et("invalid intrinsic syntax, expected opening `%`");
1058
1059
  var a = [];
1059
- return An(e, Hi, function(o, l, u, i) {
1060
- a[a.length] = u ? An(i, Vi, "$1") : l || o;
1060
+ return An(e, Vi, function(o, l, u, i) {
1061
+ a[a.length] = u ? An(i, qi, "$1") : l || o;
1061
1062
  }), a;
1062
- }, Gi = function(e, r) {
1063
+ }, Yi = function(e, r) {
1063
1064
  var n = e, a;
1064
1065
  if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1065
1066
  var o = He[n];
1066
- if (o === Je && (o = Li(n)), typeof o > "u" && !r)
1067
+ if (o === Je && (o = Wi(n)), typeof o > "u" && !r)
1067
1068
  throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
1068
1069
  return {
1069
1070
  alias: a,
@@ -1077,15 +1078,15 @@ var Li = function t(e) {
1077
1078
  throw new Qe("intrinsic name must be a non-empty string");
1078
1079
  if (arguments.length > 1 && typeof r != "boolean")
1079
1080
  throw new Qe('"allowMissing" argument must be a boolean');
1080
- if (Bi(/^%?[^%]*%?$/, e) === null)
1081
+ if (Hi(/^%?[^%]*%?$/, e) === null)
1081
1082
  throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1082
- var n = qi(e), a = n.length > 0 ? n[0] : "", o = Gi("%" + a + "%", r), l = o.name, u = o.value, i = !1, d = o.alias;
1083
- d && (a = d[0], Ui(n, Wi([0, 1], d)));
1084
- for (var s = 1, g = !0; s < n.length; s += 1) {
1085
- var v = n[s], w = Wt(v, 0, 1), f = Wt(v, -1);
1086
- if ((w === '"' || w === "'" || w === "`" || f === '"' || f === "'" || f === "`") && w !== f)
1083
+ var n = Gi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
1084
+ f && (a = f[0], Bi(n, Ui([0, 1], f)));
1085
+ for (var s = 1, h = !0; s < n.length; s += 1) {
1086
+ var v = n[s], w = Wt(v, 0, 1), d = Wt(v, -1);
1087
+ if ((w === '"' || w === "'" || w === "`" || d === '"' || d === "'" || d === "`") && w !== d)
1087
1088
  throw new et("property names with quotes must have matching quotes");
1088
- if ((v === "constructor" || !g) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
1089
+ if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
1089
1090
  u = He[l];
1090
1091
  else if (u != null) {
1091
1092
  if (!(v in u)) {
@@ -1095,10 +1096,10 @@ var Li = function t(e) {
1095
1096
  }
1096
1097
  if (Be && s + 1 >= n.length) {
1097
1098
  var y = Be(u, v);
1098
- g = !!y, g && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1099
+ h = !!y, h && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1099
1100
  } else
1100
- g = Lt(u, v), u = u[v];
1101
- g && !i && (He[l] = u);
1101
+ h = Lt(u, v), u = u[v];
1102
+ h && !i && (He[l] = u);
1102
1103
  }
1103
1104
  }
1104
1105
  return u;
@@ -1115,14 +1116,14 @@ function Gr() {
1115
1116
  }
1116
1117
  return yr = e, yr;
1117
1118
  }
1118
- var Yi = nt, Nt = Yi("%Object.getOwnPropertyDescriptor%", !0);
1119
+ var zi = nt, Nt = zi("%Object.getOwnPropertyDescriptor%", !0);
1119
1120
  if (Nt)
1120
1121
  try {
1121
1122
  Nt([], "length");
1122
1123
  } catch {
1123
1124
  Nt = null;
1124
1125
  }
1125
- var sa = Nt, $n = Gr(), zi = ia, Xe = Ot, Rn = sa, Ki = function(e, r, n) {
1126
+ var sa = Nt, $n = Gr(), Ki = ia, Xe = Pt, Rn = sa, Xi = function(e, r, n) {
1126
1127
  if (!e || typeof e != "object" && typeof e != "function")
1127
1128
  throw new Xe("`obj` must be an object or a function`");
1128
1129
  if (typeof r != "string" && typeof r != "symbol")
@@ -1146,7 +1147,7 @@ var sa = Nt, $n = Gr(), zi = ia, Xe = Ot, Rn = sa, Ki = function(e, r, n) {
1146
1147
  else if (u || !a && !o && !l)
1147
1148
  e[r] = n;
1148
1149
  else
1149
- throw new zi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1150
+ throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1150
1151
  }, $r = Gr(), ca = function() {
1151
1152
  return !!$r;
1152
1153
  };
@@ -1159,17 +1160,17 @@ ca.hasArrayLengthDefineBug = function() {
1159
1160
  return !0;
1160
1161
  }
1161
1162
  };
1162
- var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Ot, Zi = Ji("%Math.floor%"), el = function(e, r) {
1163
+ var Ji = ca, Qi = nt, Fn = Xi, Zi = Ji(), Cn = sa, In = Pt, el = Qi("%Math.floor%"), tl = function(e, r) {
1163
1164
  if (typeof e != "function")
1164
1165
  throw new In("`fn` is not a function");
1165
- if (typeof r != "number" || r < 0 || r > 4294967295 || Zi(r) !== r)
1166
+ if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
1166
1167
  throw new In("`length` must be a positive 32-bit integer");
1167
1168
  var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1168
1169
  if ("length" in e && Cn) {
1169
1170
  var l = Cn(e, "length");
1170
1171
  l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
1171
1172
  }
1172
- return (a || o || !n) && (Qi ? Fn(
1173
+ return (a || o || !n) && (Zi ? Fn(
1173
1174
  /** @type {Parameters<define>[0]} */
1174
1175
  e,
1175
1176
  "length",
@@ -1184,14 +1185,14 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Ot, Zi = Ji("%Math.floor
1184
1185
  )), e;
1185
1186
  };
1186
1187
  (function(t) {
1187
- var e = qr, r = nt, n = el, a = Ot, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), d = r("%Math.max%");
1188
+ var e = qr, r = nt, n = tl, a = Pt, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), f = r("%Math.max%");
1188
1189
  t.exports = function(v) {
1189
1190
  if (typeof v != "function")
1190
1191
  throw new a("a function is required");
1191
1192
  var w = u(e, l, arguments);
1192
1193
  return n(
1193
1194
  w,
1194
- 1 + d(0, v.length - (arguments.length - 1)),
1195
+ 1 + f(0, v.length - (arguments.length - 1)),
1195
1196
  !0
1196
1197
  );
1197
1198
  };
@@ -1200,15 +1201,15 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Ot, Zi = Ji("%Math.floor
1200
1201
  };
1201
1202
  i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
1202
1203
  })(ua);
1203
- var tl = ua.exports, fa = nt, da = tl, rl = da(fa("String.prototype.indexOf")), nl = function(e, r) {
1204
+ var rl = ua.exports, fa = nt, da = rl, nl = da(fa("String.prototype.indexOf")), al = function(e, r) {
1204
1205
  var n = fa(e, !!r);
1205
- return typeof n == "function" && rl(e, ".prototype.") > -1 ? da(n) : n;
1206
+ return typeof n == "function" && nl(e, ".prototype.") > -1 ? da(n) : n;
1206
1207
  };
1207
- const al = {}, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1208
+ const ol = {}, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1208
1209
  __proto__: null,
1209
- default: al
1210
- }, Symbol.toStringTag, { value: "Module" })), il = /* @__PURE__ */ Uo(ol);
1211
- var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ll = typeof WeakMap == "function" && WeakMap.prototype, ht = ll ? WeakMap.prototype.has : null, ul = typeof WeakSet == "function" && WeakSet.prototype, gt = ul ? WeakSet.prototype.has : null, sl = typeof WeakRef == "function" && WeakRef.prototype, Dn = sl ? WeakRef.prototype.deref : null, cl = Boolean.prototype.valueOf, fl = Object.prototype.toString, dl = Function.prototype.toString, pl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, yl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, vl = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1210
+ default: ol
1211
+ }, Symbol.toStringTag, { value: "Module" })), ll = /* @__PURE__ */ Bo(il);
1212
+ var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ul = typeof WeakMap == "function" && WeakMap.prototype, gt = ul ? WeakMap.prototype.has : null, sl = typeof WeakSet == "function" && WeakSet.prototype, bt = sl ? WeakSet.prototype.has : null, cl = typeof WeakRef == "function" && WeakRef.prototype, Dn = cl ? WeakRef.prototype.deref : null, fl = Boolean.prototype.valueOf, dl = Object.prototype.toString, pl = Function.prototype.toString, yl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, vl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, ml = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1212
1213
  return t.__proto__;
1213
1214
  } : null);
1214
1215
  function Wn(t, e) {
@@ -1224,7 +1225,7 @@ function Wn(t, e) {
1224
1225
  }
1225
1226
  return Re.call(e, r, "$&_");
1226
1227
  }
1227
- var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a) {
1228
+ var Cr = ll, Un = Cr.custom, Bn = ma(Un) ? Un : null, hl = function t(e, r, n, a) {
1228
1229
  var o = r || {};
1229
1230
  if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1230
1231
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1253,19 +1254,19 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1253
1254
  return u ? Wn(e, i) : i;
1254
1255
  }
1255
1256
  if (typeof e == "bigint") {
1256
- var d = String(e) + "n";
1257
- return u ? Wn(e, d) : d;
1257
+ var f = String(e) + "n";
1258
+ return u ? Wn(e, f) : f;
1258
1259
  }
1259
1260
  var s = typeof o.depth > "u" ? 5 : o.depth;
1260
1261
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
1261
1262
  return Ir(e) ? "[Array]" : "[Object]";
1262
- var g = _l(o, n);
1263
+ var h = Dl(o, n);
1263
1264
  if (typeof a > "u")
1264
1265
  a = [];
1265
1266
  else if (ha(a, e) >= 0)
1266
1267
  return "[Circular]";
1267
1268
  function v($, T, D) {
1268
- if (T && (a = vl.call(a), a.push(T)), D) {
1269
+ if (T && (a = ml.call(a), a.push(T)), D) {
1269
1270
  var ue = {
1270
1271
  depth: o.depth
1271
1272
  };
@@ -1274,25 +1275,25 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1274
1275
  return t($, o, n + 1, a);
1275
1276
  }
1276
1277
  if (typeof e == "function" && !Hn(e)) {
1277
- var w = Pl(e), f = It(e, v);
1278
- return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
1278
+ var w = Al(e), d = It(e, v);
1279
+ return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (d.length > 0 ? " { " + Ee.call(d, ", ") + " }" : "");
1279
1280
  }
1280
1281
  if (ma(e)) {
1281
1282
  var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Fr.call(e);
1282
- return typeof e == "object" && !tt ? dt(y) : y;
1283
+ return typeof e == "object" && !tt ? pt(y) : y;
1283
1284
  }
1284
- if (Cl(e)) {
1285
- for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], h = 0; h < m.length; h++)
1286
- p += " " + m[h].name + "=" + va(hl(m[h].value), "double", o);
1285
+ if (Il(e)) {
1286
+ for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1287
+ p += " " + m[g].name + "=" + va(gl(m[g].value), "double", o);
1287
1288
  return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
1288
1289
  }
1289
1290
  if (Ir(e)) {
1290
1291
  if (e.length === 0)
1291
1292
  return "[]";
1292
1293
  var b = It(e, v);
1293
- return g && !Ml(b) ? "[" + Mr(b, g) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1294
+ return h && !_l(b) ? "[" + Mr(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1294
1295
  }
1295
- if (bl(e)) {
1296
+ if (wl(e)) {
1296
1297
  var S = It(e, v);
1297
1298
  return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(kn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1298
1299
  }
@@ -1302,39 +1303,39 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1302
1303
  if (l !== "symbol" && typeof e.inspect == "function")
1303
1304
  return e.inspect();
1304
1305
  }
1305
- if (Al(e)) {
1306
+ if (Tl(e)) {
1306
1307
  var O = [];
1307
1308
  return Mn && Mn.call(e, function($, T) {
1308
1309
  O.push(v(T, e, !0) + " => " + v($, e));
1309
- }), Vn("Map", Ut.call(e), O, g);
1310
+ }), Vn("Map", Ut.call(e), O, h);
1310
1311
  }
1311
- if (Rl(e)) {
1312
+ if (Fl(e)) {
1312
1313
  var _ = [];
1313
1314
  return _n && _n.call(e, function($) {
1314
1315
  _.push(v($, e));
1315
- }), Vn("Set", Bt.call(e), _, g);
1316
+ }), Vn("Set", Bt.call(e), _, h);
1316
1317
  }
1317
- if (Tl(e))
1318
+ if ($l(e))
1318
1319
  return gr("WeakMap");
1319
- if (Fl(e))
1320
+ if (Cl(e))
1320
1321
  return gr("WeakSet");
1321
- if ($l(e))
1322
+ if (Rl(e))
1322
1323
  return gr("WeakRef");
1323
- if (El(e))
1324
- return dt(v(Number(e)));
1325
- if (xl(e))
1326
- return dt(v(Rr.call(e)));
1327
1324
  if (Sl(e))
1328
- return dt(cl.call(e));
1329
- if (wl(e))
1330
- return dt(v(String(e)));
1325
+ return pt(v(Number(e)));
1326
+ if (Ol(e))
1327
+ return pt(v(Rr.call(e)));
1328
+ if (xl(e))
1329
+ return pt(fl.call(e));
1330
+ if (El(e))
1331
+ return pt(v(String(e)));
1331
1332
  if (typeof window < "u" && e === window)
1332
1333
  return "{ [object Window] }";
1333
1334
  if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
1334
1335
  return "{ [object globalThis] }";
1335
- if (!gl(e) && !Hn(e)) {
1336
- var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(kn.call([], k || [], H || []), ": ") + "] " : "");
1337
- return M.length === 0 ? V + "{}" : g ? V + "{" + Mr(M, g) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1336
+ if (!bl(e) && !Hn(e)) {
1337
+ var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", z = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (j || H ? "[" + Ee.call(kn.call([], j || [], H || []), ": ") + "] " : "");
1338
+ return M.length === 0 ? V + "{}" : h ? V + "{" + Mr(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1338
1339
  }
1339
1340
  return String(e);
1340
1341
  };
@@ -1342,28 +1343,28 @@ function va(t, e, r) {
1342
1343
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
1343
1344
  return n + t + n;
1344
1345
  }
1345
- function hl(t) {
1346
+ function gl(t) {
1346
1347
  return Re.call(String(t), /"/g, "&quot;");
1347
1348
  }
1348
1349
  function Ir(t) {
1349
1350
  return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
1350
1351
  }
1351
- function gl(t) {
1352
+ function bl(t) {
1352
1353
  return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
1353
1354
  }
1354
1355
  function Hn(t) {
1355
1356
  return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
1356
1357
  }
1357
- function bl(t) {
1358
+ function wl(t) {
1358
1359
  return Ie(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
1359
1360
  }
1360
- function wl(t) {
1361
+ function El(t) {
1361
1362
  return Ie(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
1362
1363
  }
1363
- function El(t) {
1364
+ function Sl(t) {
1364
1365
  return Ie(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
1365
1366
  }
1366
- function Sl(t) {
1367
+ function xl(t) {
1367
1368
  return Ie(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
1368
1369
  }
1369
1370
  function ma(t) {
@@ -1379,7 +1380,7 @@ function ma(t) {
1379
1380
  }
1380
1381
  return !1;
1381
1382
  }
1382
- function xl(t) {
1383
+ function Ol(t) {
1383
1384
  if (!t || typeof t != "object" || !Rr)
1384
1385
  return !1;
1385
1386
  try {
@@ -1388,19 +1389,19 @@ function xl(t) {
1388
1389
  }
1389
1390
  return !1;
1390
1391
  }
1391
- var Ol = Object.prototype.hasOwnProperty || function(t) {
1392
+ var Pl = Object.prototype.hasOwnProperty || function(t) {
1392
1393
  return t in this;
1393
1394
  };
1394
1395
  function Te(t, e) {
1395
- return Ol.call(t, e);
1396
+ return Pl.call(t, e);
1396
1397
  }
1397
1398
  function Ie(t) {
1398
- return fl.call(t);
1399
+ return dl.call(t);
1399
1400
  }
1400
- function Pl(t) {
1401
+ function Al(t) {
1401
1402
  if (t.name)
1402
1403
  return t.name;
1403
- var e = pl.call(dl.call(t), /^function\s*([\w$]+)/);
1404
+ var e = yl.call(pl.call(t), /^function\s*([\w$]+)/);
1404
1405
  return e ? e[1] : null;
1405
1406
  }
1406
1407
  function ha(t, e) {
@@ -1411,7 +1412,7 @@ function ha(t, e) {
1411
1412
  return r;
1412
1413
  return -1;
1413
1414
  }
1414
- function Al(t) {
1415
+ function Tl(t) {
1415
1416
  if (!Ut || !t || typeof t != "object")
1416
1417
  return !1;
1417
1418
  try {
@@ -1426,13 +1427,13 @@ function Al(t) {
1426
1427
  }
1427
1428
  return !1;
1428
1429
  }
1429
- function Tl(t) {
1430
- if (!ht || !t || typeof t != "object")
1430
+ function $l(t) {
1431
+ if (!gt || !t || typeof t != "object")
1431
1432
  return !1;
1432
1433
  try {
1433
- ht.call(t, ht);
1434
+ gt.call(t, gt);
1434
1435
  try {
1435
- gt.call(t, gt);
1436
+ bt.call(t, bt);
1436
1437
  } catch {
1437
1438
  return !0;
1438
1439
  }
@@ -1441,7 +1442,7 @@ function Tl(t) {
1441
1442
  }
1442
1443
  return !1;
1443
1444
  }
1444
- function $l(t) {
1445
+ function Rl(t) {
1445
1446
  if (!Dn || !t || typeof t != "object")
1446
1447
  return !1;
1447
1448
  try {
@@ -1450,7 +1451,7 @@ function $l(t) {
1450
1451
  }
1451
1452
  return !1;
1452
1453
  }
1453
- function Rl(t) {
1454
+ function Fl(t) {
1454
1455
  if (!Bt || !t || typeof t != "object")
1455
1456
  return !1;
1456
1457
  try {
@@ -1465,13 +1466,13 @@ function Rl(t) {
1465
1466
  }
1466
1467
  return !1;
1467
1468
  }
1468
- function Fl(t) {
1469
- if (!gt || !t || typeof t != "object")
1469
+ function Cl(t) {
1470
+ if (!bt || !t || typeof t != "object")
1470
1471
  return !1;
1471
1472
  try {
1472
- gt.call(t, gt);
1473
+ bt.call(t, bt);
1473
1474
  try {
1474
- ht.call(t, ht);
1475
+ gt.call(t, gt);
1475
1476
  } catch {
1476
1477
  return !0;
1477
1478
  }
@@ -1480,7 +1481,7 @@ function Fl(t) {
1480
1481
  }
1481
1482
  return !1;
1482
1483
  }
1483
- function Cl(t) {
1484
+ function Il(t) {
1484
1485
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
1485
1486
  }
1486
1487
  function ga(t, e) {
@@ -1488,10 +1489,10 @@ function ga(t, e) {
1488
1489
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1489
1490
  return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
1490
1491
  }
1491
- var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Il);
1492
+ var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ml);
1492
1493
  return va(a, "single", e);
1493
1494
  }
1494
- function Il(t) {
1495
+ function Ml(t) {
1495
1496
  var e = t.charCodeAt(0), r = {
1496
1497
  8: "b",
1497
1498
  9: "t",
@@ -1499,9 +1500,9 @@ function Il(t) {
1499
1500
  12: "f",
1500
1501
  13: "r"
1501
1502
  }[e];
1502
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + yl.call(e.toString(16));
1503
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + vl.call(e.toString(16));
1503
1504
  }
1504
- function dt(t) {
1505
+ function pt(t) {
1505
1506
  return "Object(" + t + ")";
1506
1507
  }
1507
1508
  function gr(t) {
@@ -1511,14 +1512,14 @@ function Vn(t, e, r, n) {
1511
1512
  var a = n ? Mr(r, n) : Ee.call(r, ", ");
1512
1513
  return t + " (" + e + ") {" + a + "}";
1513
1514
  }
1514
- function Ml(t) {
1515
+ function _l(t) {
1515
1516
  for (var e = 0; e < t.length; e++)
1516
1517
  if (ha(t[e], `
1517
1518
  `) >= 0)
1518
1519
  return !1;
1519
1520
  return !0;
1520
1521
  }
1521
- function _l(t, e) {
1522
+ function Dl(t, e) {
1522
1523
  var r;
1523
1524
  if (t.indent === " ")
1524
1525
  r = " ";
@@ -1555,19 +1556,19 @@ function It(t, e) {
1555
1556
  for (var i in t)
1556
1557
  Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (pa.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
1557
1558
  if (typeof hr == "function")
1558
- for (var d = 0; d < o.length; d++)
1559
- ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
1559
+ for (var f = 0; f < o.length; f++)
1560
+ ya.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
1560
1561
  return n;
1561
1562
  }
1562
- var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), kl = at("WeakMap.prototype.get", !0), jl = at("WeakMap.prototype.set", !0), Ll = at("WeakMap.prototype.has", !0), Wl = at("Map.prototype.get", !0), Ul = at("Map.prototype.set", !0), Bl = at("Map.prototype.has", !0), Xr = function(t, e) {
1563
+ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), jl = at("WeakMap.prototype.get", !0), Ll = at("WeakMap.prototype.set", !0), Wl = at("WeakMap.prototype.has", !0), Ul = at("Map.prototype.get", !0), Bl = at("Map.prototype.set", !0), Hl = at("Map.prototype.has", !0), Xr = function(t, e) {
1563
1564
  for (var r = t, n; (n = r.next) !== null; r = n)
1564
1565
  if (n.key === e)
1565
1566
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1566
1567
  t.next, t.next = n, n;
1567
- }, Hl = function(t, e) {
1568
+ }, Vl = function(t, e) {
1568
1569
  var r = Xr(t, e);
1569
1570
  return r && r.value;
1570
- }, Vl = function(t, e, r) {
1571
+ }, ql = function(t, e, r) {
1571
1572
  var n = Xr(t, e);
1572
1573
  n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
1573
1574
  {
@@ -1576,48 +1577,48 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1576
1577
  next: t.next,
1577
1578
  value: r
1578
1579
  };
1579
- }, ql = function(t, e) {
1580
+ }, Gl = function(t, e) {
1580
1581
  return !!Xr(t, e);
1581
- }, Gl = function() {
1582
+ }, Yl = function() {
1582
1583
  var e, r, n, a = {
1583
1584
  assert: function(o) {
1584
1585
  if (!a.has(o))
1585
- throw new Nl("Side channel does not contain " + Dl(o));
1586
+ throw new kl("Side channel does not contain " + Nl(o));
1586
1587
  },
1587
1588
  get: function(o) {
1588
1589
  if (Mt && o && (typeof o == "object" || typeof o == "function")) {
1589
1590
  if (e)
1590
- return kl(e, o);
1591
+ return jl(e, o);
1591
1592
  } else if (_t) {
1592
1593
  if (r)
1593
- return Wl(r, o);
1594
+ return Ul(r, o);
1594
1595
  } else if (n)
1595
- return Hl(n, o);
1596
+ return Vl(n, o);
1596
1597
  },
1597
1598
  has: function(o) {
1598
1599
  if (Mt && o && (typeof o == "object" || typeof o == "function")) {
1599
1600
  if (e)
1600
- return Ll(e, o);
1601
+ return Wl(e, o);
1601
1602
  } else if (_t) {
1602
1603
  if (r)
1603
- return Bl(r, o);
1604
+ return Hl(r, o);
1604
1605
  } else if (n)
1605
- return ql(n, o);
1606
+ return Gl(n, o);
1606
1607
  return !1;
1607
1608
  },
1608
1609
  set: function(o, l) {
1609
- Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), jl(e, o, l)) : _t ? (r || (r = new _t()), Ul(r, o, l)) : (n || (n = { key: {}, next: null }), Vl(n, o, l));
1610
+ Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), Ll(e, o, l)) : _t ? (r || (r = new _t()), Bl(r, o, l)) : (n || (n = { key: {}, next: null }), ql(n, o, l));
1610
1611
  }
1611
1612
  };
1612
1613
  return a;
1613
- }, Yl = String.prototype.replace, zl = /%20/g, br = {
1614
+ }, zl = String.prototype.replace, Kl = /%20/g, br = {
1614
1615
  RFC1738: "RFC1738",
1615
1616
  RFC3986: "RFC3986"
1616
1617
  }, Jr = {
1617
1618
  default: br.RFC3986,
1618
1619
  formatters: {
1619
1620
  RFC1738: function(t) {
1620
- return Yl.call(t, zl, "+");
1621
+ return zl.call(t, Kl, "+");
1621
1622
  },
1622
1623
  RFC3986: function(t) {
1623
1624
  return String(t);
@@ -1625,11 +1626,11 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1625
1626
  },
1626
1627
  RFC1738: br.RFC1738,
1627
1628
  RFC3986: br.RFC3986
1628
- }, Kl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1629
+ }, Xl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1629
1630
  for (var t = [], e = 0; e < 256; ++e)
1630
1631
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1631
1632
  return t;
1632
- }(), Xl = function(e) {
1633
+ }(), Jl = function(e) {
1633
1634
  for (; e.length > 1; ) {
1634
1635
  var r = e.pop(), n = r.obj[r.prop];
1635
1636
  if (Le(n)) {
@@ -1642,7 +1643,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1642
1643
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
1643
1644
  typeof e[a] < "u" && (n[a] = e[a]);
1644
1645
  return n;
1645
- }, Jl = function t(e, r, n) {
1646
+ }, Ql = function t(e, r, n) {
1646
1647
  if (!r)
1647
1648
  return e;
1648
1649
  if (typeof r != "object") {
@@ -1667,11 +1668,11 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1667
1668
  var u = r[l];
1668
1669
  return wr.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
1669
1670
  }, a);
1670
- }, Ql = function(e, r) {
1671
+ }, Zl = function(e, r) {
1671
1672
  return Object.keys(r).reduce(function(n, a) {
1672
1673
  return n[a] = r[a], n;
1673
1674
  }, e);
1674
- }, Zl = function(t, e, r) {
1675
+ }, eu = function(t, e, r) {
1675
1676
  var n = t.replace(/\+/g, " ");
1676
1677
  if (r === "iso-8859-1")
1677
1678
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1680,7 +1681,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1680
1681
  } catch {
1681
1682
  return n;
1682
1683
  }
1683
- }, Er = 1024, eu = function(e, r, n, a, o) {
1684
+ }, Er = 1024, tu = function(e, r, n, a, o) {
1684
1685
  if (e.length === 0)
1685
1686
  return e;
1686
1687
  var l = e;
@@ -1689,10 +1690,10 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1689
1690
  return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
1690
1691
  });
1691
1692
  for (var u = "", i = 0; i < l.length; i += Er) {
1692
- for (var d = l.length >= Er ? l.slice(i, i + Er) : l, s = [], g = 0; g < d.length; ++g) {
1693
- var v = d.charCodeAt(g);
1694
- if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Kl.RFC1738 && (v === 40 || v === 41)) {
1695
- s[s.length] = d.charAt(g);
1693
+ for (var f = l.length >= Er ? l.slice(i, i + Er) : l, s = [], h = 0; h < f.length; ++h) {
1694
+ var v = f.charCodeAt(h);
1695
+ if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Xl.RFC1738 && (v === 40 || v === 41)) {
1696
+ s[s.length] = f.charAt(h);
1696
1697
  continue;
1697
1698
  }
1698
1699
  if (v < 128) {
@@ -1707,25 +1708,25 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1707
1708
  s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1708
1709
  continue;
1709
1710
  }
1710
- g += 1, v = 65536 + ((v & 1023) << 10 | d.charCodeAt(g) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1711
+ h += 1, v = 65536 + ((v & 1023) << 10 | f.charCodeAt(h) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1711
1712
  }
1712
1713
  u += s.join("");
1713
1714
  }
1714
1715
  return u;
1715
- }, tu = function(e) {
1716
+ }, ru = function(e) {
1716
1717
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
1717
1718
  for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
1718
- var d = u[i], s = l[d];
1719
- typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: d }), n.push(s));
1719
+ var f = u[i], s = l[f];
1720
+ typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: f }), n.push(s));
1720
1721
  }
1721
- return Xl(r), e;
1722
- }, ru = function(e) {
1723
- return Object.prototype.toString.call(e) === "[object RegExp]";
1722
+ return Jl(r), e;
1724
1723
  }, nu = function(e) {
1724
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1725
+ }, au = function(e) {
1725
1726
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1726
- }, au = function(e, r) {
1727
- return [].concat(e, r);
1728
1727
  }, ou = function(e, r) {
1728
+ return [].concat(e, r);
1729
+ }, iu = function(e, r) {
1729
1730
  if (Le(e)) {
1730
1731
  for (var n = [], a = 0; a < e.length; a += 1)
1731
1732
  n.push(r(e[a]));
@@ -1734,16 +1735,16 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1734
1735
  return r(e);
1735
1736
  }, Ea = {
1736
1737
  arrayToObject: wa,
1737
- assign: Ql,
1738
- combine: au,
1739
- compact: tu,
1740
- decode: Zl,
1741
- encode: eu,
1742
- isBuffer: nu,
1743
- isRegExp: ru,
1744
- maybeMap: ou,
1745
- merge: Jl
1746
- }, Sa = Gl, kt = Ea, bt = Jr, iu = Object.prototype.hasOwnProperty, xa = {
1738
+ assign: Zl,
1739
+ combine: ou,
1740
+ compact: ru,
1741
+ decode: eu,
1742
+ encode: tu,
1743
+ isBuffer: au,
1744
+ isRegExp: nu,
1745
+ maybeMap: iu,
1746
+ merge: Ql
1747
+ }, Sa = Yl, kt = Ea, wt = Jr, lu = Object.prototype.hasOwnProperty, xa = {
1747
1748
  brackets: function(e) {
1748
1749
  return e + "[]";
1749
1750
  },
@@ -1754,9 +1755,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1754
1755
  repeat: function(e) {
1755
1756
  return e;
1756
1757
  }
1757
- }, we = Array.isArray, lu = Array.prototype.push, Oa = function(t, e) {
1758
- lu.apply(t, we(e) ? e : [e]);
1759
- }, uu = Date.prototype.toISOString, qn = bt.default, X = {
1758
+ }, we = Array.isArray, uu = Array.prototype.push, Oa = function(t, e) {
1759
+ uu.apply(t, we(e) ? e : [e]);
1760
+ }, su = Date.prototype.toISOString, qn = wt.default, X = {
1760
1761
  addQueryPrefix: !1,
1761
1762
  allowDots: !1,
1762
1763
  allowEmptyArrays: !1,
@@ -1769,18 +1770,18 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1769
1770
  encoder: kt.encode,
1770
1771
  encodeValuesOnly: !1,
1771
1772
  format: qn,
1772
- formatter: bt.formatters[qn],
1773
+ formatter: wt.formatters[qn],
1773
1774
  // deprecated
1774
1775
  indices: !1,
1775
1776
  serializeDate: function(e) {
1776
- return uu.call(e);
1777
+ return su.call(e);
1777
1778
  },
1778
1779
  skipNulls: !1,
1779
1780
  strictNullHandling: !1
1780
- }, su = function(e) {
1781
+ }, cu = function(e) {
1781
1782
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1782
- }, Sr = {}, cu = function t(e, r, n, a, o, l, u, i, d, s, g, v, w, f, y, p, m, h) {
1783
- for (var b = e, S = h, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
1783
+ }, Sr = {}, fu = function t(e, r, n, a, o, l, u, i, f, s, h, v, w, d, y, p, m, g) {
1784
+ for (var b = e, S = g, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
1784
1785
  var M = S.get(e);
1785
1786
  if (O += 1, typeof M < "u") {
1786
1787
  if (M === O)
@@ -1789,42 +1790,42 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1789
1790
  }
1790
1791
  typeof S.get(Sr) > "u" && (O = 0);
1791
1792
  }
1792
- if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(pe) {
1793
- return pe instanceof Date ? w(pe) : pe;
1793
+ if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(ye) {
1794
+ return ye instanceof Date ? w(ye) : ye;
1794
1795
  })), b === null) {
1795
1796
  if (l)
1796
- return d && !p ? d(r, X.encoder, m, "key", f) : r;
1797
+ return f && !p ? f(r, X.encoder, m, "key", d) : r;
1797
1798
  b = "";
1798
1799
  }
1799
- if (su(b) || kt.isBuffer(b)) {
1800
- if (d) {
1801
- var W = p ? r : d(r, X.encoder, m, "key", f);
1802
- return [y(W) + "=" + y(d(b, X.encoder, m, "value", f))];
1800
+ if (cu(b) || kt.isBuffer(b)) {
1801
+ if (f) {
1802
+ var W = p ? r : f(r, X.encoder, m, "key", d);
1803
+ return [y(W) + "=" + y(f(b, X.encoder, m, "value", d))];
1803
1804
  }
1804
1805
  return [y(r) + "=" + y(String(b))];
1805
1806
  }
1806
1807
  var H = [];
1807
1808
  if (typeof b > "u")
1808
1809
  return H;
1809
- var k;
1810
+ var j;
1810
1811
  if (n === "comma" && we(b))
1811
- p && d && (b = kt.maybeMap(b, d)), k = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1812
+ p && f && (b = kt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1812
1813
  else if (we(s))
1813
- k = s;
1814
+ j = s;
1814
1815
  else {
1815
- var Y = Object.keys(b);
1816
- k = g ? Y.sort(g) : Y;
1816
+ var z = Object.keys(b);
1817
+ j = h ? z.sort(h) : z;
1817
1818
  }
1818
1819
  var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
1819
1820
  if (o && we(b) && b.length === 0)
1820
1821
  return $ + "[]";
1821
- for (var T = 0; T < k.length; ++T) {
1822
- var D = k[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
1822
+ for (var T = 0; T < j.length; ++T) {
1823
+ var D = j[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
1823
1824
  if (!(u && ue === null)) {
1824
- var de = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, de) : $ : $ + (v ? "." + de : "[" + de + "]");
1825
- h.set(e, O);
1825
+ var pe = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, pe) : $ : $ + (v ? "." + pe : "[" + pe + "]");
1826
+ g.set(e, O);
1826
1827
  var te = Sa();
1827
- te.set(Sr, h), Oa(H, t(
1828
+ te.set(Sr, g), Oa(H, t(
1828
1829
  ue,
1829
1830
  ge,
1830
1831
  n,
@@ -1833,12 +1834,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1833
1834
  l,
1834
1835
  u,
1835
1836
  i,
1836
- n === "comma" && p && we(b) ? null : d,
1837
+ n === "comma" && p && we(b) ? null : f,
1837
1838
  s,
1838
- g,
1839
+ h,
1839
1840
  v,
1840
1841
  w,
1841
- f,
1842
+ d,
1842
1843
  y,
1843
1844
  p,
1844
1845
  m,
@@ -1847,7 +1848,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1847
1848
  }
1848
1849
  }
1849
1850
  return H;
1850
- }, fu = function(e) {
1851
+ }, du = function(e) {
1851
1852
  if (!e)
1852
1853
  return X;
1853
1854
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1859,13 +1860,13 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1859
1860
  var r = e.charset || X.charset;
1860
1861
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1861
1862
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1862
- var n = bt.default;
1863
+ var n = wt.default;
1863
1864
  if (typeof e.format < "u") {
1864
- if (!iu.call(bt.formatters, e.format))
1865
+ if (!lu.call(wt.formatters, e.format))
1865
1866
  throw new TypeError("Unknown format option provided.");
1866
1867
  n = e.format;
1867
1868
  }
1868
- var a = bt.formatters[n], o = X.filter;
1869
+ var a = wt.formatters[n], o = X.filter;
1869
1870
  (typeof e.filter == "function" || we(e.filter)) && (o = e.filter);
1870
1871
  var l;
1871
1872
  if (e.arrayFormat in xa ? l = e.arrayFormat : "indices" in e ? l = e.indices ? "indices" : "repeat" : l = X.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
@@ -1892,19 +1893,19 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1892
1893
  sort: typeof e.sort == "function" ? e.sort : null,
1893
1894
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
1894
1895
  };
1895
- }, du = function(t, e) {
1896
- var r = t, n = fu(e), a, o;
1896
+ }, pu = function(t, e) {
1897
+ var r = t, n = du(e), a, o;
1897
1898
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
1898
1899
  var l = [];
1899
1900
  if (typeof r != "object" || r === null)
1900
1901
  return "";
1901
1902
  var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
1902
1903
  a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
1903
- for (var d = Sa(), s = 0; s < a.length; ++s) {
1904
- var g = a[s];
1905
- n.skipNulls && r[g] === null || Oa(l, cu(
1906
- r[g],
1907
- g,
1904
+ for (var f = Sa(), s = 0; s < a.length; ++s) {
1905
+ var h = a[s];
1906
+ n.skipNulls && r[h] === null || Oa(l, fu(
1907
+ r[h],
1908
+ h,
1908
1909
  u,
1909
1910
  i,
1910
1911
  n.allowEmptyArrays,
@@ -1920,12 +1921,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1920
1921
  n.formatter,
1921
1922
  n.encodeValuesOnly,
1922
1923
  n.charset,
1923
- d
1924
+ f
1924
1925
  ));
1925
1926
  }
1926
1927
  var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
1927
1928
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
1928
- }, rt = Ea, _r = Object.prototype.hasOwnProperty, pu = Array.isArray, B = {
1929
+ }, rt = Ea, _r = Object.prototype.hasOwnProperty, yu = Array.isArray, B = {
1929
1930
  allowDots: !1,
1930
1931
  allowEmptyArrays: !1,
1931
1932
  allowPrototypes: !1,
@@ -1946,55 +1947,55 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1946
1947
  plainObjects: !1,
1947
1948
  strictDepth: !1,
1948
1949
  strictNullHandling: !1
1949
- }, yu = function(t) {
1950
+ }, vu = function(t) {
1950
1951
  return t.replace(/&#(\d+);/g, function(e, r) {
1951
1952
  return String.fromCharCode(parseInt(r, 10));
1952
1953
  });
1953
1954
  }, Pa = function(t, e) {
1954
1955
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
1955
- }, vu = "utf8=%26%2310003%3B", mu = "utf8=%E2%9C%93", hu = function(e, r) {
1956
+ }, mu = "utf8=%26%2310003%3B", hu = "utf8=%E2%9C%93", gu = function(e, r) {
1956
1957
  var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1957
1958
  a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1958
- var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, d = r.charset;
1959
+ var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, f = r.charset;
1959
1960
  if (r.charsetSentinel)
1960
1961
  for (i = 0; i < l.length; ++i)
1961
- l[i].indexOf("utf8=") === 0 && (l[i] === mu ? d = "utf-8" : l[i] === vu && (d = "iso-8859-1"), u = i, i = l.length);
1962
+ l[i].indexOf("utf8=") === 0 && (l[i] === hu ? f = "utf-8" : l[i] === mu && (f = "iso-8859-1"), u = i, i = l.length);
1962
1963
  for (i = 0; i < l.length; ++i)
1963
1964
  if (i !== u) {
1964
- var s = l[i], g = s.indexOf("]="), v = g === -1 ? s.indexOf("=") : g + 1, w, f;
1965
- v === -1 ? (w = r.decoder(s, B.decoder, d, "key"), f = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, d, "key"), f = rt.maybeMap(
1965
+ var s = l[i], h = s.indexOf("]="), v = h === -1 ? s.indexOf("=") : h + 1, w, d;
1966
+ v === -1 ? (w = r.decoder(s, B.decoder, f, "key"), d = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, f, "key"), d = rt.maybeMap(
1966
1967
  Pa(s.slice(v + 1), r),
1967
1968
  function(p) {
1968
- return r.decoder(p, B.decoder, d, "value");
1969
+ return r.decoder(p, B.decoder, f, "value");
1969
1970
  }
1970
- )), f && r.interpretNumericEntities && d === "iso-8859-1" && (f = yu(f)), s.indexOf("[]=") > -1 && (f = pu(f) ? [f] : f);
1971
+ )), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = vu(d)), s.indexOf("[]=") > -1 && (d = yu(d) ? [d] : d);
1971
1972
  var y = _r.call(n, w);
1972
- y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], f) : (!y || r.duplicates === "last") && (n[w] = f);
1973
+ y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], d) : (!y || r.duplicates === "last") && (n[w] = d);
1973
1974
  }
1974
1975
  return n;
1975
- }, gu = function(t, e, r, n) {
1976
+ }, bu = function(t, e, r, n) {
1976
1977
  for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
1977
1978
  var l, u = t[o];
1978
1979
  if (u === "[]" && r.parseArrays)
1979
1980
  l = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : [].concat(a);
1980
1981
  else {
1981
1982
  l = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1982
- var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, d = r.decodeDotInKeys ? i.replace(/%2E/g, ".") : i, s = parseInt(d, 10);
1983
- !r.parseArrays && d === "" ? l = { 0: a } : !isNaN(s) && u !== d && String(s) === d && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = a) : d !== "__proto__" && (l[d] = a);
1983
+ var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, f = r.decodeDotInKeys ? i.replace(/%2E/g, ".") : i, s = parseInt(f, 10);
1984
+ !r.parseArrays && f === "" ? l = { 0: a } : !isNaN(s) && u !== f && String(s) === f && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = a) : f !== "__proto__" && (l[f] = a);
1984
1985
  }
1985
1986
  a = l;
1986
1987
  }
1987
1988
  return a;
1988
- }, bu = function(e, r, n, a) {
1989
+ }, wu = function(e, r, n, a) {
1989
1990
  if (e) {
1990
- var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), d = i ? o.slice(0, i.index) : o, s = [];
1991
- if (d) {
1992
- if (!n.plainObjects && _r.call(Object.prototype, d) && !n.allowPrototypes)
1991
+ var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), f = i ? o.slice(0, i.index) : o, s = [];
1992
+ if (f) {
1993
+ if (!n.plainObjects && _r.call(Object.prototype, f) && !n.allowPrototypes)
1993
1994
  return;
1994
- s.push(d);
1995
+ s.push(f);
1995
1996
  }
1996
- for (var g = 0; n.depth > 0 && (i = u.exec(o)) !== null && g < n.depth; ) {
1997
- if (g += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1997
+ for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
1998
+ if (h += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1998
1999
  return;
1999
2000
  s.push(i[1]);
2000
2001
  }
@@ -2003,9 +2004,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2003
2004
  throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
2004
2005
  s.push("[" + o.slice(i.index) + "]");
2005
2006
  }
2006
- return gu(s, r, n, a);
2007
+ return bu(s, r, n, a);
2007
2008
  }
2008
- }, wu = function(e) {
2009
+ }, Eu = function(e) {
2009
2010
  if (!e)
2010
2011
  return B;
2011
2012
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -2043,20 +2044,20 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2043
2044
  strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
2044
2045
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
2045
2046
  };
2046
- }, Eu = function(t, e) {
2047
- var r = wu(e);
2047
+ }, Su = function(t, e) {
2048
+ var r = Eu(e);
2048
2049
  if (t === "" || t === null || typeof t > "u")
2049
2050
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2050
- for (var n = typeof t == "string" ? hu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2051
- var u = o[l], i = bu(u, n[u], r, typeof t == "string");
2051
+ for (var n = typeof t == "string" ? gu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2052
+ var u = o[l], i = wu(u, n[u], r, typeof t == "string");
2052
2053
  a = rt.merge(a, i, r);
2053
2054
  }
2054
2055
  return r.allowSparse === !0 ? a : rt.compact(a);
2055
- }, Su = du, xu = Eu, Ou = Jr, Gn = {
2056
- formats: Ou,
2057
- parse: xu,
2058
- stringify: Su
2059
- }, Pu = { exports: {} };
2056
+ }, xu = pu, Ou = Su, Pu = Jr, Gn = {
2057
+ formats: Pu,
2058
+ parse: Ou,
2059
+ stringify: xu
2060
+ }, Au = { exports: {} };
2060
2061
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
2061
2062
  * @license MIT */
2062
2063
  (function(t, e) {
@@ -2079,93 +2080,93 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2079
2080
  parent: "body",
2080
2081
  template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
2081
2082
  };
2082
- r.configure = function(f) {
2083
+ r.configure = function(d) {
2083
2084
  var y, p;
2084
- for (y in f)
2085
- p = f[y], p !== void 0 && f.hasOwnProperty(y) && (n[y] = p);
2085
+ for (y in d)
2086
+ p = d[y], p !== void 0 && d.hasOwnProperty(y) && (n[y] = p);
2086
2087
  return this;
2087
- }, r.status = null, r.set = function(f) {
2088
+ }, r.status = null, r.set = function(d) {
2088
2089
  var y = r.isStarted();
2089
- f = a(f, n.minimum, 1), r.status = f === 1 ? null : f;
2090
- var p = r.render(!y), m = p.querySelector(n.barSelector), h = n.speed, b = n.easing;
2090
+ d = a(d, n.minimum, 1), r.status = d === 1 ? null : d;
2091
+ var p = r.render(!y), m = p.querySelector(n.barSelector), g = n.speed, b = n.easing;
2091
2092
  return p.offsetWidth, u(function(S) {
2092
- n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f, h, b)), f === 1 ? (i(p, {
2093
+ n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(d, g, b)), d === 1 ? (i(p, {
2093
2094
  transition: "none",
2094
2095
  opacity: 1
2095
2096
  }), p.offsetWidth, setTimeout(function() {
2096
2097
  i(p, {
2097
- transition: "all " + h + "ms linear",
2098
+ transition: "all " + g + "ms linear",
2098
2099
  opacity: 0
2099
2100
  }), setTimeout(function() {
2100
2101
  r.remove(), S();
2101
- }, h);
2102
- }, h)) : setTimeout(S, h);
2102
+ }, g);
2103
+ }, g)) : setTimeout(S, g);
2103
2104
  }), this;
2104
2105
  }, r.isStarted = function() {
2105
2106
  return typeof r.status == "number";
2106
2107
  }, r.start = function() {
2107
2108
  r.status || r.set(0);
2108
- var f = function() {
2109
+ var d = function() {
2109
2110
  setTimeout(function() {
2110
- r.status && (r.trickle(), f());
2111
+ r.status && (r.trickle(), d());
2111
2112
  }, n.trickleSpeed);
2112
2113
  };
2113
- return n.trickle && f(), this;
2114
- }, r.done = function(f) {
2115
- return !f && !r.status ? this : r.inc(0.3 + 0.5 * Math.random()).set(1);
2116
- }, r.inc = function(f) {
2114
+ return n.trickle && d(), this;
2115
+ }, r.done = function(d) {
2116
+ return !d && !r.status ? this : r.inc(0.3 + 0.5 * Math.random()).set(1);
2117
+ }, r.inc = function(d) {
2117
2118
  var y = r.status;
2118
- return y ? (typeof f != "number" && (f = (1 - y) * a(Math.random() * y, 0.1, 0.95)), y = a(y + f, 0, 0.994), r.set(y)) : r.start();
2119
+ return y ? (typeof d != "number" && (d = (1 - y) * a(Math.random() * y, 0.1, 0.95)), y = a(y + d, 0, 0.994), r.set(y)) : r.start();
2119
2120
  }, r.trickle = function() {
2120
2121
  return r.inc(Math.random() * n.trickleRate);
2121
2122
  }, function() {
2122
- var f = 0, y = 0;
2123
+ var d = 0, y = 0;
2123
2124
  r.promise = function(p) {
2124
- return !p || p.state() === "resolved" ? this : (y === 0 && r.start(), f++, y++, p.always(function() {
2125
- y--, y === 0 ? (f = 0, r.done()) : r.set((f - y) / f);
2125
+ return !p || p.state() === "resolved" ? this : (y === 0 && r.start(), d++, y++, p.always(function() {
2126
+ y--, y === 0 ? (d = 0, r.done()) : r.set((d - y) / d);
2126
2127
  }), this);
2127
2128
  };
2128
- }(), r.render = function(f) {
2129
+ }(), r.render = function(d) {
2129
2130
  if (r.isRendered()) return document.getElementById("nprogress");
2130
2131
  s(document.documentElement, "nprogress-busy");
2131
2132
  var y = document.createElement("div");
2132
2133
  y.id = "nprogress", y.innerHTML = n.template;
2133
- var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0), h = document.querySelector(n.parent), b;
2134
+ var p = y.querySelector(n.barSelector), m = d ? "-100" : o(r.status || 0), g = document.querySelector(n.parent), b;
2134
2135
  return i(p, {
2135
2136
  transition: "all 0 linear",
2136
2137
  transform: "translate3d(" + m + "%,0,0)"
2137
- }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), h != document.body && s(h, "nprogress-custom-parent"), h.appendChild(y), y;
2138
+ }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), g != document.body && s(g, "nprogress-custom-parent"), g.appendChild(y), y;
2138
2139
  }, r.remove = function() {
2139
- g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
2140
- var f = document.getElementById("nprogress");
2141
- f && w(f);
2140
+ h(document.documentElement, "nprogress-busy"), h(document.querySelector(n.parent), "nprogress-custom-parent");
2141
+ var d = document.getElementById("nprogress");
2142
+ d && w(d);
2142
2143
  }, r.isRendered = function() {
2143
2144
  return !!document.getElementById("nprogress");
2144
2145
  }, r.getPositioningCSS = function() {
2145
- var f = document.body.style, y = "WebkitTransform" in f ? "Webkit" : "MozTransform" in f ? "Moz" : "msTransform" in f ? "ms" : "OTransform" in f ? "O" : "";
2146
- return y + "Perspective" in f ? "translate3d" : y + "Transform" in f ? "translate" : "margin";
2146
+ var d = document.body.style, y = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : "";
2147
+ return y + "Perspective" in d ? "translate3d" : y + "Transform" in d ? "translate" : "margin";
2147
2148
  };
2148
- function a(f, y, p) {
2149
- return f < y ? y : f > p ? p : f;
2149
+ function a(d, y, p) {
2150
+ return d < y ? y : d > p ? p : d;
2150
2151
  }
2151
- function o(f) {
2152
- return (-1 + f) * 100;
2152
+ function o(d) {
2153
+ return (-1 + d) * 100;
2153
2154
  }
2154
- function l(f, y, p) {
2155
+ function l(d, y, p) {
2155
2156
  var m;
2156
- return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(f) + "%,0,0)" } : n.positionUsing === "translate" ? m = { transform: "translate(" + o(f) + "%,0)" } : m = { "margin-left": o(f) + "%" }, m.transition = "all " + y + "ms " + p, m;
2157
+ return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(d) + "%,0,0)" } : n.positionUsing === "translate" ? m = { transform: "translate(" + o(d) + "%,0)" } : m = { "margin-left": o(d) + "%" }, m.transition = "all " + y + "ms " + p, m;
2157
2158
  }
2158
2159
  var u = /* @__PURE__ */ function() {
2159
- var f = [];
2160
+ var d = [];
2160
2161
  function y() {
2161
- var p = f.shift();
2162
+ var p = d.shift();
2162
2163
  p && p(y);
2163
2164
  }
2164
2165
  return function(p) {
2165
- f.push(p), f.length == 1 && y();
2166
+ d.push(p), d.length == 1 && y();
2166
2167
  };
2167
2168
  }(), i = /* @__PURE__ */ function() {
2168
- var f = ["Webkit", "O", "Moz", "ms"], y = {};
2169
+ var d = ["Webkit", "O", "Moz", "ms"], y = {};
2169
2170
  function p(S) {
2170
2171
  return S.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(O, _) {
2171
2172
  return _.toUpperCase();
@@ -2174,15 +2175,15 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2174
2175
  function m(S) {
2175
2176
  var O = document.body.style;
2176
2177
  if (S in O) return S;
2177
- for (var _ = f.length, M = S.charAt(0).toUpperCase() + S.slice(1), W; _--; )
2178
- if (W = f[_] + M, W in O) return W;
2178
+ for (var _ = d.length, M = S.charAt(0).toUpperCase() + S.slice(1), W; _--; )
2179
+ if (W = d[_] + M, W in O) return W;
2179
2180
  return S;
2180
2181
  }
2181
- function h(S) {
2182
+ function g(S) {
2182
2183
  return S = p(S), y[S] || (y[S] = m(S));
2183
2184
  }
2184
2185
  function b(S, O, _) {
2185
- O = h(O), S.style[O] = _;
2186
+ O = g(O), S.style[O] = _;
2186
2187
  }
2187
2188
  return function(S, O) {
2188
2189
  var _ = arguments, M, W;
@@ -2193,105 +2194,105 @@ var ba = nt, at = nl, Dl = ml, Nl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2193
2194
  b(S, _[1], _[2]);
2194
2195
  };
2195
2196
  }();
2196
- function d(f, y) {
2197
- var p = typeof f == "string" ? f : v(f);
2197
+ function f(d, y) {
2198
+ var p = typeof d == "string" ? d : v(d);
2198
2199
  return p.indexOf(" " + y + " ") >= 0;
2199
2200
  }
2200
- function s(f, y) {
2201
- var p = v(f), m = p + y;
2202
- d(p, y) || (f.className = m.substring(1));
2201
+ function s(d, y) {
2202
+ var p = v(d), m = p + y;
2203
+ f(p, y) || (d.className = m.substring(1));
2203
2204
  }
2204
- function g(f, y) {
2205
- var p = v(f), m;
2206
- d(f, y) && (m = p.replace(" " + y + " ", " "), f.className = m.substring(1, m.length - 1));
2205
+ function h(d, y) {
2206
+ var p = v(d), m;
2207
+ f(d, y) && (m = p.replace(" " + y + " ", " "), d.className = m.substring(1, m.length - 1));
2207
2208
  }
2208
- function v(f) {
2209
- return (" " + (f.className || "") + " ").replace(/\s+/gi, " ");
2209
+ function v(d) {
2210
+ return (" " + (d.className || "") + " ").replace(/\s+/gi, " ");
2210
2211
  }
2211
- function w(f) {
2212
- f && f.parentNode && f.parentNode.removeChild(f);
2212
+ function w(d) {
2213
+ d && d.parentNode && d.parentNode.removeChild(d);
2213
2214
  }
2214
2215
  return r;
2215
2216
  });
2216
- })(Pu);
2217
- function Au(t, e, r, n = "brackets") {
2218
- let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), d = new URL(e.toString(), "http://localhost");
2219
- return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(li(Gn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
2217
+ })(Au);
2218
+ function Tu(t, e, r, n = "brackets") {
2219
+ let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), f = new URL(e.toString(), "http://localhost");
2220
+ return t === "get" && Object.keys(r).length && (f.search = Gn.stringify(ui(Gn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
2220
2221
  }
2221
- const zt = ce(null);
2222
+ const zt = fe(null);
2222
2223
  zt.displayName = "ModalStackContext";
2223
2224
  let Aa = null, Ta = null, Dr = null, Nr = null, Yn = [];
2224
- const Tu = ({ children: t }) => {
2225
+ const $u = ({ children: t }) => {
2225
2226
  const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
2226
2227
  r((p) => {
2227
- const m = y([...p]), h = (b) => {
2228
+ const m = y([...p]), g = (b) => {
2228
2229
  var S;
2229
2230
  return m.length < 2 ? !0 : ((S = m.map((O) => ({ id: O.id, shouldRender: O.shouldRender })).reverse().find((O) => O.shouldRender)) == null ? void 0 : S.id) === b;
2230
2231
  };
2231
2232
  return m.forEach((b, S) => {
2232
- m[S].onTopOfStack = h(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
2233
+ m[S].onTopOfStack = g(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
2233
2234
  }), m;
2234
2235
  });
2235
2236
  };
2236
- K(() => {
2237
+ Y(() => {
2237
2238
  Yn = e;
2238
2239
  }, [e]);
2239
2240
  class l {
2240
- constructor(p, m, h, b, S) {
2241
- ye(this, "update", (p, m, h) => {
2241
+ constructor(p, m, g, b, S) {
2242
+ ce(this, "update", (p, m, g) => {
2242
2243
  o(
2243
- (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = h), S))
2244
+ (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = g), S))
2244
2245
  );
2245
2246
  });
2246
- ye(this, "show", () => {
2247
+ ce(this, "show", () => {
2247
2248
  o(
2248
2249
  (p) => p.map((m) => (m.id === this.id && !m.isOpen && (m.isOpen = !0, m.shouldRender = !0), m))
2249
2250
  );
2250
2251
  });
2251
- ye(this, "setOpen", (p) => {
2252
+ ce(this, "setOpen", (p) => {
2252
2253
  p ? this.show() : this.close();
2253
2254
  });
2254
- ye(this, "close", () => {
2255
+ ce(this, "close", () => {
2255
2256
  o(
2256
2257
  (p) => p.map((m) => {
2257
- var h;
2258
+ var g;
2258
2259
  return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
2259
2260
  m.off(b);
2260
- }), m.isOpen = !1, (h = m.onCloseCallback) == null || h.call(m)), m;
2261
+ }), m.isOpen = !1, (g = m.onCloseCallback) == null || g.call(m)), m;
2261
2262
  })
2262
2263
  );
2263
2264
  });
2264
- ye(this, "afterLeave", () => {
2265
+ ce(this, "afterLeave", () => {
2265
2266
  this.isOpen || o((p) => {
2266
- const m = p.map((h) => {
2267
+ const m = p.map((g) => {
2267
2268
  var b;
2268
- return h.id === this.id && !h.isOpen && (h.shouldRender = !1, (b = h.afterLeaveCallback) == null || b.call(h), h.afterLeaveCallback = null), h;
2269
+ return g.id === this.id && !g.isOpen && (g.shouldRender = !1, (b = g.afterLeaveCallback) == null || b.call(g), g.afterLeaveCallback = null), g;
2269
2270
  });
2270
2271
  return this.index === 0 ? [] : m;
2271
2272
  });
2272
2273
  });
2273
- ye(this, "on", (p, m) => {
2274
+ ce(this, "on", (p, m) => {
2274
2275
  this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
2275
2276
  });
2276
- ye(this, "off", (p, m) => {
2277
- var h;
2278
- m ? this.listeners[p] = ((h = this.listeners[p]) == null ? void 0 : h.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2277
+ ce(this, "off", (p, m) => {
2278
+ var g;
2279
+ m ? this.listeners[p] = ((g = this.listeners[p]) == null ? void 0 : g.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2279
2280
  });
2280
- ye(this, "emit", (p, ...m) => {
2281
- var h;
2282
- (h = this.listeners[p]) == null || h.forEach((b) => b(...m));
2281
+ ce(this, "emit", (p, ...m) => {
2282
+ var g;
2283
+ (g = this.listeners[p]) == null || g.forEach((b) => b(...m));
2283
2284
  });
2284
- ye(this, "registerEventListenersFromProps", (p) => {
2285
+ ce(this, "registerEventListenersFromProps", (p) => {
2285
2286
  const m = [];
2286
- return Object.keys(p).filter((h) => h.startsWith("on")).forEach((h) => {
2287
- const b = h.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
2288
- this.on(b, p[h]), m.push(() => this.off(b, p[h]));
2289
- }), () => m.forEach((h) => h());
2287
+ return Object.keys(p).filter((g) => g.startsWith("on")).forEach((g) => {
2288
+ const b = g.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
2289
+ this.on(b, p[g]), m.push(() => this.off(b, p[g]));
2290
+ }), () => m.forEach((g) => g());
2290
2291
  });
2291
- ye(this, "reload", (p = {}) => {
2292
- var h;
2292
+ ce(this, "reload", (p = {}) => {
2293
+ var g;
2293
2294
  let m = Object.keys(this.response.props);
2294
- p.only && (m = aa(m, p.only)), p.except && (m = Vo(m, p.except)), (h = this.response) != null && h.url && jt.get(this.response.url, {
2295
+ p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url && jt.get(this.response.url, {
2295
2296
  headers: {
2296
2297
  Accept: "text/html, application/xhtml+xml",
2297
2298
  "X-Inertia": !0,
@@ -2302,26 +2303,29 @@ const Tu = ({ children: t }) => {
2302
2303
  "X-InertiaUI-Modal-Use-Router": 0
2303
2304
  }
2304
2305
  }).then((b) => {
2305
- Object.assign(this.props, b.data.props), o((S) => S);
2306
+ this.updateProps(b.data.props);
2306
2307
  });
2307
2308
  });
2308
- this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = h, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
2309
+ ce(this, "updateProps", (p) => {
2310
+ Object.assign(this.props, p), o((m) => m);
2311
+ });
2312
+ this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = g, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
2309
2313
  }
2310
2314
  static generateId() {
2311
2315
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `inertiaui_modal_${crypto.randomUUID()}` : `inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
2312
2316
  }
2313
2317
  }
2314
- const u = (y, p = {}, m = null, h = null) => Ta(y.component).then((b) => i(b, y, p, m, h)), i = (y, p, m, h, b) => {
2315
- const S = new l(y, p, m, h, b);
2318
+ const u = (y, p = {}, m = null, g = null) => Ta(y.component).then((b) => i(b, y, p, m, g)), i = (y, p, m, g, b) => {
2319
+ const S = new l(y, p, m, g, b);
2316
2320
  return S.index = e.length, o((O) => [...O, S]), S.show(), S;
2317
2321
  };
2318
- function d(y, p, m, h) {
2322
+ function f(y, p, m, g) {
2319
2323
  if (!n[y])
2320
2324
  throw new Error(`The local modal "${y}" has not been registered.`);
2321
- const b = i(null, {}, p, m, h);
2325
+ const b = i(null, {}, p, m, g);
2322
2326
  return b.name = y, n[y].callback(b), b;
2323
2327
  }
2324
- const s = (y, p = {}) => g(
2328
+ const s = (y, p = {}) => h(
2325
2329
  y,
2326
2330
  p.method ?? "get",
2327
2331
  p.data ?? {},
@@ -2331,15 +2335,15 @@ const Tu = ({ children: t }) => {
2331
2335
  p.onAfterLeave,
2332
2336
  p.queryStringArrayFormat ?? "brackets",
2333
2337
  p.navigate ?? Vr("navigate")
2334
- ), g = (y, p, m = {}, h = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2338
+ ), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2335
2339
  if (y.startsWith("#")) {
2336
- W(d(y.substring(1), b, S, O));
2340
+ W(f(y.substring(1), b, S, O));
2337
2341
  return;
2338
2342
  }
2339
- const [k, Y] = Au(p, y || "", m, _);
2343
+ const [j, z] = Tu(p, y || "", m, _);
2340
2344
  let V = M && e.length === 0;
2341
- if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), h = {
2342
- ...h,
2345
+ if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), g = {
2346
+ ...g,
2343
2347
  Accept: "text/html, application/xhtml+xml",
2344
2348
  "X-Requested-With": "XMLHttpRequest",
2345
2349
  "X-Inertia": !0,
@@ -2347,15 +2351,15 @@ const Tu = ({ children: t }) => {
2347
2351
  "X-InertiaUI-Modal": !0,
2348
2352
  "X-InertiaUI-Modal-Use-Router": V ? 1 : 0
2349
2353
  }, V)
2350
- return yt.visit(k, {
2354
+ return Nr = null, vt.visit(j, {
2351
2355
  method: p,
2352
- data: Y,
2353
- headers: h,
2356
+ data: z,
2357
+ headers: g,
2354
2358
  preserveScroll: !0,
2355
2359
  preserveState: !0,
2356
2360
  onError: H,
2357
2361
  onFinish: () => {
2358
- Go(() => Nr).then(($) => {
2362
+ Yo(() => Nr).then(($) => {
2359
2363
  const T = $.onCloseCallback, D = $.afterLeaveCallback;
2360
2364
  $.update(
2361
2365
  b,
@@ -2365,19 +2369,19 @@ const Tu = ({ children: t }) => {
2365
2369
  () => {
2366
2370
  O == null || O(), D == null || D();
2367
2371
  }
2368
- ), W($), Nr = null;
2372
+ ), W($);
2369
2373
  });
2370
2374
  }
2371
2375
  });
2372
2376
  jt({
2373
- url: k,
2377
+ url: j,
2374
2378
  method: p,
2375
- data: Y,
2376
- headers: h
2379
+ data: z,
2380
+ headers: g
2377
2381
  }).then(($) => W(u($.data, b, S, O))).catch(($) => {
2378
2382
  H($);
2379
2383
  });
2380
- }), f = {
2384
+ }), d = {
2381
2385
  stack: e,
2382
2386
  localModals: n,
2383
2387
  push: i,
@@ -2386,7 +2390,7 @@ const Tu = ({ children: t }) => {
2386
2390
  Yn.reverse().forEach((y) => y.close());
2387
2391
  },
2388
2392
  reset: () => o(() => []),
2389
- visit: g,
2393
+ visit: h,
2390
2394
  visitModal: s,
2391
2395
  registerLocalModal: (y, p) => {
2392
2396
  a((m) => ({
@@ -2401,52 +2405,59 @@ const Tu = ({ children: t }) => {
2401
2405
  });
2402
2406
  }
2403
2407
  };
2404
- return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
2408
+ return /* @__PURE__ */ R.jsx(zt.Provider, { value: d, children: t });
2405
2409
  }, Kt = () => {
2406
2410
  const t = ie(zt);
2407
2411
  if (t === null)
2408
2412
  throw new Error("useModalStack must be used within a ModalStackProvider");
2409
2413
  return t;
2410
- }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Pc = (t, e) => {
2414
+ }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Ac = (t, e) => {
2411
2415
  e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
2412
2416
  const r = ({ Component: n, props: a, key: o }) => {
2413
2417
  const l = () => {
2414
2418
  const u = Pr(n, { key: o, ...a });
2415
- return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Pr(s, a, d)) : u;
2419
+ return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Pr(s, a, f)) : u;
2416
2420
  };
2417
2421
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2418
2422
  l(),
2419
- /* @__PURE__ */ R.jsx($u, {})
2423
+ /* @__PURE__ */ R.jsx(Ru, {})
2420
2424
  ] });
2421
2425
  };
2422
- return /* @__PURE__ */ R.jsx(Tu, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2423
- }, $u = ({ children: t }) => {
2426
+ return /* @__PURE__ */ R.jsx($u, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2427
+ }, Ru = ({ children: t }) => {
2428
+ var u;
2424
2429
  const e = ie(zt);
2425
2430
  let r = !1, n = !1;
2426
- K(() => yt.on("start", () => r = !0), []), K(() => yt.on("finish", () => r = !1), []), K(
2427
- () => yt.on("navigate", function(o) {
2428
- const l = o.detail.page.props._inertiaui_modal;
2429
- if (!l) {
2431
+ Y(() => vt.on("start", () => r = !0), []), Y(() => vt.on("finish", () => r = !1), []), Y(
2432
+ () => vt.on("navigate", function(i) {
2433
+ const f = i.detail.page.props._inertiaui_modal;
2434
+ if (!f) {
2430
2435
  n && e.closeAll();
2431
2436
  return;
2432
2437
  }
2433
- n = l, Dr = l.baseUrl, e.pushFromResponseData(l, {}, () => {
2434
- if (!l.baseUrl) {
2438
+ n = f, Dr = f.baseUrl, e.pushFromResponseData(f, {}, () => {
2439
+ if (!f.baseUrl) {
2435
2440
  console.error("No base url in modal response data so cannot navigate back");
2436
2441
  return;
2437
2442
  }
2438
- !r && window.location.href !== l.baseUrl && yt.visit(l.baseUrl, {
2443
+ !r && window.location.href !== f.baseUrl && vt.visit(f.baseUrl, {
2439
2444
  preserveScroll: !0,
2440
2445
  preserveState: !0
2441
2446
  });
2442
- }).then((u) => {
2443
- Nr = u;
2447
+ }).then((s) => {
2448
+ Nr = s;
2444
2449
  });
2445
2450
  }),
2446
2451
  []
2447
2452
  );
2448
- const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = Dr, o);
2449
- return K(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2453
+ const a = (i) => (i.headers["X-InertiaUI-Modal-Base-Url"] = Dr, i);
2454
+ Y(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []);
2455
+ const o = jo(), l = k();
2456
+ return Y(() => {
2457
+ var s, h;
2458
+ const i = (s = o.props) == null ? void 0 : s._inertiaui_modal, f = l.current;
2459
+ l.current = i, i && f && i.component === f.component && i.url === f.url && ((h = e.stack[0]) == null || h.updateProps(i.props ?? {}));
2460
+ }, [(u = o.props) == null ? void 0 : u._inertiaui_modal]), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2450
2461
  t,
2451
2462
  e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
2452
2463
  ] });
@@ -2467,9 +2478,9 @@ const $a = () => {
2467
2478
  }
2468
2479
  ) });
2469
2480
  }, Fa = Hr(({ name: t, children: e, ...r }, n) => {
2470
- const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), g = J(() => {
2471
- var f;
2472
- return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
2481
+ const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2482
+ var d;
2483
+ return (d = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : d.index;
2473
2484
  }, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
2474
2485
  () => ({
2475
2486
  slideover: v,
@@ -2483,13 +2494,13 @@ const $a = () => {
2483
2494
  }),
2484
2495
  [r, s == null ? void 0 : s.config]
2485
2496
  );
2486
- return K(() => {
2497
+ return Y(() => {
2487
2498
  if (t) {
2488
- let f = null;
2499
+ let d = null;
2489
2500
  return l(t, (y) => {
2490
- f = y.registerEventListenersFromProps(r), d(y);
2501
+ d = y.registerEventListenersFromProps(r), f(y);
2491
2502
  }), () => {
2492
- f == null || f(), f = null, u(t);
2503
+ d == null || d(), d = null, u(t);
2493
2504
  };
2494
2505
  }
2495
2506
  return s.registerEventListenersFromProps(r);
@@ -2499,7 +2510,7 @@ const $a = () => {
2499
2510
  afterLeave: () => s.afterLeave(),
2500
2511
  close: () => s.close(),
2501
2512
  config: w,
2502
- emit: (...f) => s.emit(...f),
2513
+ emit: (...d) => s.emit(...d),
2503
2514
  getChildModal: () => s.getChildModal(),
2504
2515
  getParentModal: () => s.getParentModal(),
2505
2516
  id: s == null ? void 0 : s.id,
@@ -2529,7 +2540,7 @@ const $a = () => {
2529
2540
  setOpen: s.setOpen,
2530
2541
  shouldRender: s.shouldRender
2531
2542
  }) : e,
2532
- g && /* @__PURE__ */ R.jsx(Ra, { index: g })
2543
+ h && /* @__PURE__ */ R.jsx(Ra, { index: h })
2533
2544
  ] });
2534
2545
  });
2535
2546
  Fa.displayName = "HeadlessModal";
@@ -2546,8 +2557,8 @@ function Ht() {
2546
2557
  for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ca(t)) && (n && (n += " "), n += e);
2547
2558
  return n;
2548
2559
  }
2549
- var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
2550
- let Cu = class {
2560
+ var Fu = Object.defineProperty, Cu = (t, e, r) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Cu(t, typeof e != "symbol" ? e + "" : e, r), r);
2561
+ let Iu = class {
2551
2562
  constructor() {
2552
2563
  xr(this, "current", this.detect()), xr(this, "handoffState", "pending"), xr(this, "currentId", 0);
2553
2564
  }
@@ -2575,7 +2586,7 @@ let Cu = class {
2575
2586
  get isHandoffComplete() {
2576
2587
  return this.handoffState === "complete";
2577
2588
  }
2578
- }, Ve = new Cu();
2589
+ }, Ve = new Iu();
2579
2590
  function Xt(t) {
2580
2591
  return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
2581
2592
  }
@@ -2622,13 +2633,13 @@ function Me() {
2622
2633
  }
2623
2634
  function Zr() {
2624
2635
  let [t] = Q(Me);
2625
- return K(() => () => t.dispose(), [t]), t;
2636
+ return Y(() => () => t.dispose(), [t]), t;
2626
2637
  }
2627
2638
  let ae = (t, e) => {
2628
- Ve.isServer ? K(t, e) : Io(t, e);
2639
+ Ve.isServer ? Y(t, e) : Io(t, e);
2629
2640
  };
2630
2641
  function qe(t) {
2631
- let e = j(t);
2642
+ let e = k(t);
2632
2643
  return ae(() => {
2633
2644
  e.current = t;
2634
2645
  }, [t]), e;
@@ -2636,9 +2647,9 @@ function qe(t) {
2636
2647
  let U = function(t) {
2637
2648
  let e = qe(t);
2638
2649
  return A.useCallback((...r) => e.current(...r), [e]);
2639
- }, Iu = ce(void 0);
2640
- function Mu() {
2641
- return ie(Iu);
2650
+ }, Mu = fe(void 0);
2651
+ function _u() {
2652
+ return ie(Mu);
2642
2653
  }
2643
2654
  function kr(...t) {
2644
2655
  return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
@@ -2652,62 +2663,62 @@ function Ce(t, e, ...r) {
2652
2663
  throw Error.captureStackTrace && Error.captureStackTrace(n, Ce), n;
2653
2664
  }
2654
2665
  var Vt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Vt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
2655
- function fe() {
2656
- let t = Du();
2657
- return ve((e) => _u({ mergeRefs: t, ...e }), [t]);
2666
+ function de() {
2667
+ let t = Nu();
2668
+ return ve((e) => Du({ mergeRefs: t, ...e }), [t]);
2658
2669
  }
2659
- function _u({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2660
- u = u ?? Nu;
2670
+ function Du({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2671
+ u = u ?? ku;
2661
2672
  let i = Ia(e, t);
2662
2673
  if (o) return Dt(i, r, n, l, u);
2663
- let d = a ?? 0;
2664
- if (d & 2) {
2665
- let { static: s = !1, ...g } = i;
2666
- if (s) return Dt(g, r, n, l, u);
2674
+ let f = a ?? 0;
2675
+ if (f & 2) {
2676
+ let { static: s = !1, ...h } = i;
2677
+ if (s) return Dt(h, r, n, l, u);
2667
2678
  }
2668
- if (d & 1) {
2669
- let { unmount: s = !0, ...g } = i;
2679
+ if (f & 1) {
2680
+ let { unmount: s = !0, ...h } = i;
2670
2681
  return Ce(s ? 0 : 1, { 0() {
2671
2682
  return null;
2672
2683
  }, 1() {
2673
- return Dt({ ...g, hidden: !0, style: { display: "none" } }, r, n, l, u);
2684
+ return Dt({ ...h, hidden: !0, style: { display: "none" } }, r, n, l, u);
2674
2685
  } });
2675
2686
  }
2676
2687
  return Dt(i, r, n, l, u);
2677
2688
  }
2678
2689
  function Dt(t, e = {}, r, n, a) {
2679
- let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2690
+ let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2680
2691
  "className" in i && i.className && typeof i.className == "function" && (i.className = i.className(e)), i["aria-labelledby"] && i["aria-labelledby"] === i.id && (i["aria-labelledby"] = void 0);
2681
- let g = {};
2692
+ let h = {};
2682
2693
  if (e) {
2683
2694
  let v = !1, w = [];
2684
- for (let [f, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(f.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
2695
+ for (let [d, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(d.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
2685
2696
  if (v) {
2686
- g["data-headlessui-state"] = w.join(" ");
2687
- for (let f of w) g[`data-${f}`] = "";
2697
+ h["data-headlessui-state"] = w.join(" ");
2698
+ for (let d of w) h[`data-${d}`] = "";
2688
2699
  }
2689
2700
  }
2690
- if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(g)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
2691
- if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(g))).map((v) => ` - ${v}`).join(`
2701
+ if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(h)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
2702
+ if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(h))).map((v) => ` - ${v}`).join(`
2692
2703
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
2693
2704
  `)].join(`
2694
2705
  `));
2695
2706
  } else {
2696
- let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = f ? { className: f } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
2697
- for (let m in g) m in p && delete g[m];
2698
- return _o(s, Object.assign({}, p, g, d, { ref: a(s.ref, d.ref) }, y));
2707
+ let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = d ? { className: d } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
2708
+ for (let m in h) m in p && delete h[m];
2709
+ return _o(s, Object.assign({}, p, h, f, { ref: a(s.ref, f.ref) }, y));
2699
2710
  }
2700
- return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && d, o !== he && g), s);
2711
+ return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && f, o !== he && h), s);
2701
2712
  }
2702
- function Du() {
2703
- let t = j([]), e = ve((r) => {
2713
+ function Nu() {
2714
+ let t = k([]), e = ve((r) => {
2704
2715
  for (let n of t.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
2705
2716
  }, []);
2706
2717
  return (...r) => {
2707
2718
  if (!r.every((n) => n == null)) return t.current = r, e;
2708
2719
  };
2709
2720
  }
2710
- function Nu(...t) {
2721
+ function ku(...t) {
2711
2722
  return t.every((e) => e == null) ? void 0 : (e) => {
2712
2723
  for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
2713
2724
  };
@@ -2744,20 +2755,20 @@ function Or(t, e = []) {
2744
2755
  for (let n of e) n in r && delete r[n];
2745
2756
  return r;
2746
2757
  }
2747
- let ku = "span";
2758
+ let ju = "span";
2748
2759
  var qt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(qt || {});
2749
- function ju(t, e) {
2760
+ function Lu(t, e) {
2750
2761
  var r;
2751
2762
  let { features: n = 1, ...a } = t, o = { ref: e, "aria-hidden": (n & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
2752
- return fe()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ku, name: "Hidden" });
2763
+ return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ju, name: "Hidden" });
2753
2764
  }
2754
- let jr = le(ju), Ma = Symbol();
2755
- function Lu(t, e = !0) {
2765
+ let jr = le(Lu), Ma = Symbol();
2766
+ function Wu(t, e = !0) {
2756
2767
  return Object.assign(t, { [Ma]: e });
2757
2768
  }
2758
2769
  function Se(...t) {
2759
- let e = j(t);
2760
- K(() => {
2770
+ let e = k(t);
2771
+ Y(() => {
2761
2772
  e.current = t;
2762
2773
  }, [t]);
2763
2774
  let r = U((n) => {
@@ -2765,7 +2776,7 @@ function Se(...t) {
2765
2776
  });
2766
2777
  return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
2767
2778
  }
2768
- let en = ce(null);
2779
+ let en = fe(null);
2769
2780
  en.displayName = "DescriptionContext";
2770
2781
  function _a() {
2771
2782
  let t = ie(en);
@@ -2775,7 +2786,7 @@ function _a() {
2775
2786
  }
2776
2787
  return t;
2777
2788
  }
2778
- function Wu() {
2789
+ function Uu() {
2779
2790
  let [t, e] = Q([]);
2780
2791
  return [t.length > 0 ? t.join(" ") : void 0, J(() => function(r) {
2781
2792
  let n = U((o) => (e((l) => [...l, o]), () => e((l) => {
@@ -2785,21 +2796,21 @@ function Wu() {
2785
2796
  return A.createElement(en.Provider, { value: a }, r.children);
2786
2797
  }, [e])];
2787
2798
  }
2788
- let Uu = "p";
2789
- function Bu(t, e) {
2790
- let r = xt(), n = Mu(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
2799
+ let Bu = "p";
2800
+ function Hu(t, e) {
2801
+ let r = Ot(), n = _u(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
2791
2802
  ae(() => l.register(a), [a, l.register]);
2792
- let i = n || !1, d = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
2793
- return fe()({ ourProps: s, theirProps: o, slot: d, defaultTag: Uu, name: l.name || "Description" });
2803
+ let i = n || !1, f = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
2804
+ return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Bu, name: l.name || "Description" });
2794
2805
  }
2795
- let Hu = le(Bu), Vu = Object.assign(Hu, {});
2806
+ let Vu = le(Hu), qu = Object.assign(Vu, {});
2796
2807
  var Da = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Da || {});
2797
- let qu = ce(() => {
2808
+ let Gu = fe(() => {
2798
2809
  });
2799
- function Gu({ value: t, children: e }) {
2800
- return A.createElement(qu.Provider, { value: t }, e);
2810
+ function Yu({ value: t, children: e }) {
2811
+ return A.createElement(Gu.Provider, { value: t }, e);
2801
2812
  }
2802
- let Yu = class extends Map {
2813
+ let zu = class extends Map {
2803
2814
  constructor(e) {
2804
2815
  super(), this.factory = e;
2805
2816
  }
@@ -2822,7 +2833,7 @@ function Na(t, e) {
2822
2833
  function ka(t) {
2823
2834
  return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
2824
2835
  }
2825
- let zu = new Yu(() => Na(() => [], { ADD(t) {
2836
+ let Ku = new zu(() => Na(() => [], { ADD(t) {
2826
2837
  return this.includes(t) ? this : [...this, t];
2827
2838
  }, REMOVE(t) {
2828
2839
  let e = this.indexOf(t);
@@ -2831,27 +2842,27 @@ let zu = new Yu(() => Na(() => [], { ADD(t) {
2831
2842
  return r.splice(e, 1), r;
2832
2843
  } }));
2833
2844
  function ot(t, e) {
2834
- let r = zu.get(e), n = xt(), a = ka(r);
2845
+ let r = Ku.get(e), n = Ot(), a = ka(r);
2835
2846
  if (ae(() => {
2836
2847
  if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
2837
2848
  }, [r, t]), !t) return !1;
2838
2849
  let o = a.indexOf(n), l = a.length;
2839
2850
  return o === -1 && (o = l, l += 1), o === l - 1;
2840
2851
  }
2841
- let Lr = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
2852
+ let Lr = /* @__PURE__ */ new Map(), Et = /* @__PURE__ */ new Map();
2842
2853
  function Kn(t) {
2843
2854
  var e;
2844
- let r = (e = wt.get(t)) != null ? e : 0;
2845
- return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2855
+ let r = (e = Et.get(t)) != null ? e : 0;
2856
+ return Et.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2846
2857
  }
2847
2858
  function Xn(t) {
2848
2859
  var e;
2849
- let r = (e = wt.get(t)) != null ? e : 1;
2850
- if (r === 1 ? wt.delete(t) : wt.set(t, r - 1), r !== 1) return;
2860
+ let r = (e = Et.get(t)) != null ? e : 1;
2861
+ if (r === 1 ? Et.delete(t) : Et.set(t, r - 1), r !== 1) return;
2851
2862
  let n = Lr.get(t);
2852
2863
  n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Lr.delete(t));
2853
2864
  }
2854
- function Ku(t, { allowed: e, disallowed: r } = {}) {
2865
+ function Xu(t, { allowed: e, disallowed: r } = {}) {
2855
2866
  let n = ot(t, "inert-others");
2856
2867
  ae(() => {
2857
2868
  var a, o;
@@ -2861,23 +2872,23 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
2861
2872
  let u = (o = e == null ? void 0 : e()) != null ? o : [];
2862
2873
  for (let i of u) {
2863
2874
  if (!i) continue;
2864
- let d = Xt(i);
2865
- if (!d) continue;
2875
+ let f = Xt(i);
2876
+ if (!f) continue;
2866
2877
  let s = i.parentElement;
2867
- for (; s && s !== d.body; ) {
2868
- for (let g of s.children) u.some((v) => g.contains(v)) || l.add(Kn(g));
2878
+ for (; s && s !== f.body; ) {
2879
+ for (let h of s.children) u.some((v) => h.contains(v)) || l.add(Kn(h));
2869
2880
  s = s.parentElement;
2870
2881
  }
2871
2882
  }
2872
2883
  return l.dispose;
2873
2884
  }, [n, e, r]);
2874
2885
  }
2875
- function Xu(t, e, r) {
2886
+ function Ju(t, e, r) {
2876
2887
  let n = qe((a) => {
2877
2888
  let o = a.getBoundingClientRect();
2878
2889
  o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
2879
2890
  });
2880
- K(() => {
2891
+ Y(() => {
2881
2892
  if (!t) return;
2882
2893
  let a = e === null ? null : e instanceof HTMLElement ? e : e.current;
2883
2894
  if (!a) return;
@@ -2893,16 +2904,16 @@ function Xu(t, e, r) {
2893
2904
  return () => o.dispose();
2894
2905
  }, [e, n, t]);
2895
2906
  }
2896
- let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Ju = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2897
- var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
2898
- function Zu(t = document.body) {
2907
+ let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Qu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2908
+ var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Zu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Zu || {});
2909
+ function es(t = document.body) {
2899
2910
  return t == null ? [] : Array.from(t.querySelectorAll(Gt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2900
2911
  }
2901
- function es(t = document.body) {
2902
- return t == null ? [] : Array.from(t.querySelectorAll(Ju)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2912
+ function ts(t = document.body) {
2913
+ return t == null ? [] : Array.from(t.querySelectorAll(Qu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2903
2914
  }
2904
2915
  var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
2905
- function ts(t, e = 0) {
2916
+ function rs(t, e = 0) {
2906
2917
  var r;
2907
2918
  return t === ((r = Xt(t)) == null ? void 0 : r.body) ? !1 : Ce(e, { 0() {
2908
2919
  return t.matches(Gt);
@@ -2915,7 +2926,7 @@ function ts(t, e = 0) {
2915
2926
  return !1;
2916
2927
  } });
2917
2928
  }
2918
- var rs = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(rs || {});
2929
+ var ns = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(ns || {});
2919
2930
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
2920
2931
  t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
2921
2932
  }, !0), document.addEventListener("click", (t) => {
@@ -2924,12 +2935,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
2924
2935
  function Ae(t) {
2925
2936
  t == null || t.focus({ preventScroll: !0 });
2926
2937
  }
2927
- let ns = ["textarea", "input"].join(",");
2928
- function as(t) {
2938
+ let as = ["textarea", "input"].join(",");
2939
+ function os(t) {
2929
2940
  var e, r;
2930
- return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, ns)) != null ? r : !1;
2941
+ return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, as)) != null ? r : !1;
2931
2942
  }
2932
- function os(t, e = (r) => r) {
2943
+ function is(t, e = (r) => r) {
2933
2944
  return t.slice().sort((r, n) => {
2934
2945
  let a = e(r), o = e(n);
2935
2946
  if (a === null || o === null) return 0;
@@ -2937,9 +2948,9 @@ function os(t, e = (r) => r) {
2937
2948
  return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
2938
2949
  });
2939
2950
  }
2940
- function Et(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
2941
- let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? os(t) : t : e & 64 ? es(t) : Zu(t);
2942
- a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((f) => f != null && "current" in f ? (f == null ? void 0 : f.current) === w : f === w))), n = n ?? o.activeElement;
2951
+ function St(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
2952
+ let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? is(t) : t : e & 64 ? ts(t) : es(t);
2953
+ a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((d) => d != null && "current" in d ? (d == null ? void 0 : d.current) === w : d === w))), n = n ?? o.activeElement;
2943
2954
  let u = (() => {
2944
2955
  if (e & 5) return 1;
2945
2956
  if (e & 10) return -1;
@@ -2950,31 +2961,31 @@ function Et(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
2950
2961
  if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
2951
2962
  if (e & 8) return l.length - 1;
2952
2963
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
2953
- })(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0, g = l.length, v;
2964
+ })(), f = e & 32 ? { preventScroll: !0 } : {}, s = 0, h = l.length, v;
2954
2965
  do {
2955
- if (s >= g || s + g <= 0) return 0;
2966
+ if (s >= h || s + h <= 0) return 0;
2956
2967
  let w = i + s;
2957
- if (e & 16) w = (w + g) % g;
2968
+ if (e & 16) w = (w + h) % h;
2958
2969
  else {
2959
2970
  if (w < 0) return 3;
2960
- if (w >= g) return 1;
2971
+ if (w >= h) return 1;
2961
2972
  }
2962
- v = l[w], v == null || v.focus(d), s += u;
2973
+ v = l[w], v == null || v.focus(f), s += u;
2963
2974
  } while (v !== o.activeElement);
2964
- return e & 6 && as(v) && v.select(), 2;
2975
+ return e & 6 && os(v) && v.select(), 2;
2965
2976
  }
2966
2977
  function La() {
2967
2978
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
2968
2979
  }
2969
- function is() {
2980
+ function ls() {
2970
2981
  return /Android/gi.test(window.navigator.userAgent);
2971
2982
  }
2972
- function ls() {
2973
- return La() || is();
2983
+ function us() {
2984
+ return La() || ls();
2974
2985
  }
2975
- function pt(t, e, r, n) {
2986
+ function yt(t, e, r, n) {
2976
2987
  let a = qe(r);
2977
- K(() => {
2988
+ Y(() => {
2978
2989
  if (!t) return;
2979
2990
  function o(l) {
2980
2991
  a.current(l);
@@ -2984,7 +2995,7 @@ function pt(t, e, r, n) {
2984
2995
  }
2985
2996
  function Wa(t, e, r, n) {
2986
2997
  let a = qe(r);
2987
- K(() => {
2998
+ Y(() => {
2988
2999
  if (!t) return;
2989
3000
  function o(l) {
2990
3001
  a.current(l);
@@ -2993,40 +3004,40 @@ function Wa(t, e, r, n) {
2993
3004
  }, [t, e, n]);
2994
3005
  }
2995
3006
  const Jn = 30;
2996
- function us(t, e, r) {
2997
- let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, d) {
3007
+ function ss(t, e, r) {
3008
+ let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, f) {
2998
3009
  if (i.defaultPrevented) return;
2999
- let s = d(i);
3010
+ let s = f(i);
3000
3011
  if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
3001
- let g = function v(w) {
3012
+ let h = function v(w) {
3002
3013
  return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
3003
3014
  }(e);
3004
- for (let v of g) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3005
- return !ts(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3006
- }, [a, e]), l = j(null);
3007
- pt(n, "pointerdown", (i) => {
3008
- var d, s;
3009
- l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
3010
- }, !0), pt(n, "mousedown", (i) => {
3011
- var d, s;
3012
- l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
3013
- }, !0), pt(n, "click", (i) => {
3014
- ls() || l.current && (o(i, () => l.current), l.current = null);
3015
+ for (let v of h) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3016
+ return !rs(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3017
+ }, [a, e]), l = k(null);
3018
+ yt(n, "pointerdown", (i) => {
3019
+ var f, s;
3020
+ l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3021
+ }, !0), yt(n, "mousedown", (i) => {
3022
+ var f, s;
3023
+ l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3024
+ }, !0), yt(n, "click", (i) => {
3025
+ us() || l.current && (o(i, () => l.current), l.current = null);
3015
3026
  }, !0);
3016
- let u = j({ x: 0, y: 0 });
3017
- pt(n, "touchstart", (i) => {
3027
+ let u = k({ x: 0, y: 0 });
3028
+ yt(n, "touchstart", (i) => {
3018
3029
  u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
3019
- }, !0), pt(n, "touchend", (i) => {
3020
- let d = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3021
- if (!(Math.abs(d.x - u.current.x) >= Jn || Math.abs(d.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3030
+ }, !0), yt(n, "touchend", (i) => {
3031
+ let f = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3032
+ if (!(Math.abs(f.x - u.current.x) >= Jn || Math.abs(f.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3022
3033
  }, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3023
3034
  }
3024
- function At(...t) {
3035
+ function Tt(...t) {
3025
3036
  return J(() => Xt(...t), [...t]);
3026
3037
  }
3027
3038
  function Ua(t, e, r, n) {
3028
3039
  let a = qe(r);
3029
- K(() => {
3040
+ Y(() => {
3030
3041
  t = t ?? window;
3031
3042
  function o(l) {
3032
3043
  a.current(l);
@@ -3034,7 +3045,7 @@ function Ua(t, e, r, n) {
3034
3045
  return t.addEventListener(e, o, n), () => t.removeEventListener(e, o, n);
3035
3046
  }, [t, e, n]);
3036
3047
  }
3037
- function ss() {
3048
+ function cs() {
3038
3049
  let t;
3039
3050
  return { before({ doc: e }) {
3040
3051
  var r;
@@ -3045,7 +3056,7 @@ function ss() {
3045
3056
  r.style(n, "paddingRight", `${o}px`);
3046
3057
  } };
3047
3058
  }
3048
- function cs() {
3059
+ function fs() {
3049
3060
  return La() ? { before({ doc: t, d: e, meta: r }) {
3050
3061
  function n(a) {
3051
3062
  return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
@@ -3061,7 +3072,7 @@ function cs() {
3061
3072
  if (u.target instanceof HTMLElement) try {
3062
3073
  let i = u.target.closest("a");
3063
3074
  if (!i) return;
3064
- let { hash: d } = new URL(i.href), s = t.querySelector(d);
3075
+ let { hash: f } = new URL(i.href), s = t.querySelector(f);
3065
3076
  s && !n(s) && (l = s);
3066
3077
  } catch {
3067
3078
  }
@@ -3088,12 +3099,12 @@ function cs() {
3088
3099
  });
3089
3100
  } } : {};
3090
3101
  }
3091
- function fs() {
3102
+ function ds() {
3092
3103
  return { before({ doc: t, d: e }) {
3093
3104
  e.style(t.documentElement, "overflow", "hidden");
3094
3105
  } };
3095
3106
  }
3096
- function ds(t) {
3107
+ function ps(t) {
3097
3108
  let e = {};
3098
3109
  for (let r of t) Object.assign(e, r(e));
3099
3110
  return e;
@@ -3106,7 +3117,7 @@ let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
3106
3117
  let r = this.get(t);
3107
3118
  return r && (r.count--, r.meta.delete(e)), this;
3108
3119
  }, SCROLL_PREVENT({ doc: t, d: e, meta: r }) {
3109
- let n = { doc: t, d: e, meta: ds(r) }, a = [cs(), ss(), fs()];
3120
+ let n = { doc: t, d: e, meta: ps(r) }, a = [fs(), cs(), ds()];
3110
3121
  a.forEach(({ before: o }) => o == null ? void 0 : o(n)), a.forEach(({ after: o }) => o == null ? void 0 : o(n));
3111
3122
  }, SCROLL_ALLOW({ d: t }) {
3112
3123
  t.dispose();
@@ -3121,21 +3132,21 @@ Ue.subscribe(() => {
3121
3132
  (a && !n || !a && n) && Ue.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && Ue.dispatch("TEARDOWN", r);
3122
3133
  }
3123
3134
  });
3124
- function ps(t, e, r = () => ({ containers: [] })) {
3135
+ function ys(t, e, r = () => ({ containers: [] })) {
3125
3136
  let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
3126
3137
  return ae(() => {
3127
3138
  if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
3128
3139
  }, [t, e]), o;
3129
3140
  }
3130
- function ys(t, e, r = () => [document.body]) {
3141
+ function vs(t, e, r = () => [document.body]) {
3131
3142
  let n = ot(t, "scroll-lock");
3132
- ps(n, e, (a) => {
3143
+ ys(n, e, (a) => {
3133
3144
  var o;
3134
3145
  return { containers: [...(o = a.containers) != null ? o : [], r] };
3135
3146
  });
3136
3147
  }
3137
- function vs(t = 0) {
3138
- let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((d) => d | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((d) => d & ~i), [r]), u = ve((i) => r((d) => d ^ i), [r]);
3148
+ function ms(t = 0) {
3149
+ let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((f) => f | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((f) => f & ~i), [r]), u = ve((i) => r((f) => f ^ i), [r]);
3139
3150
  return { flags: e, setFlag: n, addFlag: a, hasFlag: o, removeFlag: l, toggleFlag: u };
3140
3151
  }
3141
3152
  var Qn, Zn;
@@ -3143,14 +3154,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Qn
3143
3154
  return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
3144
3155
  `)), [];
3145
3156
  });
3146
- var ms = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(ms || {});
3147
- function hs(t) {
3157
+ var hs = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(hs || {});
3158
+ function gs(t) {
3148
3159
  let e = {};
3149
3160
  for (let r in t) t[r] === !0 && (e[`data-${r}`] = "");
3150
3161
  return e;
3151
3162
  }
3152
- function gs(t, e, r, n) {
3153
- let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), g = Zr();
3163
+ function bs(t, e, r, n) {
3164
+ let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h = Zr();
3154
3165
  return ae(() => {
3155
3166
  var v;
3156
3167
  if (t) {
@@ -3158,26 +3169,26 @@ function gs(t, e, r, n) {
3158
3169
  r && u(3);
3159
3170
  return;
3160
3171
  }
3161
- return (v = n == null ? void 0 : n.start) == null || v.call(n, r), bs(e, { inFlight: d, prepare() {
3162
- s.current ? s.current = !1 : s.current = d.current, d.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
3172
+ return (v = n == null ? void 0 : n.start) == null || v.call(n, r), ws(e, { inFlight: f, prepare() {
3173
+ s.current ? s.current = !1 : s.current = f.current, f.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
3163
3174
  }, run() {
3164
3175
  s.current ? r ? (i(3), u(4)) : (i(4), u(3)) : r ? i(1) : u(1);
3165
3176
  }, done() {
3166
3177
  var w;
3167
- s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (d.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
3178
+ s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (f.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
3168
3179
  } });
3169
3180
  }
3170
- }, [t, r, e, g]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
3181
+ }, [t, r, e, h]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
3171
3182
  }
3172
- function bs(t, { prepare: e, run: r, done: n, inFlight: a }) {
3183
+ function ws(t, { prepare: e, run: r, done: n, inFlight: a }) {
3173
3184
  let o = Me();
3174
- return Es(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3185
+ return Ss(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3175
3186
  r(), o.requestAnimationFrame(() => {
3176
- o.add(ws(t, n));
3187
+ o.add(Es(t, n));
3177
3188
  });
3178
3189
  }), o.dispose;
3179
3190
  }
3180
- function ws(t, e) {
3191
+ function Es(t, e) {
3181
3192
  var r, n;
3182
3193
  let a = Me();
3183
3194
  if (!t) return a.dispose;
@@ -3190,7 +3201,7 @@ function ws(t, e) {
3190
3201
  o || e();
3191
3202
  }), a.dispose);
3192
3203
  }
3193
- function Es(t, { inFlight: e, prepare: r }) {
3204
+ function Ss(t, { inFlight: e, prepare: r }) {
3194
3205
  if (e != null && e.current) {
3195
3206
  r();
3196
3207
  return;
@@ -3199,8 +3210,8 @@ function Es(t, { inFlight: e, prepare: r }) {
3199
3210
  t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
3200
3211
  }
3201
3212
  function tn(t, e) {
3202
- let r = j([]), n = U(t);
3203
- K(() => {
3213
+ let r = k([]), n = U(t);
3214
+ Y(() => {
3204
3215
  let a = [...r.current];
3205
3216
  for (let [o, l] of e.entries()) if (r.current[o] !== l) {
3206
3217
  let u = n(e, a);
@@ -3208,26 +3219,26 @@ function tn(t, e) {
3208
3219
  }
3209
3220
  }, [n, ...e]);
3210
3221
  }
3211
- let Qt = ce(null);
3222
+ let Qt = fe(null);
3212
3223
  Qt.displayName = "OpenClosedContext";
3213
3224
  var me = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(me || {});
3214
3225
  function Zt() {
3215
3226
  return ie(Qt);
3216
3227
  }
3217
- function Ss({ value: t, children: e }) {
3228
+ function xs({ value: t, children: e }) {
3218
3229
  return A.createElement(Qt.Provider, { value: t }, e);
3219
3230
  }
3220
- function xs({ children: t }) {
3231
+ function Os({ children: t }) {
3221
3232
  return A.createElement(Qt.Provider, { value: null }, t);
3222
3233
  }
3223
- function Os(t) {
3234
+ function Ps(t) {
3224
3235
  function e() {
3225
3236
  document.readyState !== "loading" && (t(), document.removeEventListener("DOMContentLoaded", e));
3226
3237
  }
3227
3238
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", e), e());
3228
3239
  }
3229
3240
  let $e = [];
3230
- Os(() => {
3241
+ Ps(() => {
3231
3242
  function t(e) {
3232
3243
  if (!(e.target instanceof HTMLElement) || e.target === document.body || $e[0] === e.target) return;
3233
3244
  let r = e.target;
@@ -3236,33 +3247,33 @@ Os(() => {
3236
3247
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
3237
3248
  });
3238
3249
  function Ba(t) {
3239
- let e = U(t), r = j(!1);
3240
- K(() => (r.current = !1, () => {
3250
+ let e = U(t), r = k(!1);
3251
+ Y(() => (r.current = !1, () => {
3241
3252
  r.current = !0, Jt(() => {
3242
3253
  r.current && e();
3243
3254
  });
3244
3255
  }), [e]);
3245
3256
  }
3246
- function Ps() {
3257
+ function As() {
3247
3258
  let t = typeof document > "u";
3248
- return "useSyncExternalStore" in mt ? ((e) => e.useSyncExternalStore)(mt)(() => () => {
3259
+ return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
3249
3260
  }, () => !1, () => !t) : !1;
3250
3261
  }
3251
- function Tt() {
3252
- let t = Ps(), [e, r] = mt.useState(Ve.isHandoffComplete);
3253
- return e && Ve.isHandoffComplete === !1 && r(!1), mt.useEffect(() => {
3262
+ function $t() {
3263
+ let t = As(), [e, r] = ht.useState(Ve.isHandoffComplete);
3264
+ return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
3254
3265
  e !== !0 && r(!0);
3255
- }, [e]), mt.useEffect(() => Ve.handoff(), []), t ? !1 : e;
3266
+ }, [e]), ht.useEffect(() => Ve.handoff(), []), t ? !1 : e;
3256
3267
  }
3257
- let Ha = ce(!1);
3258
- function As() {
3268
+ let Ha = fe(!1);
3269
+ function Ts() {
3259
3270
  return ie(Ha);
3260
3271
  }
3261
3272
  function ea(t) {
3262
3273
  return A.createElement(Ha.Provider, { value: t.force }, t.children);
3263
3274
  }
3264
- function Ts(t) {
3265
- let e = As(), r = ie(qa), n = At(t), [a, o] = Q(() => {
3275
+ function $s(t) {
3276
+ let e = Ts(), r = ie(qa), n = Tt(t), [a, o] = Q(() => {
3266
3277
  var l;
3267
3278
  if (!e && r !== null) return (l = r.current) != null ? l : null;
3268
3279
  if (Ve.isServer) return null;
@@ -3272,42 +3283,42 @@ function Ts(t) {
3272
3283
  let i = n.createElement("div");
3273
3284
  return i.setAttribute("id", "headlessui-portal-root"), n.body.appendChild(i);
3274
3285
  });
3275
- return K(() => {
3286
+ return Y(() => {
3276
3287
  a !== null && (n != null && n.body.contains(a) || n == null || n.body.appendChild(a));
3277
- }, [a, n]), K(() => {
3288
+ }, [a, n]), Y(() => {
3278
3289
  e || r !== null && o(r.current);
3279
3290
  }, [r, o, e]), a;
3280
3291
  }
3281
- let Va = he, $s = le(function(t, e) {
3282
- let r = t, n = j(null), a = Se(Lu((g) => {
3283
- n.current = g;
3284
- }), e), o = At(n), l = Ts(n), [u] = Q(() => {
3285
- var g;
3286
- return Ve.isServer ? null : (g = o == null ? void 0 : o.createElement("div")) != null ? g : null;
3287
- }), i = ie(Ur), d = Tt();
3292
+ let Va = he, Rs = le(function(t, e) {
3293
+ let r = t, n = k(null), a = Se(Wu((h) => {
3294
+ n.current = h;
3295
+ }), e), o = Tt(n), l = $s(n), [u] = Q(() => {
3296
+ var h;
3297
+ return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
3298
+ }), i = ie(Ur), f = $t();
3288
3299
  ae(() => {
3289
3300
  !l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
3290
3301
  }, [l, u]), ae(() => {
3291
3302
  if (u && i) return i.register(u);
3292
3303
  }, [i, u]), Ba(() => {
3293
- var g;
3294
- !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l)));
3304
+ var h;
3305
+ !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((h = l.parentElement) == null || h.removeChild(l)));
3295
3306
  });
3296
- let s = fe();
3297
- return d ? !l || !u ? null : jo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
3307
+ let s = de();
3308
+ return f ? !l || !u ? null : Lo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
3298
3309
  });
3299
- function Rs(t, e) {
3300
- let r = Se(e), { enabled: n = !0, ...a } = t, o = fe();
3301
- return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
3302
- }
3303
- let Fs = he, qa = ce(null);
3304
- function Cs(t, e) {
3305
- let { target: r, ...n } = t, a = { ref: Se(e) }, o = fe();
3306
- return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Fs, name: "Popover.Group" }));
3307
- }
3308
- let Ur = ce(null);
3309
- function Is() {
3310
- let t = ie(Ur), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3310
+ function Fs(t, e) {
3311
+ let r = Se(e), { enabled: n = !0, ...a } = t, o = de();
3312
+ return n ? A.createElement(Rs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
3313
+ }
3314
+ let Cs = he, qa = fe(null);
3315
+ function Is(t, e) {
3316
+ let { target: r, ...n } = t, a = { ref: Se(e) }, o = de();
3317
+ return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Cs, name: "Popover.Group" }));
3318
+ }
3319
+ let Ur = fe(null);
3320
+ function Ms() {
3321
+ let t = ie(Ur), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3311
3322
  let l = e.current.indexOf(o);
3312
3323
  l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
3313
3324
  }), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
@@ -3315,14 +3326,14 @@ function Is() {
3315
3326
  return A.createElement(Ur.Provider, { value: a }, o);
3316
3327
  }, [a])];
3317
3328
  }
3318
- let Ms = le(Rs), Ga = le(Cs), _s = Object.assign(Ms, { Group: Ga });
3319
- function Ds(t, e = typeof document < "u" ? document.defaultView : null, r) {
3329
+ let _s = le(Fs), Ga = le(Is), Ds = Object.assign(_s, { Group: Ga });
3330
+ function Ns(t, e = typeof document < "u" ? document.defaultView : null, r) {
3320
3331
  let n = ot(t, "escape");
3321
3332
  Ua(e, "keydown", (a) => {
3322
3333
  n && (a.defaultPrevented || a.key === Da.Escape && r(a));
3323
3334
  });
3324
3335
  }
3325
- function Ns() {
3336
+ function ks() {
3326
3337
  var t;
3327
3338
  let [e] = Q(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = Q((t = e == null ? void 0 : e.matches) != null ? t : !1);
3328
3339
  return ae(() => {
@@ -3333,18 +3344,18 @@ function Ns() {
3333
3344
  return e.addEventListener("change", a), () => e.removeEventListener("change", a);
3334
3345
  }, [e]), r;
3335
3346
  }
3336
- function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3337
- let n = At(r), a = U(() => {
3347
+ function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3348
+ let n = Tt(r), a = U(() => {
3338
3349
  var o, l;
3339
3350
  let u = [];
3340
3351
  for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
3341
3352
  if (e != null && e.current) for (let i of e.current) u.push(i);
3342
- for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((d) => i.contains(d)) || u.push(i));
3353
+ for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((f) => i.contains(f)) || u.push(i));
3343
3354
  return u;
3344
3355
  });
3345
3356
  return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
3346
3357
  }
3347
- let Ya = ce(null);
3358
+ let Ya = fe(null);
3348
3359
  function ta({ children: t, node: e }) {
3349
3360
  let [r, n] = Q(null), a = za(e ?? r);
3350
3361
  return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
@@ -3362,14 +3373,14 @@ function za(t = null) {
3362
3373
  return (e = ie(Ya)) != null ? e : t;
3363
3374
  }
3364
3375
  function rn() {
3365
- let t = j(!1);
3376
+ let t = k(!1);
3366
3377
  return ae(() => (t.current = !0, () => {
3367
3378
  t.current = !1;
3368
3379
  }), []), t;
3369
3380
  }
3370
- var vt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(vt || {});
3371
- function js() {
3372
- let t = j(0);
3381
+ var mt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(mt || {});
3382
+ function Ls() {
3383
+ let t = k(0);
3373
3384
  return Wa(!0, "keydown", (e) => {
3374
3385
  e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
3375
3386
  }, !0), t;
@@ -3381,40 +3392,40 @@ function Ka(t) {
3381
3392
  for (let r of t.current) r.current instanceof HTMLElement && e.add(r.current);
3382
3393
  return e;
3383
3394
  }
3384
- let Ls = "div";
3395
+ let Ws = "div";
3385
3396
  var We = ((t) => (t[t.None = 0] = "None", t[t.InitialFocus = 1] = "InitialFocus", t[t.TabLock = 2] = "TabLock", t[t.FocusLock = 4] = "FocusLock", t[t.RestoreFocus = 8] = "RestoreFocus", t[t.AutoFocus = 16] = "AutoFocus", t))(We || {});
3386
- function Ws(t, e) {
3387
- let r = j(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
3388
- Tt() || (u = 0);
3389
- let d = At(r);
3390
- Vs(u, { ownerDocument: d });
3391
- let s = qs(u, { ownerDocument: d, container: r, initialFocus: a, initialFocusFallback: o });
3392
- Gs(u, { ownerDocument: d, container: r, containers: l, previousActiveElement: s });
3393
- let g = js(), v = U((h) => {
3397
+ function Us(t, e) {
3398
+ let r = k(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
3399
+ $t() || (u = 0);
3400
+ let f = Tt(r);
3401
+ qs(u, { ownerDocument: f });
3402
+ let s = Gs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
3403
+ Ys(u, { ownerDocument: f, container: r, containers: l, previousActiveElement: s });
3404
+ let h = Ls(), v = U((g) => {
3394
3405
  let b = r.current;
3395
3406
  b && ((S) => S())(() => {
3396
- Ce(g.current, { [vt.Forwards]: () => {
3397
- Et(b, Pe.First, { skipElements: [h.relatedTarget, o] });
3398
- }, [vt.Backwards]: () => {
3399
- Et(b, Pe.Last, { skipElements: [h.relatedTarget, o] });
3407
+ Ce(h.current, { [mt.Forwards]: () => {
3408
+ St(b, Pe.First, { skipElements: [g.relatedTarget, o] });
3409
+ }, [mt.Backwards]: () => {
3410
+ St(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
3400
3411
  } });
3401
3412
  });
3402
- }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(h) {
3403
- h.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
3413
+ }), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = Zr(), y = k(!1), p = { ref: n, onKeyDown(g) {
3414
+ g.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
3404
3415
  y.current = !1;
3405
3416
  }));
3406
- }, onBlur(h) {
3417
+ }, onBlur(g) {
3407
3418
  if (!(u & 4)) return;
3408
3419
  let b = Ka(l);
3409
3420
  r.current instanceof HTMLElement && b.add(r.current);
3410
- let S = h.relatedTarget;
3411
- S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? Et(r.current, Ce(g.current, { [vt.Forwards]: () => Pe.Next, [vt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Ae(h.target)));
3412
- } }, m = fe();
3413
- return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3414
- }
3415
- let Us = le(Ws), Bs = Object.assign(Us, { features: We });
3416
- function Hs(t = !0) {
3417
- let e = j($e.slice());
3421
+ let S = g.relatedTarget;
3422
+ S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? St(r.current, Ce(h.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
3423
+ } }, m = de();
3424
+ return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ws, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3425
+ }
3426
+ let Bs = le(Us), Hs = Object.assign(Bs, { features: We });
3427
+ function Vs(t = !0) {
3428
+ let e = k($e.slice());
3418
3429
  return tn(([r], [n]) => {
3419
3430
  n === !0 && r === !1 && Jt(() => {
3420
3431
  e.current.splice(0);
@@ -3424,16 +3435,16 @@ function Hs(t = !0) {
3424
3435
  return (r = e.current.find((n) => n != null && n.isConnected)) != null ? r : null;
3425
3436
  });
3426
3437
  }
3427
- function Vs(t, { ownerDocument: e }) {
3428
- let r = !!(t & 8), n = Hs(r);
3438
+ function qs(t, { ownerDocument: e }) {
3439
+ let r = !!(t & 8), n = Vs(r);
3429
3440
  tn(() => {
3430
3441
  r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
3431
3442
  }, [r]), Ba(() => {
3432
3443
  r && Ae(n());
3433
3444
  });
3434
3445
  }
3435
- function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3436
- let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3446
+ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3447
+ let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3437
3448
  return tn(() => {
3438
3449
  if (t === 0) return;
3439
3450
  if (!l) {
@@ -3443,21 +3454,21 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3443
3454
  let i = r.current;
3444
3455
  i && Jt(() => {
3445
3456
  if (!u.current) return;
3446
- let d = e == null ? void 0 : e.activeElement;
3457
+ let f = e == null ? void 0 : e.activeElement;
3447
3458
  if (n != null && n.current) {
3448
- if ((n == null ? void 0 : n.current) === d) {
3449
- o.current = d;
3459
+ if ((n == null ? void 0 : n.current) === f) {
3460
+ o.current = f;
3450
3461
  return;
3451
3462
  }
3452
- } else if (i.contains(d)) {
3453
- o.current = d;
3463
+ } else if (i.contains(f)) {
3464
+ o.current = f;
3454
3465
  return;
3455
3466
  }
3456
3467
  if (n != null && n.current) Ae(n.current);
3457
3468
  else {
3458
3469
  if (t & 16) {
3459
- if (Et(i, Pe.First | Pe.AutoFocus) !== Wr.Error) return;
3460
- } else if (Et(i, Pe.First) !== Wr.Error) return;
3470
+ if (St(i, Pe.First | Pe.AutoFocus) !== Wr.Error) return;
3471
+ } else if (St(i, Pe.First) !== Wr.Error) return;
3461
3472
  if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
3462
3473
  console.warn("There are no focusable elements inside the <FocusTrap />");
3463
3474
  }
@@ -3465,16 +3476,16 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3465
3476
  });
3466
3477
  }, [a, l, t]), o;
3467
3478
  }
3468
- function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3479
+ function Ys(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3469
3480
  let o = rn(), l = !!(t & 4);
3470
3481
  Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
3471
3482
  if (!l || !o.current) return;
3472
3483
  let i = Ka(n);
3473
3484
  r.current instanceof HTMLElement && i.add(r.current);
3474
- let d = a.current;
3475
- if (!d) return;
3485
+ let f = a.current;
3486
+ if (!f) return;
3476
3487
  let s = u.target;
3477
- s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(d)) : Ae(a.current);
3488
+ s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(f)) : Ae(a.current);
3478
3489
  }, !0);
3479
3490
  }
3480
3491
  function Xa(t, e) {
@@ -3485,28 +3496,28 @@ function Ja(t) {
3485
3496
  var e;
3486
3497
  return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Za) !== he || A.Children.count(t.children) === 1;
3487
3498
  }
3488
- let er = ce(null);
3499
+ let er = fe(null);
3489
3500
  er.displayName = "TransitionContext";
3490
- var Ys = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Ys || {});
3491
- function zs() {
3501
+ var zs = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(zs || {});
3502
+ function Ks() {
3492
3503
  let t = ie(er);
3493
3504
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3494
3505
  return t;
3495
3506
  }
3496
- function Ks() {
3507
+ function Xs() {
3497
3508
  let t = ie(tr);
3498
3509
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3499
3510
  return t;
3500
3511
  }
3501
- let tr = ce(null);
3512
+ let tr = fe(null);
3502
3513
  tr.displayName = "NestingContext";
3503
3514
  function rr(t) {
3504
3515
  return "children" in t ? rr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3505
3516
  }
3506
3517
  function Qa(t, e) {
3507
- let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
3518
+ let r = qe(t), n = k([]), a = rn(), o = Zr(), l = U((w, d = Fe.Hidden) => {
3508
3519
  let y = n.current.findIndex(({ el: p }) => p === w);
3509
- y !== -1 && (Ce(f, { [Fe.Unmount]() {
3520
+ y !== -1 && (Ce(d, { [Fe.Unmount]() {
3510
3521
  n.current.splice(y, 1);
3511
3522
  }, [Fe.Hidden]() {
3512
3523
  n.current[y].state = "hidden";
@@ -3515,42 +3526,42 @@ function Qa(t, e) {
3515
3526
  !rr(n) && a.current && ((p = r.current) == null || p.call(r));
3516
3527
  }));
3517
3528
  }), u = U((w) => {
3518
- let f = n.current.find(({ el: y }) => y === w);
3519
- return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
3520
- }), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }), g = U((w, f, y) => {
3521
- i.current.splice(0), e && (e.chains.current[f] = e.chains.current[f].filter(([p]) => p !== w)), e == null || e.chains.current[f].push([w, new Promise((p) => {
3529
+ let d = n.current.find(({ el: y }) => y === w);
3530
+ return d ? d.state !== "visible" && (d.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
3531
+ }), i = k([]), f = k(Promise.resolve()), s = k({ enter: [], leave: [] }), h = U((w, d, y) => {
3532
+ i.current.splice(0), e && (e.chains.current[d] = e.chains.current[d].filter(([p]) => p !== w)), e == null || e.chains.current[d].push([w, new Promise((p) => {
3522
3533
  i.current.push(p);
3523
- })]), e == null || e.chains.current[f].push([w, new Promise((p) => {
3524
- Promise.all(s.current[f].map(([m, h]) => h)).then(() => p());
3525
- })]), f === "enter" ? d.current = d.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(f)) : y(f);
3526
- }), v = U((w, f, y) => {
3527
- Promise.all(s.current[f].splice(0).map(([p, m]) => m)).then(() => {
3534
+ })]), e == null || e.chains.current[d].push([w, new Promise((p) => {
3535
+ Promise.all(s.current[d].map(([m, g]) => g)).then(() => p());
3536
+ })]), d === "enter" ? f.current = f.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(d)) : y(d);
3537
+ }), v = U((w, d, y) => {
3538
+ Promise.all(s.current[d].splice(0).map(([p, m]) => m)).then(() => {
3528
3539
  var p;
3529
3540
  (p = i.current.shift()) == null || p();
3530
- }).then(() => y(f));
3541
+ }).then(() => y(d));
3531
3542
  });
3532
- return J(() => ({ children: n, register: u, unregister: l, onStart: g, onStop: v, wait: d, chains: s }), [u, l, n, g, v, s, d]);
3543
+ return J(() => ({ children: n, register: u, unregister: l, onStart: h, onStop: v, wait: f, chains: s }), [u, l, n, h, v, s, f]);
3533
3544
  }
3534
3545
  let Za = he, eo = Vt.RenderStrategy;
3535
- function Xs(t, e) {
3546
+ function Js(t, e) {
3536
3547
  var r, n;
3537
- let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo: g, entered: v, leave: w, leaveFrom: f, leaveTo: y, ...p } = t, [m, h] = Q(null), b = j(null), S = Ja(t), O = Se(...S ? [b, e, h] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = zs(), [k, Y] = Q(M ? "visible" : "hidden"), V = Ks(), { register: $, unregister: T } = V;
3548
+ let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: h, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, g] = Q(null), b = k(null), S = Ja(t), O = Se(...S ? [b, e, g] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = Ks(), [j, z] = Q(M ? "visible" : "hidden"), V = Xs(), { register: $, unregister: T } = V;
3538
3549
  ae(() => $(b), [$, b]), ae(() => {
3539
3550
  if (_ === Fe.Hidden && b.current) {
3540
- if (M && k !== "visible") {
3541
- Y("visible");
3551
+ if (M && j !== "visible") {
3552
+ z("visible");
3542
3553
  return;
3543
3554
  }
3544
- return Ce(k, { hidden: () => T(b), visible: () => $(b) });
3555
+ return Ce(j, { hidden: () => T(b), visible: () => $(b) });
3545
3556
  }
3546
- }, [k, b, $, T, M, _]);
3547
- let D = Tt();
3557
+ }, [j, b, $, T, M, _]);
3558
+ let D = $t();
3548
3559
  ae(() => {
3549
- if (S && D && k === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3550
- }, [b, k, D, S]);
3551
- let ue = H && !W, de = W && M && H, ge = j(!1), te = Qa(() => {
3552
- ge.current || (Y("hidden"), T(b));
3553
- }, V), pe = U((Ne) => {
3560
+ if (S && D && j === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3561
+ }, [b, j, D, S]);
3562
+ let ue = H && !W, pe = W && M && H, ge = k(!1), te = Qa(() => {
3563
+ ge.current || (z("hidden"), T(b));
3564
+ }, V), ye = U((Ne) => {
3554
3565
  ge.current = !0;
3555
3566
  let xe = Ne ? "enter" : "leave";
3556
3567
  te.onStart(b, xe, (Oe) => {
@@ -3560,49 +3571,49 @@ function Xs(t, e) {
3560
3571
  let xe = Ne ? "enter" : "leave";
3561
3572
  ge.current = !1, te.onStop(b, xe, (Oe) => {
3562
3573
  Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
3563
- }), xe === "leave" && !rr(te) && (Y("hidden"), T(b));
3574
+ }), xe === "leave" && !rr(te) && (z("hidden"), T(b));
3564
3575
  });
3565
- K(() => {
3566
- S && a || (pe(M), q(M));
3576
+ Y(() => {
3577
+ S && a || (ye(M), q(M));
3567
3578
  }, [M, S, a]);
3568
- let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && g, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
3569
- k === "visible" && (De |= me.Open), k === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3570
- let lt = fe();
3571
- return A.createElement(tr.Provider, { value: te }, A.createElement(Ss, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: k === "visible", name: "Transition.Child" })));
3579
+ let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...gs(ee) }), De = 0;
3580
+ j === "visible" && (De |= me.Open), j === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3581
+ let lt = de();
3582
+ return A.createElement(tr.Provider, { value: te }, A.createElement(xs, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: j === "visible", name: "Transition.Child" })));
3572
3583
  }
3573
- function Js(t, e) {
3574
- let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3575
- Tt();
3576
- let d = Zt();
3577
- if (r === void 0 && d !== null && (r = (d & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3578
- let [s, g] = Q(r ? "visible" : "hidden"), v = Qa(() => {
3579
- r || g("hidden");
3580
- }), [w, f] = Q(!0), y = j([r]);
3584
+ function Qs(t, e) {
3585
+ let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3586
+ $t();
3587
+ let f = Zt();
3588
+ if (r === void 0 && f !== null && (r = (f & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3589
+ let [s, h] = Q(r ? "visible" : "hidden"), v = Qa(() => {
3590
+ r || h("hidden");
3591
+ }), [w, d] = Q(!0), y = k([r]);
3581
3592
  ae(() => {
3582
- w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), f(!1));
3593
+ w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), d(!1));
3583
3594
  }, [y, r]);
3584
3595
  let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
3585
3596
  ae(() => {
3586
- r ? g("visible") : !rr(v) && l.current !== null && g("hidden");
3597
+ r ? h("visible") : !rr(v) && l.current !== null && h("hidden");
3587
3598
  }, [r, v]);
3588
- let m = { unmount: a }, h = U(() => {
3599
+ let m = { unmount: a }, g = U(() => {
3589
3600
  var O;
3590
- w && f(!1), (O = t.beforeEnter) == null || O.call(t);
3601
+ w && d(!1), (O = t.beforeEnter) == null || O.call(t);
3591
3602
  }), b = U(() => {
3592
3603
  var O;
3593
- w && f(!1), (O = t.beforeLeave) == null || O.call(t);
3594
- }), S = fe();
3595
- return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: h, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
3604
+ w && d(!1), (O = t.beforeLeave) == null || O.call(t);
3605
+ }), S = de();
3606
+ return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
3596
3607
  }
3597
- function Qs(t, e) {
3608
+ function Zs(t, e) {
3598
3609
  let r = ie(er) !== null, n = Zt() !== null;
3599
3610
  return A.createElement(A.Fragment, null, !r && n ? A.createElement(Br, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
3600
3611
  }
3601
- let Br = le(Js), to = le(Xs), it = le(Qs), ro = Object.assign(Br, { Child: it, Root: Br });
3602
- var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
3603
- let tc = { 0(t, e) {
3612
+ let Br = le(Qs), to = le(Js), it = le(Zs), ro = Object.assign(Br, { Child: it, Root: Br });
3613
+ var ec = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(ec || {}), tc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(tc || {});
3614
+ let rc = { 0(t, e) {
3604
3615
  return t.titleId === e.id ? t : { ...t, titleId: e.id };
3605
- } }, nn = ce(null);
3616
+ } }, nn = fe(null);
3606
3617
  nn.displayName = "DialogContext";
3607
3618
  function nr(t) {
3608
3619
  let e = ie(nn);
@@ -3612,37 +3623,37 @@ function nr(t) {
3612
3623
  }
3613
3624
  return e;
3614
3625
  }
3615
- function rc(t, e) {
3616
- return Ce(e.type, tc, t, e);
3626
+ function nc(t, e) {
3627
+ return Ce(e.type, rc, t, e);
3617
3628
  }
3618
3629
  let ra = le(function(t, e) {
3619
- let r = xt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...g } = t, v = j(!1);
3630
+ let r = Ot(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...h } = t, v = k(!1);
3620
3631
  u = function() {
3621
3632
  return u === "dialog" || u === "alertdialog" ? u : (v.current || (v.current = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
3622
3633
  }();
3623
3634
  let w = Zt();
3624
3635
  a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
3625
- let f = j(null), y = Se(f, e), p = At(f), m = a ? 0 : 1, [h, b] = No(rc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Tt() ? m === 0 : !1, [M, W] = Is(), H = { get current() {
3636
+ let d = k(null), y = Se(d, e), p = Tt(d), m = a ? 0 : 1, [g, b] = No(nc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = $t() ? m === 0 : !1, [M, W] = Ms(), H = { get current() {
3626
3637
  var q;
3627
- return (q = h.panelRef.current) != null ? q : f.current;
3628
- } }, k = za(), { resolveContainers: Y } = ks({ mainTreeNode: k, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3629
- Ku(d || V ? !1 : _, { allowed: U(() => {
3638
+ return (q = g.panelRef.current) != null ? q : d.current;
3639
+ } }, j = za(), { resolveContainers: z } = js({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3640
+ Xu(f || V ? !1 : _, { allowed: U(() => {
3630
3641
  var q, _e;
3631
- return [(_e = (q = f.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
3642
+ return [(_e = (q = d.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
3632
3643
  }), disallowed: U(() => {
3633
3644
  var q;
3634
- return [(q = k == null ? void 0 : k.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
3635
- }) }), us(_, Y, (q) => {
3645
+ return [(q = j == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
3646
+ }) }), ss(_, z, (q) => {
3636
3647
  q.preventDefault(), S();
3637
- }), Ds(_, p == null ? void 0 : p.defaultView, (q) => {
3648
+ }), Ns(_, p == null ? void 0 : p.defaultView, (q) => {
3638
3649
  q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
3639
- }), ys(d || V ? !1 : _, p, Y), Xu(_, f, S);
3640
- let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, h], [m, h, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), de = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": d ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
3641
- _ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3642
- let pe = fe();
3643
- return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: g, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3644
- }), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
3645
- function oc(t, e) {
3650
+ }), vs(f || V ? !1 : _, p, z), Ju(_, d, S);
3651
+ let [$, T] = Uu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !ks(), te = We.None;
3652
+ _ && !f && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3653
+ let ye = de();
3654
+ return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: d }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Hs, { initialFocus: l, initialFocusFallback: d, containers: z, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: h, slot: ue, defaultTag: ac, features: oc, visible: m === 0, name: "Dialog" })))))))))));
3655
+ }), ac = "div", oc = Vt.RenderStrategy | Vt.Static;
3656
+ function ic(t, e) {
3646
3657
  let { transition: r = !1, open: n, ...a } = t, o = Zt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
3647
3658
  if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
3648
3659
  if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
@@ -3651,28 +3662,28 @@ function oc(t, e) {
3651
3662
  if (typeof t.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);
3652
3663
  return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(ro, { show: n, transition: r, unmount: a.unmount }, A.createElement(ra, { ref: e, ...a }))) : A.createElement(ta, null, A.createElement(ra, { ref: e, open: n, ...a }));
3653
3664
  }
3654
- let ic = "div";
3655
- function lc(t, e) {
3656
- let r = xt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), d = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), g = U((p) => {
3665
+ let lc = "div";
3666
+ function uc(t, e) {
3667
+ let r = Ot(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), h = U((p) => {
3657
3668
  p.stopPropagation();
3658
- }), v = { ref: d, id: n, onClick: g }, w = a ? it : he, f = a ? { unmount: u } : {}, y = fe();
3659
- return A.createElement(w, { ...f }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: ic, name: "Dialog.Panel" }));
3660
- }
3661
- let uc = "div";
3662
- function sc(t, e) {
3663
- let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, d = r ? { unmount: o } : {}, s = fe();
3664
- return A.createElement(i, { ...d }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: uc, name: "Dialog.Backdrop" }));
3665
- }
3666
- let cc = "h2";
3667
- function fc(t, e) {
3668
- let r = xt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = nr("Dialog.Title"), u = Se(e);
3669
- K(() => (l(n), () => l(null)), [n, l]);
3670
- let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
3671
- return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
3672
- }
3673
- let dc = le(oc), an = le(lc);
3674
- le(sc);
3675
- let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
3669
+ }), v = { ref: f, id: n, onClick: h }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
3670
+ return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: lc, name: "Dialog.Panel" }));
3671
+ }
3672
+ let sc = "div";
3673
+ function cc(t, e) {
3674
+ let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
3675
+ return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: sc, name: "Dialog.Backdrop" }));
3676
+ }
3677
+ let fc = "h2";
3678
+ function dc(t, e) {
3679
+ let r = Ot(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = nr("Dialog.Title"), u = Se(e);
3680
+ Y(() => (l(n), () => l(null)), [n, l]);
3681
+ let i = J(() => ({ open: o === 0 }), [o]), f = { ref: u, id: n };
3682
+ return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: fc, name: "Dialog.Title" });
3683
+ }
3684
+ let pc = le(ic), an = le(uc);
3685
+ le(cc);
3686
+ let yc = le(dc), vc = Object.assign(pc, { Panel: an, Title: yc, Description: qu });
3676
3687
  function no({ onClick: t }) {
3677
3688
  return /* @__PURE__ */ R.jsxs(
3678
3689
  "button",
@@ -3706,7 +3717,7 @@ function no({ onClick: t }) {
3706
3717
  }
3707
3718
  );
3708
3719
  }
3709
- const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
3720
+ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
3710
3721
  "div",
3711
3722
  {
3712
3723
  className: Ht("im-modal-positioner flex min-h-full justify-center", {
@@ -3741,7 +3752,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3741
3752
  }
3742
3753
  )
3743
3754
  }
3744
- ) }), mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
3755
+ ) }), hc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
3745
3756
  "div",
3746
3757
  {
3747
3758
  className: Ht("im-slideover-positioner flex min-h-full items-center", {
@@ -3775,8 +3786,8 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3775
3786
  }
3776
3787
  )
3777
3788
  }
3778
- ) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
3779
- const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
3789
+ ) }), gc = Hr(({ name: t, children: e, ...r }, n) => {
3790
+ const a = (l) => typeof e == "function" ? e(l) : e, o = k(null);
3780
3791
  return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3781
3792
  Fa,
3782
3793
  {
@@ -3787,24 +3798,24 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3787
3798
  afterLeave: l,
3788
3799
  close: u,
3789
3800
  config: i,
3790
- emit: d,
3801
+ emit: f,
3791
3802
  getChildModal: s,
3792
- getParentModal: g,
3803
+ getParentModal: h,
3793
3804
  id: v,
3794
3805
  index: w,
3795
- isOpen: f,
3806
+ isOpen: d,
3796
3807
  modalContext: y,
3797
3808
  onTopOfStack: p,
3798
3809
  reload: m,
3799
- setOpen: h,
3810
+ setOpen: g,
3800
3811
  shouldRender: b
3801
3812
  }) => /* @__PURE__ */ R.jsx(
3802
3813
  ro,
3803
3814
  {
3804
3815
  appear: !0,
3805
- show: f ?? !1,
3816
+ show: d ?? !1,
3806
3817
  children: /* @__PURE__ */ R.jsxs(
3807
- yc,
3818
+ vc,
3808
3819
  {
3809
3820
  as: "div",
3810
3821
  className: "im-dialog relative z-20",
@@ -3832,7 +3843,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3832
3843
  ) : null,
3833
3844
  w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
3834
3845
  i.slideover ? /* @__PURE__ */ R.jsx(
3835
- mc,
3846
+ hc,
3836
3847
  {
3837
3848
  modalContext: y,
3838
3849
  config: i,
@@ -3840,21 +3851,21 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3840
3851
  afterLeave: l,
3841
3852
  close: u,
3842
3853
  config: i,
3843
- emit: d,
3854
+ emit: f,
3844
3855
  getChildModal: s,
3845
- getParentModal: g,
3856
+ getParentModal: h,
3846
3857
  id: v,
3847
3858
  index: w,
3848
- isOpen: f,
3859
+ isOpen: d,
3849
3860
  modalContext: y,
3850
3861
  onTopOfStack: p,
3851
3862
  reload: m,
3852
- setOpen: h,
3863
+ setOpen: g,
3853
3864
  shouldRender: b
3854
3865
  })
3855
3866
  }
3856
3867
  ) : /* @__PURE__ */ R.jsx(
3857
- vc,
3868
+ mc,
3858
3869
  {
3859
3870
  modalContext: y,
3860
3871
  config: i,
@@ -3862,16 +3873,16 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3862
3873
  afterLeave: l,
3863
3874
  close: u,
3864
3875
  config: i,
3865
- emit: d,
3876
+ emit: f,
3866
3877
  getChildModal: s,
3867
- getParentModal: g,
3878
+ getParentModal: h,
3868
3879
  id: v,
3869
3880
  index: w,
3870
- isOpen: f,
3881
+ isOpen: d,
3871
3882
  modalContext: y,
3872
3883
  onTopOfStack: p,
3873
3884
  reload: m,
3874
- setOpen: h,
3885
+ setOpen: g,
3875
3886
  shouldRender: b
3876
3887
  })
3877
3888
  }
@@ -3884,8 +3895,8 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3884
3895
  }
3885
3896
  );
3886
3897
  });
3887
- hc.displayName = "Modal";
3888
- const $c = ({
3898
+ gc.displayName = "Modal";
3899
+ const Rc = ({
3889
3900
  href: t,
3890
3901
  method: e = "get",
3891
3902
  data: r = {},
@@ -3895,45 +3906,45 @@ const $c = ({
3895
3906
  onAfterLeave: l = null,
3896
3907
  onBlur: u = null,
3897
3908
  onClose: i = null,
3898
- onError: d = null,
3909
+ onError: f = null,
3899
3910
  onFocus: s = null,
3900
- onStart: g = null,
3911
+ onStart: h = null,
3901
3912
  onSuccess: v = null,
3902
3913
  navigate: w = null,
3903
- children: f,
3914
+ children: d,
3904
3915
  ...y
3905
3916
  }) => {
3906
- const [p, m] = Q(!1), [h, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3917
+ const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3907
3918
  Object.keys(y).forEach((T) => {
3908
3919
  zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
3909
3920
  });
3910
- const [H, k] = Q(!1);
3911
- K(() => {
3912
- h && (h.onTopOfStack && H ? s == null || s() : !h.onTopOfStack && !H && (u == null || u()), k(!h.onTopOfStack));
3921
+ const [H, j] = Q(!1);
3922
+ Y(() => {
3923
+ g && (g.onTopOfStack && H ? s == null || s() : !g.onTopOfStack && !H && (u == null || u()), j(!g.onTopOfStack));
3913
3924
  }, [S]);
3914
- const Y = ve(() => {
3925
+ const z = ve(() => {
3915
3926
  i == null || i();
3916
3927
  }, [i]), V = ve(() => {
3917
3928
  b(null), l == null || l();
3918
3929
  }, [l]), $ = ve(
3919
3930
  (T) => {
3920
- T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), g == null || g()), O(
3931
+ T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), h == null || h()), O(
3921
3932
  t,
3922
3933
  e,
3923
3934
  r,
3924
3935
  a,
3925
- qo(aa(y, zn)),
3926
- () => Y(S.length),
3936
+ Go(aa(y, zn)),
3937
+ () => z(S.length),
3927
3938
  V,
3928
3939
  o,
3929
3940
  _
3930
3941
  ).then((D) => {
3931
3942
  b(D), D.registerEventListenersFromProps(W), v == null || v();
3932
3943
  }).catch((D) => {
3933
- console.error(D), d == null || d(D);
3944
+ console.error(D), f == null || f(D);
3934
3945
  }).finally(() => m(!1)));
3935
3946
  },
3936
- [t, e, r, a, o, y, Y, V]
3947
+ [t, e, r, a, o, y, z, V]
3937
3948
  );
3938
3949
  return /* @__PURE__ */ R.jsx(
3939
3950
  n,
@@ -3941,24 +3952,24 @@ const $c = ({
3941
3952
  ...M,
3942
3953
  href: t,
3943
3954
  onClick: $,
3944
- children: typeof f == "function" ? f({ loading: p }) : f
3955
+ children: typeof d == "function" ? d({ loading: p }) : d
3945
3956
  }
3946
3957
  );
3947
3958
  };
3948
- function Rc() {
3959
+ function Fc() {
3949
3960
  return Kt().stack[$a()] ?? null;
3950
3961
  }
3951
3962
  export {
3952
3963
  Fa as HeadlessModal,
3953
- hc as Modal,
3954
- $c as ModalLink,
3955
- $u as ModalRoot,
3956
- Tu as ModalStackProvider,
3964
+ gc as Modal,
3965
+ Rc as ModalLink,
3966
+ Ru as ModalRoot,
3967
+ $u as ModalStackProvider,
3957
3968
  Vr as getConfig,
3958
- Oc as putConfig,
3959
- Pc as renderApp,
3960
- xc as resetConfig,
3961
- Rc as useModal,
3969
+ Pc as putConfig,
3970
+ Ac as renderApp,
3971
+ Oc as resetConfig,
3972
+ Fc as useModal,
3962
3973
  $a as useModalIndex,
3963
3974
  Kt as useModalStack
3964
3975
  };