@sellgar/kit 0.0.178 → 0.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3027,18 +3027,18 @@ var Ri = (function(e) {
3027
3027
  this.register = function(r) {
3028
3028
  var o;
3029
3029
  if (gc.includes(r.type)) {
3030
- var a = (o = r._wrapperState) !== null && o !== void 0 ? o : {}, c = a.initialValue, u = c === void 0 ? "" : c, d = a.controlled, m = d !== void 0 && d, f = n({ initialValue: r.value || u, controlled: m }), h = f.value, p = f.options, g = { value: h, options: p, fallbackOptions: p }, v = { id: -1, cachedId: -1 }, y = { value: "", selectionStart: 0, selectionEnd: 0 }, _ = Object.getOwnPropertyDescriptor("_valueTracker" in r ? r : HTMLInputElement.prototype, "value");
3031
- Object.defineProperty(r, "value", hc(hc({}, _), {}, { set: function(x) {
3030
+ var a = (o = r._wrapperState) !== null && o !== void 0 ? o : {}, c = a.initialValue, u = c === void 0 ? "" : c, d = a.controlled, m = d !== void 0 && d, f = n({ initialValue: r.value || u, controlled: m }), h = f.value, p = f.options, g = { value: h, options: p, fallbackOptions: p }, v = { id: -1, cachedId: -1 }, b = { value: "", selectionStart: 0, selectionEnd: 0 }, w = Object.getOwnPropertyDescriptor("_valueTracker" in r ? r : HTMLInputElement.prototype, "value");
3031
+ Object.defineProperty(r, "value", hc(hc({}, w), {}, { set: function(x) {
3032
3032
  var L;
3033
- y.value = x, _ == null || (L = _.set) === null || L === void 0 || L.call(r, x);
3033
+ b.value = x, w == null || (L = w.set) === null || L === void 0 || L.call(r, x);
3034
3034
  } })), r.value = h;
3035
- var w = function() {
3035
+ var _ = function() {
3036
3036
  var x = function() {
3037
3037
  var L, D;
3038
- y.selectionStart = (L = r.selectionStart) !== null && L !== void 0 ? L : 0, y.selectionEnd = (D = r.selectionEnd) !== null && D !== void 0 ? D : 0, v.id = window.setTimeout(x);
3038
+ b.selectionStart = (L = r.selectionStart) !== null && L !== void 0 ? L : 0, b.selectionEnd = (D = r.selectionEnd) !== null && D !== void 0 ? D : 0, v.id = window.setTimeout(x);
3039
3039
  };
3040
3040
  v.id = window.setTimeout(x);
3041
- }, b = function() {
3041
+ }, y = function() {
3042
3042
  window.clearTimeout(v.id), v.id = -1, v.cachedId = -1;
3043
3043
  }, S = function(x) {
3044
3044
  try {
@@ -3047,22 +3047,22 @@ var Ri = (function(e) {
3047
3047
  v.cachedId = v.id;
3048
3048
  var P = r.value, C = r.selectionStart, N = r.selectionEnd;
3049
3049
  if (C === null || N === null) throw new Ri("The selection attributes have not been initialized.");
3050
- var z, B = y.value;
3051
- if (x.inputType === void 0 && (y.selectionStart = 0, y.selectionEnd = B.length), C > y.selectionStart ? z = "insert" : C <= y.selectionStart && C < y.selectionEnd ? z = "deleteBackward" : C === y.selectionEnd && P.length < B.length && (z = "deleteForward"), z === void 0 || (z === "deleteBackward" || z === "deleteForward") && P.length > B.length) throw new Ri("Input type detection error.");
3052
- var E = "", R = y.selectionStart, Y = y.selectionEnd;
3053
- if (z === "insert") E = P.slice(y.selectionStart, C);
3050
+ var z, B = b.value;
3051
+ if (x.inputType === void 0 && (b.selectionStart = 0, b.selectionEnd = B.length), C > b.selectionStart ? z = "insert" : C <= b.selectionStart && C < b.selectionEnd ? z = "deleteBackward" : C === b.selectionEnd && P.length < B.length && (z = "deleteForward"), z === void 0 || (z === "deleteBackward" || z === "deleteForward") && P.length > B.length) throw new Ri("Input type detection error.");
3052
+ var E = "", R = b.selectionStart, Y = b.selectionEnd;
3053
+ if (z === "insert") E = P.slice(b.selectionStart, C);
3054
3054
  else {
3055
3055
  var T = B.length - P.length;
3056
3056
  R = C, Y = C + T;
3057
3057
  }
3058
3058
  g.value !== B ? g.options = g.fallbackOptions : g.fallbackOptions = g.options;
3059
3059
  var k = g.options, $ = i({ inputType: z, previousValue: B, previousOptions: k, value: P, addedValue: E, changeStart: R, changeEnd: Y, selectionStart: C, selectionEnd: N }), K = $.options, U = lp($, rp);
3060
- r.value = U.value, r.setSelectionRange(U.selectionStart, U.selectionEnd), g.value = U.value, g.options = K, y.selectionStart = U.selectionStart, y.selectionEnd = U.selectionEnd, (L = r._valueTracker) === null || L === void 0 || (D = L.setValue) === null || D === void 0 || D.call(L, B);
3060
+ r.value = U.value, r.setSelectionRange(U.selectionStart, U.selectionEnd), g.value = U.value, g.options = K, b.selectionStart = U.selectionStart, b.selectionEnd = U.selectionEnd, (L = r._valueTracker) === null || L === void 0 || (D = L.setValue) === null || D === void 0 || D.call(L, B);
3061
3061
  } catch (j) {
3062
- if (r.value = y.value, r.setSelectionRange(y.selectionStart, y.selectionEnd), x.preventDefault(), x.stopPropagation(), j.name !== "SyntheticChangeError") throw j;
3062
+ if (r.value = b.value, r.setSelectionRange(b.selectionStart, b.selectionEnd), x.preventDefault(), x.stopPropagation(), j.name !== "SyntheticChangeError") throw j;
3063
3063
  }
3064
3064
  };
3065
- document.activeElement === r && w(), r.addEventListener("focus", w), r.addEventListener("blur", b), r.addEventListener("input", S), l.set(r, { onFocus: w, onBlur: b, onInput: S });
3065
+ document.activeElement === r && _(), r.addEventListener("focus", _), r.addEventListener("blur", y), r.addEventListener("input", S), l.set(r, { onFocus: _, onBlur: y, onInput: S });
3066
3066
  } else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(gc.join(", "), "."));
3067
3067
  }, this.unregister = function(r) {
3068
3068
  var o = l.get(r);
@@ -3095,29 +3095,29 @@ var ed = (function(e) {
3095
3095
  return S.length > 1;
3096
3096
  }));
3097
3097
  v.length > 0 && console.error($o(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(v.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
3098
- for (var y = p.slice(0, h.length), _ = -1, w = 0; w < y.length; w++) {
3099
- var b = Object.prototype.hasOwnProperty.call(g, y[w]);
3100
- if (!(y[w] === h[w] || b && g[y[w]].test(h[w]))) {
3101
- _ = w;
3098
+ for (var b = p.slice(0, h.length), w = -1, _ = 0; _ < b.length; _++) {
3099
+ var y = Object.prototype.hasOwnProperty.call(g, b[_]);
3100
+ if (!(b[_] === h[_] || y && g[b[_]].test(h[_]))) {
3101
+ w = _;
3102
3102
  break;
3103
3103
  }
3104
3104
  }
3105
- _ !== -1 && console.error($o(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(_, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(h, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
3105
+ w !== -1 && console.error($o(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(w, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(h, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
3106
3106
  })({ initialValue: r, mask: c, replacement: u }), { value: r, options: { mask: c, replacement: u, separate: d } };
3107
3107
  }, tracking: function(l) {
3108
- var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = wi(i), f = m.track, h = m.modify, p = Zh(m, op), g = p.mask, v = p.replacement, y = p.showMask, _ = p.separate, w = Ql(Ql({}, r === "insert" ? { inputType: r, data: c } : { inputType: r, data: null }), {}, { value: o, selectionStart: u, selectionEnd: d }), b = f?.(w);
3109
- if (b === !1) throw new Ri("Custom tracking stop.");
3110
- b === null ? c = "" : b !== !0 && b !== void 0 && (c = b);
3111
- var S = h?.(w);
3112
- S?.mask !== void 0 && (g = S.mask), S?.replacement !== void 0 && (v = typeof S?.replacement == "string" ? Hi(S?.replacement) : S.replacement), S?.showMask !== void 0 && (y = S.showMask), S?.separate !== void 0 && (_ = S.separate);
3108
+ var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = wi(i), f = m.track, h = m.modify, p = Zh(m, op), g = p.mask, v = p.replacement, b = p.showMask, w = p.separate, _ = Ql(Ql({}, r === "insert" ? { inputType: r, data: c } : { inputType: r, data: null }), {}, { value: o, selectionStart: u, selectionEnd: d }), y = f?.(_);
3109
+ if (y === !1) throw new Ri("Custom tracking stop.");
3110
+ y === null ? c = "" : y !== !0 && y !== void 0 && (c = y);
3111
+ var S = h?.(_);
3112
+ S?.mask !== void 0 && (g = S.mask), S?.replacement !== void 0 && (v = typeof S?.replacement == "string" ? Hi(S?.replacement) : S.replacement), S?.showMask !== void 0 && (b = S.showMask), S?.separate !== void 0 && (w = S.separate);
3113
3113
  var x = gs(o, Ql({ end: u }, a)), L = gs(o, Ql({ start: d }, a)), D = RegExp("[^".concat(Object.keys(v).join(""), "]"), "g"), P = g.replace(D, "");
3114
- if (x && (x = hl(x, { replacementChars: P, replacement: v, separate: _ }), P = P.slice(x.length)), c && (c = hl(c, { replacementChars: P, replacement: v, separate: !1 }), P = P.slice(c.length)), r === "insert" && c === "") throw new Ri("The character does not match the key value of the `replacement` object.");
3115
- if (_) {
3114
+ if (x && (x = hl(x, { replacementChars: P, replacement: v, separate: w }), P = P.slice(x.length)), c && (c = hl(c, { replacementChars: P, replacement: v, separate: !1 }), P = P.slice(c.length)), r === "insert" && c === "") throw new Ri("The character does not match the key value of the `replacement` object.");
3115
+ if (w) {
3116
3116
  var C = g.slice(u, d).replace(D, ""), N = C.length - c.length;
3117
3117
  N < 0 ? L = L.slice(-N) : N > 0 && (L = C.slice(-N) + L);
3118
3118
  }
3119
- L && (L = hl(L, { replacementChars: P, replacement: v, separate: _ }));
3120
- var z = Gu(x + c + L, { mask: g, replacement: v, separate: _, showMask: y }), B = (function(E) {
3119
+ L && (L = hl(L, { replacementChars: P, replacement: v, separate: w }));
3120
+ var z = Gu(x + c + L, { mask: g, replacement: v, separate: w, showMask: b }), B = (function(E) {
3121
3121
  var R, Y, T, k = E.inputType, $ = E.value, K = E.addedValue, U = E.beforeChangeValue, j = E.mask, O = E.replacement, M = E.separate, A = Ku($, { mask: j, replacement: O }).filter((function(J) {
3122
3122
  var ce = J.type;
3123
3123
  return ce === "input" || M && ce === "replacement";
@@ -3139,8 +3139,8 @@ var ed = (function(e) {
3139
3139
  return Object.prototype.hasOwnProperty.call(O, J);
3140
3140
  }));
3141
3141
  return ie !== -1 ? ie : $.length;
3142
- })({ inputType: r, value: z, addedValue: c, beforeChangeValue: x, mask: g, replacement: v, separate: _ });
3143
- return { value: z, selectionStart: B, selectionEnd: B, options: { mask: g, replacement: v, separate: _ } };
3142
+ })({ inputType: r, value: z, addedValue: c, beforeChangeValue: x, mask: g, replacement: v, separate: w });
3143
+ return { value: z, selectionStart: B, selectionEnd: B, options: { mask: g, replacement: v, separate: w } };
3144
3144
  } }])).format = function(l) {
3145
3145
  return Zu(l, wi(i));
3146
3146
  }, n.formatToParts = function(l) {
@@ -3313,22 +3313,22 @@ function bs(e, t) {
3313
3313
  f.style = f.format, f.useGrouping = f.groupDisplay, f.minimumFractionDigits = 0, f.maximumFractionDigits = 0, delete f.format, delete f.groupDisplay, delete f.maximumIntegerDigits;
3314
3314
  var h = hr(e.split("."), 2), p = h[0], g = h[1], v = g === void 0 ? "" : g;
3315
3315
  p = p.replace(/^(-)?0+/, "$1"), p = (n = (i = RegExp("-?\\d{0,".concat(c ?? "", "}")).exec(p)) === null || i === void 0 ? void 0 : i[0]) !== null && n !== void 0 ? n : "";
3316
- var y, _ = /^-0?$/.test(p) ? -0 : BigInt(p), w = "";
3316
+ var b, w = /^-0?$/.test(p) ? -0 : BigInt(p), _ = "";
3317
3317
  if (a.format === "percent") {
3318
- var b, S, x = "[".concat(o.digits, "]+([^").concat(o.digits, "][").concat(o.digits, "]+)*"), L = RegExp(x), D = new Intl.NumberFormat(l, pl(pl({}, f), {}, { style: "decimal" })).format(_);
3319
- w = new Intl.NumberFormat(l, f).format(_).replace(L, (b = (S = L.exec(D)) === null || S === void 0 ? void 0 : S[0]) !== null && b !== void 0 ? b : "");
3320
- } else w = new Intl.NumberFormat(l, f).format(_);
3321
- if (w = w.replace(/\s/g, " "), v.length < d && (v += "0".repeat(d - v.length)), (m === void 0 || m > 0) && (e.includes(".") || v.length > 0) && (w = w.replace(RegExp("([".concat(o.digits, "])([^").concat(o.digits, "]*)$")), "$1".concat(o.decimal, "$2")), v.length > 0)) {
3318
+ var y, S, x = "[".concat(o.digits, "]+([^").concat(o.digits, "][").concat(o.digits, "]+)*"), L = RegExp(x), D = new Intl.NumberFormat(l, pl(pl({}, f), {}, { style: "decimal" })).format(w);
3319
+ _ = new Intl.NumberFormat(l, f).format(w).replace(L, (y = (S = L.exec(D)) === null || S === void 0 ? void 0 : S[0]) !== null && y !== void 0 ? y : "");
3320
+ } else _ = new Intl.NumberFormat(l, f).format(w);
3321
+ if (_ = _.replace(/\s/g, " "), v.length < d && (v += "0".repeat(d - v.length)), (m === void 0 || m > 0) && (e.includes(".") || v.length > 0) && (_ = _.replace(RegExp("([".concat(o.digits, "])([^").concat(o.digits, "]*)$")), "$1".concat(o.decimal, "$2")), v.length > 0)) {
3322
3322
  var P = (v = v.slice(0, m)).replace(/\d/g, (function(N) {
3323
3323
  return o.digits[Number(N)];
3324
3324
  }));
3325
- w = w.replace(RegExp("([".concat(o.decimal, "])([^").concat(o.digits, "]*)$")), "$1".concat(P, "$2"));
3325
+ _ = _.replace(RegExp("([".concat(o.decimal, "])([^").concat(o.digits, "]*)$")), "$1".concat(P, "$2"));
3326
3326
  }
3327
- if (w.includes("+") ? y = "+" : w.includes(o.minusSign) && (y = o.minusSign), y !== void 0 && o.signBackwards) {
3328
- var C = (w = w.replace(RegExp("[‎؜\\".concat(y, "]"), "g"), "")).search(RegExp("[".concat(o.digits, "](?!.*[").concat(o.digits, "])")));
3329
- C !== -1 && ((w = w.slice(0, C + 1) + y + w.slice(C + 1)).startsWith("‏") || (w = "‏".concat(w)));
3327
+ if (_.includes("+") ? b = "+" : _.includes(o.minusSign) && (b = o.minusSign), b !== void 0 && o.signBackwards) {
3328
+ var C = (_ = _.replace(RegExp("[‎؜\\".concat(b, "]"), "g"), "")).search(RegExp("[".concat(o.digits, "](?!.*[").concat(o.digits, "])")));
3329
+ C !== -1 && ((_ = _.slice(0, C + 1) + b + _.slice(C + 1)).startsWith("‏") || (_ = "‏".concat(_)));
3330
3330
  }
3331
- return w;
3331
+ return _;
3332
3332
  }
3333
3333
  function gl(e) {
3334
3334
  var t = new Intl.NumberFormat(e, { useGrouping: !1, signDisplay: "always", minimumIntegerDigits: 10, minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(-12345678901e-1), n = t.startsWith("‎") || t.startsWith("؜"), i = n ? t[1] : t[0], l = t[t.length - 2], r = t.slice(n ? 2 : 1, -2);
@@ -3377,36 +3377,36 @@ var ld = (function(e) {
3377
3377
  }
3378
3378
  return { value: r, options: { locales: a, options: c } };
3379
3379
  }, tracking: function(l) {
3380
- var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = i.locales, f = Or(i, gp), h = gl(a.locales), p = gl(m), g = pr(m, f), v = RegExp("^[".concat(p.minusSign, "]$")), y = RegExp("^[,".concat(p.decimal, "]$"));
3381
- if (c = v.test(c) ? c.replace(v, "-") : y.test(c) ? c.replace(y, ".") : kc(c, p), r === "insert" && !c) throw new Ri("The added value does not contain allowed characters.");
3382
- var _ = o.slice(0, u);
3383
- _ = kl(_, h), _ = Mr(_, h), _ = Dr(_, h);
3384
- var w = o.slice(d);
3385
- w = kl(w, h), w = Mr(w, h);
3386
- var b = _ + c + (w = Dr(w, h));
3387
- if (b = b.replace(/[.](?=.*[.])/g, ""), p.signBackwards) b = b.replace(/[-](?=.*[-.\d])/g, "");
3380
+ var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = i.locales, f = Or(i, gp), h = gl(a.locales), p = gl(m), g = pr(m, f), v = RegExp("^[".concat(p.minusSign, "]$")), b = RegExp("^[,".concat(p.decimal, "]$"));
3381
+ if (c = v.test(c) ? c.replace(v, "-") : b.test(c) ? c.replace(b, ".") : kc(c, p), r === "insert" && !c) throw new Ri("The added value does not contain allowed characters.");
3382
+ var w = o.slice(0, u);
3383
+ w = kl(w, h), w = Mr(w, h), w = Dr(w, h);
3384
+ var _ = o.slice(d);
3385
+ _ = kl(_, h), _ = Mr(_, h);
3386
+ var y = w + c + (_ = Dr(_, h));
3387
+ if (y = y.replace(/[.](?=.*[.])/g, ""), p.signBackwards) y = y.replace(/[-](?=.*[-.\d])/g, "");
3388
3388
  else {
3389
- var S = b.search(/[-.\d]/);
3390
- b = b.replace(/[-]/g, (function(O, M) {
3389
+ var S = y.search(/[-.\d]/);
3390
+ y = y.replace(/[-]/g, (function(O, M) {
3391
3391
  return S !== -1 && M > S ? "" : O;
3392
3392
  }));
3393
3393
  }
3394
- b = b.replace(/(.+)(-)$/, "$2$1");
3395
- var x = c === "-" && u === d, L = o.includes(h.minusSign), D = b.includes("-");
3396
- if (x && L && D && (b = b.replace("-", "")), !x || L || D || (b = "-".concat(b)), /\..*0$/.test(b)) {
3394
+ y = y.replace(/(.+)(-)$/, "$2$1");
3395
+ var x = c === "-" && u === d, L = o.includes(h.minusSign), D = y.includes("-");
3396
+ if (x && L && D && (y = y.replace("-", "")), !x || L || D || (y = "-".concat(y)), /\..*0$/.test(y)) {
3397
3397
  var P = "([".concat(h.digits, "])([").concat(h.decimal, "])([").concat(h.digits, "]+)"), C = RegExp(P).exec(o);
3398
3398
  if (C !== null) {
3399
3399
  var N, z = C[3], B = Number(C[5]) + C[1].length + C[2].length, E = (N = pr(a.locales, a.options).minimumFractionDigits) !== null && N !== void 0 ? N : 0;
3400
- u >= B && d < B + (E || 1) && z.length <= (E || 1) && (b = b.replace(/0+$/g, ""));
3400
+ u >= B && d < B + (E || 1) && z.length <= (E || 1) && (y = y.replace(/0+$/g, ""));
3401
3401
  }
3402
3402
  }
3403
3403
  var R = r === "deleteBackward" || r === "deleteForward";
3404
- if (R && o.includes(h.decimal) && !b.includes(".")) {
3404
+ if (R && o.includes(h.decimal) && !y.includes(".")) {
3405
3405
  var Y, T = "[".concat(h.digits[0], "]*[^").concat(h.decimal).concat(h.digits, "]*$"), k = "[^".concat(h.digits[0], "]"), $ = (Y = RegExp(T).exec(o)) === null || Y === void 0 ? void 0 : Y[0].replace(RegExp(k, "g"), "").length;
3406
- $ !== void 0 && g.minimumFractionDigits !== void 0 && ($ > g.minimumFractionDigits && ($ = g.minimumFractionDigits), b = b.replace(RegExp("0{0,".concat($, "}$")), ""));
3406
+ $ !== void 0 && g.minimumFractionDigits !== void 0 && ($ > g.minimumFractionDigits && ($ = g.minimumFractionDigits), y = y.replace(RegExp("0{0,".concat($, "}$")), ""));
3407
3407
  }
3408
- var K = "", U = b === "" || b === "-" || /^-?(\.0*)?$/.test(b);
3409
- R && U || (K = bs(b, { locales: m, options: f, localizedValues: p, resolvedOptions: g }));
3408
+ var K = "", U = y === "" || y === "-" || /^-?(\.0*)?$/.test(y);
3409
+ R && U || (K = bs(y, { locales: m, options: f, localizedValues: p, resolvedOptions: g }));
3410
3410
  var j = (function(O) {
3411
3411
  var M = O.localizedValues, A = O.previousLocalizedValues, te = O.resolvedOptions, I = O.inputType, G = O.value, ie = O.previousValue, J = O.addedValue, ce = O.changeStart, Z = O.changeEnd;
3412
3412
  if (ie.includes(M.decimal) && J === ".") {
@@ -4313,17 +4313,17 @@ async function yg(e, t) {
4313
4313
  elementContext: m = "floating",
4314
4314
  altBoundary: f = !1,
4315
4315
  padding: h = 0
4316
- } = hi(t, e), p = ad(h), v = a[f ? m === "floating" ? "reference" : "floating" : m], y = Pr(await r.getClippingRect({
4316
+ } = hi(t, e), p = ad(h), v = a[f ? m === "floating" ? "reference" : "floating" : m], b = Pr(await r.getClippingRect({
4317
4317
  element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
4318
4318
  boundary: u,
4319
4319
  rootBoundary: d,
4320
4320
  strategy: c
4321
- })), _ = m === "floating" ? {
4321
+ })), w = m === "floating" ? {
4322
4322
  x: i,
4323
4323
  y: l,
4324
4324
  width: o.floating.width,
4325
4325
  height: o.floating.height
4326
- } : o.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(w)) ? await (r.getScale == null ? void 0 : r.getScale(w)) || {
4326
+ } : o.reference, _ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), y = await (r.isElement == null ? void 0 : r.isElement(_)) ? await (r.getScale == null ? void 0 : r.getScale(_)) || {
4327
4327
  x: 1,
4328
4328
  y: 1
4329
4329
  } : {
@@ -4331,15 +4331,15 @@ async function yg(e, t) {
4331
4331
  y: 1
4332
4332
  }, S = Pr(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
4333
4333
  elements: a,
4334
- rect: _,
4335
- offsetParent: w,
4334
+ rect: w,
4335
+ offsetParent: _,
4336
4336
  strategy: c
4337
- }) : _);
4337
+ }) : w);
4338
4338
  return {
4339
- top: (y.top - S.top + p.top) / b.y,
4340
- bottom: (S.bottom - y.bottom + p.bottom) / b.y,
4341
- left: (y.left - S.left + p.left) / b.x,
4342
- right: (S.right - y.right + p.right) / b.x
4339
+ top: (b.top - S.top + p.top) / y.y,
4340
+ bottom: (S.bottom - b.bottom + p.bottom) / y.y,
4341
+ left: (b.left - S.left + p.left) / y.x,
4342
+ right: (S.right - b.right + p.right) / y.x
4343
4343
  };
4344
4344
  }
4345
4345
  const bg = async (e, t, n) => {
@@ -4360,14 +4360,14 @@ const bg = async (e, t, n) => {
4360
4360
  for (let v = 0; v < a.length; v++) {
4361
4361
  var g;
4362
4362
  const {
4363
- name: y,
4364
- fn: _
4363
+ name: b,
4364
+ fn: w
4365
4365
  } = a[v], {
4366
- x: w,
4367
- y: b,
4366
+ x: _,
4367
+ y,
4368
4368
  data: S,
4369
4369
  reset: x
4370
- } = await _({
4370
+ } = await w({
4371
4371
  x: d,
4372
4372
  y: m,
4373
4373
  initialPlacement: i,
@@ -4384,10 +4384,10 @@ const bg = async (e, t, n) => {
4384
4384
  floating: t
4385
4385
  }
4386
4386
  });
4387
- d = w ?? d, m = b ?? m, h = {
4387
+ d = _ ?? d, m = y ?? m, h = {
4388
4388
  ...h,
4389
- [y]: {
4390
- ...h[y],
4389
+ [b]: {
4390
+ ...h[b],
4391
4391
  ...S
4392
4392
  }
4393
4393
  }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (u = x.rects === !0 ? await o.getElementRects({
@@ -4427,10 +4427,10 @@ const bg = async (e, t, n) => {
4427
4427
  const m = ad(d), f = {
4428
4428
  x: n,
4429
4429
  y: i
4430
- }, h = oa(l), p = ra(h), g = await o.getDimensions(u), v = h === "y", y = v ? "top" : "left", _ = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[h] - f[h] - r.floating[p], S = f[h] - r.reference[h], x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
4431
- let L = x ? x[w] : 0;
4432
- (!L || !await (o.isElement == null ? void 0 : o.isElement(x))) && (L = a.floating[w] || r.floating[p]);
4433
- const D = b / 2 - S / 2, P = L / 2 - g[p] / 2 - 1, C = Zn(m[y], P), N = Zn(m[_], P), z = C, B = L - g[p] - N, E = L / 2 - g[p] / 2 + D, R = ks(z, E, B), Y = !c.arrow && Yt(l) != null && E !== R && r.reference[p] / 2 - (E < z ? C : N) - g[p] / 2 < 0, T = Y ? E < z ? E - z : E - B : 0;
4430
+ }, h = oa(l), p = ra(h), g = await o.getDimensions(u), v = h === "y", b = v ? "top" : "left", w = v ? "bottom" : "right", _ = v ? "clientHeight" : "clientWidth", y = r.reference[p] + r.reference[h] - f[h] - r.floating[p], S = f[h] - r.reference[h], x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
4431
+ let L = x ? x[_] : 0;
4432
+ (!L || !await (o.isElement == null ? void 0 : o.isElement(x))) && (L = a.floating[_] || r.floating[p]);
4433
+ const D = y / 2 - S / 2, P = L / 2 - g[p] / 2 - 1, C = Zn(m[b], P), N = Zn(m[w], P), z = C, B = L - g[p] - N, E = L / 2 - g[p] / 2 + D, R = ks(z, E, B), Y = !c.arrow && Yt(l) != null && E !== R && r.reference[p] / 2 - (E < z ? C : N) - g[p] / 2 < 0, T = Y ? E < z ? E - z : E - B : 0;
4434
4434
  return {
4435
4435
  [h]: f[h] + T,
4436
4436
  data: {
@@ -4465,24 +4465,24 @@ const kg = function(e) {
4465
4465
  allowedPlacements: f = Lc,
4466
4466
  autoAlignment: h = !0,
4467
4467
  ...p
4468
- } = hi(e, t), g = m !== void 0 || f === Lc ? _g(m || null, h, f) : f, v = await c.detectOverflow(t, p), y = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, _ = g[y];
4469
- if (_ == null)
4468
+ } = hi(e, t), g = m !== void 0 || f === Lc ? _g(m || null, h, f) : f, v = await c.detectOverflow(t, p), b = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, w = g[b];
4469
+ if (w == null)
4470
4470
  return {};
4471
- const w = sd(_, r, await (c.isRTL == null ? void 0 : c.isRTL(u.floating)));
4472
- if (a !== _)
4471
+ const _ = sd(w, r, await (c.isRTL == null ? void 0 : c.isRTL(u.floating)));
4472
+ if (a !== w)
4473
4473
  return {
4474
4474
  reset: {
4475
4475
  placement: g[0]
4476
4476
  }
4477
4477
  };
4478
- const b = [v[nn(_)], v[w[0]], v[w[1]]], S = [...((i = o.autoPlacement) == null ? void 0 : i.overflows) || [], {
4479
- placement: _,
4480
- overflows: b
4481
- }], x = g[y + 1];
4478
+ const y = [v[nn(w)], v[_[0]], v[_[1]]], S = [...((i = o.autoPlacement) == null ? void 0 : i.overflows) || [], {
4479
+ placement: w,
4480
+ overflows: y
4481
+ }], x = g[b + 1];
4482
4482
  if (x)
4483
4483
  return {
4484
4484
  data: {
4485
- index: y + 1,
4485
+ index: b + 1,
4486
4486
  overflows: S
4487
4487
  },
4488
4488
  reset: {
@@ -4506,7 +4506,7 @@ const kg = function(e) {
4506
4506
  ).every((N) => N <= 0))[0]) == null ? void 0 : l[0]) || L[0][0];
4507
4507
  return P !== a ? {
4508
4508
  data: {
4509
- index: y + 1,
4509
+ index: b + 1,
4510
4510
  overflows: S
4511
4511
  },
4512
4512
  reset: {
@@ -4539,12 +4539,12 @@ const kg = function(e) {
4539
4539
  } = hi(e, t);
4540
4540
  if ((n = r.arrow) != null && n.alignmentOffset)
4541
4541
  return {};
4542
- const y = nn(l), _ = _n(a), w = nn(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = f || (w || !g ? [Tr(a)] : Np(a)), x = p !== "none";
4543
- !f && x && S.push(...Ip(a, g, p, b));
4542
+ const b = nn(l), w = _n(a), _ = nn(a) === a, y = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = f || (_ || !g ? [Tr(a)] : Np(a)), x = p !== "none";
4543
+ !f && x && S.push(...Ip(a, g, p, y));
4544
4544
  const L = [a, ...S], D = await c.detectOverflow(t, v), P = [];
4545
4545
  let C = ((i = r.flip) == null ? void 0 : i.overflows) || [];
4546
- if (d && P.push(D[y]), m) {
4547
- const E = sd(l, o, b);
4546
+ if (d && P.push(D[b]), m) {
4547
+ const E = sd(l, o, y);
4548
4548
  P.push(D[E[0]], D[E[1]]);
4549
4549
  }
4550
4550
  if (C = [...C, {
@@ -4553,9 +4553,9 @@ const kg = function(e) {
4553
4553
  }], !P.every((E) => E <= 0)) {
4554
4554
  var N, z;
4555
4555
  const E = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, R = L[E];
4556
- if (R && (!(m === "alignment" ? _ !== _n(R) : !1) || // We leave the current main axis only if every placement on that axis
4556
+ if (R && (!(m === "alignment" ? w !== _n(R) : !1) || // We leave the current main axis only if every placement on that axis
4557
4557
  // overflows the main axis.
4558
- C.every((k) => _n(k.placement) === _ ? k.overflows[0] > 0 : !0)))
4558
+ C.every((k) => _n(k.placement) === w ? k.overflows[0] > 0 : !0)))
4559
4559
  return {
4560
4560
  data: {
4561
4561
  index: E,
@@ -4573,7 +4573,7 @@ const kg = function(e) {
4573
4573
  const T = (B = C.filter((k) => {
4574
4574
  if (x) {
4575
4575
  const $ = _n(k.placement);
4576
- return $ === _ || // Create a bias to the `y` side axis due to horizontal
4576
+ return $ === w || // Create a bias to the `y` side axis due to horizontal
4577
4577
  // reading directions favoring greater width.
4578
4578
  $ === "y";
4579
4579
  }
@@ -4660,14 +4660,14 @@ const Eg = function(e) {
4660
4660
  mainAxis: o = !0,
4661
4661
  crossAxis: a = !1,
4662
4662
  limiter: c = {
4663
- fn: (y) => {
4663
+ fn: (b) => {
4664
4664
  let {
4665
- x: _,
4666
- y: w
4667
- } = y;
4665
+ x: w,
4666
+ y: _
4667
+ } = b;
4668
4668
  return {
4669
- x: _,
4670
- y: w
4669
+ x: w,
4670
+ y: _
4671
4671
  };
4672
4672
  }
4673
4673
  },
@@ -4678,12 +4678,12 @@ const Eg = function(e) {
4678
4678
  }, m = await r.detectOverflow(t, u), f = _n(nn(l)), h = od(f);
4679
4679
  let p = d[h], g = d[f];
4680
4680
  if (o) {
4681
- const y = h === "y" ? "top" : "left", _ = h === "y" ? "bottom" : "right", w = p + m[y], b = p - m[_];
4682
- p = ks(w, p, b);
4681
+ const b = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", _ = p + m[b], y = p - m[w];
4682
+ p = ks(_, p, y);
4683
4683
  }
4684
4684
  if (a) {
4685
- const y = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", w = g + m[y], b = g - m[_];
4686
- g = ks(w, g, b);
4685
+ const b = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", _ = g + m[b], y = g - m[w];
4686
+ g = ks(_, g, y);
4687
4687
  }
4688
4688
  const v = c.fn({
4689
4689
  ...t,
@@ -4722,11 +4722,11 @@ const Eg = function(e) {
4722
4722
  width: p,
4723
4723
  height: g
4724
4724
  } = r.floating;
4725
- let v, y;
4726
- m === "top" || m === "bottom" ? (v = m, y = f === (await (o.isRTL == null ? void 0 : o.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = m, v = f === "end" ? "top" : "bottom");
4727
- const _ = g - d.top - d.bottom, w = p - d.left - d.right, b = Zn(g - d[v], _), S = Zn(p - d[y], w), x = !t.middlewareData.shift;
4728
- let L = b, D = S;
4729
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = w), (i = t.middlewareData.shift) != null && i.enabled.y && (L = _), x && !f) {
4725
+ let v, b;
4726
+ m === "top" || m === "bottom" ? (v = m, b = f === (await (o.isRTL == null ? void 0 : o.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = m, v = f === "end" ? "top" : "bottom");
4727
+ const w = g - d.top - d.bottom, _ = p - d.left - d.right, y = Zn(g - d[v], w), S = Zn(p - d[b], _), x = !t.middlewareData.shift;
4728
+ let L = y, D = S;
4729
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = _), (i = t.middlewareData.shift) != null && i.enabled.y && (L = w), x && !f) {
4730
4730
  const C = vt(d.left, 0), N = vt(d.right, 0), z = vt(d.top, 0), B = vt(d.bottom, 0);
4731
4731
  h ? D = p - 2 * (C !== 0 || N !== 0 ? C + N : vt(d.left, d.right)) : L = g - 2 * (z !== 0 || B !== 0 ? z + B : vt(d.top, d.bottom));
4732
4732
  }
@@ -4794,8 +4794,8 @@ function fi(e, t, n, i) {
4794
4794
  const f = ut(r), h = i && Oe(i) ? ut(i) : i;
4795
4795
  let p = f, g = _s(p);
4796
4796
  for (; g && i && h !== p; ) {
4797
- const v = Ni(g), y = g.getBoundingClientRect(), _ = _t(g), w = y.left + (g.clientLeft + parseFloat(_.paddingLeft)) * v.x, b = y.top + (g.clientTop + parseFloat(_.paddingTop)) * v.y;
4798
- c *= v.x, u *= v.y, d *= v.x, m *= v.y, c += w, u += b, p = ut(g), g = _s(p);
4797
+ const v = Ni(g), b = g.getBoundingClientRect(), w = _t(g), _ = b.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, y = b.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
4798
+ c *= v.x, u *= v.y, d *= v.x, m *= v.y, c += _, u += y, p = ut(g), g = _s(p);
4799
4799
  }
4800
4800
  }
4801
4801
  return Pr({
@@ -5052,30 +5052,30 @@ function Vg(e, t) {
5052
5052
  } = u;
5053
5053
  if (a || t(), !f || !h)
5054
5054
  return;
5055
- const p = Ei(m), g = Ei(l.clientWidth - (d + f)), v = Ei(l.clientHeight - (m + h)), y = Ei(d), w = {
5056
- rootMargin: -p + "px " + -g + "px " + -v + "px " + -y + "px",
5055
+ const p = Ei(m), g = Ei(l.clientWidth - (d + f)), v = Ei(l.clientHeight - (m + h)), b = Ei(d), _ = {
5056
+ rootMargin: -p + "px " + -g + "px " + -v + "px " + -b + "px",
5057
5057
  threshold: vt(0, Zn(1, c)) || 1
5058
5058
  };
5059
- let b = !0;
5059
+ let y = !0;
5060
5060
  function S(x) {
5061
5061
  const L = x[0].intersectionRatio;
5062
5062
  if (L !== c) {
5063
- if (!b)
5063
+ if (!y)
5064
5064
  return o();
5065
5065
  L ? o(!1, L) : i = setTimeout(() => {
5066
5066
  o(!1, 1e-7);
5067
5067
  }, 1e3);
5068
5068
  }
5069
- L === 1 && !Od(u, e.getBoundingClientRect()) && o(), b = !1;
5069
+ L === 1 && !Od(u, e.getBoundingClientRect()) && o(), y = !1;
5070
5070
  }
5071
5071
  try {
5072
5072
  n = new IntersectionObserver(S, {
5073
- ...w,
5073
+ ..._,
5074
5074
  // Handle <iframe>s
5075
5075
  root: l.ownerDocument
5076
5076
  });
5077
5077
  } catch {
5078
- n = new IntersectionObserver(S, w);
5078
+ n = new IntersectionObserver(S, _);
5079
5079
  }
5080
5080
  n.observe(e);
5081
5081
  }
@@ -5090,31 +5090,31 @@ function ua(e, t, n, i) {
5090
5090
  layoutShift: a = typeof IntersectionObserver == "function",
5091
5091
  animationFrame: c = !1
5092
5092
  } = i, u = ca(e), d = l || r ? [...u ? Un(u) : [], ...Un(t)] : [];
5093
- d.forEach((y) => {
5094
- l && y.addEventListener("scroll", n, {
5093
+ d.forEach((b) => {
5094
+ l && b.addEventListener("scroll", n, {
5095
5095
  passive: !0
5096
- }), r && y.addEventListener("resize", n);
5096
+ }), r && b.addEventListener("resize", n);
5097
5097
  });
5098
5098
  const m = u && a ? Vg(u, n) : null;
5099
5099
  let f = -1, h = null;
5100
- o && (h = new ResizeObserver((y) => {
5101
- let [_] = y;
5102
- _ && _.target === u && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
5103
- var w;
5104
- (w = h) == null || w.observe(t);
5100
+ o && (h = new ResizeObserver((b) => {
5101
+ let [w] = b;
5102
+ w && w.target === u && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
5103
+ var _;
5104
+ (_ = h) == null || _.observe(t);
5105
5105
  })), n();
5106
5106
  }), u && !c && h.observe(u), h.observe(t));
5107
5107
  let p, g = c ? fi(e) : null;
5108
5108
  c && v();
5109
5109
  function v() {
5110
- const y = fi(e);
5111
- g && !Od(g, y) && n(), g = y, p = requestAnimationFrame(v);
5110
+ const b = fi(e);
5111
+ g && !Od(g, b) && n(), g = b, p = requestAnimationFrame(v);
5112
5112
  }
5113
5113
  return n(), () => {
5114
- var y;
5115
- d.forEach((_) => {
5116
- l && _.removeEventListener("scroll", n), r && _.removeEventListener("resize", n);
5117
- }), m?.(), (y = h) == null || y.disconnect(), h = null, c && cancelAnimationFrame(p);
5114
+ var b;
5115
+ d.forEach((w) => {
5116
+ l && w.removeEventListener("scroll", n), r && w.removeEventListener("resize", n);
5117
+ }), m?.(), (b = h) == null || b.disconnect(), h = null, c && cancelAnimationFrame(p);
5118
5118
  };
5119
5119
  }
5120
5120
  const Hg = Eg, Ug = kg, qg = Sg, Gg = xg, Kg = Cg, $c = wg, Zg = (e, t, n) => {
@@ -5198,11 +5198,11 @@ function Jg(e) {
5198
5198
  isPositioned: !1
5199
5199
  }), [f, h] = F.useState(i);
5200
5200
  Yr(f, i) || h(i);
5201
- const [p, g] = F.useState(null), [v, y] = F.useState(null), _ = F.useCallback((k) => {
5201
+ const [p, g] = F.useState(null), [v, b] = F.useState(null), w = F.useCallback((k) => {
5202
5202
  k !== x.current && (x.current = k, g(k));
5203
- }, []), w = F.useCallback((k) => {
5204
- k !== L.current && (L.current = k, y(k));
5205
- }, []), b = r || p, S = o || v, x = F.useRef(null), L = F.useRef(null), D = F.useRef(d), P = c != null, C = Bo(c), N = Bo(l), z = Bo(u), B = F.useCallback(() => {
5203
+ }, []), _ = F.useCallback((k) => {
5204
+ k !== L.current && (L.current = k, b(k));
5205
+ }, []), y = r || p, S = o || v, x = F.useRef(null), L = F.useRef(null), D = F.useRef(d), P = c != null, C = Bo(c), N = Bo(l), z = Bo(u), B = F.useCallback(() => {
5206
5206
  if (!x.current || !L.current)
5207
5207
  return;
5208
5208
  const k = {
@@ -5234,21 +5234,21 @@ function Jg(e) {
5234
5234
  vr(() => (E.current = !0, () => {
5235
5235
  E.current = !1;
5236
5236
  }), []), vr(() => {
5237
- if (b && (x.current = b), S && (L.current = S), b && S) {
5237
+ if (y && (x.current = y), S && (L.current = S), y && S) {
5238
5238
  if (C.current)
5239
- return C.current(b, S, B);
5239
+ return C.current(y, S, B);
5240
5240
  B();
5241
5241
  }
5242
- }, [b, S, B, C, P]);
5242
+ }, [y, S, B, C, P]);
5243
5243
  const R = F.useMemo(() => ({
5244
5244
  reference: x,
5245
5245
  floating: L,
5246
- setReference: _,
5247
- setFloating: w
5248
- }), [_, w]), Y = F.useMemo(() => ({
5249
- reference: b,
5246
+ setReference: w,
5247
+ setFloating: _
5248
+ }), [w, _]), Y = F.useMemo(() => ({
5249
+ reference: y,
5250
5250
  floating: S
5251
- }), [b, S]), T = F.useMemo(() => {
5251
+ }), [y, S]), T = F.useMemo(() => {
5252
5252
  const k = {
5253
5253
  position: n,
5254
5254
  left: 0,
@@ -5404,24 +5404,24 @@ const Bc = /* @__PURE__ */ F.forwardRef(function(t, n) {
5404
5404
  ...v
5405
5405
  } = t;
5406
5406
  process.env.NODE_ENV !== "production" && (n || yr("The `ref` prop is required for `FloatingArrow`."));
5407
- const y = zl(), [_, w] = F.useState(!1);
5407
+ const b = zl(), [w, _] = F.useState(!1);
5408
5408
  if (De(() => {
5409
5409
  if (!l) return;
5410
- _t(l).direction === "rtl" && w(!0);
5410
+ _t(l).direction === "rtl" && _(!0);
5411
5411
  }, [l]), !l)
5412
5412
  return null;
5413
- const [b, S] = i.split("-"), x = b === "top" || b === "bottom";
5413
+ const [y, S] = i.split("-"), x = y === "top" || y === "bottom";
5414
5414
  let L = m;
5415
5415
  (x && o != null && o.x || !x && o != null && o.y) && (L = null);
5416
5416
  const D = d * 2, P = D / 2, C = a / 2 * (u / -8 + 1), N = c / 2 * u / 4, z = !!h, B = L && S === "end" ? "bottom" : "top";
5417
5417
  let E = L && S === "end" ? "right" : "left";
5418
- L && _ && (E = S === "end" ? "left" : "right");
5418
+ L && w && (E = S === "end" ? "left" : "right");
5419
5419
  const R = r?.x != null ? L || r.x : "", Y = r?.y != null ? L || r.y : "", T = h || "M0,0" + (" H" + a) + (" L" + (a - C) + "," + (c - N)) + (" Q" + a / 2 + "," + c + " " + C + "," + (c - N)) + " Z", k = {
5420
5420
  top: z ? "rotate(180deg)" : "",
5421
5421
  left: z ? "rotate(90deg)" : "rotate(-90deg)",
5422
5422
  bottom: z ? "" : "rotate(180deg)",
5423
5423
  right: z ? "rotate(-90deg)" : "rotate(90deg)"
5424
- }[b];
5424
+ }[y];
5425
5425
  return /* @__PURE__ */ Qs("svg", {
5426
5426
  ...v,
5427
5427
  "aria-hidden": !0,
@@ -5434,12 +5434,12 @@ const Bc = /* @__PURE__ */ F.forwardRef(function(t, n) {
5434
5434
  pointerEvents: "none",
5435
5435
  [E]: R,
5436
5436
  [B]: Y,
5437
- [b]: x || z ? "100%" : "calc(100% - " + D / 2 + "px)",
5437
+ [y]: x || z ? "100%" : "calc(100% - " + D / 2 + "px)",
5438
5438
  transform: [k, p].filter(($) => !!$).join(" "),
5439
5439
  ...g
5440
5440
  },
5441
5441
  children: [D > 0 && /* @__PURE__ */ bt("path", {
5442
- clipPath: "url(#" + y + ")",
5442
+ clipPath: "url(#" + b + ")",
5443
5443
  fill: "none",
5444
5444
  stroke: f,
5445
5445
  strokeWidth: D + (h ? 0 : 1),
@@ -5448,7 +5448,7 @@ const Bc = /* @__PURE__ */ F.forwardRef(function(t, n) {
5448
5448
  stroke: D && !h ? v.fill : "none",
5449
5449
  d: T
5450
5450
  }), /* @__PURE__ */ bt("clipPath", {
5451
- id: y,
5451
+ id: b,
5452
5452
  children: /* @__PURE__ */ bt("rect", {
5453
5453
  x: -P,
5454
5454
  y: P * (z ? -1 : 1),
@@ -5514,7 +5514,7 @@ function mv(e, t) {
5514
5514
  mouseOnly: d = !1,
5515
5515
  restMs: m = 0,
5516
5516
  move: f = !0
5517
- } = t, h = Al(), p = so(), g = Xe(u), v = Xe(c), y = Xe(n), _ = Xe(m), w = F.useRef(), b = F.useRef(-1), S = F.useRef(), x = F.useRef(-1), L = F.useRef(!0), D = F.useRef(!1), P = F.useRef(() => {
5517
+ } = t, h = Al(), p = so(), g = Xe(u), v = Xe(c), b = Xe(n), w = Xe(m), _ = F.useRef(), y = F.useRef(-1), S = F.useRef(), x = F.useRef(-1), L = F.useRef(!0), D = F.useRef(!1), P = F.useRef(() => {
5518
5518
  }), C = F.useRef(!1), N = Ge(() => {
5519
5519
  var T;
5520
5520
  const k = (T = l.current.openEvent) == null ? void 0 : T.type;
@@ -5526,7 +5526,7 @@ function mv(e, t) {
5526
5526
  let {
5527
5527
  open: $
5528
5528
  } = k;
5529
- $ || (pt(b), pt(x), L.current = !0, C.current = !1);
5529
+ $ || (pt(y), pt(x), L.current = !0, C.current = !1);
5530
5530
  }
5531
5531
  return r.on("openchange", T), () => {
5532
5532
  r.off("openchange", T);
@@ -5543,8 +5543,8 @@ function mv(e, t) {
5543
5543
  }, [o.floating, n, i, a, g, N]);
5544
5544
  const z = F.useCallback(function(T, k, $) {
5545
5545
  k === void 0 && (k = !0), $ === void 0 && ($ = "hover");
5546
- const K = Wo(v.current, "close", w.current);
5547
- K && !S.current ? (pt(b), b.current = window.setTimeout(() => i(!1, T, $), K)) : k && (pt(b), i(!1, T, $));
5546
+ const K = Wo(v.current, "close", _.current);
5547
+ K && !S.current ? (pt(y), y.current = window.setTimeout(() => i(!1, T, $), K)) : k && (pt(y), i(!1, T, $));
5548
5548
  }, [v, i]), B = Ge(() => {
5549
5549
  P.current(), S.current = void 0;
5550
5550
  }), E = Ge(() => {
@@ -5556,11 +5556,11 @@ function mv(e, t) {
5556
5556
  F.useEffect(() => {
5557
5557
  if (!a) return;
5558
5558
  function T(j) {
5559
- if (pt(b), L.current = !1, d && !Ll(w.current) || Vo(_.current) > 0 && !Wo(v.current, "open"))
5559
+ if (pt(y), L.current = !1, d && !Ll(_.current) || Vo(w.current) > 0 && !Wo(v.current, "open"))
5560
5560
  return;
5561
- const O = Wo(v.current, "open", w.current);
5562
- O ? b.current = window.setTimeout(() => {
5563
- y.current || i(!0, j, "hover");
5561
+ const O = Wo(v.current, "open", _.current);
5562
+ O ? y.current = window.setTimeout(() => {
5563
+ b.current || i(!0, j, "hover");
5564
5564
  }, O) : n || i(!0, j, "hover");
5565
5565
  }
5566
5566
  function k(j) {
@@ -5571,7 +5571,7 @@ function mv(e, t) {
5571
5571
  P.current();
5572
5572
  const O = qe(o.floating);
5573
5573
  if (pt(x), C.current = !1, g.current && l.current.floatingContext) {
5574
- n || pt(b), S.current = g.current({
5574
+ n || pt(y), S.current = g.current({
5575
5575
  ...l.current.floatingContext,
5576
5576
  tree: h,
5577
5577
  x: j.clientX,
@@ -5586,7 +5586,7 @@ function mv(e, t) {
5586
5586
  };
5587
5587
  return;
5588
5588
  }
5589
- (w.current !== "touch" || !Ue(o.floating, j.relatedTarget)) && z(j);
5589
+ (_.current !== "touch" || !Ue(o.floating, j.relatedTarget)) && z(j);
5590
5590
  }
5591
5591
  function $(j) {
5592
5592
  R() || l.current.floatingContext && (g.current == null || g.current({
@@ -5600,7 +5600,7 @@ function mv(e, t) {
5600
5600
  })(j));
5601
5601
  }
5602
5602
  function K() {
5603
- pt(b);
5603
+ pt(y);
5604
5604
  }
5605
5605
  function U(j) {
5606
5606
  R() || z(j, !1);
@@ -5613,7 +5613,7 @@ function mv(e, t) {
5613
5613
  n && j.removeEventListener("mouseleave", $), f && j.removeEventListener("mousemove", T), j.removeEventListener("mouseenter", T), j.removeEventListener("mouseleave", k), O && (O.removeEventListener("mouseleave", $), O.removeEventListener("mouseenter", K), O.removeEventListener("mouseleave", U));
5614
5614
  };
5615
5615
  }
5616
- }, [o, a, e, d, f, z, B, E, i, n, y, h, v, g, l, R, _]), De(() => {
5616
+ }, [o, a, e, d, f, z, B, E, i, n, b, h, v, g, l, R, w]), De(() => {
5617
5617
  var T;
5618
5618
  if (a && n && (T = g.current) != null && (T = T.__options) != null && T.blockPointerEvents && N()) {
5619
5619
  D.current = !0;
@@ -5629,13 +5629,13 @@ function mv(e, t) {
5629
5629
  }
5630
5630
  }
5631
5631
  }, [a, n, p, o, h, g, N]), De(() => {
5632
- n || (w.current = void 0, C.current = !1, B(), E());
5632
+ n || (_.current = void 0, C.current = !1, B(), E());
5633
5633
  }, [n, B, E]), F.useEffect(() => () => {
5634
- B(), pt(b), pt(x), E();
5634
+ B(), pt(y), pt(x), E();
5635
5635
  }, [a, o.domReference, B, E]);
5636
5636
  const Y = F.useMemo(() => {
5637
5637
  function T(k) {
5638
- w.current = k.pointerType;
5638
+ _.current = k.pointerType;
5639
5639
  }
5640
5640
  return {
5641
5641
  onPointerDown: T,
@@ -5645,12 +5645,12 @@ function mv(e, t) {
5645
5645
  nativeEvent: $
5646
5646
  } = k;
5647
5647
  function K() {
5648
- !L.current && !y.current && i(!0, $, "hover");
5648
+ !L.current && !b.current && i(!0, $, "hover");
5649
5649
  }
5650
- d && !Ll(w.current) || n || Vo(_.current) === 0 || C.current && k.movementX ** 2 + k.movementY ** 2 < 2 || (pt(x), w.current === "touch" ? K() : (C.current = !0, x.current = window.setTimeout(K, Vo(_.current))));
5650
+ d && !Ll(_.current) || n || Vo(w.current) === 0 || C.current && k.movementX ** 2 + k.movementY ** 2 < 2 || (pt(x), _.current === "touch" ? K() : (C.current = !0, x.current = window.setTimeout(K, Vo(w.current))));
5651
5651
  }
5652
5652
  };
5653
- }, [d, i, n, y, _]);
5653
+ }, [d, i, n, b, w]);
5654
5654
  return F.useMemo(() => a ? {
5655
5655
  reference: Y
5656
5656
  } : {}, [a, Y]);
@@ -5701,15 +5701,15 @@ function vv(e, t, n, i) {
5701
5701
  if (a.has(p))
5702
5702
  f(p);
5703
5703
  else {
5704
- const g = r ? p.getAttribute(r) : null, v = g !== null && g !== "false", y = Hc(r), _ = (y.get(p) || 0) + 1, w = (d.get(p) || 0) + 1;
5705
- y.set(p, _), d.set(p, w), u.push(p), _ === 1 && v && er.add(p), w === 1 && p.setAttribute(l, ""), !v && r && p.setAttribute(r, r === "inert" ? "" : "true");
5704
+ const g = r ? p.getAttribute(r) : null, v = g !== null && g !== "false", b = Hc(r), w = (b.get(p) || 0) + 1, _ = (d.get(p) || 0) + 1;
5705
+ b.set(p, w), d.set(p, _), u.push(p), w === 1 && v && er.add(p), _ === 1 && p.setAttribute(l, ""), !v && r && p.setAttribute(r, r === "inert" ? "" : "true");
5706
5706
  }
5707
5707
  });
5708
5708
  }
5709
5709
  return Ho++, () => {
5710
5710
  u.forEach((h) => {
5711
- const p = Hc(r), v = (p.get(h) || 0) - 1, y = (d.get(h) || 0) - 1;
5712
- p.set(h, v), d.set(h, y), v || (!er.has(h) && r && h.removeAttribute(r), er.delete(h)), y || h.removeAttribute(l);
5711
+ const p = Hc(r), v = (p.get(h) || 0) - 1, b = (d.get(h) || 0) - 1;
5712
+ p.set(h, v), d.set(h, b), v || (!er.has(h) && r && h.removeAttribute(r), er.delete(h)), b || h.removeAttribute(l);
5713
5713
  }), Ho--, Ho || (Ti.inert = /* @__PURE__ */ new WeakMap(), Ti["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Ti.none = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakSet(), tr = {});
5714
5714
  };
5715
5715
  }
@@ -5825,8 +5825,8 @@ function Yl(e) {
5825
5825
  var v;
5826
5826
  (v = d.current) == null || v.focus();
5827
5827
  } else {
5828
- const y = o ? o.domReference : null, _ = xd(y);
5829
- _?.focus();
5828
+ const b = o ? o.domReference : null, w = xd(b);
5829
+ w?.focus();
5830
5830
  }
5831
5831
  }
5832
5832
  }), p && r && /* @__PURE__ */ bt("span", {
@@ -5840,8 +5840,8 @@ function Yl(e) {
5840
5840
  var v;
5841
5841
  (v = m.current) == null || v.focus();
5842
5842
  } else {
5843
- const y = o ? o.domReference : null, _ = kd(y);
5844
- _?.focus(), o?.closeOnFocusOut && o?.onOpenChange(!1, g.nativeEvent, "focus-out");
5843
+ const b = o ? o.domReference : null, w = kd(b);
5844
+ w?.focus(), o?.closeOnFocusOut && o?.onOpenChange(!1, g.nativeEvent, "focus-out");
5845
5845
  }
5846
5846
  }
5847
5847
  })]
@@ -5908,19 +5908,19 @@ function ao(e) {
5908
5908
  open: p,
5909
5909
  onOpenChange: g,
5910
5910
  events: v,
5911
- dataRef: y,
5911
+ dataRef: b,
5912
5912
  elements: {
5913
- domReference: _,
5914
- floating: w
5913
+ domReference: w,
5914
+ floating: _
5915
5915
  }
5916
- } = t, b = Ge(() => {
5916
+ } = t, y = Ge(() => {
5917
5917
  var Z;
5918
- return (Z = y.current.floatingContext) == null ? void 0 : Z.nodeId;
5919
- }), S = Ge(h), x = typeof o == "number" && o < 0, L = Es(_) && x, D = pv(), P = D ? r : !0, C = !P || D && f, N = Xe(l), z = Xe(o), B = Xe(a), E = Al(), R = $d(), Y = F.useRef(null), T = F.useRef(null), k = F.useRef(!1), $ = F.useRef(!1), K = F.useRef(-1), U = F.useRef(-1), j = R != null, O = Ar(w), M = Ge(function(Z) {
5918
+ return (Z = b.current.floatingContext) == null ? void 0 : Z.nodeId;
5919
+ }), S = Ge(h), x = typeof o == "number" && o < 0, L = Es(w) && x, D = pv(), P = D ? r : !0, C = !P || D && f, N = Xe(l), z = Xe(o), B = Xe(a), E = Al(), R = $d(), Y = F.useRef(null), T = F.useRef(null), k = F.useRef(!1), $ = F.useRef(!1), K = F.useRef(-1), U = F.useRef(-1), j = R != null, O = Ar(_), M = Ge(function(Z) {
5920
5920
  return Z === void 0 && (Z = O), Z ? io(Z, Pl()) : [];
5921
5921
  }), A = Ge((Z) => {
5922
5922
  const ne = M(Z);
5923
- return N.current.map((q) => _ && q === "reference" ? _ : O && q === "floating" ? O : ne).filter(Boolean).flat();
5923
+ return N.current.map((q) => w && q === "reference" ? w : O && q === "floating" ? O : ne).filter(Boolean).flat();
5924
5924
  });
5925
5925
  F.useEffect(() => {
5926
5926
  if (i || !u) return;
@@ -5928,23 +5928,23 @@ function ao(e) {
5928
5928
  if (q.key === "Tab") {
5929
5929
  Ue(O, Xt(qe(O))) && M().length === 0 && !L && lt(q);
5930
5930
  const se = A(), le = bn(q);
5931
- N.current[0] === "reference" && le === _ && (lt(q), q.shiftKey ? oi(se[se.length - 1]) : oi(se[1])), N.current[1] === "floating" && le === O && q.shiftKey && (lt(q), oi(se[0]));
5931
+ N.current[0] === "reference" && le === w && (lt(q), q.shiftKey ? oi(se[se.length - 1]) : oi(se[1])), N.current[1] === "floating" && le === O && q.shiftKey && (lt(q), oi(se[0]));
5932
5932
  }
5933
5933
  }
5934
5934
  const ne = qe(O);
5935
5935
  return ne.addEventListener("keydown", Z), () => {
5936
5936
  ne.removeEventListener("keydown", Z);
5937
5937
  };
5938
- }, [i, _, O, u, N, L, M, A]), F.useEffect(() => {
5939
- if (i || !w) return;
5938
+ }, [i, w, O, u, N, L, M, A]), F.useEffect(() => {
5939
+ if (i || !_) return;
5940
5940
  function Z(ne) {
5941
5941
  const q = bn(ne), le = M().indexOf(q);
5942
5942
  le !== -1 && (K.current = le);
5943
5943
  }
5944
- return w.addEventListener("focusin", Z), () => {
5945
- w.removeEventListener("focusin", Z);
5944
+ return _.addEventListener("focusin", Z), () => {
5945
+ _.removeEventListener("focusin", Z);
5946
5946
  };
5947
- }, [i, w, M]), F.useEffect(() => {
5947
+ }, [i, _, M]), F.useEffect(() => {
5948
5948
  if (i || !m) return;
5949
5949
  function Z() {
5950
5950
  $.current = !0, setTimeout(() => {
@@ -5954,20 +5954,20 @@ function ao(e) {
5954
5954
  function ne(le) {
5955
5955
  const re = le.relatedTarget, ye = le.currentTarget, de = bn(le);
5956
5956
  queueMicrotask(() => {
5957
- const fe = b(), me = !(Ue(_, re) || Ue(w, re) || Ue(re, w) || Ue(R?.portalNode, re) || re != null && re.hasAttribute(mi("focus-guard")) || E && (ci(E.nodesRef.current, fe).find((H) => {
5957
+ const fe = y(), me = !(Ue(w, re) || Ue(_, re) || Ue(re, _) || Ue(R?.portalNode, re) || re != null && re.hasAttribute(mi("focus-guard")) || E && (ci(E.nodesRef.current, fe).find((H) => {
5958
5958
  var Q, X;
5959
5959
  return Ue((Q = H.context) == null ? void 0 : Q.elements.floating, re) || Ue((X = H.context) == null ? void 0 : X.elements.domReference, re);
5960
5960
  }) || Oc(E.nodesRef.current, fe).find((H) => {
5961
5961
  var Q, X, he;
5962
5962
  return [(Q = H.context) == null ? void 0 : Q.elements.floating, Ar((X = H.context) == null ? void 0 : X.elements.floating)].includes(re) || ((he = H.context) == null ? void 0 : he.elements.domReference) === re;
5963
5963
  })));
5964
- if (ye === _ && O && Zc(O, N), c && ye !== _ && !(de != null && de.isConnected) && Xt(qe(O)) === qe(O).body) {
5964
+ if (ye === w && O && Zc(O, N), c && ye !== w && !(de != null && de.isConnected) && Xt(qe(O)) === qe(O).body) {
5965
5965
  Ie(O) && O.focus();
5966
5966
  const H = K.current, Q = M(), X = Q[H] || Q[Q.length - 1] || O;
5967
5967
  Ie(X) && X.focus();
5968
5968
  }
5969
- if (y.current.insideReactTree) {
5970
- y.current.insideReactTree = !1;
5969
+ if (b.current.insideReactTree) {
5970
+ b.current.insideReactTree = !1;
5971
5971
  return;
5972
5972
  }
5973
5973
  (L || !u) && re && me && !$.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
@@ -5976,27 +5976,27 @@ function ao(e) {
5976
5976
  }
5977
5977
  const q = !!(!E && R);
5978
5978
  function se() {
5979
- pt(U), y.current.insideReactTree = !0, U.current = window.setTimeout(() => {
5980
- y.current.insideReactTree = !1;
5979
+ pt(U), b.current.insideReactTree = !0, U.current = window.setTimeout(() => {
5980
+ b.current.insideReactTree = !1;
5981
5981
  });
5982
5982
  }
5983
- if (w && Ie(_))
5984
- return _.addEventListener("focusout", ne), _.addEventListener("pointerdown", Z), w.addEventListener("focusout", ne), q && w.addEventListener("focusout", se, !0), () => {
5985
- _.removeEventListener("focusout", ne), _.removeEventListener("pointerdown", Z), w.removeEventListener("focusout", ne), q && w.removeEventListener("focusout", se, !0);
5983
+ if (_ && Ie(w))
5984
+ return w.addEventListener("focusout", ne), w.addEventListener("pointerdown", Z), _.addEventListener("focusout", ne), q && _.addEventListener("focusout", se, !0), () => {
5985
+ w.removeEventListener("focusout", ne), w.removeEventListener("pointerdown", Z), _.removeEventListener("focusout", ne), q && _.removeEventListener("focusout", se, !0);
5986
5986
  };
5987
- }, [i, _, w, O, u, E, R, g, m, c, M, L, b, N, y]);
5987
+ }, [i, w, _, O, u, E, R, g, m, c, M, L, y, N, b]);
5988
5988
  const te = F.useRef(null), I = F.useRef(null), G = Gc([te, R?.beforeInsideRef]), ie = Gc([I, R?.afterInsideRef]);
5989
5989
  F.useEffect(() => {
5990
5990
  var Z, ne;
5991
- if (i || !w) return;
5992
- const q = Array.from((R == null || (Z = R.portalNode) == null ? void 0 : Z.querySelectorAll("[" + mi("portal") + "]")) || []), le = (ne = (E ? Oc(E.nodesRef.current, b()) : []).find((de) => {
5991
+ if (i || !_) return;
5992
+ const q = Array.from((R == null || (Z = R.portalNode) == null ? void 0 : Z.querySelectorAll("[" + mi("portal") + "]")) || []), le = (ne = (E ? Oc(E.nodesRef.current, y()) : []).find((de) => {
5993
5993
  var fe;
5994
5994
  return Es(((fe = de.context) == null ? void 0 : fe.elements.domReference) || null);
5995
- })) == null || (ne = ne.context) == null ? void 0 : ne.elements.domReference, re = [w, le, ...q, ...S(), Y.current, T.current, te.current, I.current, R?.beforeOutsideRef.current, R?.afterOutsideRef.current, N.current.includes("reference") || L ? _ : null].filter((de) => de != null), ye = u || L ? Uc(re, !C, C) : Uc(re);
5995
+ })) == null || (ne = ne.context) == null ? void 0 : ne.elements.domReference, re = [_, le, ...q, ...S(), Y.current, T.current, te.current, I.current, R?.beforeOutsideRef.current, R?.afterOutsideRef.current, N.current.includes("reference") || L ? w : null].filter((de) => de != null), ye = u || L ? Uc(re, !C, C) : Uc(re);
5996
5996
  return () => {
5997
5997
  ye();
5998
5998
  };
5999
- }, [i, _, w, u, N, R, L, P, C, E, b, S]), De(() => {
5999
+ }, [i, w, _, u, N, R, L, P, C, E, y, S]), De(() => {
6000
6000
  if (i || !Ie(O)) return;
6001
6001
  const Z = qe(O), ne = Xt(Z);
6002
6002
  queueMicrotask(() => {
@@ -6031,17 +6031,17 @@ function ao(e) {
6031
6031
  }
6032
6032
  v.on("openchange", q);
6033
6033
  const se = Z.createElement("span");
6034
- se.setAttribute("tabindex", "-1"), se.setAttribute("aria-hidden", "true"), Object.assign(se.style, fa), j && _ && _.insertAdjacentElement("afterend", se);
6034
+ se.setAttribute("tabindex", "-1"), se.setAttribute("aria-hidden", "true"), Object.assign(se.style, fa), j && w && w.insertAdjacentElement("afterend", se);
6035
6035
  function le() {
6036
6036
  if (typeof B.current == "boolean") {
6037
- const re = _ || Kc();
6037
+ const re = w || Kc();
6038
6038
  return re && re.isConnected ? re : se;
6039
6039
  }
6040
6040
  return B.current.current || se;
6041
6041
  }
6042
6042
  return () => {
6043
6043
  v.off("openchange", q);
6044
- const re = Xt(Z), ye = Ue(w, re) || E && ci(E.nodesRef.current, b(), !1).some((fe) => {
6044
+ const re = Xt(Z), ye = Ue(_, re) || E && ci(E.nodesRef.current, y(), !1).some((fe) => {
6045
6045
  var me;
6046
6046
  return Ue((me = fe.context) == null ? void 0 : me.elements.floating, re);
6047
6047
  }), de = le();
@@ -6056,7 +6056,7 @@ function ao(e) {
6056
6056
  }), se.remove();
6057
6057
  });
6058
6058
  };
6059
- }, [i, w, O, B, y, v, E, j, _, b]), F.useEffect(() => (queueMicrotask(() => {
6059
+ }, [i, _, O, B, b, v, E, j, w, y]), F.useEffect(() => (queueMicrotask(() => {
6060
6060
  k.current = !1;
6061
6061
  }), () => {
6062
6062
  queueMicrotask(ma);
@@ -6067,11 +6067,11 @@ function ao(e) {
6067
6067
  closeOnFocusOut: m,
6068
6068
  open: p,
6069
6069
  onOpenChange: g,
6070
- domReference: _
6070
+ domReference: w
6071
6071
  }), () => {
6072
6072
  R.setFocusManagerState(null);
6073
6073
  };
6074
- }, [i, R, u, p, g, m, _]), De(() => {
6074
+ }, [i, R, u, p, g, m, w]), De(() => {
6075
6075
  i || O && Zc(O, N);
6076
6076
  }, [i, O, N]);
6077
6077
  function J(Z) {
@@ -6092,7 +6092,7 @@ function ao(e) {
6092
6092
  oi(l[0] === "reference" ? q[0] : q[q.length - 1]);
6093
6093
  } else if (R != null && R.preserveTabOrder && R.portalNode)
6094
6094
  if (k.current = !1, yl(Z, R.portalNode)) {
6095
- const q = kd(_);
6095
+ const q = kd(w);
6096
6096
  q?.focus();
6097
6097
  } else {
6098
6098
  var ne;
@@ -6107,7 +6107,7 @@ function ao(e) {
6107
6107
  oi(A()[0]);
6108
6108
  else if (R != null && R.preserveTabOrder && R.portalNode)
6109
6109
  if (m && (k.current = !0), yl(Z, R.portalNode)) {
6110
- const q = xd(_);
6110
+ const q = xd(w);
6111
6111
  q?.focus();
6112
6112
  } else {
6113
6113
  var ne;
@@ -6254,9 +6254,9 @@ function jl(e, t) {
6254
6254
  ancestorScroll: f = !1,
6255
6255
  bubbles: h,
6256
6256
  capture: p
6257
- } = t, g = Al(), v = Ge(typeof c == "function" ? c : () => !1), y = typeof c == "function" ? v : c, _ = F.useRef(!1), {
6258
- escapeKey: w,
6259
- outsidePress: b
6257
+ } = t, g = Al(), v = Ge(typeof c == "function" ? c : () => !1), b = typeof c == "function" ? v : c, w = F.useRef(!1), {
6258
+ escapeKey: _,
6259
+ outsidePress: y
6260
6260
  } = tu(h), {
6261
6261
  escapeKey: S,
6262
6262
  outsidePress: x
@@ -6265,7 +6265,7 @@ function jl(e, t) {
6265
6265
  if (!n || !o || !a || E.key !== "Escape" || L.current)
6266
6266
  return;
6267
6267
  const Y = (R = r.current.floatingContext) == null ? void 0 : R.nodeId, T = g ? ci(g.nodesRef.current, Y) : [];
6268
- if (!w && (E.stopPropagation(), T.length > 0)) {
6268
+ if (!_ && (E.stopPropagation(), T.length > 0)) {
6269
6269
  let k = !0;
6270
6270
  if (T.forEach(($) => {
6271
6271
  var K;
@@ -6288,8 +6288,8 @@ function jl(e, t) {
6288
6288
  var R;
6289
6289
  const Y = r.current.insideReactTree;
6290
6290
  r.current.insideReactTree = !1;
6291
- const T = _.current;
6292
- if (_.current = !1, u === "click" && T || Y || typeof y == "function" && !y(E))
6291
+ const T = w.current;
6292
+ if (w.current = !1, u === "click" && T || Y || typeof b == "function" && !b(E))
6293
6293
  return;
6294
6294
  const k = bn(E), $ = "[" + mi("inert") + "]", K = qe(l.floating).querySelectorAll($);
6295
6295
  let U = Oe(k) ? k : null;
@@ -6339,7 +6339,7 @@ function jl(e, t) {
6339
6339
  F.useEffect(() => {
6340
6340
  if (!n || !o)
6341
6341
  return;
6342
- r.current.__escapeKeyBubbles = w, r.current.__outsidePressBubbles = b;
6342
+ r.current.__escapeKeyBubbles = _, r.current.__outsidePressBubbles = y;
6343
6343
  let E = -1;
6344
6344
  function R(K) {
6345
6345
  i(!1, K, "ancestor-scroll");
@@ -6358,7 +6358,7 @@ function jl(e, t) {
6358
6358
  );
6359
6359
  }
6360
6360
  const k = qe(l.floating);
6361
- a && (k.addEventListener("keydown", S ? P : D, S), k.addEventListener("compositionstart", Y), k.addEventListener("compositionend", T)), y && k.addEventListener(u, x ? N : C, x);
6361
+ a && (k.addEventListener("keydown", S ? P : D, S), k.addEventListener("compositionstart", Y), k.addEventListener("compositionend", T)), b && k.addEventListener(u, x ? N : C, x);
6362
6362
  let $ = [];
6363
6363
  return f && (Oe(l.domReference) && ($ = Un(l.domReference)), Oe(l.floating) && ($ = $.concat(Un(l.floating))), !Oe(l.reference) && l.reference && l.reference.contextElement && ($ = $.concat(Un(l.reference.contextElement)))), $ = $.filter((K) => {
6364
6364
  var U;
@@ -6368,13 +6368,13 @@ function jl(e, t) {
6368
6368
  passive: !0
6369
6369
  });
6370
6370
  }), () => {
6371
- a && (k.removeEventListener("keydown", S ? P : D, S), k.removeEventListener("compositionstart", Y), k.removeEventListener("compositionend", T)), y && k.removeEventListener(u, x ? N : C, x), $.forEach((K) => {
6371
+ a && (k.removeEventListener("keydown", S ? P : D, S), k.removeEventListener("compositionstart", Y), k.removeEventListener("compositionend", T)), b && k.removeEventListener(u, x ? N : C, x), $.forEach((K) => {
6372
6372
  K.removeEventListener("scroll", R);
6373
6373
  }), window.clearTimeout(E);
6374
6374
  };
6375
- }, [r, l, a, y, u, n, i, f, o, w, b, D, S, P, C, x, N]), F.useEffect(() => {
6375
+ }, [r, l, a, b, u, n, i, f, o, _, y, D, S, P, C, x, N]), F.useEffect(() => {
6376
6376
  r.current.insideReactTree = !1;
6377
- }, [r, y, u]);
6377
+ }, [r, b, u]);
6378
6378
  const z = F.useMemo(() => ({
6379
6379
  onKeyDown: D,
6380
6380
  ...d && {
@@ -6390,10 +6390,10 @@ function jl(e, t) {
6390
6390
  }), [D, i, d, m]), B = F.useMemo(() => ({
6391
6391
  onKeyDown: D,
6392
6392
  onMouseDown() {
6393
- _.current = !0;
6393
+ w.current = !0;
6394
6394
  },
6395
6395
  onMouseUp() {
6396
- _.current = !0;
6396
+ w.current = !0;
6397
6397
  },
6398
6398
  [Sv[u]]: () => {
6399
6399
  r.current.insideReactTree = !0;
@@ -6461,43 +6461,43 @@ function Bl(e) {
6461
6461
  reference: a
6462
6462
  }
6463
6463
  }
6464
- }), p = F.useCallback((w) => {
6465
- const b = Oe(w) ? {
6466
- getBoundingClientRect: () => w.getBoundingClientRect(),
6467
- getClientRects: () => w.getClientRects(),
6468
- contextElement: w
6469
- } : w;
6470
- c(b), h.refs.setReference(b);
6471
- }, [h.refs]), g = F.useCallback((w) => {
6472
- (Oe(w) || w === null) && (m.current = w, o(w)), (Oe(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
6464
+ }), p = F.useCallback((_) => {
6465
+ const y = Oe(_) ? {
6466
+ getBoundingClientRect: () => _.getBoundingClientRect(),
6467
+ getClientRects: () => _.getClientRects(),
6468
+ contextElement: _
6469
+ } : _;
6470
+ c(y), h.refs.setReference(y);
6471
+ }, [h.refs]), g = F.useCallback((_) => {
6472
+ (Oe(_) || _ === null) && (m.current = _, o(_)), (Oe(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
6473
6473
  // `null` to support `positionReference` + an unstable `reference`
6474
6474
  // callback ref.
6475
- w !== null && !Oe(w)) && h.refs.setReference(w);
6475
+ _ !== null && !Oe(_)) && h.refs.setReference(_);
6476
6476
  }, [h.refs]), v = F.useMemo(() => ({
6477
6477
  ...h.refs,
6478
6478
  setReference: g,
6479
6479
  setPositionReference: p,
6480
6480
  domReference: m
6481
- }), [h.refs, g, p]), y = F.useMemo(() => ({
6481
+ }), [h.refs, g, p]), b = F.useMemo(() => ({
6482
6482
  ...h.elements,
6483
6483
  domReference: d
6484
- }), [h.elements, d]), _ = F.useMemo(() => ({
6484
+ }), [h.elements, d]), w = F.useMemo(() => ({
6485
6485
  ...h,
6486
6486
  ...i,
6487
6487
  refs: v,
6488
- elements: y,
6488
+ elements: b,
6489
6489
  nodeId: t
6490
- }), [h, v, y, t, i]);
6490
+ }), [h, v, b, t, i]);
6491
6491
  return De(() => {
6492
- i.dataRef.current.floatingContext = _;
6493
- const w = f?.nodesRef.current.find((b) => b.id === t);
6494
- w && (w.context = _);
6492
+ i.dataRef.current.floatingContext = w;
6493
+ const _ = f?.nodesRef.current.find((y) => y.id === t);
6494
+ _ && (_.context = w);
6495
6495
  }), F.useMemo(() => ({
6496
6496
  ...h,
6497
- context: _,
6497
+ context: w,
6498
6498
  refs: v,
6499
- elements: y
6500
- }), [h, v, y, _]);
6499
+ elements: b
6500
+ }), [h, v, b, w]);
6501
6501
  }
6502
6502
  function Uo() {
6503
6503
  return eg() && vd();
@@ -6563,9 +6563,9 @@ function Ov(e, t) {
6563
6563
  u.current = !1;
6564
6564
  const p = h.relatedTarget, g = h.nativeEvent, v = Oe(p) && p.hasAttribute(mi("focus-guard")) && p.getAttribute("data-type") === "outside";
6565
6565
  d.current = window.setTimeout(() => {
6566
- var y;
6567
- const _ = Xt(o.domReference ? o.domReference.ownerDocument : document);
6568
- !p && _ === o.domReference || Ue((y = r.current.floatingContext) == null ? void 0 : y.refs.floating.current, _) || Ue(o.domReference, _) || v || i(!1, g, "focus");
6566
+ var b;
6567
+ const w = Xt(o.domReference ? o.domReference.ownerDocument : document);
6568
+ !p && w === o.domReference || Ue((b = r.current.floatingContext) == null ? void 0 : b.refs.floating.current, w) || Ue(o.domReference, w) || v || i(!1, g, "focus");
6569
6569
  });
6570
6570
  }
6571
6571
  }), [r, o.domReference, i, c]);
@@ -6674,10 +6674,10 @@ function Dv(e, t) {
6674
6674
  rtl: p = !1,
6675
6675
  virtual: g = !1,
6676
6676
  focusItemOnOpen: v = "auto",
6677
- focusItemOnHover: y = !0,
6678
- openOnArrowKeyDown: _ = !0,
6679
- disabledIndices: w = void 0,
6680
- orientation: b = "vertical",
6677
+ focusItemOnHover: b = !0,
6678
+ openOnArrowKeyDown: w = !0,
6679
+ disabledIndices: _ = void 0,
6680
+ orientation: y = "vertical",
6681
6681
  parentOrientation: S,
6682
6682
  cols: x = 1,
6683
6683
  scrollItemIntoView: L = !0,
@@ -6685,14 +6685,14 @@ function Dv(e, t) {
6685
6685
  itemSizes: P,
6686
6686
  dense: C = !1
6687
6687
  } = t;
6688
- process.env.NODE_ENV !== "production" && (m && (f || yr("`useListNavigation` looping must be enabled to allow escaping."), g || yr("`useListNavigation` must be virtual to allow escaping.")), b === "vertical" && x > 1 && yr("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
6688
+ process.env.NODE_ENV !== "production" && (m && (f || yr("`useListNavigation` looping must be enabled to allow escaping."), g || yr("`useListNavigation` must be virtual to allow escaping.")), y === "vertical" && x > 1 && yr("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
6689
6689
  const N = Ar(l.floating), z = Xe(N), B = so(), E = Al();
6690
6690
  De(() => {
6691
- e.dataRef.current.orientation = b;
6692
- }, [e, b]);
6691
+ e.dataRef.current.orientation = y;
6692
+ }, [e, y]);
6693
6693
  const R = Ge(() => {
6694
6694
  c(k.current === -1 ? null : k.current);
6695
- }), Y = Es(l.domReference), T = F.useRef(v), k = F.useRef(d ?? -1), $ = F.useRef(null), K = F.useRef(!0), U = F.useRef(R), j = F.useRef(!!l.floating), O = F.useRef(n), M = F.useRef(!1), A = F.useRef(!1), te = Xe(w), I = Xe(n), G = Xe(L), ie = Xe(d), [J, ce] = F.useState(), [Z, ne] = F.useState(), q = Ge(() => {
6695
+ }), Y = Es(l.domReference), T = F.useRef(v), k = F.useRef(d ?? -1), $ = F.useRef(null), K = F.useRef(!0), U = F.useRef(R), j = F.useRef(!!l.floating), O = F.useRef(n), M = F.useRef(!1), A = F.useRef(!1), te = Xe(_), I = Xe(n), G = Xe(L), ie = Xe(d), [J, ce] = F.useState(), [Z, ne] = F.useState(), q = Ge(() => {
6696
6696
  function H(be) {
6697
6697
  if (g) {
6698
6698
  var Fe;
@@ -6725,12 +6725,12 @@ function Dv(e, t) {
6725
6725
  if (j.current && (k.current = -1, q()), (!O.current || !j.current) && T.current && ($.current != null || T.current === !0 && $.current == null)) {
6726
6726
  let H = 0;
6727
6727
  const Q = () => {
6728
- o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(Q), H++) : (k.current = $.current == null || Go($.current, b, p) || h ? Yo(o, te.current) : Mc(o, te.current), $.current = null, R());
6728
+ o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(Q), H++) : (k.current = $.current == null || Go($.current, y, p) || h ? Yo(o, te.current) : Mc(o, te.current), $.current = null, R());
6729
6729
  };
6730
6730
  Q();
6731
6731
  }
6732
6732
  } else vl(o, a) || (k.current = a, q(), A.current = !1);
6733
- }, [u, n, l.floating, a, ie, h, o, b, p, R, q, te]), De(() => {
6733
+ }, [u, n, l.floating, a, ie, h, o, y, p, R, q, te]), De(() => {
6734
6734
  var H;
6735
6735
  if (!u || l.floating || !E || g || !j.current)
6736
6736
  return;
@@ -6777,13 +6777,13 @@ function Dv(e, t) {
6777
6777
  let {
6778
6778
  currentTarget: he
6779
6779
  } = X;
6780
- M.current = !0, A.current = !1, y && H(he);
6780
+ M.current = !0, A.current = !1, b && H(he);
6781
6781
  },
6782
6782
  onPointerLeave(X) {
6783
6783
  let {
6784
6784
  pointerType: he
6785
6785
  } = X;
6786
- if (!(!K.current || he === "touch") && (M.current = !0, !!y && (k.current = -1, R(), !g))) {
6786
+ if (!(!K.current || he === "touch") && (M.current = !0, !!b && (k.current = -1, R(), !g))) {
6787
6787
  var be;
6788
6788
  (be = z.current) == null || be.focus({
6789
6789
  preventScroll: !0
@@ -6791,34 +6791,34 @@ function Dv(e, t) {
6791
6791
  }
6792
6792
  }
6793
6793
  };
6794
- }, [I, z, y, o, R, g]), re = F.useCallback(() => {
6794
+ }, [I, z, b, o, R, g]), re = F.useCallback(() => {
6795
6795
  var H;
6796
6796
  return S ?? (E == null || (H = E.nodesRef.current.find((Q) => Q.id === B)) == null || (H = H.context) == null || (H = H.dataRef) == null ? void 0 : H.current.orientation);
6797
6797
  }, [B, E, S]), ye = Ge((H) => {
6798
6798
  if (K.current = !1, M.current = !0, H.which === 229 || !I.current && H.currentTarget === z.current)
6799
6799
  return;
6800
- if (h && iu(H.key, b, p, x)) {
6800
+ if (h && iu(H.key, y, p, x)) {
6801
6801
  ir(H.key, re()) || lt(H), i(!1, H.nativeEvent, "list-navigation"), Ie(l.domReference) && (g ? E?.events.emit("virtualfocus", l.domReference) : l.domReference.focus());
6802
6802
  return;
6803
6803
  }
6804
- const Q = k.current, X = Yo(o, w), he = Mc(o, w);
6804
+ const Q = k.current, X = Yo(o, _), he = Mc(o, _);
6805
6805
  if (Y || (H.key === "Home" && (lt(H), k.current = X, R()), H.key === "End" && (lt(H), k.current = he, R())), x > 1) {
6806
6806
  const be = P || Array.from({
6807
6807
  length: o.current.length
6808
6808
  }, () => ({
6809
6809
  width: 1,
6810
6810
  height: 1
6811
- })), Fe = hg(be, x, C), dt = Fe.findIndex((ze) => ze != null && !gr(o, ze, w)), Lt = Fe.reduce((ze, We, et) => We != null && !gr(o, We, w) ? et : ze, -1), Je = Fe[mg({
6811
+ })), Fe = hg(be, x, C), dt = Fe.findIndex((ze) => ze != null && !gr(o, ze, _)), Lt = Fe.reduce((ze, We, et) => We != null && !gr(o, We, _) ? et : ze, -1), Je = Fe[mg({
6812
6812
  current: Fe.map((ze) => ze != null ? o.current[ze] : null)
6813
6813
  }, {
6814
6814
  event: H,
6815
- orientation: b,
6815
+ orientation: y,
6816
6816
  loop: f,
6817
6817
  rtl: p,
6818
6818
  cols: x,
6819
6819
  // treat undefined (empty grid spaces) as disabled indices so we
6820
6820
  // don't end up in them
6821
- disabledIndices: gg([...(typeof w != "function" ? w : null) || o.current.map((ze, We) => gr(o, We, w) ? We : void 0), void 0], Fe),
6821
+ disabledIndices: gg([...(typeof _ != "function" ? _ : null) || o.current.map((ze, We) => gr(o, We, _) ? We : void 0), void 0], Fe),
6822
6822
  minIndex: dt,
6823
6823
  maxIndex: Lt,
6824
6824
  prevIndex: pg(
@@ -6833,40 +6833,40 @@ function Dv(e, t) {
6833
6833
  ),
6834
6834
  stopEvent: !0
6835
6835
  })];
6836
- if (Je != null && (k.current = Je, R()), b === "both")
6836
+ if (Je != null && (k.current = Je, R()), y === "both")
6837
6837
  return;
6838
6838
  }
6839
- if (ir(H.key, b)) {
6839
+ if (ir(H.key, y)) {
6840
6840
  if (lt(H), n && !g && Xt(H.currentTarget.ownerDocument) === H.currentTarget) {
6841
- k.current = Go(H.key, b, p) ? X : he, R();
6841
+ k.current = Go(H.key, y, p) ? X : he, R();
6842
6842
  return;
6843
6843
  }
6844
- Go(H.key, b, p) ? f ? k.current = Q >= he ? m && Q !== o.current.length ? -1 : X : Ze(o, {
6844
+ Go(H.key, y, p) ? f ? k.current = Q >= he ? m && Q !== o.current.length ? -1 : X : Ze(o, {
6845
6845
  startingIndex: Q,
6846
- disabledIndices: w
6846
+ disabledIndices: _
6847
6847
  }) : k.current = Math.min(he, Ze(o, {
6848
6848
  startingIndex: Q,
6849
- disabledIndices: w
6849
+ disabledIndices: _
6850
6850
  })) : f ? k.current = Q <= X ? m && Q !== -1 ? o.current.length : he : Ze(o, {
6851
6851
  startingIndex: Q,
6852
6852
  decrement: !0,
6853
- disabledIndices: w
6853
+ disabledIndices: _
6854
6854
  }) : k.current = Math.max(X, Ze(o, {
6855
6855
  startingIndex: Q,
6856
6856
  decrement: !0,
6857
- disabledIndices: w
6857
+ disabledIndices: _
6858
6858
  })), vl(o, k.current) && (k.current = -1), R();
6859
6859
  }
6860
6860
  }), de = F.useMemo(() => g && n && se && {
6861
6861
  "aria-activedescendant": Z || J
6862
6862
  }, [g, n, se, Z, J]), fe = F.useMemo(() => ({
6863
- "aria-orientation": b === "both" ? void 0 : b,
6863
+ "aria-orientation": y === "both" ? void 0 : y,
6864
6864
  ...Y ? {} : de,
6865
6865
  onKeyDown: ye,
6866
6866
  onPointerMove() {
6867
6867
  K.current = !0;
6868
6868
  }
6869
- }), [de, ye, b, Y]), me = F.useMemo(() => {
6869
+ }), [de, ye, y, Y]), me = F.useMemo(() => {
6870
6870
  function H(X) {
6871
6871
  v === "auto" && bd(X.nativeEvent) && (T.current = !0);
6872
6872
  }
@@ -6877,7 +6877,7 @@ function Dv(e, t) {
6877
6877
  ...de,
6878
6878
  onKeyDown(X) {
6879
6879
  K.current = !1;
6880
- const he = X.key.startsWith("Arrow"), be = ["Home", "End"].includes(X.key), Fe = he || be, dt = nu(X.key, b, p), Lt = iu(X.key, b, p, x), Je = nu(X.key, re(), p), ze = ir(X.key, b), We = (h ? Je : ze) || X.key === "Enter" || X.key.trim() === "";
6880
+ const he = X.key.startsWith("Arrow"), be = ["Home", "End"].includes(X.key), Fe = he || be, dt = nu(X.key, y, p), Lt = iu(X.key, y, p, x), Je = nu(X.key, re(), p), ze = ir(X.key, y), We = (h ? Je : ze) || X.key === "Enter" || X.key.trim() === "";
6881
6881
  if (g && n) {
6882
6882
  const Ht = E?.nodesRef.current.find((Ae) => Ae.parentId == null), tt = E && Ht ? og(E.nodesRef.current, Ht.id) : null;
6883
6883
  if (Fe && tt && D) {
@@ -6898,7 +6898,7 @@ function Dv(e, t) {
6898
6898
  }
6899
6899
  return ye(X);
6900
6900
  }
6901
- if (!(!n && !_ && he)) {
6901
+ if (!(!n && !w && he)) {
6902
6902
  if (We) {
6903
6903
  const Ht = ir(X.key, re());
6904
6904
  $.current = h && Ht ? null : X.key;
@@ -6907,7 +6907,7 @@ function Dv(e, t) {
6907
6907
  Je && (lt(X), n ? (k.current = Yo(o, te.current), R()) : i(!0, X.nativeEvent, "list-navigation"));
6908
6908
  return;
6909
6909
  }
6910
- ze && (d != null && (k.current = d), lt(X), !n && _ ? i(!0, X.nativeEvent, "list-navigation") : ye(X), n && R());
6910
+ ze && (d != null && (k.current = d), lt(X), !n && w ? i(!0, X.nativeEvent, "list-navigation") : ye(X), n && R());
6911
6911
  }
6912
6912
  },
6913
6913
  onFocus() {
@@ -6918,7 +6918,7 @@ function Dv(e, t) {
6918
6918
  onMouseDown: H,
6919
6919
  onClick: H
6920
6920
  };
6921
- }, [J, de, x, ye, te, v, o, h, R, i, n, _, b, re, p, d, E, g, D]);
6921
+ }, [J, de, x, ye, te, v, o, h, R, i, n, w, y, re, p, d, E, g, D]);
6922
6922
  return F.useMemo(() => u ? {
6923
6923
  reference: me,
6924
6924
  floating: fe,
@@ -6937,8 +6937,8 @@ function Vl(e, t) {
6937
6937
  enabled: a = !0,
6938
6938
  role: c = "dialog"
6939
6939
  } = t, u = zl(), d = ((n = r.domReference) == null ? void 0 : n.id) || u, m = F.useMemo(() => {
6940
- var _;
6941
- return ((_ = Ar(r.floating)) == null ? void 0 : _.id) || o;
6940
+ var w;
6941
+ return ((w = Ar(r.floating)) == null ? void 0 : w.id) || o;
6942
6942
  }, [r.floating, o]), f = (i = Rv.get(c)) != null ? i : c, p = so() != null, g = F.useMemo(() => f === "tooltip" || c === "label" ? {
6943
6943
  ["aria-" + (c === "label" ? "labelledby" : "describedby")]: l ? m : void 0
6944
6944
  } : {
@@ -6961,26 +6961,26 @@ function Vl(e, t) {
6961
6961
  "aria-autocomplete": "list"
6962
6962
  }
6963
6963
  }, [f, m, p, l, d, c]), v = F.useMemo(() => {
6964
- const _ = {
6964
+ const w = {
6965
6965
  id: m,
6966
6966
  ...f && {
6967
6967
  role: f
6968
6968
  }
6969
6969
  };
6970
- return f === "tooltip" || c === "label" ? _ : {
6971
- ..._,
6970
+ return f === "tooltip" || c === "label" ? w : {
6971
+ ...w,
6972
6972
  ...f === "menu" && {
6973
6973
  "aria-labelledby": d
6974
6974
  }
6975
6975
  };
6976
- }, [f, m, d, c]), y = F.useCallback((_) => {
6976
+ }, [f, m, d, c]), b = F.useCallback((w) => {
6977
6977
  let {
6978
- active: w,
6979
- selected: b
6980
- } = _;
6978
+ active: _,
6979
+ selected: y
6980
+ } = w;
6981
6981
  const S = {
6982
6982
  role: "option",
6983
- ...w && {
6983
+ ..._ && {
6984
6984
  id: m + "-fui-option"
6985
6985
  }
6986
6986
  };
@@ -6989,7 +6989,7 @@ function Vl(e, t) {
6989
6989
  case "combobox":
6990
6990
  return {
6991
6991
  ...S,
6992
- "aria-selected": b
6992
+ "aria-selected": y
6993
6993
  };
6994
6994
  }
6995
6995
  return {};
@@ -6997,8 +6997,8 @@ function Vl(e, t) {
6997
6997
  return F.useMemo(() => a ? {
6998
6998
  reference: g,
6999
6999
  floating: v,
7000
- item: y
7001
- } : {}, [a, g, v, y]);
7000
+ item: b
7001
+ } : {}, [a, g, v, b]);
7002
7002
  }
7003
7003
  const lu = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
7004
7004
  function _i(e, t) {
@@ -7064,9 +7064,9 @@ function ha(e, t) {
7064
7064
  status: v
7065
7065
  } = Tv(e, {
7066
7066
  duration: o
7067
- }), y = Xe(n), _ = Xe(i), w = Xe(l), b = Xe(r);
7067
+ }), b = Xe(n), w = Xe(i), _ = Xe(l), y = Xe(r);
7068
7068
  return De(() => {
7069
- const S = _i(y.current, u), x = _i(w.current, u), L = _i(b.current, u), D = _i(_.current, u) || Object.keys(S).reduce((P, C) => (P[C] = "", P), {});
7069
+ const S = _i(b.current, u), x = _i(_.current, u), L = _i(y.current, u), D = _i(w.current, u) || Object.keys(S).reduce((P, C) => (P[C] = "", P), {});
7070
7070
  if (v === "initial" && p((P) => ({
7071
7071
  transitionProperty: P.transitionProperty,
7072
7072
  ...L,
@@ -7085,7 +7085,7 @@ function ha(e, t) {
7085
7085
  ...P
7086
7086
  });
7087
7087
  }
7088
- }, [f, w, y, _, b, m, v, u]), {
7088
+ }, [f, _, b, w, y, m, v, u]), {
7089
7089
  isMounted: g,
7090
7090
  styles: h
7091
7091
  };
@@ -7161,8 +7161,8 @@ const jd = (e, t) => e.indexOf(t) >= 0, ji = (e, t) => e.concat(t), Pe = (e, t,
7161
7161
  }, h = function() {
7162
7162
  const g = Qn(arguments), v = su(n);
7163
7163
  if (v) {
7164
- const y = typeof l == "function" ? l() : l, _ = su(i), b = m(g) || g, S = d.bind(0, b);
7165
- a && a(), y && !u ? (S(), u = !0, a = v((() => u = void 0))) : (a = v(S), _ && !o && (o = _(f))), c = b;
7164
+ const b = typeof l == "function" ? l() : l, w = su(i), y = m(g) || g, S = d.bind(0, y);
7165
+ a && a(), b && !u ? (S(), u = !0, a = v((() => u = void 0))) : (a = v(S), w && !o && (o = w(f))), c = y;
7166
7166
  } else
7167
7167
  d(g);
7168
7168
  };
@@ -7318,8 +7318,8 @@ const uu = (e, t, n) => {
7318
7318
  const { D: n, M: i } = e, { w: l, h: r } = t, o = (m, f, h) => {
7319
7319
  let p = ru(m) * h, g = ru(f) * h;
7320
7320
  if (p === g) {
7321
- const v = Bn(m), y = Bn(f);
7322
- g = v > y ? 0 : g, p = v < y ? 0 : p;
7321
+ const v = Bn(m), b = Bn(f);
7322
+ g = v > b ? 0 : g, p = v < b ? 0 : p;
7323
7323
  }
7324
7324
  return p = p === g ? 0 : p, [p + 0, g + 0];
7325
7325
  }, [a, c] = o(n.x, i.x, l), [u, d] = o(n.y, i.y, r);
@@ -7462,18 +7462,18 @@ const Oy = () => Lf, My = (e) => {
7462
7462
  };
7463
7463
  let Jo;
7464
7464
  const Dy = () => {
7465
- const e = (b, S, x) => {
7466
- at(document.body, b), at(document.body, b);
7467
- const L = uf(b), D = $i(b), P = Sa(S);
7468
- return x && Wi(b), {
7465
+ const e = (y, S, x) => {
7466
+ at(document.body, y), at(document.body, y);
7467
+ const L = uf(y), D = $i(y), P = Sa(S);
7468
+ return x && Wi(y), {
7469
7469
  x: D.h - L.h + P.h,
7470
7470
  y: D.w - L.w + P.w
7471
7471
  };
7472
- }, t = (b) => {
7472
+ }, t = (y) => {
7473
7473
  let S = !1;
7474
- const x = Ea(b, rr);
7474
+ const x = Ea(y, rr);
7475
7475
  try {
7476
- S = ln(b, "scrollbar-width") === "none" || ln(b, "display", "::-webkit-scrollbar") === "none";
7476
+ S = ln(y, "scrollbar-width") === "none" || ln(y, "display", "::-webkit-scrollbar") === "none";
7477
7477
  } catch {
7478
7478
  }
7479
7479
  return x(), S;
@@ -7489,7 +7489,7 @@ const Dy = () => {
7489
7489
  elements: {
7490
7490
  host: null,
7491
7491
  padding: !h,
7492
- viewport: (b) => h && rf(b) && b,
7492
+ viewport: (y) => h && rf(y) && y,
7493
7493
  content: !1
7494
7494
  },
7495
7495
  scrollbars: {
@@ -7499,36 +7499,36 @@ const Dy = () => {
7499
7499
  nativeScrollbarsOverlaid: !1,
7500
7500
  body: null
7501
7501
  }
7502
- }, v = ke({}, Cy), y = ue(ke, {}, v), _ = ue(ke, {}, g), w = {
7502
+ }, v = ke({}, Cy), b = ue(ke, {}, v), w = ue(ke, {}, g), _ = {
7503
7503
  P: f,
7504
7504
  k: p,
7505
7505
  U: h,
7506
7506
  J: !!ml,
7507
7507
  G: ue(c, "r"),
7508
- K: _,
7509
- Z: (b) => ke(g, b) && _(),
7510
- tt: y,
7511
- nt: (b) => ke(v, b) && y(),
7508
+ K: w,
7509
+ Z: (y) => ke(g, y) && w(),
7510
+ tt: b,
7511
+ nt: (y) => ke(v, y) && b(),
7512
7512
  ot: ke({}, g),
7513
7513
  st: ke({}, v)
7514
7514
  };
7515
7515
  if (Zt(l, "style"), Wi(l), Me(ct, "resize", (() => {
7516
7516
  u("r", []);
7517
7517
  })), Wt(ct.matchMedia) && !h && (!p.x || !p.y)) {
7518
- const b = (S) => {
7518
+ const y = (S) => {
7519
7519
  const x = ct.matchMedia(`(resolution: ${ct.devicePixelRatio}dppx)`);
7520
7520
  Me(x, "change", (() => {
7521
- S(), b(S);
7521
+ S(), y(S);
7522
7522
  }), {
7523
7523
  T: !0
7524
7524
  });
7525
7525
  };
7526
- b((() => {
7526
+ y((() => {
7527
7527
  const [S, x] = d();
7528
- ke(w.P, S), u("r", [x]);
7528
+ ke(_.P, S), u("r", [x]);
7529
7529
  }));
7530
7530
  }
7531
- return w;
7531
+ return _;
7532
7532
  }, sn = () => (Jo || (Jo = Dy()), Jo), Ry = (e, t, n) => {
7533
7533
  let i = !1;
7534
7534
  const l = n ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
@@ -7554,26 +7554,26 @@ const Dy = () => {
7554
7554
  return o(), [r, o];
7555
7555
  }, xu = (e, t, n, i) => {
7556
7556
  let l = !1;
7557
- const { et: r, ct: o, rt: a, it: c, lt: u, ut: d } = i || {}, [m, f] = Ry(e, (() => l && n(!0)), a), h = r || [], p = o || [], g = ji(h, p), v = (_, w) => {
7558
- if (!Vr(w)) {
7559
- const b = u || Sl, S = d || Sl, x = [], L = [];
7557
+ const { et: r, ct: o, rt: a, it: c, lt: u, ut: d } = i || {}, [m, f] = Ry(e, (() => l && n(!0)), a), h = r || [], p = o || [], g = ji(h, p), v = (w, _) => {
7558
+ if (!Vr(_)) {
7559
+ const y = u || Sl, S = d || Sl, x = [], L = [];
7560
7560
  let D = !1, P = !1;
7561
- if (Ee(w, ((C) => {
7561
+ if (Ee(_, ((C) => {
7562
7562
  const { attributeName: N, target: z, type: B, oldValue: E, addedNodes: R, removedNodes: Y } = C, T = B === "attributes", k = B === "childList", $ = e === z, K = T && N, U = K && xa(z, N || ""), j = Ui(U) ? U : null, O = K && E !== j, M = jd(p, N) && O;
7563
7563
  if (t && (k || !$)) {
7564
- const A = T && O, te = A && c && Cs(z, c), G = (te ? !b(z, N, E, j) : !T || A) && !S(C, !!te, e, i);
7564
+ const A = T && O, te = A && c && Cs(z, c), G = (te ? !y(z, N, E, j) : !T || A) && !S(C, !!te, e, i);
7565
7565
  Ee(R, ((ie) => Pe(x, ie))), Ee(Y, ((ie) => Pe(x, ie))), P = P || G;
7566
7566
  }
7567
- !t && $ && O && !b(z, N, E, j) && (Pe(L, N), D = D || M);
7567
+ !t && $ && O && !y(z, N, E, j) && (Pe(L, N), D = D || M);
7568
7568
  })), f(((C) => Hr(x).reduce(((N, z) => (Pe(N, lf(C, z)), Cs(z, C) ? Pe(N, z) : N)), []))), t)
7569
- return !_ && P && n(!1), [!1];
7569
+ return !w && P && n(!1), [!1];
7570
7570
  if (!Vr(L) || D) {
7571
7571
  const C = [Hr(L), D];
7572
- return _ || n.apply(0, C), C;
7572
+ return w || n.apply(0, C), C;
7573
7573
  }
7574
7574
  }
7575
- }, y = new Hv(ue(v, !1));
7576
- return [() => (y.observe(e, {
7575
+ }, b = new Hv(ue(v, !1));
7576
+ return [() => (b.observe(e, {
7577
7577
  attributes: !0,
7578
7578
  attributeOldValue: !0,
7579
7579
  attributeFilter: g,
@@ -7581,10 +7581,10 @@ const Dy = () => {
7581
7581
  childList: t,
7582
7582
  characterData: t
7583
7583
  }), l = !0, () => {
7584
- l && (m(), y.disconnect(), l = !1);
7584
+ l && (m(), b.disconnect(), l = !1);
7585
7585
  }), () => {
7586
7586
  if (l)
7587
- return v(!0, y.takeRecords());
7587
+ return v(!0, b.takeRecords());
7588
7588
  }];
7589
7589
  };
7590
7590
  let ti = null;
@@ -7598,8 +7598,8 @@ const Ff = (e, t, n) => {
7598
7598
  const f = Ot(m) && !Vr(m);
7599
7599
  let h = !1, p = !1;
7600
7600
  if (f) {
7601
- const g = m[0], [v, , y] = r(g.contentRect), _ = Rs(v);
7602
- p = df(v, y), h = !p && !_;
7601
+ const g = m[0], [v, , b] = r(g.contentRect), w = Rs(v);
7602
+ p = df(v, b), h = !p && !w;
7603
7603
  } else
7604
7604
  p = m === !0;
7605
7605
  h || t({
@@ -7664,7 +7664,7 @@ const Ff = (e, t, n) => {
7664
7664
  }, () => n && a(!0, n.takeRecords())];
7665
7665
  }, Ty = (e, t, n, i) => {
7666
7666
  let l, r, o, a, c, u, d, m;
7667
- const f = `[${Gn}]`, h = `[${vn}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: v, L: y, gt: _, ht: w, V: b, bt: S, wt: x, yt: L, St: D } = e, P = (I) => ln(I, "direction") === "rtl", C = () => {
7667
+ const f = `[${Gn}]`, h = `[${vn}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: v, L: b, gt: w, ht: _, V: y, bt: S, wt: x, yt: L, St: D } = e, P = (I) => ln(I, "direction") === "rtl", C = () => {
7668
7668
  let I, G, ie;
7669
7669
  const J = Zd(i, {
7670
7670
  p: () => I,
@@ -7692,8 +7692,8 @@ const Ff = (e, t, n) => {
7692
7692
  h: 0
7693
7693
  }
7694
7694
  }, (() => {
7695
- const I = B && B.R(e, t, N, z, n).Y, ie = !(S && b) && Fa(v, Gn, _r), J = !b && x(ay), ce = J && yt(_), Z = ce && D(), ne = L(yf, ie), q = J && I && I(), se = qr(y), le = Sa(y);
7696
- return q && q(), en(_, ce), Z && Z(), ie && ne(), {
7695
+ const I = B && B.R(e, t, N, z, n).Y, ie = !(S && y) && Fa(v, Gn, _r), J = !y && x(ay), ce = J && yt(w), Z = ce && D(), ne = L(yf, ie), q = J && I && I(), se = qr(b), le = Sa(b);
7696
+ return q && q(), en(w, ce), Z && Z(), ie && ne(), {
7697
7697
  w: se.w + le.w,
7698
7698
  h: se.h + le.h
7699
7699
  };
@@ -7727,12 +7727,12 @@ const Ff = (e, t, n) => {
7727
7727
  Ht: G
7728
7728
  };
7729
7729
  return Y(J), G && !ie && R(J, l), J;
7730
- }, [U, j] = w ? Ny(v, T) : [], O = !b && Ff(v, k, {
7730
+ }, [U, j] = _ ? Ny(v, T) : [], O = !y && Ff(v, k, {
7731
7731
  ft: !0
7732
7732
  }), [M, A] = xu(v, !1, K, {
7733
7733
  ct: p,
7734
7734
  et: p
7735
- }), te = b && Si && new Si(((I) => {
7735
+ }), te = y && Si && new Si(((I) => {
7736
7736
  const G = I[I.length - 1].contentRect;
7737
7737
  k({
7738
7738
  _t: !0,
@@ -7756,13 +7756,13 @@ const Ff = (e, t, n) => {
7756
7756
  const J = {}, [ce] = I("update.ignoreMutation"), [Z, ne] = I("update.attributes"), [q, se] = I("update.elementEvents"), [le, re] = I("update.debounce"), ye = se || ne, de = G || ie, fe = (me) => Wt(ce) && ce(me);
7757
7757
  if (ye) {
7758
7758
  c && c(), u && u();
7759
- const [me, H] = xu(w || y, !0, $, {
7759
+ const [me, H] = xu(_ || b, !0, $, {
7760
7760
  et: ji(p, Z || []),
7761
7761
  rt: q,
7762
7762
  it: f,
7763
7763
  ut: (Q, X) => {
7764
7764
  const { target: he, attributeName: be } = Q;
7765
- return (!X && be && !b ? Kv(he, f, h) : !1) || !!Oi(he, `.${kt}`) || !!fe(Q);
7765
+ return (!X && be && !y ? Kv(he, f, h) : !1) || !!Oi(he, `.${kt}`) || !!fe(Q);
7766
7766
  }
7767
7767
  });
7768
7768
  u = me(), c = H;
@@ -7783,7 +7783,7 @@ const Ff = (e, t, n) => {
7783
7783
  const { nativeScrollbarsOverlaid: n, body: i } = t || {}, { k: l, U: r, K: o } = sn(), { nativeScrollbarsOverlaid: a, body: c } = o().cancel, u = n ?? a, d = va(i) ? c : i, m = (l.x || l.y) && u, f = e && (ho(d) ? !r : d);
7784
7784
  return !!m || !!f;
7785
7785
  }, Iy = (e, t, n, i) => {
7786
- const l = "--os-viewport-percent", r = "--os-scroll-percent", o = "--os-scroll-direction", { K: a } = sn(), { scrollbars: c } = a(), { slot: u } = c, { dt: d, vt: m, L: f, Tt: h, gt: p, bt: g, V: v } = t, { scrollbars: y } = h ? {} : e, { slot: _ } = y || {}, w = [], b = [], S = [], x = Sf([d, m, f], (() => v && g ? d : m), u, _), L = (U) => {
7786
+ const l = "--os-viewport-percent", r = "--os-scroll-percent", o = "--os-scroll-direction", { K: a } = sn(), { scrollbars: c } = a(), { slot: u } = c, { dt: d, vt: m, L: f, Tt: h, gt: p, bt: g, V: v } = t, { scrollbars: b } = h ? {} : e, { slot: w } = b || {}, _ = [], y = [], S = [], x = Sf([d, m, f], (() => v && g ? d : m), u, w), L = (U) => {
7787
7787
  if (ml) {
7788
7788
  let j = null, O = [];
7789
7789
  const M = new ml({
@@ -7825,24 +7825,24 @@ const Ff = (e, t, n) => {
7825
7825
  }));
7826
7826
  }, z = (U, j, O) => {
7827
7827
  const M = po(O), A = M ? O : !0, te = M ? !O : !0;
7828
- A && C(b, U, j), te && C(S, U, j);
7828
+ A && C(y, U, j), te && C(S, U, j);
7829
7829
  }, B = () => {
7830
7830
  const U = P(), j = (O) => (M) => [M.Lt, {
7831
7831
  [l]: Ds(O) + ""
7832
7832
  }];
7833
- N(b, j(U.x)), N(S, j(U.y));
7833
+ N(y, j(U.x)), N(S, j(U.y));
7834
7834
  }, E = () => {
7835
7835
  if (!ml) {
7836
7836
  const { Dt: U } = n, j = fu(U, yt(p)), O = (M) => (A) => [A.Lt, {
7837
7837
  [r]: Ds(M) + ""
7838
7838
  }];
7839
- N(b, O(j.x)), N(S, O(j.y));
7839
+ N(y, O(j.x)), N(S, O(j.y));
7840
7840
  }
7841
7841
  }, R = () => {
7842
7842
  const { Dt: U } = n, j = Xo(U), O = (M) => (A) => [A.Lt, {
7843
7843
  [o]: M ? "0" : "1"
7844
7844
  }];
7845
- N(b, O(j.x)), N(S, O(j.y)), ml && (b.forEach(D.x.kt), S.forEach(D.y.kt));
7845
+ N(y, O(j.x)), N(S, O(j.y)), ml && (y.forEach(D.x.kt), S.forEach(D.y.kt));
7846
7846
  }, Y = () => {
7847
7847
  if (v && !g) {
7848
7848
  const { Rt: U, Dt: j } = n, O = Xo(j), M = fu(j, yt(p)), A = (te) => {
@@ -7857,7 +7857,7 @@ const Ff = (e, t, n) => {
7857
7857
  })
7858
7858
  }];
7859
7859
  };
7860
- N(b, A), N(S, A);
7860
+ N(y, A), N(S, A);
7861
7861
  }
7862
7862
  }, T = (U) => {
7863
7863
  const j = U ? "x" : "y", M = Pi(`${kt} ${U ? gy : vy}`), A = Pi(wf), te = Pi(Oa), I = {
@@ -7865,8 +7865,8 @@ const Ff = (e, t, n) => {
7865
7865
  Ut: A,
7866
7866
  Mt: te
7867
7867
  }, G = D[j];
7868
- return Pe(U ? b : S, I), Pe(w, [at(M, A), at(A, te), ue(Wi, M), G && G.kt(I), i(I, z, U)]), I;
7869
- }, k = ue(T, !0), $ = ue(T, !1), K = () => (at(x, b[0].Lt), at(x, S[0].Lt), ue(wt, w));
7868
+ return Pe(U ? y : S, I), Pe(_, [at(M, A), at(A, te), ue(Wi, M), G && G.kt(I), i(I, z, U)]), I;
7869
+ }, k = ue(T, !0), $ = ue(T, !1), K = () => (at(x, y[0].Lt), at(x, S[0].Lt), ue(wt, _));
7870
7870
  return k(), $(), [{
7871
7871
  Pt: B,
7872
7872
  Nt: E,
@@ -7874,9 +7874,9 @@ const Ff = (e, t, n) => {
7874
7874
  Bt: Y,
7875
7875
  Ft: z,
7876
7876
  jt: {
7877
- Xt: b,
7877
+ Xt: y,
7878
7878
  Yt: k,
7879
- Wt: ue(N, b)
7879
+ Wt: ue(N, y)
7880
7880
  },
7881
7881
  Jt: {
7882
7882
  Xt: S,
@@ -7885,7 +7885,7 @@ const Ff = (e, t, n) => {
7885
7885
  }
7886
7886
  }, K];
7887
7887
  }, zy = (e, t, n, i) => (l, r, o) => {
7888
- const { vt: a, L: c, V: u, gt: d, Gt: m, St: f } = t, { Lt: h, Ut: p, Mt: g } = l, [v, y] = Ci(333), [_, w] = Ci(444), b = (L) => {
7888
+ const { vt: a, L: c, V: u, gt: d, Gt: m, St: f } = t, { Lt: h, Ut: p, Mt: g } = l, [v, b] = Ci(333), [w, _] = Ci(444), y = (L) => {
7889
7889
  Wt(d.scrollBy) && d.scrollBy({
7890
7890
  behavior: "smooth",
7891
7891
  left: L.x,
@@ -7901,7 +7901,7 @@ const Ff = (e, t, n) => {
7901
7901
  return Me(p, "pointerdown", ((R) => {
7902
7902
  const Y = Oi(R.target, `.${Oa}`) === g, T = Y ? g : p, k = e.scrollbars, $ = k[Y ? "dragScroll" : "clickScroll"], { button: K, isPrimary: U, pointerType: j } = R, { pointers: O } = k;
7903
7903
  if (K === 0 && U && $ && (O || []).includes(j)) {
7904
- wt(E), w();
7904
+ wt(E), _();
7905
7905
  const A = !Y && (R.shiftKey || $ === "instant"), te = ue(Zo, g), I = ue(Zo, p), G = (H, Q) => (H || te())[C] - (Q || I())[C], ie = Ss(Zo(d)[P]) / $i(d)[N] || 1, J = B(yt(d)[z], 1 / ie), ce = R[D], Z = te(), ne = I(), q = Z[P], se = G(Z, ne) + q / 2, le = ce - ne[C], re = Y ? 0 : le - se, ye = (H) => {
7906
7906
  wt(me), T.releasePointerCapture(H.pointerId);
7907
7907
  }, de = Y || A, fe = f(), me = [Me(m, L, ye), Me(m, "selectstart", ((H) => Ns(H)), {
@@ -7913,7 +7913,7 @@ const Ff = (e, t, n) => {
7913
7913
  x: Q.x - H.x,
7914
7914
  y: Q.y - H.y
7915
7915
  };
7916
- (Bn(X.x) > 3 || Bn(X.y) > 3) && (f(), en(d, H), b(X), _(fe));
7916
+ (Bn(X.x) > 3 || Bn(X.y) > 3) && (f(), en(d, H), y(X), w(fe));
7917
7917
  })];
7918
7918
  if (T.setPointerCapture(R.pointerId), A)
7919
7919
  J(re);
@@ -7939,7 +7939,7 @@ const Ff = (e, t, n) => {
7939
7939
  (au(L, vn) || au(L, Gn) || L === document.body) && ga(ue(Ts, c), 25);
7940
7940
  })), Me(h, "wheel", ((L) => {
7941
7941
  const { deltaX: D, deltaY: P, deltaMode: C } = L;
7942
- x && C === 0 && Cl(h) === a && b({
7942
+ x && C === 0 && Cl(h) === a && y({
7943
7943
  x: D,
7944
7944
  y: P
7945
7945
  }), x = !1, r(bu, !0), v((() => {
@@ -7964,10 +7964,10 @@ const Ff = (e, t, n) => {
7964
7964
  }), {
7965
7965
  A: !0,
7966
7966
  I: !0
7967
- }), S(), y, w]);
7967
+ }), S(), b, _]);
7968
7968
  }, Ay = (e, t, n, i, l, r) => {
7969
7969
  let o, a, c, u, d, m = Sl, f = 0;
7970
- const h = ["mouse", "pen"], p = (O) => h.includes(O.pointerType), [g, v] = Ci(), [y, _] = Ci(100), [w, b] = Ci(100), [S, x] = Ci((() => f)), [L, D] = Iy(e, l, i, zy(t, l, i, ((O) => p(O) && k()))), { vt: P, Kt: C, bt: N } = l, { Ft: z, Pt: B, Nt: E, qt: R, Bt: Y } = L, T = (O, M) => {
7970
+ const h = ["mouse", "pen"], p = (O) => h.includes(O.pointerType), [g, v] = Ci(), [b, w] = Ci(100), [_, y] = Ci(100), [S, x] = Ci((() => f)), [L, D] = Iy(e, l, i, zy(t, l, i, ((O) => p(O) && k()))), { vt: P, Kt: C, bt: N } = l, { Ft: z, Pt: B, Nt: E, qt: R, Bt: Y } = L, T = (O, M) => {
7971
7971
  if (x(), O)
7972
7972
  z(yu);
7973
7973
  else {
@@ -7975,14 +7975,14 @@ const Ff = (e, t, n) => {
7975
7975
  f > 0 && !M ? S(A) : A();
7976
7976
  }
7977
7977
  }, k = () => {
7978
- (c ? !o : !u) && (T(!0), y((() => {
7978
+ (c ? !o : !u) && (T(!0), b((() => {
7979
7979
  T(!1);
7980
7980
  })));
7981
7981
  }, $ = (O) => {
7982
7982
  z(Is, O, !0), z(Is, O, !1);
7983
7983
  }, K = (O) => {
7984
7984
  p(O) && (o = c, c && T(!0));
7985
- }, U = [x, _, b, v, () => m(), Me(P, "pointerover", K, {
7985
+ }, U = [x, w, y, v, () => m(), Me(P, "pointerover", K, {
7986
7986
  T: !0
7987
7987
  }), Me(P, "pointerenter", K), Me(P, "pointerleave", ((O) => {
7988
7988
  p(O) && (o = !1, c && T(!1));
@@ -7998,7 +7998,7 @@ const Ff = (e, t, n) => {
7998
7998
  const vi = Nn.includes(Bi) && (H === wn || H === "auto" && Tn === Bi);
7999
7999
  return z(yy, vi, gi), vi;
8000
8000
  };
8001
- if (f = dt, Rn && (be && Ht ? ($(!1), m(), w((() => {
8001
+ if (f = dt, Rn && (be && Ht ? ($(!1), m(), _((() => {
8002
8002
  m = Me(C, "scroll", ue($, !0), {
8003
8003
  T: !0
8004
8004
  });
@@ -8009,10 +8009,10 @@ const Ff = (e, t, n) => {
8009
8009
  tt && (E(), B(), Y(), J && R(), z(vu, !re.x, !0), z(vu, !re.y, !1), z(py, ne && !N));
8010
8010
  }, {}, L];
8011
8011
  }, Yy = (e) => {
8012
- const t = sn(), { K: n, U: i } = t, { elements: l } = n(), { padding: r, viewport: o, content: a } = l, c = Wr(e), u = c ? {} : e, { elements: d } = u, { padding: m, viewport: f, content: h } = d || {}, p = c ? e : u.target, g = rf(p), v = p.ownerDocument, y = v.documentElement, _ = () => v.defaultView || ct, w = ue(Py, [p]), b = ue(Sf, [p]), S = ue(Pi, ""), x = ue(w, S, o), L = ue(b, S, a), D = (q) => {
8012
+ const t = sn(), { K: n, U: i } = t, { elements: l } = n(), { padding: r, viewport: o, content: a } = l, c = Wr(e), u = c ? {} : e, { elements: d } = u, { padding: m, viewport: f, content: h } = d || {}, p = c ? e : u.target, g = rf(p), v = p.ownerDocument, b = v.documentElement, w = () => v.defaultView || ct, _ = ue(Py, [p]), y = ue(Sf, [p]), S = ue(Pi, ""), x = ue(_, S, o), L = ue(y, S, a), D = (q) => {
8013
8013
  const se = $i(q), le = qr(q), re = ln(q, wa), ye = ln(q, _a);
8014
8014
  return le.w - se.w > 0 && !Mi(re) || le.h - se.h > 0 && !Mi(ye);
8015
- }, P = x(f), C = P === p, N = C && g, z = !C && L(h), B = !C && P === z, E = N ? y : P, R = N ? E : p, Y = !C && b(S, r, m), T = !B && z, k = [T, E, Y, R].map(((q) => Wr(q) && !Cl(q) && q)), $ = (q) => q && jd(k, q), K = !$(E) && D(E) ? E : p, U = N ? y : E, O = {
8015
+ }, P = x(f), C = P === p, N = C && g, z = !C && L(h), B = !C && P === z, E = N ? b : P, R = N ? E : p, Y = !C && y(S, r, m), T = !B && z, k = [T, E, Y, R].map(((q) => Wr(q) && !Cl(q) && q)), $ = (q) => q && jd(k, q), K = !$(E) && D(E) ? E : p, U = N ? b : E, O = {
8016
8016
  dt: p,
8017
8017
  vt: R,
8018
8018
  L: E,
@@ -8020,30 +8020,30 @@ const Ff = (e, t, n) => {
8020
8020
  ht: T,
8021
8021
  gt: U,
8022
8022
  Kt: N ? v : E,
8023
- ln: g ? y : K,
8023
+ ln: g ? b : K,
8024
8024
  Gt: v,
8025
8025
  bt: g,
8026
8026
  Tt: c,
8027
8027
  V: C,
8028
- an: _,
8028
+ an: w,
8029
8029
  wt: (q) => Fa(E, vn, q),
8030
8030
  yt: (q, se) => Ur(E, vn, q, se),
8031
8031
  St: () => Ur(U, vn, cy, !0)
8032
8032
  }, { dt: M, vt: A, rn: te, L: I, ht: G } = O, ie = [() => {
8033
- Zt(A, [Gn, Qo]), Zt(M, Qo), g && Zt(y, [Qo, Gn]);
8033
+ Zt(A, [Gn, Qo]), Zt(M, Qo), g && Zt(b, [Qo, Gn]);
8034
8034
  }];
8035
8035
  let J = Os([G, I, te, A, M].find(((q) => q && !$(q))));
8036
8036
  const ce = N ? M : G || I, Z = ue(wt, ie);
8037
8037
  return [O, () => {
8038
- const q = _(), se = Ms(), le = (me) => {
8038
+ const q = w(), se = Ms(), le = (me) => {
8039
8039
  at(Cl(me), Os(me)), Wi(me);
8040
8040
  }, re = (me) => Me(me, "focusin focusout focus blur", mf, {
8041
8041
  A: !0,
8042
8042
  I: !1
8043
8043
  }), ye = "tabindex", de = xa(I, ye), fe = re(se);
8044
- return gn(A, Gn, C ? "" : ry), gn(te, $s, ""), gn(I, vn, ""), gn(G, pu, ""), C || (gn(I, ye, de || "-1"), g && gn(y, hu, "")), at(ce, J), at(A, te), at(te || A, !C && I), at(I, G), Pe(ie, [fe, () => {
8044
+ return gn(A, Gn, C ? "" : ry), gn(te, $s, ""), gn(I, vn, ""), gn(G, pu, ""), C || (gn(I, ye, de || "-1"), g && gn(b, hu, "")), at(ce, J), at(A, te), at(te || A, !C && I), at(I, G), Pe(ie, [fe, () => {
8045
8045
  const me = Ms(), H = $(I), Q = H && me === I ? M : me, X = re(Q);
8046
- Zt(te, $s), Zt(G, pu), Zt(I, vn), g && Zt(y, hu), de ? gn(I, ye, de) : Zt(I, ye), $(G) && le(G), H && le(I), $(te) && le(te), Ts(Q), X();
8046
+ Zt(te, $s), Zt(G, pu), Zt(I, vn), g && Zt(b, hu), de ? gn(I, ye, de) : Zt(I, ye), $(G) && le(G), H && le(I), $(te) && le(te), Ts(Q), X();
8047
8047
  }]), i && !C && (La(I, vn, bf), Pe(ie, ue(Zt, I, vn))), Ts(!C && g && se === M && q.top === q ? I : se), fe(), J = 0, Z;
8048
8048
  }, Z];
8049
8049
  }, jy = ({ ht: e }) => ({ Qt: t, un: n, At: i }) => {
@@ -8058,17 +8058,17 @@ const Ff = (e, t, n) => {
8058
8058
  }, ue(uu, e, "padding", ""));
8059
8059
  return ({ zt: a, Qt: c, un: u, At: d }) => {
8060
8060
  let [m, f] = o(d);
8061
- const { U: h } = sn(), { _t: p, xt: g, Ct: v } = c || {}, { B: y } = u, [_, w] = a("paddingAbsolute");
8061
+ const { U: h } = sn(), { _t: p, xt: g, Ct: v } = c || {}, { B: b } = u, [w, _] = a("paddingAbsolute");
8062
8062
  (p || f || (d || g)) && ([m, f] = r(d));
8063
- const S = !i && (w || v || f);
8063
+ const S = !i && (_ || v || f);
8064
8064
  if (S) {
8065
- const x = !_ || !t && !h, L = m.r + m.l, D = m.t + m.b, P = {
8066
- [qd]: x && !y ? -L : 0,
8065
+ const x = !w || !t && !h, L = m.r + m.l, D = m.t + m.b, P = {
8066
+ [qd]: x && !b ? -L : 0,
8067
8067
  [Gd]: x ? -D : 0,
8068
- [Ud]: x && y ? -L : 0,
8068
+ [Ud]: x && b ? -L : 0,
8069
8069
  top: x ? -m.t : 0,
8070
- right: x ? y ? -m.r : "auto" : 0,
8071
- left: x ? y ? "auto" : -m.l : 0,
8070
+ right: x ? b ? -m.r : "auto" : 0,
8071
+ left: x ? b ? "auto" : -m.l : 0,
8072
8072
  [vo]: x && `calc(100% + ${L}px)`
8073
8073
  }, C = {
8074
8074
  [Bd]: x ? m.t : 0,
@@ -8092,18 +8092,18 @@ const Ff = (e, t, n) => {
8092
8092
  direction: (M) => M !== "ltr",
8093
8093
  flexDirection: (M) => M.endsWith("-reverse"),
8094
8094
  writingMode: (M) => M !== "horizontal-tb"
8095
- }, v = st(g), y = {
8095
+ }, v = st(g), b = {
8096
8096
  i: Kd,
8097
8097
  o: {
8098
8098
  w: 0,
8099
8099
  h: 0
8100
8100
  }
8101
- }, _ = {
8101
+ }, w = {
8102
8102
  i: br,
8103
8103
  o: {}
8104
- }, w = (M) => {
8104
+ }, _ = (M) => {
8105
8105
  d(yf, !h && M);
8106
- }, b = () => ln(r, v), S = (M, A) => {
8106
+ }, y = () => ln(r, v), S = (M, A) => {
8107
8107
  const te = !st(M).length, I = !A && v.some(((de) => {
8108
8108
  const fe = M[de];
8109
8109
  return Ui(fe) && g[de](fe);
@@ -8119,7 +8119,7 @@ const Ff = (e, t, n) => {
8119
8119
  y: 1
8120
8120
  }
8121
8121
  };
8122
- w(!0);
8122
+ _(!0);
8123
8123
  const ie = yt(c), J = Me(a, Bi, ((de) => {
8124
8124
  const fe = yt(c);
8125
8125
  de.isTrusted && fe.x === ie.x && fe.y === ie.y && ff(de);
@@ -8176,7 +8176,7 @@ const Ff = (e, t, n) => {
8176
8176
  }, D = (M) => {
8177
8177
  const A = (I) => [wn, It, Bi].map(((G) => O(zs(G), I))), te = A(!0).concat(A()).join(" ");
8178
8178
  d(te), d(st(M).map(((I) => O(M[I], I === "x"))).join(" "), !0);
8179
- }, [P, C] = gt(y, ue(Sa, r)), [N, z] = gt(y, ue(qr, r)), [B, E] = gt(y), [R] = gt(_), [Y, T] = gt(y), [k] = gt(_), [$] = gt({
8179
+ }, [P, C] = gt(b, ue(Sa, r)), [N, z] = gt(b, ue(qr, r)), [B, E] = gt(b), [R] = gt(w), [Y, T] = gt(b), [k] = gt(w), [$] = gt({
8180
8180
  i: (M, A) => bo(M, A, Hr(ji(st(M), st(A)))),
8181
8181
  o: {}
8182
8182
  }), [K, U] = gt({
@@ -8187,7 +8187,7 @@ const Ff = (e, t, n) => {
8187
8187
  const { _t: ie, Ht: J, xt: ce, Ct: Z, ft: ne, Et: q } = A || {}, se = j && j.R(e, t, te, n, M), { X: le, Y: re, W: ye } = se || {}, [de, fe] = xy(M, n), [me, H] = M("overflow"), Q = Mi(me.x), X = Mi(me.y), he = ie || G || ce || Z || q || fe;
8188
8188
  let be = C(I), Fe = z(I), dt = E(I), Lt = T(I);
8189
8189
  if (fe && f && d(bf, !de), he) {
8190
- Fa(i, Gn, _r) && w(!0);
8190
+ Fa(i, Gn, _r) && _(!0);
8191
8191
  const Ji = re && re(), [$n] = be = P(I), [yi] = Fe = N(I), bi = uf(r), ei = h && ey(m()), el = {
8192
8192
  w: p(yi.w + $n.w),
8193
8193
  h: p(yi.h + $n.h)
@@ -8200,9 +8200,9 @@ const Ff = (e, t, n) => {
8200
8200
  const [Je, ze] = Lt, [We, et] = dt, [un, Rn] = Fe, [Ht, tt] = be, [Ae, Jn] = R({
8201
8201
  x: We.w > 0,
8202
8202
  y: We.h > 0
8203
- }), Rt = Q && X && (Ae.x || Ae.y) || Q && Ae.x && !Ae.y || X && Ae.y && !Ae.x, Ft = G || Z || q || tt || Rn || ze || et || H || fe || he || J && h, [dn] = M("update.flowDirectionStyles"), [Nn, Tn] = $(dn ? dn(r) : b(), I), gi = Z || ne || Tn || Jn || I, [vi, Pn] = gi ? K(S(Nn, !!dn), I) : U();
8203
+ }), Rt = Q && X && (Ae.x || Ae.y) || Q && Ae.x && !Ae.y || X && Ae.y && !Ae.x, Ft = G || Z || q || tt || Rn || ze || et || H || fe || he || J && h, [dn] = M("update.flowDirectionStyles"), [Nn, Tn] = $(dn ? dn(r) : y(), I), gi = Z || ne || Tn || Jn || I, [vi, Pn] = gi ? K(S(Nn, !!dn), I) : U();
8204
8204
  let Ut = L(Ae, me);
8205
- w(!1), Ft && (D(Ut), Ut = Fy(r, Ae), ye && le && (le(Ut, un, Ht), Ol(r, ye(Ut))));
8205
+ _(!1), Ft && (D(Ut), Ut = Fy(r, Ae), ye && le && (le(Ut, un, Ht), Ol(r, ye(Ut))));
8206
8206
  const [Kl, Zl] = k(Ut);
8207
8207
  return Ur(i, Gn, _r, Rt), Ur(l, $s, _r, Rt), ke(t, {
8208
8208
  cn: Kl,
@@ -8260,19 +8260,19 @@ const Ff = (e, t, n) => {
8260
8260
  Dt: hf()
8261
8261
  }, { dt: r, gt: o, V: a, St: c } = t, { U: u, k: d } = sn(), m = !u && (d.x || d.y), f = [jy(t), By(t, l), Wy(t, l)];
8262
8262
  return [n, (h) => {
8263
- const p = {}, v = m && yt(o), y = v && c();
8264
- return Ee(f, ((_) => {
8265
- ke(p, _(h, p) || {});
8266
- })), en(o, v), y && y(), a || en(r, 0), p;
8263
+ const p = {}, v = m && yt(o), b = v && c();
8264
+ return Ee(f, ((w) => {
8265
+ ke(p, w(h, p) || {});
8266
+ })), en(o, v), b && b(), a || en(r, 0), p;
8267
8267
  }, l, t, i];
8268
8268
  }, Hy = (e, t, n, i, l) => {
8269
8269
  let r = !1;
8270
- const o = ku(t, {}), [a, c, u, d, m] = Vy(e), [f, h, p] = Ty(d, u, o, ((b) => {
8271
- w({}, b);
8272
- })), [g, v, , y] = Ay(e, t, p, u, d, l), _ = (b) => st(b).some(((S) => !!b[S])), w = (b, S) => {
8270
+ const o = ku(t, {}), [a, c, u, d, m] = Vy(e), [f, h, p] = Ty(d, u, o, ((y) => {
8271
+ _({}, y);
8272
+ })), [g, v, , b] = Ay(e, t, p, u, d, l), w = (y) => st(y).some(((S) => !!y[S])), _ = (y, S) => {
8273
8273
  if (n())
8274
8274
  return !1;
8275
- const { dn: x, At: L, It: D, pn: P } = b, C = x || {}, N = !!L || !r, z = {
8275
+ const { dn: x, At: L, It: D, pn: P } = y, C = x || {}, N = !!L || !r, z = {
8276
8276
  zt: ku(t, C, N),
8277
8277
  dn: C,
8278
8278
  At: N
@@ -8289,21 +8289,21 @@ const Ff = (e, t, n) => {
8289
8289
  Qt: B,
8290
8290
  Zt: E
8291
8291
  }));
8292
- const R = _(B), Y = _(E), T = R || Y || !ka(C) || N;
8293
- return r = !0, T && i(b, {
8292
+ const R = w(B), Y = w(E), T = R || Y || !ka(C) || N;
8293
+ return r = !0, T && i(y, {
8294
8294
  Qt: B,
8295
8295
  Zt: E
8296
8296
  }), T;
8297
8297
  };
8298
8298
  return [() => {
8299
- const { ln: b, gt: S, St: x } = d, L = yt(b), D = [f(), a(), g()], P = x();
8299
+ const { ln: y, gt: S, St: x } = d, L = yt(y), D = [f(), a(), g()], P = x();
8300
8300
  return en(S, L), P(), ue(wt, D);
8301
- }, w, () => ({
8301
+ }, _, () => ({
8302
8302
  vn: p,
8303
8303
  gn: u
8304
8304
  }), {
8305
8305
  hn: d,
8306
- bn: y
8306
+ bn: b
8307
8307
  }, m];
8308
8308
  }, Da = /* @__PURE__ */ new WeakMap(), Uy = (e, t) => {
8309
8309
  Da.set(e, t);
@@ -8316,11 +8316,11 @@ const Ff = (e, t, n) => {
8316
8316
  const c = [], u = {}, d = (C) => {
8317
8317
  const N = Qd(C), z = qi(ly);
8318
8318
  return z ? z(N, !0) : N;
8319
- }, m = ke({}, i(), d(t)), [f, h, p] = Ps(), [g, v, y] = Ps(n), _ = (C, N) => {
8320
- y(C, N), p(C, N);
8321
- }, [w, b, S, x, L] = Hy(e, m, (() => a), (({ dn: C, At: N }, { Qt: z, Zt: B }) => {
8319
+ }, m = ke({}, i(), d(t)), [f, h, p] = Ps(), [g, v, b] = Ps(n), w = (C, N) => {
8320
+ b(C, N), p(C, N);
8321
+ }, [_, y, S, x, L] = Hy(e, m, (() => a), (({ dn: C, At: N }, { Qt: z, Zt: B }) => {
8322
8322
  const { _t: E, Ct: R, $t: Y, xt: T, Ht: k, ft: $ } = z, { tn: K, nn: U, sn: j, en: O } = B;
8323
- _("updated", [P, {
8323
+ w("updated", [P, {
8324
8324
  updateHints: {
8325
8325
  sizeChanged: !!E,
8326
8326
  directionChanged: !!R,
@@ -8336,13 +8336,13 @@ const Ff = (e, t, n) => {
8336
8336
  changedOptions: C || {},
8337
8337
  force: !!N
8338
8338
  }]);
8339
- }), ((C) => _("scroll", [P, C]))), D = (C) => {
8340
- qy(r), wt(c), a = !0, _("destroyed", [P, C]), h(), v();
8339
+ }), ((C) => w("scroll", [P, C]))), D = (C) => {
8340
+ qy(r), wt(c), a = !0, w("destroyed", [P, C]), h(), v();
8341
8341
  }, P = {
8342
8342
  options(C, N) {
8343
8343
  if (C) {
8344
8344
  const z = N ? i() : {}, B = xf(m, ke(z, d(C)));
8345
- ka(B) || (ke(m, B), b({
8345
+ ka(B) || (ke(m, B), y({
8346
8346
  dn: B
8347
8347
  }));
8348
8348
  }
@@ -8382,7 +8382,7 @@ const Ff = (e, t, n) => {
8382
8382
  return ke({}, M, {
8383
8383
  clone: () => {
8384
8384
  const A = $(O());
8385
- return b({
8385
+ return y({
8386
8386
  pn: !0
8387
8387
  }), A;
8388
8388
  }
@@ -8400,14 +8400,14 @@ const Ff = (e, t, n) => {
8400
8400
  scrollbarVertical: K(k)
8401
8401
  });
8402
8402
  },
8403
- update: (C) => b({
8403
+ update: (C) => y({
8404
8404
  At: C,
8405
8405
  It: !0
8406
8406
  }),
8407
8407
  destroy: ue(D, !1),
8408
8408
  plugin: (C) => u[st(C)[0]]
8409
8409
  };
8410
- return Pe(c, [L]), Uy(r, P), vf(pf, zt, [P, f, u]), $y(x.hn.bt, !l && e.cancel) ? (D(!0), P) : (Pe(c, w()), _("initialized", [P]), P.update(), P);
8410
+ return Pe(c, [L]), Uy(r, P), vf(pf, zt, [P, f, u]), $y(x.hn.bt, !l && e.cancel) ? (D(!0), P) : (Pe(c, _()), w("initialized", [P]), P.update(), P);
8411
8411
  }
8412
8412
  return o;
8413
8413
  };
@@ -8578,8 +8578,8 @@ var eb = /* @__PURE__ */ (function() {
8578
8578
  useFixed: r.useFixed || !1,
8579
8579
  useGetBoundingClientRect: r.useGetBoundingClientRect || !1,
8580
8580
  verticalPosition: r.verticalPosition || "top",
8581
- applyStyle: r.applyStyle || function(y, _) {
8582
- return l.applyStyle(y, _);
8581
+ applyStyle: r.applyStyle || function(b, w) {
8582
+ return l.applyStyle(b, w);
8583
8583
  }
8584
8584
  }, this.props.positionVal = this.definePosition() || "fixed", this.instances = [];
8585
8585
  var o = this.props, a = o.positionVal, c = o.verticalPosition, u = o.noStyles, d = o.stickyBitStickyOffset, m = c === "top" && !u ? d + "px" : "", f = a !== "fixed" ? a : "";
@@ -8640,9 +8640,9 @@ var eb = /* @__PURE__ */ (function() {
8640
8640
  var c = a.indexOf(l);
8641
8641
  c !== -1 && a.splice(c, 1), o.className = a.join(" ");
8642
8642
  }, t.manageState = function(i) {
8643
- var l = this, r = i, o = r.props, a = r.state, c = r.stateChange, u = r.stickyStart, d = r.stickyChange, m = r.stickyStop, f = o.positionVal, h = o.scrollEl, p = o.stickyClass, g = o.stickyChangeClass, v = o.stuckClass, y = o.verticalPosition, _ = y !== "bottom", w = o.applyStyle, b = o.noStyles, S = function(E) {
8643
+ var l = this, r = i, o = r.props, a = r.state, c = r.stateChange, u = r.stickyStart, d = r.stickyChange, m = r.stickyStop, f = o.positionVal, h = o.scrollEl, p = o.stickyClass, g = o.stickyChangeClass, v = o.stuckClass, b = o.verticalPosition, w = b !== "bottom", _ = o.applyStyle, y = o.noStyles, S = function(E) {
8644
8644
  E();
8645
- }, x = this.isWin && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame) || S, L = this.isWin ? window.scrollY || window.pageYOffset : h.scrollTop, D = L > u && L < m && (a === "default" || a === "stuck"), P = _ && L <= u && (a === "sticky" || a === "stuck"), C = L >= m && a === "sticky";
8645
+ }, x = this.isWin && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame) || S, L = this.isWin ? window.scrollY || window.pageYOffset : h.scrollTop, D = L > u && L < m && (a === "default" || a === "stuck"), P = w && L <= u && (a === "sticky" || a === "stuck"), C = L >= m && a === "sticky";
8646
8646
  D ? r.state = "sticky" : P ? r.state = "default" : C && (r.state = "stuck");
8647
8647
  var N = L >= d && L <= m, z = L < d / 2 || L > m;
8648
8648
  z ? r.stateChange = "default" : N && (r.stateChange = "sticky"), !(a === r.state && c === r.stateChange) && x(function() {
@@ -8652,15 +8652,15 @@ var eb = /* @__PURE__ */ (function() {
8652
8652
  position: f,
8653
8653
  top: "",
8654
8654
  bottom: ""
8655
- }, B[y] = o.stickyBitStickyOffset + "px", B),
8655
+ }, B[b] = o.stickyBitStickyOffset + "px", B),
8656
8656
  classes: (E = {}, E[p] = !0, E)
8657
8657
  },
8658
8658
  default: {
8659
- styles: (R = {}, R[y] = "", R),
8659
+ styles: (R = {}, R[b] = "", R),
8660
8660
  classes: {}
8661
8661
  },
8662
8662
  stuck: {
8663
- styles: As((Y = {}, Y[y] = "", Y), f === "fixed" && !b || !l.isWin ? {
8663
+ styles: As((Y = {}, Y[b] = "", Y), f === "fixed" && !y || !l.isWin ? {
8664
8664
  position: "absolute",
8665
8665
  top: "",
8666
8666
  bottom: "0"
@@ -8670,7 +8670,7 @@ var eb = /* @__PURE__ */ (function() {
8670
8670
  };
8671
8671
  f === "fixed" && ($.default.styles.position = "");
8672
8672
  var K = $[r.state];
8673
- K.classes = (k = {}, k[v] = !!K.classes[v], k[p] = !!K.classes[p], k[g] = N, k), w(K, i);
8673
+ K.classes = (k = {}, k[v] = !!K.classes[v], k[p] = !!K.classes[p], k[g] = N, k), _(K, i);
8674
8674
  });
8675
8675
  }, t.applyStyle = function(i, l) {
8676
8676
  var r = i.styles, o = i.classes, a = l, c = a.el, u = a.props, d = c.style, m = u.noStyles, f = c.className.split(" ");
@@ -8748,40 +8748,40 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8748
8748
  v.disconnect();
8749
8749
  };
8750
8750
  }, []), /* @__PURE__ */ s.createElement(Ra.Provider, { value: { layoutRef: u, scrollViewport: m, stickyAutoOffsetPadding: o, stickyAutoOffsetGap: a } }, /* @__PURE__ */ s.createElement(ko, { ref: d, className: oe(Vi.scrollbar, l), style: r }, /* @__PURE__ */ s.createElement("div", { ref: u, className: oe(Vi.layout, e), style: h, ...c }, i)));
8751
- }, sb = ({ className: e, children: t, zIndex: n, ...i }) => {
8752
- const l = s.useContext(Ra), r = s.useRef(null), [o, a] = s.useState(0);
8751
+ }, sb = ({ className: e, children: t, zIndex: n, offset: i = 0, ...l }) => {
8752
+ const r = s.useContext(Ra), o = s.useRef(null), [a, c] = s.useState(0);
8753
8753
  s.useEffect(() => {
8754
- if (!r.current || !l?.layoutRef.current)
8754
+ if (!o.current || !r?.layoutRef.current)
8755
8755
  return;
8756
- const u = l.layoutRef.current, d = () => {
8757
- if (!r.current)
8756
+ const d = r.layoutRef.current, m = () => {
8757
+ if (!o.current)
8758
8758
  return;
8759
- const p = Array.from(u.querySelectorAll('[data-sticky-layout-sticky="true"]'));
8760
- let g = l.stickyAutoOffsetPadding, v = 0;
8761
- for (const y of p)
8762
- y.compareDocumentPosition(r.current) & Node.DOCUMENT_POSITION_FOLLOWING && (g += y.getBoundingClientRect().height, v += 1);
8763
- g += l.stickyAutoOffsetGap * v, a((y) => y === g ? y : g);
8764
- }, m = new ResizeObserver(d), f = () => {
8765
- m.disconnect(), Array.from(u.querySelectorAll('[data-sticky-layout-sticky="true"]')).forEach((g) => m.observe(g));
8766
- }, h = new MutationObserver(() => {
8767
- f(), d();
8759
+ const g = Array.from(d.querySelectorAll('[data-sticky-layout-sticky="true"]'));
8760
+ let v = r.stickyAutoOffsetPadding, b = 0;
8761
+ for (const w of g)
8762
+ w.compareDocumentPosition(o.current) & Node.DOCUMENT_POSITION_FOLLOWING && (v += w.getBoundingClientRect().height, b += 1);
8763
+ v += r.stickyAutoOffsetGap * b, c((w) => w === v ? w : v);
8764
+ }, f = new ResizeObserver(m), h = () => {
8765
+ f.disconnect(), Array.from(d.querySelectorAll('[data-sticky-layout-sticky="true"]')).forEach((v) => f.observe(v));
8766
+ }, p = new MutationObserver(() => {
8767
+ h(), m();
8768
8768
  });
8769
- return f(), d(), h.observe(u, {
8769
+ return h(), m(), p.observe(d, {
8770
8770
  childList: !0,
8771
8771
  subtree: !0
8772
- }), window.addEventListener("resize", d), () => {
8773
- window.removeEventListener("resize", d), h.disconnect(), m.disconnect();
8772
+ }), window.addEventListener("resize", m), () => {
8773
+ window.removeEventListener("resize", m), p.disconnect(), f.disconnect();
8774
8774
  };
8775
- }, [l]);
8776
- const c = s.useMemo(
8775
+ }, [r]);
8776
+ const u = s.useMemo(
8777
8777
  () => ({
8778
- "--sticky-layout-before-offset": `${o}px`,
8778
+ "--sticky-layout-before-offset": `${a + i}px`,
8779
8779
  ...typeof n > "u" ? null : { zIndex: n },
8780
- ...i.style || {}
8780
+ ...l.style || {}
8781
8781
  }),
8782
- [i.style, o, n]
8782
+ [i, l.style, a, n]
8783
8783
  );
8784
- return /* @__PURE__ */ s.createElement("div", { ref: r, className: oe(Vi.block, Vi.static, e), ...i, style: c }, t);
8784
+ return /* @__PURE__ */ s.createElement("div", { ref: o, className: oe(Vi.block, Vi.static, e), ...l, style: u }, t);
8785
8785
  }, ab = ({
8786
8786
  className: e,
8787
8787
  children: t,
@@ -8800,27 +8800,27 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8800
8800
  stickyChangeClass: p,
8801
8801
  customStickyChangeNumber: g,
8802
8802
  scrollEl: v,
8803
- ...y
8803
+ ...b
8804
8804
  }) => {
8805
- const _ = s.useRef(null), w = s.useContext(Ra), [b, S] = s.useState(n ?? 0), x = n ?? 0, L = s.useMemo(() => r, [r]), D = L.includes("top"), P = L.includes("bottom"), C = L.includes("left"), N = L.includes("right"), B = D && !P || !D && P, E = s.useMemo(() => P && !D ? "bottom" : D && !P ? "top" : d, [P, D, d]);
8805
+ const w = s.useRef(null), _ = s.useContext(Ra), [y, S] = s.useState(n ?? 0), x = n ?? 0, L = s.useMemo(() => r, [r]), D = L.includes("top"), P = L.includes("bottom"), C = L.includes("left"), N = L.includes("right"), B = D && !P || !D && P, E = s.useMemo(() => P && !D ? "bottom" : D && !P ? "top" : d, [P, D, d]);
8806
8806
  s.useEffect(() => {
8807
8807
  if (!i) {
8808
8808
  S(n ?? 0);
8809
8809
  return;
8810
8810
  }
8811
- if (!_.current || !w?.layoutRef.current)
8811
+ if (!w.current || !_?.layoutRef.current)
8812
8812
  return;
8813
- const Y = w.layoutRef.current, T = () => {
8814
- if (!_.current)
8813
+ const Y = _.layoutRef.current, T = () => {
8814
+ if (!w.current)
8815
8815
  return;
8816
8816
  const U = Array.from(Y.querySelectorAll('[data-sticky-layout-sticky="true"]'));
8817
- let j = w?.stickyAutoOffsetPadding || 0, O = 0;
8817
+ let j = _?.stickyAutoOffsetPadding || 0, O = 0;
8818
8818
  for (const M of U) {
8819
- if (M === _.current)
8819
+ if (M === w.current)
8820
8820
  break;
8821
8821
  j += M.getBoundingClientRect().height, O += 1;
8822
8822
  }
8823
- j += (w?.stickyAutoOffsetGap || 0) * O, S((M) => M === j ? M : j);
8823
+ j += (_?.stickyAutoOffsetGap || 0) * O, S((M) => M === j ? M : j);
8824
8824
  }, k = new ResizeObserver(() => {
8825
8825
  T();
8826
8826
  }), $ = () => {
@@ -8834,9 +8834,9 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8834
8834
  }), window.addEventListener("resize", T), () => {
8835
8835
  window.removeEventListener("resize", T), K.disconnect(), k.disconnect();
8836
8836
  };
8837
- }, [i, w, n]), s.useEffect(() => {
8838
- if (!(C || N) || !_.current || !w?.scrollViewport) return;
8839
- const Y = _.current, T = w.scrollViewport, k = () => {
8837
+ }, [i, _, n]), s.useEffect(() => {
8838
+ if (!(C || N) || !w.current || !_?.scrollViewport) return;
8839
+ const Y = w.current, T = _.scrollViewport, k = () => {
8840
8840
  Y.style.setProperty("--sticky-layout-viewport-width", `${T.clientWidth}px`);
8841
8841
  };
8842
8842
  k();
@@ -8844,11 +8844,11 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8844
8844
  return $.observe(T), () => {
8845
8845
  $.disconnect(), Y.style.removeProperty("--sticky-layout-viewport-width");
8846
8846
  };
8847
- }, [w?.scrollViewport, C, N]), s.useEffect(() => {
8848
- if (!B || !_.current)
8847
+ }, [_?.scrollViewport, C, N]), s.useEffect(() => {
8848
+ if (!B || !w.current)
8849
8849
  return;
8850
- const Y = tb(_.current, {
8851
- stickyBitStickyOffset: b,
8850
+ const Y = tb(w.current, {
8851
+ stickyBitStickyOffset: y,
8852
8852
  useStickyClasses: o,
8853
8853
  noStyles: a,
8854
8854
  useFixed: c,
@@ -8859,17 +8859,17 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8859
8859
  stuckClass: h,
8860
8860
  stickyChangeClass: p,
8861
8861
  customStickyChangeNumber: g,
8862
- scrollEl: v || w?.scrollViewport || void 0
8862
+ scrollEl: v || _?.scrollViewport || void 0
8863
8863
  }), T = () => Y.update();
8864
8864
  return window.addEventListener("resize", T), () => {
8865
8865
  window.removeEventListener("resize", T), Y.cleanup();
8866
8866
  };
8867
8867
  }, [
8868
- w?.scrollViewport,
8868
+ _?.scrollViewport,
8869
8869
  g,
8870
8870
  a,
8871
8871
  m,
8872
- b,
8872
+ y,
8873
8873
  E,
8874
8874
  v,
8875
8875
  B,
@@ -8882,12 +8882,12 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8882
8882
  ]);
8883
8883
  const R = s.useMemo(() => {
8884
8884
  const Y = {
8885
- ...y.style || {}
8885
+ ...b.style || {}
8886
8886
  }, k = Y.width === "100%";
8887
- if (typeof l < "u" && (Y.zIndex = l), B || (Y.position = "sticky"), D && (Y.top = b), P && (Y.bottom = b), C && (Y.left = x, k && (Y.width = "var(--sticky-layout-viewport-width)")), N && (Y.right = x, k && (Y.width = "var(--sticky-layout-viewport-width)")), Object.keys(Y).length !== 0)
8887
+ if (typeof l < "u" && (Y.zIndex = l), B || (Y.position = "sticky"), D && (Y.top = y), P && (Y.bottom = y), C && (Y.left = x, k && (Y.width = "var(--sticky-layout-viewport-width)")), N && (Y.right = x, k && (Y.width = "var(--sticky-layout-viewport-width)")), Object.keys(Y).length !== 0)
8888
8888
  return Y;
8889
- }, [P, C, N, D, x, y.style, b, B, l]);
8890
- return /* @__PURE__ */ s.createElement("div", { ref: _, "data-sticky-layout-sticky": "true", className: oe(Vi.block, Vi.sticky, e), ...y, style: R }, t);
8889
+ }, [P, C, N, D, x, b.style, y, B, l]);
8890
+ return /* @__PURE__ */ s.createElement("div", { ref: w, "data-sticky-layout-sticky": "true", className: oe(Vi.block, Vi.sticky, e), ...b, style: R }, t);
8891
8891
  }, jS = Object.assign(ob, {
8892
8892
  Static: sb,
8893
8893
  Sticky: ab
@@ -8904,17 +8904,17 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
8904
8904
  () => (e.selectedIndex || e.initialSelectedIndex) ?? null
8905
8905
  ), [o, a] = s.useState(e.initialOpen), c = e.open ?? o, u = e.setOpen ?? a, d = Bl({
8906
8906
  open: c,
8907
- onOpenChange: (y) => {
8908
- e.disabled || u(y);
8907
+ onOpenChange: (b) => {
8908
+ e.disabled || u(b);
8909
8909
  },
8910
8910
  whileElementsMounted: ua,
8911
8911
  middleware: [
8912
8912
  da({ padding: 10 }),
8913
8913
  Rd({
8914
- apply({ rects: y, elements: _ }) {
8915
- Object.assign(_.floating.style, {
8914
+ apply({ rects: b, elements: w }) {
8915
+ Object.assign(w.floating.style, {
8916
8916
  top: "var(--numbers-8)",
8917
- width: `${y.reference.width}px`,
8917
+ width: `${b.reference.width}px`,
8918
8918
  maxHeight: "var(--numbers-288)"
8919
8919
  });
8920
8920
  },
@@ -9560,13 +9560,13 @@ let Bs = (function(e) {
9560
9560
  }
9561
9561
  l[r] = i, c && o > 1 && (i > a ? (this.pushSucceeding(l, m, r), (function(f, h, p, g) {
9562
9562
  for (let v = 0; v < f; v += 1) {
9563
- const y = g - v * p;
9564
- h[f - 1 - v] > y && (h[f - 1 - v] = y);
9563
+ const b = g - v * p;
9564
+ h[f - 1 - v] > b && (h[f - 1 - v] = b);
9565
9565
  }
9566
9566
  })(o, l, m, u)) : i < a && (this.pushPreceding(l, m, r), (function(f, h, p, g) {
9567
9567
  for (let v = 0; v < f; v += 1) {
9568
- const y = g + v * p;
9569
- h[v] < y && (h[v] = y);
9568
+ const b = g + v * p;
9569
+ h[v] < b && (h[v] = b);
9570
9570
  }
9571
9571
  })(o, l, m, d))), this.setState({ value: l }, this.fireChangeEvent.bind(this, "onChange"));
9572
9572
  }, n.pushSucceeding = function(i, l, r) {
@@ -12472,13 +12472,13 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12472
12472
  }
12473
12473
  const u = W();
12474
12474
  for (let h = 1; h <= r; h++) {
12475
- const p = W().year(e).month(t).date(h).hour(0).minute(0).second(0).millisecond(0), g = u.year() === e && u.month() === t && u.date() === h, v = p.day() === 0 || p.day() === 6, y = cs({
12475
+ const p = W().year(e).month(t).date(h).hour(0).minute(0).second(0).millisecond(0), g = u.year() === e && u.month() === t && u.date() === h, v = p.day() === 0 || p.day() === 6, b = cs({
12476
12476
  type: "current-month",
12477
12477
  isToday: g,
12478
12478
  isWeekday: v,
12479
12479
  value: p.format()
12480
12480
  });
12481
- o.push(y);
12481
+ o.push(b);
12482
12482
  }
12483
12483
  const d = 7, m = o.length, f = (d - m % d) % d;
12484
12484
  for (let h = 1; h <= f; h++) {
@@ -12765,21 +12765,21 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12765
12765
  isClearable: f,
12766
12766
  ...h
12767
12767
  }) => {
12768
- const [p, g] = s.useState(!1), [v, y] = s.useState(!1), [_, w] = s.useState(!1), [b, S] = s.useState(
12768
+ const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [w, _] = s.useState(!1), [y, S] = s.useState(
12769
12769
  e ? Pu(i, l, e) ?? null : null
12770
12770
  ), [x, L] = s.useState(
12771
- b != null ? i[b] : void 0
12771
+ y != null ? i[y] : void 0
12772
12772
  );
12773
12773
  return s.useEffect(() => {
12774
12774
  p && S(e ? Pu(i, l, e) ?? null : null);
12775
12775
  }, [e]), s.useEffect(() => {
12776
- p && L(b != null ? i[b] : void 0);
12777
- }, [b]), s.useEffect(() => {
12776
+ p && L(y != null ? i[y] : void 0);
12777
+ }, [y]), s.useEffect(() => {
12778
12778
  m || p && (v ? u && u() : c && c());
12779
12779
  }, [v]), s.useEffect(() => {
12780
12780
  m || p && d && d(x ? x[l] : void 0);
12781
12781
  }, [x]), s.useEffect(() => {
12782
- m && v && y(!1);
12782
+ m && v && b(!1);
12783
12783
  }, [m]), s.useEffect(() => {
12784
12784
  g(!0);
12785
12785
  }, []), /* @__PURE__ */ s.createElement(
@@ -12788,12 +12788,12 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12788
12788
  tabIndex: n,
12789
12789
  open: v,
12790
12790
  disabled: m,
12791
- initialSelectedIndex: b,
12792
- selectedIndex: b,
12793
- setOpen: y,
12791
+ initialSelectedIndex: y,
12792
+ selectedIndex: y,
12793
+ setOpen: b,
12794
12794
  onSelect: S,
12795
- onBlur: () => w(!1),
12796
- onFocus: () => w(!0)
12795
+ onBlur: () => _(!1),
12796
+ onFocus: () => _(!0)
12797
12797
  },
12798
12798
  /* @__PURE__ */ s.createElement(
12799
12799
  Ct.Reference,
@@ -12803,9 +12803,9 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12803
12803
  {
12804
12804
  ...h,
12805
12805
  disabled: m,
12806
- isFocused: _ || v,
12806
+ isFocused: w || v,
12807
12807
  isOpen: v,
12808
- isClearable: b !== null && f,
12808
+ isClearable: y !== null && f,
12809
12809
  onClear: () => {
12810
12810
  m || (S(null), D.setSelectedIndex(null));
12811
12811
  }
@@ -12905,7 +12905,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12905
12905
  isClearable: h,
12906
12906
  ...p
12907
12907
  }) => {
12908
- const [g, v] = s.useState(() => Zs(i)), [y, _] = s.useState(!1), [w, b] = s.useState(!1), [S, x] = s.useState(!1), [L, D] = s.useState(
12908
+ const [g, v] = s.useState(() => Zs(i)), [b, w] = s.useState(!1), [_, y] = s.useState(!1), [S, x] = s.useState(!1), [L, D] = s.useState(
12909
12909
  e ? Iu(g, r, e) ?? null : null
12910
12910
  ), [P, C] = s.useState(
12911
12911
  L != null ? g[L] : void 0
@@ -12913,26 +12913,26 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12913
12913
  return s.useEffect(() => {
12914
12914
  v(Zs(i));
12915
12915
  }, [i]), s.useEffect(() => {
12916
- y && D(e ? Iu(g, r, e) ?? null : null);
12916
+ b && D(e ? Iu(g, r, e) ?? null : null);
12917
12917
  }, [e]), s.useEffect(() => {
12918
- y && C(L != null ? g[L] : void 0);
12918
+ b && C(L != null ? g[L] : void 0);
12919
12919
  }, [L]), s.useEffect(() => {
12920
- f || y && (w ? d && d() : u && u());
12921
- }, [w]), s.useEffect(() => {
12922
- f || y && m && m(P ? P[r] : void 0);
12920
+ f || b && (_ ? d && d() : u && u());
12921
+ }, [_]), s.useEffect(() => {
12922
+ f || b && m && m(P ? P[r] : void 0);
12923
12923
  }, [P]), s.useEffect(() => {
12924
- f && w && b(!1);
12924
+ f && _ && y(!1);
12925
12925
  }, [f]), s.useEffect(() => {
12926
- _(!0);
12926
+ w(!0);
12927
12927
  }, []), /* @__PURE__ */ s.createElement(
12928
12928
  Ct,
12929
12929
  {
12930
12930
  tabIndex: n,
12931
- open: w,
12931
+ open: _,
12932
12932
  disabled: f,
12933
12933
  initialSelectedIndex: L,
12934
12934
  selectedIndex: L,
12935
- setOpen: b,
12935
+ setOpen: y,
12936
12936
  onSelect: D,
12937
12937
  onBlur: () => x(!1),
12938
12938
  onFocus: () => x(!0)
@@ -12945,8 +12945,8 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
12945
12945
  {
12946
12946
  ...p,
12947
12947
  disabled: f,
12948
- isFocused: S || w,
12949
- isOpen: w,
12948
+ isFocused: S || _,
12949
+ isOpen: _,
12950
12950
  isClearable: L !== null && h,
12951
12951
  onClear: () => {
12952
12952
  f || (D(null), N.setSelectedIndex(null));
@@ -13072,22 +13072,22 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
13072
13072
  displayFormat: f = "DD.MM.YYYY",
13073
13073
  ...h
13074
13074
  }) => {
13075
- const [p, g] = s.useState(!1), [v, y] = s.useState(!1), [_, w] = s.useState(() => e || t);
13075
+ const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [w, _] = s.useState(() => e || t);
13076
13076
  s.useMemo(() => {
13077
- p && w(e);
13077
+ p && _(e);
13078
13078
  }, [e]), s.useEffect(() => {
13079
13079
  u || p && (v ? a && a() : o && o());
13080
13080
  }, [v]), s.useEffect(() => {
13081
- u || p && c && c(_);
13082
- }, [_]), s.useEffect(() => {
13083
- u && v && y(!1);
13081
+ u || p && c && c(w);
13082
+ }, [w]), s.useEffect(() => {
13083
+ u && v && b(!1);
13084
13084
  }, [u]), s.useEffect(() => {
13085
13085
  g(!0);
13086
13086
  }, []);
13087
- const b = (S) => {
13088
- u || (w(S), y(!1));
13087
+ const y = (S) => {
13088
+ u || (_(S), b(!1));
13089
13089
  };
13090
- return /* @__PURE__ */ s.createElement(fs, { open: v, setOpen: y, disabled: u }, /* @__PURE__ */ s.createElement(
13090
+ return /* @__PURE__ */ s.createElement(fs, { open: v, setOpen: b, disabled: u }, /* @__PURE__ */ s.createElement(
13091
13091
  fs.Reference,
13092
13092
  {
13093
13093
  reference: () => /* @__PURE__ */ s.createElement(
@@ -13097,15 +13097,15 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
13097
13097
  leadIcon: /* @__PURE__ */ s.createElement(ve, { icon: "calendar-line" }),
13098
13098
  disabled: u,
13099
13099
  isFocused: v,
13100
- isClearable: !!_ && d,
13100
+ isClearable: !!w && d,
13101
13101
  onClear: () => {
13102
13102
  u || c && c(void 0);
13103
13103
  }
13104
13104
  },
13105
- _ ? /* @__PURE__ */ s.createElement(_0, { disabled: u, title: W(_).format(f) }) : /* @__PURE__ */ s.createElement(L0, { title: n ?? "Select..." })
13105
+ w ? /* @__PURE__ */ s.createElement(_0, { disabled: u, title: W(w).format(f) }) : /* @__PURE__ */ s.createElement(L0, { title: n ?? "Select..." })
13106
13106
  )
13107
13107
  }
13108
- ), /* @__PURE__ */ s.createElement(fs.Target, null, /* @__PURE__ */ s.createElement("div", { className: E0.calendar }, /* @__PURE__ */ s.createElement(pF, { value: _, format: m, onChange: b }))));
13108
+ ), /* @__PURE__ */ s.createElement(fs.Target, null, /* @__PURE__ */ s.createElement("div", { className: E0.calendar }, /* @__PURE__ */ s.createElement(pF, { value: w, format: m, onChange: y }))));
13109
13109
  }, S0 = "_wrapper_117v4_1", C0 = "_title_117v4_23", O0 = "_badge_117v4_33", M0 = "_active_117v4_64", ht = {
13110
13110
  wrapper: S0,
13111
13111
  "lead-icon": "_lead-icon_117v4_12",
@@ -13792,8 +13792,8 @@ const $m = s.createContext(null), g1 = () => ({
13792
13792
  const f = e.nodes[e.nodes.length - 1], h = c.current;
13793
13793
  if (!h || !f) return;
13794
13794
  const p = `${String(f.id)}:${e.nodes.length}`, g = `0px 0px ${Math.ceil(h.getBoundingClientRect().height)}px 0px`, v = new IntersectionObserver(
13795
- (y) => {
13796
- y[0]?.isIntersecting && u.current !== p && (u.current = p, d.onLastRowVisible(f.data));
13795
+ (b) => {
13796
+ b[0]?.isIntersecting && u.current !== p && (u.current = p, d.onLastRowVisible(f.data));
13797
13797
  },
13798
13798
  {
13799
13799
  root: null,
@@ -13806,21 +13806,21 @@ const $m = s.createContext(null), g1 = () => ({
13806
13806
  };
13807
13807
  }, [e.nodes, d]), e.nodes.length === 0 ? i ? /* @__PURE__ */ s.createElement("tbody", { className: ot.body }, /* @__PURE__ */ s.createElement("tr", { className: ot.emptyRow }, /* @__PURE__ */ s.createElement("td", { className: ot.emptyCell, colSpan: Math.max(t.length, 1) }, i.renderEmpty()))) : /* @__PURE__ */ s.createElement("tbody", { className: ot.body }) : /* @__PURE__ */ s.createElement("tbody", { className: ot.body }, e.nodes.map((f, h) => {
13808
13808
  const p = n ? n.isExpanded(f.id) : !1, g = h === e.nodes.length - 1;
13809
- return /* @__PURE__ */ s.createElement(s.Fragment, { key: f.id ?? h }, /* @__PURE__ */ s.createElement("tr", { className: oe(ot.row, { [ot.rowHoverable]: m }) }, t.map((v, y) => {
13810
- const _ = t.indexOf(v), w = g && y === 0;
13809
+ return /* @__PURE__ */ s.createElement(s.Fragment, { key: f.id ?? h }, /* @__PURE__ */ s.createElement("tr", { className: oe(ot.row, { [ot.rowHoverable]: m }) }, t.map((v, b) => {
13810
+ const w = t.indexOf(v), _ = g && b === 0;
13811
13811
  return /* @__PURE__ */ s.createElement(
13812
13812
  U1,
13813
13813
  {
13814
- key: y,
13815
- originIndex: _,
13814
+ key: b,
13815
+ originIndex: w,
13816
13816
  align: v.align,
13817
13817
  data: f,
13818
13818
  collapse: v.collapse,
13819
13819
  className: v.cellClassName,
13820
- cellRef: w ? c : void 0,
13821
- onClick: (b) => r(b, f.data, f.id, h),
13822
- onDoubleClick: (b) => o(b, f.data, f.id, h),
13823
- onContextMenu: (b) => a(b, f.data, f.id, h)
13820
+ cellRef: _ ? c : void 0,
13821
+ onClick: (y) => r(y, f.data, f.id, h),
13822
+ onDoubleClick: (y) => o(y, f.data, f.id, h),
13823
+ onContextMenu: (y) => a(y, f.data, f.id, h)
13824
13824
  },
13825
13825
  v.renderCell(f)
13826
13826
  );
@@ -14043,16 +14043,16 @@ const $m = s.createContext(null), g1 = () => ({
14043
14043
  label: v.props.label ?? ""
14044
14044
  };
14045
14045
  } else if (g === "Cell") {
14046
- const v = p, { render: y, className: _ } = v.props;
14046
+ const v = p, { render: b, className: w } = v.props;
14047
14047
  n[o] = {
14048
14048
  ...n[o],
14049
- cellClassName: _,
14050
- renderCell: (w) => y ? y(w) : s.Children.map(v.props.children, (b) => {
14051
- if (s.isValidElement(b)) {
14052
- const S = b;
14049
+ cellClassName: w,
14050
+ renderCell: (_) => b ? b(_) : s.Children.map(v.props.children, (y) => {
14051
+ if (s.isValidElement(y)) {
14052
+ const S = y;
14053
14053
  return s.cloneElement(S);
14054
14054
  }
14055
- return b;
14055
+ return y;
14056
14056
  })
14057
14057
  };
14058
14058
  }
@@ -14146,14 +14146,14 @@ const $m = s.createContext(null), g1 = () => ({
14146
14146
  const p = uS(t, n), g = dS(n), v = s.useCallback(
14147
14147
  (x) => l.get(x) ?? e.row?.getRowId?.(x),
14148
14148
  [l, e.row?.getRowId]
14149
- ), y = s.useMemo(() => !e.tree?.isUse || !r ? i.nodes : i.nodes.filter((x) => {
14149
+ ), b = s.useMemo(() => !e.tree?.isUse || !r ? i.nodes : i.nodes.filter((x) => {
14150
14150
  let L = r.parentById.get(x.id) ?? null;
14151
14151
  for (; L; ) {
14152
14152
  if (!d.has(L)) return !1;
14153
14153
  L = r.parentById.get(L) ?? null;
14154
14154
  }
14155
14155
  return !0;
14156
- }), [i.nodes, d, e.tree?.isUse, r]), _ = s.useMemo(() => ({ nodes: y }), [y]), w = s.useMemo(
14156
+ }), [i.nodes, d, e.tree?.isUse, r]), w = s.useMemo(() => ({ nodes: b }), [b]), _ = s.useMemo(
14157
14157
  () => ({
14158
14158
  isExpanded: (x) => d.has(x),
14159
14159
  toggle: (x) => {
@@ -14168,11 +14168,11 @@ const $m = s.createContext(null), g1 = () => ({
14168
14168
  }
14169
14169
  }),
14170
14170
  [d, r]
14171
- ), b = /* @__PURE__ */ s.createElement(
14171
+ ), y = /* @__PURE__ */ s.createElement(
14172
14172
  zm.Provider,
14173
14173
  {
14174
14174
  value: {
14175
- data: _,
14175
+ data: w,
14176
14176
  columns: n,
14177
14177
  columnsWidth: p,
14178
14178
  resolveNodeId: v,
@@ -14187,14 +14187,14 @@ const $m = s.createContext(null), g1 = () => ({
14187
14187
  } : void 0
14188
14188
  }
14189
14189
  },
14190
- /* @__PURE__ */ s.createElement(iS, { value: w }, /* @__PURE__ */ s.createElement(T1, { config: e.row }, /* @__PURE__ */ s.createElement(aS, { onSelect: (x) => e.select?.onSelect(x) }, /* @__PURE__ */ s.createElement("table", { ref: t, className: dl.table }, /* @__PURE__ */ s.createElement(M1, null), /* @__PURE__ */ s.createElement(q1, null)))))
14190
+ /* @__PURE__ */ s.createElement(iS, { value: _ }, /* @__PURE__ */ s.createElement(T1, { config: e.row }, /* @__PURE__ */ s.createElement(aS, { onSelect: (x) => e.select?.onSelect(x) }, /* @__PURE__ */ s.createElement("table", { ref: t, className: dl.table }, /* @__PURE__ */ s.createElement(M1, null), /* @__PURE__ */ s.createElement(q1, null)))))
14191
14191
  ), S = {
14192
14192
  position: "relative",
14193
14193
  display: "grid",
14194
14194
  gridTemplateColumns: g,
14195
14195
  "--table-head-sticky-top": "var(--sticky-layout-before-offset, 0px)"
14196
14196
  };
14197
- return e.useInternalScroll === !1 ? /* @__PURE__ */ s.createElement("div", { className: oe(dl.wrapper, { [dl.wrapperBordered]: e.isBordered ?? !0 }) }, /* @__PURE__ */ s.createElement("div", { style: S }, b)) : /* @__PURE__ */ s.createElement(ko, { className: oe(dl.wrapper, { [dl.wrapperBordered]: e.isBordered ?? !0 }), contentStyle: S }, b);
14197
+ return e.useInternalScroll === !1 ? /* @__PURE__ */ s.createElement("div", { className: oe(dl.wrapper, { [dl.wrapperBordered]: e.isBordered ?? !0 }) }, /* @__PURE__ */ s.createElement("div", { style: S }, y)) : /* @__PURE__ */ s.createElement(ko, { className: oe(dl.wrapper, { [dl.wrapperBordered]: e.isBordered ?? !0 }), contentStyle: S }, y);
14198
14198
  }, fC = Object.assign(FS, {
14199
14199
  Column: Nm,
14200
14200
  Head: Rm,