@dataesr/dsfr-plus 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dsfr-plus.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import './style.css';
2
2
  import { jsxs as O, jsx as m, Fragment as In } from "react/jsx-runtime";
3
- import x from "classnames";
3
+ import g from "classnames";
4
4
  import * as vt from "react";
5
- import Q, { useState as Z, useEffect as W, forwardRef as me, useId as ie, useRef as I, useCallback as te, isValidElement as $e, Children as Ot, Fragment as xn, createContext as Rt, useMemo as ne, useContext as Se, useReducer as ss, createElement as ir, cloneElement as _e } from "react";
5
+ import Q, { useState as Z, useEffect as W, forwardRef as be, useId as ie, useRef as I, useCallback as te, isValidElement as $e, Children as Ot, Fragment as xn, createContext as Rt, useMemo as ne, useContext as Se, useReducer as ss, createElement as ir, cloneElement as _e } from "react";
6
6
  import Bn, { flushSync as us, createPortal as as } from "react-dom";
7
7
  const cs = {
8
8
  config: { attributes: !0, childList: !1, subtree: !1 }
@@ -26,7 +26,7 @@ function pt(t, e) {
26
26
  typeof n == "function" ? n(t) : n && (n.current = t);
27
27
  });
28
28
  }
29
- const fs = me(({
29
+ const fs = be(({
30
30
  title: t,
31
31
  titleAs: e = "h3",
32
32
  children: n,
@@ -35,7 +35,7 @@ const fs = me(({
35
35
  defaultExpanded: i = !1,
36
36
  ...l
37
37
  }, s) => {
38
- const u = ie(), a = I(null), [c, f] = Z(!!i), b = te(
38
+ const u = ie(), a = I(null), [c, f] = Z(!!i), p = te(
39
39
  (d) => {
40
40
  var $;
41
41
  if (d.find((h) => h.attributeName === "aria-expanded") && (($ = a == null ? void 0 : a.current) != null && $.attributes)) {
@@ -45,17 +45,17 @@ const fs = me(({
45
45
  },
46
46
  [a]
47
47
  );
48
- return ds(a == null ? void 0 : a.current, b), /* @__PURE__ */ O("section", { className: x("fr-accordion", r), children: [
48
+ return ds(a == null ? void 0 : a.current, p), /* @__PURE__ */ O("section", { className: g("fr-accordion", r), children: [
49
49
  /* @__PURE__ */ m(
50
50
  e,
51
51
  {
52
- className: x("fr-accordion__title", o.title),
52
+ className: g("fr-accordion__title", o.title),
53
53
  children: /* @__PURE__ */ m(
54
54
  "button",
55
55
  {
56
56
  ...l,
57
57
  ref: (d) => pt(d, [s, a]),
58
- className: x("fr-accordion__btn", o.button),
58
+ className: g("fr-accordion__btn", o.button),
59
59
  "aria-expanded": i,
60
60
  "aria-controls": u,
61
61
  children: $e(t) || typeof t == "string" ? t : typeof t == "function" ? t(c) : null
@@ -66,7 +66,7 @@ const fs = me(({
66
66
  /* @__PURE__ */ m("div", { className: "fr-collapse", id: u, children: n })
67
67
  ] });
68
68
  });
69
- function fe(t, e) {
69
+ function de(t, e) {
70
70
  return Ot.toArray(t).filter((r) => $e(r) && r.type === e);
71
71
  }
72
72
  function et(t, e) {
@@ -75,10 +75,10 @@ function et(t, e) {
75
75
  function ps(t, e) {
76
76
  return Ot.toArray(t).filter((n) => $e(n) && !e.includes(n.type));
77
77
  }
78
- const sd = ({ children: t, className: e, ...n }) => {
78
+ const ud = ({ children: t, className: e, ...n }) => {
79
79
  const r = ie();
80
- return /* @__PURE__ */ m("div", { className: x("fr-accordions-group", e), ...n, children: fe(t, fs).map((o, i) => /* @__PURE__ */ m(xn, { children: o }, `${r}-d${i}`)) });
81
- }, ud = me(({
80
+ return /* @__PURE__ */ m("div", { className: g("fr-accordions-group", e), ...n, children: de(t, fs).map((o, i) => /* @__PURE__ */ m(xn, { children: o }, `${r}-d${i}`)) });
81
+ }, ad = be(({
82
82
  className: t,
83
83
  closeMode: e = "disallow",
84
84
  description: n,
@@ -90,7 +90,7 @@ const sd = ({ children: t, className: e, ...n }) => {
90
90
  variant: u = "info",
91
91
  ...a
92
92
  }, c) => {
93
- const f = I(null), b = (d) => {
93
+ const f = I(null), p = (d) => {
94
94
  var v;
95
95
  d.preventDefault(), (v = f.current) == null || v.remove(), o && o(d);
96
96
  };
@@ -98,13 +98,13 @@ const sd = ({ children: t, className: e, ...n }) => {
98
98
  "div",
99
99
  {
100
100
  ref: (d) => pt(d, [c, f]),
101
- className: x(`fr-alert fr-alert--${u}`, { "fr-alert--sm": r === "sm" }, t),
101
+ className: g(`fr-alert fr-alert--${u}`, { "fr-alert--sm": r === "sm" }, t),
102
102
  ...a,
103
103
  children: [
104
- i && /* @__PURE__ */ m(s, { className: x("fr-alert__title", l.title), children: i }),
105
- n && /* @__PURE__ */ m("p", { className: x(l.description), children: n }),
106
- e === "uncontrolled" && /* @__PURE__ */ m("button", { onClick: b, className: x("fr-btn--close fr-btn", l.button), children: "Masquer le message" }),
107
- e === "controlled" && /* @__PURE__ */ m("button", { onClick: o, className: x("fr-link--close fr-link", l.button), children: "Masquer le message" })
104
+ i && /* @__PURE__ */ m(s, { className: g("fr-alert__title", l.title), children: i }),
105
+ n && /* @__PURE__ */ m("p", { className: g(l.description), children: n }),
106
+ e === "uncontrolled" && /* @__PURE__ */ m("button", { onClick: p, className: g("fr-btn--close fr-btn", l.button), children: "Masquer le message" }),
107
+ e === "controlled" && /* @__PURE__ */ m("button", { onClick: o, className: g("fr-link--close fr-link", l.button), children: "Masquer le message" })
108
108
  ]
109
109
  }
110
110
  );
@@ -125,8 +125,8 @@ function tt(t, e, n) {
125
125
  l
126
126
  ]);
127
127
  let s = l ? t : r, u = te((a, ...c) => {
128
- let f = (b, ...d) => {
129
- n && (Object.is(s, b) || n(b, ...d)), l || (s = b);
128
+ let f = (p, ...d) => {
129
+ n && (Object.is(s, p) || n(p, ...d)), l || (s = p);
130
130
  };
131
131
  typeof a == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), o((d, ...v) => {
132
132
  let $ = a(l ? s : d, ...v);
@@ -191,30 +191,30 @@ function hs(t) {
191
191
  o
192
192
  ]);
193
193
  i != null && i.validationDetails.valid && (i = null);
194
- let c = Se(vs), f = ne(() => r ? Array.isArray(r) ? r.flatMap((E) => Pn(c[E])) : Pn(c[r]) : [], [
194
+ let c = Se(vs), f = ne(() => r ? Array.isArray(r) ? r.flatMap((P) => Pn(c[P])) : Pn(c[r]) : [], [
195
195
  c,
196
196
  r
197
- ]), [b, d] = Z(c), [v, $] = Z(!1);
198
- c !== b && (d(c), $(!1));
197
+ ]), [p, d] = Z(c), [v, $] = Z(!1);
198
+ c !== p && (d(c), $(!1));
199
199
  let h = ne(() => lr(v ? [] : f), [
200
200
  v,
201
201
  f
202
- ]), _ = I(nt), [w, S] = Z(nt), K = I(nt), g = () => {
203
- if (!k)
202
+ ]), A = I(nt), [w, S] = Z(nt), K = I(nt), x = () => {
203
+ if (!M)
204
204
  return;
205
205
  R(!1);
206
- let E = a || i || _.current;
207
- Qt(E, K.current) || (K.current = E, S(E));
208
- }, [k, R] = Z(!1);
209
- return W(g), {
206
+ let P = a || i || A.current;
207
+ Qt(P, K.current) || (K.current = P, S(P));
208
+ }, [M, R] = Z(!1);
209
+ return W(x), {
210
210
  realtimeValidation: u || h || a || i || nt,
211
211
  displayValidation: s === "native" ? u || h || w : u || h || a || i || w,
212
- updateValidation(E) {
213
- s === "aria" && !Qt(w, E) ? S(E) : _.current = E;
212
+ updateValidation(P) {
213
+ s === "aria" && !Qt(w, P) ? S(P) : A.current = P;
214
214
  },
215
215
  resetValidation() {
216
- let E = nt;
217
- Qt(E, K.current) || (K.current = E, S(E)), s === "native" && R(!1), $(!0);
216
+ let P = nt;
217
+ Qt(P, K.current) || (K.current = P, S(P)), s === "native" && R(!1), $(!0);
218
218
  },
219
219
  commitValidation() {
220
220
  s === "native" && R(!0), $(!0);
@@ -377,25 +377,25 @@ class ys {
377
377
  if (Q.isValidElement(i)) {
378
378
  let u = i.type;
379
379
  if (typeof u != "function" && typeof u.getCollectionNode != "function") {
380
- let b = typeof i.type == "function" ? i.type.name : i.type;
381
- throw new Error(`Unknown element <${b}> in collection.`);
380
+ let p = typeof i.type == "function" ? i.type.name : i.type;
381
+ throw new Error(`Unknown element <${p}> in collection.`);
382
382
  }
383
383
  let a = u.getCollectionNode(i.props, this.context), c = e.index, f = a.next();
384
384
  for (; !f.done && f.value; ) {
385
- let b = f.value;
385
+ let p = f.value;
386
386
  e.index = c;
387
- let d = b.key;
388
- d || (d = b.element ? null : this.getKey(i, e, n, r));
387
+ let d = p.key;
388
+ d || (d = p.element ? null : this.getKey(i, e, n, r));
389
389
  let $ = [
390
390
  ...this.getFullNode({
391
- ...b,
391
+ ...p,
392
392
  key: d,
393
393
  index: c,
394
- wrapper: xs(e.wrapper, b.wrapper)
395
- }, this.getChildState(n, b), r ? `${r}${i.key}` : i.key, o)
394
+ wrapper: xs(e.wrapper, p.wrapper)
395
+ }, this.getChildState(n, p), r ? `${r}${i.key}` : i.key, o)
396
396
  ];
397
397
  for (let h of $) {
398
- if (h.value = b.value || e.value, h.value && this.cache.set(h.value, h), e.type && h.type !== e.type)
398
+ if (h.value = p.value || e.value, h.value && this.cache.set(h.value, h), e.type && h.type !== e.type)
399
399
  throw new Error(`Unsupported type <${en(h.type)}> in <${en(o.type)}>. Only <${en(e.type)}> is supported.`);
400
400
  c++, yield h;
401
401
  }
@@ -541,22 +541,22 @@ function Ps(t, e) {
541
541
  function uo(t) {
542
542
  let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: o = "toggle", disabledBehavior: i = "all" } = t, l = I(!1), [, s] = Z(!1), u = I(null), a = I(null), [, c] = Z(null), f = ne(() => cr(t.selectedKeys), [
543
543
  t.selectedKeys
544
- ]), b = ne(() => cr(t.defaultSelectedKeys, new we()), [
544
+ ]), p = ne(() => cr(t.defaultSelectedKeys, new we()), [
545
545
  t.defaultSelectedKeys
546
- ]), [d, v] = tt(f, b, t.onSelectionChange), $ = ne(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
546
+ ]), [d, v] = tt(f, p, t.onSelectionChange), $ = ne(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
547
547
  t.disabledKeys
548
- ]), [h, _] = Z(o);
549
- o === "replace" && h === "toggle" && typeof d == "object" && d.size === 0 && _("replace");
548
+ ]), [h, A] = Z(o);
549
+ o === "replace" && h === "toggle" && typeof d == "object" && d.size === 0 && A("replace");
550
550
  let w = I(o);
551
551
  return W(() => {
552
- o !== w.current && (_(o), w.current = o);
552
+ o !== w.current && (A(o), w.current = o);
553
553
  }, [
554
554
  o
555
555
  ]), {
556
556
  selectionMode: e,
557
557
  disallowEmptySelection: n,
558
558
  selectionBehavior: h,
559
- setSelectionBehavior: _,
559
+ setSelectionBehavior: A,
560
560
  get isFocused() {
561
561
  return l.current;
562
562
  },
@@ -929,8 +929,8 @@ function co(t) {
929
929
  ].map(($) => {
930
930
  const h = l.getItem($);
931
931
  return h.type === "item" ? h : null;
932
- }).filter(($) => $ !== null), b = c.length - f.length;
933
- let d = Math.min(b > 1 ? Math.max(a.index - b + 1, 0) : a.index, f.length - 1), v;
932
+ }).filter(($) => $ !== null), p = c.length - f.length;
933
+ let d = Math.min(p > 1 ? Math.max(a.index - p + 1, 0) : a.index, f.length - 1), v;
934
934
  for (; d >= 0; ) {
935
935
  if (!s.isDisabled(f[d].key)) {
936
936
  v = f[d];
@@ -1005,43 +1005,43 @@ function Vn(t) {
1005
1005
  }
1006
1006
  function ws(t) {
1007
1007
  var e, n;
1008
- let { defaultFilter: r, menuTrigger: o = "input", allowsEmptyCollection: i = !1, allowsCustomValue: l, shouldCloseOnBlur: s = !0 } = t, [u, a] = Z(!1), [c, f] = Z(!1), [b, d] = Z(null), v = (ee) => {
1008
+ let { defaultFilter: r, menuTrigger: o = "input", allowsEmptyCollection: i = !1, allowsCustomValue: l, shouldCloseOnBlur: s = !0 } = t, [u, a] = Z(!1), [c, f] = Z(!1), [p, d] = Z(null), v = (ee) => {
1009
1009
  t.onSelectionChange && t.onSelectionChange(ee), ee === w && (H(), D());
1010
1010
  };
1011
1011
  var $;
1012
- let { collection: h, selectionManager: _, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: g } = fo({
1012
+ let { collection: h, selectionManager: A, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: x } = fo({
1013
1013
  ...t,
1014
1014
  onSelectionChange: v,
1015
1015
  items: ($ = t.items) !== null && $ !== void 0 ? $ : t.defaultItems
1016
1016
  });
1017
- var k, R;
1018
- let [p, A] = tt(t.inputValue, (R = (k = t.defaultInputValue) !== null && k !== void 0 ? k : (e = h.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), E = h, P = ne(() => (
1017
+ var M, R;
1018
+ let [b, _] = tt(t.inputValue, (R = (M = t.defaultInputValue) !== null && M !== void 0 ? M : (e = h.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), P = h, C = ne(() => (
1019
1019
  // No default filter if items are controlled.
1020
- t.items != null || !r ? h : Ss(h, p, r)
1020
+ t.items != null || !r ? h : Ss(h, b, r)
1021
1021
  ), [
1022
1022
  h,
1023
- p,
1023
+ b,
1024
1024
  r,
1025
1025
  t.items
1026
- ]), [B, C] = Z(P), T = I("focus"), V = Vn({
1026
+ ]), [B, E] = Z(C), T = I("focus"), V = Vn({
1027
1027
  ...t,
1028
1028
  onOpenChange: (ee) => {
1029
- t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), _.setFocused(ee), ee || _.setFocusedKey(null);
1029
+ t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), A.setFocused(ee), ee || A.setFocusedKey(null);
1030
1030
  },
1031
1031
  isOpen: void 0,
1032
1032
  defaultOpen: void 0
1033
1033
  }), F = (ee = null, ce) => {
1034
1034
  let ve = ce === "manual" || ce === "focus" && o === "focus";
1035
- (i || P.size > 0 || ve && E.size > 0 || t.items) && (ve && !V.isOpen && t.items === void 0 && a(!0), T.current = ce, d(ee), V.open());
1035
+ (i || C.size > 0 || ve && P.size > 0 || t.items) && (ve && !V.isOpen && t.items === void 0 && a(!0), T.current = ce, d(ee), V.open());
1036
1036
  }, ue = (ee = null, ce) => {
1037
1037
  let ve = ce === "manual" || ce === "focus" && o === "focus";
1038
- !(i || P.size > 0 || ve && E.size > 0 || t.items) && !V.isOpen || (ve && !V.isOpen && t.items === void 0 && a(!0), V.isOpen || (T.current = ce), y(ee));
1038
+ !(i || C.size > 0 || ve && P.size > 0 || t.items) && !V.isOpen || (ve && !V.isOpen && t.items === void 0 && a(!0), V.isOpen || (T.current = ce), y(ee));
1039
1039
  }, ae = te(() => {
1040
- C(u ? E : P);
1040
+ E(u ? P : C);
1041
1041
  }, [
1042
1042
  u,
1043
- E,
1044
- P
1043
+ P,
1044
+ C
1045
1045
  ]), y = te((ee = null) => {
1046
1046
  V.isOpen && ae(), d(ee), V.toggle();
1047
1047
  }, [
@@ -1052,10 +1052,10 @@ function ws(t) {
1052
1052
  }, [
1053
1053
  V,
1054
1054
  ae
1055
- ]), [z, j] = Z(p), H = () => {
1055
+ ]), [z, j] = Z(b), H = () => {
1056
1056
  var ee, ce;
1057
1057
  let ve = (ce = (ee = h.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1058
- j(ve), A(ve);
1058
+ j(ve), _(ve);
1059
1059
  };
1060
1060
  var Y, U;
1061
1061
  let L = I((U = (Y = t.selectedKey) !== null && Y !== void 0 ? Y : t.defaultSelectedKey) !== null && U !== void 0 ? U : null);
@@ -1063,23 +1063,23 @@ function ws(t) {
1063
1063
  let X = I((N = (n = h.getItem(w)) === null || n === void 0 ? void 0 : n.textValue) !== null && N !== void 0 ? N : "");
1064
1064
  W(() => {
1065
1065
  var ee;
1066
- c && (P.size > 0 || i) && !V.isOpen && p !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && P.size === 0 && D(), w != null && w !== L.current && D(), p !== z && (_.setFocusedKey(null), a(!1), p === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== p && j(p);
1066
+ c && (C.size > 0 || i) && !V.isOpen && b !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && C.size === 0 && D(), w != null && w !== L.current && D(), b !== z && (A.setFocusedKey(null), a(!1), b === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== b && j(b);
1067
1067
  var ce;
1068
1068
  let ve = (ce = (ee = h.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1069
- !c && w != null && t.inputValue === void 0 && w === L.current && X.current !== ve && (j(ve), A(ve)), L.current = w, X.current = ve;
1069
+ !c && w != null && t.inputValue === void 0 && w === L.current && X.current !== ve && (j(ve), _(ve)), L.current = w, X.current = ve;
1070
1070
  });
1071
1071
  let G = On({
1072
1072
  ...t,
1073
1073
  value: ne(() => ({
1074
- inputValue: p,
1074
+ inputValue: b,
1075
1075
  selectedKey: w
1076
1076
  }), [
1077
- p,
1077
+ b,
1078
1078
  w
1079
1079
  ])
1080
1080
  }), J = () => {
1081
- l && w == null ? M() : ye();
1082
- }, M = () => {
1081
+ l && w == null ? k() : ye();
1082
+ }, k = () => {
1083
1083
  L.current = null, S(null), D();
1084
1084
  }, ye = () => {
1085
1085
  if (t.selectedKey !== void 0 && t.inputValue !== void 0) {
@@ -1095,38 +1095,38 @@ function ws(t) {
1095
1095
  if (l) {
1096
1096
  var ee, ce;
1097
1097
  const ve = (ce = (ee = h.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1098
- p === ve ? ye() : M();
1098
+ b === ve ? ye() : k();
1099
1099
  } else
1100
1100
  ye();
1101
1101
  };
1102
1102
  let mt = () => {
1103
- V.isOpen && _.focusedKey != null ? w === _.focusedKey ? ye() : S(_.focusedKey) : Ne();
1104
- }, or = I(p), is = (ee) => {
1105
- ee ? (or.current = p, o === "focus" && F(null, "focus")) : (s && Ne(), p !== or.current && G.commitValidation()), f(ee);
1106
- }, ls = ne(() => V.isOpen ? u ? E : P : B, [
1103
+ V.isOpen && A.focusedKey != null ? w === A.focusedKey ? ye() : S(A.focusedKey) : Ne();
1104
+ }, or = I(b), is = (ee) => {
1105
+ ee ? (or.current = b, o === "focus" && F(null, "focus")) : (s && Ne(), b !== or.current && G.commitValidation()), f(ee);
1106
+ }, ls = ne(() => V.isOpen ? u ? P : C : B, [
1107
1107
  V.isOpen,
1108
- E,
1109
1108
  P,
1109
+ C,
1110
1110
  u,
1111
1111
  B
1112
1112
  ]);
1113
1113
  return {
1114
1114
  ...G,
1115
1115
  ...V,
1116
- focusStrategy: b,
1116
+ focusStrategy: p,
1117
1117
  toggle: ue,
1118
1118
  open: F,
1119
1119
  close: Ne,
1120
- selectionManager: _,
1120
+ selectionManager: A,
1121
1121
  selectedKey: w,
1122
1122
  setSelectedKey: S,
1123
- disabledKeys: g,
1123
+ disabledKeys: x,
1124
1124
  isFocused: c,
1125
1125
  setFocused: is,
1126
1126
  selectedItem: K,
1127
1127
  collection: ls,
1128
- inputValue: p,
1129
- setInputValue: A,
1128
+ inputValue: b,
1129
+ setInputValue: _,
1130
1130
  commit: mt,
1131
1131
  revert: J
1132
1132
  };
@@ -1537,7 +1537,7 @@ function Ls(t, e) {
1537
1537
  throw new Error(`Invalid state "${t.state}"`);
1538
1538
  }
1539
1539
  }
1540
- function ad(t) {
1540
+ function cd(t) {
1541
1541
  const { load: e, sort: n, initialSelectedKeys: r, initialSortDescriptor: o, getKey: i = (f) => f.id || f.key, initialFilterText: l = "" } = t;
1542
1542
  let [s, u] = ss(Ls, {
1543
1543
  state: "idle",
@@ -1547,7 +1547,7 @@ function ad(t) {
1547
1547
  sortDescriptor: o,
1548
1548
  filterText: l
1549
1549
  });
1550
- const a = async (f, b) => {
1550
+ const a = async (f, p) => {
1551
1551
  let d = new AbortController();
1552
1552
  try {
1553
1553
  u({
@@ -1555,30 +1555,30 @@ function ad(t) {
1555
1555
  abortController: d
1556
1556
  });
1557
1557
  var v;
1558
- let _ = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1558
+ let A = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1559
1559
  var $;
1560
- let w = await b({
1560
+ let w = await p({
1561
1561
  items: s.items.slice(),
1562
1562
  selectedKeys: s.selectedKeys,
1563
1563
  sortDescriptor: ($ = f.sortDescriptor) !== null && $ !== void 0 ? $ : s.sortDescriptor,
1564
1564
  signal: d.signal,
1565
1565
  cursor: f.type === "loadingMore" ? s.cursor : null,
1566
- filterText: _
1566
+ filterText: A
1567
1567
  });
1568
1568
  var h;
1569
- let S = (h = w.filterText) !== null && h !== void 0 ? h : _;
1569
+ let S = (h = w.filterText) !== null && h !== void 0 ? h : A;
1570
1570
  u({
1571
1571
  type: "success",
1572
1572
  ...w,
1573
1573
  abortController: d
1574
- }), S && S !== _ && !d.signal.aborted && a({
1574
+ }), S && S !== A && !d.signal.aborted && a({
1575
1575
  type: "filtering",
1576
1576
  filterText: S
1577
1577
  }, e);
1578
- } catch (_) {
1578
+ } catch (A) {
1579
1579
  u({
1580
1580
  type: "error",
1581
- error: _,
1581
+ error: A,
1582
1582
  abortController: d
1583
1583
  });
1584
1584
  }
@@ -1597,7 +1597,7 @@ function ad(t) {
1597
1597
  error: s.error,
1598
1598
  filterText: s.filterText,
1599
1599
  getItem(f) {
1600
- return s.items.find((b) => i(b) === f);
1600
+ return s.items.find((p) => i(p) === f);
1601
1601
  },
1602
1602
  reload() {
1603
1603
  a({
@@ -1826,11 +1826,11 @@ function qs() {
1826
1826
  (t = arguments[n]) && (e = mo(t)) && (r && (r += " "), r += e);
1827
1827
  return r;
1828
1828
  }
1829
- const de = typeof document < "u" ? Q.useLayoutEffect : () => {
1829
+ const fe = typeof document < "u" ? Q.useLayoutEffect : () => {
1830
1830
  };
1831
1831
  function xe(t) {
1832
1832
  const e = I(null);
1833
- return de(() => {
1833
+ return fe(() => {
1834
1834
  e.current = t;
1835
1835
  }, [
1836
1836
  t
@@ -1848,7 +1848,7 @@ function Ys(t) {
1848
1848
  }
1849
1849
  e === l.value ? o() : n(l.value);
1850
1850
  });
1851
- de(() => {
1851
+ fe(() => {
1852
1852
  r.current && o();
1853
1853
  });
1854
1854
  let i = xe((l) => {
@@ -1864,7 +1864,7 @@ function Ae(t) {
1864
1864
  let [e, n] = Z(t), r = I(null), o = Hs(e), i = te((l) => {
1865
1865
  r.current = l;
1866
1866
  }, []);
1867
- return Xs && _t.set(o, i), de(() => {
1867
+ return Xs && _t.set(o, i), fe(() => {
1868
1868
  let l = o;
1869
1869
  return () => {
1870
1870
  _t.delete(l);
@@ -1894,7 +1894,7 @@ function Oe(t = []) {
1894
1894
  e,
1895
1895
  r
1896
1896
  ]);
1897
- return de(o, [
1897
+ return fe(o, [
1898
1898
  e,
1899
1899
  o,
1900
1900
  ...t
@@ -2156,7 +2156,7 @@ function fu(t) {
2156
2156
  ]);
2157
2157
  }
2158
2158
  function xo(t, e) {
2159
- de(() => {
2159
+ fe(() => {
2160
2160
  if (t && t.ref && e)
2161
2161
  return t.ref.current = e.current, () => {
2162
2162
  t.ref.current = null;
@@ -2176,7 +2176,7 @@ let pu = 0;
2176
2176
  const rn = /* @__PURE__ */ new Map();
2177
2177
  function bu(t) {
2178
2178
  let [e, n] = Z(void 0);
2179
- return de(() => {
2179
+ return fe(() => {
2180
2180
  if (!t)
2181
2181
  return;
2182
2182
  let r = rn.get(t);
@@ -2218,8 +2218,8 @@ function mu(t, e, n, r) {
2218
2218
  ]);
2219
2219
  }
2220
2220
  function Co(t, e) {
2221
- let n = mr(t, e, "left"), r = mr(t, e, "top"), o = e.offsetWidth, i = e.offsetHeight, l = t.scrollLeft, s = t.scrollTop, { borderTopWidth: u, borderLeftWidth: a } = getComputedStyle(t), c = t.scrollLeft + parseInt(a, 10), f = t.scrollTop + parseInt(u, 10), b = c + t.clientWidth, d = f + t.clientHeight;
2222
- n <= l ? l = n - parseInt(a, 10) : n + o > b && (l += n + o - b), r <= f ? s = r - parseInt(u, 10) : r + i > d && (s += r + i - d), t.scrollLeft = l, t.scrollTop = s;
2221
+ let n = mr(t, e, "left"), r = mr(t, e, "top"), o = e.offsetWidth, i = e.offsetHeight, l = t.scrollLeft, s = t.scrollTop, { borderTopWidth: u, borderLeftWidth: a } = getComputedStyle(t), c = t.scrollLeft + parseInt(a, 10), f = t.scrollTop + parseInt(u, 10), p = c + t.clientWidth, d = f + t.clientHeight;
2222
+ n <= l ? l = n - parseInt(a, 10) : n + o > p && (l += n + o - p), r <= f ? s = r - parseInt(u, 10) : r + i > d && (s += r + i - d), t.scrollLeft = l, t.scrollTop = s;
2223
2223
  }
2224
2224
  function mr(t, e, n) {
2225
2225
  const r = n === "left" ? "offsetLeft" : "offsetTop";
@@ -2376,7 +2376,7 @@ function qt(t) {
2376
2376
  allowTextSelectionOnPress: c,
2377
2377
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2378
2378
  ref: f,
2379
- ...b
2379
+ ...p
2380
2380
  } = yu(t), [d, v] = Z(!1), $ = I({
2381
2381
  isPressed: !1,
2382
2382
  ignoreEmulatedMouseEvents: !1,
@@ -2387,205 +2387,205 @@ function qt(t) {
2387
2387
  target: null,
2388
2388
  isOverTarget: !1,
2389
2389
  pointerType: null
2390
- }), { addGlobalListener: h, removeAllGlobalListeners: _ } = yo(), w = xe((p, A) => {
2391
- let E = $.current;
2392
- if (l || E.didFirePressStart)
2393
- return !1;
2394
- let P = !0;
2395
- if (E.isTriggeringEvent = !0, r) {
2396
- let B = new yt("pressstart", A, p);
2397
- r(B), P = B.shouldStopPropagation;
2398
- }
2399
- return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, v(!0), P;
2400
- }), S = xe((p, A, E = !0) => {
2390
+ }), { addGlobalListener: h, removeAllGlobalListeners: A } = yo(), w = xe((b, _) => {
2401
2391
  let P = $.current;
2402
- if (!P.didFirePressStart)
2392
+ if (l || P.didFirePressStart)
2403
2393
  return !1;
2404
- P.ignoreClickAfterPress = !0, P.didFirePressStart = !1, P.isTriggeringEvent = !0;
2394
+ let C = !0;
2395
+ if (P.isTriggeringEvent = !0, r) {
2396
+ let B = new yt("pressstart", _, b);
2397
+ r(B), C = B.shouldStopPropagation;
2398
+ }
2399
+ return n && n(!0), P.isTriggeringEvent = !1, P.didFirePressStart = !0, v(!0), C;
2400
+ }), S = xe((b, _, P = !0) => {
2401
+ let C = $.current;
2402
+ if (!C.didFirePressStart)
2403
+ return !1;
2404
+ C.ignoreClickAfterPress = !0, C.didFirePressStart = !1, C.isTriggeringEvent = !0;
2405
2405
  let B = !0;
2406
2406
  if (o) {
2407
- let C = new yt("pressend", A, p);
2408
- o(C), B = C.shouldStopPropagation;
2407
+ let E = new yt("pressend", _, b);
2408
+ o(E), B = E.shouldStopPropagation;
2409
2409
  }
2410
- if (n && n(!1), v(!1), e && E && !l) {
2411
- let C = new yt("press", A, p);
2412
- e(C), B && (B = C.shouldStopPropagation);
2410
+ if (n && n(!1), v(!1), e && P && !l) {
2411
+ let E = new yt("press", _, b);
2412
+ e(E), B && (B = E.shouldStopPropagation);
2413
2413
  }
2414
- return P.isTriggeringEvent = !1, B;
2415
- }), K = xe((p, A) => {
2416
- let E = $.current;
2414
+ return C.isTriggeringEvent = !1, B;
2415
+ }), K = xe((b, _) => {
2416
+ let P = $.current;
2417
2417
  if (l)
2418
2418
  return !1;
2419
2419
  if (i) {
2420
- E.isTriggeringEvent = !0;
2421
- let P = new yt("pressup", A, p);
2422
- return i(P), E.isTriggeringEvent = !1, P.shouldStopPropagation;
2420
+ P.isTriggeringEvent = !0;
2421
+ let C = new yt("pressup", _, b);
2422
+ return i(C), P.isTriggeringEvent = !1, C.shouldStopPropagation;
2423
2423
  }
2424
2424
  return !0;
2425
- }), g = xe((p) => {
2426
- let A = $.current;
2427
- A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && S(Ke(A.target, p), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, _(), c || gt(A.target));
2428
- }), k = xe((p) => {
2429
- a && g(p);
2425
+ }), x = xe((b) => {
2426
+ let _ = $.current;
2427
+ _.isPressed && _.target && (_.isOverTarget && _.pointerType != null && S(Ke(_.target, b), _.pointerType, !1), _.isPressed = !1, _.isOverTarget = !1, _.activePointerId = null, _.pointerType = null, A(), c || gt(_.target));
2428
+ }), M = xe((b) => {
2429
+ a && x(b);
2430
2430
  }), R = ne(() => {
2431
- let p = $.current, A = {
2432
- onKeyDown(P) {
2433
- if (on(P.nativeEvent, P.currentTarget) && P.currentTarget.contains(P.target)) {
2431
+ let b = $.current, _ = {
2432
+ onKeyDown(C) {
2433
+ if (on(C.nativeEvent, C.currentTarget) && C.currentTarget.contains(C.target)) {
2434
2434
  var B;
2435
- xr(P.target, P.key) && P.preventDefault();
2436
- let C = !0;
2437
- !p.isPressed && !P.repeat && (p.target = P.currentTarget, p.isPressed = !0, C = w(P, "keyboard"), h(pe(P.currentTarget), "keyup", E, !1)), C && P.stopPropagation(), P.metaKey && Ie() && ((B = p.metaKeyEvents) === null || B === void 0 || B.set(P.key, P.nativeEvent));
2435
+ xr(C.target, C.key) && C.preventDefault();
2436
+ let E = !0;
2437
+ !b.isPressed && !C.repeat && (b.target = C.currentTarget, b.isPressed = !0, E = w(C, "keyboard"), h(pe(C.currentTarget), "keyup", P, !1)), E && C.stopPropagation(), C.metaKey && Ie() && ((B = b.metaKeyEvents) === null || B === void 0 || B.set(C.key, C.nativeEvent));
2438
2438
  } else
2439
- P.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
2439
+ C.key === "Meta" && (b.metaKeyEvents = /* @__PURE__ */ new Map());
2440
2440
  },
2441
- onKeyUp(P) {
2442
- on(P.nativeEvent, P.currentTarget) && !P.repeat && P.currentTarget.contains(P.target) && p.target && K(Ke(p.target, P), "keyboard");
2441
+ onKeyUp(C) {
2442
+ on(C.nativeEvent, C.currentTarget) && !C.repeat && C.currentTarget.contains(C.target) && b.target && K(Ke(b.target, C), "keyboard");
2443
2443
  },
2444
- onClick(P) {
2445
- if (!(P && !P.currentTarget.contains(P.target)) && P && P.button === 0 && !p.isTriggeringEvent && !Re.isOpening) {
2444
+ onClick(C) {
2445
+ if (!(C && !C.currentTarget.contains(C.target)) && C && C.button === 0 && !b.isTriggeringEvent && !Re.isOpening) {
2446
2446
  let B = !0;
2447
- if (l && P.preventDefault(), !p.ignoreClickAfterPress && !p.ignoreEmulatedMouseEvents && !p.isPressed && (p.pointerType === "virtual" || Tn(P.nativeEvent))) {
2448
- !l && !u && Fe(P.currentTarget);
2449
- let C = w(P, "virtual"), T = K(P, "virtual"), q = S(P, "virtual");
2450
- B = C && T && q;
2447
+ if (l && C.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && !b.isPressed && (b.pointerType === "virtual" || Tn(C.nativeEvent))) {
2448
+ !l && !u && Fe(C.currentTarget);
2449
+ let E = w(C, "virtual"), T = K(C, "virtual"), q = S(C, "virtual");
2450
+ B = E && T && q;
2451
2451
  }
2452
- p.ignoreEmulatedMouseEvents = !1, p.ignoreClickAfterPress = !1, B && P.stopPropagation();
2452
+ b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1, B && C.stopPropagation();
2453
2453
  }
2454
2454
  }
2455
- }, E = (P) => {
2455
+ }, P = (C) => {
2456
2456
  var B;
2457
- if (p.isPressed && p.target && on(P, p.target)) {
2458
- var C;
2459
- xr(P.target, P.key) && P.preventDefault();
2460
- let q = P.target, V = S(Ke(p.target, P), "keyboard", p.target.contains(q));
2461
- _(), V && P.stopPropagation(), P.key !== "Enter" && Hn(p.target) && p.target.contains(q) && !P[$r] && (P[$r] = !0, Re(p.target, P, !1)), p.isPressed = !1, (C = p.metaKeyEvents) === null || C === void 0 || C.delete(P.key);
2462
- } else if (P.key === "Meta" && (!((B = p.metaKeyEvents) === null || B === void 0) && B.size)) {
2457
+ if (b.isPressed && b.target && on(C, b.target)) {
2458
+ var E;
2459
+ xr(C.target, C.key) && C.preventDefault();
2460
+ let q = C.target, V = S(Ke(b.target, C), "keyboard", b.target.contains(q));
2461
+ A(), V && C.stopPropagation(), C.key !== "Enter" && Hn(b.target) && b.target.contains(q) && !C[$r] && (C[$r] = !0, Re(b.target, C, !1)), b.isPressed = !1, (E = b.metaKeyEvents) === null || E === void 0 || E.delete(C.key);
2462
+ } else if (C.key === "Meta" && (!((B = b.metaKeyEvents) === null || B === void 0) && B.size)) {
2463
2463
  var T;
2464
- let q = p.metaKeyEvents;
2465
- p.metaKeyEvents = void 0;
2464
+ let q = b.metaKeyEvents;
2465
+ b.metaKeyEvents = void 0;
2466
2466
  for (let V of q.values())
2467
- (T = p.target) === null || T === void 0 || T.dispatchEvent(new KeyboardEvent("keyup", V));
2467
+ (T = b.target) === null || T === void 0 || T.dispatchEvent(new KeyboardEvent("keyup", V));
2468
2468
  }
2469
2469
  };
2470
2470
  if (typeof PointerEvent < "u") {
2471
- A.onPointerDown = (T) => {
2471
+ _.onPointerDown = (T) => {
2472
2472
  if (T.button !== 0 || !T.currentTarget.contains(T.target))
2473
2473
  return;
2474
2474
  if (vu(T.nativeEvent)) {
2475
- p.pointerType = "virtual";
2475
+ b.pointerType = "virtual";
2476
2476
  return;
2477
2477
  }
2478
- ln(T.currentTarget) && T.preventDefault(), p.pointerType = T.pointerType;
2478
+ ln(T.currentTarget) && T.preventDefault(), b.pointerType = T.pointerType;
2479
2479
  let q = !0;
2480
- p.isPressed || (p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = T.pointerId, p.target = T.currentTarget, !l && !u && Fe(T.currentTarget), c || gr(p.target), q = w(T, p.pointerType), h(pe(T.currentTarget), "pointermove", P, !1), h(pe(T.currentTarget), "pointerup", B, !1), h(pe(T.currentTarget), "pointercancel", C, !1)), q && T.stopPropagation();
2481
- }, A.onMouseDown = (T) => {
2480
+ b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = T.pointerId, b.target = T.currentTarget, !l && !u && Fe(T.currentTarget), c || gr(b.target), q = w(T, b.pointerType), h(pe(T.currentTarget), "pointermove", C, !1), h(pe(T.currentTarget), "pointerup", B, !1), h(pe(T.currentTarget), "pointercancel", E, !1)), q && T.stopPropagation();
2481
+ }, _.onMouseDown = (T) => {
2482
2482
  T.currentTarget.contains(T.target) && T.button === 0 && (ln(T.currentTarget) && T.preventDefault(), T.stopPropagation());
2483
- }, A.onPointerUp = (T) => {
2484
- !T.currentTarget.contains(T.target) || p.pointerType === "virtual" || T.button === 0 && Ue(T, T.currentTarget) && K(T, p.pointerType || T.pointerType);
2483
+ }, _.onPointerUp = (T) => {
2484
+ !T.currentTarget.contains(T.target) || b.pointerType === "virtual" || T.button === 0 && Ue(T, T.currentTarget) && K(T, b.pointerType || T.pointerType);
2485
2485
  };
2486
- let P = (T) => {
2487
- T.pointerId === p.activePointerId && (p.target && Ue(T, p.target) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, w(Ke(p.target, T), p.pointerType)) : p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, S(Ke(p.target, T), p.pointerType, !1), k(T)));
2486
+ let C = (T) => {
2487
+ T.pointerId === b.activePointerId && (b.target && Ue(T, b.target) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, w(Ke(b.target, T), b.pointerType)) : b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, S(Ke(b.target, T), b.pointerType, !1), M(T)));
2488
2488
  }, B = (T) => {
2489
- T.pointerId === p.activePointerId && p.isPressed && T.button === 0 && p.target && (Ue(T, p.target) && p.pointerType != null ? S(Ke(p.target, T), p.pointerType) : p.isOverTarget && p.pointerType != null && S(Ke(p.target, T), p.pointerType, !1), p.isPressed = !1, p.isOverTarget = !1, p.activePointerId = null, p.pointerType = null, _(), c || gt(p.target));
2490
- }, C = (T) => {
2491
- g(T);
2489
+ T.pointerId === b.activePointerId && b.isPressed && T.button === 0 && b.target && (Ue(T, b.target) && b.pointerType != null ? S(Ke(b.target, T), b.pointerType) : b.isOverTarget && b.pointerType != null && S(Ke(b.target, T), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, A(), c || gt(b.target));
2490
+ }, E = (T) => {
2491
+ x(T);
2492
2492
  };
2493
- A.onDragStart = (T) => {
2494
- T.currentTarget.contains(T.target) && g(T);
2493
+ _.onDragStart = (T) => {
2494
+ T.currentTarget.contains(T.target) && x(T);
2495
2495
  };
2496
2496
  } else {
2497
- A.onMouseDown = (C) => {
2498
- if (C.button !== 0 || !C.currentTarget.contains(C.target))
2497
+ _.onMouseDown = (E) => {
2498
+ if (E.button !== 0 || !E.currentTarget.contains(E.target))
2499
2499
  return;
2500
- if (ln(C.currentTarget) && C.preventDefault(), p.ignoreEmulatedMouseEvents) {
2501
- C.stopPropagation();
2500
+ if (ln(E.currentTarget) && E.preventDefault(), b.ignoreEmulatedMouseEvents) {
2501
+ E.stopPropagation();
2502
2502
  return;
2503
2503
  }
2504
- p.isPressed = !0, p.isOverTarget = !0, p.target = C.currentTarget, p.pointerType = Tn(C.nativeEvent) ? "virtual" : "mouse", !l && !u && Fe(C.currentTarget), w(C, p.pointerType) && C.stopPropagation(), h(pe(C.currentTarget), "mouseup", P, !1);
2505
- }, A.onMouseEnter = (C) => {
2506
- if (!C.currentTarget.contains(C.target))
2504
+ b.isPressed = !0, b.isOverTarget = !0, b.target = E.currentTarget, b.pointerType = Tn(E.nativeEvent) ? "virtual" : "mouse", !l && !u && Fe(E.currentTarget), w(E, b.pointerType) && E.stopPropagation(), h(pe(E.currentTarget), "mouseup", C, !1);
2505
+ }, _.onMouseEnter = (E) => {
2506
+ if (!E.currentTarget.contains(E.target))
2507
2507
  return;
2508
2508
  let T = !0;
2509
- p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, T = w(C, p.pointerType)), T && C.stopPropagation();
2510
- }, A.onMouseLeave = (C) => {
2511
- if (!C.currentTarget.contains(C.target))
2509
+ b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !0, T = w(E, b.pointerType)), T && E.stopPropagation();
2510
+ }, _.onMouseLeave = (E) => {
2511
+ if (!E.currentTarget.contains(E.target))
2512
2512
  return;
2513
2513
  let T = !0;
2514
- p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, T = S(C, p.pointerType, !1), k(C)), T && C.stopPropagation();
2515
- }, A.onMouseUp = (C) => {
2516
- C.currentTarget.contains(C.target) && !p.ignoreEmulatedMouseEvents && C.button === 0 && K(C, p.pointerType || "mouse");
2514
+ b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, T = S(E, b.pointerType, !1), M(E)), T && E.stopPropagation();
2515
+ }, _.onMouseUp = (E) => {
2516
+ E.currentTarget.contains(E.target) && !b.ignoreEmulatedMouseEvents && E.button === 0 && K(E, b.pointerType || "mouse");
2517
2517
  };
2518
- let P = (C) => {
2519
- if (C.button === 0) {
2520
- if (p.isPressed = !1, _(), p.ignoreEmulatedMouseEvents) {
2521
- p.ignoreEmulatedMouseEvents = !1;
2518
+ let C = (E) => {
2519
+ if (E.button === 0) {
2520
+ if (b.isPressed = !1, A(), b.ignoreEmulatedMouseEvents) {
2521
+ b.ignoreEmulatedMouseEvents = !1;
2522
2522
  return;
2523
2523
  }
2524
- p.target && Ue(C, p.target) && p.pointerType != null ? S(Ke(p.target, C), p.pointerType) : p.target && p.isOverTarget && p.pointerType != null && S(Ke(p.target, C), p.pointerType, !1), p.isOverTarget = !1;
2524
+ b.target && Ue(E, b.target) && b.pointerType != null ? S(Ke(b.target, E), b.pointerType) : b.target && b.isOverTarget && b.pointerType != null && S(Ke(b.target, E), b.pointerType, !1), b.isOverTarget = !1;
2525
2525
  }
2526
2526
  };
2527
- A.onTouchStart = (C) => {
2528
- if (!C.currentTarget.contains(C.target))
2527
+ _.onTouchStart = (E) => {
2528
+ if (!E.currentTarget.contains(E.target))
2529
2529
  return;
2530
- let T = xu(C.nativeEvent);
2530
+ let T = xu(E.nativeEvent);
2531
2531
  if (!T)
2532
2532
  return;
2533
- p.activePointerId = T.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = C.currentTarget, p.pointerType = "touch", !l && !u && Fe(C.currentTarget), c || gr(p.target), w(C, p.pointerType) && C.stopPropagation(), h(at(C.currentTarget), "scroll", B, !0);
2534
- }, A.onTouchMove = (C) => {
2535
- if (!C.currentTarget.contains(C.target))
2533
+ b.activePointerId = T.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = E.currentTarget, b.pointerType = "touch", !l && !u && Fe(E.currentTarget), c || gr(b.target), w(E, b.pointerType) && E.stopPropagation(), h(at(E.currentTarget), "scroll", B, !0);
2534
+ }, _.onTouchMove = (E) => {
2535
+ if (!E.currentTarget.contains(E.target))
2536
2536
  return;
2537
- if (!p.isPressed) {
2538
- C.stopPropagation();
2537
+ if (!b.isPressed) {
2538
+ E.stopPropagation();
2539
2539
  return;
2540
2540
  }
2541
- let T = yr(C.nativeEvent, p.activePointerId), q = !0;
2542
- T && Ue(T, C.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, q = w(C, p.pointerType)) : p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, q = S(C, p.pointerType, !1), k(C)), q && C.stopPropagation();
2543
- }, A.onTouchEnd = (C) => {
2544
- if (!C.currentTarget.contains(C.target))
2541
+ let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2542
+ T && Ue(T, E.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, q = w(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, q = S(E, b.pointerType, !1), M(E)), q && E.stopPropagation();
2543
+ }, _.onTouchEnd = (E) => {
2544
+ if (!E.currentTarget.contains(E.target))
2545
2545
  return;
2546
- if (!p.isPressed) {
2547
- C.stopPropagation();
2546
+ if (!b.isPressed) {
2547
+ E.stopPropagation();
2548
2548
  return;
2549
2549
  }
2550
- let T = yr(C.nativeEvent, p.activePointerId), q = !0;
2551
- T && Ue(T, C.currentTarget) && p.pointerType != null ? (K(C, p.pointerType), q = S(C, p.pointerType)) : p.isOverTarget && p.pointerType != null && (q = S(C, p.pointerType, !1)), q && C.stopPropagation(), p.isPressed = !1, p.activePointerId = null, p.isOverTarget = !1, p.ignoreEmulatedMouseEvents = !0, p.target && !c && gt(p.target), _();
2552
- }, A.onTouchCancel = (C) => {
2553
- C.currentTarget.contains(C.target) && (C.stopPropagation(), p.isPressed && g(C));
2550
+ let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2551
+ T && Ue(T, E.currentTarget) && b.pointerType != null ? (K(E, b.pointerType), q = S(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (q = S(E, b.pointerType, !1)), q && E.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && gt(b.target), A();
2552
+ }, _.onTouchCancel = (E) => {
2553
+ E.currentTarget.contains(E.target) && (E.stopPropagation(), b.isPressed && x(E));
2554
2554
  };
2555
- let B = (C) => {
2556
- p.isPressed && C.target.contains(p.target) && g({
2557
- currentTarget: p.target,
2555
+ let B = (E) => {
2556
+ b.isPressed && E.target.contains(b.target) && x({
2557
+ currentTarget: b.target,
2558
2558
  shiftKey: !1,
2559
2559
  ctrlKey: !1,
2560
2560
  metaKey: !1,
2561
2561
  altKey: !1
2562
2562
  });
2563
2563
  };
2564
- A.onDragStart = (C) => {
2565
- C.currentTarget.contains(C.target) && g(C);
2564
+ _.onDragStart = (E) => {
2565
+ E.currentTarget.contains(E.target) && x(E);
2566
2566
  };
2567
2567
  }
2568
- return A;
2568
+ return _;
2569
2569
  }, [
2570
2570
  h,
2571
2571
  l,
2572
2572
  u,
2573
- _,
2573
+ A,
2574
2574
  c,
2575
- g,
2576
- k,
2575
+ x,
2576
+ M,
2577
2577
  S,
2578
2578
  w,
2579
2579
  K
2580
2580
  ]);
2581
2581
  return W(() => () => {
2582
- var p;
2583
- c || gt((p = $.current.target) !== null && p !== void 0 ? p : void 0);
2582
+ var b;
2583
+ c || gt((b = $.current.target) !== null && b !== void 0 ? b : void 0);
2584
2584
  }, [
2585
2585
  c
2586
2586
  ]), {
2587
2587
  isPressed: s || d,
2588
- pressProps: se(b, R)
2588
+ pressProps: se(p, R)
2589
2589
  };
2590
2590
  }
2591
2591
  function Hn(t) {
@@ -2687,7 +2687,7 @@ function So(t) {
2687
2687
  isFocused: !1,
2688
2688
  observer: null
2689
2689
  });
2690
- de(() => {
2690
+ fe(() => {
2691
2691
  const r = e.current;
2692
2692
  return () => {
2693
2693
  r.observer && (r.observer.disconnect(), r.observer = null);
@@ -2904,19 +2904,19 @@ function _o(t) {
2904
2904
  target: $,
2905
2905
  pointerType: v
2906
2906
  }), n && n(!1), l(!1);
2907
- }, b = {};
2908
- return typeof PointerEvent < "u" ? (b.onPointerEnter = (d) => {
2907
+ }, p = {};
2908
+ return typeof PointerEvent < "u" ? (p.onPointerEnter = (d) => {
2909
2909
  Lt && d.pointerType === "mouse" || c(d, d.pointerType);
2910
- }, b.onPointerLeave = (d) => {
2910
+ }, p.onPointerLeave = (d) => {
2911
2911
  !o && d.currentTarget.contains(d.target) && f(d, d.pointerType);
2912
- }) : (b.onTouchStart = () => {
2912
+ }) : (p.onTouchStart = () => {
2913
2913
  s.ignoreEmulatedMouseEvents = !0;
2914
- }, b.onMouseEnter = (d) => {
2914
+ }, p.onMouseEnter = (d) => {
2915
2915
  !s.ignoreEmulatedMouseEvents && !Lt && c(d, "mouse"), s.ignoreEmulatedMouseEvents = !1;
2916
- }, b.onMouseLeave = (d) => {
2916
+ }, p.onMouseLeave = (d) => {
2917
2917
  !o && d.currentTarget.contains(d.target) && f(d, "mouse");
2918
2918
  }), {
2919
- hoverProps: b,
2919
+ hoverProps: p,
2920
2920
  triggerHoverEnd: f
2921
2921
  };
2922
2922
  }, [
@@ -2952,8 +2952,8 @@ function Iu(t) {
2952
2952
  return;
2953
2953
  const a = e.current, c = pe(a);
2954
2954
  if (typeof PointerEvent < "u") {
2955
- let f = (b) => {
2956
- u.isPointerDown && xt(b, e) && s(b), u.isPointerDown = !1;
2955
+ let f = (p) => {
2956
+ u.isPointerDown && xt(p, e) && s(p), u.isPointerDown = !1;
2957
2957
  };
2958
2958
  return c.addEventListener("pointerdown", l, !0), c.addEventListener("pointerup", f, !0), () => {
2959
2959
  c.removeEventListener("pointerdown", l, !0), c.removeEventListener("pointerup", f, !0);
@@ -2961,11 +2961,11 @@ function Iu(t) {
2961
2961
  } else {
2962
2962
  let f = (d) => {
2963
2963
  u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && xt(d, e) && s(d), u.isPointerDown = !1;
2964
- }, b = (d) => {
2964
+ }, p = (d) => {
2965
2965
  u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && xt(d, e) && s(d), u.isPointerDown = !1;
2966
2966
  };
2967
- return c.addEventListener("mousedown", l, !0), c.addEventListener("mouseup", f, !0), c.addEventListener("touchstart", l, !0), c.addEventListener("touchend", b, !0), () => {
2968
- c.removeEventListener("mousedown", l, !0), c.removeEventListener("mouseup", f, !0), c.removeEventListener("touchstart", l, !0), c.removeEventListener("touchend", b, !0);
2967
+ return c.addEventListener("mousedown", l, !0), c.addEventListener("mouseup", f, !0), c.addEventListener("touchstart", l, !0), c.addEventListener("touchend", p, !0), () => {
2968
+ c.removeEventListener("mousedown", l, !0), c.removeEventListener("mouseup", f, !0), c.removeEventListener("touchstart", l, !0), c.removeEventListener("touchend", p, !0);
2969
2969
  };
2970
2970
  }
2971
2971
  }, [
@@ -3022,35 +3022,35 @@ function Ko(t) {
3022
3022
  const s = I();
3023
3023
  let { addGlobalListener: u, removeGlobalListener: a } = yo(), { pressProps: c } = qt({
3024
3024
  isDisabled: e,
3025
- onPressStart(b) {
3026
- if (b.continuePropagation(), (b.pointerType === "mouse" || b.pointerType === "touch") && (n && n({
3027
- ...b,
3025
+ onPressStart(p) {
3026
+ if (p.continuePropagation(), (p.pointerType === "mouse" || p.pointerType === "touch") && (n && n({
3027
+ ...p,
3028
3028
  type: "longpressstart"
3029
3029
  }), s.current = setTimeout(() => {
3030
- b.target.dispatchEvent(new PointerEvent("pointercancel", {
3030
+ p.target.dispatchEvent(new PointerEvent("pointercancel", {
3031
3031
  bubbles: !0
3032
3032
  })), o && o({
3033
- ...b,
3033
+ ...p,
3034
3034
  type: "longpress"
3035
3035
  }), s.current = void 0;
3036
- }, i), b.pointerType === "touch")) {
3036
+ }, i), p.pointerType === "touch")) {
3037
3037
  let d = (v) => {
3038
3038
  v.preventDefault();
3039
3039
  };
3040
- u(b.target, "contextmenu", d, {
3040
+ u(p.target, "contextmenu", d, {
3041
3041
  once: !0
3042
3042
  }), u(window, "pointerup", () => {
3043
3043
  setTimeout(() => {
3044
- a(b.target, "contextmenu", d);
3044
+ a(p.target, "contextmenu", d);
3045
3045
  }, 30);
3046
3046
  }, {
3047
3047
  once: !0
3048
3048
  });
3049
3049
  }
3050
3050
  },
3051
- onPressEnd(b) {
3052
- s.current && clearTimeout(s.current), r && (b.pointerType === "mouse" || b.pointerType === "touch") && r({
3053
- ...b,
3051
+ onPressEnd(p) {
3052
+ s.current && clearTimeout(s.current), r && (p.pointerType === "mouse" || p.pointerType === "touch") && r({
3053
+ ...p,
3054
3054
  type: "longpressend"
3055
3055
  });
3056
3056
  }
@@ -3095,43 +3095,43 @@ function Vu(t) {
3095
3095
  }), [
3096
3096
  s
3097
3097
  ]);
3098
- de(() => {
3099
- let b = u || be.root;
3100
- if (be.getTreeNode(b.scopeRef) && le && !kt(le, b.scopeRef)) {
3101
- let d = be.getTreeNode(le);
3102
- d && (b = d);
3098
+ fe(() => {
3099
+ let p = u || me.root;
3100
+ if (me.getTreeNode(p.scopeRef) && le && !kt(le, p.scopeRef)) {
3101
+ let d = me.getTreeNode(le);
3102
+ d && (p = d);
3103
3103
  }
3104
- b.addChild(a), be.addNode(a);
3104
+ p.addChild(a), me.addNode(a);
3105
3105
  }, [
3106
3106
  a,
3107
3107
  u
3108
- ]), de(() => {
3109
- let b = be.getTreeNode(s);
3110
- b && (b.contain = !!n);
3108
+ ]), fe(() => {
3109
+ let p = me.getTreeNode(s);
3110
+ p && (p.contain = !!n);
3111
3111
  }, [
3112
3112
  n
3113
- ]), de(() => {
3114
- var b;
3115
- let d = (b = i.current) === null || b === void 0 ? void 0 : b.nextSibling, v = [];
3113
+ ]), fe(() => {
3114
+ var p;
3115
+ let d = (p = i.current) === null || p === void 0 ? void 0 : p.nextSibling, v = [];
3116
3116
  for (; d && d !== l.current; )
3117
3117
  v.push(d), d = d.nextSibling;
3118
3118
  s.current = v;
3119
3119
  }, [
3120
3120
  e
3121
3121
  ]), qu(s, r, n), Uu(s, n), Xu(s, r, n), Gu(s, o), W(() => {
3122
- const b = pe(s.current ? s.current[0] : void 0).activeElement;
3122
+ const p = pe(s.current ? s.current[0] : void 0).activeElement;
3123
3123
  let d = null;
3124
- if (ge(b, s.current)) {
3125
- for (let v of be.traverse())
3126
- v.scopeRef && ge(b, v.scopeRef.current) && (d = v);
3127
- d === be.getTreeNode(s) && (le = d.scopeRef);
3124
+ if (ge(p, s.current)) {
3125
+ for (let v of me.traverse())
3126
+ v.scopeRef && ge(p, v.scopeRef.current) && (d = v);
3127
+ d === me.getTreeNode(s) && (le = d.scopeRef);
3128
3128
  }
3129
3129
  }, [
3130
3130
  s
3131
- ]), de(() => () => {
3132
- var b, d, v;
3133
- let $ = (v = (d = be.getTreeNode(s)) === null || d === void 0 || (b = d.parent) === null || b === void 0 ? void 0 : b.scopeRef) !== null && v !== void 0 ? v : null;
3134
- (s === le || kt(s, le)) && (!$ || be.getTreeNode($)) && (le = $), be.removeTreeNode(s);
3131
+ ]), fe(() => () => {
3132
+ var p, d, v;
3133
+ let $ = (v = (d = me.getTreeNode(s)) === null || d === void 0 || (p = d.parent) === null || p === void 0 ? void 0 : p.scopeRef) !== null && v !== void 0 ? v : null;
3134
+ (s === le || kt(s, le)) && (!$ || me.getTreeNode($)) && (le = $), me.removeTreeNode(s);
3135
3135
  }, [
3136
3136
  s
3137
3137
  ]);
@@ -3215,7 +3215,7 @@ function Be(t) {
3215
3215
  return t[0].parentElement;
3216
3216
  }
3217
3217
  function lt(t) {
3218
- let e = be.getTreeNode(le);
3218
+ let e = me.getTreeNode(le);
3219
3219
  for (; e && e.scopeRef !== t; ) {
3220
3220
  if (e.contain)
3221
3221
  return !1;
@@ -3225,7 +3225,7 @@ function lt(t) {
3225
3225
  }
3226
3226
  function Uu(t, e) {
3227
3227
  let n = I(), r = I();
3228
- de(() => {
3228
+ fe(() => {
3229
3229
  let o = t.current;
3230
3230
  if (!e) {
3231
3231
  r.current && (cancelAnimationFrame(r.current), r.current = void 0);
@@ -3238,7 +3238,7 @@ function Uu(t, e) {
3238
3238
  let c = i.activeElement, f = t.current;
3239
3239
  if (!f || !ge(c, f))
3240
3240
  return;
3241
- let b = Be(f), d = Me(b, {
3241
+ let p = Be(f), d = Me(p, {
3242
3242
  tabbable: !0
3243
3243
  }, f);
3244
3244
  if (!c)
@@ -3264,7 +3264,7 @@ function Uu(t, e) {
3264
3264
  }, [
3265
3265
  t,
3266
3266
  e
3267
- ]), de(() => () => {
3267
+ ]), fe(() => () => {
3268
3268
  r.current && cancelAnimationFrame(r.current);
3269
3269
  }, [
3270
3270
  r
@@ -3279,7 +3279,7 @@ function ge(t, e) {
3279
3279
  function Mt(t, e = null) {
3280
3280
  if (t instanceof Element && t.closest("[data-react-aria-top-layer]"))
3281
3281
  return !0;
3282
- for (let { scopeRef: n } of be.traverse(be.getTreeNode(e)))
3282
+ for (let { scopeRef: n } of me.traverse(me.getTreeNode(e)))
3283
3283
  if (n && ge(t, n.current))
3284
3284
  return !0;
3285
3285
  return !1;
@@ -3289,7 +3289,7 @@ function Wu(t) {
3289
3289
  }
3290
3290
  function kt(t, e) {
3291
3291
  var n;
3292
- let r = (n = be.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
3292
+ let r = (n = me.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
3293
3293
  for (; r; ) {
3294
3294
  if (r.scopeRef === t)
3295
3295
  return !0;
@@ -3333,7 +3333,7 @@ function Gu(t, e) {
3333
3333
  ]);
3334
3334
  }
3335
3335
  function qu(t, e, n) {
3336
- de(() => {
3336
+ fe(() => {
3337
3337
  if (e || n)
3338
3338
  return;
3339
3339
  let r = t.current;
@@ -3352,7 +3352,7 @@ function qu(t, e, n) {
3352
3352
  ]);
3353
3353
  }
3354
3354
  function Yu(t) {
3355
- let e = be.getTreeNode(le);
3355
+ let e = me.getTreeNode(le);
3356
3356
  for (; e && e.scopeRef !== t; ) {
3357
3357
  if (e.nodeToRestore)
3358
3358
  return !1;
@@ -3362,7 +3362,7 @@ function Yu(t) {
3362
3362
  }
3363
3363
  function Xu(t, e, n) {
3364
3364
  const r = I(typeof document < "u" ? pe(t.current ? t.current[0] : void 0).activeElement : null);
3365
- de(() => {
3365
+ fe(() => {
3366
3366
  let o = t.current;
3367
3367
  const i = pe(o ? o[0] : void 0);
3368
3368
  if (!e || n)
@@ -3376,7 +3376,7 @@ function Xu(t, e, n) {
3376
3376
  }, [
3377
3377
  t,
3378
3378
  n
3379
- ]), de(() => {
3379
+ ]), fe(() => {
3380
3380
  const o = pe(t.current ? t.current[0] : void 0);
3381
3381
  if (!e)
3382
3382
  return;
@@ -3386,7 +3386,7 @@ function Xu(t, e, n) {
3386
3386
  let s = o.activeElement;
3387
3387
  if (!ge(s, t.current))
3388
3388
  return;
3389
- let u = be.getTreeNode(t);
3389
+ let u = me.getTreeNode(t);
3390
3390
  if (!u)
3391
3391
  return;
3392
3392
  let a = u.nodeToRestore, c = Me(o.body, {
@@ -3409,21 +3409,21 @@ function Xu(t, e, n) {
3409
3409
  t,
3410
3410
  e,
3411
3411
  n
3412
- ]), de(() => {
3412
+ ]), fe(() => {
3413
3413
  const o = pe(t.current ? t.current[0] : void 0);
3414
3414
  if (!e)
3415
3415
  return;
3416
- let i = be.getTreeNode(t);
3416
+ let i = me.getTreeNode(t);
3417
3417
  if (i) {
3418
3418
  var l;
3419
3419
  return i.nodeToRestore = (l = r.current) !== null && l !== void 0 ? l : void 0, () => {
3420
- let s = be.getTreeNode(t);
3420
+ let s = me.getTreeNode(t);
3421
3421
  if (!s)
3422
3422
  return;
3423
3423
  let u = s.nodeToRestore;
3424
3424
  if (e && u && // eslint-disable-next-line react-hooks/exhaustive-deps
3425
3425
  (ge(o.activeElement, t.current) || o.activeElement === o.body && Yu(t))) {
3426
- let a = be.clone();
3426
+ let a = me.clone();
3427
3427
  requestAnimationFrame(() => {
3428
3428
  if (o.activeElement === o.body) {
3429
3429
  let c = a.getTreeNode(t);
@@ -3435,7 +3435,7 @@ function Xu(t, e, n) {
3435
3435
  c = c.parent;
3436
3436
  }
3437
3437
  for (c = a.getTreeNode(t); c; ) {
3438
- if (c.scopeRef && c.scopeRef.current && be.getTreeNode(c.scopeRef)) {
3438
+ if (c.scopeRef && c.scopeRef.current && me.getTreeNode(c.scopeRef)) {
3439
3439
  Nt(c.scopeRef.current, !0);
3440
3440
  return;
3441
3441
  }
@@ -3522,7 +3522,7 @@ class Fn {
3522
3522
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
3523
3523
  }
3524
3524
  }
3525
- let be = new Gn();
3525
+ let me = new Gn();
3526
3526
  function qn(t = {}) {
3527
3527
  let { autoFocus: e = !1, isTextInput: n, within: r } = t, o = I({
3528
3528
  isFocused: !1,
@@ -3540,14 +3540,14 @@ function qn(t = {}) {
3540
3540
  let { focusProps: f } = Un({
3541
3541
  isDisabled: r,
3542
3542
  onFocusChange: c
3543
- }), { focusWithinProps: b } = Xt({
3543
+ }), { focusWithinProps: p } = Xt({
3544
3544
  isDisabled: !r,
3545
3545
  onFocusWithinChange: c
3546
3546
  });
3547
3547
  return {
3548
3548
  isFocused: i,
3549
3549
  isFocusVisible: s,
3550
- focusProps: r ? b : f
3550
+ focusProps: r ? p : f
3551
3551
  };
3552
3552
  }
3553
3553
  let Zu = /* @__PURE__ */ Q.createContext(null);
@@ -3716,7 +3716,7 @@ function ko(t, e) {
3716
3716
  allowFocusWhenDisabled: c,
3717
3717
  // @ts-ignore
3718
3718
  onClick: f,
3719
- href: b,
3719
+ href: p,
3720
3720
  target: d,
3721
3721
  rel: v,
3722
3722
  type: $ = "button"
@@ -3727,14 +3727,14 @@ function ko(t, e) {
3727
3727
  } : h = {
3728
3728
  role: "button",
3729
3729
  tabIndex: r ? void 0 : 0,
3730
- href: n === "a" && r ? void 0 : b,
3730
+ href: n === "a" && r ? void 0 : p,
3731
3731
  target: n === "a" ? d : void 0,
3732
3732
  type: n === "input" ? $ : void 0,
3733
3733
  disabled: n === "input" ? r : void 0,
3734
3734
  "aria-disabled": !r || n === "input" ? void 0 : r,
3735
3735
  rel: n === "a" ? v : void 0
3736
3736
  };
3737
- let { pressProps: _, isPressed: w } = qt({
3737
+ let { pressProps: A, isPressed: w } = qt({
3738
3738
  onPressStart: i,
3739
3739
  onPressEnd: l,
3740
3740
  onPressChange: u,
@@ -3745,7 +3745,7 @@ function ko(t, e) {
3745
3745
  ref: e
3746
3746
  }), { focusableProps: S } = Lo(t, e);
3747
3747
  c && (S.tabIndex = r ? -1 : S.tabIndex);
3748
- let K = se(S, _, ze(t, {
3748
+ let K = se(S, A, ze(t, {
3749
3749
  labelable: !0
3750
3750
  }));
3751
3751
  return {
@@ -3755,8 +3755,8 @@ function ko(t, e) {
3755
3755
  "aria-expanded": t["aria-expanded"],
3756
3756
  "aria-controls": t["aria-controls"],
3757
3757
  "aria-pressed": t["aria-pressed"],
3758
- onClick: (g) => {
3759
- f && (f(g), console.warn("onClick is deprecated, please use onPress"));
3758
+ onClick: (x) => {
3759
+ f && (f(x), console.warn("onClick is deprecated, please use onPress"));
3760
3760
  }
3761
3761
  })
3762
3762
  };
@@ -3802,7 +3802,7 @@ class ua {
3802
3802
  }
3803
3803
  function Io(t, e, n) {
3804
3804
  let { validationBehavior: r, focus: o } = t;
3805
- de(() => {
3805
+ fe(() => {
3806
3806
  if (r === "native" && (n != null && n.current)) {
3807
3807
  let u = e.realtimeValidation.isInvalid ? e.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
3808
3808
  n.current.setCustomValidity(u), n.current.hasAttribute("title") || (n.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(ca(n.current));
@@ -4850,14 +4850,14 @@ function Lr(t) {
4850
4850
  }, Ct[t];
4851
4851
  }
4852
4852
  function dn(t, e, n, r, o, i, l, s, u, a) {
4853
- let { placement: c, crossPlacement: f, axis: b, crossAxis: d, size: v, crossSize: $ } = r, h = {};
4853
+ let { placement: c, crossPlacement: f, axis: p, crossAxis: d, size: v, crossSize: $ } = r, h = {};
4854
4854
  h[d] = t[d], f === "center" ? h[d] += (t[$] - n[$]) / 2 : f !== d && (h[d] += t[$] - n[$]), h[d] += i;
4855
- const _ = t[d] - n[$] + u + a, w = t[d] + t[$] - u - a;
4856
- if (h[d] = Cn(h[d], _, w), c === b) {
4855
+ const A = t[d] - n[$] + u + a, w = t[d] + t[$] - u - a;
4856
+ if (h[d] = Cn(h[d], A, w), c === p) {
4857
4857
  const S = s ? l[v] : e[ma[v]];
4858
- h[It[b]] = Math.floor(S - t[b] + o);
4858
+ h[It[p]] = Math.floor(S - t[p] + o);
4859
4859
  } else
4860
- h[b] = Math.floor(t[b] + t[v] + o);
4860
+ h[p] = Math.floor(t[p] + t[v] + o);
4861
4861
  return h;
4862
4862
  }
4863
4863
  function ga(t, e, n, r, o, i) {
@@ -4867,38 +4867,38 @@ function Mr(t, e, n, r, o, i) {
4867
4867
  let { placement: l, axis: s, size: u } = i;
4868
4868
  return l === s ? Math.max(0, n[s] - t[s] - t.scroll[s] + e[s] - r[s] - r[It[s]] - o) : Math.max(0, t[u] + t[s] + t.scroll[s] - e[s] - n[s] - n[u] - r[s] - r[It[s]] - o);
4869
4869
  }
4870
- function $a(t, e, n, r, o, i, l, s, u, a, c, f, b, d, v, $) {
4871
- let h = Lr(t), { size: _, crossAxis: w, crossSize: S, placement: K, crossPlacement: g } = h, k = dn(e, s, n, h, c, f, a, b, v, $), R = c, p = Mr(s, a, e, o, i + c, h);
4872
- if (l && r[_] > p) {
4873
- let ue = Lr(`${It[K]} ${g}`), ae = dn(e, s, n, ue, c, f, a, b, v, $);
4874
- Mr(s, a, e, o, i + c, ue) > p && (h = ue, k = ae, R = c);
4875
- }
4876
- let A = Fr(w, k[w], n[S], s, u, i);
4877
- k[w] += A;
4878
- let E = ga(k, s, a, e, o, i);
4879
- d && d < E && (E = d), n.height = Math.min(n.height, E), k = dn(e, s, n, h, R, f, a, b, v, $), A = Fr(w, k[w], n[S], s, u, i), k[w] += A;
4880
- let P = {}, B = e[w] + 0.5 * e[S] - n[w];
4881
- const C = v / 2 + $, T = n[S] - v / 2 - $, q = e[w] - n[w] + v / 2, V = e[w] + e[S] - n[w] - v / 2, F = Cn(B, q, V);
4882
- return P[w] = Cn(F, C, T), {
4883
- position: k,
4884
- maxHeight: E,
4885
- arrowOffsetLeft: P.left,
4886
- arrowOffsetTop: P.top,
4870
+ function $a(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, $) {
4871
+ let h = Lr(t), { size: A, crossAxis: w, crossSize: S, placement: K, crossPlacement: x } = h, M = dn(e, s, n, h, c, f, a, p, v, $), R = c, b = Mr(s, a, e, o, i + c, h);
4872
+ if (l && r[A] > b) {
4873
+ let ue = Lr(`${It[K]} ${x}`), ae = dn(e, s, n, ue, c, f, a, p, v, $);
4874
+ Mr(s, a, e, o, i + c, ue) > b && (h = ue, M = ae, R = c);
4875
+ }
4876
+ let _ = Fr(w, M[w], n[S], s, u, i);
4877
+ M[w] += _;
4878
+ let P = ga(M, s, a, e, o, i);
4879
+ d && d < P && (P = d), n.height = Math.min(n.height, P), M = dn(e, s, n, h, R, f, a, p, v, $), _ = Fr(w, M[w], n[S], s, u, i), M[w] += _;
4880
+ let C = {}, B = e[w] + 0.5 * e[S] - n[w];
4881
+ const E = v / 2 + $, T = n[S] - v / 2 - $, q = e[w] - n[w] + v / 2, V = e[w] + e[S] - n[w] - v / 2, F = Cn(B, q, V);
4882
+ return C[w] = Cn(F, E, T), {
4883
+ position: M,
4884
+ maxHeight: P,
4885
+ arrowOffsetLeft: C.left,
4886
+ arrowOffsetTop: C.top,
4887
4887
  placement: h.placement
4888
4888
  };
4889
4889
  }
4890
4890
  function ya(t) {
4891
- let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset: b = 0 } = t, d = r instanceof HTMLElement ? xa(r) : document.documentElement, v = d === document.documentElement;
4891
+ let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset: p = 0 } = t, d = r instanceof HTMLElement ? xa(r) : document.documentElement, v = d === document.documentElement;
4892
4892
  const $ = window.getComputedStyle(d).position;
4893
- let h = !!$ && $ !== "static", _ = v ? Je(n) : kr(n, d);
4893
+ let h = !!$ && $ !== "static", A = v ? Je(n) : kr(n, d);
4894
4894
  if (!v) {
4895
- let { marginTop: p, marginLeft: A } = window.getComputedStyle(n);
4896
- _.top += parseInt(p, 10) || 0, _.left += parseInt(A, 10) || 0;
4895
+ let { marginTop: b, marginLeft: _ } = window.getComputedStyle(n);
4896
+ A.top += parseInt(b, 10) || 0, A.left += parseInt(_, 10) || 0;
4897
4897
  }
4898
4898
  let w = Je(r), S = ha(r);
4899
4899
  w.width += S.left + S.right, w.height += S.top + S.bottom;
4900
- let K = va(o), g = Dr(s), k = Dr(d), R = s.tagName === "BODY" ? Je(d) : kr(d, s);
4901
- return $a(e, _, w, K, S, i, l, g, k, R, u, a, h, c, f, b);
4900
+ let K = va(o), x = Dr(s), M = Dr(d), R = s.tagName === "BODY" ? Je(d) : kr(d, s);
4901
+ return $a(e, A, w, K, S, i, l, x, M, R, u, a, h, c, f, p);
4902
4902
  }
4903
4903
  function Je(t) {
4904
4904
  let { top: e, left: n, width: r, height: o } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: l, clientTop: s, clientLeft: u } = document.documentElement;
@@ -4963,14 +4963,14 @@ function Ca(t) {
4963
4963
  }
4964
4964
  let Ee = typeof document < "u" && window.visualViewport;
4965
4965
  function Ea(t) {
4966
- let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: b = !0, isOpen: d = !0, onClose: v, maxHeight: $, arrowBoundaryOffset: h = 0 } = t, [_, w] = Z({
4966
+ let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: d = !0, onClose: v, maxHeight: $, arrowBoundaryOffset: h = 0 } = t, [A, w] = Z({
4967
4967
  position: {},
4968
4968
  arrowOffsetLeft: void 0,
4969
4969
  arrowOffsetTop: void 0,
4970
4970
  maxHeight: void 0,
4971
4971
  placement: void 0
4972
4972
  }), S = [
4973
- b,
4973
+ p,
4974
4974
  l,
4975
4975
  o.current,
4976
4976
  r.current,
@@ -4986,7 +4986,7 @@ function Ea(t) {
4986
4986
  h,
4987
4987
  n
4988
4988
  ], K = te(() => {
4989
- if (b === !1 || !d || !o.current || !r.current || !i.current || !a)
4989
+ if (p === !1 || !d || !o.current || !r.current || !i.current || !a)
4990
4990
  return;
4991
4991
  let R = ya({
4992
4992
  placement: wa(l, e),
@@ -5002,58 +5002,58 @@ function Ea(t) {
5002
5002
  arrowSize: n,
5003
5003
  arrowBoundaryOffset: h
5004
5004
  });
5005
- Object.keys(R.position).forEach((p) => o.current.style[p] = R.position[p] + "px"), o.current.style.maxHeight = R.maxHeight != null ? R.maxHeight + "px" : void 0, w(R);
5005
+ Object.keys(R.position).forEach((b) => o.current.style[b] = R.position[b] + "px"), o.current.style.maxHeight = R.maxHeight != null ? R.maxHeight + "px" : void 0, w(R);
5006
5006
  }, S);
5007
- de(K, S), Pa(K), fu({
5007
+ fe(K, S), Pa(K), fu({
5008
5008
  ref: o,
5009
5009
  onResize: K
5010
5010
  });
5011
- let g = I(!1);
5012
- de(() => {
5013
- let R, p = () => {
5014
- g.current = !0, clearTimeout(R), R = setTimeout(() => {
5015
- g.current = !1;
5011
+ let x = I(!1);
5012
+ fe(() => {
5013
+ let R, b = () => {
5014
+ x.current = !0, clearTimeout(R), R = setTimeout(() => {
5015
+ x.current = !1;
5016
5016
  }, 500), K();
5017
5017
  };
5018
- return Ee == null || Ee.addEventListener("resize", p), Ee == null || Ee.addEventListener("scroll", p), () => {
5019
- Ee == null || Ee.removeEventListener("resize", p), Ee == null || Ee.removeEventListener("scroll", p);
5018
+ return Ee == null || Ee.addEventListener("resize", b), Ee == null || Ee.addEventListener("scroll", b), () => {
5019
+ Ee == null || Ee.removeEventListener("resize", b), Ee == null || Ee.removeEventListener("scroll", b);
5020
5020
  };
5021
5021
  }, [
5022
5022
  K
5023
5023
  ]);
5024
- let k = te(() => {
5025
- g.current || v();
5024
+ let M = te(() => {
5025
+ x.current || v();
5026
5026
  }, [
5027
5027
  v,
5028
- g
5028
+ x
5029
5029
  ]);
5030
5030
  return Ca({
5031
5031
  triggerRef: r,
5032
5032
  isOpen: d,
5033
- onClose: v && k
5033
+ onClose: v && M
5034
5034
  }), {
5035
5035
  overlayProps: {
5036
5036
  style: {
5037
5037
  position: "absolute",
5038
5038
  zIndex: 1e5,
5039
- ..._.position,
5040
- maxHeight: _.maxHeight
5039
+ ...A.position,
5040
+ maxHeight: A.maxHeight
5041
5041
  }
5042
5042
  },
5043
- placement: _.placement,
5043
+ placement: A.placement,
5044
5044
  arrowProps: {
5045
5045
  "aria-hidden": "true",
5046
5046
  role: "presentation",
5047
5047
  style: {
5048
- left: _.arrowOffsetLeft,
5049
- top: _.arrowOffsetTop
5048
+ left: A.arrowOffsetLeft,
5049
+ top: A.arrowOffsetTop
5050
5050
  }
5051
5051
  },
5052
5052
  updatePosition: K
5053
5053
  };
5054
5054
  }
5055
5055
  function Pa(t) {
5056
- de(() => (window.addEventListener("resize", t, !1), () => {
5056
+ fe(() => (window.addEventListener("resize", t, !1), () => {
5057
5057
  window.removeEventListener("resize", t, !1);
5058
5058
  }), [
5059
5059
  t
@@ -5086,7 +5086,7 @@ function Sa(t, e) {
5086
5086
  onInteractOutside: i && o ? c : null,
5087
5087
  onInteractOutsideStart: a
5088
5088
  });
5089
- let { focusWithinProps: b } = Xt({
5089
+ let { focusWithinProps: p } = Xt({
5090
5090
  isDisabled: !r,
5091
5091
  onBlurWithin: (v) => {
5092
5092
  !v.relatedTarget || Wu(v.relatedTarget) || (!s || s(v.relatedTarget)) && n();
@@ -5097,7 +5097,7 @@ function Sa(t, e) {
5097
5097
  return {
5098
5098
  overlayProps: {
5099
5099
  onKeyDown: f,
5100
- ...b
5100
+ ...p
5101
5101
  },
5102
5102
  underlayProps: {
5103
5103
  onPointerDown: d
@@ -5138,7 +5138,7 @@ const fn = typeof document < "u" && window.visualViewport, _a = /* @__PURE__ */
5138
5138
  let Et = 0, pn;
5139
5139
  function Aa(t = {}) {
5140
5140
  let { isDisabled: e } = t;
5141
- de(() => {
5141
+ fe(() => {
5142
5142
  if (!e)
5143
5143
  return Et++, Et === 1 && (Wt() ? pn = Da() : pn = Ka()), () => {
5144
5144
  Et--, Et === 0 && pn();
@@ -5275,22 +5275,22 @@ function Or(t) {
5275
5275
  let it = /* @__PURE__ */ new WeakMap(), Pe = [];
5276
5276
  function rl(t, e = document.body) {
5277
5277
  let n = new Set(t), r = /* @__PURE__ */ new Set(), o = (u) => {
5278
- for (let b of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))
5279
- n.add(b);
5280
- let a = (b) => {
5281
- if (n.has(b) || r.has(b.parentElement) && b.parentElement.getAttribute("role") !== "row")
5278
+ for (let p of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))
5279
+ n.add(p);
5280
+ let a = (p) => {
5281
+ if (n.has(p) || r.has(p.parentElement) && p.parentElement.getAttribute("role") !== "row")
5282
5282
  return NodeFilter.FILTER_REJECT;
5283
5283
  for (let d of n)
5284
- if (b.contains(d))
5284
+ if (p.contains(d))
5285
5285
  return NodeFilter.FILTER_SKIP;
5286
5286
  return NodeFilter.FILTER_ACCEPT;
5287
5287
  }, c = document.createTreeWalker(u, NodeFilter.SHOW_ELEMENT, {
5288
5288
  acceptNode: a
5289
5289
  }), f = a(u);
5290
5290
  if (f === NodeFilter.FILTER_ACCEPT && i(u), f !== NodeFilter.FILTER_REJECT) {
5291
- let b = c.nextNode();
5292
- for (; b != null; )
5293
- i(b), b = c.nextNode();
5291
+ let p = c.nextNode();
5292
+ for (; p != null; )
5293
+ i(p), p = c.nextNode();
5294
5294
  }
5295
5295
  }, i = (u) => {
5296
5296
  var a;
@@ -5342,7 +5342,7 @@ function Fa(t, e) {
5342
5342
  isDismissable: !o,
5343
5343
  isKeyboardDismissDisabled: i,
5344
5344
  shouldCloseOnInteractOutside: l
5345
- }, r), { overlayProps: c, arrowProps: f, placement: b } = Ea({
5345
+ }, r), { overlayProps: c, arrowProps: f, placement: p } = Ea({
5346
5346
  ...s,
5347
5347
  targetRef: n,
5348
5348
  overlayRef: r,
@@ -5351,7 +5351,7 @@ function Fa(t, e) {
5351
5351
  });
5352
5352
  return Aa({
5353
5353
  isDisabled: o || !e.isOpen
5354
- }), de(() => {
5354
+ }), fe(() => {
5355
5355
  if (e.isOpen && !o && r.current)
5356
5356
  return rl([
5357
5357
  r.current
@@ -5364,7 +5364,7 @@ function Fa(t, e) {
5364
5364
  popoverProps: se(u, c),
5365
5365
  arrowProps: f,
5366
5366
  underlayProps: a,
5367
- placement: b
5367
+ placement: p
5368
5368
  };
5369
5369
  }
5370
5370
  const La = /* @__PURE__ */ Q.createContext(null);
@@ -5419,94 +5419,94 @@ function Na(t) {
5419
5419
  return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
5420
5420
  }
5421
5421
  function il(t) {
5422
- let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: b, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: $ } = Zt(), h = Gt(), _ = (E) => {
5423
- if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target))
5422
+ let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: $ } = Zt(), h = Gt(), A = (P) => {
5423
+ if (P.altKey && P.key === "Tab" && P.preventDefault(), !r.current.contains(P.target))
5424
5424
  return;
5425
- const P = (y, D) => {
5425
+ const C = (y, D) => {
5426
5426
  if (y != null) {
5427
- if (e.isLink(y) && v === "selection" && u && !kn(E)) {
5427
+ if (e.isLink(y) && v === "selection" && u && !kn(P)) {
5428
5428
  us(() => {
5429
5429
  e.setFocusedKey(y, D);
5430
5430
  });
5431
5431
  let z = d.current.querySelector(`[data-key="${CSS.escape(y.toString())}"]`);
5432
- h.open(z, E);
5432
+ h.open(z, P);
5433
5433
  return;
5434
5434
  }
5435
5435
  if (e.setFocusedKey(y, D), e.isLink(y) && v === "override")
5436
5436
  return;
5437
- E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && !kn(E) && e.replaceSelection(y);
5437
+ P.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && !kn(P) && e.replaceSelection(y);
5438
5438
  }
5439
5439
  };
5440
- switch (E.key) {
5440
+ switch (P.key) {
5441
5441
  case "ArrowDown":
5442
5442
  if (n.getKeyBelow) {
5443
- var B, C;
5444
- E.preventDefault();
5443
+ var B, E;
5444
+ P.preventDefault();
5445
5445
  let y = e.focusedKey != null ? n.getKeyBelow(e.focusedKey) : (B = n.getFirstKey) === null || B === void 0 ? void 0 : B.call(n);
5446
- y == null && i && (y = (C = n.getFirstKey) === null || C === void 0 ? void 0 : C.call(n, e.focusedKey)), P(y);
5446
+ y == null && i && (y = (E = n.getFirstKey) === null || E === void 0 ? void 0 : E.call(n, e.focusedKey)), C(y);
5447
5447
  }
5448
5448
  break;
5449
5449
  case "ArrowUp":
5450
5450
  if (n.getKeyAbove) {
5451
5451
  var T, q;
5452
- E.preventDefault();
5452
+ P.preventDefault();
5453
5453
  let y = e.focusedKey != null ? n.getKeyAbove(e.focusedKey) : (T = n.getLastKey) === null || T === void 0 ? void 0 : T.call(n);
5454
- y == null && i && (y = (q = n.getLastKey) === null || q === void 0 ? void 0 : q.call(n, e.focusedKey)), P(y);
5454
+ y == null && i && (y = (q = n.getLastKey) === null || q === void 0 ? void 0 : q.call(n, e.focusedKey)), C(y);
5455
5455
  }
5456
5456
  break;
5457
5457
  case "ArrowLeft":
5458
5458
  if (n.getKeyLeftOf) {
5459
5459
  var V, F;
5460
- E.preventDefault();
5460
+ P.preventDefault();
5461
5461
  let y = n.getKeyLeftOf(e.focusedKey);
5462
- y == null && i && (y = $ === "rtl" ? (V = n.getFirstKey) === null || V === void 0 ? void 0 : V.call(n, e.focusedKey) : (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), P(y, $ === "rtl" ? "first" : "last");
5462
+ y == null && i && (y = $ === "rtl" ? (V = n.getFirstKey) === null || V === void 0 ? void 0 : V.call(n, e.focusedKey) : (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), C(y, $ === "rtl" ? "first" : "last");
5463
5463
  }
5464
5464
  break;
5465
5465
  case "ArrowRight":
5466
5466
  if (n.getKeyRightOf) {
5467
5467
  var ue, ae;
5468
- E.preventDefault();
5468
+ P.preventDefault();
5469
5469
  let y = n.getKeyRightOf(e.focusedKey);
5470
- y == null && i && (y = $ === "rtl" ? (ue = n.getLastKey) === null || ue === void 0 ? void 0 : ue.call(n, e.focusedKey) : (ae = n.getFirstKey) === null || ae === void 0 ? void 0 : ae.call(n, e.focusedKey)), P(y, $ === "rtl" ? "last" : "first");
5470
+ y == null && i && (y = $ === "rtl" ? (ue = n.getLastKey) === null || ue === void 0 ? void 0 : ue.call(n, e.focusedKey) : (ae = n.getFirstKey) === null || ae === void 0 ? void 0 : ae.call(n, e.focusedKey)), C(y, $ === "rtl" ? "last" : "first");
5471
5471
  }
5472
5472
  break;
5473
5473
  case "Home":
5474
5474
  if (n.getFirstKey) {
5475
- E.preventDefault();
5476
- let y = n.getFirstKey(e.focusedKey, Ye(E));
5477
- e.setFocusedKey(y), Ye(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && e.replaceSelection(y);
5475
+ P.preventDefault();
5476
+ let y = n.getFirstKey(e.focusedKey, Ye(P));
5477
+ e.setFocusedKey(y), Ye(P) && P.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && e.replaceSelection(y);
5478
5478
  }
5479
5479
  break;
5480
5480
  case "End":
5481
5481
  if (n.getLastKey) {
5482
- E.preventDefault();
5483
- let y = n.getLastKey(e.focusedKey, Ye(E));
5484
- e.setFocusedKey(y), Ye(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && e.replaceSelection(y);
5482
+ P.preventDefault();
5483
+ let y = n.getLastKey(e.focusedKey, Ye(P));
5484
+ e.setFocusedKey(y), Ye(P) && P.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : u && e.replaceSelection(y);
5485
5485
  }
5486
5486
  break;
5487
5487
  case "PageDown":
5488
5488
  if (n.getKeyPageBelow) {
5489
- E.preventDefault();
5489
+ P.preventDefault();
5490
5490
  let y = n.getKeyPageBelow(e.focusedKey);
5491
- P(y);
5491
+ C(y);
5492
5492
  }
5493
5493
  break;
5494
5494
  case "PageUp":
5495
5495
  if (n.getKeyPageAbove) {
5496
- E.preventDefault();
5496
+ P.preventDefault();
5497
5497
  let y = n.getKeyPageAbove(e.focusedKey);
5498
- P(y);
5498
+ C(y);
5499
5499
  }
5500
5500
  break;
5501
5501
  case "a":
5502
- Ye(E) && e.selectionMode === "multiple" && s !== !0 && (E.preventDefault(), e.selectAll());
5502
+ Ye(P) && e.selectionMode === "multiple" && s !== !0 && (P.preventDefault(), e.selectAll());
5503
5503
  break;
5504
5504
  case "Escape":
5505
- E.preventDefault(), l || e.clearSelection();
5505
+ P.preventDefault(), l || e.clearSelection();
5506
5506
  break;
5507
5507
  case "Tab":
5508
5508
  if (!f) {
5509
- if (E.shiftKey)
5509
+ if (P.shiftKey)
5510
5510
  r.current.focus();
5511
5511
  else {
5512
5512
  let y = Me(r.current, {
@@ -5524,91 +5524,91 @@ function il(t) {
5524
5524
  top: 0,
5525
5525
  left: 0
5526
5526
  });
5527
- mu(d, "scroll", b ? null : () => {
5527
+ mu(d, "scroll", p ? null : () => {
5528
5528
  w.current = {
5529
5529
  top: d.current.scrollTop,
5530
5530
  left: d.current.scrollLeft
5531
5531
  };
5532
5532
  });
5533
- let S = (E) => {
5533
+ let S = (P) => {
5534
5534
  if (e.isFocused) {
5535
- E.currentTarget.contains(E.target) || e.setFocused(!1);
5535
+ P.currentTarget.contains(P.target) || e.setFocused(!1);
5536
5536
  return;
5537
5537
  }
5538
- if (E.currentTarget.contains(E.target)) {
5538
+ if (P.currentTarget.contains(P.target)) {
5539
5539
  if (e.setFocused(!0), e.focusedKey == null) {
5540
- let C = (q) => {
5540
+ let E = (q) => {
5541
5541
  q != null && (e.setFocusedKey(q), u && e.replaceSelection(q));
5542
- }, T = E.relatedTarget;
5543
- var P, B;
5544
- T && E.currentTarget.compareDocumentPosition(T) & Node.DOCUMENT_POSITION_FOLLOWING ? C((P = e.lastSelectedKey) !== null && P !== void 0 ? P : n.getLastKey()) : C((B = e.firstSelectedKey) !== null && B !== void 0 ? B : n.getFirstKey());
5542
+ }, T = P.relatedTarget;
5543
+ var C, B;
5544
+ T && P.currentTarget.compareDocumentPosition(T) & Node.DOCUMENT_POSITION_FOLLOWING ? E((C = e.lastSelectedKey) !== null && C !== void 0 ? C : n.getLastKey()) : E((B = e.firstSelectedKey) !== null && B !== void 0 ? B : n.getFirstKey());
5545
5545
  } else
5546
- b || (d.current.scrollTop = w.current.top, d.current.scrollLeft = w.current.left);
5547
- if (!b && e.focusedKey != null) {
5548
- let C = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
5549
- C && (C.contains(document.activeElement) || Fe(C), Kn() === "keyboard" && vr(C, {
5546
+ p || (d.current.scrollTop = w.current.top, d.current.scrollLeft = w.current.left);
5547
+ if (!p && e.focusedKey != null) {
5548
+ let E = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
5549
+ E && (E.contains(document.activeElement) || Fe(E), Kn() === "keyboard" && vr(E, {
5550
5550
  containingElement: r.current
5551
5551
  }));
5552
5552
  }
5553
5553
  }
5554
- }, K = (E) => {
5555
- E.currentTarget.contains(E.relatedTarget) || e.setFocused(!1);
5554
+ }, K = (P) => {
5555
+ P.currentTarget.contains(P.relatedTarget) || e.setFocused(!1);
5556
5556
  };
5557
- const g = I(o);
5557
+ const x = I(o);
5558
5558
  W(() => {
5559
- if (g.current) {
5560
- let E = null;
5561
- o === "first" && (E = n.getFirstKey()), o === "last" && (E = n.getLastKey());
5562
- let P = e.selectedKeys;
5563
- if (P.size) {
5564
- for (let B of P)
5559
+ if (x.current) {
5560
+ let P = null;
5561
+ o === "first" && (P = n.getFirstKey()), o === "last" && (P = n.getLastKey());
5562
+ let C = e.selectedKeys;
5563
+ if (C.size) {
5564
+ for (let B of C)
5565
5565
  if (e.canSelectItem(B)) {
5566
- E = B;
5566
+ P = B;
5567
5567
  break;
5568
5568
  }
5569
5569
  }
5570
- e.setFocused(!0), e.setFocusedKey(E), E == null && !c && ft(r.current);
5570
+ e.setFocused(!0), e.setFocusedKey(P), P == null && !c && ft(r.current);
5571
5571
  }
5572
5572
  }, []);
5573
- let k = I(e.focusedKey);
5573
+ let M = I(e.focusedKey);
5574
5574
  W(() => {
5575
- let E = Kn();
5575
+ let P = Kn();
5576
5576
  if (e.isFocused && e.focusedKey != null && (d != null && d.current)) {
5577
- let P = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
5578
- P && (E === "keyboard" || g.current) && (b || Co(d.current, P), vr(P, {
5577
+ let C = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
5578
+ C && (P === "keyboard" || x.current) && (p || Co(d.current, C), vr(C, {
5579
5579
  containingElement: r.current
5580
5580
  }));
5581
5581
  }
5582
- e.isFocused && e.focusedKey == null && k.current != null && ft(r.current), k.current = e.focusedKey, g.current = !1;
5582
+ e.isFocused && e.focusedKey == null && M.current != null && ft(r.current), M.current = e.focusedKey, x.current = !1;
5583
5583
  }, [
5584
- b,
5584
+ p,
5585
5585
  d,
5586
5586
  e.focusedKey,
5587
5587
  e.isFocused,
5588
5588
  r
5589
5589
  ]);
5590
5590
  let R = {
5591
- onKeyDown: _,
5591
+ onKeyDown: A,
5592
5592
  onFocus: S,
5593
5593
  onBlur: K,
5594
- onMouseDown(E) {
5595
- d.current === E.target && E.preventDefault();
5594
+ onMouseDown(P) {
5595
+ d.current === P.target && P.preventDefault();
5596
5596
  }
5597
- }, { typeSelectProps: p } = ol({
5597
+ }, { typeSelectProps: b } = ol({
5598
5598
  keyboardDelegate: n,
5599
5599
  selectionManager: e
5600
5600
  });
5601
- a || (R = se(p, R));
5602
- let A;
5603
- return c || (A = e.focusedKey == null ? 0 : -1), {
5601
+ a || (R = se(b, R));
5602
+ let _;
5603
+ return c || (_ = e.focusedKey == null ? 0 : -1), {
5604
5604
  collectionProps: {
5605
5605
  ...R,
5606
- tabIndex: A
5606
+ tabIndex: _
5607
5607
  }
5608
5608
  };
5609
5609
  }
5610
5610
  function ll(t) {
5611
- let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: o, shouldUseVirtualFocus: i, focus: l, isDisabled: s, onAction: u, allowsDifferentPressOrigin: a, linkBehavior: c = "action" } = t, f = Gt(), b = (F) => {
5611
+ let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: o, shouldUseVirtualFocus: i, focus: l, isDisabled: s, onAction: u, allowsDifferentPressOrigin: a, linkBehavior: c = "action" } = t, f = Gt(), p = (F) => {
5612
5612
  if (F.pointerType === "keyboard" && kn(F))
5613
5613
  e.toggleSelection(n);
5614
5614
  else {
@@ -5643,40 +5643,40 @@ function ll(t) {
5643
5643
  } : s && (d.onMouseDown = (F) => {
5644
5644
  F.preventDefault();
5645
5645
  });
5646
- let v = e.isLink(n) && c === "override", $ = e.isLink(n) && c !== "selection" && c !== "none", h = !s && e.canSelectItem(n) && !v, _ = (u || $) && !s, w = _ && (e.selectionBehavior === "replace" ? !h : !h || e.isEmpty), S = _ && h && e.selectionBehavior === "replace", K = w || S, g = I(null), k = K && h, R = I(!1), p = I(!1), A = (F) => {
5646
+ let v = e.isLink(n) && c === "override", $ = e.isLink(n) && c !== "selection" && c !== "none", h = !s && e.canSelectItem(n) && !v, A = (u || $) && !s, w = A && (e.selectionBehavior === "replace" ? !h : !h || e.isEmpty), S = A && h && e.selectionBehavior === "replace", K = w || S, x = I(null), M = K && h, R = I(!1), b = I(!1), _ = (F) => {
5647
5647
  u && u(), $ && f.open(r.current, F);
5648
- }, E = {};
5649
- o ? (E.onPressStart = (F) => {
5650
- g.current = F.pointerType, R.current = k, F.pointerType === "keyboard" && (!K || Vr()) && b(F);
5651
- }, a ? (E.onPressUp = w ? null : (F) => {
5652
- F.pointerType !== "keyboard" && h && b(F);
5653
- }, E.onPress = w ? A : null) : E.onPress = (F) => {
5648
+ }, P = {};
5649
+ o ? (P.onPressStart = (F) => {
5650
+ x.current = F.pointerType, R.current = M, F.pointerType === "keyboard" && (!K || Vr()) && p(F);
5651
+ }, a ? (P.onPressUp = w ? null : (F) => {
5652
+ F.pointerType !== "keyboard" && h && p(F);
5653
+ }, P.onPress = w ? _ : null) : P.onPress = (F) => {
5654
5654
  if (w || S && F.pointerType !== "mouse") {
5655
5655
  if (F.pointerType === "keyboard" && !Rr())
5656
5656
  return;
5657
- A(F);
5657
+ _(F);
5658
5658
  } else
5659
- F.pointerType !== "keyboard" && h && b(F);
5660
- }) : (E.onPressStart = (F) => {
5661
- g.current = F.pointerType, R.current = k, p.current = w, h && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!_ || Vr())) && b(F);
5662
- }, E.onPress = (F) => {
5663
- (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && p.current) && (K ? A(F) : h && b(F));
5664
- }), d["data-key"] = n, E.preventFocusOnPress = i;
5665
- let { pressProps: P, isPressed: B } = qt(E), C = S ? (F) => {
5666
- g.current === "mouse" && (F.stopPropagation(), F.preventDefault(), A(F));
5659
+ F.pointerType !== "keyboard" && h && p(F);
5660
+ }) : (P.onPressStart = (F) => {
5661
+ x.current = F.pointerType, R.current = M, b.current = w, h && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!A || Vr())) && p(F);
5662
+ }, P.onPress = (F) => {
5663
+ (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && b.current) && (K ? _(F) : h && p(F));
5664
+ }), d["data-key"] = n, P.preventFocusOnPress = i;
5665
+ let { pressProps: C, isPressed: B } = qt(P), E = S ? (F) => {
5666
+ x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), _(F));
5667
5667
  } : void 0, { longPressProps: T } = Ko({
5668
- isDisabled: !k,
5668
+ isDisabled: !M,
5669
5669
  onLongPress(F) {
5670
- F.pointerType === "touch" && (b(F), e.setSelectionBehavior("toggle"));
5670
+ F.pointerType === "touch" && (p(F), e.setSelectionBehavior("toggle"));
5671
5671
  }
5672
5672
  }), q = (F) => {
5673
- g.current === "touch" && R.current && F.preventDefault();
5673
+ x.current === "touch" && R.current && F.preventDefault();
5674
5674
  }, V = e.isLink(n) ? (F) => {
5675
5675
  Re.isOpening || F.preventDefault();
5676
5676
  } : void 0;
5677
5677
  return {
5678
- itemProps: se(d, h || w ? P : {}, k ? T : {}, {
5679
- onDoubleClick: C,
5678
+ itemProps: se(d, h || w ? C : {}, M ? T : {}, {
5679
+ onDoubleClick: E,
5680
5680
  onDragStartCapture: q,
5681
5681
  onClick: V
5682
5682
  }),
@@ -5905,48 +5905,48 @@ function Oa(t, e, n) {
5905
5905
  let a = (u = t.isSelected) !== null && u !== void 0 ? u : e.selectionManager.isSelected(o);
5906
5906
  var c;
5907
5907
  let f = (c = t.shouldSelectOnPressUp) !== null && c !== void 0 ? c : i == null ? void 0 : i.shouldSelectOnPressUp;
5908
- var b;
5909
- let d = (b = t.shouldFocusOnHover) !== null && b !== void 0 ? b : i == null ? void 0 : i.shouldFocusOnHover;
5908
+ var p;
5909
+ let d = (p = t.shouldFocusOnHover) !== null && p !== void 0 ? p : i == null ? void 0 : i.shouldFocusOnHover;
5910
5910
  var v;
5911
5911
  let $ = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : i == null ? void 0 : i.shouldUseVirtualFocus;
5912
5912
  var h;
5913
- let _ = (h = t.isVirtualized) !== null && h !== void 0 ? h : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5913
+ let A = (h = t.isVirtualized) !== null && h !== void 0 ? h : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5914
5914
  role: "option",
5915
5915
  "aria-disabled": s || void 0,
5916
5916
  "aria-selected": e.selectionManager.selectionMode !== "none" ? a : void 0
5917
5917
  };
5918
5918
  Ie() && ho() || (K["aria-label"] = t["aria-label"], K["aria-labelledby"] = w, K["aria-describedby"] = S);
5919
- let g = e.collection.getItem(o);
5920
- if (_) {
5921
- let C = Number(g == null ? void 0 : g.index);
5922
- K["aria-posinset"] = Number.isNaN(C) ? void 0 : C + 1, K["aria-setsize"] = Rn(e.collection);
5919
+ let x = e.collection.getItem(o);
5920
+ if (A) {
5921
+ let E = Number(x == null ? void 0 : x.index);
5922
+ K["aria-posinset"] = Number.isNaN(E) ? void 0 : E + 1, K["aria-setsize"] = Rn(e.collection);
5923
5923
  }
5924
- let { itemProps: k, isPressed: R, isFocused: p, hasAction: A, allowsSelection: E } = ll({
5924
+ let { itemProps: M, isPressed: R, isFocused: b, hasAction: _, allowsSelection: P } = ll({
5925
5925
  selectionManager: e.selectionManager,
5926
5926
  key: o,
5927
5927
  ref: n,
5928
5928
  shouldSelectOnPressUp: f,
5929
5929
  allowsDifferentPressOrigin: f && d,
5930
- isVirtualized: _,
5930
+ isVirtualized: A,
5931
5931
  shouldUseVirtualFocus: $,
5932
5932
  isDisabled: s,
5933
5933
  onAction: i != null && i.onAction ? () => {
5934
- var C;
5935
- return i == null || (C = i.onAction) === null || C === void 0 ? void 0 : C.call(i, o);
5934
+ var E;
5935
+ return i == null || (E = i.onAction) === null || E === void 0 ? void 0 : E.call(i, o);
5936
5936
  } : void 0,
5937
5937
  linkBehavior: i == null ? void 0 : i.linkBehavior
5938
- }), { hoverProps: P } = _o({
5938
+ }), { hoverProps: C } = _o({
5939
5939
  isDisabled: s || !d,
5940
5940
  onHoverStart() {
5941
5941
  dt() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(o));
5942
5942
  }
5943
- }), B = ze(g == null ? void 0 : g.props, {
5944
- isLink: !!(!(g == null || (r = g.props) === null || r === void 0) && r.href)
5943
+ }), B = ze(x == null ? void 0 : x.props, {
5944
+ isLink: !!(!(x == null || (r = x.props) === null || r === void 0) && r.href)
5945
5945
  });
5946
5946
  return delete B.id, {
5947
5947
  optionProps: {
5948
5948
  ...K,
5949
- ...se(B, k, P),
5949
+ ...se(B, M, C),
5950
5950
  id: ul(e, o)
5951
5951
  },
5952
5952
  labelProps: {
@@ -5955,13 +5955,13 @@ function Oa(t, e, n) {
5955
5955
  descriptionProps: {
5956
5956
  id: S
5957
5957
  },
5958
- isFocused: p,
5959
- isFocusVisible: p && dt(),
5958
+ isFocused: b,
5959
+ isFocusVisible: b && dt(),
5960
5960
  isSelected: a,
5961
5961
  isDisabled: s,
5962
5962
  isPressed: R,
5963
- allowsSelection: E,
5964
- hasAction: A
5963
+ allowsSelection: P,
5964
+ hasAction: _
5965
5965
  };
5966
5966
  }
5967
5967
  function Ra(t) {
@@ -6188,7 +6188,7 @@ function Jn(t, e, n) {
6188
6188
  onLongPress() {
6189
6189
  e.open("first");
6190
6190
  }
6191
- }), b = {
6191
+ }), p = {
6192
6192
  onPressStart(d) {
6193
6193
  d.pointerType !== "touch" && d.pointerType !== "keyboard" && !o && e.toggle(d.pointerType === "virtual" ? "first" : null);
6194
6194
  },
@@ -6199,7 +6199,7 @@ function Jn(t, e, n) {
6199
6199
  return delete s.onPress, {
6200
6200
  menuTriggerProps: {
6201
6201
  ...s,
6202
- ...i === "press" ? b : f,
6202
+ ...i === "press" ? p : f,
6203
6203
  id: l,
6204
6204
  onKeyDown: a
6205
6205
  },
@@ -6244,15 +6244,15 @@ function za(t, e, n) {
6244
6244
  }
6245
6245
  function ja(t, e, n) {
6246
6246
  var r;
6247
- let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: b, onHoverStart: d, onHoverChange: v, onHoverEnd: $, onKeyDown: h, onKeyUp: _, onFocus: w, onFocusChange: S, onBlur: K } = t, g = !!s;
6248
- var k;
6249
- let R = (k = t.isDisabled) !== null && k !== void 0 ? k : e.disabledKeys.has(o);
6250
- var p;
6251
- let A = (p = t.isSelected) !== null && p !== void 0 ? p : e.selectionManager.isSelected(o), E = Hl.get(e), P = t.onClose || E.onClose, B = g ? () => {
6252
- } : t.onAction || E.onAction, C = Gt(), T = (J) => {
6253
- B && B(o), J.target instanceof HTMLAnchorElement && C.open(J.target, J);
6247
+ let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: p, onHoverStart: d, onHoverChange: v, onHoverEnd: $, onKeyDown: h, onKeyUp: A, onFocus: w, onFocusChange: S, onBlur: K } = t, x = !!s;
6248
+ var M;
6249
+ let R = (M = t.isDisabled) !== null && M !== void 0 ? M : e.disabledKeys.has(o);
6250
+ var b;
6251
+ let _ = (b = t.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(o), P = Hl.get(e), C = t.onClose || P.onClose, B = x ? () => {
6252
+ } : t.onAction || P.onAction, E = Gt(), T = (J) => {
6253
+ B && B(o), J.target instanceof HTMLAnchorElement && E.open(J.target, J);
6254
6254
  }, q = "menuitem";
6255
- g || (e.selectionManager.selectionMode === "single" ? q = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (q = "menuitemcheckbox"));
6255
+ x || (e.selectionManager.selectionMode === "single" ? q = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (q = "menuitemcheckbox"));
6256
6256
  let V = Oe(), F = Oe(), ue = Oe(), ae = {
6257
6257
  "aria-disabled": R || void 0,
6258
6258
  role: q,
@@ -6266,13 +6266,13 @@ function ja(t, e, n) {
6266
6266
  "aria-haspopup": s,
6267
6267
  "aria-expanded": t["aria-expanded"]
6268
6268
  };
6269
- e.selectionManager.selectionMode !== "none" && !g && (ae["aria-checked"] = A);
6269
+ e.selectionManager.selectionMode !== "none" && !x && (ae["aria-checked"] = _);
6270
6270
  let y = e.collection.getItem(o);
6271
6271
  l && (ae["aria-posinset"] = y == null ? void 0 : y.index, ae["aria-setsize"] = Rn(e.collection));
6272
6272
  let D = (J) => {
6273
6273
  J.pointerType === "keyboard" && T(J), u == null || u(J);
6274
6274
  }, z = (J) => {
6275
- J.pointerType !== "keyboard" && (T(J), !g && P && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(o))) && P()), a == null || a(J);
6275
+ J.pointerType !== "keyboard" && (T(J), !x && C && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(o))) && C()), a == null || a(J);
6276
6276
  }, { itemProps: j, isFocused: H } = ll({
6277
6277
  selectionManager: e.selectionManager,
6278
6278
  key: o,
@@ -6289,7 +6289,7 @@ function ja(t, e, n) {
6289
6289
  onPress: c,
6290
6290
  onPressUp: z,
6291
6291
  onPressChange: f,
6292
- onPressEnd: b,
6292
+ onPressEnd: p,
6293
6293
  isDisabled: R
6294
6294
  }), { hoverProps: L } = _o({
6295
6295
  isDisabled: R,
@@ -6306,17 +6306,17 @@ function ja(t, e, n) {
6306
6306
  }
6307
6307
  switch (J.key) {
6308
6308
  case " ":
6309
- !R && e.selectionManager.selectionMode === "none" && !g && i !== !1 && P && P();
6309
+ !R && e.selectionManager.selectionMode === "none" && !x && i !== !1 && C && C();
6310
6310
  break;
6311
6311
  case "Enter":
6312
- !R && i !== !1 && !g && P && P();
6312
+ !R && i !== !1 && !x && C && C();
6313
6313
  break;
6314
6314
  default:
6315
- g || J.continuePropagation(), h == null || h(J);
6315
+ x || J.continuePropagation(), h == null || h(J);
6316
6316
  break;
6317
6317
  }
6318
6318
  },
6319
- onKeyUp: _
6319
+ onKeyUp: A
6320
6320
  }), { focusProps: X } = Un({
6321
6321
  onBlur: K,
6322
6322
  onFocus: w,
@@ -6327,7 +6327,7 @@ function ja(t, e, n) {
6327
6327
  return delete G.id, {
6328
6328
  menuItemProps: {
6329
6329
  ...ae,
6330
- ...se(G, g ? {
6330
+ ...se(G, x ? {
6331
6331
  onFocus: j.onFocus
6332
6332
  } : j, Y, L, N, X),
6333
6333
  tabIndex: j.tabIndex != null ? -1 : void 0
@@ -6342,7 +6342,7 @@ function ja(t, e, n) {
6342
6342
  id: ue
6343
6343
  },
6344
6344
  isFocused: H,
6345
- isSelected: A,
6345
+ isSelected: _,
6346
6346
  isPressed: U,
6347
6347
  isDisabled: R
6348
6348
  };
@@ -6371,9 +6371,9 @@ function Ua(t, e) {
6371
6371
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: o = !1, isReadOnly: i = !1, type: l = "text", validationBehavior: s = "aria" } = t, [u, a] = tt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Lo(t, e), f = On({
6372
6372
  ...t,
6373
6373
  value: u
6374
- }), { isInvalid: b, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: $, fieldProps: h, descriptionProps: _, errorMessageProps: w } = Oo({
6374
+ }), { isInvalid: p, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: $, fieldProps: h, descriptionProps: A, errorMessageProps: w } = Oo({
6375
6375
  ...t,
6376
- isInvalid: b,
6376
+ isInvalid: p,
6377
6377
  errorMessage: t.errorMessage || d
6378
6378
  }), S = ze(t, {
6379
6379
  labelable: !0
@@ -6384,9 +6384,9 @@ function Ua(t, e) {
6384
6384
  };
6385
6385
  return Eo(e, u, a), Io(t, f, e), W(() => {
6386
6386
  if (e.current instanceof at(e.current).HTMLTextAreaElement) {
6387
- let g = e.current;
6388
- Object.defineProperty(g, "defaultValue", {
6389
- get: () => g.value,
6387
+ let x = e.current;
6388
+ Object.defineProperty(x, "defaultValue", {
6389
+ get: () => x.value,
6390
6390
  set: () => {
6391
6391
  },
6392
6392
  configurable: !0
@@ -6401,13 +6401,13 @@ function Ua(t, e) {
6401
6401
  readOnly: i,
6402
6402
  required: o && s === "native",
6403
6403
  "aria-required": o && s === "aria" || void 0,
6404
- "aria-invalid": b || void 0,
6404
+ "aria-invalid": p || void 0,
6405
6405
  "aria-errormessage": t["aria-errormessage"],
6406
6406
  "aria-activedescendant": t["aria-activedescendant"],
6407
6407
  "aria-autocomplete": t["aria-autocomplete"],
6408
6408
  "aria-haspopup": t["aria-haspopup"],
6409
6409
  value: u,
6410
- onChange: (g) => a(g.target.value),
6410
+ onChange: (x) => a(x.target.value),
6411
6411
  autoComplete: t.autoComplete,
6412
6412
  autoCapitalize: t.autoCapitalize,
6413
6413
  maxLength: t.maxLength,
@@ -6431,9 +6431,9 @@ function Ua(t, e) {
6431
6431
  ...c,
6432
6432
  ...h
6433
6433
  }),
6434
- descriptionProps: _,
6434
+ descriptionProps: A,
6435
6435
  errorMessageProps: w,
6436
- isInvalid: b,
6436
+ isInvalid: p,
6437
6437
  validationErrors: d,
6438
6438
  validationDetails: v
6439
6439
  };
@@ -6479,12 +6479,12 @@ Ul = {
6479
6479
  "zh-TW": $i
6480
6480
  };
6481
6481
  function Ga(t, e) {
6482
- let { buttonRef: n, popoverRef: r, inputRef: o, listBoxRef: i, keyboardDelegate: l, shouldFocusWrap: s, isReadOnly: u, isDisabled: a } = t, c = Yn(/* @__PURE__ */ Wa(Ul), "@react-aria/combobox"), { menuTriggerProps: f, menuProps: b } = Jn({
6482
+ let { buttonRef: n, popoverRef: r, inputRef: o, listBoxRef: i, keyboardDelegate: l, shouldFocusWrap: s, isReadOnly: u, isDisabled: a } = t, c = Yn(/* @__PURE__ */ Wa(Ul), "@react-aria/combobox"), { menuTriggerProps: f, menuProps: p } = Jn({
6483
6483
  type: "listbox",
6484
6484
  isDisabled: a || u
6485
6485
  }, e, n);
6486
6486
  Jt.set(e, {
6487
- id: b.id
6487
+ id: p.id
6488
6488
  });
6489
6489
  let d = ne(() => l || new Zn(e.collection, e.disabledKeys, i), [
6490
6490
  l,
@@ -6527,33 +6527,33 @@ function Ga(t, e) {
6527
6527
  e.selectionManager.setFocusedKey(null);
6528
6528
  break;
6529
6529
  }
6530
- }, _ = (L) => {
6530
+ }, A = (L) => {
6531
6531
  var N;
6532
6532
  L.relatedTarget === (n == null ? void 0 : n.current) || !((N = r.current) === null || N === void 0) && N.contains(L.relatedTarget) || (t.onBlur && t.onBlur(L), e.setFocused(!1));
6533
6533
  }, w = (L) => {
6534
6534
  e.isFocused || (t.onFocus && t.onFocus(L), e.setFocused(!0));
6535
- }, { isInvalid: S, validationErrors: K, validationDetails: g } = e.displayValidation, { labelProps: k, inputProps: R, descriptionProps: p, errorMessageProps: A } = Ua({
6535
+ }, { isInvalid: S, validationErrors: K, validationDetails: x } = e.displayValidation, { labelProps: M, inputProps: R, descriptionProps: b, errorMessageProps: _ } = Ua({
6536
6536
  ...t,
6537
6537
  onChange: e.setInputValue,
6538
6538
  onKeyDown: u ? t.onKeyDown : Qe(e.isOpen && v.onKeyDown, h, t.onKeyDown),
6539
- onBlur: _,
6539
+ onBlur: A,
6540
6540
  value: e.inputValue,
6541
6541
  onFocus: w,
6542
6542
  autoComplete: "off",
6543
6543
  validate: void 0,
6544
6544
  [En]: e
6545
- }, o), E = (L) => {
6545
+ }, o), P = (L) => {
6546
6546
  L.pointerType === "touch" && (o.current.focus(), e.toggle(null, "manual"));
6547
- }, P = (L) => {
6547
+ }, C = (L) => {
6548
6548
  L.pointerType !== "touch" && (o.current.focus(), e.toggle(L.pointerType === "keyboard" || L.pointerType === "virtual" ? "first" : null, "manual"));
6549
6549
  }, B = At({
6550
6550
  id: f.id,
6551
6551
  "aria-label": c.format("buttonLabel"),
6552
- "aria-labelledby": t["aria-labelledby"] || k.id
6553
- }), C = At({
6554
- id: b.id,
6552
+ "aria-labelledby": t["aria-labelledby"] || M.id
6553
+ }), E = At({
6554
+ id: p.id,
6555
6555
  "aria-label": c.format("listboxLabel"),
6556
- "aria-labelledby": t["aria-labelledby"] || k.id
6556
+ "aria-labelledby": t["aria-labelledby"] || M.id
6557
6557
  }), T = I(0), q = (L) => {
6558
6558
  if (a || u)
6559
6559
  return;
@@ -6614,19 +6614,19 @@ function Ga(t, e) {
6614
6614
  o,
6615
6615
  r
6616
6616
  ]), {
6617
- labelProps: k,
6617
+ labelProps: M,
6618
6618
  buttonProps: {
6619
6619
  ...f,
6620
6620
  ...B,
6621
6621
  excludeFromTabOrder: !0,
6622
- onPress: E,
6623
- onPressStart: P,
6622
+ onPress: P,
6623
+ onPressStart: C,
6624
6624
  isDisabled: a || u
6625
6625
  },
6626
6626
  inputProps: se(R, {
6627
6627
  role: "combobox",
6628
6628
  "aria-expanded": f["aria-expanded"],
6629
- "aria-controls": e.isOpen ? b.id : void 0,
6629
+ "aria-controls": e.isOpen ? p.id : void 0,
6630
6630
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
6631
6631
  "aria-autocomplete": "list",
6632
6632
  "aria-activedescendant": V ? ul(e, V.key) : void 0,
@@ -6636,18 +6636,18 @@ function Ga(t, e) {
6636
6636
  // This disable's the macOS Safari spell check auto corrections.
6637
6637
  spellCheck: "false"
6638
6638
  }),
6639
- listBoxProps: se(b, C, {
6639
+ listBoxProps: se(p, E, {
6640
6640
  autoFocus: e.focusStrategy,
6641
6641
  shouldUseVirtualFocus: !0,
6642
6642
  shouldSelectOnPressUp: !0,
6643
6643
  shouldFocusOnHover: !0,
6644
6644
  linkBehavior: "selection"
6645
6645
  }),
6646
- descriptionProps: p,
6647
- errorMessageProps: A,
6646
+ descriptionProps: b,
6647
+ errorMessageProps: _,
6648
6648
  isInvalid: S,
6649
6649
  validationErrors: K,
6650
- validationDetails: g
6650
+ validationDetails: x
6651
6651
  };
6652
6652
  }
6653
6653
  const Wl = /* @__PURE__ */ new WeakMap();
@@ -6663,37 +6663,37 @@ function qa(t, e, n) {
6663
6663
  ]), { menuTriggerProps: c, menuProps: f } = Jn({
6664
6664
  isDisabled: o,
6665
6665
  type: "listbox"
6666
- }, e, n), b = (p) => {
6667
- switch (p.key) {
6666
+ }, e, n), p = (b) => {
6667
+ switch (b.key) {
6668
6668
  case "ArrowLeft": {
6669
- p.preventDefault();
6670
- let A = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6671
- A && e.setSelectedKey(A);
6669
+ b.preventDefault();
6670
+ let _ = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6671
+ _ && e.setSelectedKey(_);
6672
6672
  break;
6673
6673
  }
6674
6674
  case "ArrowRight": {
6675
- p.preventDefault();
6676
- let A = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6677
- A && e.setSelectedKey(A);
6675
+ b.preventDefault();
6676
+ let _ = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6677
+ _ && e.setSelectedKey(_);
6678
6678
  break;
6679
6679
  }
6680
6680
  }
6681
6681
  }, { typeSelectProps: d } = ol({
6682
6682
  keyboardDelegate: a,
6683
6683
  selectionManager: e.selectionManager,
6684
- onTypeSelect(p) {
6685
- e.setSelectedKey(p);
6684
+ onTypeSelect(b) {
6685
+ e.setSelectedKey(b);
6686
6686
  }
6687
- }), { isInvalid: v, validationErrors: $, validationDetails: h } = e.displayValidation, { labelProps: _, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6687
+ }), { isInvalid: v, validationErrors: $, validationDetails: h } = e.displayValidation, { labelProps: A, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6688
6688
  ...t,
6689
6689
  labelElementType: "span",
6690
6690
  isInvalid: v,
6691
6691
  errorMessage: t.errorMessage || $
6692
6692
  });
6693
6693
  d.onKeyDown = d.onKeyDownCapture, delete d.onKeyDownCapture;
6694
- let g = ze(t, {
6694
+ let x = ze(t, {
6695
6695
  labelable: !0
6696
- }), k = se(d, c, w), R = Ae();
6696
+ }), M = se(d, c, w), R = Ae();
6697
6697
  return Wl.set(e, {
6698
6698
  isDisabled: o,
6699
6699
  isRequired: i,
@@ -6701,26 +6701,26 @@ function qa(t, e, n) {
6701
6701
  validationBehavior: s
6702
6702
  }), {
6703
6703
  labelProps: {
6704
- ..._,
6704
+ ...A,
6705
6705
  onClick: () => {
6706
6706
  t.isDisabled || (n.current.focus(), To("keyboard"));
6707
6707
  }
6708
6708
  },
6709
- triggerProps: se(g, {
6710
- ...k,
6709
+ triggerProps: se(x, {
6710
+ ...M,
6711
6711
  isDisabled: o,
6712
- onKeyDown: Qe(k.onKeyDown, b, t.onKeyDown),
6712
+ onKeyDown: Qe(M.onKeyDown, p, t.onKeyDown),
6713
6713
  onKeyUp: t.onKeyUp,
6714
6714
  "aria-labelledby": [
6715
6715
  R,
6716
- k["aria-labelledby"],
6717
- k["aria-label"] && !k["aria-labelledby"] ? k.id : null
6716
+ M["aria-labelledby"],
6717
+ M["aria-label"] && !M["aria-labelledby"] ? M.id : null
6718
6718
  ].filter(Boolean).join(" "),
6719
- onFocus(p) {
6720
- e.isFocused || (t.onFocus && t.onFocus(p), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
6719
+ onFocus(b) {
6720
+ e.isFocused || (t.onFocus && t.onFocus(b), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
6721
6721
  },
6722
- onBlur(p) {
6723
- e.isOpen || (t.onBlur && t.onBlur(p), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
6722
+ onBlur(b) {
6723
+ e.isOpen || (t.onBlur && t.onBlur(b), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
6724
6724
  }
6725
6725
  }),
6726
6726
  valueProps: {
@@ -6733,12 +6733,12 @@ function qa(t, e, n) {
6733
6733
  shouldFocusOnHover: !0,
6734
6734
  disallowEmptySelection: !0,
6735
6735
  linkBehavior: "selection",
6736
- onBlur: (p) => {
6737
- p.currentTarget.contains(p.relatedTarget) || (t.onBlur && t.onBlur(p), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
6736
+ onBlur: (b) => {
6737
+ b.currentTarget.contains(b.relatedTarget) || (t.onBlur && t.onBlur(b), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
6738
6738
  },
6739
6739
  "aria-labelledby": [
6740
6740
  w["aria-labelledby"],
6741
- k["aria-label"] && !w["aria-labelledby"] ? k.id : null
6741
+ M["aria-label"] && !w["aria-labelledby"] ? M.id : null
6742
6742
  ].filter(Boolean).join(" ")
6743
6743
  },
6744
6744
  descriptionProps: S,
@@ -6777,7 +6777,7 @@ function Ya(t, e, n) {
6777
6777
  required: s === "native" && u,
6778
6778
  name: i,
6779
6779
  value: (f = e.selectedKey) !== null && f !== void 0 ? f : "",
6780
- onChange: (b) => e.setSelectedKey(b.target.value)
6780
+ onChange: (p) => e.setSelectedKey(p.target.value)
6781
6781
  }
6782
6782
  };
6783
6783
  }
@@ -6796,12 +6796,12 @@ function Xa(t) {
6796
6796
  }, /* @__PURE__ */ Q.createElement("option", null), [
6797
6797
  ...e.collection.getKeys()
6798
6798
  ].map((f) => {
6799
- let b = e.collection.getItem(f);
6800
- if (b.type === "item")
6799
+ let p = e.collection.getItem(f);
6800
+ if (p.type === "item")
6801
6801
  return /* @__PURE__ */ Q.createElement("option", {
6802
- key: b.key,
6803
- value: b.key
6804
- }, b.textValue);
6802
+ key: p.key,
6803
+ value: p.key
6804
+ }, p.textValue);
6805
6805
  })))) : o ? /* @__PURE__ */ Q.createElement("input", {
6806
6806
  type: "hidden",
6807
6807
  autoComplete: a.autoComplete,
@@ -6865,36 +6865,52 @@ const Za = "_focused_1af8e_1", Ja = "_listbox_1af8e_10", Qa = "_content_1af8e_89
6865
6865
  "listbox--info": "_listbox--info_1af8e_453",
6866
6866
  "listbox-item--error": "_listbox-item--error_1af8e_461",
6867
6867
  "listbox--error": "_listbox--error_1af8e_469"
6868
- }, Gl = Rt({}), cd = ({
6868
+ }, Gl = Rt({}), dd = ({
6869
6869
  children: t,
6870
6870
  routerComponent: e,
6871
6871
  extendRequiredFieldsLabelsWith: n = /* @__PURE__ */ m("span", { style: { color: "var(--text-default-error)" }, children: " *" }),
6872
- extendOptionalFieldsLabelsWith: r = " (optionel)",
6872
+ extendOptionalFieldsLabelsWith: r = " (optionnel)",
6873
6873
  defaultLang: o = "fr",
6874
6874
  verbose: i = !1
6875
6875
  }) => {
6876
- const [l, s] = Z(window.localStorage.getItem("locale") || o), [u, a] = Z(!1);
6876
+ const [l, s] = Z(
6877
+ window.localStorage.getItem("locale") || o
6878
+ ), [u, a] = Z(!1);
6877
6879
  W(() => {
6878
- const b = async () => {
6880
+ const p = async () => {
6879
6881
  var h;
6880
6882
  (h = window == null ? void 0 : window.dsfr) != null && h.isStarted || (window.dsfr = {
6881
6883
  verbose: i,
6882
6884
  mode: "manual"
6883
6885
  }, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), window.dsfr.start(), a(!0));
6884
- }, d = window.matchMedia("(prefers-color-scheme: dark)"), v = d != null && d.matches ? "dark" : "light", $ = window.localStorage.getItem("theme");
6885
- document.documentElement.setAttribute("data-fr-scheme", $ || v), b();
6886
+ }, d = window.matchMedia(
6887
+ "(prefers-color-scheme: dark)"
6888
+ ), v = d != null && d.matches ? "dark" : "light", $ = window.localStorage.getItem("theme");
6889
+ document.documentElement.setAttribute(
6890
+ "data-fr-scheme",
6891
+ $ || v
6892
+ ), p();
6886
6893
  }, []);
6887
- const c = te((b) => {
6888
- window.localStorage.setItem("locale", b), document.documentElement.setAttribute("lang", b), s(b);
6889
- }, []), f = ne(() => ({
6890
- setLocale: c,
6891
- routerComponent: e,
6892
- locale: l,
6893
- extendRequiredFieldsLabelsWith: n,
6894
- extendOptionalFieldsLabelsWith: r
6895
- }), [e, c, l, n, r]);
6894
+ const c = te((p) => {
6895
+ window.localStorage.setItem("locale", p), document.documentElement.setAttribute("lang", p), s(p);
6896
+ }, []), f = ne(
6897
+ () => ({
6898
+ setLocale: c,
6899
+ routerComponent: e,
6900
+ locale: l,
6901
+ extendRequiredFieldsLabelsWith: n,
6902
+ extendOptionalFieldsLabelsWith: r
6903
+ }),
6904
+ [
6905
+ e,
6906
+ c,
6907
+ l,
6908
+ n,
6909
+ r
6910
+ ]
6911
+ );
6896
6912
  return /* @__PURE__ */ m(Gl.Provider, { value: f, children: u ? t : null });
6897
- }, bt = () => Se(Gl), he = me(({
6913
+ }, bt = () => Se(Gl), he = be(({
6898
6914
  children: t,
6899
6915
  className: e,
6900
6916
  icon: n,
@@ -6910,7 +6926,7 @@ const Za = "_focused_1af8e_1", Ja = "_listbox_1af8e_10", Qa = "_content_1af8e_89
6910
6926
  {
6911
6927
  ref: u,
6912
6928
  "aria-current": r || void 0,
6913
- className: x({
6929
+ className: g({
6914
6930
  "fr-link": i,
6915
6931
  [`fr-link-${l}`]: l !== "md",
6916
6932
  [`fr-icon-${n}`]: !!n,
@@ -6922,19 +6938,19 @@ const Za = "_focused_1af8e_1", Ja = "_listbox_1af8e_10", Qa = "_content_1af8e_89
6922
6938
  );
6923
6939
  });
6924
6940
  function ql({ item: t, state: e }) {
6925
- const n = I(null), { optionProps: r, descriptionProps: o, labelProps: i, isFocused: l, isFocusVisible: s } = Oa({ key: t.key }, e, n), { description: u, startContent: a, endContent: c, color: f, showDivider: b, href: d, className: v } = t.props || {};
6941
+ const n = I(null), { optionProps: r, descriptionProps: o, labelProps: i, isFocused: l, isFocusVisible: s } = Oa({ key: t.key }, e, n), { description: u, startContent: a, endContent: c, color: f, showDivider: p, href: d, className: v } = t.props || {};
6926
6942
  return /* @__PURE__ */ O(
6927
6943
  d ? he : "li",
6928
6944
  {
6929
6945
  ...r,
6930
6946
  ref: n,
6931
6947
  href: d,
6932
- className: x(
6948
+ className: g(
6933
6949
  Ce["listbox-item"],
6934
6950
  v,
6935
6951
  {
6936
6952
  [Ce[`listbox-item--${f}`]]: f,
6937
- [Ce.divider]: b,
6953
+ [Ce.divider]: p,
6938
6954
  "fr-enlarge-link": d,
6939
6955
  [Ce.focused]: l && s
6940
6956
  }
@@ -6959,7 +6975,7 @@ function rc({ section: t, state: e }) {
6959
6975
  "li",
6960
6976
  {
6961
6977
  ...n,
6962
- className: x(
6978
+ className: g(
6963
6979
  Ce["listbox-section"],
6964
6980
  l,
6965
6981
  s.base,
@@ -6970,14 +6986,14 @@ function rc({ section: t, state: e }) {
6970
6986
  "span",
6971
6987
  {
6972
6988
  ...r,
6973
- className: x(
6989
+ className: g(
6974
6990
  "fr-text-mention--grey fr-text--sm fr-my-1w fr-px-1w",
6975
6991
  s.title
6976
6992
  ),
6977
6993
  children: t.rendered
6978
6994
  }
6979
6995
  ),
6980
- /* @__PURE__ */ m(u, { ...o, className: x(Ce["listbox-section-list"], s.list), children: [...t.childNodes].map((a) => /* @__PURE__ */ m(
6996
+ /* @__PURE__ */ m(u, { ...o, className: g(Ce["listbox-section-list"], s.list), children: [...t.childNodes].map((a) => /* @__PURE__ */ m(
6981
6997
  ql,
6982
6998
  {
6983
6999
  item: a,
@@ -6991,20 +7007,20 @@ function rc({ section: t, state: e }) {
6991
7007
  }
6992
7008
  function Qn(t) {
6993
7009
  var v, $;
6994
- const e = I(null), { listBoxRef: n = e, state: r, className: o, css: i = {}, color: l, topContent: s, bottomContent: u, ...a } = t, { listBoxProps: c } = Ba(a, r, n), { isFocusVisible: f } = qn(), b = [...r.collection].find((h) => h.props.href) ? "div" : "ul", d = (($ = (v = t == null ? void 0 : t.triggerRef) == null ? void 0 : v.current) == null ? void 0 : $.offsetWidth) || 0;
6995
- return /* @__PURE__ */ O("div", { className: x(Ce.listbox, o, i.base), style: { minWidth: d || "auto", maxWidth: d > 150 ? d : "auto" }, children: [
6996
- /* @__PURE__ */ m("span", { className: x(Ce["listbox-top"], i.top), children: s && s }),
7010
+ const e = I(null), { listBoxRef: n = e, state: r, className: o, css: i = {}, color: l, topContent: s, bottomContent: u, ...a } = t, { listBoxProps: c } = Ba(a, r, n), { isFocusVisible: f } = qn(), p = [...r.collection].find((h) => h.props.href) ? "div" : "ul", d = (($ = (v = t == null ? void 0 : t.triggerRef) == null ? void 0 : v.current) == null ? void 0 : $.offsetWidth) || 0;
7011
+ return /* @__PURE__ */ O("div", { className: g(Ce.listbox, o, i.base), style: { minWidth: d || "auto", maxWidth: d > 150 ? d : "auto" }, children: [
7012
+ /* @__PURE__ */ m("span", { className: g(Ce["listbox-top"], i.top), children: s && s }),
6997
7013
  /* @__PURE__ */ m(
6998
- b,
7014
+ p,
6999
7015
  {
7000
- className: x(Ce["listbox-content"], i.list, { [Ce[`listbox--${l}`]]: l }),
7016
+ className: g(Ce["listbox-content"], i.list, { [Ce[`listbox--${l}`]]: l }),
7001
7017
  ref: n,
7002
7018
  "data-focus-visible": f,
7003
7019
  ...c,
7004
7020
  children: [...r.collection].map((h) => h.type === "section" ? /* @__PURE__ */ ir(rc, { ...h.props, key: h.key, section: h, state: r }) : /* @__PURE__ */ ir(ql, { ...h.props, key: h.key, item: h, state: r }))
7005
7021
  }
7006
7022
  ),
7007
- /* @__PURE__ */ m("span", { className: x(Ce["listbox-bottom"], i.bottom), children: u && u })
7023
+ /* @__PURE__ */ m("span", { className: g(Ce["listbox-bottom"], i.bottom), children: u && u })
7008
7024
  ] });
7009
7025
  }
7010
7026
  const oc = "_popover_1g6m6_1", ic = {
@@ -7049,9 +7065,9 @@ function ac(t) {
7049
7065
  ...t,
7050
7066
  defaultFilter: e,
7051
7067
  allowsCustomValue: !0
7052
- }), r = vt.useRef(null), o = vt.useRef(null), i = vt.useRef(null), l = vt.useRef(null), { size: s = "md", color: u, onSubmit: a, topContent: c, bottomContent: f, ...b } = t, { inputProps: d, listBoxProps: v } = Ga(
7068
+ }), r = vt.useRef(null), o = vt.useRef(null), i = vt.useRef(null), l = vt.useRef(null), { size: s = "md", color: u, onSubmit: a, topContent: c, bottomContent: f, ...p } = t, { inputProps: d, listBoxProps: v } = Ga(
7053
7069
  {
7054
- ...b,
7070
+ ...p,
7055
7071
  inputRef: r,
7056
7072
  listBoxRef: o,
7057
7073
  popoverRef: i,
@@ -7062,7 +7078,7 @@ function ac(t) {
7062
7078
  },
7063
7079
  n
7064
7080
  );
7065
- return /* @__PURE__ */ O("form", { onSubmit: () => a == null ? void 0 : a((t == null ? void 0 : t.inputValue) || ""), ref: l, className: x("fr-search-bar", { "fr-search-bar--lg": s === "lg" }), role: "search", children: [
7081
+ return /* @__PURE__ */ O("form", { onSubmit: () => a == null ? void 0 : a((t == null ? void 0 : t.inputValue) || ""), ref: l, className: g("fr-search-bar", { "fr-search-bar--lg": s === "lg" }), role: "search", children: [
7066
7082
  /* @__PURE__ */ m(
7067
7083
  "input",
7068
7084
  {
@@ -7072,7 +7088,7 @@ function ac(t) {
7072
7088
  className: "fr-input"
7073
7089
  }
7074
7090
  ),
7075
- /* @__PURE__ */ O("button", { type: "submit", style: { position: "relative" }, className: x("fr-btn", { "fr-btn--lg": s === "lg" }), children: [
7091
+ /* @__PURE__ */ O("button", { type: "submit", style: { position: "relative" }, className: g("fr-btn", { "fr-btn--lg": s === "lg" }), children: [
7076
7092
  /* @__PURE__ */ m("div", { style: { position: "absolute", left: "-40px" }, children: t.loadingState === "loading" && /* @__PURE__ */ m(uc, {}) }),
7077
7093
  "Rechercher"
7078
7094
  ] }),
@@ -7100,10 +7116,10 @@ function ac(t) {
7100
7116
  )
7101
7117
  ] });
7102
7118
  }
7103
- const dd = Vt;
7104
- const cc = me, dc = cc(
7119
+ const fd = Vt;
7120
+ const cc = be, dc = cc(
7105
7121
  ({ as: t, className: e, noIcon: n, color: r = "blue-france", size: o, icon: i, variant: l = "primary", ...s }, u) => {
7106
- const a = t === "a" ? he : t || "p", c = x(
7122
+ const a = t === "a" ? he : t || "p", c = g(
7107
7123
  "fr-badge",
7108
7124
  {
7109
7125
  [`fr-badge--${l}`]: l,
@@ -7119,14 +7135,14 @@ const cc = me, dc = cc(
7119
7135
  );
7120
7136
  return /* @__PURE__ */ m(a, { className: c, ref: u, ...s });
7121
7137
  }
7122
- ), fd = ({
7138
+ ), pd = ({
7123
7139
  children: t,
7124
7140
  className: e,
7125
7141
  ...n
7126
7142
  }) => {
7127
- const r = ie(), o = x("fr-badges-group", e);
7128
- return /* @__PURE__ */ m("ul", { className: o, ...n, children: fe(t, dc).map((i, l) => /* @__PURE__ */ m("li", { children: i }, `${r}-${l}`)) });
7129
- }, pd = ({
7143
+ const r = ie(), o = g("fr-badges-group", e);
7144
+ return /* @__PURE__ */ m("ul", { className: o, ...n, children: de(t, dc).map((i, l) => /* @__PURE__ */ m("li", { children: i }, `${r}-${l}`)) });
7145
+ }, bd = ({
7130
7146
  buttonLabel: t = "Voir le fil d’Ariane",
7131
7147
  children: e,
7132
7148
  className: n,
@@ -7134,17 +7150,17 @@ const cc = me, dc = cc(
7134
7150
  ...o
7135
7151
  }) => {
7136
7152
  const i = ie();
7137
- return /* @__PURE__ */ O("nav", { role: "navigation", "aria-label": o["aria-label"] || "vous êtes ici:", className: x("fr-breadcrumb", n), ...o, children: [
7138
- /* @__PURE__ */ m("button", { className: x("fr-breadcrumb__button", r.button), "aria-expanded": "false", "aria-controls": "breadcrumb-1", children: t || "Voir le fil d’Ariane" }),
7139
- /* @__PURE__ */ m("div", { className: "fr-collapse", id: "breadcrumb-1", children: /* @__PURE__ */ m("ol", { className: x("fr-breadcrumb__list", r.list), children: fe(e, he).filter((l) => $e(l)).map((l, s, { length: u }) => /* @__PURE__ */ m("li", { className: x(r.item), children: _e(l, {
7140
- className: x("fr-breadcrumb__link"),
7153
+ return /* @__PURE__ */ O("nav", { role: "navigation", "aria-label": o["aria-label"] || "vous êtes ici:", className: g("fr-breadcrumb", n), ...o, children: [
7154
+ /* @__PURE__ */ m("button", { className: g("fr-breadcrumb__button", r.button), "aria-expanded": "false", "aria-controls": "breadcrumb-1", children: t || "Voir le fil d’Ariane" }),
7155
+ /* @__PURE__ */ m("div", { className: "fr-collapse", id: "breadcrumb-1", children: /* @__PURE__ */ m("ol", { className: g("fr-breadcrumb__list", r.list), children: de(e, he).filter((l) => $e(l)).map((l, s, { length: u }) => /* @__PURE__ */ m("li", { className: g(r.item), children: _e(l, {
7156
+ className: g("fr-breadcrumb__link"),
7141
7157
  "aria-current": s + 1 === u ? "page" : void 0
7142
7158
  }) }, `${i}-${s}`)) }) })
7143
7159
  ] });
7144
7160
  };
7145
- const fc = me, ut = fc(
7161
+ const fc = be, ut = fc(
7146
7162
  ({ as: t, className: e, color: n = "blue-france", icon: r, iconPosition: o = "left", size: i = "md", variant: l = "primary", children: s, ...u }, a) => {
7147
- const c = t === "a" ? he : t || "button", f = x(
7163
+ const c = t === "a" ? he : t || "button", f = g(
7148
7164
  "fr-btn",
7149
7165
  {
7150
7166
  [`fr-btn--${i}`]: i !== "md",
@@ -7160,7 +7176,7 @@ const fc = me, ut = fc(
7160
7176
  );
7161
7177
  return /* @__PURE__ */ m(c, { className: f, ref: a, ...u, children: s });
7162
7178
  }
7163
- ), bd = ({
7179
+ ), md = ({
7164
7180
  align: t = "left",
7165
7181
  children: e,
7166
7182
  className: n,
@@ -7171,7 +7187,7 @@ const fc = me, ut = fc(
7171
7187
  ...s
7172
7188
  }) => {
7173
7189
  var d;
7174
- const u = ie(), a = (v, $) => v || $e($) && $.props.icon && $.props.children, c = fe(e, ut).reduce(a, !1), f = (d = fe(e, ut).map((v) => $e(v) && v.props.iconPosition)) == null ? void 0 : d[0], b = x("fr-btns-group", {
7190
+ const u = ie(), a = (v, $) => v || $e($) && $.props.icon && $.props.children, c = de(e, ut).reduce(a, !1), f = (d = de(e, ut).map((v) => $e(v) && v.props.iconPosition)) == null ? void 0 : d[0], p = g("fr-btns-group", {
7175
7191
  [`fr-btns-group--${l}`]: l !== "md",
7176
7192
  [`fr-btns-group--${t}`]: t !== "left",
7177
7193
  [`fr-btns-group--icon-${f}`]: c,
@@ -7180,8 +7196,8 @@ const fc = me, ut = fc(
7180
7196
  "fr-btns-group--inline-reverse": i,
7181
7197
  "fr-btns-group--equisized": r
7182
7198
  }, n);
7183
- return /* @__PURE__ */ m("ul", { className: b, ...s, children: fe(e, ut).map((v, $) => /* @__PURE__ */ m("li", { children: v }, `${u}-${$}`)) });
7184
- }, md = me(({
7199
+ return /* @__PURE__ */ m("ul", { className: p, ...s, children: de(e, ut).map((v, $) => /* @__PURE__ */ m("li", { children: v }, `${u}-${$}`)) });
7200
+ }, vd = be(({
7185
7201
  className: t,
7186
7202
  css: e = {},
7187
7203
  hint: n,
@@ -7191,20 +7207,20 @@ const fc = me, ut = fc(
7191
7207
  ...l
7192
7208
  }, s) => {
7193
7209
  const u = ie(), a = r || u;
7194
- return /* @__PURE__ */ O("div", { className: x("fr-checkbox-group", { "fr-checkbox-group--sm": i === "sm" }, t), children: [
7210
+ return /* @__PURE__ */ O("div", { className: g("fr-checkbox-group", { "fr-checkbox-group--sm": i === "sm" }, t), children: [
7195
7211
  /* @__PURE__ */ m(
7196
7212
  "input",
7197
7213
  {
7198
7214
  ref: s,
7199
7215
  type: "checkbox",
7200
7216
  id: a,
7201
- className: x(e.input),
7217
+ className: g(e.input),
7202
7218
  ...l
7203
7219
  }
7204
7220
  ),
7205
- /* @__PURE__ */ O("label", { className: x("fr-label", e.label), htmlFor: a, children: [
7221
+ /* @__PURE__ */ O("label", { className: g("fr-label", e.label), htmlFor: a, children: [
7206
7222
  o,
7207
- n && /* @__PURE__ */ m("span", { className: x("fr-hint-text", e.labelHint), children: n })
7223
+ n && /* @__PURE__ */ m("span", { className: g("fr-hint-text", e.labelHint), children: n })
7208
7224
  ] })
7209
7225
  ] });
7210
7226
  }), jr = ["__TYPE"];
@@ -7215,7 +7231,7 @@ function je(t, e = {}) {
7215
7231
  const o = r ? [...jr, ...r] : jr;
7216
7232
  return Object.entries(t).reduce((i, [l, s]) => o.includes(l) ? i : { ...i, [l]: s }, {});
7217
7233
  }
7218
- const vd = me(({
7234
+ const hd = be(({
7219
7235
  children: t,
7220
7236
  className: e,
7221
7237
  css: n = {},
@@ -7227,26 +7243,26 @@ const vd = me(({
7227
7243
  required: u,
7228
7244
  ...a
7229
7245
  }, c) => {
7230
- const f = ie(), { extendRequiredFieldsLabelsWith: b, extendOptionalFieldsLabelsWith: d } = bt();
7246
+ const f = ie(), { extendRequiredFieldsLabelsWith: p, extendOptionalFieldsLabelsWith: d } = bt();
7231
7247
  return /* @__PURE__ */ O(
7232
7248
  "fieldset",
7233
7249
  {
7234
7250
  ref: c,
7235
- className: x("fr-fieldset", { [`fr-fieldset--${s}`]: s }, e),
7251
+ className: g("fr-fieldset", { [`fr-fieldset--${s}`]: s }, e),
7236
7252
  ...je(a),
7237
7253
  "aria-labelledby": l && s ? `${f}-message` : void 0,
7238
7254
  children: [
7239
- i && /* @__PURE__ */ O("legend", { className: x("fr-fieldset__legend fr-text--regular", n.legend), children: [
7255
+ i && /* @__PURE__ */ O("legend", { className: g("fr-fieldset__legend fr-text--regular", n.legend), children: [
7240
7256
  i,
7241
- u ? b : d,
7242
- r && /* @__PURE__ */ m("span", { className: x("fr-hint-text", n.legendHint), children: r })
7257
+ u ? p : d,
7258
+ r && /* @__PURE__ */ m("span", { className: g("fr-hint-text", n.legendHint), children: r })
7243
7259
  ] }),
7244
- Ot.toArray(t).map((v, $) => /* @__PURE__ */ m("div", { className: x("fr-fieldset__element", { "fr-fieldset__element--inline": o }, n.element), children: v }, `${f}-${$}`)),
7245
- l && s && /* @__PURE__ */ m("div", { id: `${f}-message`, className: x("fr-messages-group", n.messageDiv), children: /* @__PURE__ */ m("p", { className: x(`fr-message fr-message--${s}`, n.messageP), children: l }) })
7260
+ Ot.toArray(t).map((v, $) => /* @__PURE__ */ m("div", { className: g("fr-fieldset__element", { "fr-fieldset__element--inline": o }, n.element), children: v }, `${f}-${$}`)),
7261
+ l && s && /* @__PURE__ */ m("div", { id: `${f}-message`, className: g("fr-messages-group", n.messageDiv), children: /* @__PURE__ */ m("p", { className: g(`fr-message fr-message--${s}`, n.messageP), children: l }) })
7246
7262
  ]
7247
7263
  }
7248
7264
  );
7249
- }), hd = me(({
7265
+ }), gd = be(({
7250
7266
  id: t,
7251
7267
  className: e,
7252
7268
  css: n = {},
@@ -7256,8 +7272,8 @@ const vd = me(({
7256
7272
  ...l
7257
7273
  }, s) => {
7258
7274
  const u = ie(), a = t || u, { extendOptionalFieldsLabelsWith: c, extendRequiredFieldsLabelsWith: f } = bt();
7259
- return /* @__PURE__ */ O("div", { className: x("fr-upload-group", { "fr-input-group--error": r, "fr-input-group--disabled": l.disabled }, e), children: [
7260
- /* @__PURE__ */ O("label", { className: x("fr-label", n.label), htmlFor: a, children: [
7275
+ return /* @__PURE__ */ O("div", { className: g("fr-upload-group", { "fr-input-group--error": r, "fr-input-group--disabled": l.disabled }, e), children: [
7276
+ /* @__PURE__ */ O("label", { className: g("fr-label", n.label), htmlFor: a, children: [
7261
7277
  i,
7262
7278
  l.required ? f : c,
7263
7279
  o && /* @__PURE__ */ m("span", { className: "fr-hint-text", children: o })
@@ -7267,22 +7283,22 @@ const vd = me(({
7267
7283
  {
7268
7284
  ref: s,
7269
7285
  id: a,
7270
- className: x("fr-upload", n.input),
7286
+ className: g("fr-upload", n.input),
7271
7287
  type: "file",
7272
7288
  "aria-describedby": r ? `${a}-message` : void 0,
7273
7289
  ...l
7274
7290
  }
7275
7291
  ),
7276
- r && /* @__PURE__ */ m("p", { id: `${a}-message`, className: x("fr-error-text", n.errorParagraph), children: r })
7292
+ r && /* @__PURE__ */ m("p", { id: `${a}-message`, className: g("fr-error-text", n.errorParagraph), children: r })
7277
7293
  ] });
7278
- }), pc = me, bc = pc(({
7294
+ }), pc = be, bc = pc(({
7279
7295
  as: t = "div",
7280
7296
  className: e,
7281
7297
  fluid: n = !1,
7282
7298
  fluidFrom: r = "xs",
7283
7299
  ...o
7284
7300
  }, i) => {
7285
- const l = x({
7301
+ const l = g({
7286
7302
  "fr-container": !n,
7287
7303
  "fr-container-fluid": n || r === "xs",
7288
7304
  [`fr-container-${r}--fluid`]: !n && r !== "xs"
@@ -7302,13 +7318,13 @@ const vd = me(({
7302
7318
  className: r,
7303
7319
  ...o
7304
7320
  }) => {
7305
- const i = x("fr-grid-row", {
7321
+ const i = g("fr-grid-row", {
7306
7322
  "fr-grid-row--gutters": t,
7307
7323
  [`fr-grid-row--${e}`]: e,
7308
7324
  [`fr-grid-row--${n}`]: n
7309
7325
  }, r);
7310
7326
  return /* @__PURE__ */ m("div", { className: i, ...o });
7311
- }, gd = ({
7327
+ }, $d = ({
7312
7328
  xs: t,
7313
7329
  sm: e,
7314
7330
  md: n,
@@ -7322,7 +7338,7 @@ const vd = me(({
7322
7338
  className: c,
7323
7339
  ...f
7324
7340
  }) => {
7325
- const b = x("fr-col", {
7341
+ const p = g("fr-col", {
7326
7342
  [`fr-col-${t}`]: t,
7327
7343
  [`fr-col-sm-${e}`]: e,
7328
7344
  [`fr-col-md-${n}`]: n,
@@ -7334,17 +7350,17 @@ const vd = me(({
7334
7350
  [`fr-col-offset-lg-${u}`]: u,
7335
7351
  [`fr-col-offset-xl-${a}`]: a
7336
7352
  }, c);
7337
- return /* @__PURE__ */ m("div", { className: b, ...f });
7338
- }, mc = ({ href: t = "/", name: e, tagline: n, className: r, css: o = {}, ...i }) => /* @__PURE__ */ O("div", { className: x("fr-header__service", r), children: [
7339
- /* @__PURE__ */ m("p", { className: x("fr-header__service-title", o["fr-header__service-title"]), children: /* @__PURE__ */ m(he, { href: t, ...i, children: e }) }),
7340
- n && /* @__PURE__ */ m("p", { className: x("fr-header__service-tagline", o["fr-header__service-tagline"]), children: n })
7353
+ return /* @__PURE__ */ m("div", { className: p, ...f });
7354
+ }, mc = ({ href: t = "/", name: e, tagline: n, className: r, css: o = {}, ...i }) => /* @__PURE__ */ O("div", { className: g("fr-header__service", r), children: [
7355
+ /* @__PURE__ */ m("p", { className: g("fr-header__service-title", o["fr-header__service-title"]), children: /* @__PURE__ */ m(he, { href: t, ...i, children: e }) }),
7356
+ n && /* @__PURE__ */ m("p", { className: g("fr-header__service-tagline", o["fr-header__service-tagline"]), children: n })
7341
7357
  ] }), vc = ({ children: t, className: e, css: n = {}, ...r }) => {
7342
7358
  const o = ie(), i = r.id || o;
7343
- return /* @__PURE__ */ O("div", { className: x("fr-header__tools-links", e), ...r, children: [
7344
- /* @__PURE__ */ m("ul", { className: x("fr-btns-group", n["fr-btns-group"]), children: fe(t, ut).map((l, s) => /* @__PURE__ */ m("li", { children: l }, `${i}-${s}`)) }),
7359
+ return /* @__PURE__ */ O("div", { className: g("fr-header__tools-links", e), ...r, children: [
7360
+ /* @__PURE__ */ m("ul", { className: g("fr-btns-group", n["fr-btns-group"]), children: de(t, ut).map((l, s) => /* @__PURE__ */ m("li", { children: l }, `${i}-${s}`)) }),
7345
7361
  ps(t, [ut])
7346
7362
  ] });
7347
- }, hc = ({ className: t, css: e = {}, ...n }) => /* @__PURE__ */ m("div", { className: x("fr-header__operator", t), children: /* @__PURE__ */ m("img", { className: x("fr-responsive-img", e["fr-responsive-img"]), ...n }) }), gc = me(({
7363
+ }, hc = ({ className: t, css: e = {}, ...n }) => /* @__PURE__ */ m("div", { className: g("fr-header__operator", t), children: /* @__PURE__ */ m("img", { className: g("fr-responsive-img", e["fr-responsive-img"]), ...n }) }), gc = be(({
7348
7364
  className: t,
7349
7365
  css: e = {},
7350
7366
  buttonLabel: n,
@@ -7354,7 +7370,7 @@ const vd = me(({
7354
7370
  placeholder: l,
7355
7371
  ...s
7356
7372
  }, u) => {
7357
- const a = I(null), c = ie(), f = s.id || c, b = (d) => {
7373
+ const a = I(null), c = ie(), f = s.id || c, p = (d) => {
7358
7374
  var v;
7359
7375
  return d.key === "Enter" && i((v = a.current) == null ? void 0 : v.value);
7360
7376
  };
@@ -7362,17 +7378,17 @@ const vd = me(({
7362
7378
  "div",
7363
7379
  {
7364
7380
  role: "search",
7365
- className: x("fr-search-bar", { "fr-search-bar--lg": r }, t),
7381
+ className: g("fr-search-bar", { "fr-search-bar--lg": r }, t),
7366
7382
  children: [
7367
- o && /* @__PURE__ */ m("label", { className: x("fr-label", e["fr-label"]), htmlFor: f, children: o }),
7383
+ o && /* @__PURE__ */ m("label", { className: g("fr-label", e["fr-label"]), htmlFor: f, children: o }),
7368
7384
  /* @__PURE__ */ m(
7369
7385
  "input",
7370
7386
  {
7371
7387
  ref: (d) => pt(d, [u, a]),
7372
- className: x("fr-input", e["fr-input"]),
7388
+ className: g("fr-input", e["fr-input"]),
7373
7389
  type: "search",
7374
7390
  id: f,
7375
- onKeyDown: b,
7391
+ onKeyDown: p,
7376
7392
  placeholder: l,
7377
7393
  ...je(s)
7378
7394
  }
@@ -7385,7 +7401,7 @@ const vd = me(({
7385
7401
  var d;
7386
7402
  return i((d = a.current) == null ? void 0 : d.value);
7387
7403
  },
7388
- className: x("fr-btn", { "fr-btn--lg": r }, e["fr-btn"]),
7404
+ className: g("fr-btn", { "fr-btn--lg": r }, e["fr-btn"]),
7389
7405
  title: n,
7390
7406
  children: n
7391
7407
  }
@@ -7406,7 +7422,7 @@ const vd = me(({
7406
7422
  /* @__PURE__ */ m(
7407
7423
  "button",
7408
7424
  {
7409
- className: x("fr-nav__btn", e),
7425
+ className: g("fr-nav__btn", e),
7410
7426
  "aria-expanded": "false",
7411
7427
  "aria-controls": l,
7412
7428
  "aria-current": n || void 0,
@@ -7414,7 +7430,7 @@ const vd = me(({
7414
7430
  children: o
7415
7431
  }
7416
7432
  ),
7417
- /* @__PURE__ */ m("div", { className: x("fr-collapse", "fr-menu", r["fr-menu"]), id: l, children: /* @__PURE__ */ m("ul", { className: x("fr-menu__list", r["fr-menu__list"]), children: s.map((u, a) => /* @__PURE__ */ m("li", { className: "fr-nav__item", children: $e(u) && u.type === he ? _e(u, { className: x("fr-nav__link", u.props.className) }) : u }, `navitem-${l}-${a}`)) }) })
7433
+ /* @__PURE__ */ m("div", { className: g("fr-collapse", "fr-menu", r["fr-menu"]), id: l, children: /* @__PURE__ */ m("ul", { className: g("fr-menu__list", r["fr-menu__list"]), children: s.map((u, a) => /* @__PURE__ */ m("li", { className: "fr-nav__item", children: $e(u) && u.type === he ? _e(u, { className: g("fr-nav__link", u.props.className) }) : u }, `navitem-${l}-${a}`)) }) })
7418
7434
  ] });
7419
7435
  }, $c = ({
7420
7436
  children: t,
@@ -7423,148 +7439,190 @@ const vd = me(({
7423
7439
  ...r
7424
7440
  }) => {
7425
7441
  const o = ie(), i = r.id || o;
7426
- return /* @__PURE__ */ m("nav", { className: x("fr-nav", e), id: i, role: "navigation", ...r, children: /* @__PURE__ */ m("ul", { className: x("fr-nav__list", n["fr-nav__list"]), children: et(t, [Yl, he]).map((l, s) => $e(l) && /* @__PURE__ */ m("li", { className: x("fr-nav__item", n["fr-nav__item"]), children: l.type === he ? _e(l, { className: x("fr-nav__link", l.props.className) }) : l }, `navitem-${i}-${s}`)) }) });
7442
+ return /* @__PURE__ */ m("nav", { className: g("fr-nav", e), id: i, role: "navigation", ...r, children: /* @__PURE__ */ m("ul", { className: g("fr-nav__list", n["fr-nav__list"]), children: et(t, [Yl, he]).map((l, s) => $e(l) && /* @__PURE__ */ m("li", { className: g("fr-nav__item", n["fr-nav__item"]), children: l.type === he ? _e(l, { className: g("fr-nav__link", l.props.className) }) : l }, `navitem-${i}-${s}`)) }) });
7427
7443
  }, yc = ({ text: t, splitCharacter: e = "|" }) => {
7428
7444
  const r = t.split(e).reduce((o, i, l) => l > 0 ? [...o, /* @__PURE__ */ m("br", {}, `br-${l}`), /* @__PURE__ */ m(xn, { children: i }, l)] : [/* @__PURE__ */ m(xn, { children: i }, l)], []);
7429
7445
  return /* @__PURE__ */ m("div", { className: "fr-header__logo", children: /* @__PURE__ */ m("p", { className: "fr-logo", children: r }) });
7430
- }, $d = ({ children: t, className: e, css: n = {}, ...r }) => {
7431
- var $, h, _, w;
7432
- const o = ie(), i = ie(), l = ie(), s = ie(), u = ($ = fe(t, mc)) == null ? void 0 : $[0], a = (h = fe(t, vc)) == null ? void 0 : h[0], c = (_ = et(t, [gc, ac])) == null ? void 0 : _[0], f = (w = fe(t, $c)) == null ? void 0 : w[0], b = fe(t, yc), d = fe(t, hc), v = $e(c) ? c.props.title : "Rechercher";
7433
- return /* @__PURE__ */ O("header", { role: "banner", className: x("fr-header", e), ...r, children: [
7434
- /* @__PURE__ */ m("div", { className: x("fr-header__body", n["fr-header__body"]), children: /* @__PURE__ */ m("div", { className: "fr-container", children: /* @__PURE__ */ O("div", { className: x("fr-header__body-row", n["fr-header__body-row"]), children: [
7435
- /* @__PURE__ */ O("div", { className: x("fr-header__brand fr-enlarge-link", n["fr-header__brand"]), children: [
7436
- /* @__PURE__ */ O("div", { className: x("fr-header__brand-top", n["fr-header__brand-top"]), children: [
7437
- b && b,
7446
+ }, yd = ({ children: t, className: e, css: n = {}, ...r }) => {
7447
+ var $, h, A, w;
7448
+ const o = ie(), i = ie(), l = ie(), s = ie(), u = ($ = de(t, mc)) == null ? void 0 : $[0], a = (h = de(t, vc)) == null ? void 0 : h[0], c = (A = et(t, [gc, ac])) == null ? void 0 : A[0], f = (w = de(t, $c)) == null ? void 0 : w[0], p = de(t, yc), d = de(t, hc), v = $e(c) ? c.props.title : "Rechercher";
7449
+ return /* @__PURE__ */ O("header", { role: "banner", className: g("fr-header", e), ...r, children: [
7450
+ /* @__PURE__ */ m("div", { className: g("fr-header__body", n["fr-header__body"]), children: /* @__PURE__ */ m("div", { className: "fr-container", children: /* @__PURE__ */ O("div", { className: g("fr-header__body-row", n["fr-header__body-row"]), children: [
7451
+ /* @__PURE__ */ O("div", { className: g("fr-header__brand fr-enlarge-link", n["fr-header__brand"]), children: [
7452
+ /* @__PURE__ */ O("div", { className: g("fr-header__brand-top", n["fr-header__brand-top"]), children: [
7453
+ p && p,
7438
7454
  d && d,
7439
- (a || c) && /* @__PURE__ */ O("div", { className: x("fr-header__navbar", n["fr-header__navbar"]), children: [
7440
- c && /* @__PURE__ */ m("button", { className: x("fr-btn--search fr-btn", n["fr-btn--search"]), "data-fr-opened": "false", "aria-controls": i, id: o, title: v, children: v }),
7441
- a && /* @__PURE__ */ m("button", { className: x("fr-btn--menu fr-btn", n["fr-btn--menu"]), "data-fr-opened": "false", "aria-controls": l, "aria-haspopup": "menu", id: s, title: "Menu", children: "Menu" })
7455
+ (a || c) && /* @__PURE__ */ O("div", { className: g("fr-header__navbar", n["fr-header__navbar"]), children: [
7456
+ c && /* @__PURE__ */ m("button", { className: g("fr-btn--search fr-btn", n["fr-btn--search"]), "data-fr-opened": "false", "aria-controls": i, id: o, title: v, children: v }),
7457
+ a && /* @__PURE__ */ m("button", { className: g("fr-btn--menu fr-btn", n["fr-btn--menu"]), "data-fr-opened": "false", "aria-controls": l, "aria-haspopup": "menu", id: s, title: "Menu", children: "Menu" })
7442
7458
  ] })
7443
7459
  ] }),
7444
7460
  u && u
7445
7461
  ] }),
7446
- /* @__PURE__ */ O("div", { className: x("fr-header__tools", n["fr-header__tools"]), children: [
7462
+ /* @__PURE__ */ O("div", { className: g("fr-header__tools", n["fr-header__tools"]), children: [
7447
7463
  a,
7448
- c && /* @__PURE__ */ m("div", { className: x("fr-header__search fr-modal", n["fr-header__search"]), id: i, children: /* @__PURE__ */ O("div", { className: "fr-container fr-container-lg--fluid", children: [
7464
+ c && /* @__PURE__ */ m("div", { className: g("fr-header__search fr-modal", n["fr-header__search"]), id: i, children: /* @__PURE__ */ O("div", { className: "fr-container fr-container-lg--fluid", children: [
7449
7465
  /* @__PURE__ */ m("button", { className: "fr-btn--close fr-btn", "aria-controls": i, title: "Fermer", children: "Fermer" }),
7450
7466
  c
7451
7467
  ] }) })
7452
7468
  ] })
7453
7469
  ] }) }) }),
7454
- /* @__PURE__ */ m("div", { className: x("fr-header__menu fr-modal", n["fr-header__menu"]), id: l, "aria-labelledby": s, children: /* @__PURE__ */ O("div", { className: "fr-container", children: [
7470
+ /* @__PURE__ */ m("div", { className: g("fr-header__menu fr-modal", n["fr-header__menu"]), id: l, "aria-labelledby": s, children: /* @__PURE__ */ O("div", { className: "fr-container", children: [
7455
7471
  /* @__PURE__ */ m("button", { className: "fr-btn--close fr-btn", "aria-controls": l, title: "Fermer", children: "Fermer" }),
7456
- /* @__PURE__ */ m("div", { className: x("fr-header__menu-links", n["fr-header__menu-links"]) }),
7472
+ /* @__PURE__ */ m("div", { className: g("fr-header__menu-links", n["fr-header__menu-links"]) }),
7457
7473
  f && f
7458
7474
  ] }) })
7459
7475
  ] });
7460
- }, yd = me(({
7461
- className: t,
7462
- css: e = {},
7463
- disableAutoValidation: n = !1,
7464
- hint: r,
7465
- icon: o,
7466
- id: i,
7467
- label: l,
7468
- message: s,
7469
- messageType: u,
7470
- onBlur: a,
7471
- onChange: c,
7472
- disabled: f,
7473
- required: b,
7474
- ...d
7475
- }, v) => {
7476
- var P;
7477
- const { extendRequiredFieldsLabelsWith: $, extendOptionalFieldsLabelsWith: h } = bt(), [_, w] = Z(""), S = i || ie(), K = I(null), g = s !== void 0 || u !== void 0, k = x("fr-input", {
7478
- "fr-input--error": g ? u === "error" : _ === "error",
7479
- "fr-input--valid": g ? u === "valid" : _ === "valid"
7480
- }, e["fr-input"]), R = x("fr-input-group", {
7481
- "fr-input-group--error": g ? u === "error" : _ === "error",
7482
- "fr-input-group--valid": g ? u === "valid" : _ === "valid",
7483
- "fr-input-group--disabled": f
7484
- }, t), p = (B) => {
7485
- const C = K.current;
7486
- !n && !g && C && w(C.checkValidity() ? "valid" : "error"), a && a(B);
7487
- }, A = (B) => {
7488
- const C = K.current;
7489
- !n && !g && C && _ && w(C.checkValidity() ? "valid" : "error"), c && c(B);
7490
- }, E = g || n ? u && /* @__PURE__ */ m("p", { className: `fr-${u || "error"}-text`, id: `${S}-message`, children: s }) : _ === "error" && !n && /* @__PURE__ */ m("p", { className: `fr-${_ || "error"}-text`, id: `${S}-message`, children: (P = K.current) == null ? void 0 : P.validationMessage });
7491
- return /* @__PURE__ */ O("div", { className: R, children: [
7492
- /* @__PURE__ */ O("label", { className: x("fr-label", e["fr-label"]), htmlFor: S, children: [
7493
- l,
7494
- b ? $ : h,
7495
- r && /* @__PURE__ */ m("span", { className: x("fr-hint-text", e["fr-hint-text"]), children: r })
7496
- ] }),
7497
- /* @__PURE__ */ m("div", { className: x("fr-input-wrap", { [`fr-icon-${o}`]: o }, e["fr-input-wrap"]), children: /* @__PURE__ */ m(
7498
- "input",
7476
+ }, xd = be(
7477
+ ({
7478
+ className: t,
7479
+ css: e = {},
7480
+ disableAutoValidation: n = !1,
7481
+ hint: r,
7482
+ icon: o,
7483
+ id: i,
7484
+ label: l,
7485
+ message: s,
7486
+ messageType: u,
7487
+ onBlur: a,
7488
+ onChange: c,
7489
+ disabled: f,
7490
+ required: p,
7491
+ isOptional: d,
7492
+ ...v
7493
+ }, $) => {
7494
+ const { extendRequiredFieldsLabelsWith: h, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = Z(""), K = i || ie(), x = I(null), M = s !== void 0 || u !== void 0, R = g(
7495
+ "fr-input",
7499
7496
  {
7500
- id: S,
7501
- className: k,
7502
- onBlur: p,
7503
- onChange: A,
7504
- ref: (B) => pt(B, [v, K]),
7505
- "aria-describedby": E ? `${S}-message` : void 0,
7506
- ...d
7507
- }
7508
- ) }),
7509
- E && E
7510
- ] });
7511
- }), xd = me(({
7512
- className: t,
7513
- css: e = {},
7514
- disableAutoValidation: n = !1,
7515
- hint: r,
7516
- icon: o,
7517
- id: i,
7518
- label: l,
7519
- message: s,
7520
- messageType: u,
7521
- onBlur: a,
7522
- onChange: c,
7523
- disabled: f,
7524
- required: b,
7525
- ...d
7526
- }, v) => {
7527
- var P;
7528
- const { extendRequiredFieldsLabelsWith: $, extendOptionalFieldsLabelsWith: h } = bt(), [_, w] = Z(""), S = i || ie(), K = I(null), g = s !== void 0 || u !== void 0, k = x("fr-input", {
7529
- "fr-input--error": g ? u === "error" : _ === "error",
7530
- "fr-input--valid": g ? u === "valid" : _ === "valid"
7531
- }, e["fr-input"]), R = x("fr-input-group", {
7532
- "fr-input-group--error": g ? u === "error" : _ === "error",
7533
- "fr-input-group--valid": g ? u === "valid" : _ === "valid",
7534
- "fr-input-group--disabled": f
7535
- }, t), p = (B) => {
7536
- const C = K.current;
7537
- !n && !g && C && w(C.checkValidity() ? "valid" : "error"), a && a(B);
7538
- }, A = (B) => {
7539
- const C = K.current;
7540
- !n && !g && C && _ && w(C.checkValidity() ? "valid" : "error"), c && c(B);
7541
- }, E = g || n ? u && /* @__PURE__ */ m("p", { className: `fr-${u || "error"}-text`, id: `${S}-message`, children: s }) : _ === "error" && !n && /* @__PURE__ */ m("p", { className: `fr-${_ || "error"}-text`, id: `${S}-message`, children: (P = K.current) == null ? void 0 : P.validationMessage });
7542
- return /* @__PURE__ */ O("div", { className: R, children: [
7543
- /* @__PURE__ */ O("label", { className: x("fr-label", e["fr-label"]), htmlFor: S, children: [
7544
- l,
7545
- b ? $ : h,
7546
- r && /* @__PURE__ */ m("span", { className: x("fr-hint-text", e["fr-hint-text"]), children: r })
7547
- ] }),
7548
- /* @__PURE__ */ m("div", { className: x("fr-input-wrap", { [`fr-icon-${o}`]: o }, e["fr-input-wrap"]), children: /* @__PURE__ */ m(
7549
- "textarea",
7497
+ "fr-input--error": M ? u === "error" : w === "error",
7498
+ "fr-input--valid": M ? u === "valid" : w === "valid"
7499
+ },
7500
+ e["fr-input"]
7501
+ ), b = g(
7502
+ "fr-input-group",
7550
7503
  {
7551
- id: S,
7552
- className: k,
7553
- onBlur: p,
7554
- onChange: A,
7555
- ref: (B) => pt(B, [v, K]),
7556
- "aria-describedby": E ? `${S}-message` : void 0,
7557
- ...d
7558
- }
7559
- ) }),
7560
- E && E
7561
- ] });
7562
- });
7563
- function Cd(t) {
7504
+ "fr-input-group--error": M ? u === "error" : w === "error",
7505
+ "fr-input-group--valid": M ? u === "valid" : w === "valid",
7506
+ "fr-input-group--disabled": f
7507
+ },
7508
+ t
7509
+ ), _ = (C) => {
7510
+ const B = x.current;
7511
+ !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7512
+ }, P = (C) => {
7513
+ const B = x.current;
7514
+ !n && !M && B && w && S(B.checkValidity() ? "valid" : "error"), c && c(C);
7515
+ };
7516
+ return /* @__PURE__ */ O("div", { className: b, children: [
7517
+ /* @__PURE__ */ O("label", { className: g("fr-label", e["fr-label"]), htmlFor: K, children: [
7518
+ l,
7519
+ p && !d && h,
7520
+ d && !p && A,
7521
+ r && /* @__PURE__ */ m("span", { className: g("fr-hint-text", e["fr-hint-text"]), children: r })
7522
+ ] }),
7523
+ /* @__PURE__ */ m(
7524
+ "div",
7525
+ {
7526
+ className: g(
7527
+ "fr-input-wrap",
7528
+ { [`fr-icon-${o}`]: o },
7529
+ e["fr-input-wrap"]
7530
+ ),
7531
+ children: /* @__PURE__ */ m(
7532
+ "input",
7533
+ {
7534
+ id: K,
7535
+ className: R,
7536
+ onBlur: _,
7537
+ onChange: P,
7538
+ ref: (C) => pt(C, [$, x]),
7539
+ "aria-describedby": u ? `${K}-message` : void 0,
7540
+ ...v
7541
+ }
7542
+ )
7543
+ }
7544
+ ),
7545
+ u && /* @__PURE__ */ m("p", { className: `fr-${u}-text`, id: `${K}-message`, children: s })
7546
+ ] });
7547
+ }
7548
+ ), Cd = be(
7549
+ ({
7550
+ className: t,
7551
+ css: e = {},
7552
+ disableAutoValidation: n = !1,
7553
+ hint: r,
7554
+ icon: o,
7555
+ id: i,
7556
+ label: l,
7557
+ message: s,
7558
+ messageType: u,
7559
+ onBlur: a,
7560
+ onChange: c,
7561
+ disabled: f,
7562
+ required: p,
7563
+ isOptional: d,
7564
+ ...v
7565
+ }, $) => {
7566
+ const { extendRequiredFieldsLabelsWith: h, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = Z(""), K = i || ie(), x = I(null), M = s !== void 0 || u !== void 0, R = g(
7567
+ "fr-input",
7568
+ {
7569
+ "fr-input--error": M ? u === "error" : w === "error",
7570
+ "fr-input--valid": M ? u === "valid" : w === "valid"
7571
+ },
7572
+ e["fr-input"]
7573
+ ), b = g(
7574
+ "fr-input-group",
7575
+ {
7576
+ "fr-input-group--error": M ? u === "error" : w === "error",
7577
+ "fr-input-group--valid": M ? u === "valid" : w === "valid",
7578
+ "fr-input-group--disabled": f
7579
+ },
7580
+ t
7581
+ ), _ = (C) => {
7582
+ const B = x.current;
7583
+ !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7584
+ }, P = (C) => {
7585
+ const B = x.current;
7586
+ !n && !M && B && w && S(B.checkValidity() ? "valid" : "error"), c && c(C);
7587
+ };
7588
+ return /* @__PURE__ */ O("div", { className: b, children: [
7589
+ /* @__PURE__ */ O("label", { className: g("fr-label", e["fr-label"]), htmlFor: K, children: [
7590
+ l,
7591
+ p && !d && h,
7592
+ d && !p && A,
7593
+ r && /* @__PURE__ */ m("span", { className: g("fr-hint-text", e["fr-hint-text"]), children: r })
7594
+ ] }),
7595
+ /* @__PURE__ */ m(
7596
+ "div",
7597
+ {
7598
+ className: g(
7599
+ "fr-input-wrap",
7600
+ { [`fr-icon-${o}`]: o },
7601
+ e["fr-input-wrap"]
7602
+ ),
7603
+ children: /* @__PURE__ */ m(
7604
+ "textarea",
7605
+ {
7606
+ id: K,
7607
+ className: R,
7608
+ onBlur: _,
7609
+ onChange: P,
7610
+ ref: (C) => pt(C, [$, x]),
7611
+ "aria-describedby": u ? `${K}-message` : void 0,
7612
+ ...v
7613
+ }
7614
+ )
7615
+ }
7616
+ ),
7617
+ u && /* @__PURE__ */ m("p", { className: `fr-${u}-text`, id: `${K}-message`, children: s })
7618
+ ] });
7619
+ }
7620
+ );
7621
+ function Ed(t) {
7564
7622
  const e = co(t);
7565
7623
  return /* @__PURE__ */ m(Qn, { ...t, state: e });
7566
7624
  }
7567
- const Ed = Vt, Pd = lo, xc = "_focused_og068_1", Cc = "_listbox_og068_10", Ec = "_content_og068_90", Pc = "_description_og068_99", wc = "_uppercase_og068_127", Sc = "_divider_og068_131", Te = {
7625
+ const Pd = Vt, wd = lo, xc = "_focused_og068_1", Cc = "_listbox_og068_10", Ec = "_content_og068_90", Pc = "_description_og068_99", wc = "_uppercase_og068_127", Sc = "_divider_og068_131", Te = {
7568
7626
  focused: xc,
7569
7627
  listbox: Cc,
7570
7628
  "listbox-top": "_listbox-top_og068_36",
@@ -7621,20 +7679,20 @@ const Ed = Vt, Pd = lo, xc = "_focused_og068_1", Cc = "_listbox_og068_10", Ec =
7621
7679
  "listbox--error": "_listbox--error_og068_470"
7622
7680
  };
7623
7681
  function Xl({ item: t, state: e }) {
7624
- const n = I(null), { menuItemProps: r, labelProps: o, descriptionProps: i, isFocused: l } = ja({ key: t.key }, e, n), { description: s, startContent: u, endContent: a, color: c, showDivider: f, href: b, className: d } = t.props || {};
7682
+ const n = I(null), { menuItemProps: r, labelProps: o, descriptionProps: i, isFocused: l } = ja({ key: t.key }, e, n), { description: s, startContent: u, endContent: a, color: c, showDivider: f, href: p, className: d } = t.props || {};
7625
7683
  return /* @__PURE__ */ O(
7626
- b ? "a" : "li",
7684
+ p ? "a" : "li",
7627
7685
  {
7628
7686
  ...r,
7629
7687
  ref: n,
7630
- href: b,
7631
- className: x(
7688
+ href: p,
7689
+ className: g(
7632
7690
  Te["listbox-item"],
7633
7691
  d,
7634
7692
  {
7635
7693
  [Te[`listbox-item--${c}`]]: c,
7636
7694
  [Te.divider]: f,
7637
- "fr-enlarge-link": b,
7695
+ "fr-enlarge-link": p,
7638
7696
  [Te.focused]: l
7639
7697
  }
7640
7698
  ),
@@ -7658,7 +7716,7 @@ function Tc({ section: t, state: e }) {
7658
7716
  "li",
7659
7717
  {
7660
7718
  ...n,
7661
- className: x(
7719
+ className: g(
7662
7720
  Te["listbox-section"],
7663
7721
  l,
7664
7722
  s.base,
@@ -7669,14 +7727,14 @@ function Tc({ section: t, state: e }) {
7669
7727
  "span",
7670
7728
  {
7671
7729
  ...r,
7672
- className: x(
7730
+ className: g(
7673
7731
  "fr-text-mention--grey fr-text--sm fr-my-3v fr-px-1w",
7674
7732
  s.title
7675
7733
  ),
7676
7734
  children: t.rendered
7677
7735
  }
7678
7736
  ),
7679
- /* @__PURE__ */ m(u, { ...o, className: x(Te["listbox-section-list"], s.list), children: [...t.childNodes].map((a) => /* @__PURE__ */ m(
7737
+ /* @__PURE__ */ m(u, { ...o, className: g(Te["listbox-section-list"], s.list), children: [...t.childNodes].map((a) => /* @__PURE__ */ m(
7680
7738
  Xl,
7681
7739
  {
7682
7740
  item: a,
@@ -7690,11 +7748,11 @@ function Tc({ section: t, state: e }) {
7690
7748
  }
7691
7749
  function _c(t) {
7692
7750
  const e = Is(t), n = I(null), { menuProps: r } = za(t, e, n);
7693
- return /* @__PURE__ */ m("ul", { ...r, ref: n, className: x(Te.listbox), style: { minWidth: "200px" }, children: [...e.collection].map((o) => o.type === "section" ? /* @__PURE__ */ m(Tc, { section: o, state: e }, o.key) : /* @__PURE__ */ m(Xl, { item: o, state: e }, o.key)) });
7751
+ return /* @__PURE__ */ m("ul", { ...r, ref: n, className: g(Te.listbox), style: { minWidth: "200px" }, children: [...e.collection].map((o) => o.type === "section" ? /* @__PURE__ */ m(Tc, { section: o, state: e }, o.key) : /* @__PURE__ */ m(Xl, { item: o, state: e }, o.key)) });
7694
7752
  }
7695
- const Ac = me(
7753
+ const Ac = be(
7696
7754
  ({ className: t, color: e = "blue-france", icon: n, iconPosition: r = "left", size: o = "md", variant: i = "primary", children: l, ...s }, u) => {
7697
- const a = x(
7755
+ const a = g(
7698
7756
  "fr-btn",
7699
7757
  {
7700
7758
  [`fr-btn--${o}`]: o !== "md",
@@ -7711,8 +7769,8 @@ const Ac = me(
7711
7769
  return /* @__PURE__ */ m("button", { className: a, ref: u, ...s, children: l });
7712
7770
  }
7713
7771
  );
7714
- function wd(t) {
7715
- const { className: e, color: n, icon: r, iconPosition: o, size: i, variant: l, placement: s = "start", ...u } = t, a = Ms(u), c = I(null), { menuTriggerProps: f, menuProps: b } = Jn({}, a, c), { isFocusVisible: d, focusProps: v } = qn(), { buttonProps: $ } = ko({ ...se(f, v) }, c);
7772
+ function Sd(t) {
7773
+ const { className: e, color: n, icon: r, iconPosition: o, size: i, variant: l, placement: s = "start", ...u } = t, a = Ms(u), c = I(null), { menuTriggerProps: f, menuProps: p } = Jn({}, a, c), { isFocusVisible: d, focusProps: v } = qn(), { buttonProps: $ } = ko({ ...se(f, v) }, c);
7716
7774
  return /* @__PURE__ */ O(In, { children: [
7717
7775
  /* @__PURE__ */ m(
7718
7776
  Ac,
@@ -7733,19 +7791,19 @@ function wd(t) {
7733
7791
  _c,
7734
7792
  {
7735
7793
  ...u,
7736
- ...b
7794
+ ...p
7737
7795
  }
7738
7796
  ) })
7739
7797
  ] });
7740
7798
  }
7741
- const Sd = Vt, Td = lo, Zl = me(({
7799
+ const Td = Vt, _d = lo, Zl = be(({
7742
7800
  children: t,
7743
7801
  className: e,
7744
7802
  icon: n,
7745
7803
  id: r,
7746
7804
  ...o
7747
7805
  }, i) => {
7748
- const l = x("fr-modal__title", e);
7806
+ const l = g("fr-modal__title", e);
7749
7807
  return /* @__PURE__ */ O(
7750
7808
  "h1",
7751
7809
  {
@@ -7759,7 +7817,7 @@ const Sd = Vt, Td = lo, Zl = me(({
7759
7817
  ]
7760
7818
  }
7761
7819
  );
7762
- }), Bt = me(({
7820
+ }), Bt = be(({
7763
7821
  className: t,
7764
7822
  controls: e,
7765
7823
  children: n = "Fermer",
@@ -7770,7 +7828,7 @@ const Sd = Vt, Td = lo, Zl = me(({
7770
7828
  ref: o,
7771
7829
  id: `${e}-close`,
7772
7830
  "aria-controls": e || void 0,
7773
- className: x("fr-btn--close fr-btn", t),
7831
+ className: g("fr-btn--close fr-btn", t),
7774
7832
  type: "button",
7775
7833
  ...r,
7776
7834
  children: n
@@ -7801,32 +7859,32 @@ const Fc = ({
7801
7859
  canClose: l,
7802
7860
  ...s
7803
7861
  }) => {
7804
- var k, R, p;
7805
- const [u, a] = Z(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], b = x("fr-modal", o), d = I(null), v = (k = fe(t, Zl)) == null ? void 0 : k[0], $ = fe(t, Jl), h = (R = fe(t, Ql)) == null ? void 0 : R[0], _ = (p = fe(t, Bt)) == null ? void 0 : p[0], w = r || ie();
7862
+ var M, R, b;
7863
+ const [u, a] = Z(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], p = g("fr-modal", o), d = I(null), v = (M = de(t, Zl)) == null ? void 0 : M[0], $ = de(t, Jl), h = (R = de(t, Ql)) == null ? void 0 : R[0], A = (b = de(t, Bt)) == null ? void 0 : b[0], w = r || ie();
7806
7864
  W(() => {
7807
- var E, P;
7808
- d.current && (i && (a(document.activeElement), (E = document == null ? void 0 : document.getElementById(w)) == null || E.classList.add("fr-modal--opened")), i || (P = document == null ? void 0 : document.getElementById(w)) == null || P.classList.remove("fr-modal--opened"));
7865
+ var P, C;
7866
+ d.current && (i && (a(document.activeElement), (P = document == null ? void 0 : document.getElementById(w)) == null || P.classList.add("fr-modal--opened")), i || (C = document == null ? void 0 : document.getElementById(w)) == null || C.classList.remove("fr-modal--opened"));
7809
7867
  }, [i]), W(() => {
7810
- const A = d.current;
7811
- if (A)
7812
- return A.addEventListener("dsfr.conceal", (E) => E.stopPropagation()), A.addEventListener("dsfr.disclose", (E) => E.stopPropagation()), () => {
7813
- A.removeEventListener("dsfr.conceal", (E) => E.stopPropagation()), A.removeEventListener("dsfr.disclose", (E) => E.stopPropagation());
7868
+ const _ = d.current;
7869
+ if (_)
7870
+ return _.addEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.addEventListener("dsfr.disclose", (P) => P.stopPropagation()), () => {
7871
+ _.removeEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.removeEventListener("dsfr.disclose", (P) => P.stopPropagation());
7814
7872
  };
7815
7873
  }, []);
7816
- const S = (A) => {
7817
- l && (!d.current || d.current === A.target || A.target.className.indexOf("closing-overlay") > -1) && e();
7874
+ const S = (_) => {
7875
+ l && (!d.current || d.current === _.target || _.target.className.indexOf("closing-overlay") > -1) && e();
7818
7876
  };
7819
7877
  Dc(d, i, u);
7820
- const K = _ ? _e(_, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, g = /* @__PURE__ */ m(
7878
+ const K = A ? _e(A, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, x = /* @__PURE__ */ m(
7821
7879
  "dialog",
7822
7880
  {
7823
7881
  "aria-labelledby": `${w}-title`,
7824
7882
  "aria-modal": "true",
7825
- className: b,
7883
+ className: p,
7826
7884
  ref: d,
7827
7885
  id: w,
7828
7886
  role: "dialog",
7829
- onClick: (A) => S(A),
7887
+ onClick: (_) => S(_),
7830
7888
  ...s,
7831
7889
  children: /* @__PURE__ */ m("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ m("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ m("div", { className: `fr-col-12 fr-col-md-${f}`, children: /* @__PURE__ */ O("div", { className: "fr-modal__body", children: [
7832
7890
  /* @__PURE__ */ m("div", { className: "fr-modal__header", children: K }),
@@ -7839,7 +7897,7 @@ const Fc = ({
7839
7897
  }
7840
7898
  );
7841
7899
  return Bn.createPortal(
7842
- g,
7900
+ x,
7843
7901
  document.body
7844
7902
  );
7845
7903
  }, Lc = ({
@@ -7850,7 +7908,7 @@ const Fc = ({
7850
7908
  ...o
7851
7909
  }) => {
7852
7910
  var v, $, h;
7853
- const l = { sm: 4, lg: 8, md: 6, xl: 10 }[e], s = x("fr-modal", r), u = (v = fe(t, Zl)) == null ? void 0 : v[0], a = fe(t, Jl), c = ($ = fe(t, Ql)) == null ? void 0 : $[0], f = (h = fe(t, Bt)) == null ? void 0 : h[0], b = f ? _e(f, { controls: n }) : /* @__PURE__ */ m(Bt, { controls: n }), d = /* @__PURE__ */ m(
7911
+ const l = { sm: 4, lg: 8, md: 6, xl: 10 }[e], s = g("fr-modal", r), u = (v = de(t, Zl)) == null ? void 0 : v[0], a = de(t, Jl), c = ($ = de(t, Ql)) == null ? void 0 : $[0], f = (h = de(t, Bt)) == null ? void 0 : h[0], p = f ? _e(f, { controls: n }) : /* @__PURE__ */ m(Bt, { controls: n }), d = /* @__PURE__ */ m(
7854
7912
  "dialog",
7855
7913
  {
7856
7914
  "aria-labelledby": `${n}-title`,
@@ -7859,7 +7917,7 @@ const Fc = ({
7859
7917
  role: "dialog",
7860
7918
  ...o,
7861
7919
  children: /* @__PURE__ */ m("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ m("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ m("div", { className: `fr-col-12 fr-col-md-${l}`, children: /* @__PURE__ */ O("div", { className: "fr-modal__body", children: [
7862
- /* @__PURE__ */ m("div", { className: "fr-modal__header", children: b }),
7920
+ /* @__PURE__ */ m("div", { className: "fr-modal__header", children: p }),
7863
7921
  /* @__PURE__ */ O("div", { className: "fr-modal__content", children: [
7864
7922
  u && _e(u, { id: n }),
7865
7923
  a ?? null
@@ -7872,7 +7930,7 @@ const Fc = ({
7872
7930
  d,
7873
7931
  document.body
7874
7932
  );
7875
- }, _d = ({
7933
+ }, Ad = ({
7876
7934
  id: t,
7877
7935
  size: e = "md",
7878
7936
  hide: n,
@@ -7891,24 +7949,24 @@ const Fc = ({
7891
7949
  canClose: i,
7892
7950
  ...l
7893
7951
  }
7894
- ), Jl = me(({ ...t }, e) => /* @__PURE__ */ m(
7952
+ ), Jl = be(({ ...t }, e) => /* @__PURE__ */ m(
7895
7953
  "div",
7896
7954
  {
7897
7955
  ref: e,
7898
7956
  ...t
7899
7957
  }
7900
- )), Ql = me(({
7958
+ )), Ql = be(({
7901
7959
  className: t,
7902
7960
  ...e
7903
7961
  }, n) => /* @__PURE__ */ m(
7904
7962
  "div",
7905
7963
  {
7906
7964
  ref: n,
7907
- className: x("fr-modal__footer", t),
7965
+ className: g("fr-modal__footer", t),
7908
7966
  ...e
7909
7967
  }
7910
7968
  ));
7911
- const Ad = ({
7969
+ const Kd = ({
7912
7970
  children: t,
7913
7971
  closeMode: e = "disallow",
7914
7972
  type: n = "info",
@@ -7920,22 +7978,22 @@ const Ad = ({
7920
7978
  const s = I(null), u = (c) => {
7921
7979
  var f;
7922
7980
  c.preventDefault(), (f = s.current) == null || f.remove(), i && i(c);
7923
- }, a = x("fr-notice", {
7981
+ }, a = g("fr-notice", {
7924
7982
  "fr-notice--info": n === "info",
7925
7983
  [`dsfr-plus-notice--${n}`]: n !== "info"
7926
7984
  }, r);
7927
- return /* @__PURE__ */ m("div", { ref: s, className: a, ...l, children: /* @__PURE__ */ m("div", { className: x("fr-container", o["fr-container"]), children: /* @__PURE__ */ O("div", { className: x("fr-notice__body", o["fr-notice__body"]), children: [
7928
- /* @__PURE__ */ m("p", { className: x("fr-notice__title", o["fr-notice__title"]), children: t }),
7985
+ return /* @__PURE__ */ m("div", { ref: s, className: a, ...l, children: /* @__PURE__ */ m("div", { className: g("fr-container", o["fr-container"]), children: /* @__PURE__ */ O("div", { className: g("fr-notice__body", o["fr-notice__body"]), children: [
7986
+ /* @__PURE__ */ m("p", { className: g("fr-notice__title", o["fr-notice__title"]), children: t }),
7929
7987
  e !== "disallow" && /* @__PURE__ */ m(
7930
7988
  "button",
7931
7989
  {
7932
7990
  onClick: e === "uncontrolled" ? u : i,
7933
- className: x("fr-btn--close", "fr-btn", o["fr-btn--close"]),
7991
+ className: g("fr-btn--close", "fr-btn", o["fr-btn--close"]),
7934
7992
  children: "Masquer le message"
7935
7993
  }
7936
7994
  )
7937
7995
  ] }) }) });
7938
- }, Kd = me(({
7996
+ }, Dd = be(({
7939
7997
  checked: t,
7940
7998
  className: e,
7941
7999
  css: n = {},
@@ -7946,7 +8004,7 @@ const Ad = ({
7946
8004
  ...s
7947
8005
  }, u) => {
7948
8006
  const a = o || ie();
7949
- return /* @__PURE__ */ O("div", { className: x("fr-radio-group", { "fr-radio-rich": i }, e), children: [
8007
+ return /* @__PURE__ */ O("div", { className: g("fr-radio-group", { "fr-radio-rich": i }, e), children: [
7950
8008
  /* @__PURE__ */ m(
7951
8009
  "input",
7952
8010
  {
@@ -7960,20 +8018,20 @@ const Ad = ({
7960
8018
  /* @__PURE__ */ O(
7961
8019
  "label",
7962
8020
  {
7963
- className: x("fr-label"),
8021
+ className: g("fr-label"),
7964
8022
  htmlFor: a,
7965
8023
  children: [
7966
8024
  l,
7967
- r && /* @__PURE__ */ m("p", { className: x("fr-hint-text"), children: r })
8025
+ r && /* @__PURE__ */ m("p", { className: g("fr-hint-text"), children: r })
7968
8026
  ]
7969
8027
  }
7970
8028
  ),
7971
- i && /* @__PURE__ */ m("div", { className: x("fr-radio-rich__img"), children: i })
8029
+ i && /* @__PURE__ */ m("div", { className: g("fr-radio-rich__img"), children: i })
7972
8030
  ] });
7973
8031
  }), Mc = {
7974
8032
  "fr-select-btn": "_fr-select-btn_m2sgv_1"
7975
8033
  };
7976
- function Dd(t) {
8034
+ function Fd(t) {
7977
8035
  const { buttonLabel: e, ...n } = t, r = ks(n), o = I(null), {
7978
8036
  labelProps: i,
7979
8037
  triggerProps: l,
@@ -7987,7 +8045,7 @@ function Dd(t) {
7987
8045
  {
7988
8046
  ...f,
7989
8047
  ref: o,
7990
- className: x("fr-select", Mc["fr-select-btn"]),
8048
+ className: g("fr-select", Mc["fr-select-btn"]),
7991
8049
  "data-focus-visible": a,
7992
8050
  children: /* @__PURE__ */ m("span", { ...s, children: r.selectedItem ? r.selectedItem.rendered : e })
7993
8051
  }
@@ -8012,8 +8070,8 @@ function Dd(t) {
8012
8070
  ) })
8013
8071
  ] });
8014
8072
  }
8015
- const Fd = Vt;
8016
- const Ld = ({
8073
+ const Ld = Vt;
8074
+ const Md = ({
8017
8075
  children: t,
8018
8076
  className: e,
8019
8077
  css: n = {},
@@ -8023,25 +8081,25 @@ const Ld = ({
8023
8081
  title: l,
8024
8082
  ...s
8025
8083
  }) => {
8026
- const u = ie(), a = x("fr-sidemenu", e, {
8084
+ const u = ie(), a = g("fr-sidemenu", e, {
8027
8085
  "fr-sidemenu--sticky": i && !r,
8028
8086
  "fr-sidemenu--sticky-full-height": r,
8029
8087
  "fr-sidemenu--right": o === "right"
8030
8088
  });
8031
- return /* @__PURE__ */ m("nav", { className: a, "aria-label": "Menu latéral", ...je(s), children: /* @__PURE__ */ O("div", { className: x("fr-sidemenu__inner", n["fr-sidemenu__inner"]), children: [
8089
+ return /* @__PURE__ */ m("nav", { className: a, "aria-label": "Menu latéral", ...je(s), children: /* @__PURE__ */ O("div", { className: g("fr-sidemenu__inner", n["fr-sidemenu__inner"]), children: [
8032
8090
  /* @__PURE__ */ m(
8033
8091
  "button",
8034
8092
  {
8035
8093
  type: "button",
8036
- className: x("fr-sidemenu__btn", n["fr-sidemenu__btn"]),
8094
+ className: g("fr-sidemenu__btn", n["fr-sidemenu__btn"]),
8037
8095
  "aria-controls": u,
8038
8096
  "aria-expanded": !1,
8039
8097
  children: l || "Dans cette rubrique"
8040
8098
  }
8041
8099
  ),
8042
8100
  /* @__PURE__ */ O("div", { className: "fr-collapse", id: u, children: [
8043
- l && /* @__PURE__ */ m("div", { className: x("fr-sidemenu__title", n["fr-sidemenu__title"]), children: l }),
8044
- /* @__PURE__ */ m("ul", { className: x("fr-sidemenu__list", n["fr-sidemenu__list"]), children: et(t, [es, he]).map((c, f) => $e(c) && /* @__PURE__ */ m("li", { className: x("fr-sidemenu__item", n["fr-sidemenu__item"]), children: c.type === he ? _e(c, { className: x("fr-sidemenu__link", c.props.className) }) : c }, `navitem-${u}-${f}`)) })
8101
+ l && /* @__PURE__ */ m("div", { className: g("fr-sidemenu__title", n["fr-sidemenu__title"]), children: l }),
8102
+ /* @__PURE__ */ m("ul", { className: g("fr-sidemenu__list", n["fr-sidemenu__list"]), children: et(t, [es, he]).map((c, f) => $e(c) && /* @__PURE__ */ m("li", { className: g("fr-sidemenu__item", n["fr-sidemenu__item"]), children: c.type === he ? _e(c, { className: g("fr-sidemenu__link", c.props.className) }) : c }, `navitem-${u}-${f}`)) })
8045
8103
  ] })
8046
8104
  ] }) });
8047
8105
  }, es = ({
@@ -8060,7 +8118,7 @@ const Ld = ({
8060
8118
  /* @__PURE__ */ m(
8061
8119
  "button",
8062
8120
  {
8063
- className: x("fr-sidemenu__btn", e),
8121
+ className: g("fr-sidemenu__btn", e),
8064
8122
  "aria-expanded": o,
8065
8123
  "aria-controls": a,
8066
8124
  "aria-current": r || void 0,
@@ -8068,19 +8126,19 @@ const Ld = ({
8068
8126
  children: /* @__PURE__ */ m("span", { className: l && `dsfr-plus-sidemenu-title--icon fr-icon-${l} fr-icon--sm`, children: s })
8069
8127
  }
8070
8128
  ),
8071
- /* @__PURE__ */ m("div", { className: "fr-collapse", id: a, children: /* @__PURE__ */ m("ul", { className: x("fr-sidemenu__list", n["fr-sidemenu__list"]), children: c.map((f, b) => /* @__PURE__ */ m("li", { className: x("fr-sidemenu__item", n["fr-sidemenu__item"]), children: $e(f) && f.type === he ? _e(f, { className: x("fr-sidemenu__link", f.props.className) }) : f }, `navitem-${a}-${b}`)) }) })
8129
+ /* @__PURE__ */ m("div", { className: "fr-collapse", id: a, children: /* @__PURE__ */ m("ul", { className: g("fr-sidemenu__list", n["fr-sidemenu__list"]), children: c.map((f, p) => /* @__PURE__ */ m("li", { className: g("fr-sidemenu__item", n["fr-sidemenu__item"]), children: $e(f) && f.type === he ? _e(f, { className: g("fr-sidemenu__link", f.props.className) }) : f }, `navitem-${a}-${p}`)) }) })
8072
8130
  ] });
8073
- }, Md = ({
8131
+ }, kd = ({
8074
8132
  children: t,
8075
8133
  className: e,
8076
8134
  css: n = {},
8077
8135
  current: r,
8078
8136
  icon: o,
8079
8137
  ...i
8080
- }) => /* @__PURE__ */ m("li", { className: x("fr-sidemenu__item", e), children: /* @__PURE__ */ m(
8138
+ }) => /* @__PURE__ */ m("li", { className: g("fr-sidemenu__item", e), children: /* @__PURE__ */ m(
8081
8139
  he,
8082
8140
  {
8083
- className: x("fr-sidemenu__link", n["fr-sidemenu__link"]),
8141
+ className: g("fr-sidemenu__link", n["fr-sidemenu__link"]),
8084
8142
  "aria-current": r || void 0,
8085
8143
  ...i,
8086
8144
  children: /* @__PURE__ */ m("span", { className: o && `dsfr-plus-sidemenu-title--icon fr-icon-${o} fr-icon--sm`, children: t })
@@ -8103,66 +8161,66 @@ function Nc() {
8103
8161
  if (Wr)
8104
8162
  return re;
8105
8163
  Wr = 1;
8106
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, $ = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8107
- function S(g) {
8108
- if (typeof g == "object" && g !== null) {
8109
- var k = g.$$typeof;
8110
- switch (k) {
8164
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, $ = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8165
+ function S(x) {
8166
+ if (typeof x == "object" && x !== null) {
8167
+ var M = x.$$typeof;
8168
+ switch (M) {
8111
8169
  case e:
8112
- switch (g = g.type, g) {
8170
+ switch (x = x.type, x) {
8113
8171
  case u:
8114
8172
  case a:
8115
8173
  case r:
8116
8174
  case i:
8117
8175
  case o:
8118
8176
  case f:
8119
- return g;
8177
+ return x;
8120
8178
  default:
8121
- switch (g = g && g.$$typeof, g) {
8179
+ switch (x = x && x.$$typeof, x) {
8122
8180
  case s:
8123
8181
  case c:
8124
8182
  case v:
8125
8183
  case d:
8126
8184
  case l:
8127
- return g;
8185
+ return x;
8128
8186
  default:
8129
- return k;
8187
+ return M;
8130
8188
  }
8131
8189
  }
8132
8190
  case n:
8133
- return k;
8191
+ return M;
8134
8192
  }
8135
8193
  }
8136
8194
  }
8137
- function K(g) {
8138
- return S(g) === a;
8139
- }
8140
- return re.AsyncMode = u, re.ConcurrentMode = a, re.ContextConsumer = s, re.ContextProvider = l, re.Element = e, re.ForwardRef = c, re.Fragment = r, re.Lazy = v, re.Memo = d, re.Portal = n, re.Profiler = i, re.StrictMode = o, re.Suspense = f, re.isAsyncMode = function(g) {
8141
- return K(g) || S(g) === u;
8142
- }, re.isConcurrentMode = K, re.isContextConsumer = function(g) {
8143
- return S(g) === s;
8144
- }, re.isContextProvider = function(g) {
8145
- return S(g) === l;
8146
- }, re.isElement = function(g) {
8147
- return typeof g == "object" && g !== null && g.$$typeof === e;
8148
- }, re.isForwardRef = function(g) {
8149
- return S(g) === c;
8150
- }, re.isFragment = function(g) {
8151
- return S(g) === r;
8152
- }, re.isLazy = function(g) {
8153
- return S(g) === v;
8154
- }, re.isMemo = function(g) {
8155
- return S(g) === d;
8156
- }, re.isPortal = function(g) {
8157
- return S(g) === n;
8158
- }, re.isProfiler = function(g) {
8159
- return S(g) === i;
8160
- }, re.isStrictMode = function(g) {
8161
- return S(g) === o;
8162
- }, re.isSuspense = function(g) {
8163
- return S(g) === f;
8164
- }, re.isValidElementType = function(g) {
8165
- return typeof g == "string" || typeof g == "function" || g === r || g === a || g === i || g === o || g === f || g === b || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === d || g.$$typeof === l || g.$$typeof === s || g.$$typeof === c || g.$$typeof === h || g.$$typeof === _ || g.$$typeof === w || g.$$typeof === $);
8195
+ function K(x) {
8196
+ return S(x) === a;
8197
+ }
8198
+ return re.AsyncMode = u, re.ConcurrentMode = a, re.ContextConsumer = s, re.ContextProvider = l, re.Element = e, re.ForwardRef = c, re.Fragment = r, re.Lazy = v, re.Memo = d, re.Portal = n, re.Profiler = i, re.StrictMode = o, re.Suspense = f, re.isAsyncMode = function(x) {
8199
+ return K(x) || S(x) === u;
8200
+ }, re.isConcurrentMode = K, re.isContextConsumer = function(x) {
8201
+ return S(x) === s;
8202
+ }, re.isContextProvider = function(x) {
8203
+ return S(x) === l;
8204
+ }, re.isElement = function(x) {
8205
+ return typeof x == "object" && x !== null && x.$$typeof === e;
8206
+ }, re.isForwardRef = function(x) {
8207
+ return S(x) === c;
8208
+ }, re.isFragment = function(x) {
8209
+ return S(x) === r;
8210
+ }, re.isLazy = function(x) {
8211
+ return S(x) === v;
8212
+ }, re.isMemo = function(x) {
8213
+ return S(x) === d;
8214
+ }, re.isPortal = function(x) {
8215
+ return S(x) === n;
8216
+ }, re.isProfiler = function(x) {
8217
+ return S(x) === i;
8218
+ }, re.isStrictMode = function(x) {
8219
+ return S(x) === o;
8220
+ }, re.isSuspense = function(x) {
8221
+ return S(x) === f;
8222
+ }, re.isValidElementType = function(x) {
8223
+ return typeof x == "string" || typeof x == "function" || x === r || x === a || x === i || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === d || x.$$typeof === l || x.$$typeof === s || x.$$typeof === c || x.$$typeof === h || x.$$typeof === A || x.$$typeof === w || x.$$typeof === $);
8166
8224
  }, re.typeOf = S, re;
8167
8225
  }
8168
8226
  var oe = {};
@@ -8177,17 +8235,17 @@ var oe = {};
8177
8235
  var Gr;
8178
8236
  function Ic() {
8179
8237
  return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
8180
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, $ = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8181
- function S(M) {
8182
- return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8183
- M === r || M === a || M === i || M === o || M === f || M === b || typeof M == "object" && M !== null && (M.$$typeof === v || M.$$typeof === d || M.$$typeof === l || M.$$typeof === s || M.$$typeof === c || M.$$typeof === h || M.$$typeof === _ || M.$$typeof === w || M.$$typeof === $);
8184
- }
8185
- function K(M) {
8186
- if (typeof M == "object" && M !== null) {
8187
- var ye = M.$$typeof;
8238
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, $ = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8239
+ function S(k) {
8240
+ return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8241
+ k === r || k === a || k === i || k === o || k === f || k === p || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === d || k.$$typeof === l || k.$$typeof === s || k.$$typeof === c || k.$$typeof === h || k.$$typeof === A || k.$$typeof === w || k.$$typeof === $);
8242
+ }
8243
+ function K(k) {
8244
+ if (typeof k == "object" && k !== null) {
8245
+ var ye = k.$$typeof;
8188
8246
  switch (ye) {
8189
8247
  case e:
8190
- var Ne = M.type;
8248
+ var Ne = k.type;
8191
8249
  switch (Ne) {
8192
8250
  case u:
8193
8251
  case a:
@@ -8214,47 +8272,47 @@ function Ic() {
8214
8272
  }
8215
8273
  }
8216
8274
  }
8217
- var g = u, k = a, R = s, p = l, A = e, E = c, P = r, B = v, C = d, T = n, q = i, V = o, F = f, ue = !1;
8218
- function ae(M) {
8219
- return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(M) || K(M) === u;
8275
+ var x = u, M = a, R = s, b = l, _ = e, P = c, C = r, B = v, E = d, T = n, q = i, V = o, F = f, ue = !1;
8276
+ function ae(k) {
8277
+ return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(k) || K(k) === u;
8220
8278
  }
8221
- function y(M) {
8222
- return K(M) === a;
8279
+ function y(k) {
8280
+ return K(k) === a;
8223
8281
  }
8224
- function D(M) {
8225
- return K(M) === s;
8282
+ function D(k) {
8283
+ return K(k) === s;
8226
8284
  }
8227
- function z(M) {
8228
- return K(M) === l;
8285
+ function z(k) {
8286
+ return K(k) === l;
8229
8287
  }
8230
- function j(M) {
8231
- return typeof M == "object" && M !== null && M.$$typeof === e;
8288
+ function j(k) {
8289
+ return typeof k == "object" && k !== null && k.$$typeof === e;
8232
8290
  }
8233
- function H(M) {
8234
- return K(M) === c;
8291
+ function H(k) {
8292
+ return K(k) === c;
8235
8293
  }
8236
- function Y(M) {
8237
- return K(M) === r;
8294
+ function Y(k) {
8295
+ return K(k) === r;
8238
8296
  }
8239
- function U(M) {
8240
- return K(M) === v;
8297
+ function U(k) {
8298
+ return K(k) === v;
8241
8299
  }
8242
- function L(M) {
8243
- return K(M) === d;
8300
+ function L(k) {
8301
+ return K(k) === d;
8244
8302
  }
8245
- function N(M) {
8246
- return K(M) === n;
8303
+ function N(k) {
8304
+ return K(k) === n;
8247
8305
  }
8248
- function X(M) {
8249
- return K(M) === i;
8306
+ function X(k) {
8307
+ return K(k) === i;
8250
8308
  }
8251
- function G(M) {
8252
- return K(M) === o;
8309
+ function G(k) {
8310
+ return K(k) === o;
8253
8311
  }
8254
- function J(M) {
8255
- return K(M) === f;
8312
+ function J(k) {
8313
+ return K(k) === f;
8256
8314
  }
8257
- oe.AsyncMode = g, oe.ConcurrentMode = k, oe.ContextConsumer = R, oe.ContextProvider = p, oe.Element = A, oe.ForwardRef = E, oe.Fragment = P, oe.Lazy = B, oe.Memo = C, oe.Portal = T, oe.Profiler = q, oe.StrictMode = V, oe.Suspense = F, oe.isAsyncMode = ae, oe.isConcurrentMode = y, oe.isContextConsumer = D, oe.isContextProvider = z, oe.isElement = j, oe.isForwardRef = H, oe.isFragment = Y, oe.isLazy = U, oe.isMemo = L, oe.isPortal = N, oe.isProfiler = X, oe.isStrictMode = G, oe.isSuspense = J, oe.isValidElementType = S, oe.typeOf = K;
8315
+ oe.AsyncMode = x, oe.ConcurrentMode = M, oe.ContextConsumer = R, oe.ContextProvider = b, oe.Element = _, oe.ForwardRef = P, oe.Fragment = C, oe.Lazy = B, oe.Memo = E, oe.Portal = T, oe.Profiler = q, oe.StrictMode = V, oe.Suspense = F, oe.isAsyncMode = ae, oe.isConcurrentMode = y, oe.isContextConsumer = D, oe.isContextProvider = z, oe.isElement = j, oe.isForwardRef = H, oe.isFragment = Y, oe.isLazy = U, oe.isMemo = L, oe.isPortal = N, oe.isProfiler = X, oe.isStrictMode = G, oe.isSuspense = J, oe.isValidElementType = S, oe.typeOf = K;
8258
8316
  }()), oe;
8259
8317
  }
8260
8318
  var qr;
@@ -8306,8 +8364,8 @@ function Bc() {
8306
8364
  e.call(s, f) && (u[f] = s[f]);
8307
8365
  if (t) {
8308
8366
  a = t(s);
8309
- for (var b = 0; b < a.length; b++)
8310
- n.call(s, a[b]) && (u[a[b]] = s[a[b]]);
8367
+ for (var p = 0; p < a.length; p++)
8368
+ n.call(s, a[p]) && (u[a[p]] = s[a[p]]);
8311
8369
  }
8312
8370
  }
8313
8371
  return u;
@@ -8350,10 +8408,10 @@ function Oc() {
8350
8408
  var f;
8351
8409
  try {
8352
8410
  if (typeof i[c] != "function") {
8353
- var b = Error(
8411
+ var p = Error(
8354
8412
  (u || "React class") + ": " + s + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
8355
8413
  );
8356
- throw b.name = "Invariant Violation", b;
8414
+ throw p.name = "Invariant Violation", p;
8357
8415
  }
8358
8416
  f = i[c](l, c, u, s, null, e);
8359
8417
  } catch (v) {
@@ -8400,26 +8458,26 @@ function Rc() {
8400
8458
  if (typeof D == "function")
8401
8459
  return D;
8402
8460
  }
8403
- var b = "<<anonymous>>", d = {
8404
- array: _("array"),
8405
- bigint: _("bigint"),
8406
- bool: _("boolean"),
8407
- func: _("function"),
8408
- number: _("number"),
8409
- object: _("object"),
8410
- string: _("string"),
8411
- symbol: _("symbol"),
8461
+ var p = "<<anonymous>>", d = {
8462
+ array: A("array"),
8463
+ bigint: A("bigint"),
8464
+ bool: A("boolean"),
8465
+ func: A("function"),
8466
+ number: A("number"),
8467
+ object: A("object"),
8468
+ string: A("string"),
8469
+ symbol: A("symbol"),
8412
8470
  any: w(),
8413
8471
  arrayOf: S,
8414
8472
  element: K(),
8415
- elementType: g(),
8416
- instanceOf: k,
8417
- node: E(),
8418
- objectOf: p,
8473
+ elementType: x(),
8474
+ instanceOf: M,
8475
+ node: P(),
8476
+ objectOf: b,
8419
8477
  oneOf: R,
8420
- oneOfType: A,
8478
+ oneOfType: _,
8421
8479
  shape: B,
8422
- exact: C
8480
+ exact: E
8423
8481
  };
8424
8482
  function v(y, D) {
8425
8483
  return y === D ? y !== 0 || 1 / y === 1 / D : y !== y && D !== D;
@@ -8432,12 +8490,12 @@ function Rc() {
8432
8490
  if (process.env.NODE_ENV !== "production")
8433
8491
  var D = {}, z = 0;
8434
8492
  function j(Y, U, L, N, X, G, J) {
8435
- if (N = N || b, G = G || L, J !== n) {
8493
+ if (N = N || p, G = G || L, J !== n) {
8436
8494
  if (u) {
8437
- var M = new Error(
8495
+ var k = new Error(
8438
8496
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
8439
8497
  );
8440
- throw M.name = "Invariant Violation", M;
8498
+ throw k.name = "Invariant Violation", k;
8441
8499
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
8442
8500
  var ye = N + ":" + L;
8443
8501
  !D[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -8451,7 +8509,7 @@ function Rc() {
8451
8509
  var H = j.bind(null, !1);
8452
8510
  return H.isRequired = j.bind(null, !0), H;
8453
8511
  }
8454
- function _(y) {
8512
+ function A(y) {
8455
8513
  function D(z, j, H, Y, U, L) {
8456
8514
  var N = z[j], X = V(N);
8457
8515
  if (X !== y) {
@@ -8497,7 +8555,7 @@ function Rc() {
8497
8555
  }
8498
8556
  return h(y);
8499
8557
  }
8500
- function g() {
8558
+ function x() {
8501
8559
  function y(D, z, j, H, Y) {
8502
8560
  var U = D[z];
8503
8561
  if (!t.isValidElementType(U)) {
@@ -8508,10 +8566,10 @@ function Rc() {
8508
8566
  }
8509
8567
  return h(y);
8510
8568
  }
8511
- function k(y) {
8569
+ function M(y) {
8512
8570
  function D(z, j, H, Y, U) {
8513
8571
  if (!(z[j] instanceof y)) {
8514
- var L = y.name || b, N = ae(z[j]);
8572
+ var L = y.name || p, N = ae(z[j]);
8515
8573
  return new $("Invalid " + Y + " `" + U + "` of type " + ("`" + N + "` supplied to `" + H + "`, expected ") + ("instance of `" + L + "`."));
8516
8574
  }
8517
8575
  return null;
@@ -8527,15 +8585,15 @@ function Rc() {
8527
8585
  for (var L = z[j], N = 0; N < y.length; N++)
8528
8586
  if (v(L, y[N]))
8529
8587
  return null;
8530
- var X = JSON.stringify(y, function(J, M) {
8531
- var ye = F(M);
8532
- return ye === "symbol" ? String(M) : M;
8588
+ var X = JSON.stringify(y, function(J, k) {
8589
+ var ye = F(k);
8590
+ return ye === "symbol" ? String(k) : k;
8533
8591
  });
8534
8592
  return new $("Invalid " + Y + " `" + U + "` of value `" + String(L) + "` " + ("supplied to `" + H + "`, expected one of " + X + "."));
8535
8593
  }
8536
8594
  return h(D);
8537
8595
  }
8538
- function p(y) {
8596
+ function b(y) {
8539
8597
  function D(z, j, H, Y, U) {
8540
8598
  if (typeof y != "function")
8541
8599
  return new $("Property `" + U + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
@@ -8552,7 +8610,7 @@ function Rc() {
8552
8610
  }
8553
8611
  return h(D);
8554
8612
  }
8555
- function A(y) {
8613
+ function _(y) {
8556
8614
  if (!Array.isArray(y))
8557
8615
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
8558
8616
  for (var D = 0; D < y.length; D++) {
@@ -8564,23 +8622,23 @@ function Rc() {
8564
8622
  }
8565
8623
  function j(H, Y, U, L, N) {
8566
8624
  for (var X = [], G = 0; G < y.length; G++) {
8567
- var J = y[G], M = J(H, Y, U, L, N, n);
8568
- if (M == null)
8625
+ var J = y[G], k = J(H, Y, U, L, N, n);
8626
+ if (k == null)
8569
8627
  return null;
8570
- M.data && r(M.data, "expectedType") && X.push(M.data.expectedType);
8628
+ k.data && r(k.data, "expectedType") && X.push(k.data.expectedType);
8571
8629
  }
8572
8630
  var ye = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
8573
8631
  return new $("Invalid " + L + " `" + N + "` supplied to " + ("`" + U + "`" + ye + "."));
8574
8632
  }
8575
8633
  return h(j);
8576
8634
  }
8577
- function E() {
8635
+ function P() {
8578
8636
  function y(D, z, j, H, Y) {
8579
8637
  return T(D[z]) ? null : new $("Invalid " + H + " `" + Y + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
8580
8638
  }
8581
8639
  return h(y);
8582
8640
  }
8583
- function P(y, D, z, j, H) {
8641
+ function C(y, D, z, j, H) {
8584
8642
  return new $(
8585
8643
  (y || "React class") + ": " + D + " type `" + z + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
8586
8644
  );
@@ -8593,7 +8651,7 @@ function Rc() {
8593
8651
  for (var X in y) {
8594
8652
  var G = y[X];
8595
8653
  if (typeof G != "function")
8596
- return P(H, Y, U, X, F(G));
8654
+ return C(H, Y, U, X, F(G));
8597
8655
  var J = G(L, X, H, Y, U + "." + X, n);
8598
8656
  if (J)
8599
8657
  return J;
@@ -8602,7 +8660,7 @@ function Rc() {
8602
8660
  }
8603
8661
  return h(D);
8604
8662
  }
8605
- function C(y) {
8663
+ function E(y) {
8606
8664
  function D(z, j, H, Y, U) {
8607
8665
  var L = z[j], N = V(L);
8608
8666
  if (N !== "object")
@@ -8611,15 +8669,15 @@ function Rc() {
8611
8669
  for (var G in X) {
8612
8670
  var J = y[G];
8613
8671
  if (r(y, G) && typeof J != "function")
8614
- return P(H, Y, U, G, F(J));
8672
+ return C(H, Y, U, G, F(J));
8615
8673
  if (!J)
8616
8674
  return new $(
8617
8675
  "Invalid " + Y + " `" + U + "` key `" + G + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(z[j], null, " ") + `
8618
8676
  Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
8619
8677
  );
8620
- var M = J(L, G, H, Y, U + "." + G, n);
8621
- if (M)
8622
- return M;
8678
+ var k = J(L, G, H, Y, U + "." + G, n);
8679
+ if (k)
8680
+ return k;
8623
8681
  }
8624
8682
  return null;
8625
8683
  }
@@ -8692,7 +8750,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
8692
8750
  }
8693
8751
  }
8694
8752
  function ae(y) {
8695
- return !y.constructor || !y.constructor.name ? b : y.constructor.name;
8753
+ return !y.constructor || !y.constructor.name ? p : y.constructor.name;
8696
8754
  }
8697
8755
  return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
8698
8756
  }, gn;
@@ -8710,10 +8768,10 @@ function Vc() {
8710
8768
  return n.resetWarningCache = e, $n = function() {
8711
8769
  function r(l, s, u, a, c, f) {
8712
8770
  if (f !== t) {
8713
- var b = new Error(
8771
+ var p = new Error(
8714
8772
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
8715
8773
  );
8716
- throw b.name = "Invariant Violation", b;
8774
+ throw p.name = "Invariant Violation", p;
8717
8775
  }
8718
8776
  }
8719
8777
  r.isRequired = r;
@@ -8785,7 +8843,7 @@ rs.propTypes = {
8785
8843
  rs.defaultProps = {
8786
8844
  size: 48
8787
8845
  };
8788
- const kd = ({
8846
+ const Nd = ({
8789
8847
  className: t,
8790
8848
  currentStep: e,
8791
8849
  currentTitle: n,
@@ -8793,7 +8851,7 @@ const kd = ({
8793
8851
  steps: o,
8794
8852
  titleAs: i = "h4",
8795
8853
  ...l
8796
- }) => /* @__PURE__ */ O("div", { className: x("fr-stepper", t), ...l, children: [
8854
+ }) => /* @__PURE__ */ O("div", { className: g("fr-stepper", t), ...l, children: [
8797
8855
  /* @__PURE__ */ O(i, { className: "fr-stepper__title", children: [
8798
8856
  /* @__PURE__ */ m("span", { className: "fr-stepper__state", children: `Étape ${e} sur ${o}` }),
8799
8857
  n
@@ -8811,13 +8869,13 @@ const kd = ({
8811
8869
  "div",
8812
8870
  {
8813
8871
  id: `${e}-panel`,
8814
- className: x("fr-tabs__panel", t),
8872
+ className: g("fr-tabs__panel", t),
8815
8873
  role: "tabpanel",
8816
8874
  "aria-labelledby": `${e}-button`,
8817
8875
  tabIndex: n["aria-selected"] ? -1 : 0,
8818
8876
  ...n
8819
8877
  }
8820
- ), Nd = ({
8878
+ ), Id = ({
8821
8879
  className: t,
8822
8880
  children: e,
8823
8881
  defaultActiveIndex: n = 0,
@@ -8825,7 +8883,7 @@ const kd = ({
8825
8883
  onTabChange: o,
8826
8884
  ...i
8827
8885
  }) => {
8828
- const l = ie(), s = i.id || l, u = fe(e, Yc).filter((a) => $e(a)).map(
8886
+ const l = ie(), s = i.id || l, u = de(e, Yc).filter((a) => $e(a)).map(
8829
8887
  (a, c) => _e(
8830
8888
  a,
8831
8889
  { index: `${s}-${c}` }
@@ -8835,17 +8893,17 @@ const kd = ({
8835
8893
  "div",
8836
8894
  {
8837
8895
  id: s,
8838
- className: x("fr-tabs", t),
8896
+ className: g("fr-tabs", t),
8839
8897
  ...i,
8840
8898
  children: [
8841
- /* @__PURE__ */ m("ul", { className: x("fr-tabs__list", r.ul), role: "tablist", children: u.map((a, c) => /* @__PURE__ */ m("li", { className: x(r.li), role: "presentation", children: /* @__PURE__ */ m(
8899
+ /* @__PURE__ */ m("ul", { className: g("fr-tabs__list", r.ul), role: "tablist", children: u.map((a, c) => /* @__PURE__ */ m("li", { className: g(r.li), role: "presentation", children: /* @__PURE__ */ m(
8842
8900
  "button",
8843
8901
  {
8844
8902
  onClick: (f) => {
8845
8903
  o && (o(c), f.preventDefault());
8846
8904
  },
8847
8905
  id: `${s}-${c}-button`,
8848
- className: x(
8906
+ className: g(
8849
8907
  "fr-tabs__tab",
8850
8908
  {
8851
8909
  [`fr-icon-${a.props.icon}`]: $e(a) && a.props.icon,
@@ -8865,7 +8923,7 @@ const kd = ({
8865
8923
  }
8866
8924
  );
8867
8925
  };
8868
- const nr = me, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o }) => x("fr-tag", t, {
8926
+ const nr = be, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o }) => g("fr-tag", t, {
8869
8927
  "fr-tag--sm": o === "sm",
8870
8928
  [`fr-icon-${n}`]: n,
8871
8929
  [`fr-tag--icon-${r}`]: n && r,
@@ -8918,7 +8976,7 @@ const nr = me, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o
8918
8976
  size: i,
8919
8977
  ...l
8920
8978
  }, s) => {
8921
- const u = x("fr-tag--dismiss", rr({ className: e, color: n, icon: r, iconPosition: o, size: i }));
8979
+ const u = g("fr-tag--dismiss", rr({ className: e, color: n, icon: r, iconPosition: o, size: i }));
8922
8980
  return /* @__PURE__ */ m(
8923
8981
  t === "a" ? he : t || "button",
8924
8982
  {
@@ -8927,12 +8985,12 @@ const nr = me, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o
8927
8985
  ...l
8928
8986
  }
8929
8987
  );
8930
- }), Id = ({
8988
+ }), Bd = ({
8931
8989
  className: t,
8932
8990
  children: e,
8933
8991
  ...n
8934
8992
  }) => {
8935
- const r = ie(), o = x("fr-tags-group", t);
8993
+ const r = ie(), o = g("fr-tags-group", t);
8936
8994
  return /* @__PURE__ */ m("ul", { className: o, ...je(n), children: et(e, [Xc, Zc, Jc]).map((i, l) => /* @__PURE__ */ m("li", { children: i }, `${r}-${l}`)) });
8937
8995
  }, to = ({
8938
8996
  alt: t,
@@ -8942,19 +9000,19 @@ const nr = me, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o
8942
9000
  size: o,
8943
9001
  ...i
8944
9002
  }) => {
8945
- const l = x(r, {
9003
+ const l = g(r, {
8946
9004
  "fr-text--alt": o !== "lead" && t,
8947
9005
  "fr-text--heavy": n,
8948
9006
  [`fr-text--${o}`]: o && o !== "md"
8949
9007
  });
8950
9008
  return /* @__PURE__ */ m(e, { className: l, ...i });
8951
- }, Bd = ({
9009
+ }, Od = ({
8952
9010
  as: t = "h1",
8953
9011
  className: e,
8954
9012
  look: n,
8955
9013
  ...r
8956
9014
  }) => {
8957
- const o = n && ["xs", "sm", "md", "lg", "xl"].includes(n), i = x(e, {
9015
+ const o = n && ["xs", "sm", "md", "lg", "xl"].includes(n), i = g(e, {
8958
9016
  [`fr-${n}`]: !o && n && n !== t,
8959
9017
  [`fr-display-${n}`]: o
8960
9018
  });
@@ -8971,10 +9029,10 @@ function Qc(t, e) {
8971
9029
  const ed = ({ autoDismissAfter: t = 3e3, description: e = "", id: n, remove: r = () => {
8972
9030
  }, title: o = "", type: i = "success" }) => {
8973
9031
  const l = {
9032
+ error: "fr-icon-close-circle-fill",
8974
9033
  info: "fr-icon-information-fill",
8975
- warning: "fr-icon-error-warning-fill",
8976
9034
  success: "fr-icon-checkbox-circle-fill",
8977
- error: "fr-icon-close-circle-fill"
9035
+ warning: "fr-icon-error-warning-fill"
8978
9036
  }, s = te(() => {
8979
9037
  var c;
8980
9038
  (c = document.getElementById(n)) == null || c.style.setProperty("animation", "toast-unmount 1000ms"), setTimeout(() => {
@@ -9017,7 +9075,7 @@ const ed = ({ autoDismissAfter: t = 3e3, description: e = "", id: n, remove: r =
9017
9075
  function td({ children: t }) {
9018
9076
  return /* @__PURE__ */ m("div", { id: "toast-container", children: t });
9019
9077
  }
9020
- const os = Rt({}), Od = ({
9078
+ const os = Rt({}), Rd = ({
9021
9079
  children: t
9022
9080
  }) => {
9023
9081
  const [e, n] = Z([]), r = te((s) => {
@@ -9041,7 +9099,7 @@ const os = Rt({}), Od = ({
9041
9099
  t,
9042
9100
  as(l, document.body)
9043
9101
  ] });
9044
- }, Rd = () => Se(os), nd = me(({
9102
+ }, Vd = () => Se(os), nd = be(({
9045
9103
  className: t,
9046
9104
  css: e = {},
9047
9105
  hasLabelLeft: n,
@@ -9050,7 +9108,7 @@ const os = Rt({}), Od = ({
9050
9108
  label: i,
9051
9109
  ...l
9052
9110
  }, s) => {
9053
- const u = ie(), a = l.id || u, c = x("fr-toggle", {
9111
+ const u = ie(), a = l.id || u, c = g("fr-toggle", {
9054
9112
  "fr-toggle--border-bottom": r,
9055
9113
  "fr-toggle--label-left": n
9056
9114
  }, t);
@@ -9064,7 +9122,7 @@ const os = Rt({}), Od = ({
9064
9122
  {
9065
9123
  ref: s,
9066
9124
  type: "checkbox",
9067
- className: x("fr-toggle__input", e["fr-toggle__input"]),
9125
+ className: g("fr-toggle__input", e["fr-toggle__input"]),
9068
9126
  id: a,
9069
9127
  ...je(l, { exclude: ["type"] })
9070
9128
  }
@@ -9072,85 +9130,147 @@ const os = Rt({}), Od = ({
9072
9130
  /* @__PURE__ */ m(
9073
9131
  "label",
9074
9132
  {
9075
- className: x("fr-toggle__label", e["fr-toggle__label"]),
9133
+ className: g("fr-toggle__label", e["fr-toggle__label"]),
9076
9134
  htmlFor: a,
9077
9135
  "data-fr-checked-label": "Activé",
9078
9136
  "data-fr-unchecked-label": "Désactivé",
9079
9137
  children: i
9080
9138
  }
9081
9139
  ),
9082
- o && /* @__PURE__ */ m("p", { className: x("fr-hint-text", e["fr-hint-text"]), children: o })
9140
+ o && /* @__PURE__ */ m("p", { className: g("fr-hint-text", e["fr-hint-text"]), children: o })
9083
9141
  ]
9084
9142
  }
9085
9143
  );
9086
- }), Vd = ({ children: t, className: e, ...n }) => {
9144
+ }), zd = ({ children: t, className: e, ...n }) => {
9087
9145
  const r = ie();
9088
- return /* @__PURE__ */ m("ul", { className: x("fr-toggle__list", e), ...je(n), children: fe(t, nd).map((o, i) => /* @__PURE__ */ m("li", { children: o }, `${r}-${i}`)) });
9146
+ return /* @__PURE__ */ m("ul", { className: g("fr-toggle__list", e), ...je(n), children: de(t, nd).map((o, i) => /* @__PURE__ */ m("li", { children: o }, `${r}-${i}`)) });
9147
+ }, rd = be(({
9148
+ className: t,
9149
+ icon: e,
9150
+ id: n,
9151
+ label: r,
9152
+ name: o,
9153
+ ...i
9154
+ }, l) => /* @__PURE__ */ O("div", { className: g("fr-segmented__element"), style: { width: "100%" }, children: [
9155
+ /* @__PURE__ */ m(
9156
+ "input",
9157
+ {
9158
+ id: n,
9159
+ name: o,
9160
+ ref: l,
9161
+ type: "radio",
9162
+ ...i
9163
+ }
9164
+ ),
9165
+ /* @__PURE__ */ m(
9166
+ "label",
9167
+ {
9168
+ className: g("fr-label", e),
9169
+ htmlFor: n,
9170
+ children: r
9171
+ }
9172
+ )
9173
+ ] })), jd = ({
9174
+ children: t,
9175
+ className: e,
9176
+ isVertical: n,
9177
+ label: r,
9178
+ legendInline: o,
9179
+ name: i,
9180
+ onChangeValue: l,
9181
+ value: s,
9182
+ ...u
9183
+ }) => {
9184
+ const a = ie(), c = g("fr-segmented", e), f = {};
9185
+ return n && (f.style = { display: "block" }), /* @__PURE__ */ O(
9186
+ "fieldset",
9187
+ {
9188
+ className: c,
9189
+ id: a,
9190
+ ...f,
9191
+ ...u,
9192
+ children: [
9193
+ r && /* @__PURE__ */ m("legend", { className: g("fr-segmented__legend", { "fr-segmented__legend--inline": o }), children: r }),
9194
+ de(t, rd).map((p, d) => {
9195
+ if (Q.isValidElement(p))
9196
+ return /* @__PURE__ */ m("div", { className: g("fr-segmented__elements"), children: Q.cloneElement(p, {
9197
+ name: i,
9198
+ id: `${i}-${d}`,
9199
+ onChange: () => {
9200
+ l == null || l(p.props.value), p.props.onChange();
9201
+ }
9202
+ }) });
9203
+ })
9204
+ ]
9205
+ }
9206
+ );
9089
9207
  };
9090
9208
  export {
9091
9209
  fs as Accordion,
9092
- sd as AccordionGroup,
9093
- ud as Alert,
9210
+ ud as AccordionGroup,
9211
+ ad as Alert,
9094
9212
  ac as Autocomplete,
9095
- dd as AutocompleteItem,
9213
+ fd as AutocompleteItem,
9096
9214
  dc as Badge,
9097
- fd as BadgeGroup,
9098
- pd as Breadcrumb,
9215
+ pd as BadgeGroup,
9216
+ bd as Breadcrumb,
9099
9217
  ut as Button,
9100
- bd as ButtonGroup,
9101
- md as Checkbox,
9102
- gd as Col,
9218
+ md as ButtonGroup,
9219
+ vd as Checkbox,
9220
+ $d as Col,
9103
9221
  bc as Container,
9104
- cd as DSFRConfig,
9222
+ dd as DSFRConfig,
9105
9223
  Jc as DissmissibleTag,
9106
9224
  vc as FastAccess,
9107
- vd as Fieldset,
9108
- hd as FileUpload,
9109
- $d as Header,
9225
+ hd as Fieldset,
9226
+ gd as FileUpload,
9227
+ yd as Header,
9110
9228
  Vt as Item,
9111
9229
  he as Link,
9112
- Cd as Listbox,
9113
- Ed as ListboxItem,
9114
- Pd as ListboxSection,
9230
+ Ed as Listbox,
9231
+ Pd as ListboxItem,
9232
+ wd as ListboxSection,
9115
9233
  yc as Logo,
9116
- wd as MenuButton,
9117
- Sd as MenuItem,
9118
- Td as MenuSection,
9119
- _d as Modal,
9234
+ Sd as MenuButton,
9235
+ Td as MenuItem,
9236
+ _d as MenuSection,
9237
+ Ad as Modal,
9120
9238
  Bt as ModalClose,
9121
9239
  Jl as ModalContent,
9122
9240
  Ql as ModalFooter,
9123
9241
  Zl as ModalTitle,
9124
9242
  $c as Nav,
9125
9243
  Yl as NavItem,
9126
- Ad as Notice,
9244
+ Kd as Notice,
9127
9245
  hc as Operator,
9128
- Kd as Radio,
9246
+ Dd as Radio,
9129
9247
  Hr as Row,
9130
9248
  gc as SearchBar,
9131
9249
  lo as Section,
9132
- Dd as Select,
9133
- Fd as SelectOption,
9250
+ jd as SegmentedControl,
9251
+ rd as SegmentedElement,
9252
+ Fd as Select,
9253
+ Ld as SelectOption,
9134
9254
  Zc as SelectableTag,
9135
9255
  mc as Service,
9136
- Ld as SideMenu,
9256
+ Md as SideMenu,
9137
9257
  es as SideMenuItem,
9138
- Md as SideMenuLink,
9258
+ kd as SideMenuLink,
9139
9259
  rs as Spinner,
9140
- kd as Stepper,
9260
+ Nd as Stepper,
9141
9261
  Yc as Tab,
9142
- Nd as Tabs,
9262
+ Id as Tabs,
9143
9263
  Xc as Tag,
9144
- Id as TagGroup,
9264
+ Bd as TagGroup,
9145
9265
  to as Text,
9146
- xd as TextArea,
9147
- yd as TextInput,
9148
- Bd as Title,
9266
+ Cd as TextArea,
9267
+ xd as TextInput,
9268
+ Od as Title,
9149
9269
  ed as Toast,
9150
- Od as ToastContextProvider,
9270
+ Rd as ToastContextProvider,
9151
9271
  nd as Toggle,
9152
- Vd as ToggleGroup,
9153
- ad as useAutocompleteList,
9272
+ zd as ToggleGroup,
9273
+ cd as useAutocompleteList,
9154
9274
  bt as useDSFRConfig,
9155
- Rd as useToast
9275
+ Vd as useToast
9156
9276
  };