@danxbot/ui 4.1.6 → 4.1.7

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as f, jsxs as T, Fragment as ct } from "react/jsx-runtime";
2
2
  import * as b from "react";
3
- import Cc, { createElement as nb, useState as Ee, useRef as Ue, useLayoutEffect as qi, useId as Ut, Component as Zk, useEffect as Xe, useMemo as We, useCallback as De, Children as Qk, isValidElement as Jk, Fragment as yv, useSyncExternalStore as kr, useContext as Ln, createContext as zn, memo as Sc } from "react";
3
+ import Cc, { createElement as nb, useState as Ee, useRef as Ve, useLayoutEffect as qi, useId as Ut, Component as Zk, useEffect as Qe, useMemo as Ke, useCallback as De, Children as Qk, isValidElement as Jk, Fragment as yv, useSyncExternalStore as kr, useContext as Ln, createContext as zn, memo as Sc } from "react";
4
4
  import * as yn from "react-dom";
5
5
  import { createPortal as eN } from "react-dom";
6
6
  const tN = {
@@ -477,7 +477,7 @@ const oN = (e, t) => {
477
477
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
478
478
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
479
479
  MN.test(e) && !TN.test(e)
480
- ), dp = () => !1, DN = (e) => PN.test(e), _N = (e) => ON.test(e), VN = (e) => !Fe(e) && !Be(e), FN = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), $N = (e) => xo(e, Tv, dp), Fe = (e) => Ev.test(e), No = (e) => xo(e, Pv, AN), ib = (e) => xo(e, WN, ut), LN = (e) => xo(e, Av, Nv), zN = (e) => xo(e, Ov, dp), ab = (e) => xo(e, Iv, dp), BN = (e) => xo(e, Mv, _N), Oa = (e) => xo(e, Dv, DN), Be = (e) => kv.test(e), ii = (e) => Zo(e, Pv), HN = (e) => Zo(e, Ov), lb = (e) => Zo(e, Iv), UN = (e) => Zo(e, Tv), GN = (e) => Zo(e, Mv), Aa = (e) => Zo(e, Dv, !0), jN = (e) => Zo(e, Av, !0), xo = (e, t, n) => {
480
+ ), dp = () => !1, DN = (e) => PN.test(e), _N = (e) => ON.test(e), VN = (e) => !$e(e) && !He(e), FN = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), $N = (e) => xo(e, Tv, dp), $e = (e) => Ev.test(e), No = (e) => xo(e, Pv, AN), ib = (e) => xo(e, WN, ut), LN = (e) => xo(e, Av, Nv), zN = (e) => xo(e, Ov, dp), ab = (e) => xo(e, Iv, dp), BN = (e) => xo(e, Mv, _N), Oa = (e) => xo(e, Dv, DN), He = (e) => kv.test(e), ii = (e) => Zo(e, Pv), HN = (e) => Zo(e, Ov), lb = (e) => Zo(e, Iv), UN = (e) => Zo(e, Tv), GN = (e) => Zo(e, Mv), Aa = (e) => Zo(e, Dv, !0), jN = (e) => Zo(e, Av, !0), xo = (e, t, n) => {
481
481
  const r = Ev.exec(e);
482
482
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
483
483
  }, Zo = (e, t, n = !1) => {
@@ -502,30 +502,30 @@ const oN = (e, t) => {
502
502
  "bottom-left",
503
503
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
504
504
  "left-bottom"
505
- ], S = () => [...C(), Be, Fe], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [Be, Fe, l], I = () => [Zr, "full", "auto", ...R()], N = () => [pr, "none", "subgrid", Be, Fe], M = () => ["auto", {
506
- span: ["full", pr, Be, Fe]
507
- }, pr, Be, Fe], P = () => [pr, "auto", Be, Fe], F = () => ["auto", "min", "max", "fr", Be, Fe], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], _ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...R()], $ = () => [Zr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], A = () => [Zr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], U = () => [Zr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], O = () => [e, Be, Fe], H = () => [...C(), lb, ab, {
508
- position: [Be, Fe]
505
+ ], S = () => [...C(), He, $e], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [He, $e, l], I = () => [Zr, "full", "auto", ...R()], N = () => [pr, "none", "subgrid", He, $e], M = () => ["auto", {
506
+ span: ["full", pr, He, $e]
507
+ }, pr, He, $e], P = () => [pr, "auto", He, $e], F = () => ["auto", "min", "max", "fr", He, $e], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], _ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...R()], $ = () => [Zr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], A = () => [Zr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], U = () => [Zr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], O = () => [e, He, $e], H = () => [...C(), lb, ab, {
508
+ position: [He, $e]
509
509
  }], L = () => ["no-repeat", {
510
510
  repeat: ["", "x", "y", "space", "round"]
511
511
  }], j = () => ["auto", "cover", "contain", UN, $N, {
512
- size: [Be, Fe]
512
+ size: [He, $e]
513
513
  }], K = () => [ed, ii, No], B = () => [
514
514
  // Deprecated since Tailwind CSS v4.0.0
515
515
  "",
516
516
  "none",
517
517
  "full",
518
518
  c,
519
- Be,
520
- Fe
519
+ He,
520
+ $e
521
521
  ], z = () => ["", ut, ii, No], G = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [ut, ed, lb, ab], ee = () => [
522
522
  // Deprecated since Tailwind CSS v4.0.0
523
523
  "",
524
524
  "none",
525
525
  h,
526
- Be,
527
- Fe
528
- ], J = () => ["none", ut, Be, Fe], Z = () => ["none", ut, Be, Fe], ne = () => [ut, Be, Fe], te = () => [Zr, "full", ...R()];
526
+ He,
527
+ $e
528
+ ], J = () => ["none", ut, He, $e], Z = () => ["none", ut, He, $e], ne = () => [ut, He, $e], te = () => [Zr, "full", ...R()];
529
529
  return {
530
530
  cacheSize: 500,
531
531
  theme: {
@@ -558,7 +558,7 @@ const oN = (e, t) => {
558
558
  * @see https://tailwindcss.com/docs/aspect-ratio
559
559
  */
560
560
  aspect: [{
561
- aspect: ["auto", "square", Zr, Fe, Be, x]
561
+ aspect: ["auto", "square", Zr, $e, He, x]
562
562
  }],
563
563
  /**
564
564
  * Container
@@ -571,7 +571,7 @@ const oN = (e, t) => {
571
571
  * @see https://tailwindcss.com/docs/responsive-design#container-queries
572
572
  */
573
573
  "container-type": [{
574
- "@container": ["", "normal", "size", Be, Fe]
574
+ "@container": ["", "normal", "size", He, $e]
575
575
  }],
576
576
  /**
577
577
  * Container Name
@@ -583,7 +583,7 @@ const oN = (e, t) => {
583
583
  * @see https://tailwindcss.com/docs/columns
584
584
  */
585
585
  columns: [{
586
- columns: [ut, Fe, Be, a]
586
+ columns: [ut, $e, He, a]
587
587
  }],
588
588
  /**
589
589
  * Break After
@@ -809,7 +809,7 @@ const oN = (e, t) => {
809
809
  * @see https://tailwindcss.com/docs/z-index
810
810
  */
811
811
  z: [{
812
- z: [pr, "auto", Be, Fe]
812
+ z: [pr, "auto", He, $e]
813
813
  }],
814
814
  // ------------------------
815
815
  // --- Flexbox and Grid ---
@@ -840,28 +840,28 @@ const oN = (e, t) => {
840
840
  * @see https://tailwindcss.com/docs/flex
841
841
  */
842
842
  flex: [{
843
- flex: [ut, Zr, "auto", "initial", "none", Fe]
843
+ flex: [ut, Zr, "auto", "initial", "none", $e]
844
844
  }],
845
845
  /**
846
846
  * Flex Grow
847
847
  * @see https://tailwindcss.com/docs/flex-grow
848
848
  */
849
849
  grow: [{
850
- grow: ["", ut, Be, Fe]
850
+ grow: ["", ut, He, $e]
851
851
  }],
852
852
  /**
853
853
  * Flex Shrink
854
854
  * @see https://tailwindcss.com/docs/flex-shrink
855
855
  */
856
856
  shrink: [{
857
- shrink: ["", ut, Be, Fe]
857
+ shrink: ["", ut, He, $e]
858
858
  }],
859
859
  /**
860
860
  * Order
861
861
  * @see https://tailwindcss.com/docs/order
862
862
  */
863
863
  order: [{
864
- order: [pr, "first", "last", "none", Be, Fe]
864
+ order: [pr, "first", "last", "none", He, $e]
865
865
  }],
866
866
  /**
867
867
  * Grid Template Columns
@@ -1350,7 +1350,7 @@ const oN = (e, t) => {
1350
1350
  * @see https://tailwindcss.com/docs/font-stretch
1351
1351
  */
1352
1352
  "font-stretch": [{
1353
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ed, Fe]
1353
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ed, $e]
1354
1354
  }],
1355
1355
  /**
1356
1356
  * Font Family
@@ -1364,7 +1364,7 @@ const oN = (e, t) => {
1364
1364
  * @see https://tailwindcss.com/docs/font-feature-settings
1365
1365
  */
1366
1366
  "font-features": [{
1367
- "font-features": [Fe]
1367
+ "font-features": [$e]
1368
1368
  }],
1369
1369
  /**
1370
1370
  * Font Variant Numeric
@@ -1401,14 +1401,14 @@ const oN = (e, t) => {
1401
1401
  * @see https://tailwindcss.com/docs/letter-spacing
1402
1402
  */
1403
1403
  tracking: [{
1404
- tracking: [o, Be, Fe]
1404
+ tracking: [o, He, $e]
1405
1405
  }],
1406
1406
  /**
1407
1407
  * Line Clamp
1408
1408
  * @see https://tailwindcss.com/docs/line-clamp
1409
1409
  */
1410
1410
  "line-clamp": [{
1411
- "line-clamp": [ut, "none", Be, ib]
1411
+ "line-clamp": [ut, "none", He, ib]
1412
1412
  }],
1413
1413
  /**
1414
1414
  * Line Height
@@ -1426,7 +1426,7 @@ const oN = (e, t) => {
1426
1426
  * @see https://tailwindcss.com/docs/list-style-image
1427
1427
  */
1428
1428
  "list-image": [{
1429
- "list-image": ["none", Be, Fe]
1429
+ "list-image": ["none", He, $e]
1430
1430
  }],
1431
1431
  /**
1432
1432
  * List Style Position
@@ -1440,7 +1440,7 @@ const oN = (e, t) => {
1440
1440
  * @see https://tailwindcss.com/docs/list-style-type
1441
1441
  */
1442
1442
  "list-style-type": [{
1443
- list: ["disc", "decimal", "none", Be, Fe]
1443
+ list: ["disc", "decimal", "none", He, $e]
1444
1444
  }],
1445
1445
  /**
1446
1446
  * Text Alignment
@@ -1481,7 +1481,7 @@ const oN = (e, t) => {
1481
1481
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1482
1482
  */
1483
1483
  "text-decoration-thickness": [{
1484
- decoration: [ut, "from-font", "auto", Be, No]
1484
+ decoration: [ut, "from-font", "auto", He, No]
1485
1485
  }],
1486
1486
  /**
1487
1487
  * Text Decoration Color
@@ -1495,7 +1495,7 @@ const oN = (e, t) => {
1495
1495
  * @see https://tailwindcss.com/docs/text-underline-offset
1496
1496
  */
1497
1497
  "underline-offset": [{
1498
- "underline-offset": [ut, "auto", Be, Fe]
1498
+ "underline-offset": [ut, "auto", He, $e]
1499
1499
  }],
1500
1500
  /**
1501
1501
  * Text Transform
@@ -1526,14 +1526,14 @@ const oN = (e, t) => {
1526
1526
  * @see https://tailwindcss.com/docs/tab-size
1527
1527
  */
1528
1528
  "tab-size": [{
1529
- tab: [pr, Be, Fe]
1529
+ tab: [pr, He, $e]
1530
1530
  }],
1531
1531
  /**
1532
1532
  * Vertical Alignment
1533
1533
  * @see https://tailwindcss.com/docs/vertical-align
1534
1534
  */
1535
1535
  "vertical-align": [{
1536
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", Be, Fe]
1536
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", He, $e]
1537
1537
  }],
1538
1538
  /**
1539
1539
  * Whitespace
@@ -1568,7 +1568,7 @@ const oN = (e, t) => {
1568
1568
  * @see https://tailwindcss.com/docs/content
1569
1569
  */
1570
1570
  content: [{
1571
- content: ["none", Be, Fe]
1571
+ content: ["none", He, $e]
1572
1572
  }],
1573
1573
  // -------------------
1574
1574
  // --- Backgrounds ---
@@ -1623,9 +1623,9 @@ const oN = (e, t) => {
1623
1623
  bg: ["none", {
1624
1624
  linear: [{
1625
1625
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1626
- }, pr, Be, Fe],
1627
- radial: ["", Be, Fe],
1628
- conic: [pr, Be, Fe]
1626
+ }, pr, He, $e],
1627
+ radial: ["", He, $e],
1628
+ conic: [pr, He, $e]
1629
1629
  }, GN, BN]
1630
1630
  }],
1631
1631
  /**
@@ -1996,7 +1996,7 @@ const oN = (e, t) => {
1996
1996
  * @see https://tailwindcss.com/docs/outline-offset
1997
1997
  */
1998
1998
  "outline-offset": [{
1999
- "outline-offset": [ut, Be, Fe]
1999
+ "outline-offset": [ut, He, $e]
2000
2000
  }],
2001
2001
  /**
2002
2002
  * Outline Width
@@ -2122,7 +2122,7 @@ const oN = (e, t) => {
2122
2122
  * @see https://tailwindcss.com/docs/opacity
2123
2123
  */
2124
2124
  opacity: [{
2125
- opacity: [ut, Be, Fe]
2125
+ opacity: [ut, He, $e]
2126
2126
  }],
2127
2127
  /**
2128
2128
  * Mix Blend Mode
@@ -2244,7 +2244,7 @@ const oN = (e, t) => {
2244
2244
  "mask-y-to": O()
2245
2245
  }],
2246
2246
  "mask-image-radial": [{
2247
- "mask-radial": [Be, Fe]
2247
+ "mask-radial": [He, $e]
2248
2248
  }],
2249
2249
  "mask-image-radial-from-pos": [{
2250
2250
  "mask-radial-from": q()
@@ -2332,7 +2332,7 @@ const oN = (e, t) => {
2332
2332
  * @see https://tailwindcss.com/docs/mask-image
2333
2333
  */
2334
2334
  "mask-image": [{
2335
- mask: ["none", Be, Fe]
2335
+ mask: ["none", He, $e]
2336
2336
  }],
2337
2337
  // ---------------
2338
2338
  // --- Filters ---
@@ -2346,8 +2346,8 @@ const oN = (e, t) => {
2346
2346
  // Deprecated since Tailwind CSS v3.0.0
2347
2347
  "",
2348
2348
  "none",
2349
- Be,
2350
- Fe
2349
+ He,
2350
+ $e
2351
2351
  ]
2352
2352
  }],
2353
2353
  /**
@@ -2362,14 +2362,14 @@ const oN = (e, t) => {
2362
2362
  * @see https://tailwindcss.com/docs/brightness
2363
2363
  */
2364
2364
  brightness: [{
2365
- brightness: [ut, Be, Fe]
2365
+ brightness: [ut, He, $e]
2366
2366
  }],
2367
2367
  /**
2368
2368
  * Contrast
2369
2369
  * @see https://tailwindcss.com/docs/contrast
2370
2370
  */
2371
2371
  contrast: [{
2372
- contrast: [ut, Be, Fe]
2372
+ contrast: [ut, He, $e]
2373
2373
  }],
2374
2374
  /**
2375
2375
  * Drop Shadow
@@ -2397,35 +2397,35 @@ const oN = (e, t) => {
2397
2397
  * @see https://tailwindcss.com/docs/grayscale
2398
2398
  */
2399
2399
  grayscale: [{
2400
- grayscale: ["", ut, Be, Fe]
2400
+ grayscale: ["", ut, He, $e]
2401
2401
  }],
2402
2402
  /**
2403
2403
  * Hue Rotate
2404
2404
  * @see https://tailwindcss.com/docs/hue-rotate
2405
2405
  */
2406
2406
  "hue-rotate": [{
2407
- "hue-rotate": [ut, Be, Fe]
2407
+ "hue-rotate": [ut, He, $e]
2408
2408
  }],
2409
2409
  /**
2410
2410
  * Invert
2411
2411
  * @see https://tailwindcss.com/docs/invert
2412
2412
  */
2413
2413
  invert: [{
2414
- invert: ["", ut, Be, Fe]
2414
+ invert: ["", ut, He, $e]
2415
2415
  }],
2416
2416
  /**
2417
2417
  * Saturate
2418
2418
  * @see https://tailwindcss.com/docs/saturate
2419
2419
  */
2420
2420
  saturate: [{
2421
- saturate: [ut, Be, Fe]
2421
+ saturate: [ut, He, $e]
2422
2422
  }],
2423
2423
  /**
2424
2424
  * Sepia
2425
2425
  * @see https://tailwindcss.com/docs/sepia
2426
2426
  */
2427
2427
  sepia: [{
2428
- sepia: ["", ut, Be, Fe]
2428
+ sepia: ["", ut, He, $e]
2429
2429
  }],
2430
2430
  /**
2431
2431
  * Backdrop Filter
@@ -2436,8 +2436,8 @@ const oN = (e, t) => {
2436
2436
  // Deprecated since Tailwind CSS v3.0.0
2437
2437
  "",
2438
2438
  "none",
2439
- Be,
2440
- Fe
2439
+ He,
2440
+ $e
2441
2441
  ]
2442
2442
  }],
2443
2443
  /**
@@ -2452,56 +2452,56 @@ const oN = (e, t) => {
2452
2452
  * @see https://tailwindcss.com/docs/backdrop-brightness
2453
2453
  */
2454
2454
  "backdrop-brightness": [{
2455
- "backdrop-brightness": [ut, Be, Fe]
2455
+ "backdrop-brightness": [ut, He, $e]
2456
2456
  }],
2457
2457
  /**
2458
2458
  * Backdrop Contrast
2459
2459
  * @see https://tailwindcss.com/docs/backdrop-contrast
2460
2460
  */
2461
2461
  "backdrop-contrast": [{
2462
- "backdrop-contrast": [ut, Be, Fe]
2462
+ "backdrop-contrast": [ut, He, $e]
2463
2463
  }],
2464
2464
  /**
2465
2465
  * Backdrop Grayscale
2466
2466
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2467
2467
  */
2468
2468
  "backdrop-grayscale": [{
2469
- "backdrop-grayscale": ["", ut, Be, Fe]
2469
+ "backdrop-grayscale": ["", ut, He, $e]
2470
2470
  }],
2471
2471
  /**
2472
2472
  * Backdrop Hue Rotate
2473
2473
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2474
2474
  */
2475
2475
  "backdrop-hue-rotate": [{
2476
- "backdrop-hue-rotate": [ut, Be, Fe]
2476
+ "backdrop-hue-rotate": [ut, He, $e]
2477
2477
  }],
2478
2478
  /**
2479
2479
  * Backdrop Invert
2480
2480
  * @see https://tailwindcss.com/docs/backdrop-invert
2481
2481
  */
2482
2482
  "backdrop-invert": [{
2483
- "backdrop-invert": ["", ut, Be, Fe]
2483
+ "backdrop-invert": ["", ut, He, $e]
2484
2484
  }],
2485
2485
  /**
2486
2486
  * Backdrop Opacity
2487
2487
  * @see https://tailwindcss.com/docs/backdrop-opacity
2488
2488
  */
2489
2489
  "backdrop-opacity": [{
2490
- "backdrop-opacity": [ut, Be, Fe]
2490
+ "backdrop-opacity": [ut, He, $e]
2491
2491
  }],
2492
2492
  /**
2493
2493
  * Backdrop Saturate
2494
2494
  * @see https://tailwindcss.com/docs/backdrop-saturate
2495
2495
  */
2496
2496
  "backdrop-saturate": [{
2497
- "backdrop-saturate": [ut, Be, Fe]
2497
+ "backdrop-saturate": [ut, He, $e]
2498
2498
  }],
2499
2499
  /**
2500
2500
  * Backdrop Sepia
2501
2501
  * @see https://tailwindcss.com/docs/backdrop-sepia
2502
2502
  */
2503
2503
  "backdrop-sepia": [{
2504
- "backdrop-sepia": ["", ut, Be, Fe]
2504
+ "backdrop-sepia": ["", ut, He, $e]
2505
2505
  }],
2506
2506
  // --------------
2507
2507
  // --- Tables ---
@@ -2556,7 +2556,7 @@ const oN = (e, t) => {
2556
2556
  * @see https://tailwindcss.com/docs/transition-property
2557
2557
  */
2558
2558
  transition: [{
2559
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", Be, Fe]
2559
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", He, $e]
2560
2560
  }],
2561
2561
  /**
2562
2562
  * Transition Behavior
@@ -2570,28 +2570,28 @@ const oN = (e, t) => {
2570
2570
  * @see https://tailwindcss.com/docs/transition-duration
2571
2571
  */
2572
2572
  duration: [{
2573
- duration: [ut, "initial", Be, Fe]
2573
+ duration: [ut, "initial", He, $e]
2574
2574
  }],
2575
2575
  /**
2576
2576
  * Transition Timing Function
2577
2577
  * @see https://tailwindcss.com/docs/transition-timing-function
2578
2578
  */
2579
2579
  ease: [{
2580
- ease: ["linear", "initial", y, Be, Fe]
2580
+ ease: ["linear", "initial", y, He, $e]
2581
2581
  }],
2582
2582
  /**
2583
2583
  * Transition Delay
2584
2584
  * @see https://tailwindcss.com/docs/transition-delay
2585
2585
  */
2586
2586
  delay: [{
2587
- delay: [ut, Be, Fe]
2587
+ delay: [ut, He, $e]
2588
2588
  }],
2589
2589
  /**
2590
2590
  * Animation
2591
2591
  * @see https://tailwindcss.com/docs/animation
2592
2592
  */
2593
2593
  animate: [{
2594
- animate: ["none", w, Be, Fe]
2594
+ animate: ["none", w, He, $e]
2595
2595
  }],
2596
2596
  // ------------------
2597
2597
  // --- Transforms ---
@@ -2608,7 +2608,7 @@ const oN = (e, t) => {
2608
2608
  * @see https://tailwindcss.com/docs/perspective
2609
2609
  */
2610
2610
  perspective: [{
2611
- perspective: [g, Be, Fe]
2611
+ perspective: [g, He, $e]
2612
2612
  }],
2613
2613
  /**
2614
2614
  * Perspective Origin
@@ -2704,7 +2704,7 @@ const oN = (e, t) => {
2704
2704
  * @see https://tailwindcss.com/docs/transform
2705
2705
  */
2706
2706
  transform: [{
2707
- transform: [Be, Fe, "", "none", "gpu", "cpu"]
2707
+ transform: [He, $e, "", "none", "gpu", "cpu"]
2708
2708
  }],
2709
2709
  /**
2710
2710
  * Transform Origin
@@ -2758,7 +2758,7 @@ const oN = (e, t) => {
2758
2758
  * @see https://tailwindcss.com/docs/zoom
2759
2759
  */
2760
2760
  zoom: [{
2761
- zoom: [pr, Be, Fe]
2761
+ zoom: [pr, He, $e]
2762
2762
  }],
2763
2763
  // ---------------------
2764
2764
  // --- Interactivity ---
@@ -2796,7 +2796,7 @@ const oN = (e, t) => {
2796
2796
  * @see https://tailwindcss.com/docs/cursor
2797
2797
  */
2798
2798
  cursor: [{
2799
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", Be, Fe]
2799
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", He, $e]
2800
2800
  }],
2801
2801
  /**
2802
2802
  * Field Sizing
@@ -3074,7 +3074,7 @@ const oN = (e, t) => {
3074
3074
  * @see https://tailwindcss.com/docs/will-change
3075
3075
  */
3076
3076
  "will-change": [{
3077
- "will-change": ["auto", "scroll", "contents", "transform", Be, Fe]
3077
+ "will-change": ["auto", "scroll", "contents", "transform", He, $e]
3078
3078
  }],
3079
3079
  // -----------
3080
3080
  // --- SVG ---
@@ -3220,7 +3220,7 @@ function ZN(e, t) {
3220
3220
  return s.searchParams.set("code", r.toString()), o.forEach((i) => s.searchParams.append("args[]", i)), `${t} error #${r}; visit ${s} for the full message.`;
3221
3221
  };
3222
3222
  }
3223
- const Qe = ZN("https://base-ui.com/production-error", "Base UI"), cb = {};
3223
+ const Ze = ZN("https://base-ui.com/production-error", "Base UI"), cb = {};
3224
3224
  function Dt(e, t) {
3225
3225
  const n = b.useRef(cb);
3226
3226
  return n.current === cb && (n.current = e(t)), n;
@@ -3474,7 +3474,7 @@ function pI(e, t, n, r) {
3474
3474
  }
3475
3475
  if (e && typeof e == "string")
3476
3476
  return hI(e, n);
3477
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : Qe(8));
3477
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : Ze(8));
3478
3478
  }
3479
3479
  function mI(e) {
3480
3480
  const t = e.name;
@@ -4310,7 +4310,7 @@ var bn = kI(), NI = (e) => {
4310
4310
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4311
4311
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4312
4312
  SM.test(e) && !RM.test(e)
4313
- ), vp = () => !1, TM = (e) => EM.test(e), PM = (e) => kM.test(e), OM = (e) => !$e(e) && !He(e), AM = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), DM = (e) => yo(e, aw, vp), $e = (e) => tw.test(e), Io = (e) => yo(e, lw, MM), bb = (e) => yo(e, HM, dt), _M = (e) => yo(e, uw, ow), VM = (e) => yo(e, cw, vp), xb = (e) => yo(e, sw, vp), FM = (e) => yo(e, iw, PM), _a = (e) => yo(e, dw, TM), He = (e) => nw.test(e), ai = (e) => Qo(e, lw), $M = (e) => Qo(e, cw), yb = (e) => Qo(e, sw), LM = (e) => Qo(e, aw), zM = (e) => Qo(e, iw), Va = (e) => Qo(e, dw, !0), BM = (e) => Qo(e, uw, !0), yo = (e, t, n) => {
4313
+ ), vp = () => !1, TM = (e) => EM.test(e), PM = (e) => kM.test(e), OM = (e) => !Le(e) && !Ue(e), AM = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), DM = (e) => yo(e, aw, vp), Le = (e) => tw.test(e), Io = (e) => yo(e, lw, MM), bb = (e) => yo(e, HM, dt), _M = (e) => yo(e, uw, ow), VM = (e) => yo(e, cw, vp), xb = (e) => yo(e, sw, vp), FM = (e) => yo(e, iw, PM), _a = (e) => yo(e, dw, TM), Ue = (e) => nw.test(e), ai = (e) => Qo(e, lw), $M = (e) => Qo(e, cw), yb = (e) => Qo(e, sw), LM = (e) => Qo(e, aw), zM = (e) => Qo(e, iw), Va = (e) => Qo(e, dw, !0), BM = (e) => Qo(e, uw, !0), yo = (e, t, n) => {
4314
4314
  const r = tw.exec(e);
4315
4315
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
4316
4316
  }, Qo = (e, t, n = !1) => {
@@ -4335,13 +4335,13 @@ var bn = kI(), NI = (e) => {
4335
4335
  "bottom-left",
4336
4336
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
4337
4337
  "left-bottom"
4338
- ], S = () => [...C(), He, $e], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [He, $e, l], I = () => [Qr, "full", "auto", ...R()], N = () => [mr, "none", "subgrid", He, $e], M = () => [
4338
+ ], S = () => [...C(), Ue, Le], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [Ue, Le, l], I = () => [Qr, "full", "auto", ...R()], N = () => [mr, "none", "subgrid", Ue, Le], M = () => [
4339
4339
  "auto",
4340
- { span: ["full", mr, He, $e] },
4340
+ { span: ["full", mr, Ue, Le] },
4341
4341
  mr,
4342
- He,
4343
- $e
4344
- ], P = () => [mr, "auto", He, $e], F = () => ["auto", "min", "max", "fr", He, $e], V = () => [
4342
+ Ue,
4343
+ Le
4344
+ ], P = () => [mr, "auto", Ue, Le], F = () => ["auto", "min", "max", "fr", Ue, Le], V = () => [
4345
4345
  "start",
4346
4346
  "end",
4347
4347
  "center",
@@ -4389,26 +4389,26 @@ var bn = kI(), NI = (e) => {
4389
4389
  "max",
4390
4390
  "fit",
4391
4391
  ...R()
4392
- ], O = () => [e, He, $e], H = () => [
4392
+ ], O = () => [e, Ue, Le], H = () => [
4393
4393
  ...C(),
4394
4394
  yb,
4395
4395
  xb,
4396
- { position: [He, $e] }
4396
+ { position: [Ue, Le] }
4397
4397
  ], L = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }], j = () => [
4398
4398
  "auto",
4399
4399
  "cover",
4400
4400
  "contain",
4401
4401
  LM,
4402
4402
  DM,
4403
- { size: [He, $e] }
4403
+ { size: [Ue, Le] }
4404
4404
  ], K = () => [nd, ai, Io], B = () => [
4405
4405
  // Deprecated since Tailwind CSS v4.0.0
4406
4406
  "",
4407
4407
  "none",
4408
4408
  "full",
4409
4409
  c,
4410
- He,
4411
- $e
4410
+ Ue,
4411
+ Le
4412
4412
  ], z = () => ["", dt, ai, Io], G = () => ["solid", "dashed", "dotted", "double"], Y = () => [
4413
4413
  "normal",
4414
4414
  "multiply",
@@ -4431,9 +4431,9 @@ var bn = kI(), NI = (e) => {
4431
4431
  "",
4432
4432
  "none",
4433
4433
  h,
4434
- He,
4435
- $e
4436
- ], J = () => ["none", dt, He, $e], Z = () => ["none", dt, He, $e], ne = () => [dt, He, $e], te = () => [Qr, "full", ...R()];
4434
+ Ue,
4435
+ Le
4436
+ ], J = () => ["none", dt, Ue, Le], Z = () => ["none", dt, Ue, Le], ne = () => [dt, Ue, Le], te = () => [Qr, "full", ...R()];
4437
4437
  return {
4438
4438
  theme: {
4439
4439
  animate: ["spin", "ping", "pulse", "bounce"],
@@ -4480,8 +4480,8 @@ var bn = kI(), NI = (e) => {
4480
4480
  "auto",
4481
4481
  "square",
4482
4482
  Qr,
4483
- $e,
4484
- He,
4483
+ Le,
4484
+ Ue,
4485
4485
  x
4486
4486
  ]
4487
4487
  }
@@ -4497,7 +4497,7 @@ var bn = kI(), NI = (e) => {
4497
4497
  * @see https://tailwindcss.com/docs/responsive-design#container-queries
4498
4498
  */
4499
4499
  "container-type": [
4500
- { "@container": ["", "normal", "size", He, $e] }
4500
+ { "@container": ["", "normal", "size", Ue, Le] }
4501
4501
  ],
4502
4502
  /**
4503
4503
  * Container Name
@@ -4508,7 +4508,7 @@ var bn = kI(), NI = (e) => {
4508
4508
  * Columns
4509
4509
  * @see https://tailwindcss.com/docs/columns
4510
4510
  */
4511
- columns: [{ columns: [dt, $e, He, a] }],
4511
+ columns: [{ columns: [dt, Le, Ue, a] }],
4512
4512
  /**
4513
4513
  * Break After
4514
4514
  * @see https://tailwindcss.com/docs/break-after
@@ -4710,7 +4710,7 @@ var bn = kI(), NI = (e) => {
4710
4710
  * Z-Index
4711
4711
  * @see https://tailwindcss.com/docs/z-index
4712
4712
  */
4713
- z: [{ z: [mr, "auto", He, $e] }],
4713
+ z: [{ z: [mr, "auto", Ue, Le] }],
4714
4714
  // ------------------------
4715
4715
  // --- Flexbox and Grid ---
4716
4716
  // ------------------------
@@ -4737,24 +4737,24 @@ var bn = kI(), NI = (e) => {
4737
4737
  * Flex
4738
4738
  * @see https://tailwindcss.com/docs/flex
4739
4739
  */
4740
- flex: [{ flex: [dt, Qr, "auto", "initial", "none", $e] }],
4740
+ flex: [{ flex: [dt, Qr, "auto", "initial", "none", Le] }],
4741
4741
  /**
4742
4742
  * Flex Grow
4743
4743
  * @see https://tailwindcss.com/docs/flex-grow
4744
4744
  */
4745
- grow: [{ grow: ["", dt, He, $e] }],
4745
+ grow: [{ grow: ["", dt, Ue, Le] }],
4746
4746
  /**
4747
4747
  * Flex Shrink
4748
4748
  * @see https://tailwindcss.com/docs/flex-shrink
4749
4749
  */
4750
- shrink: [{ shrink: ["", dt, He, $e] }],
4750
+ shrink: [{ shrink: ["", dt, Ue, Le] }],
4751
4751
  /**
4752
4752
  * Order
4753
4753
  * @see https://tailwindcss.com/docs/order
4754
4754
  */
4755
4755
  order: [
4756
4756
  {
4757
- order: [mr, "first", "last", "none", He, $e]
4757
+ order: [mr, "first", "last", "none", Ue, Le]
4758
4758
  }
4759
4759
  ],
4760
4760
  /**
@@ -5138,7 +5138,7 @@ var bn = kI(), NI = (e) => {
5138
5138
  "extra-expanded",
5139
5139
  "ultra-expanded",
5140
5140
  nd,
5141
- $e
5141
+ Le
5142
5142
  ]
5143
5143
  }
5144
5144
  ],
@@ -5151,7 +5151,7 @@ var bn = kI(), NI = (e) => {
5151
5151
  * Font Feature Settings
5152
5152
  * @see https://tailwindcss.com/docs/font-feature-settings
5153
5153
  */
5154
- "font-features": [{ "font-features": [$e] }],
5154
+ "font-features": [{ "font-features": [Le] }],
5155
5155
  /**
5156
5156
  * Font Variant Numeric
5157
5157
  * @see https://tailwindcss.com/docs/font-variant-numeric
@@ -5186,12 +5186,12 @@ var bn = kI(), NI = (e) => {
5186
5186
  * Letter Spacing
5187
5187
  * @see https://tailwindcss.com/docs/letter-spacing
5188
5188
  */
5189
- tracking: [{ tracking: [o, He, $e] }],
5189
+ tracking: [{ tracking: [o, Ue, Le] }],
5190
5190
  /**
5191
5191
  * Line Clamp
5192
5192
  * @see https://tailwindcss.com/docs/line-clamp
5193
5193
  */
5194
- "line-clamp": [{ "line-clamp": [dt, "none", He, bb] }],
5194
+ "line-clamp": [{ "line-clamp": [dt, "none", Ue, bb] }],
5195
5195
  /**
5196
5196
  * Line Height
5197
5197
  * @see https://tailwindcss.com/docs/line-height
@@ -5209,7 +5209,7 @@ var bn = kI(), NI = (e) => {
5209
5209
  * List Style Image
5210
5210
  * @see https://tailwindcss.com/docs/list-style-image
5211
5211
  */
5212
- "list-image": [{ "list-image": ["none", He, $e] }],
5212
+ "list-image": [{ "list-image": ["none", Ue, Le] }],
5213
5213
  /**
5214
5214
  * List Style Position
5215
5215
  * @see https://tailwindcss.com/docs/list-style-position
@@ -5220,7 +5220,7 @@ var bn = kI(), NI = (e) => {
5220
5220
  * @see https://tailwindcss.com/docs/list-style-type
5221
5221
  */
5222
5222
  "list-style-type": [
5223
- { list: ["disc", "decimal", "none", He, $e] }
5223
+ { list: ["disc", "decimal", "none", Ue, Le] }
5224
5224
  ],
5225
5225
  /**
5226
5226
  * Text Alignment
@@ -5254,7 +5254,7 @@ var bn = kI(), NI = (e) => {
5254
5254
  */
5255
5255
  "text-decoration-thickness": [
5256
5256
  {
5257
- decoration: [dt, "from-font", "auto", He, Io]
5257
+ decoration: [dt, "from-font", "auto", Ue, Io]
5258
5258
  }
5259
5259
  ],
5260
5260
  /**
@@ -5267,7 +5267,7 @@ var bn = kI(), NI = (e) => {
5267
5267
  * @see https://tailwindcss.com/docs/text-underline-offset
5268
5268
  */
5269
5269
  "underline-offset": [
5270
- { "underline-offset": [dt, "auto", He, $e] }
5270
+ { "underline-offset": [dt, "auto", Ue, Le] }
5271
5271
  ],
5272
5272
  /**
5273
5273
  * Text Transform
@@ -5293,7 +5293,7 @@ var bn = kI(), NI = (e) => {
5293
5293
  * Tab Size
5294
5294
  * @see https://tailwindcss.com/docs/tab-size
5295
5295
  */
5296
- "tab-size": [{ tab: [mr, He, $e] }],
5296
+ "tab-size": [{ tab: [mr, Ue, Le] }],
5297
5297
  /**
5298
5298
  * Vertical Alignment
5299
5299
  * @see https://tailwindcss.com/docs/vertical-align
@@ -5309,8 +5309,8 @@ var bn = kI(), NI = (e) => {
5309
5309
  "text-bottom",
5310
5310
  "sub",
5311
5311
  "super",
5312
- He,
5313
- $e
5312
+ Ue,
5313
+ Le
5314
5314
  ]
5315
5315
  }
5316
5316
  ],
@@ -5340,7 +5340,7 @@ var bn = kI(), NI = (e) => {
5340
5340
  * Content
5341
5341
  * @see https://tailwindcss.com/docs/content
5342
5342
  */
5343
- content: [{ content: ["none", He, $e] }],
5343
+ content: [{ content: ["none", Ue, Le] }],
5344
5344
  // -------------------
5345
5345
  // --- Backgrounds ---
5346
5346
  // -------------------
@@ -5386,11 +5386,11 @@ var bn = kI(), NI = (e) => {
5386
5386
  linear: [
5387
5387
  { to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] },
5388
5388
  mr,
5389
- He,
5390
- $e
5389
+ Ue,
5390
+ Le
5391
5391
  ],
5392
- radial: ["", He, $e],
5393
- conic: [mr, He, $e]
5392
+ radial: ["", Ue, Le],
5393
+ conic: [mr, Ue, Le]
5394
5394
  },
5395
5395
  zM,
5396
5396
  FM
@@ -5664,7 +5664,7 @@ var bn = kI(), NI = (e) => {
5664
5664
  * Outline Offset
5665
5665
  * @see https://tailwindcss.com/docs/outline-offset
5666
5666
  */
5667
- "outline-offset": [{ "outline-offset": [dt, He, $e] }],
5667
+ "outline-offset": [{ "outline-offset": [dt, Ue, Le] }],
5668
5668
  /**
5669
5669
  * Outline Width
5670
5670
  * @see https://tailwindcss.com/docs/outline-width
@@ -5772,7 +5772,7 @@ var bn = kI(), NI = (e) => {
5772
5772
  * Opacity
5773
5773
  * @see https://tailwindcss.com/docs/opacity
5774
5774
  */
5775
- opacity: [{ opacity: [dt, He, $e] }],
5775
+ opacity: [{ opacity: [dt, Ue, Le] }],
5776
5776
  /**
5777
5777
  * Mix Blend Mode
5778
5778
  * @see https://tailwindcss.com/docs/mix-blend-mode
@@ -5829,7 +5829,7 @@ var bn = kI(), NI = (e) => {
5829
5829
  "mask-image-y-to-pos": [{ "mask-y-to": q() }],
5830
5830
  "mask-image-y-from-color": [{ "mask-y-from": O() }],
5831
5831
  "mask-image-y-to-color": [{ "mask-y-to": O() }],
5832
- "mask-image-radial": [{ "mask-radial": [He, $e] }],
5832
+ "mask-image-radial": [{ "mask-radial": [Ue, Le] }],
5833
5833
  "mask-image-radial-from-pos": [{ "mask-radial-from": q() }],
5834
5834
  "mask-image-radial-to-pos": [{ "mask-radial-to": q() }],
5835
5835
  "mask-image-radial-from-color": [{ "mask-radial-from": O() }],
@@ -5878,7 +5878,7 @@ var bn = kI(), NI = (e) => {
5878
5878
  * Mask Image
5879
5879
  * @see https://tailwindcss.com/docs/mask-image
5880
5880
  */
5881
- "mask-image": [{ mask: ["none", He, $e] }],
5881
+ "mask-image": [{ mask: ["none", Ue, Le] }],
5882
5882
  // ---------------
5883
5883
  // --- Filters ---
5884
5884
  // ---------------
@@ -5892,8 +5892,8 @@ var bn = kI(), NI = (e) => {
5892
5892
  // Deprecated since Tailwind CSS v3.0.0
5893
5893
  "",
5894
5894
  "none",
5895
- He,
5896
- $e
5895
+ Ue,
5896
+ Le
5897
5897
  ]
5898
5898
  }
5899
5899
  ],
@@ -5906,12 +5906,12 @@ var bn = kI(), NI = (e) => {
5906
5906
  * Brightness
5907
5907
  * @see https://tailwindcss.com/docs/brightness
5908
5908
  */
5909
- brightness: [{ brightness: [dt, He, $e] }],
5909
+ brightness: [{ brightness: [dt, Ue, Le] }],
5910
5910
  /**
5911
5911
  * Contrast
5912
5912
  * @see https://tailwindcss.com/docs/contrast
5913
5913
  */
5914
- contrast: [{ contrast: [dt, He, $e] }],
5914
+ contrast: [{ contrast: [dt, Ue, Le] }],
5915
5915
  /**
5916
5916
  * Drop Shadow
5917
5917
  * @see https://tailwindcss.com/docs/drop-shadow
@@ -5937,27 +5937,27 @@ var bn = kI(), NI = (e) => {
5937
5937
  * Grayscale
5938
5938
  * @see https://tailwindcss.com/docs/grayscale
5939
5939
  */
5940
- grayscale: [{ grayscale: ["", dt, He, $e] }],
5940
+ grayscale: [{ grayscale: ["", dt, Ue, Le] }],
5941
5941
  /**
5942
5942
  * Hue Rotate
5943
5943
  * @see https://tailwindcss.com/docs/hue-rotate
5944
5944
  */
5945
- "hue-rotate": [{ "hue-rotate": [dt, He, $e] }],
5945
+ "hue-rotate": [{ "hue-rotate": [dt, Ue, Le] }],
5946
5946
  /**
5947
5947
  * Invert
5948
5948
  * @see https://tailwindcss.com/docs/invert
5949
5949
  */
5950
- invert: [{ invert: ["", dt, He, $e] }],
5950
+ invert: [{ invert: ["", dt, Ue, Le] }],
5951
5951
  /**
5952
5952
  * Saturate
5953
5953
  * @see https://tailwindcss.com/docs/saturate
5954
5954
  */
5955
- saturate: [{ saturate: [dt, He, $e] }],
5955
+ saturate: [{ saturate: [dt, Ue, Le] }],
5956
5956
  /**
5957
5957
  * Sepia
5958
5958
  * @see https://tailwindcss.com/docs/sepia
5959
5959
  */
5960
- sepia: [{ sepia: ["", dt, He, $e] }],
5960
+ sepia: [{ sepia: ["", dt, Ue, Le] }],
5961
5961
  /**
5962
5962
  * Backdrop Filter
5963
5963
  * @see https://tailwindcss.com/docs/backdrop-filter
@@ -5968,8 +5968,8 @@ var bn = kI(), NI = (e) => {
5968
5968
  // Deprecated since Tailwind CSS v3.0.0
5969
5969
  "",
5970
5970
  "none",
5971
- He,
5972
- $e
5971
+ Ue,
5972
+ Le
5973
5973
  ]
5974
5974
  }
5975
5975
  ],
@@ -5983,53 +5983,53 @@ var bn = kI(), NI = (e) => {
5983
5983
  * @see https://tailwindcss.com/docs/backdrop-brightness
5984
5984
  */
5985
5985
  "backdrop-brightness": [
5986
- { "backdrop-brightness": [dt, He, $e] }
5986
+ { "backdrop-brightness": [dt, Ue, Le] }
5987
5987
  ],
5988
5988
  /**
5989
5989
  * Backdrop Contrast
5990
5990
  * @see https://tailwindcss.com/docs/backdrop-contrast
5991
5991
  */
5992
5992
  "backdrop-contrast": [
5993
- { "backdrop-contrast": [dt, He, $e] }
5993
+ { "backdrop-contrast": [dt, Ue, Le] }
5994
5994
  ],
5995
5995
  /**
5996
5996
  * Backdrop Grayscale
5997
5997
  * @see https://tailwindcss.com/docs/backdrop-grayscale
5998
5998
  */
5999
5999
  "backdrop-grayscale": [
6000
- { "backdrop-grayscale": ["", dt, He, $e] }
6000
+ { "backdrop-grayscale": ["", dt, Ue, Le] }
6001
6001
  ],
6002
6002
  /**
6003
6003
  * Backdrop Hue Rotate
6004
6004
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
6005
6005
  */
6006
6006
  "backdrop-hue-rotate": [
6007
- { "backdrop-hue-rotate": [dt, He, $e] }
6007
+ { "backdrop-hue-rotate": [dt, Ue, Le] }
6008
6008
  ],
6009
6009
  /**
6010
6010
  * Backdrop Invert
6011
6011
  * @see https://tailwindcss.com/docs/backdrop-invert
6012
6012
  */
6013
6013
  "backdrop-invert": [
6014
- { "backdrop-invert": ["", dt, He, $e] }
6014
+ { "backdrop-invert": ["", dt, Ue, Le] }
6015
6015
  ],
6016
6016
  /**
6017
6017
  * Backdrop Opacity
6018
6018
  * @see https://tailwindcss.com/docs/backdrop-opacity
6019
6019
  */
6020
- "backdrop-opacity": [{ "backdrop-opacity": [dt, He, $e] }],
6020
+ "backdrop-opacity": [{ "backdrop-opacity": [dt, Ue, Le] }],
6021
6021
  /**
6022
6022
  * Backdrop Saturate
6023
6023
  * @see https://tailwindcss.com/docs/backdrop-saturate
6024
6024
  */
6025
6025
  "backdrop-saturate": [
6026
- { "backdrop-saturate": [dt, He, $e] }
6026
+ { "backdrop-saturate": [dt, Ue, Le] }
6027
6027
  ],
6028
6028
  /**
6029
6029
  * Backdrop Sepia
6030
6030
  * @see https://tailwindcss.com/docs/backdrop-sepia
6031
6031
  */
6032
- "backdrop-sepia": [{ "backdrop-sepia": ["", dt, He, $e] }],
6032
+ "backdrop-sepia": [{ "backdrop-sepia": ["", dt, Ue, Le] }],
6033
6033
  // --------------
6034
6034
  // --- Tables ---
6035
6035
  // --------------
@@ -6080,8 +6080,8 @@ var bn = kI(), NI = (e) => {
6080
6080
  "shadow",
6081
6081
  "transform",
6082
6082
  "none",
6083
- He,
6084
- $e
6083
+ Ue,
6084
+ Le
6085
6085
  ]
6086
6086
  }
6087
6087
  ],
@@ -6094,22 +6094,22 @@ var bn = kI(), NI = (e) => {
6094
6094
  * Transition Duration
6095
6095
  * @see https://tailwindcss.com/docs/transition-duration
6096
6096
  */
6097
- duration: [{ duration: [dt, "initial", He, $e] }],
6097
+ duration: [{ duration: [dt, "initial", Ue, Le] }],
6098
6098
  /**
6099
6099
  * Transition Timing Function
6100
6100
  * @see https://tailwindcss.com/docs/transition-timing-function
6101
6101
  */
6102
- ease: [{ ease: ["linear", "initial", y, He, $e] }],
6102
+ ease: [{ ease: ["linear", "initial", y, Ue, Le] }],
6103
6103
  /**
6104
6104
  * Transition Delay
6105
6105
  * @see https://tailwindcss.com/docs/transition-delay
6106
6106
  */
6107
- delay: [{ delay: [dt, He, $e] }],
6107
+ delay: [{ delay: [dt, Ue, Le] }],
6108
6108
  /**
6109
6109
  * Animation
6110
6110
  * @see https://tailwindcss.com/docs/animation
6111
6111
  */
6112
- animate: [{ animate: ["none", w, He, $e] }],
6112
+ animate: [{ animate: ["none", w, Ue, Le] }],
6113
6113
  // ------------------
6114
6114
  // --- Transforms ---
6115
6115
  // ------------------
@@ -6122,7 +6122,7 @@ var bn = kI(), NI = (e) => {
6122
6122
  * Perspective
6123
6123
  * @see https://tailwindcss.com/docs/perspective
6124
6124
  */
6125
- perspective: [{ perspective: [g, He, $e] }],
6125
+ perspective: [{ perspective: [g, Ue, Le] }],
6126
6126
  /**
6127
6127
  * Perspective Origin
6128
6128
  * @see https://tailwindcss.com/docs/perspective-origin
@@ -6192,7 +6192,7 @@ var bn = kI(), NI = (e) => {
6192
6192
  * Transform
6193
6193
  * @see https://tailwindcss.com/docs/transform
6194
6194
  */
6195
- transform: [{ transform: [He, $e, "", "none", "gpu", "cpu"] }],
6195
+ transform: [{ transform: [Ue, Le, "", "none", "gpu", "cpu"] }],
6196
6196
  /**
6197
6197
  * Transform Origin
6198
6198
  * @see https://tailwindcss.com/docs/transform-origin
@@ -6232,7 +6232,7 @@ var bn = kI(), NI = (e) => {
6232
6232
  * Zoom
6233
6233
  * @see https://tailwindcss.com/docs/zoom
6234
6234
  */
6235
- zoom: [{ zoom: [mr, He, $e] }],
6235
+ zoom: [{ zoom: [mr, Ue, Le] }],
6236
6236
  // ---------------------
6237
6237
  // --- Interactivity ---
6238
6238
  // ---------------------
@@ -6301,8 +6301,8 @@ var bn = kI(), NI = (e) => {
6301
6301
  "nwse-resize",
6302
6302
  "zoom-in",
6303
6303
  "zoom-out",
6304
- He,
6305
- $e
6304
+ Ue,
6305
+ Le
6306
6306
  ]
6307
6307
  }
6308
6308
  ],
@@ -6512,8 +6512,8 @@ var bn = kI(), NI = (e) => {
6512
6512
  "scroll",
6513
6513
  "contents",
6514
6514
  "transform",
6515
- He,
6516
- $e
6515
+ Ue,
6516
+ Le
6517
6517
  ]
6518
6518
  }
6519
6519
  ],
@@ -6937,7 +6937,7 @@ function Pt({
6937
6937
  "aria-disabled": p,
6938
6938
  ...h
6939
6939
  }) {
6940
- const [g, x] = Ee([]), y = Ue(0), w = i || c || p === !0 || p === "true";
6940
+ const [g, x] = Ee([]), y = Ve(0), w = i || c || p === !0 || p === "true";
6941
6941
  function v(C) {
6942
6942
  if (m?.(C), t === "link" || w) return;
6943
6943
  const S = C.currentTarget.getBoundingClientRect(), E = Math.max(C.clientX - S.left, S.right - C.clientX), k = Math.max(C.clientY - S.top, S.bottom - C.clientY), R = 2 * Math.hypot(E, k), I = {
@@ -8798,21 +8798,21 @@ function Gs(e, t = {}) {
8798
8798
  return;
8799
8799
  }
8800
8800
  const re = yt(X), he = `[${Ai("inert")}]`, ie = at(re) ? re.getRootNode() : null, ae = Array.from((Ts(ie) ? ie : Ye(c.select("floatingElement"))).querySelectorAll(he)), ve = c.context.triggerElements;
8801
- if (re && (ve.hasElement(re) || ve.hasMatchingElement((Le) => Ie(Le, re))))
8801
+ if (re && (ve.hasElement(re) || ve.hasMatchingElement((ze) => Ie(ze, re))))
8802
8802
  return;
8803
8803
  let Re = at(re) ? re : null;
8804
8804
  for (; Re && !_r(Re); ) {
8805
- const Le = zr(Re);
8806
- if (_r(Le) || !at(Le))
8805
+ const ze = zr(Re);
8806
+ if (_r(ze) || !at(ze))
8807
8807
  break;
8808
- Re = Le;
8808
+ Re = ze;
8809
8809
  }
8810
8810
  if (!(ae.length && at(re) && !pT(re) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
8811
8811
  !Ie(re, c.select("floatingElement")) && // If the target root element contains none of the markers, then the
8812
8812
  // element was injected after the floating element rendered.
8813
- ae.every((Le) => !Ie(Re, Le)))) {
8813
+ ae.every((ze) => !Ie(Re, ze)))) {
8814
8814
  if (xt(re) && !("touches" in X)) {
8815
- const Le = _r(re), Te = wn(re), Ne = /auto|scroll/, ke = Le || Ne.test(Te.overflowX), Ze = Le || Ne.test(Te.overflowY), ze = ke && re.clientWidth > 0 && re.scrollWidth > re.clientWidth, _e = Ze && re.clientHeight > 0 && re.scrollHeight > re.clientHeight, Se = Te.direction === "rtl", Oe = _e && (Se ? X.offsetX <= re.offsetWidth - re.clientWidth : X.offsetX > re.clientWidth), Ge = ze && X.offsetY > re.clientHeight;
8815
+ const ze = _r(re), Te = wn(re), Ne = /auto|scroll/, ke = ze || Ne.test(Te.overflowX), Xe = ze || Ne.test(Te.overflowY), Be = ke && re.clientWidth > 0 && re.scrollWidth > re.clientWidth, _e = Xe && re.clientHeight > 0 && re.scrollHeight > re.clientHeight, Se = Te.direction === "rtl", Oe = _e && (Se ? X.offsetX <= re.offsetWidth - re.clientWidth : X.offsetX > re.clientWidth), Ge = Be && X.offsetY > re.clientHeight;
8816
8816
  if (Oe || Ge)
8817
8817
  return;
8818
8818
  }
@@ -11619,7 +11619,7 @@ function tm(e, t) {
11619
11619
  onKeyDown(ie) {
11620
11620
  const ae = k.select("open");
11621
11621
  O.current = !1;
11622
- const ve = ie.key.startsWith("Arrow"), Re = b2(ie.key, me(), u), Le = ja(ie.key, x), Te = (c ? Re : Le) || ie.key === "Enter" || ie.key.trim() === "";
11622
+ const ve = ie.key.startsWith("Arrow"), Re = b2(ie.key, me(), u), ze = ja(ie.key, x), Te = (c ? Re : ze) || ie.key === "Enter" || ie.key.trim() === "";
11623
11623
  if (m && ae)
11624
11624
  return se(ie);
11625
11625
  if (!(!ae && !h && ve)) {
@@ -11631,7 +11631,7 @@ function tm(e, t) {
11631
11631
  Re && (wt(ie), ae ? (A.current = pe(), H(ie)) : X(ie));
11632
11632
  return;
11633
11633
  }
11634
- Le && (q.current != null && (A.current = q.current), wt(ie), !ae && h ? X(ie) : se(ie), ae && H(ie));
11634
+ ze && (q.current != null && (A.current = q.current), wt(ie), !ae && h ? X(ie) : se(ie), ae && H(ie));
11635
11635
  }
11636
11636
  },
11637
11637
  onFocus(ie) {
@@ -11841,7 +11841,7 @@ process.env.NODE_ENV !== "production" && (rm.displayName = "PopoverRootContext")
11841
11841
  function ns(e) {
11842
11842
  const t = b.useContext(rm);
11843
11843
  if (t === void 0 && !e)
11844
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." : Qe(47));
11844
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." : Ze(47));
11845
11845
  return t;
11846
11846
  }
11847
11847
  const w2 = {
@@ -12010,7 +12010,7 @@ process.env.NODE_ENV !== "production" && (om.displayName = "CompositeRootContext
12010
12010
  function Qc(e = !1) {
12011
12011
  const t = b.useContext(om);
12012
12012
  if (t === void 0 && !e)
12013
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : Qe(16));
12013
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : Ze(16));
12014
12014
  return t;
12015
12015
  }
12016
12016
  function i0(e) {
@@ -12292,7 +12292,7 @@ const l0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
12292
12292
  ...h
12293
12293
  } = t, g = ns(!0), y = qc(l) ?? g;
12294
12294
  if (!y)
12295
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Qe(74));
12295
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Ze(74));
12296
12296
  const w = vt(p), v = y.useState("isTriggerActive", w), C = y.useState("floatingRootContext"), S = y.useState("isOpenedByTrigger", w), E = y.useState("triggerPopupId", w), k = b.useRef(null), {
12297
12297
  registerTrigger: R,
12298
12298
  isMountedByThisTrigger: I
@@ -12364,7 +12364,7 @@ process.env.NODE_ENV !== "production" && (am.displayName = "PopoverPortalContext
12364
12364
  function $2() {
12365
12365
  const e = b.useContext(am);
12366
12366
  if (e === void 0)
12367
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : Qe(45));
12367
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : Ze(45));
12368
12368
  return e;
12369
12369
  }
12370
12370
  const c0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -12389,7 +12389,7 @@ process.env.NODE_ENV !== "production" && (lm.displayName = "PopoverPositionerCon
12389
12389
  function u0() {
12390
12390
  const e = b.useContext(lm);
12391
12391
  if (!e)
12392
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." : Qe(46));
12392
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." : Ze(46));
12393
12393
  return e;
12394
12394
  }
12395
12395
  const d0 = /* @__PURE__ */ b.createContext(void 0);
@@ -12598,8 +12598,8 @@ function U2(e, t) {
12598
12598
  y: Ft,
12599
12599
  width: Pe,
12600
12600
  height: St
12601
- } = gt.reference, Rt = (Math.round((lt + Pe) * it) - Math.round(lt * it)) / it, Ke = (Math.round((Ft + St) * it) - Math.round(Ft * it)) / it;
12602
- qe.setProperty("--anchor-width", `${Rt}px`), qe.setProperty("--anchor-height", `${Ke}px`);
12601
+ } = gt.reference, Rt = (Math.round((lt + Pe) * it) - Math.round(lt * it)) / it, We = (Math.round((Ft + St) * it) - Math.round(Ft * it)) / it;
12602
+ qe.setProperty("--anchor-width", `${Rt}px`), qe.setProperty("--anchor-height", `${We}px`);
12603
12603
  }
12604
12604
  }), z2((je) => ({
12605
12605
  // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,
@@ -12616,7 +12616,7 @@ function U2(e, t) {
12616
12616
  placement: gt,
12617
12617
  rects: qe,
12618
12618
  y: it
12619
- } = je, lt = Zn(gt), Ft = jn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0, Ke = Pe?.clientWidth || 0, bt = Pe?.clientHeight || 0, $t = St + Ke / 2, Yt = Rt + bt / 2, mn = Math.abs(Ae.shift?.y || 0), Gt = qe.reference.height / 2, tn = typeof s == "function" ? s(cx(je, o, O)) : s, Xt = mn > tn, nt = {
12619
+ } = je, lt = Zn(gt), Ft = jn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0, We = Pe?.clientWidth || 0, bt = Pe?.clientHeight || 0, $t = St + We / 2, Yt = Rt + bt / 2, mn = Math.abs(Ae.shift?.y || 0), Gt = qe.reference.height / 2, tn = typeof s == "function" ? s(cx(je, o, O)) : s, Xt = mn > tn, nt = {
12620
12620
  top: `${$t}px calc(100% + ${tn}px)`,
12621
12621
  bottom: `${$t}px ${-tn}px`,
12622
12622
  left: `calc(100% + ${tn}px) ${Yt}px`,
@@ -12656,13 +12656,13 @@ function U2(e, t) {
12656
12656
  nodeId: v,
12657
12657
  externalTree: E
12658
12658
  }), {
12659
- sideX: Le,
12659
+ sideX: ze,
12660
12660
  sideY: Te
12661
12661
  } = re.adaptiveOrigin || H2, Ne = ve ? r : "fixed", ke = b.useMemo(() => {
12662
12662
  let je;
12663
12663
  return ve ? C ? je = {
12664
12664
  position: Ne,
12665
- [Le]: Q,
12665
+ [ze]: Q,
12666
12666
  [Te]: X
12667
12667
  } : je = {
12668
12668
  ...Re,
@@ -12672,25 +12672,25 @@ function U2(e, t) {
12672
12672
  top: 0,
12673
12673
  left: 0
12674
12674
  }, je[ax] = "100vw", je[lx] = "100vh", ve || (je.opacity = 0), je;
12675
- }, [C, Ne, Le, Q, Te, X, Re, ve]), Ze = b.useRef(null);
12675
+ }, [C, Ne, ze, Q, Te, X, Re, ve]), Xe = b.useRef(null);
12676
12676
  be(() => {
12677
12677
  if (!x)
12678
12678
  return;
12679
12679
  const je = $.current, et = typeof je == "function" ? je() : je, gt = (ux(et) ? et.current : et) || null || null;
12680
- gt !== Ze.current && (fe.setPositionReference(gt), Ze.current = gt);
12680
+ gt !== Xe.current && (fe.setPositionReference(gt), Xe.current = gt);
12681
12681
  }, [x, fe, D, $]), b.useEffect(() => {
12682
12682
  if (!x)
12683
12683
  return;
12684
12684
  const je = $.current;
12685
- typeof je != "function" && ux(je) && je.current !== Ze.current && (fe.setPositionReference(je.current), Ze.current = je.current);
12685
+ typeof je != "function" && ux(je) && je.current !== Xe.current && (fe.setPositionReference(je.current), Xe.current = je.current);
12686
12686
  }, [x, fe, D, $]), b.useEffect(() => {
12687
12687
  if (h && x && xe.reference && xe.floating)
12688
12688
  return Yb(xe.reference, xe.floating, he, le);
12689
12689
  }, [h, x, xe, he, le]);
12690
- const ze = Zn(ie), _e = f0(o, ze, O), Se = wo(ie) || "center", Oe = !!re.hide?.referenceHidden;
12690
+ const Be = Zn(ie), _e = f0(o, Be, O), Se = wo(ie) || "center", Oe = !!re.hide?.referenceHidden;
12691
12691
  be(() => {
12692
- S && x && ve && ze !== H && R(ze);
12693
- }, [S, x, ve, ze, H]);
12692
+ S && x && ve && Be !== H && R(Be);
12693
+ }, [S, x, ve, Be, H]);
12694
12694
  const Ge = b.useMemo(() => ({
12695
12695
  position: "absolute",
12696
12696
  top: re.arrow?.y,
@@ -12703,13 +12703,13 @@ function U2(e, t) {
12703
12703
  arrowUncentered: tt,
12704
12704
  side: _e,
12705
12705
  align: Se,
12706
- physicalSide: ze,
12706
+ physicalSide: Be,
12707
12707
  anchorHidden: Oe,
12708
12708
  refs: fe,
12709
12709
  context: ae,
12710
12710
  isPositioned: ve,
12711
12711
  update: he
12712
- }), [ke, Ge, ee, tt, _e, Se, ze, Oe, fe, ae, ve, he]);
12712
+ }), [ke, Ge, ee, tt, _e, Se, Be, Oe, fe, ae, ve, he]);
12713
12713
  }
12714
12714
  function ux(e) {
12715
12715
  return e != null && "current" in e;
@@ -13033,7 +13033,7 @@ process.env.NODE_ENV !== "production" && (cm.displayName = "ToolbarRootContext")
13033
13033
  function Ro(e) {
13034
13034
  const t = b.useContext(cm);
13035
13035
  if (t === void 0 && !e)
13036
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : Qe(69));
13036
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : Ze(69));
13037
13037
  return t;
13038
13038
  }
13039
13039
  const um = /* @__PURE__ */ b.createContext(void 0);
@@ -13195,7 +13195,7 @@ process.env.NODE_ENV !== "production" && (dm.displayName = "TooltipRootContext")
13195
13195
  function oa(e) {
13196
13196
  const t = b.useContext(dm);
13197
13197
  if (t === void 0 && !e)
13198
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : Qe(72));
13198
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : Ze(72));
13199
13199
  return t;
13200
13200
  }
13201
13201
  const nO = {
@@ -13372,7 +13372,7 @@ const S0 = Yw(function(t, n) {
13372
13372
  ...p
13373
13373
  } = t, h = oa(!0), x = qc(i) ?? h;
13374
13374
  if (!x)
13375
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle." : Qe(82));
13375
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle." : Ze(82));
13376
13376
  const y = vt(d), w = x.useState("isTriggerActive", y), v = x.useState("isOpenedByTrigger", y), C = x.useState("floatingRootContext"), S = b.useRef(null), E = c ?? yx, k = m ?? 0, {
13377
13377
  registerTrigger: R,
13378
13378
  isMountedByThisTrigger: I
@@ -13475,7 +13475,7 @@ process.env.NODE_ENV !== "production" && (pm.displayName = "TooltipPortalContext
13475
13475
  function cO() {
13476
13476
  const e = b.useContext(pm);
13477
13477
  if (e === void 0)
13478
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Portal> is missing." : Qe(70));
13478
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Portal> is missing." : Ze(70));
13479
13479
  return e;
13480
13480
  }
13481
13481
  const mm = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -13519,7 +13519,7 @@ process.env.NODE_ENV !== "production" && (hm.displayName = "TooltipPositionerCon
13519
13519
  function E0() {
13520
13520
  const e = b.useContext(hm);
13521
13521
  if (e === void 0)
13522
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : Qe(71));
13522
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : Ze(71));
13523
13523
  return e;
13524
13524
  }
13525
13525
  const k0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -14242,7 +14242,7 @@ process.env.NODE_ENV !== "production" && (nu.displayName = "FieldRootContext");
14242
14242
  function qt(e = !0) {
14243
14243
  const t = b.useContext(nu);
14244
14244
  if (t.setValidityData === pt && !e)
14245
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : Qe(28));
14245
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : Ze(28));
14246
14246
  return t;
14247
14247
  }
14248
14248
  const gm = /* @__PURE__ */ b.createContext(void 0);
@@ -14250,7 +14250,7 @@ process.env.NODE_ENV !== "production" && (gm.displayName = "FieldsetRootContext"
14250
14250
  function ru(e = !1) {
14251
14251
  const t = b.useContext(gm);
14252
14252
  if (!t && !e)
14253
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : Qe(86));
14253
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : Ze(86));
14254
14254
  return t;
14255
14255
  }
14256
14256
  const F0 = /* @__PURE__ */ b.createContext({
@@ -15493,11 +15493,11 @@ function LH({
15493
15493
  messageClassName: d,
15494
15494
  ref: p
15495
15495
  }) {
15496
- const h = NO({ size: s }), [g, x] = Ee(!1), [y, w] = Ee(e), [v, C] = Ee(!1), [S, E] = Ee(null), [k, R] = Ee(null), I = Ue(null), N = Ue(null), M = Ue(!1), P = Ue(!1), F = Ut(), V = Ut(), _ = Ut(), D = a !== void 0, $ = S ?? k;
15496
+ const h = NO({ size: s }), [g, x] = Ee(!1), [y, w] = Ee(e), [v, C] = Ee(!1), [S, E] = Ee(null), [k, R] = Ee(null), I = Ve(null), N = Ve(null), M = Ve(!1), P = Ve(!1), F = Ut(), V = Ut(), _ = Ut(), D = a !== void 0, $ = S ?? k;
15497
15497
  function A(G) {
15498
15498
  N.current = G, typeof p == "function" ? p(G) : p && (p.current = G);
15499
15499
  }
15500
- Xe(() => {
15500
+ Qe(() => {
15501
15501
  if (g) {
15502
15502
  const G = I.current;
15503
15503
  if (!G) return;
@@ -15683,7 +15683,7 @@ process.env.NODE_ENV !== "production" && (ym.displayName = "DialogRootContext");
15683
15683
  function Eo(e) {
15684
15684
  const t = b.useContext(ym);
15685
15685
  if (!e && t === void 0)
15686
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : Qe(27));
15686
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : Ze(27));
15687
15687
  return t;
15688
15688
  }
15689
15689
  const sa = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -15763,7 +15763,7 @@ process.env.NODE_ENV !== "production" && (wm.displayName = "DialogPortalContext"
15763
15763
  function OO() {
15764
15764
  const e = b.useContext(wm);
15765
15765
  if (e === void 0)
15766
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : Qe(26));
15766
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : Ze(26));
15767
15767
  return e;
15768
15768
  }
15769
15769
  const AO = {
@@ -16037,7 +16037,7 @@ const au = /* @__PURE__ */ b.forwardRef(function(t, n) {
16037
16037
  ...m
16038
16038
  } = t, d = Eo(!0), h = qc(u) ?? d;
16039
16039
  if (!h)
16040
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : Qe(79));
16040
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : Ze(79));
16041
16041
  const g = vt(l), x = h.useState("floatingRootContext"), y = h.useState("isOpenedByTrigger", g), w = h.useState("triggerPopupId", g), v = b.useRef(null), {
16042
16042
  registerTrigger: C,
16043
16043
  isMountedByThisTrigger: S
@@ -16378,7 +16378,7 @@ process.env.NODE_ENV !== "production" && (Sm.displayName = "ScrollAreaRootContex
16378
16378
  function cu() {
16379
16379
  const e = b.useContext(Sm);
16380
16380
  if (e === void 0)
16381
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>." : Qe(53));
16381
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>." : Ze(53));
16382
16382
  return e;
16383
16383
  }
16384
16384
  const GO = 500, Cf = 16;
@@ -16486,7 +16486,7 @@ const WO = {
16486
16486
  const ae = J.current === "vertical", ve = ae ? j.current : K.current, Re = ae ? H.current : L.current;
16487
16487
  if (!ve || !Re)
16488
16488
  return;
16489
- const Le = ae ? "y" : "x", Te = ro(Re, "padding", Le), Ne = ro(ve, "margin", Le), ke = ae ? ve.offsetHeight : ve.offsetWidth, ze = (ae ? Re.offsetHeight : Re.offsetWidth) - ke - Te - Ne, _e = ae ? he.clientY - G.current : he.clientX - Y.current, Se = ze <= 0 ? 0 : _e / ze, Oe = ae ? ie.scrollHeight : ie.scrollWidth, Ge = ae ? ie.clientHeight : ie.clientWidth, je = (ae ? q.current : ee.current) + Se * (Oe - Ge);
16489
+ const ze = ae ? "y" : "x", Te = ro(Re, "padding", ze), Ne = ro(ve, "margin", ze), ke = ae ? ve.offsetHeight : ve.offsetWidth, Be = (ae ? Re.offsetHeight : Re.offsetWidth) - ke - Te - Ne, _e = ae ? he.clientY - G.current : he.clientX - Y.current, Se = Be <= 0 ? 0 : _e / Be, Oe = ae ? ie.scrollHeight : ie.scrollWidth, Ge = ae ? ie.clientHeight : ie.clientWidth, je = (ae ? q.current : ee.current) + Se * (Oe - Ge);
16490
16490
  ae ? ie.scrollTop = je : ie.scrollLeft = je, he.preventDefault(), te(ae);
16491
16491
  });
16492
16492
  function le(he) {
@@ -16586,7 +16586,7 @@ process.env.NODE_ENV !== "production" && (Em.displayName = "ScrollAreaViewportCo
16586
16586
  function XO() {
16587
16587
  const e = b.useContext(Em);
16588
16588
  if (e === void 0)
16589
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>." : Qe(55));
16589
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>." : Ze(55));
16590
16590
  return e;
16591
16591
  }
16592
16592
  function At(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
@@ -16658,12 +16658,12 @@ const r1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
16658
16658
  const Q = ce ? 0 : Sf(ee, le), X = ce ? 0 : le - Q, re = me ? 0 : q, he = ce ? 0 : Y;
16659
16659
  let ie = 0, ae = 0;
16660
16660
  !me && !ce && (ie = H?.offsetWidth || 0, ae = L?.offsetHeight || 0);
16661
- const ve = p.width === 0 && p.height === 0, Re = ve ? ie : 0, Le = ve ? ae : 0, Te = ro(L, "padding", "x"), Ne = ro(H, "padding", "y"), ke = ro(K, "margin", "x"), Ze = ro(j, "margin", "y"), ze = re - Te - ke, _e = he - Ne - Ze, Se = L ? Math.min(L.offsetWidth - Re, ze) : ze, Oe = H ? Math.min(H.offsetHeight - Le, _e) : _e, Ge = Math.max(Cf, Se * pe), tt = Math.max(Cf, Oe * se);
16661
+ const ve = p.width === 0 && p.height === 0, Re = ve ? ie : 0, ze = ve ? ae : 0, Te = ro(L, "padding", "x"), Ne = ro(H, "padding", "y"), ke = ro(K, "margin", "x"), Xe = ro(j, "margin", "y"), Be = re - Te - ke, _e = he - Ne - Xe, Se = L ? Math.min(L.offsetWidth - Re, Be) : Be, Oe = H ? Math.min(H.offsetHeight - ze, _e) : _e, Ge = Math.max(Cf, Se * pe), tt = Math.max(Cf, Oe * se);
16662
16662
  if (g((Ae) => Qa(Ae, {
16663
16663
  width: Ge,
16664
16664
  height: tt
16665
16665
  })), H && j) {
16666
- const Ae = H.offsetHeight - tt - Ne - Ze, gt = Ix(j, "--scroll-area-thumb-height", ee, le, z, tt, Ae);
16666
+ const Ae = H.offsetHeight - tt - Ne - Xe, gt = Ix(j, "--scroll-area-thumb-height", ee, le, z, tt, Ae);
16667
16667
  j.style.transform = `translate3d(0,${gt}px,0)`;
16668
16668
  }
16669
16669
  if (L && K) {
@@ -16779,7 +16779,7 @@ process.env.NODE_ENV !== "production" && (km.displayName = "ScrollAreaScrollbarC
16779
16779
  function JO() {
16780
16780
  const e = b.useContext(km);
16781
16781
  if (e === void 0)
16782
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>." : Qe(54));
16782
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>." : Ze(54));
16783
16783
  return e;
16784
16784
  }
16785
16785
  const Rf = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -17006,7 +17006,7 @@ process.env.NODE_ENV !== "production" && (du.displayName = "CollapsibleRootConte
17006
17006
  function fu() {
17007
17007
  const e = b.useContext(du);
17008
17008
  if (e === void 0)
17009
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : Qe(15));
17009
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : Ze(15));
17010
17010
  return e;
17011
17011
  }
17012
17012
  let Nm = (function(e) {
@@ -17890,7 +17890,7 @@ process.env.NODE_ENV !== "production" && (Om.displayName = "CheckboxRootContext"
17890
17890
  function dA() {
17891
17891
  const e = b.useContext(Om);
17892
17892
  if (e === void 0)
17893
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : Qe(14));
17893
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : Ze(14));
17894
17894
  return e;
17895
17895
  }
17896
17896
  const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -17963,10 +17963,10 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
17963
17963
  !le.current || H === pt || (le.current = !1, H(Se, void 0));
17964
17964
  };
17965
17965
  }, [H, oe]), Wr(se, q, X, void 0, !j && !z, d);
17966
- const ae = b.useRef(null), ve = Q.registerInput, Re = j ? Y : void 0, Le = b.useCallback((Se) => ve(Se, {
17966
+ const ae = b.useRef(null), ve = Q.registerInput, Re = j ? Y : void 0, ze = b.useCallback((Se) => ve(Se, {
17967
17967
  controlRef: se,
17968
17968
  value: Re
17969
- }), [ve, Re]), Te = un(m, ae, h ? void 0 : Le), Ne = ou(i, U, ae, !C, J ?? void 0);
17969
+ }), [ve, Re]), Te = un(m, ae, h ? void 0 : ze), Ne = ou(i, U, ae, !C, J ?? void 0);
17970
17970
  be(() => {
17971
17971
  ae.current && (ae.current.indeterminate = ie, X && M(!0));
17972
17972
  }, [X, ie, M]), Wn(X, () => {
@@ -18024,15 +18024,15 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
18024
18024
  Se.delete(Y);
18025
18025
  };
18026
18026
  }, [K, z, Y]);
18027
- const Ze = b.useMemo(() => ({
18027
+ const Xe = b.useMemo(() => ({
18028
18028
  ...V,
18029
18029
  checked: he,
18030
18030
  disabled: z,
18031
18031
  readOnly: g,
18032
18032
  required: y,
18033
18033
  indeterminate: ie
18034
- }), [V, he, z, g, y, ie]), ze = h1(Ze), _e = ye("span", t, {
18035
- state: Ze,
18034
+ }), [V, he, z, g, y, ie]), Be = h1(Xe), _e = ye("span", t, {
18035
+ state: Xe,
18036
18036
  ref: [xe, se, n],
18037
18037
  props: [{
18038
18038
  id: C ? J ?? void 0 : q,
@@ -18070,10 +18070,10 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
18070
18070
  Oe && zo(Oe, Se);
18071
18071
  }
18072
18072
  }, E, me, fe, L, (Se) => Q.getValidationProps(z, Se)],
18073
- stateAttributesMapping: ze
18073
+ stateAttributesMapping: Be
18074
18074
  });
18075
18075
  return /* @__PURE__ */ T(Om.Provider, {
18076
- value: Ze,
18076
+ value: Xe,
18077
18077
  children: [_e, !X && !j && G && !h && w !== void 0 && /* @__PURE__ */ f("input", {
18078
18078
  type: "hidden",
18079
18079
  form: l,
@@ -18126,7 +18126,7 @@ process.env.NODE_ENV !== "production" && (Am.displayName = "SwitchRootContext");
18126
18126
  function pA() {
18127
18127
  const e = b.useContext(Am);
18128
18128
  if (e === void 0)
18129
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : Qe(63));
18129
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : Ze(63));
18130
18130
  return e;
18131
18131
  }
18132
18132
  const y1 = {
@@ -18428,7 +18428,7 @@ process.env.NODE_ENV !== "production" && (Fm.displayName = "RadioRootContext");
18428
18428
  function gA() {
18429
18429
  const e = b.useContext(Fm);
18430
18430
  if (e === void 0)
18431
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : Qe(52));
18431
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : Ze(52));
18432
18432
  return e;
18433
18433
  }
18434
18434
  const S1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -19301,7 +19301,7 @@ process.env.NODE_ENV !== "production" && (Lm.displayName = "ToastContext");
19301
19301
  function mu() {
19302
19302
  const e = b.useContext(Lm);
19303
19303
  if (!e)
19304
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: useToastManager must be used within <Toast.Provider>." : Qe(73));
19304
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: useToastManager must be used within <Toast.Provider>." : Ze(73));
19305
19305
  return e;
19306
19306
  }
19307
19307
  let Ox = 0;
@@ -19736,7 +19736,7 @@ process.env.NODE_ENV !== "production" && (zm.displayName = "ToastRootContext");
19736
19736
  function Bm() {
19737
19737
  const e = b.useContext(zm);
19738
19738
  if (!e)
19739
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>." : Qe(66));
19739
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>." : Ze(66));
19740
19740
  return e;
19741
19741
  }
19742
19742
  function AA(e, t = !1) {
@@ -19927,7 +19927,7 @@ const _A = {
19927
19927
  x: re,
19928
19928
  y: O.current.y
19929
19929
  });
19930
- const ae = re - _.current.x, ve = X - _.current.y, Re = X - O.current.y, Le = re - O.current.x;
19930
+ const ae = re - _.current.x, ve = X - _.current.y, Re = X - O.current.y, ze = re - O.current.x;
19931
19931
  let Te = M;
19932
19932
  if (!y && Math.sqrt(ae * ae + ve * ve) >= FA) {
19933
19933
  w(!0);
@@ -19941,15 +19941,15 @@ const _A = {
19941
19941
  if (!$.current)
19942
19942
  Te === "vertical" ? ve > 0 ? Ne = "down" : ve < 0 && (Ne = "up") : Te === "horizontal" ? ae > 0 ? Ne = "right" : ae < 0 && (Ne = "left") : Math.abs(ae) >= Math.abs(ve) ? Ne = ae > 0 ? "right" : "left" : Ne = ve > 0 ? "down" : "up", Ne && u.includes(Ne) && ($.current = Ne, A.current = Cd(Ne, ae, ve), h(Ne));
19943
19943
  else {
19944
- const Oe = $.current, Ge = Cd(Oe, Le, Re);
19944
+ const Oe = $.current, Ge = Cd(Oe, ze, Re);
19945
19945
  Ge > Ax ? (U.current = !1, h(Oe)) : !(u.includes("left") && u.includes("right")) && !(u.includes("up") && u.includes("down")) && A.current - Ge >= VA && (U.current = !0);
19946
19946
  }
19947
19947
  const ke = Z(ae, ve);
19948
- let Ze = D.current.x, ze = D.current.y;
19948
+ let Xe = D.current.x, Be = D.current.y;
19949
19949
  const _e = u.includes("left") || u.includes("right"), Se = u.includes("up") || u.includes("down");
19950
- Te !== "vertical" && _e && (Ze += ke.x), Te !== "horizontal" && Se && (ze += ke.y), J({
19951
- x: Ze,
19952
- y: ze
19950
+ Te !== "vertical" && _e && (Xe += ke.x), Te !== "horizontal" && Se && (Be += ke.y), J({
19951
+ x: Xe,
19952
+ y: Be
19953
19953
  });
19954
19954
  }
19955
19955
  function me(Q) {
@@ -20350,7 +20350,7 @@ process.env.NODE_ENV !== "production" && (Hm.displayName = "MenuPositionerContex
20350
20350
  function hu(e) {
20351
20351
  const t = b.useContext(Hm);
20352
20352
  if (t === void 0 && !e)
20353
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>." : Qe(33));
20353
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>." : Ze(33));
20354
20354
  return t;
20355
20355
  }
20356
20356
  const Um = /* @__PURE__ */ b.createContext(void 0);
@@ -20358,7 +20358,7 @@ process.env.NODE_ENV !== "production" && (Um.displayName = "MenuRootContext");
20358
20358
  function qr(e) {
20359
20359
  const t = b.useContext(Um);
20360
20360
  if (t === void 0 && !e)
20361
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." : Qe(36));
20361
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." : Ze(36));
20362
20362
  return t;
20363
20363
  }
20364
20364
  const B1 = /* @__PURE__ */ b.createContext(void 0);
@@ -20366,7 +20366,7 @@ process.env.NODE_ENV !== "production" && (B1.displayName = "ContextMenuRootConte
20366
20366
  function Gm(e = !0) {
20367
20367
  const t = b.useContext(B1);
20368
20368
  if (t === void 0 && !e)
20369
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>." : Qe(25));
20369
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>." : Ze(25));
20370
20370
  return t;
20371
20371
  }
20372
20372
  function zA(e) {
@@ -20471,7 +20471,7 @@ process.env.NODE_ENV !== "production" && (gu.displayName = "MenuGroupContext");
20471
20471
  function BA() {
20472
20472
  const e = b.useContext(gu);
20473
20473
  if (e === void 0)
20474
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>." : Qe(31));
20474
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>." : Ze(31));
20475
20475
  return e;
20476
20476
  }
20477
20477
  const G1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -20624,7 +20624,7 @@ process.env.NODE_ENV !== "production" && (Km.displayName = "MenuPortalContext");
20624
20624
  function HA() {
20625
20625
  const e = b.useContext(Km);
20626
20626
  if (e === void 0)
20627
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Portal> is missing." : Qe(32));
20627
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Portal> is missing." : Ze(32));
20628
20628
  return e;
20629
20629
  }
20630
20630
  const qm = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -20789,7 +20789,7 @@ process.env.NODE_ENV !== "production" && (Xm.displayName = "MenuRadioGroupContex
20789
20789
  function UA() {
20790
20790
  const e = b.useContext(Xm);
20791
20791
  if (e === void 0)
20792
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>." : Qe(34));
20792
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>." : Ze(34));
20793
20793
  return e;
20794
20794
  }
20795
20795
  const K1 = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -20839,7 +20839,7 @@ process.env.NODE_ENV !== "production" && (Zm.displayName = "MenuRadioItemContext
20839
20839
  function GA() {
20840
20840
  const e = b.useContext(Zm);
20841
20841
  if (e === void 0)
20842
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>." : Qe(35));
20842
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>." : Ze(35));
20843
20843
  return e;
20844
20844
  }
20845
20845
  const q1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -21131,7 +21131,7 @@ const Jm = Kp(function(t) {
21131
21131
  const Re = ve.reason;
21132
21132
  if (!ae && !E.select("open") || P === ae && ve.trigger === F && $ === Re)
21133
21133
  return;
21134
- const Le = Yp(ve);
21134
+ const ze = Yp(ve);
21135
21135
  if (!ae && ve.trigger == null && (ve.trigger = F ?? void 0), o?.(ae, ve), ve.isCanceled)
21136
21136
  return;
21137
21137
  E.state.floatingRootContext.dispatchOpenChange(ae, ve);
@@ -21141,11 +21141,11 @@ const Jm = Kp(function(t) {
21141
21141
  ae && Re === ws ? (B.current = !1, z.start(300, () => {
21142
21142
  B.current = !0;
21143
21143
  })) : (B.current = !0, z.clear());
21144
- const Ne = (Re === Cr || Re === Lo) && Te.detail === 0, ke = !ae && (Re === Jo || Re == null), Ze = {
21144
+ const Ne = (Re === Cr || Re === Lo) && Te.detail === 0, ke = !ae && (Re === Jo || Re == null), Xe = {
21145
21145
  open: ae,
21146
21146
  openChangeReason: Re
21147
21147
  };
21148
- L.current = ve.event, Bc(Ze, ae, ve.trigger, Le()), E.update(Ze), A.type === "menubar" && (Re === ws || Re === Br || Re === Lt || Re === Os || Re === yi) ? E.set("instantType", "group") : Ne || ke ? E.set("instantType", Ne ? "click" : "dismiss") : E.set("instantType", void 0);
21148
+ L.current = ve.event, Bc(Xe, ae, ve.trigger, ze()), E.update(Xe), A.type === "menubar" && (Re === ws || Re === Br || Re === Lt || Re === Os || Re === yi) ? E.set("instantType", "group") : Ne || ke ? E.set("instantType", Ne ? "click" : "dismiss") : E.set("instantType", void 0);
21149
21149
  }), Z = Qw({
21150
21150
  popupStore: E,
21151
21151
  floatingId: R,
@@ -21334,7 +21334,7 @@ const eC = Yw(function(t, n) {
21334
21334
  ...h
21335
21335
  } = t, g = qr(!0), y = qc(d) ?? g?.store;
21336
21336
  if (!y)
21337
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : Qe(85));
21337
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : Ze(85));
21338
21338
  const w = vt(l), v = y.useState("isTriggerActive", w), C = y.useState("floatingRootContext"), S = y.useState("isOpenedByTrigger", w), E = y.useState("triggerPopupId", w), k = b.useRef(null), R = eD(), I = Qc(!0), N = So(), M = b.useMemo(() => N ?? new zp(), [N]), P = Up(M), F = Co(), {
21339
21339
  registerTrigger: V,
21340
21340
  isMountedByThisTrigger: _
@@ -21485,7 +21485,7 @@ const tD = {
21485
21485
  ...p
21486
21486
  } = t, h = Q1();
21487
21487
  if (!h?.parentMenu)
21488
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>." : Qe(37));
21488
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>." : Ze(37));
21489
21489
  const g = cr({
21490
21490
  guess: !0,
21491
21491
  label: i
@@ -21747,7 +21747,7 @@ process.env.NODE_ENV !== "production" && (rh.displayName = "SliderRootContext");
21747
21747
  function fa() {
21748
21748
  const e = b.useContext(rh);
21749
21749
  if (e === void 0)
21750
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>." : Qe(62));
21750
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>." : Ze(62));
21751
21751
  return e;
21752
21752
  }
21753
21753
  function sD(e, t) {
@@ -21798,12 +21798,12 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
21798
21798
  se(_e), _e !== -1 && le(_e);
21799
21799
  }), ae = de((_e) => {
21800
21800
  _e && (J.current = _e);
21801
- }), ve = Array.isArray(Y), Re = b.useMemo(() => ve ? Y.map((_e) => At(_e, p, d)).sort(oC) : [At(Y, p, d)], [d, p, ve, Y]), Le = ve ? Re : Re[0];
21802
- Wr(H.inputRef, N, Le, void 0, !z, x), Wn(Le, () => {
21803
- V(G), H.change(Le);
21801
+ }), ve = Array.isArray(Y), Re = b.useMemo(() => ve ? Y.map((_e) => At(_e, p, d)).sort(oC) : [At(Y, p, d)], [d, p, ve, Y]), ze = ve ? Re : Re[0];
21802
+ Wr(H.inputRef, N, ze, void 0, !z, x), Wn(ze, () => {
21803
+ V(G), H.change(ze);
21804
21804
  const _e = O.initialValue;
21805
21805
  let Se;
21806
- Array.isArray(Le) && Array.isArray(_e) ? Se = !xu(Le, _e) : Se = Le !== _e, U(Se);
21806
+ Array.isArray(ze) && Array.isArray(_e) ? Se = !xu(ze, _e) : Se = ze !== _e, U(Se);
21807
21807
  });
21808
21808
  const Te = de((_e, Se) => {
21809
21809
  if (Number.isNaN(_e) || sD(_e, Y))
@@ -21842,7 +21842,7 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
21842
21842
  minStepsBetweenValues: h,
21843
21843
  step: C,
21844
21844
  values: Re
21845
- }), [_, pe, z, fe, d, p, h, v, C, Re]), Ze = b.useMemo(() => ({
21845
+ }), [_, pe, z, fe, d, p, h, v, C, Re]), Xe = b.useMemo(() => ({
21846
21846
  active: pe,
21847
21847
  controlRef: J,
21848
21848
  disabled: z,
@@ -21881,7 +21881,7 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
21881
21881
  thumbMap: Q,
21882
21882
  thumbRefs: Z,
21883
21883
  values: Re
21884
- }), [pe, B, M, z, fe, H, l, Ne, re, c, oe, g, u, d, p, h, G, F, v, ae, ie, Te, ke, C, S, E, Q, Re]), ze = ye("div", t, {
21884
+ }), [pe, B, M, z, fe, H, l, Ne, re, c, oe, g, u, d, p, h, G, F, v, ae, ie, Te, ke, C, S, E, Q, Re]), Be = ye("div", t, {
21885
21885
  state: ke,
21886
21886
  ref: [n, ee],
21887
21887
  props: [{
@@ -21892,11 +21892,11 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
21892
21892
  stateAttributesMapping: Xs
21893
21893
  });
21894
21894
  return /* @__PURE__ */ f(rh.Provider, {
21895
- value: Ze,
21895
+ value: Xe,
21896
21896
  children: /* @__PURE__ */ f(Kr, {
21897
21897
  elementsRef: Z,
21898
21898
  onMapChange: X,
21899
- children: ze
21899
+ children: Be
21900
21900
  })
21901
21901
  });
21902
21902
  });
@@ -22133,7 +22133,7 @@ const dC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22133
22133
  bottom: Q,
22134
22134
  left: X,
22135
22135
  right: re
22136
- } = oe.getBoundingClientRect(), he = lD($.current, _), ie = H.current, ae = (_ ? xe : fe) - he.start - he.end - ie * 2, ve = x.current ?? 0, Re = se.x - ve, Le = se.y - ve, Te = _ ? Q - Le - he.end : (F === "rtl" ? re - Re : Re - X) - he.start, Ne = At((Te - ie) / ae, 0, 1);
22136
+ } = oe.getBoundingClientRect(), he = lD($.current, _), ie = H.current, ae = (_ ? xe : fe) - he.start - he.end - ie * 2, ve = x.current ?? 0, Re = se.x - ve, ze = se.y - ve, Te = _ ? Q - ze - he.end : (F === "rtl" ? re - Re : Re - X) - he.start, Ne = At((Te - ie) / ae, 0, 1);
22137
22137
  let ke = (m - d) * Ne + d;
22138
22138
  return ke = uC(ke, I, d), ke = At(ke, d, m), V ? iD(N, P, j.current, w.current, le, ke, d, m, I, p) : {
22139
22139
  value: ke,
@@ -22405,21 +22405,21 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22405
22405
  inputId: ae
22406
22406
  }), [ae]), {
22407
22407
  ref: Re,
22408
- index: Le
22408
+ index: ze
22409
22409
  } = cr({
22410
22410
  metadata: ve
22411
- }), Te = ce ? h ?? Le : 0, Ne = Te === Z.length - 1, ke = Z[Te], Ze = Fi(ke, U, A), [ze, _e] = b.useState(), Se = sh(), Oe = R >= 0 && R < Z.length ? R : -1, Ge = de(() => {
22411
+ }), Te = ce ? h ?? ze : 0, Ne = Te === Z.length - 1, ke = Z[Te], Xe = Fi(ke, U, A), [Be, _e] = b.useState(), Se = sh(), Oe = R >= 0 && R < Z.length ? R : -1, Ge = de(() => {
22412
22412
  const Pe = I.current, St = fe.current;
22413
22413
  if (!Pe || !St)
22414
22414
  return;
22415
- const Rt = St.getBoundingClientRect(), Ke = Pe.getBoundingClientRect(), bt = me ? "height" : "width", $t = Ke[bt] - Rt[bt], mn = (Rt[bt] / 2 + $t * Ze / 100) / Ke[bt] * 100, Gt = Number.isFinite(mn) ? mn : void 0;
22415
+ const Rt = St.getBoundingClientRect(), We = Pe.getBoundingClientRect(), bt = me ? "height" : "width", $t = We[bt] - Rt[bt], mn = (Rt[bt] / 2 + $t * Xe / 100) / We[bt] * 100, Gt = Number.isFinite(mn) ? mn : void 0;
22416
22416
  _e(Gt), Te === 0 ? Y((tn) => [Gt, tn[1]]) : Ne && Y((tn) => [tn[0], Gt]);
22417
22417
  });
22418
22418
  be(() => {
22419
22419
  V && queueMicrotask(Ge);
22420
22420
  }, [Ge, V]), be(() => {
22421
22421
  V && Ge();
22422
- }, [Ge, V, Ze]), be(() => {
22422
+ }, [Ge, V, Xe]), be(() => {
22423
22423
  if (!V)
22424
22424
  return;
22425
22425
  const Pe = I.current, St = fe.current;
@@ -22428,24 +22428,24 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22428
22428
  const Rt = ft(Pe).ResizeObserver;
22429
22429
  if (typeof Rt != "function")
22430
22430
  return;
22431
- const Ke = new Rt(Ge);
22432
- return Ke.observe(Pe), Ke.observe(St), () => {
22433
- Ke.disconnect();
22431
+ const We = new Rt(Ge);
22432
+ return We.observe(Pe), We.observe(St), () => {
22433
+ We.disconnect();
22434
22434
  };
22435
22435
  }, [I, Ge, V]);
22436
22436
  const tt = me ? "bottom" : "insetInlineStart", je = me ? "left" : "top";
22437
22437
  let et;
22438
22438
  ce ? k === Te ? et = 2 : Oe === Te && (et = 1) : k === Te && (et = 1);
22439
22439
  let Ae;
22440
- !V && !Number.isFinite(Ze) ? Ae = Vn : Ae = {
22440
+ !V && !Number.isFinite(Xe) ? Ae = Vn : Ae = {
22441
22441
  position: "absolute",
22442
- [tt]: V ? "var(--position)" : `${Ze}%`,
22442
+ [tt]: V ? "var(--position)" : `${Xe}%`,
22443
22443
  [je]: "50%",
22444
22444
  translate: `${(me || !pe ? -1 : 1) * 50}% ${(me ? 1 : -1) * 50}%`,
22445
22445
  zIndex: et,
22446
22446
  ...V && {
22447
- "--position": `${ze ?? 0}%`,
22448
- visibility: z && Se || ze === void 0 ? "hidden" : void 0
22447
+ "--position": `${Be ?? 0}%`,
22448
+ visibility: z && Se || Be === void 0 ? "hidden" : void 0
22449
22449
  }
22450
22450
  };
22451
22451
  let gt;
@@ -22481,7 +22481,7 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22481
22481
  if (Pe.defaultPrevented || !pD.has(Pe.key))
22482
22482
  return;
22483
22483
  ss.has(Pe.key) && Pe.stopPropagation();
22484
- let St = null, Rt = 0, Ke = Pe.shiftKey ? D : ee;
22484
+ let St = null, Rt = 0, We = Pe.shiftKey ? D : ee;
22485
22485
  const bt = uC(ke, ee, U);
22486
22486
  switch (Pe.key) {
22487
22487
  case jl:
@@ -22497,10 +22497,10 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22497
22497
  Rt = pe ? 1 : -1;
22498
22498
  break;
22499
22499
  case h0:
22500
- Ke = D, Rt = 1;
22500
+ We = D, Rt = 1;
22501
22501
  break;
22502
22502
  case g0:
22503
- Ke = D, Rt = -1;
22503
+ We = D, Rt = -1;
22504
22504
  break;
22505
22505
  case Xl:
22506
22506
  St = ce && Number.isFinite(Z[Te + 1]) ? Z[Te + 1] - ee * O : A;
@@ -22509,7 +22509,7 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
22509
22509
  St = ce && Number.isFinite(Z[Te - 1]) ? Z[Te - 1] + ee * O : U;
22510
22510
  break;
22511
22511
  }
22512
- if (Rt !== 0 && (St = hD(bt, Ke, Rt, U, A)), St !== null) {
22512
+ if (Rt !== 0 && (St = hD(bt, We, Rt, U, A)), St !== null) {
22513
22513
  const $t = Pe.currentTarget;
22514
22514
  Ti($t) || (Q.current = !0, $t.blur(), $t.focus({
22515
22515
  preventScroll: !0,
@@ -22676,7 +22676,7 @@ function bC({
22676
22676
  }) {
22677
22677
  const w = bD({ size: p, tone: h, disabled: g }), [v, C] = Ee(
22678
22678
  e ?? t ?? o
22679
- ), S = e ?? v, E = Array.isArray(S) ? S : [S], k = We(() => {
22679
+ ), S = e ?? v, E = Array.isArray(S) ? S : [S], k = Ke(() => {
22680
22680
  if (Array.isArray(m)) return m;
22681
22681
  if (!m) return [];
22682
22682
  const I = Math.floor((s - o) / i);
@@ -22795,7 +22795,7 @@ function yu({
22795
22795
  const a = window.localStorage.getItem(t);
22796
22796
  return n.includes(a ?? "") ? a : r();
22797
22797
  });
22798
- Xe(() => {
22798
+ Qe(() => {
22799
22799
  yD(e, o), window.localStorage.setItem(t, o);
22800
22800
  }, [e, t, o]);
22801
22801
  const i = De(() => {
@@ -23002,8 +23002,8 @@ function s6({
23002
23002
  children: c,
23003
23003
  className: u
23004
23004
  }) {
23005
- const m = s === "main" ? "main" : "div", d = a === "content", [p, h] = Ee(!1), g = Ue(null);
23006
- Xe(() => {
23005
+ const m = s === "main" ? "main" : "div", d = a === "content", [p, h] = Ee(!1), g = Ve(null);
23006
+ Qe(() => {
23007
23007
  l !== void 0 && g.current?.scrollTo({ top: 0, behavior: "instant" });
23008
23008
  }, [l]);
23009
23009
  const [x, y] = Ee(!1), w = /* @__PURE__ */ f(
@@ -23234,7 +23234,7 @@ process.env.NODE_ENV !== "production" && (ih.displayName = "ProgressRootContext"
23234
23234
  function ah() {
23235
23235
  const e = b.useContext(ih);
23236
23236
  if (e === void 0)
23237
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>." : Qe(51));
23237
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>." : Ze(51));
23238
23238
  return e;
23239
23239
  }
23240
23240
  const vu = {
@@ -23366,7 +23366,7 @@ process.env.NODE_ENV !== "production" && (lh.displayName = "MeterRootContext");
23366
23366
  function CC() {
23367
23367
  const e = b.useContext(lh);
23368
23368
  if (e === void 0)
23369
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>." : Qe(38));
23369
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>." : Ze(38));
23370
23370
  return e;
23371
23371
  }
23372
23372
  const SC = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -23703,7 +23703,7 @@ function a6({
23703
23703
  hint: l,
23704
23704
  className: c
23705
23705
  }) {
23706
- const u = Ut(), m = Ue(0), [d, p] = Ee(!1), [h, g] = Ee([]);
23706
+ const u = Ut(), m = Ve(0), [d, p] = Ee(!1), [h, g] = Ee([]);
23707
23707
  function x(y) {
23708
23708
  if (!y) return;
23709
23709
  const w = Array.from(y), v = s ? w.filter((S) => S.size > s) : [], C = s ? w.filter((S) => S.size <= s) : w;
@@ -23831,7 +23831,7 @@ function l6({
23831
23831
  }) {
23832
23832
  const u = e ?? null, m = n ? u ?? { from: null, to: null } : null, d = n ? null : u, [p, h] = Ee(
23833
23833
  () => rl(d ?? m?.from ?? /* @__PURE__ */ new Date())
23834
- ), [g, x] = Ee(null), y = We(() => LD(p), [p]), w = rl(/* @__PURE__ */ new Date()), v = m?.to ?? (m?.from && g ? g : null), [C, S] = m?.from && v && v < m.from ? [v, m.from] : [m?.from ?? null, v];
23834
+ ), [g, x] = Ee(null), y = Ke(() => LD(p), [p]), w = rl(/* @__PURE__ */ new Date()), v = m?.to ?? (m?.from && g ? g : null), [C, S] = m?.from && v && v < m.from ? [v, m.from] : [m?.from ?? null, v];
23835
23835
  function E(N) {
23836
23836
  return r && N < rl(r) || o && N > rl(o) ? !0 : s?.(N) ?? !1;
23837
23837
  }
@@ -24104,7 +24104,7 @@ function u6({
24104
24104
  placeholder: r = "Search commands…",
24105
24105
  emptyMessage: o = "No matching commands."
24106
24106
  }) {
24107
- const [s, i] = Ee(""), [a, l] = Ee(0), c = We(() => {
24107
+ const [s, i] = Ee(""), [a, l] = Ee(0), c = Ke(() => {
24108
24108
  const p = e.map((h) => ({
24109
24109
  item: h,
24110
24110
  score: Math.max(
@@ -24114,13 +24114,13 @@ function u6({
24114
24114
  })).filter((h) => h.score >= 0);
24115
24115
  return p.sort((h, g) => g.score - h.score), p.map((h) => h.item);
24116
24116
  }, [e, s]);
24117
- Xe(() => {
24117
+ Qe(() => {
24118
24118
  t && (i(""), l(0));
24119
- }, [t]), Xe(() => l(0), [s]);
24119
+ }, [t]), Qe(() => l(0), [s]);
24120
24120
  function u(p) {
24121
24121
  p.key === "ArrowDown" ? (p.preventDefault(), l((h) => (h + 1) % Math.max(c.length, 1))) : p.key === "ArrowUp" ? (p.preventDefault(), l((h) => (h - 1 + c.length) % Math.max(c.length, 1))) : p.key === "Enter" && c[a] && (p.preventDefault(), c[a].onSelect(), n(!1));
24122
24122
  }
24123
- const m = We(() => {
24123
+ const m = Ke(() => {
24124
24124
  const p = /* @__PURE__ */ new Map();
24125
24125
  for (const h of c) {
24126
24126
  const g = h.group ?? "";
@@ -24241,7 +24241,7 @@ function u6({
24241
24241
  }
24242
24242
  function d6(e = "k") {
24243
24243
  const [t, n] = Ee(!1);
24244
- return Xe(() => {
24244
+ return Qe(() => {
24245
24245
  function r(o) {
24246
24246
  o.key.toLowerCase() === e && (o.metaKey || o.ctrlKey) && (o.preventDefault(), n((s) => !s));
24247
24247
  }
@@ -24253,7 +24253,7 @@ process.env.NODE_ENV !== "production" && (ch.displayName = "NumberFieldRootConte
24253
24253
  function ha() {
24254
24254
  const e = b.useContext(ch);
24255
24255
  if (e === void 0)
24256
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>." : Qe(43));
24256
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>." : Ze(43));
24257
24257
  return e;
24258
24258
  }
24259
24259
  const Zs = {
@@ -24420,14 +24420,14 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24420
24420
  const me = Zw(), pe = Nt(S), se = b.useRef(!1), oe = de((Ne, ke) => {
24421
24421
  se.current = !1, y?.(Ne, ke);
24422
24422
  }), le = b.useRef(!0), fe = b.useRef(null), [xe, Q] = b.useState(() => ir(te, E, S)), [X, re] = b.useState("numeric"), he = de(() => {
24423
- const Ne = OC(E, S), ke = new Set(t_), Ze = (Oe) => Oe.forEach((Ge) => ke.add(Ge)), ze = Ne.find((Oe) => Oe.type === "decimal")?.value ?? uh(E, S).decimal;
24424
- ke.add(ze), Ne.forEach((Oe) => {
24425
- Oe.type === "integer" || Oe.type === "fraction" || Oe.type === "exponentInteger" || Oe.type === "compact" || (Ze(Array.from(Oe.value)), n_.test(Oe.value) && ke.add(" "));
24423
+ const Ne = OC(E, S), ke = new Set(t_), Xe = (Oe) => Oe.forEach((Ge) => ke.add(Ge)), Be = Ne.find((Oe) => Oe.type === "decimal")?.value ?? uh(E, S).decimal;
24424
+ ke.add(Be), Ne.forEach((Oe) => {
24425
+ Oe.type === "integer" || Oe.type === "fraction" || Oe.type === "exponentInteger" || Oe.type === "compact" || (Xe(Array.from(Oe.value)), n_.test(Oe.value) && ke.add(" "));
24426
24426
  });
24427
24427
  const _e = Y === "percent" || Y === "unit" && S?.unit === "percent", Se = Y === "percent" || Y === "unit" && S?.unit === "permille";
24428
- return _e && Ze(GD), Se && Ze(jD), Ze(s_), (B < 0 || C) && Ze(i_), ke;
24428
+ return _e && Xe(GD), Se && Xe(jD), Xe(s_), (B < 0 || C) && Xe(i_), ke;
24429
24429
  }), ie = de((Ne) => Ne?.altKey ? i : Ne?.shiftKey ? l : L), ae = de((Ne, ke) => {
24430
- const Ze = ke.event, ze = ke.direction, _e = ke.reason.startsWith("input-") || ke.reason === Et, Se = !C || !_e, Oe = d_(Ne, ze ? ie(Ze) * ze : void 0, B, z, G, pe.current, v, Ze?.altKey ?? !1, Se), Ge = Oe !== te || _e && (Ne !== te || le.current === !1);
24430
+ const Xe = ke.event, Be = ke.direction, _e = ke.reason.startsWith("input-") || ke.reason === Et, Se = !C || !_e, Oe = d_(Ne, Be ? ie(Xe) * Be : void 0, B, z, G, pe.current, v, Xe?.altKey ?? !1, Se), Ge = Oe !== te || _e && (Ne !== te || le.current === !1);
24431
24431
  if (Ge) {
24432
24432
  if (x?.(Oe, ke), ke.isCanceled)
24433
24433
  return !1;
@@ -24436,11 +24436,11 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24436
24436
  return fe.current = Oe, le.current && Q(ir(Oe, E, S)), me(), Ge;
24437
24437
  }), ve = de((Ne, {
24438
24438
  direction: ke,
24439
- currentValue: Ze,
24440
- event: ze,
24439
+ currentValue: Xe,
24440
+ event: Be,
24441
24441
  reason: _e
24442
24442
  }) => {
24443
- const Se = Ze ?? ce.current, Oe = ze;
24443
+ const Se = Xe ?? ce.current, Oe = Be;
24444
24444
  return typeof Se != "number" ? ae(0, we(_e, Oe)) : ae(Se + Ne * ke, we(_e, Oe, void 0, {
24445
24445
  direction: ke
24446
24446
  }));
@@ -24459,21 +24459,21 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24459
24459
  const ke = q.current;
24460
24460
  if (O || m || !w || !ke)
24461
24461
  return;
24462
- function Ze(ze) {
24462
+ function Xe(Be) {
24463
24463
  if (
24464
24464
  // Allow pinch-zooming.
24465
- ze.ctrlKey || Ot(Ye(q.current)) !== q.current
24465
+ Be.ctrlKey || Ot(Ye(q.current)) !== q.current
24466
24466
  )
24467
24467
  return;
24468
- ze.preventDefault(), le.current = !0;
24469
- const _e = ie(ze);
24468
+ Be.preventDefault(), le.current = !0;
24469
+ const _e = ie(Be);
24470
24470
  ve(_e, {
24471
- direction: ze.deltaY > 0 ? -1 : 1,
24472
- event: ze,
24471
+ direction: Be.deltaY > 0 ? -1 : 1,
24472
+ event: Be,
24473
24473
  reason: Eb
24474
- }) && oe(fe.current, In(Eb, ze));
24474
+ }) && oe(fe.current, In(Eb, Be));
24475
24475
  }
24476
- return Je(ke, "wheel", Ze);
24476
+ return Je(ke, "wheel", Xe);
24477
24477
  }, [w, ve, O, m, ie, oe, fe, ce]);
24478
24478
  const Re = b.useMemo(() => ({
24479
24479
  ...$,
@@ -24483,7 +24483,7 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24483
24483
  value: te,
24484
24484
  inputValue: xe,
24485
24485
  scrubbing: j
24486
- }), [$, O, m, c, te, xe, j]), Le = b.useMemo(() => ({
24486
+ }), [$, O, m, c, te, xe, j]), ze = b.useMemo(() => ({
24487
24487
  inputRef: q,
24488
24488
  minWithDefault: B,
24489
24489
  maxWithDefault: z,
@@ -24514,7 +24514,7 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24514
24514
  stateAttributesMapping: Zs
24515
24515
  });
24516
24516
  return /* @__PURE__ */ T(ch.Provider, {
24517
- value: Le,
24517
+ value: ze,
24518
24518
  children: [Te, /* @__PURE__ */ f("input", {
24519
24519
  ...A.getValidationProps(O, {
24520
24520
  onFocus() {
@@ -24523,8 +24523,8 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
24523
24523
  onChange(Ne) {
24524
24524
  if (Ne.nativeEvent.defaultPrevented || O || m)
24525
24525
  return;
24526
- const ke = Ne.currentTarget.valueAsNumber, Ze = Number.isNaN(ke) ? null : ke, ze = we(Et, Ne.nativeEvent);
24527
- ae(Ze, ze), U(H), A.change(fe.current ?? Ze);
24526
+ const ke = Ne.currentTarget.valueAsNumber, Xe = Number.isNaN(ke) ? null : ke, Be = we(Et, Ne.nativeEvent);
24527
+ ae(Xe, Be), U(H), A.change(fe.current ?? Xe);
24528
24528
  }
24529
24529
  }),
24530
24530
  ref: ee,
@@ -24938,14 +24938,14 @@ const v_ = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
24938
24938
  percentSign: me
24939
24939
  } = uh(S, l.current), pe = q.currentTarget.selectionStart, se = q.currentTarget.selectionEnd, oe = pe === 0 && se === _.length, le = (ve) => pe != null && se != null && ve >= pe && ve < se;
24940
24940
  [[Rd, TC], [Kx, PC]].forEach(([ve, Re]) => {
24941
- if (ve.test(q.key) && Array.from(Z).some((Le) => ve.test(Le))) {
24942
- const Le = _.search(Re), Te = Le !== -1 && le(Le);
24941
+ if (ve.test(q.key) && Array.from(Z).some((ze) => ve.test(ze))) {
24942
+ const ze = _.search(Re), Te = ze !== -1 && le(ze);
24943
24943
  ne = !(Rd.test(_) || Kx.test(_)) || oe || Te;
24944
24944
  }
24945
24945
  }), [te, ce, me].forEach((ve) => {
24946
24946
  if (q.key === ve) {
24947
- const Re = _.indexOf(ve), Le = le(Re);
24948
- ne = Re === -1 || oe || Le;
24947
+ const Re = _.indexOf(ve), ze = le(Re);
24948
+ ne = Re === -1 || oe || ze;
24949
24949
  }
24950
24950
  });
24951
24951
  const xe = v_.has(q.key), Q = q.key === "ArrowUp" || q.key === "ArrowDown";
@@ -24997,7 +24997,7 @@ process.env.NODE_ENV !== "production" && (ph.displayName = "NumberFieldScrubArea
24997
24997
  function w_() {
24998
24998
  const e = b.useContext(ph);
24999
24999
  if (e === void 0)
25000
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldScrubAreaContext is missing. NumberFieldScrubArea parts must be placed within <NumberField.ScrubArea>." : Qe(44));
25000
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldScrubAreaContext is missing. NumberFieldScrubArea parts must be placed within <NumberField.ScrubArea>." : Ze(44));
25001
25001
  return e;
25002
25002
  }
25003
25003
  function C_(e, t) {
@@ -25276,7 +25276,7 @@ process.env.NODE_ENV !== "production" && (mh.displayName = "OTPFieldRootContext"
25276
25276
  function k_() {
25277
25277
  const e = b.useContext(mh);
25278
25278
  if (e === void 0)
25279
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: OTPFieldRootContext is missing. OTPField parts must be placed within <OTPField.Root>." : Qe(98));
25279
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: OTPFieldRootContext is missing. OTPField parts must be placed within <OTPField.Root>." : Ze(98));
25280
25280
  return e;
25281
25281
  }
25282
25282
  function N_(e, t, n) {
@@ -25398,7 +25398,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25398
25398
  }
25399
25399
  }), []), te = Nr({
25400
25400
  id: s
25401
- }), ce = ou(o, K, ne, !0, te), me = o == null ? ce : void 0, pe = j({}), se = O_(r, pe["aria-describedby"]), oe = HC(x), le = oe?.slotPattern, fe = oe?.getRootPattern(d), xe = g ?? oe?.inputMode, Q = Number.isInteger(d) && d > 0, X = ec(G, d, x, y), re = Nt(X), he = X !== "", [ie, ae] = b.useState(0), [ve, Re] = b.useState(() => Math.min(X.length, d - 1)), [Le, Te] = b.useState(!1), Ne = Le ? Math.min(ve, Math.max(d - 1, 0)) : Math.min(X.length, d - 1);
25401
+ }), ce = ou(o, K, ne, !0, te), me = o == null ? ce : void 0, pe = j({}), se = O_(r, pe["aria-describedby"]), oe = HC(x), le = oe?.slotPattern, fe = oe?.getRootPattern(d), xe = g ?? oe?.inputMode, Q = Number.isInteger(d) && d > 0, X = ec(G, d, x, y), re = Nt(X), he = X !== "", [ie, ae] = b.useState(0), [ve, Re] = b.useState(() => Math.min(X.length, d - 1)), [ze, Te] = b.useState(!1), Ne = ze ? Math.min(ve, Math.max(d - 1, 0)) : Math.min(X.length, d - 1);
25402
25402
  be(() => {
25403
25403
  V(he);
25404
25404
  }, [he, V]), process.env.NODE_ENV !== "production" && A_({
@@ -25408,13 +25408,13 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25408
25408
  const ke = de((qe) => {
25409
25409
  const it = Math.min(Math.max(qe, 0), Math.max(ee.current.length - 1, 0)), lt = ee.current[it];
25410
25410
  lt?.focus(), lt?.select();
25411
- }), Ze = de((qe, it) => {
25411
+ }), Xe = de((qe, it) => {
25412
25412
  J.current = {
25413
25413
  index: qe,
25414
25414
  value: it
25415
25415
  };
25416
25416
  });
25417
- function ze() {
25417
+ function Be() {
25418
25418
  let qe = A.inputRef.current?.form ?? ee.current[0]?.form ?? null;
25419
25419
  if (m) {
25420
25420
  const it = Ye(q.current).getElementById(m);
@@ -25423,7 +25423,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25423
25423
  qe && typeof qe.requestSubmit == "function" && qe.requestSubmit();
25424
25424
  }
25425
25425
  function _e(qe, it) {
25426
- u?.(qe, it), p && ze();
25426
+ u?.(qe, it), p && Be();
25427
25427
  }
25428
25428
  Wn(X, () => {
25429
25429
  L(z), M(X !== P.initialValue), A.change(X);
@@ -25456,18 +25456,18 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25456
25456
  complete: X.length === d,
25457
25457
  disabled: B,
25458
25458
  filled: he,
25459
- focused: Le,
25459
+ focused: ze,
25460
25460
  length: d,
25461
25461
  readOnly: v,
25462
25462
  required: C,
25463
25463
  value: X
25464
- }), [B, $, he, Le, d, v, C, X]), Ae = b.useMemo(() => ({
25464
+ }), [B, $, he, ze, d, v, C, X]), Ae = b.useMemo(() => ({
25465
25465
  autoComplete: i,
25466
25466
  activeIndex: Ne,
25467
25467
  disabled: B,
25468
25468
  form: m,
25469
25469
  focusInput: ke,
25470
- queueFocusInput: Ze,
25470
+ queueFocusInput: Xe,
25471
25471
  getInputId: je,
25472
25472
  handleInputBlur: tt,
25473
25473
  handleInputFocus: Ge,
@@ -25485,7 +25485,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25485
25485
  state: et,
25486
25486
  validationType: x,
25487
25487
  value: X
25488
- }), [Ne, i, B, ke, m, je, tt, Ge, xe, me, _, d, h, le, Ze, v, Oe, C, y, Se, et, x, X]), gt = ye("div", t, {
25488
+ }), [Ne, i, B, ke, m, je, tt, Ge, xe, me, _, d, h, le, Xe, v, Oe, C, y, Se, et, x, X]), gt = ye("div", t, {
25489
25489
  ref: [n, q],
25490
25490
  state: et,
25491
25491
  props: [{
@@ -25513,7 +25513,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
25513
25513
  const it = qe.currentTarget.value, [lt, Ft] = Jl(it, d, x, y);
25514
25514
  Ft && Oe(it, In(Yn, qe.nativeEvent));
25515
25515
  const Pe = Se(lt, we(Yn, qe.nativeEvent));
25516
- Pe != null && Pe !== "" && Ze(Pe.length - 1, Pe);
25516
+ Pe != null && Pe !== "" && Xe(Pe.length - 1, Pe);
25517
25517
  }
25518
25518
  }),
25519
25519
  ref: A.inputRef,
@@ -25794,19 +25794,19 @@ process.env.NODE_ENV !== "production" && (yh.displayName = "ComboboxInputValueCo
25794
25794
  function gn() {
25795
25795
  const e = b.useContext(hh);
25796
25796
  if (!e)
25797
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." : Qe(22));
25797
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(22));
25798
25798
  return e;
25799
25799
  }
25800
25800
  function wu() {
25801
25801
  const e = b.useContext(gh);
25802
25802
  if (!e)
25803
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." : Qe(23));
25803
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(23));
25804
25804
  return e;
25805
25805
  }
25806
25806
  function ga() {
25807
25807
  const e = b.useContext(bh);
25808
25808
  if (!e)
25809
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." : Qe(24));
25809
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(24));
25810
25810
  return e;
25811
25811
  }
25812
25812
  function vh() {
@@ -26052,7 +26052,7 @@ function z_(e) {
26052
26052
  id: t
26053
26053
  }), ce = L_({
26054
26054
  locale: H
26055
- }), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), xe = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ve = b.useRef(null), Re = b.useRef(null), Le = b.useRef(null), Te = b.useRef(Nd), Ne = b.useRef(null), ke = b.useRef([]), Ze = b.useRef(null), ze = Y || h, _e = G ?? d, Se = u === "multiple", Oe = u === "single", Ge = a !== void 0 || i !== void 0, tt = v !== void 0, je = C !== void 0;
26055
+ }), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), xe = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ve = b.useRef(null), Re = b.useRef(null), ze = b.useRef(null), Te = b.useRef(Nd), Ne = b.useRef(null), ke = b.useRef([]), Xe = b.useRef(null), Be = Y || h, _e = G ?? d, Se = u === "multiple", Oe = u === "single", Ge = a !== void 0 || i !== void 0, tt = v !== void 0, je = C !== void 0;
26056
26056
  let et;
26057
26057
  k === "always" ? et = "always" : et = k ? "input-change" : !1;
26058
26058
  const [Ae, gt] = sn({
@@ -26070,15 +26070,15 @@ function z_(e) {
26070
26070
  default: c,
26071
26071
  name: "Combobox",
26072
26072
  state: "open"
26073
- }), Rt = wh(v), Ke = se ?? String(lt).trim(), bt = Oe ? Hn(Ae, M) : "", $t = Oe && !me && Ke !== "" && bt.length === Ke.length && ce.contains(bt, Ke), Yt = $t ? "" : Ke, mn = tt && je && $t, Gt = b.useMemo(() => v ? Rt ? v.flatMap((Me) => Me.items) : v : xn, [v, Rt]), tn = b.useMemo(() => {
26073
+ }), Rt = wh(v), We = se ?? String(lt).trim(), bt = Oe ? Hn(Ae, M) : "", $t = Oe && !me && We !== "" && bt.length === We.length && ce.contains(bt, We), Yt = $t ? "" : We, mn = tt && je && $t, Gt = b.useMemo(() => v ? Rt ? v.flatMap((Me) => Me.items) : v : xn, [v, Rt]), tn = b.useMemo(() => {
26074
26074
  if (C && !mn)
26075
26075
  return C;
26076
26076
  if (!v)
26077
26077
  return xn;
26078
26078
  if (Rt) {
26079
- const Ve = v, It = [];
26079
+ const Fe = v, It = [];
26080
26080
  let Mt = 0;
26081
- for (const Zt of Ve) {
26081
+ for (const Zt of Fe) {
26082
26082
  if (A > -1 && Mt >= A)
26083
26083
  break;
26084
26084
  const Rn = A > -1 ? A - Mt : 1 / 0, Vt = Yt === "" ? Zt.items.slice(0, Rn) : [];
@@ -26109,13 +26109,13 @@ function z_(e) {
26109
26109
  Gt
26110
26110
  );
26111
26111
  const Me = [];
26112
- for (const Ve of Gt) {
26112
+ for (const Fe of Gt) {
26113
26113
  if (A > -1 && Me.length >= A)
26114
26114
  break;
26115
- qe(Ve, Yt, M) && Me.push(Ve);
26115
+ qe(Fe, Yt, M) && Me.push(Fe);
26116
26116
  }
26117
26117
  return Me;
26118
- }, [C, mn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((Ve) => Ve.items) : tn, [tn, Rt]), nt = Dt(() => {
26118
+ }, [C, mn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((Fe) => Fe.items) : tn, [tn, Rt]), nt = Dt(() => {
26119
26119
  let Me = null;
26120
26120
  return _ && Pe && tt && u !== "none" && (Me = kd(Xt, Ae, F, Se)), new Xw({
26121
26121
  id: te,
@@ -26135,11 +26135,11 @@ function z_(e) {
26135
26135
  chipsContainerRef: ve,
26136
26136
  clearRef: Re,
26137
26137
  valuesRef: ke,
26138
- pointerDownItemRef: Ze,
26139
- selectionEventRef: Le,
26138
+ pointerDownItemRef: Xe,
26139
+ selectionEventRef: ze,
26140
26140
  name: _e,
26141
26141
  form: p,
26142
- disabled: ze,
26142
+ disabled: Be,
26143
26143
  readOnly: g,
26144
26144
  required: x,
26145
26145
  grid: w,
@@ -26192,34 +26192,34 @@ function z_(e) {
26192
26192
  openMethod: Yg,
26193
26193
  triggerProps: Ku
26194
26194
  } = im(Pe), $k = de(() => Pk);
26195
- Wr(ur ? Vk : Q, te, rr, $k, !ze, d);
26195
+ Wr(ur ? Vk : Q, te, rr, $k, !Be, d);
26196
26196
  const Xg = de(() => {
26197
26197
  v ? fe.current = Xt.map((Me) => Hn(Me, M)) : nt.set("forceMounted", !0);
26198
- }), ls = de((Me, Ve, It) => {
26199
- if (Ve === -1) {
26198
+ }), ls = de((Me, Fe, It) => {
26199
+ if (Fe === -1) {
26200
26200
  if (Te.current === Nd)
26201
26201
  return;
26202
26202
  Te.current = Nd;
26203
26203
  } else
26204
26204
  Te.current = {
26205
26205
  value: Me,
26206
- index: Ve
26206
+ index: Fe
26207
26207
  };
26208
26208
  Ok(Me, In(It, void 0, {
26209
- index: Ve
26209
+ index: Fe
26210
26210
  }));
26211
26211
  }), dr = de((Me) => {
26212
26212
  nt.update(Me);
26213
- const Ve = Me.activeIndex;
26214
- if (Ve === void 0)
26213
+ const Fe = Me.activeIndex;
26214
+ if (Fe === void 0)
26215
26215
  return;
26216
26216
  const It = Me.type || Et;
26217
- Ve === null ? ls(void 0, -1, It) : ls(ke.current[Ve], Ve, It);
26218
- }), fr = de((Me, Ve) => {
26219
- if (ae.current = Ve.reason === kn, e.onInputValueChange?.(Me, Ve), !Ve.isCanceled) {
26220
- if (Ve.reason === Yn) {
26217
+ Fe === null ? ls(void 0, -1, It) : ls(ke.current[Fe], Fe, It);
26218
+ }), fr = de((Me, Fe) => {
26219
+ if (ae.current = Fe.reason === kn, e.onInputValueChange?.(Me, Fe), !Fe.isCanceled) {
26220
+ if (Fe.reason === Yn) {
26221
26221
  Pe && se !== null && oe(null);
26222
- const It = Ve.event, Mt = It.inputType;
26222
+ const It = Fe.event, Mt = It.inputType;
26223
26223
  if (It.type === "compositionend" || Mt != null && Mt !== "" && Mt !== "insertReplacementText") {
26224
26224
  const Rn = Me.trim() !== "";
26225
26225
  Rn && pe(!0), Ne.current = {
@@ -26239,38 +26239,38 @@ function z_(e) {
26239
26239
  }
26240
26240
  Rn && et && nt.state.activeIndex == null && (Pe || Sn) && nt.set("activeIndex", 0);
26241
26241
  }
26242
- } else Ve.reason === kn && Me === "" && nt.state.inputInsidePopup && (Ne.current = {
26242
+ } else Fe.reason === kn && Me === "" && nt.state.inputInsidePopup && (Ne.current = {
26243
26243
  hasQuery: !1,
26244
26244
  selection: !0
26245
26245
  });
26246
26246
  Ft(Me);
26247
26247
  }
26248
- }), oi = de((Me, Ve) => {
26249
- if (Pe !== Me && (Ve.reason === Jo && tt && Xt.length === 0 && !he.current && Ve.allowPropagation(), e.onOpenChange?.(Me, Ve), !Ve.isCanceled && (Me && ur && !Sn && se !== null && (pe(!1), oe(null), lt !== "" && Ve.reason !== Yn && fr("", we(kn, Ve.event))), !Me && me && (Oe ? (Sn || oe(Ke), Ke === "" && pe(!1)) : Se && (Sn || oe(Ke), ur && dr({
26248
+ }), oi = de((Me, Fe) => {
26249
+ if (Pe !== Me && (Fe.reason === Jo && tt && Xt.length === 0 && !he.current && Fe.allowPropagation(), e.onOpenChange?.(Me, Fe), !Fe.isCanceled && (Me && ur && !Sn && se !== null && (pe(!1), oe(null), lt !== "" && Fe.reason !== Yn && fr("", we(kn, Fe.event))), !Me && me && (Oe ? (Sn || oe(We), We === "" && pe(!1)) : Se && (Sn || oe(We), ur && dr({
26250
26250
  activeIndex: null
26251
- }), (!ur || Sn) && fr("", we(kn, Ve.event)))), St(Me), !Me && ur && (Ve.reason === Br || Ve.reason === Ji) && (q(!0), ee(!1), J === "onBlur")))) {
26251
+ }), (!ur || Sn) && fr("", we(kn, Fe.event)))), St(Me), !Me && ur && (Fe.reason === Br || Fe.reason === Ji) && (q(!0), ee(!1), J === "onBlur")))) {
26252
26252
  const It = u === "none" ? lt : Ae;
26253
26253
  Z.commit(It);
26254
26254
  }
26255
- }), Na = de((Me, Ve) => {
26256
- if (s?.(Me, Ve), Ve.isCanceled)
26255
+ }), Na = de((Me, Fe) => {
26256
+ if (s?.(Me, Fe), Fe.isCanceled)
26257
26257
  return;
26258
- gt(Me), (u === "none" && xe.current && D || Oe && !nt.state.inputInsidePopup) && fr(Hn(Me, M), we(Ve.reason, Ve.event));
26259
- }), Lk = de((Me, Ve) => {
26260
- const It = yt(Me), Mt = Le.current ?? Me;
26261
- Le.current = null;
26258
+ gt(Me), (u === "none" && xe.current && D || Oe && !nt.state.inputInsidePopup) && fr(Hn(Me, M), we(Fe.reason, Fe.event));
26259
+ }), Lk = de((Me, Fe) => {
26260
+ const It = yt(Me), Mt = ze.current ?? Me;
26261
+ ze.current = null;
26262
26262
  const Zt = we(Lo, Mt), Rn = It?.closest("a")?.getAttribute("href");
26263
26263
  if (Rn) {
26264
26264
  Rn.startsWith("#") && oi(!1, Zt);
26265
26265
  return;
26266
26266
  }
26267
26267
  if (Se) {
26268
- const Vt = Array.isArray(Ae) ? Ae : [], or = V_(Vt, Ve, F) ? KC(Vt, Ve, F) : [...Vt, Ve];
26268
+ const Vt = Array.isArray(Ae) ? Ae : [], or = V_(Vt, Fe, F) ? KC(Vt, Fe, F) : [...Vt, Fe];
26269
26269
  if (Na(or, Zt), Zt.isCanceled || !(Q.current ? Q.current.value.trim() !== "" : !1))
26270
26270
  return;
26271
26271
  nt.state.inputInsidePopup ? fr("", we(kn, Zt.event)) : oi(!1, Zt);
26272
26272
  } else {
26273
- if (Na(Ve, Zt), Zt.isCanceled)
26273
+ if (Na(Fe, Zt), Zt.isCanceled)
26274
26274
  return;
26275
26275
  oi(!1, Zt);
26276
26276
  }
@@ -26303,11 +26303,11 @@ function z_(e) {
26303
26303
  }), b.useImperativeHandle(e.actionsRef, () => ({
26304
26304
  unmount: qu
26305
26305
  }), [qu]), be(function() {
26306
- if (Pe || (Ze.current = null, u === "none"))
26306
+ if (Pe || (Xe.current = null, u === "none"))
26307
26307
  return;
26308
- const Ve = tt ? Gt : ke.current;
26308
+ const Fe = tt ? Gt : ke.current;
26309
26309
  dr({
26310
- selectedIndex: kd(Ve, Ae, F, Se)
26310
+ selectedIndex: kd(Fe, Ae, F, Se)
26311
26311
  });
26312
26312
  }, [Pe, Ae, u, Se, tt, Gt, F, dr]), be(() => {
26313
26313
  v && (ke.current = Xt, le.current.length = Xt.length);
@@ -26372,11 +26372,11 @@ function z_(e) {
26372
26372
  });
26373
26373
  }, [tt, et, Xt.length, dr]);
26374
26374
  function Hk(Me) {
26375
- const Ve = B.initialValue;
26376
- return Array.isArray(Me) && Array.isArray(Ve) ? !xu(Me, Ve, (It, Mt) => Jn(It, Mt, F)) : Me !== Ve;
26375
+ const Fe = B.initialValue;
26376
+ return Array.isArray(Me) && Array.isArray(Fe) ? !xu(Me, Fe, (It, Mt) => Jn(It, Mt, F)) : Me !== Fe;
26377
26377
  }
26378
- Wn(Ke, () => {
26379
- !Pe || Ke === "" || Ke === String(it) || pe(!0);
26378
+ Wn(We, () => {
26379
+ !Pe || We === "" || We === String(it) || pe(!0);
26380
26380
  });
26381
26381
  function Zg() {
26382
26382
  const Me = Hn(Ae, M);
@@ -26397,7 +26397,7 @@ function z_(e) {
26397
26397
  floating: Ea
26398
26398
  }
26399
26399
  }), Qg = w ? "grid" : "listbox", Ma = Pe || Sn, Jg = Ma ? "true" : "false", Ta = b.useMemo(() => {
26400
- const Me = ka?.tagName === "INPUT", Ve = ka == null || Me, It = Ve || Ma, Mt = Ve ? {
26400
+ const Me = ka?.tagName === "INPUT", Fe = ka == null || Me, It = Fe || Ma, Mt = Fe ? {
26401
26401
  autoComplete: "off",
26402
26402
  spellCheck: "false",
26403
26403
  autoCorrect: "off",
@@ -26410,7 +26410,7 @@ function z_(e) {
26410
26410
  }
26411
26411
  };
26412
26412
  }, [ka, Ma, Jg, Qg, Kg?.id, U]), eb = es(Ia, {
26413
- enabled: !g && !ze && E,
26413
+ enabled: !g && !Be && E,
26414
26414
  event: "mousedown-only",
26415
26415
  toggle: !1,
26416
26416
  // Apply a small delay for touch to let mobile viewport/keyboard positioning settle.
@@ -26418,7 +26418,7 @@ function z_(e) {
26418
26418
  touchOpenDelay: ur ? 0 : 100,
26419
26419
  reason: yw
26420
26420
  }), Pa = Gs(Ia, {
26421
- enabled: !g && !ze && !Sn,
26421
+ enabled: !g && !Be && !Sn,
26422
26422
  outsidePressEvent: {
26423
26423
  mouse: "sloppy",
26424
26424
  // The visual viewport (affected by the mobile software keyboard) can be
@@ -26429,11 +26429,11 @@ function z_(e) {
26429
26429
  // Without a popup, let the Escape key bubble the event up to other popups' handlers.
26430
26430
  bubbles: Sn ? !0 : void 0,
26431
26431
  outsidePress(Me) {
26432
- const Ve = yt(Me);
26433
- return !Ie(ri, Ve) && !Ie(Re.current, Ve) && !Ie(ve.current, Ve) && !Ie(Dk, Ve);
26432
+ const Fe = yt(Me);
26433
+ return !Ie(ri, Fe) && !Ie(Re.current, Fe) && !Ie(ve.current, Fe) && !Ie(Dk, Fe);
26434
26434
  }
26435
26435
  }), cs = tm(Ia, {
26436
- enabled: !g && !ze,
26436
+ enabled: !g && !Be,
26437
26437
  id: te,
26438
26438
  listRef: le,
26439
26439
  activeIndex: Wg,
@@ -26448,8 +26448,8 @@ function z_(e) {
26448
26448
  rtl: ne === "rtl",
26449
26449
  disabledIndices: xn,
26450
26450
  grid: w ? D_ : void 0,
26451
- onNavigate(Me, Ve) {
26452
- !Ve && !Pe || Wu === "ending" || dr(Ve ? {
26451
+ onNavigate(Me, Fe) {
26452
+ !Fe && !Pe || Wu === "ending" || dr(Fe ? {
26453
26453
  activeIndex: Me,
26454
26454
  type: ie.current ? yr : Ac
26455
26455
  } : {
@@ -26502,7 +26502,7 @@ function z_(e) {
26502
26502
  selectionMode: u,
26503
26503
  name: _e,
26504
26504
  form: p,
26505
- disabled: ze,
26505
+ disabled: Be,
26506
26506
  readOnly: g,
26507
26507
  required: x,
26508
26508
  grid: w,
@@ -26516,24 +26516,24 @@ function z_(e) {
26516
26516
  hasInputValue: Ge,
26517
26517
  inputOwnsFormValue: u === "none" && (_ || !nt.state.inputInsidePopup)
26518
26518
  });
26519
- }, [nt, te, Ae, Pe, qg, Wu, v, Xu, Zu, Yu, Qu, Yg, Ku, u, _e, ze, g, x, w, V, E, M, $, F, L, Ge, _, et, p]);
26519
+ }, [nt, te, Ae, Pe, qg, Wu, v, Xu, Zu, Yu, Qu, Yg, Ku, u, _e, Be, g, x, w, V, E, M, $, F, L, Ge, _, et, p]);
26520
26520
  const Uk = un(y, Z.inputRef), Gk = b.useMemo(() => ({
26521
- query: Ke,
26521
+ query: We,
26522
26522
  hasItems: tt,
26523
26523
  filteredItems: tn,
26524
26524
  flatFilteredItems: Xt
26525
- }), [Ke, tt, tn, Xt]), jk = b.useMemo(() => Array.isArray(rr) ? "" : sr(rr, P), [rr, P]), Wk = Se && Array.isArray(Ae) && Ae.length > 0, Ju = Se || u === "none" && _k ? void 0 : _e, Kk = b.useMemo(() => !Se || !Array.isArray(Ae) || !_e ? null : Ae.map((Me) => {
26526
- const Ve = sr(Me, P);
26525
+ }), [We, tt, tn, Xt]), jk = b.useMemo(() => Array.isArray(rr) ? "" : sr(rr, P), [rr, P]), Wk = Se && Array.isArray(Ae) && Ae.length > 0, Ju = Se || u === "none" && _k ? void 0 : _e, Kk = b.useMemo(() => !Se || !Array.isArray(Ae) || !_e ? null : Ae.map((Me) => {
26526
+ const Fe = sr(Me, P);
26527
26527
  return /* @__PURE__ */ f("input", {
26528
26528
  type: "hidden",
26529
26529
  form: p,
26530
26530
  name: _e,
26531
- value: Ve,
26532
- disabled: ze
26533
- }, Ve);
26534
- }), [Se, Ae, p, _e, P, ze]), qk = /* @__PURE__ */ T(b.Fragment, {
26531
+ value: Fe,
26532
+ disabled: Be
26533
+ }, Fe);
26534
+ }), [Se, Ae, p, _e, P, Be]), qk = /* @__PURE__ */ T(b.Fragment, {
26535
26535
  children: [e.children, /* @__PURE__ */ f("input", {
26536
- ...Z.getValidationProps(ze, {
26536
+ ...Z.getValidationProps(Be, {
26537
26537
  // Move focus when the hidden input is focused.
26538
26538
  onFocus() {
26539
26539
  if (ur) {
@@ -26544,14 +26544,14 @@ function z_(e) {
26544
26544
  },
26545
26545
  // Handle browser autofill.
26546
26546
  onChange(Me) {
26547
- if (Me.nativeEvent.defaultPrevented || ze || g)
26547
+ if (Me.nativeEvent.defaultPrevented || Be || g)
26548
26548
  return;
26549
- const Ve = Me.currentTarget.value, It = Ve.toLowerCase(), Mt = we(Et, Me.nativeEvent), Zt = () => ke.current.findIndex((Vt) => sr(Vt, P).toLowerCase() === It || Hn(Vt, M).toLowerCase() === It);
26549
+ const Fe = Me.currentTarget.value, It = Fe.toLowerCase(), Mt = we(Et, Me.nativeEvent), Zt = () => ke.current.findIndex((Vt) => sr(Vt, P).toLowerCase() === It || Hn(Vt, M).toLowerCase() === It);
26550
26550
  function Rn() {
26551
26551
  if (Se)
26552
26552
  return;
26553
26553
  if (u === "none") {
26554
- fr(Ve, Mt);
26554
+ fr(Fe, Mt);
26555
26555
  return;
26556
26556
  }
26557
26557
  let Vt = Zt();
@@ -26569,7 +26569,7 @@ function z_(e) {
26569
26569
  form: p,
26570
26570
  name: Ju,
26571
26571
  autoComplete: O,
26572
- disabled: ze,
26572
+ disabled: Be,
26573
26573
  required: x && !Wk,
26574
26574
  readOnly: g,
26575
26575
  value: jk,
@@ -26644,7 +26644,7 @@ process.env.NODE_ENV !== "production" && (Rh.displayName = "ComboboxPositionerCo
26644
26644
  function Eh(e) {
26645
26645
  const t = b.useContext(Rh);
26646
26646
  if (t === void 0 && !e)
26647
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component" : Qe(21));
26647
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component" : Ze(21));
26648
26648
  return t;
26649
26649
  }
26650
26650
  const kh = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -26798,8 +26798,8 @@ const Nh = /* @__PURE__ */ b.forwardRef(function(t, n) {
26798
26798
  const ve = we(Yn, X);
26799
26799
  if (v.state.setInputValue(Q.currentTarget.value, ve), ve.isCanceled)
26800
26800
  return;
26801
- const Re = Q.currentTarget.value === "", Le = we(kn, X);
26802
- Re && !v.state.inputInsidePopup && (M === "single" && v.state.setSelectedValue(null, Le), v.state.openOnInputClick || v.state.setOpen(!1, Le)), ae(Q.currentTarget.value.trim()), _ && v.state.activeIndex !== null && !H && pe();
26801
+ const Re = Q.currentTarget.value === "", ze = we(kn, X);
26802
+ Re && !v.state.inputInsidePopup && (M === "single" && v.state.setSelectedValue(null, ze), v.state.openOnInputClick || v.state.setOpen(!1, ze)), ae(Q.currentTarget.value.trim()), _ && v.state.activeIndex !== null && !H && pe();
26803
26803
  },
26804
26804
  onKeyDown(Q) {
26805
26805
  if (j || R || Q.ctrlKey || Q.shiftKey || Q.altKey || Q.metaKey)
@@ -26819,13 +26819,13 @@ const Nh = /* @__PURE__ */ b.forwardRef(function(t, n) {
26819
26819
  return;
26820
26820
  }
26821
26821
  if (!D && Q.key === "Escape") {
26822
- const ve = M === "multiple" && Array.isArray($) ? $.length === 0 : $ === null, Re = we(Jo, Q.nativeEvent), Le = M === "multiple" ? [] : null;
26823
- v.state.setInputValue("", Re), v.state.setSelectedValue(Le, Re), !ve && !v.state.inline && !Re.isPropagationAllowed && Q.stopPropagation();
26822
+ const ve = M === "multiple" && Array.isArray($) ? $.length === 0 : $ === null, Re = we(Jo, Q.nativeEvent), ze = M === "multiple" ? [] : null;
26823
+ v.state.setInputValue("", Re), v.state.setSelectedValue(ze, Re), !ve && !v.state.inline && !Re.isPropagationAllowed && Q.stopPropagation();
26824
26824
  return;
26825
26825
  }
26826
26826
  if (x && Q.key === "Backspace" && X.value === "" && x.highlightedChipIndex === void 0 && Array.isArray($) && $.length > 0) {
26827
- const ve = x.chipsRef.current.length, Re = ve > 0 ? ve - 1 : $.length - 1, Le = $.filter((Te, Ne) => Ne !== Re);
26828
- pe(), v.state.setSelectedValue(Le, we(Et, Q.nativeEvent));
26827
+ const ve = x.chipsRef.current.length, Re = ve > 0 ? ve - 1 : $.length - 1, ze = $.filter((Te, Ne) => Ne !== Re);
26828
+ pe(), v.state.setSelectedValue(ze, we(Et, Q.nativeEvent));
26829
26829
  return;
26830
26830
  }
26831
26831
  const ie = x?.highlightedChipIndex !== void 0, ae = le(Q);
@@ -27083,7 +27083,7 @@ process.env.NODE_ENV !== "production" && (Th.displayName = "ComboboxPortalContex
27083
27083
  function X_() {
27084
27084
  const e = b.useContext(Th);
27085
27085
  if (e === void 0)
27086
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." : Qe(20));
27086
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." : Ze(20));
27087
27087
  return e;
27088
27088
  }
27089
27089
  const Ph = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -27249,7 +27249,7 @@ process.env.NODE_ENV !== "production" && (Dh.displayName = "ComboboxGroupContext
27249
27249
  function Q_() {
27250
27250
  const e = b.useContext(Dh);
27251
27251
  if (e === void 0)
27252
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." : Qe(18));
27252
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." : Ze(18));
27253
27253
  return e;
27254
27254
  }
27255
27255
  const aS = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -27304,7 +27304,7 @@ process.env.NODE_ENV !== "production" && (_h.displayName = "ComboboxItemContext"
27304
27304
  function cS() {
27305
27305
  const e = b.useContext(_h);
27306
27306
  if (!e)
27307
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>." : Qe(19));
27307
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>." : Ze(19));
27308
27308
  return e;
27309
27309
  }
27310
27310
  const uS = /* @__PURE__ */ b.createContext(!1);
@@ -27513,7 +27513,7 @@ process.env.NODE_ENV !== "production" && (Vh.displayName = "ComboboxChipContext"
27513
27513
  function tV() {
27514
27514
  const e = b.useContext(Vh);
27515
27515
  if (!e)
27516
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>." : Qe(17));
27516
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>." : Ze(17));
27517
27517
  return e;
27518
27518
  }
27519
27519
  const gS = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -27746,7 +27746,7 @@ const vS = [
27746
27746
  "has-disabled:opacity-45"
27747
27747
  ];
27748
27748
  function CS(e) {
27749
- const t = Ue(null), [n, r] = Ee(null);
27749
+ const t = Ve(null), [n, r] = Ee(null);
27750
27750
  return {
27751
27751
  anchorRef: t,
27752
27752
  handleOpenChange: ((...s) => {
@@ -27921,7 +27921,7 @@ process.env.NODE_ENV !== "production" && ($h.displayName = "SelectRootContext");
27921
27921
  function Yr() {
27922
27922
  const e = b.useContext($h);
27923
27923
  if (e === null)
27924
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : Qe(60));
27924
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : Ze(60));
27925
27925
  return e;
27926
27926
  }
27927
27927
  const st = {
@@ -28051,12 +28051,12 @@ function rV(e) {
28051
28051
  scrollUpArrowVisible: !1,
28052
28052
  scrollDownArrowVisible: !1,
28053
28053
  hasScrollArrows: !1
28054
- })).current, X = ue(Q, st.activeIndex), re = ue(Q, st.selectedIndex), he = ue(Q, st.triggerElement), ie = ue(Q, st.positionerElement), ae = tO(fe), ve = fe ?? ae, Re = b.useMemo(() => v ? "" : sr(L, S), [v, L, S]), Le = b.useMemo(() => v && Array.isArray(L) ? L.map((Ke) => sr(Ke, S)) : sr(L, S), [v, L, S]), Te = Nt(he), Ne = de(() => Le);
28054
+ })).current, X = ue(Q, st.activeIndex), re = ue(Q, st.selectedIndex), he = ue(Q, st.triggerElement), ie = ue(Q, st.positionerElement), ae = tO(fe), ve = fe ?? ae, Re = b.useMemo(() => v ? "" : sr(L, S), [v, L, S]), ze = b.useMemo(() => v && Array.isArray(L) ? L.map((We) => sr(We, S)) : sr(L, S), [v, L, S]), Te = Nt(he), Ne = de(() => ze);
28055
28055
  Wr(Te, U, L, Ne, !O, l);
28056
- const ke = b.useRef(L), Ze = v ? Array.isArray(L) && L.length > 0 : L != null && Re !== "";
28056
+ const ke = b.useRef(L), Xe = v ? Array.isArray(L) && L.length > 0 : L != null && Re !== "";
28057
28057
  be(() => {
28058
- V(Ze);
28059
- }, [Ze, V]), be(function() {
28058
+ V(Xe);
28059
+ }, [Xe, V]), be(function() {
28060
28060
  let bt = L, $t = !1;
28061
28061
  if (v) {
28062
28062
  const Gt = Array.isArray(L) ? L : [];
@@ -28065,15 +28065,15 @@ function rV(e) {
28065
28065
  const Yt = $t ? -1 : Bo(Z.current, bt, E), mn = Yt === -1 ? null : Yt;
28066
28066
  mn === null && (ce.current = null), !K && Q.set("selectedIndex", mn);
28067
28067
  }, [v, K, L, E, Q]);
28068
- function ze(Ke) {
28068
+ function Be(We) {
28069
28069
  const bt = F.initialValue;
28070
- return Array.isArray(Ke) && Array.isArray(bt) ? !xu(Ke, bt, ($t, Yt) => Jn($t, Yt, E)) : Ke !== bt;
28070
+ return Array.isArray(We) && Array.isArray(bt) ? !xu(We, bt, ($t, Yt) => Jn($t, Yt, E)) : We !== bt;
28071
28071
  }
28072
28072
  Wn(L, () => {
28073
- I(H), N(ze(L)), $.change(L);
28073
+ I(H), N(Be(L)), $.change(L);
28074
28074
  });
28075
- const _e = de((Ke, bt) => {
28076
- a?.(Ke, bt), !bt.isCanceled && (B(Ke), !Ke && (bt.reason === Br || bt.reason === Ji) && (M(!0), P(!1), A === "onBlur" && $.commit(L)));
28075
+ const _e = de((We, bt) => {
28076
+ a?.(We, bt), !bt.isCanceled && (B(We), !We && (bt.reason === Br || bt.reason === Ji) && (M(!0), P(!1), A === "onBlur" && $.commit(L)));
28077
28077
  }), Se = de(() => {
28078
28078
  oe(!1), Q.update({
28079
28079
  activeIndex: null,
@@ -28092,10 +28092,10 @@ function rV(e) {
28092
28092
  }), b.useImperativeHandle(g, () => ({
28093
28093
  unmount: Se
28094
28094
  }), [Se]);
28095
- const Oe = de((Ke, bt) => {
28096
- o?.(Ke, bt), !bt.isCanceled && j(Ke);
28097
- }), Ge = de((Ke) => {
28098
- const bt = t1(Ke.scrollHeight, Ke.clientHeight), $t = Sf(Ke.scrollTop, bt), Yt = $t > 0, mn = $t < bt;
28095
+ const Oe = de((We, bt) => {
28096
+ o?.(We, bt), !bt.isCanceled && j(We);
28097
+ }), Ge = de((We) => {
28098
+ const bt = t1(We.scrollHeight, We.clientHeight), $t = Sf(We.scrollTop, bt), Yt = $t > 0, mn = $t < bt;
28099
28099
  Q.set("scrollUpArrowVisible", Yt), Q.set("scrollDownArrowVisible", mn);
28100
28100
  }), tt = r0({
28101
28101
  open: K,
@@ -28113,8 +28113,8 @@ function rV(e) {
28113
28113
  activeIndex: X,
28114
28114
  selectedIndex: re,
28115
28115
  disabledIndices: xn,
28116
- onNavigate(Ke) {
28117
- Ke === null && !K || Q.set("activeIndex", Ke);
28116
+ onNavigate(We) {
28117
+ We === null && !K || Q.set("activeIndex", We);
28118
28118
  },
28119
28119
  focusItemOnHover: k
28120
28120
  }), gt = nm(tt, {
@@ -28127,12 +28127,12 @@ function rV(e) {
28127
28127
  // the disabled state from the element via the attribute-only `isElementDisabled` so the
28128
28128
  // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the
28129
28129
  // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.
28130
- disabledIndices: (Ke) => $m(z.current[Ke]),
28131
- onMatch(Ke) {
28132
- K ? Q.set("activeIndex", Ke) : Oe(Z.current[Ke], we(Et));
28130
+ disabledIndices: (We) => $m(z.current[We]),
28131
+ onMatch(We) {
28132
+ K ? Q.set("activeIndex", We) : Oe(Z.current[We], we(Et));
28133
28133
  },
28134
- onTyping(Ke) {
28135
- ne.current = Ke;
28134
+ onTyping(We) {
28135
+ ne.current = We;
28136
28136
  }
28137
28137
  }), qe = b.useMemo(() => on(gt.reference, Ae.reference, et.reference, je.reference, xe), [je.reference, gt.reference, Ae.reference, et.reference, xe]), it = b.useMemo(() => on(js, gt.floating, Ae.floating, et.floating), [gt.floating, Ae.floating, et.floating]), lt = Ae.item ?? ht;
28138
28138
  jC(() => {
@@ -28183,8 +28183,8 @@ function rV(e) {
28183
28183
  onOpenChangeComplete: y,
28184
28184
  alignItemWithTriggerActiveRef: pe,
28185
28185
  initialValueRef: ke
28186
- }), [Q, tt, p, O, d, v, k, Oe, _e, lt, $, y, Ge]), Pe = un(x, $.inputRef), St = v ? void 0 : H, Rt = b.useMemo(() => !v || !Array.isArray(L) || !H ? null : L.map((Ke) => {
28187
- const bt = sr(Ke, S);
28186
+ }), [Q, tt, p, O, d, v, k, Oe, _e, lt, $, y, Ge]), Pe = un(x, $.inputRef), St = v ? void 0 : H, Rt = b.useMemo(() => !v || !Array.isArray(L) || !H ? null : L.map((We) => {
28187
+ const bt = sr(We, S);
28188
28188
  return /* @__PURE__ */ f("input", {
28189
28189
  type: "hidden",
28190
28190
  form: c,
@@ -28204,10 +28204,10 @@ function rV(e) {
28204
28204
  });
28205
28205
  },
28206
28206
  // Handle browser autofill.
28207
- onChange(Ke) {
28208
- if (Ke.nativeEvent.defaultPrevented || O || d)
28207
+ onChange(We) {
28208
+ if (We.nativeEvent.defaultPrevented || O || d)
28209
28209
  return;
28210
- const bt = Ke.currentTarget.value, $t = we(Et, Ke.nativeEvent);
28210
+ const bt = We.currentTarget.value, $t = we(Et, We.nativeEvent);
28211
28211
  function Yt() {
28212
28212
  if (v)
28213
28213
  return;
@@ -28229,7 +28229,7 @@ function rV(e) {
28229
28229
  autoComplete: u,
28230
28230
  value: Re,
28231
28231
  disabled: O,
28232
- required: p && !(v && Ze),
28232
+ required: p && !(v && Xe),
28233
28233
  readOnly: d,
28234
28234
  ref: Pe,
28235
28235
  style: H ? vo : Vn,
@@ -28414,7 +28414,7 @@ process.env.NODE_ENV !== "production" && (Lh.displayName = "SelectPositionerCont
28414
28414
  function NS() {
28415
28415
  const e = b.useContext(Lh);
28416
28416
  if (!e)
28417
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : Qe(59));
28417
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : Ze(59));
28418
28418
  return e;
28419
28419
  }
28420
28420
  function tc(e, t) {
@@ -28643,17 +28643,17 @@ const lV = {
28643
28643
  try {
28644
28644
  let ne = h.current;
28645
28645
  ne?.isConnected || (ne = !st.hasSelectedValue(l.state) && p.current?.isConnected ? p.current : null);
28646
- const te = d.current, ce = ft(H), me = ce.getComputedStyle(H), pe = ce.getComputedStyle(J), se = Ye(O), oe = Jx(O), le = sl(O.getBoundingClientRect(), oe), fe = sl(H.getBoundingClientRect(), oe), xe = le.height, Q = L || J, X = Q.scrollHeight, re = parseFloat(pe.borderBottomWidth), he = parseFloat(me.marginTop) || 10, ie = parseFloat(me.marginBottom) || 10, ae = parseFloat(me.minHeight) || 100, ve = Qx(pe), Re = 5, Le = 5, Te = 20, Ne = se.documentElement.clientHeight - he - ie, ke = se.documentElement.clientWidth, Ze = Ne - le.bottom + xe;
28647
- let ze, _e = M === "rtl" ? le.right - fe.width : le.left, Se = 0;
28646
+ const te = d.current, ce = ft(H), me = ce.getComputedStyle(H), pe = ce.getComputedStyle(J), se = Ye(O), oe = Jx(O), le = sl(O.getBoundingClientRect(), oe), fe = sl(H.getBoundingClientRect(), oe), xe = le.height, Q = L || J, X = Q.scrollHeight, re = parseFloat(pe.borderBottomWidth), he = parseFloat(me.marginTop) || 10, ie = parseFloat(me.marginBottom) || 10, ae = parseFloat(me.minHeight) || 100, ve = Qx(pe), Re = 5, ze = 5, Te = 20, Ne = se.documentElement.clientHeight - he - ie, ke = se.documentElement.clientWidth, Xe = Ne - le.bottom + xe;
28647
+ let Be, _e = M === "rtl" ? le.right - fe.width : le.left, Se = 0;
28648
28648
  if (ne && te) {
28649
28649
  const Ft = sl(te.getBoundingClientRect(), oe);
28650
- ze = sl(ne.getBoundingClientRect(), oe), _e = fe.left + (M === "rtl" ? Ft.right - ze.right : Ft.left - ze.left);
28650
+ Be = sl(ne.getBoundingClientRect(), oe), _e = fe.left + (M === "rtl" ? Ft.right - Be.right : Ft.left - Be.left);
28651
28651
  const Pe = Ft.top - le.top + Ft.height / 2;
28652
- Se = ze.top - fe.top + ze.height / 2 - Pe;
28652
+ Se = Be.top - fe.top + Be.height / 2 - Pe;
28653
28653
  }
28654
- const Oe = Ze + Se + ie + re;
28654
+ const Oe = Xe + Se + ie + re;
28655
28655
  let Ge = Math.min(Ne, Oe);
28656
- const tt = Ne - he - ie, je = Oe - Ge, et = ke - Le;
28656
+ const tt = Ne - he - ie, je = Oe - Ge, et = ke - ze;
28657
28657
  H.style.left = `${At(_e, Re, et - fe.width)}px`, H.style.height = `${Ge}px`, H.style.maxHeight = "none", H.style.marginTop = `${he}px`, H.style.marginBottom = `${ie}px`, J.style.height = "100%";
28658
28658
  const Ae = ol(Q), gt = je >= Ae - Pr;
28659
28659
  gt && (Ge = Math.min(Ne, fe.height) - (je - Ae));
@@ -28668,8 +28668,8 @@ const lV = {
28668
28668
  H.style.top = fe.height >= tt ? "0" : `${Ft}px`, H.style.height = `${Ge}px`, Q.scrollTop = ol(Q);
28669
28669
  } else
28670
28670
  H.style.bottom = "0", Q.scrollTop = je;
28671
- if (ze) {
28672
- const Ft = fe.top, Pe = fe.height, St = ze.top + ze.height / 2, Rt = At(Pe > 0 ? (St - Ft) / Pe * 100 : 50, 0, 100);
28671
+ if (Be) {
28672
+ const Ft = fe.top, Pe = fe.height, St = Be.top + Be.height / 2, Rt = At(Pe > 0 ? (St - Ft) / Pe * 100 : 50, 0, 100);
28673
28673
  J.style.setProperty("--transform-origin", `50% ${Rt}%`);
28674
28674
  }
28675
28675
  (lt === Ne || Ge >= ve) && (j.current = !0), x(Q), v && l.state.selectedIndex === null && l.state.activeIndex === null && w.current[0] != null && l.set("activeIndex", 0);
@@ -28795,7 +28795,7 @@ process.env.NODE_ENV !== "production" && (zh.displayName = "SelectItemContext");
28795
28795
  function Bh() {
28796
28796
  const e = b.useContext(zh);
28797
28797
  if (!e)
28798
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : Qe(57));
28798
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : Ze(57));
28799
28799
  return e;
28800
28800
  }
28801
28801
  const OS = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -28979,7 +28979,7 @@ process.env.NODE_ENV !== "production" && (Hh.displayName = "SelectGroupContext")
28979
28979
  function uV() {
28980
28980
  const e = b.useContext(Hh);
28981
28981
  if (e === void 0)
28982
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : Qe(56));
28982
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : Ze(56));
28983
28983
  return e;
28984
28984
  }
28985
28985
  const VS = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -29075,7 +29075,7 @@ function Mf(e, t = []) {
29075
29075
  }), t;
29076
29076
  }
29077
29077
  function mV(e) {
29078
- const t = Ue(e), n = t.current;
29078
+ const t = Ve(e), n = t.current;
29079
29079
  return n.length === e.length && n.every(
29080
29080
  (o, s) => Object.is(o.value, e[s]?.value) && Object.is(o.label, e[s]?.label)
29081
29081
  ) || (t.current = e), t.current;
@@ -29450,7 +29450,7 @@ process.env.NODE_ENV !== "production" && (Uh.displayName = "TabsRootContext");
29450
29450
  function Su() {
29451
29451
  const e = b.useContext(Uh);
29452
29452
  if (e === void 0)
29453
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : Qe(64));
29453
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : Ze(64));
29454
29454
  return e;
29455
29455
  }
29456
29456
  const ba = {
@@ -29596,7 +29596,7 @@ process.env.NODE_ENV !== "production" && (Gh.displayName = "TabsListContext");
29596
29596
  function zS() {
29597
29597
  const e = b.useContext(Gh);
29598
29598
  if (e === void 0)
29599
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : Qe(65));
29599
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : Ze(65));
29600
29600
  return e;
29601
29601
  }
29602
29602
  const BS = /* @__PURE__ */ b.forwardRef(function(t, n) {
@@ -30010,8 +30010,8 @@ function oy(e) {
30010
30010
  i = Math.max(0, Math.min(i, e.scrollWidth - e.clientWidth)), !(Math.abs(i - s) < 1) && e.scrollTo({ left: i, behavior: jS() ? "auto" : "smooth" });
30011
30011
  }
30012
30012
  function SV({ className: e, children: t, variant: n }) {
30013
- const r = Ru({ variant: n }), o = Ue(null);
30014
- return Xe(() => {
30013
+ const r = Ru({ variant: n }), o = Ve(null);
30014
+ return Qe(() => {
30015
30015
  const s = o.current;
30016
30016
  if (!s) return;
30017
30017
  oy(s);
@@ -30071,7 +30071,7 @@ process.env.NODE_ENV !== "production" && (jh.displayName = "AccordionRootContext
30071
30071
  function WS() {
30072
30072
  const e = b.useContext(jh);
30073
30073
  if (e === void 0)
30074
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." : Qe(10));
30074
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." : Ze(10));
30075
30075
  return e;
30076
30076
  }
30077
30077
  const kV = {
@@ -30153,7 +30153,7 @@ process.env.NODE_ENV !== "production" && (Wh.displayName = "AccordionItemContext
30153
30153
  function Kh() {
30154
30154
  const e = b.useContext(Wh);
30155
30155
  if (e === void 0)
30156
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." : Qe(9));
30156
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." : Ze(9));
30157
30157
  return e;
30158
30158
  }
30159
30159
  let NV = /* @__PURE__ */ (function(e) {
@@ -31310,8 +31310,8 @@ function GV(e, t, { isValid: n, enabled: r = !0 }) {
31310
31310
  if (!e || !r) return o();
31311
31311
  const c = Jh(e, n);
31312
31312
  return c === void 0 ? o() : c;
31313
- }), a = Ue(!1);
31314
- Xe(() => {
31313
+ }), a = Ve(!1);
31314
+ Qe(() => {
31315
31315
  if (!(!e || !r)) {
31316
31316
  if (!a.current) {
31317
31317
  a.current = !0;
@@ -31343,13 +31343,13 @@ function A6({
31343
31343
  className: i,
31344
31344
  ref: a
31345
31345
  }) {
31346
- const l = QS(n === !1 ? "sm" : n), c = n !== !1 && l && r, u = Ue(null), m = Ue(/* @__PURE__ */ new Map()), [d, p] = Ee(0), [h, g] = Ee(!1), [x, y] = Ee(null), [w, v, C] = GV(o, {}, {
31346
+ const l = QS(n === !1 ? "sm" : n), c = n !== !1 && l && r, u = Ve(null), m = Ve(/* @__PURE__ */ new Map()), [d, p] = Ee(0), [h, g] = Ee(!1), [x, y] = Ee(null), [w, v, C] = GV(o, {}, {
31347
31347
  isValid: jV
31348
31348
  }), S = De((D) => (m.current.set(D.id, D), p(($) => $ + 1), () => {
31349
31349
  m.current.delete(D.id), p(($) => $ + 1);
31350
31350
  }), []), E = De(() => [...m.current.values()].sort(
31351
31351
  (D, $) => D.node.compareDocumentPosition($.node) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1
31352
- ), []), k = We(
31352
+ ), []), k = Ke(
31353
31353
  () => E().map((D) => ({ id: D.id, label: D.label ?? D.id })),
31354
31354
  // `ordered` reads a ref, so `membership` is what makes this recompute.
31355
31355
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -31365,7 +31365,7 @@ function A6({
31365
31365
  v(
31366
31366
  Object.fromEntries(D.map((j) => [j.id, j.defaultSize ?? L]))
31367
31367
  );
31368
- }, [d, E, C, v]), Xe(() => {
31368
+ }, [d, E, C, v]), Qe(() => {
31369
31369
  Object.keys(w).length > 0 && s?.(w);
31370
31370
  }, [w, s]);
31371
31371
  const I = De(
@@ -31418,7 +31418,7 @@ function A6({
31418
31418
  [v]
31419
31419
  ), F = De(() => {
31420
31420
  C(), p((D) => D + 1);
31421
- }, [C]), V = We(
31421
+ }, [C]), V = Ke(
31422
31422
  () => ({
31423
31423
  direction: t,
31424
31424
  narrow: c,
@@ -31517,7 +31517,7 @@ function D6({
31517
31517
  className: l,
31518
31518
  ref: c
31519
31519
  }) {
31520
- const u = cR("Panel"), m = Ue(null), { register: d } = u;
31520
+ const u = cR("Panel"), m = Ve(null), { register: d } = u;
31521
31521
  qi(() => {
31522
31522
  const w = m.current;
31523
31523
  if (w)
@@ -31594,7 +31594,7 @@ function _6({
31594
31594
  className: o,
31595
31595
  ref: s
31596
31596
  }) {
31597
- const i = cR("PanelResizer"), a = Ue(null), l = Ue(null), c = Ut(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], p = d ? i.sizes[d.id] : void 0, h = (w) => {
31597
+ const i = cR("PanelResizer"), a = Ve(null), l = Ve(null), c = Ut(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], p = d ? i.sizes[d.id] : void 0, h = (w) => {
31598
31598
  if (r || w.button !== 0) return;
31599
31599
  const v = a.current;
31600
31600
  v && (v.setPointerCapture(w.pointerId), l.current = {
@@ -31697,7 +31697,7 @@ process.env.NODE_ENV !== "production" && (tg.displayName = "AvatarRootContext");
31697
31697
  function uR() {
31698
31698
  const e = b.useContext(tg);
31699
31699
  if (e === void 0)
31700
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : Qe(13));
31700
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : Ze(13));
31701
31701
  return e;
31702
31702
  }
31703
31703
  const ng = {
@@ -33943,7 +33943,7 @@ function L6({
33943
33943
  const [x, y] = Ee([]), [w, v] = Ee({}), C = typeof c == "number" && c > 0, [S, E] = Ee({
33944
33944
  pageIndex: 0,
33945
33945
  pageSize: c ?? 0
33946
- }), k = We(() => r ? [{
33946
+ }), k = Ke(() => r ? [{
33947
33947
  id: "__select",
33948
33948
  size: 52,
33949
33949
  enableSorting: !1,
@@ -36240,7 +36240,7 @@ function U6(e) {
36240
36240
  Ou(), AR(e);
36241
36241
  }
36242
36242
  function $L(e, t) {
36243
- return We(() => BR(e, t), [e, t]);
36243
+ return Ke(() => BR(e, t), [e, t]);
36244
36244
  }
36245
36245
  const LL = Sc(function({
36246
36246
  source: t,
@@ -36327,7 +36327,7 @@ const LL = Sc(function({
36327
36327
  }
36328
36328
  });
36329
36329
  function Fd(e, t, n) {
36330
- const [r, o] = Ee(t), s = e !== void 0, i = Ue(n);
36330
+ const [r, o] = Ee(t), s = e !== void 0, i = Ve(n);
36331
36331
  i.current = n;
36332
36332
  const a = De(
36333
36333
  (l) => {
@@ -36362,20 +36362,20 @@ function HR({
36362
36362
  ref: C,
36363
36363
  ...S
36364
36364
  }) {
36365
- const [E, k] = Fd(e, t ?? "", n), [R, I] = Fd(u, m, d), N = HL(o), M = We(
36365
+ const [E, k] = Fd(e, t ?? "", n), [R, I] = Fd(u, m, d), N = HL(o), M = Ke(
36366
36366
  () => N ? r ? ["source", "rendered"] : ["source", "rendered", "split"] : ["source"],
36367
36367
  [N, r]
36368
36368
  ), [P, F] = Fd(
36369
36369
  p,
36370
36370
  h ?? (N && r ? "rendered" : "source"),
36371
36371
  g
36372
- ), V = M.includes(P) ? P : "source", _ = We(() => E.split(`
36373
- `).length, [E]), [D, $] = Ee(!1), A = Ue(void 0), U = De(() => {
36372
+ ), V = M.includes(P) ? P : "source", _ = Ke(() => E.split(`
36373
+ `).length, [E]), [D, $] = Ee(!1), A = Ve(void 0), U = De(() => {
36374
36374
  navigator.clipboard?.writeText(E).then(() => {
36375
36375
  $(!0), clearTimeout(A.current), A.current = setTimeout(() => $(!1), 1600);
36376
36376
  }).catch(() => {
36377
36377
  });
36378
- }, [E]), O = r && c !== void 0 && _ > c, [H, L] = Ee(!1), j = O && !H, [K, B] = Ee(!1), z = We(
36378
+ }, [E]), O = r && c !== void 0 && _ > c, [H, L] = Ee(!1), j = O && !H, [K, B] = Ee(!1), z = Ke(
36379
36379
  () => ({
36380
36380
  value: E,
36381
36381
  language: o ?? null,
@@ -36487,8 +36487,8 @@ function UL({
36487
36487
  tabLeaves: m,
36488
36488
  onTabLeavesChange: d
36489
36489
  }) {
36490
- const p = is(), h = $L(e, n), g = We(() => e.split(`
36491
- `).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w = Ue(m), v = (S) => {
36490
+ const p = is(), h = $L(e, n), g = Ke(() => e.split(`
36491
+ `).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w = Ve(m), v = (S) => {
36492
36492
  w.current = S, d(S);
36493
36493
  }, C = (S) => {
36494
36494
  const E = S.currentTarget;
@@ -36579,7 +36579,7 @@ function GL({
36579
36579
  style: t,
36580
36580
  collapsed: n
36581
36581
  }) {
36582
- const r = is(), o = We(() => w$(e), [e]);
36582
+ const r = is(), o = Ke(() => w$(e), [e]);
36583
36583
  return /* @__PURE__ */ f(
36584
36584
  "div",
36585
36585
  {
@@ -38640,12 +38640,12 @@ function b5(e, t) {
38640
38640
  } : null;
38641
38641
  }
38642
38642
  function x5(e, t) {
38643
- const [n, r] = Ee(0), o = Ue(null);
38644
- return Xe(() => {
38643
+ const [n, r] = Ee(0), o = Ve(null);
38644
+ return Qe(() => {
38645
38645
  if (!e) return;
38646
38646
  const s = e.root.ownerDocument, i = () => r((a) => a + 1);
38647
38647
  return s.addEventListener("selectionchange", i), () => s.removeEventListener("selectionchange", i);
38648
- }, [e]), We(() => {
38648
+ }, [e]), Ke(() => {
38649
38649
  if (!e) return { source: "", caret: null, ranged: !1, block: null, construct: null };
38650
38650
  const s = e.getSource(), i = e.getSelection();
38651
38651
  if (!i) {
@@ -38690,7 +38690,7 @@ function y5({ surface: e, state: t, run: n, container: r }) {
38690
38690
  },
38691
38691
  [e, r]
38692
38692
  );
38693
- Xe(() => {
38693
+ Qe(() => {
38694
38694
  if (!e || !r || l) return;
38695
38695
  const d = e.root, p = (g) => {
38696
38696
  const x = N5(e, g.clientX, g.clientY);
@@ -38702,10 +38702,10 @@ function y5({ surface: e, state: t, run: n, container: r }) {
38702
38702
  return d.addEventListener("pointermove", p), r.addEventListener("pointerleave", h), () => {
38703
38703
  d.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", h);
38704
38704
  };
38705
- }, [e, r, u, l, t.caret]), Xe(() => {
38705
+ }, [e, r, u, l, t.caret]), Qe(() => {
38706
38706
  l || t.caret === null || (a(t.caret), s(u(t.caret)));
38707
38707
  }, [t.caret, u, l]);
38708
- const m = We(
38708
+ const m = Ke(
38709
38709
  () => e && i !== null ? lc(e.getSource(), i) : null,
38710
38710
  [e, i, t.source]
38711
38711
  );
@@ -38758,7 +38758,7 @@ function v5(e) {
38758
38758
  }
38759
38759
  function w5({ surface: e, state: t, run: n, container: r }) {
38760
38760
  const o = t.construct ?? (t.block?.kind === "code" || t.block?.kind === "table" ? t.block : null), [s, i] = Ee(null);
38761
- return Xe(() => {
38761
+ return Qe(() => {
38762
38762
  if (!e || !r || !o) return i(null);
38763
38763
  const a = wE(e, o.start);
38764
38764
  if (a === null) return i(null);
@@ -38824,7 +38824,7 @@ function C5({
38824
38824
  ] });
38825
38825
  }
38826
38826
  function S5({ language: e, run: t }) {
38827
- const n = We(() => {
38827
+ const n = Ke(() => {
38828
38828
  const r = FL().sort();
38829
38829
  return e && !r.includes(e) ? [e, ...r] : r;
38830
38830
  }, [e]);
@@ -38879,7 +38879,7 @@ function br({ icon: e, label: t, onClick: n }) {
38879
38879
  }
38880
38880
  function E5({ surface: e, state: t, run: n, container: r }) {
38881
38881
  const [o, s] = Ee(null);
38882
- if (Xe(() => {
38882
+ if (Qe(() => {
38883
38883
  if (!e || !r) return;
38884
38884
  const a = e.root, l = (c) => {
38885
38885
  const u = e.getSelection();
@@ -39003,8 +39003,8 @@ function W6({
39003
39003
  className: a,
39004
39004
  minHeight: l = 240
39005
39005
  }) {
39006
- const c = Ue(null), u = Ue(null), [m, d] = Ee(e.length === 0), p = Ut(), [h, g] = Ee(null), [x, y] = Ee(0), [w, v] = Ee(null), C = Ue(t);
39007
- C.current = t, Xe(() => {
39006
+ const c = Ve(null), u = Ve(null), [m, d] = Ee(e.length === 0), p = Ut(), [h, g] = Ee(null), [x, y] = Ee(0), [w, v] = Ee(null), C = Ve(t);
39007
+ C.current = t, Qe(() => {
39008
39008
  if (!c.current) return;
39009
39009
  const R = new u5(c.current, e, {
39010
39010
  onChange: (M) => {
@@ -39026,7 +39026,7 @@ function W6({
39026
39026
  return () => {
39027
39027
  N(), I(), u.current = null, g(null);
39028
39028
  };
39029
- }, []), Xe(() => {
39029
+ }, []), Qe(() => {
39030
39030
  u.current?.setSource(e), d(e.length === 0);
39031
39031
  }, [e]);
39032
39032
  const S = De((R) => {
@@ -39034,7 +39034,7 @@ function W6({
39034
39034
  if (!I) return;
39035
39035
  const N = I.getSelection() ?? { anchor: 0, head: 0 }, M = R(I.getSource(), N);
39036
39036
  M && (I.breakUndoGroup(), I.apply(M.splice, M.select, "other"), I.root.focus());
39037
- }, []), E = x5(h, x), k = We(() => {
39037
+ }, []), E = x5(h, x), k = Ke(() => {
39038
39038
  const R = /* @__PURE__ */ new Map();
39039
39039
  for (const I of Cg) {
39040
39040
  const N = R.get(I.group) ?? [];
@@ -39676,22 +39676,22 @@ function K6(e) {
39676
39676
  return t;
39677
39677
  }
39678
39678
  function j5(e) {
39679
- const t = Ue(null);
39679
+ const t = Ve(null);
39680
39680
  t.current ??= new V5(e);
39681
39681
  const n = t.current;
39682
- return n.setCallbacks(e), Xe(() => L5(n), [n]), n;
39682
+ return n.setCallbacks(e), Qe(() => L5(n), [n]), n;
39683
39683
  }
39684
39684
  function Vu(e) {
39685
39685
  return kr(e.subscribe, e.getState, e.getState);
39686
39686
  }
39687
39687
  function W5(e, t) {
39688
39688
  const { id: n, container: r, index: o, axis: s = "y", disabled: i = !1, activation: a } = t, [l, c] = Ee(null), [u, m] = Ee(null);
39689
- Xe(() => {
39689
+ Qe(() => {
39690
39690
  if (l)
39691
39691
  return e.registerItem({ id: n, container: r, index: o, element: l });
39692
39692
  }, [e, l, n, r, o]);
39693
- const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, p = Ue(a);
39694
- p.current = a, Xe(() => {
39693
+ const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, p = Ve(a);
39694
+ p.current = a, Qe(() => {
39695
39695
  if (!u || i) return;
39696
39696
  const g = $5(e, u, {
39697
39697
  id: n,
@@ -39710,7 +39710,7 @@ function W5(e, t) {
39710
39710
  }
39711
39711
  function K5(e, t) {
39712
39712
  const { id: n, axis: r = "y" } = t, [o, s] = Ee(null);
39713
- Xe(() => {
39713
+ Qe(() => {
39714
39714
  if (o)
39715
39715
  return e.registerContainer({ id: n, element: o, axis: r });
39716
39716
  }, [e, o, n, r]);
@@ -39743,10 +39743,10 @@ function jd(e, t, n, r) {
39743
39743
  };
39744
39744
  }
39745
39745
  function Y5(e, t = {}) {
39746
- const [n, r] = Ee(""), o = Ue(t);
39746
+ const [n, r] = Ee(""), o = Ve(t);
39747
39747
  o.current = t;
39748
- const s = Ue(null), i = Ue(null), a = Ue(null), l = Ue(0);
39749
- return Xe(() => {
39748
+ const s = Ve(null), i = Ve(null), a = Ve(null), l = Ve(0);
39749
+ return Qe(() => {
39750
39750
  function c() {
39751
39751
  i.current !== null && (window.clearTimeout(i.current), i.current = null, a.current = null);
39752
39752
  }
@@ -40138,7 +40138,7 @@ function VE(e, t) {
40138
40138
  const s3 = () => {
40139
40139
  };
40140
40140
  function i3(e) {
40141
- const t = Ue([]), n = Ue([]), r = Ue(null), o = De(() => {
40141
+ const t = Ve([]), n = Ve([]), r = Ve(null), o = De(() => {
40142
40142
  const i = t.current;
40143
40143
  if (i.length === 0) return;
40144
40144
  const a = new Set(n.current), l = i.filter((p) => !a.has(p.id));
@@ -40171,12 +40171,12 @@ function i3(e) {
40171
40171
  r.current = null, o();
40172
40172
  }, 0));
40173
40173
  }, [o]);
40174
- return Xe(
40174
+ return Qe(
40175
40175
  () => () => {
40176
40176
  r.current !== null && (clearTimeout(r.current), r.current = null);
40177
40177
  },
40178
40178
  []
40179
- ), We(
40179
+ ), Ke(
40180
40180
  () => ({
40181
40181
  item: (i, a, l) => {
40182
40182
  const c = { id: i, container: a, index: l };
@@ -40201,12 +40201,12 @@ function Lu({
40201
40201
  children: o,
40202
40202
  ...s
40203
40203
  }) {
40204
- const i = j5(s), a = i3(s.onDragEnd !== void 0), l = Ut(), c = as(), { threshold: u, maxSpeed: m, reducedMaxSpeed: d } = t ?? {}, p = We(
40204
+ const i = j5(s), a = i3(s.onDragEnd !== void 0), l = Ut(), c = as(), { threshold: u, maxSpeed: m, reducedMaxSpeed: d } = t ?? {}, p = Ke(
40205
40205
  () => ({ threshold: u, maxSpeed: m, reducedMaxSpeed: d }),
40206
40206
  [u, m, d]
40207
40207
  );
40208
- Xe(() => U5(i, p), [i, p]);
40209
- const h = Ue({
40208
+ Qe(() => U5(i, p), [i, p]);
40209
+ const h = Ve({
40210
40210
  item: /* @__PURE__ */ new Map(),
40211
40211
  container: /* @__PURE__ */ new Map()
40212
40212
  }), g = De(
@@ -40215,7 +40215,7 @@ function Lu({
40215
40215
  h.current[y].get(w) === v && h.current[y].delete(w);
40216
40216
  }),
40217
40217
  []
40218
- ), x = We(
40218
+ ), x = Ke(
40219
40219
  () => ({ session: i, instructionsId: l, renderCarried: n, registerLabel: g, census: a }),
40220
40220
  [i, l, n, g, a]
40221
40221
  );
@@ -40241,11 +40241,11 @@ function zu({
40241
40241
  children: o
40242
40242
  }) {
40243
40243
  const { session: s, registerLabel: i } = Fu("DragDropContainer"), { setContainerRef: a, isOver: l } = K5(s, { id: e, axis: n }), c = Vu(s), u = as({ axis: n });
40244
- Xe(
40244
+ Qe(
40245
40245
  () => i("container", e, t),
40246
40246
  [i, e, t]
40247
40247
  );
40248
- const m = _E(s.getLayout(), c, e), d = We(() => ({ id: e, axis: n, shift: m }), [e, n, m]);
40248
+ const m = _E(s.getLayout(), c, e), d = Ke(() => ({ id: e, axis: n, shift: m }), [e, n, m]);
40249
40249
  return /* @__PURE__ */ f(
40250
40250
  "div",
40251
40251
  {
@@ -40273,7 +40273,7 @@ function Bu({
40273
40273
  index: t,
40274
40274
  axis: u
40275
40275
  }), h = Vu(s);
40276
- Xe(() => a("item", e, n), [a, e, n]), Xe(() => l.item(e, c, t), [l, e, c, t]);
40276
+ Qe(() => a("item", e, n), [a, e, n]), Qe(() => l.item(e, c, t), [l, e, c, t]);
40277
40277
  const g = h.phase === "dragging" && h.id === e, x = as({ axis: u, moving: m !== null }), y = h.from && h.from.container === c && h.from.index < t ? t - 1 : t, w = !g && m?.markerAt === y, v = !g && m !== null && m.markerAt === m.restCount && y === m.restCount - 1, C = m && /* @__PURE__ */ f($E, { shift: m, at: w ? y : m.restCount - 1 });
40278
40278
  return (
40279
40279
  /* A FRAGMENT, so the marker is a DIRECT CHILD of the container. Wrapping the
@@ -40347,14 +40347,14 @@ function a3({
40347
40347
  const l3 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
40348
40348
  function FE({ label: e, className: t, children: n }) {
40349
40349
  const { instructionsId: r, census: o } = Fu("DragDropSurface"), { axis: s } = $u("DragDropSurface"), { id: i, setHandleRef: a, label: l } = AE("DragDropSurface"), c = OE();
40350
- Xe(() => c ? void 0 : o.source(i), [o, i, c]);
40350
+ Qe(() => c ? void 0 : o.source(i), [o, i, c]);
40351
40351
  const u = as({ axis: s }), [m, d] = Ee(null), [p, h] = Ee(!1), g = De(
40352
40352
  (x) => {
40353
40353
  d(x), a(x);
40354
40354
  },
40355
40355
  [a]
40356
40356
  );
40357
- return Xe(() => {
40357
+ return Qe(() => {
40358
40358
  if (!m || c) return;
40359
40359
  const x = m.querySelector(l3);
40360
40360
  if (h(x === null), !x) return;
@@ -40385,7 +40385,7 @@ function FE({ label: e, className: t, children: n }) {
40385
40385
  }
40386
40386
  function Ng({ label: e, className: t, children: n }) {
40387
40387
  const { instructionsId: r, census: o } = Fu("DragDropHandle"), { axis: s } = $u("DragDropHandle"), { id: i, setHandleRef: a, label: l } = AE("DragDropHandle"), c = OE();
40388
- Xe(() => c ? void 0 : o.source(i), [o, i, c]);
40388
+ Qe(() => c ? void 0 : o.source(i), [o, i, c]);
40389
40389
  const u = as({ axis: s }), m = n ?? /* @__PURE__ */ f(ge, { name: "grip-vertical", size: "sm" });
40390
40390
  return c ? /* @__PURE__ */ f("span", { "aria-hidden": "true", className: W(u.handle(), t), children: m }) : /* @__PURE__ */ f(
40391
40391
  "span",
@@ -40650,7 +40650,7 @@ function Hy(e, t, n) {
40650
40650
  }
40651
40651
  const m3 = [];
40652
40652
  function zE(e) {
40653
- const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a = We(
40653
+ const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a = Ke(
40654
40654
  () => f3(t, n, r),
40655
40655
  [t, n, r]
40656
40656
  ), l = De(
@@ -40838,7 +40838,7 @@ function Y6({
40838
40838
  className: m,
40839
40839
  ...d
40840
40840
  }) {
40841
- const p = Uy({ fill: u }), h = d3(u), [g, x] = Ee(null), y = We(() => t.flatMap((M) => M.items), [t]), w = We(
40841
+ const p = Uy({ fill: u }), h = d3(u), [g, x] = Ee(null), y = Ke(() => t.flatMap((M) => M.items), [t]), w = Ke(
40842
40842
  () => t.map((M) => ({
40843
40843
  id: M.id,
40844
40844
  label: M.label,
@@ -40849,12 +40849,12 @@ function Y6({
40849
40849
  wipLimit: M.limit
40850
40850
  })),
40851
40851
  [t]
40852
- ), v = We(() => {
40852
+ ), v = Ke(() => {
40853
40853
  const M = /* @__PURE__ */ new Map();
40854
40854
  for (const P of t)
40855
40855
  for (const F of P.items) M.set(String(n(F)), P.id);
40856
40856
  return M;
40857
- }, [t, n]), C = We(
40857
+ }, [t, n]), C = Ke(
40858
40858
  () => ({
40859
40859
  getId: (M) => n(M),
40860
40860
  /* An id with no lane cannot happen from `lanes` by construction. If it
@@ -41129,13 +41129,13 @@ function X6({
41129
41129
  });
41130
41130
  },
41131
41131
  [g]
41132
- ), y = We(
41132
+ ), y = Ke(
41133
41133
  () => u === void 0 ? void 0 : (v) => {
41134
41134
  const C = e.find((S) => n.getId(S) === v);
41135
41135
  return C === void 0 ? null : u(C);
41136
41136
  },
41137
41137
  [u, e, n]
41138
- ), w = We(
41138
+ ), w = Ke(
41139
41139
  () => ({ columns: d.columns, requestMove: g }),
41140
41140
  [d.columns, g]
41141
41141
  );
@@ -41167,7 +41167,7 @@ function Q6({
41167
41167
  listClassName: r,
41168
41168
  children: o
41169
41169
  }) {
41170
- const s = Ig({ overWip: e.overWip }), i = We(
41170
+ const s = Ig({ overWip: e.overWip }), i = Ke(
41171
41171
  () => ({ columnId: e.id, label: e.label }),
41172
41172
  [e.id, e.label]
41173
41173
  ), a = t ?? /* @__PURE__ */ f(
@@ -41223,15 +41223,15 @@ function S3({
41223
41223
  );
41224
41224
  }
41225
41225
  function J6({ id: e, index: t, label: n, className: r, children: o }) {
41226
- const { columnId: s } = v3("BoardCard"), i = Ue(!1), a = De(() => (i.current = !0, () => {
41226
+ const { columnId: s } = v3("BoardCard"), i = Ve(!1), a = De(() => (i.current = !0, () => {
41227
41227
  i.current = !1;
41228
41228
  }), []);
41229
- Xe(() => {
41229
+ Qe(() => {
41230
41230
  i.current || console.warn(
41231
41231
  `[danxbot] board: card "${String(e)}" rendered without placing the move control it was handed. Every drag outcome must stay reachable by pointer alone without dragging (WCAG 2.2 SC 2.5.7) — a keyboard path does not satisfy it. Render the node \`BoardCard\` passes to its children function.`
41232
41232
  );
41233
41233
  }, [e]);
41234
- const l = We(
41234
+ const l = Ke(
41235
41235
  () => ({ itemId: e, index: t, label: n, registerHandle: a }),
41236
41236
  [e, t, n, a]
41237
41237
  );
@@ -41239,7 +41239,7 @@ function J6({ id: e, index: t, label: n, className: r, children: o }) {
41239
41239
  }
41240
41240
  function R3({ columnId: e }) {
41241
41241
  const t = y3("BoardCardHandle"), n = w3("BoardCardHandle"), r = h3(), [o, s] = Ee(!1), i = Ig(), { registerHandle: a } = n;
41242
- Xe(() => a(), [a]);
41242
+ Qe(() => a(), [a]);
41243
41243
  const c = t.columns.find((g) => g.id === e)?.count ?? 0, u = t.columns.filter((g) => g.id !== e);
41244
41244
  function m(g) {
41245
41245
  s(!1), t.requestMove({
@@ -41300,7 +41300,7 @@ function jE({
41300
41300
  className: c,
41301
41301
  ref: u
41302
41302
  }) {
41303
- const m = t === "tile", d = e.status === "uploading", p = e.status === "error", h = e.thumbnailUrl ?? (Ni(e) === "image" ? e.url : void 0), g = We(() => p ? e.error ?? "Upload failed" : d ? e.progress === void 0 ? "Uploading…" : `${Math.round(e.progress)}%` : n !== void 0 ? n : e.size === void 0 ? "" : xs(e.size), [p, d, n, e.error, e.progress, e.size]), x = /* @__PURE__ */ T(
41303
+ const m = t === "tile", d = e.status === "uploading", p = e.status === "error", h = e.thumbnailUrl ?? (Ni(e) === "image" ? e.url : void 0), g = Ke(() => p ? e.error ?? "Upload failed" : d ? e.progress === void 0 ? "Uploading…" : `${Math.round(e.progress)}%` : n !== void 0 ? n : e.size === void 0 ? "" : xs(e.size), [p, d, n, e.error, e.progress, e.size]), x = /* @__PURE__ */ T(
41304
41304
  "div",
41305
41305
  {
41306
41306
  className: W(
@@ -41536,7 +41536,7 @@ function N3({
41536
41536
  className: x,
41537
41537
  ref: y
41538
41538
  }) {
41539
- const w = Ue(null), [v, C] = Ee(!1), S = !c && !i && (e.trim().length > 0 || r.length > 0), E = () => {
41539
+ const w = Ve(null), [v, C] = Ee(!1), S = !c && !i && (e.trim().length > 0 || r.length > 0), E = () => {
41540
41540
  S && n(e, r);
41541
41541
  }, k = (N) => {
41542
41542
  N.key !== "Enter" || N.shiftKey || N.nativeEvent.isComposing || (N.preventDefault(), E());
@@ -41844,7 +41844,7 @@ const A3 = Sc(function({ block: t, index: n }) {
41844
41844
  return /* @__PURE__ */ f("p", { className: "my-1.5 first:mt-0 last:mb-0", children: pl(t.text, `p${n}`) });
41845
41845
  }
41846
41846
  }), D3 = Sc(function({ children: t, className: n }) {
41847
- const r = We(() => T3(t), [t]);
41847
+ const r = Ke(() => T3(t), [t]);
41848
41848
  return /* @__PURE__ */ f("div", { className: W("text-sm leading-relaxed text-secondary", n), children: r.map((o, s) => /* @__PURE__ */ f(A3, { block: o, index: s }, `${o.kind}-${s}`)) });
41849
41849
  }), ml = [
41850
41850
  "var(--color-accent)",
@@ -42396,7 +42396,7 @@ function H3({
42396
42396
  className: o,
42397
42397
  ref: s
42398
42398
  }) {
42399
- const i = Ue(null), a = Ue(null), l = Ue(!0), [c, u] = Ee(!1), m = De((p = "smooth") => {
42399
+ const i = Ve(null), a = Ve(null), l = Ve(!0), [c, u] = Ee(!1), m = De((p = "smooth") => {
42400
42400
  const h = i.current;
42401
42401
  h && (h.scrollTo({ top: h.scrollHeight, behavior: p }), l.current = !0, u(!1));
42402
42402
  }, []), d = De(() => {
@@ -42408,7 +42408,7 @@ function H3({
42408
42408
  return qi(() => {
42409
42409
  const p = i.current;
42410
42410
  p && (p.scrollTop = p.scrollHeight);
42411
- }, []), Xe(() => {
42411
+ }, []), Qe(() => {
42412
42412
  const p = a.current;
42413
42413
  if (!p || typeof ResizeObserver > "u") return;
42414
42414
  const h = new ResizeObserver(() => {
@@ -42480,7 +42480,7 @@ function U3({
42480
42480
  className: l
42481
42481
  }) {
42482
42482
  const [c, u] = Ee(!1), [m, d] = Ee(!1), p = e.filter((x) => !x.secondary), h = e.filter((x) => x.secondary), g = e.find((x) => x.id === t);
42483
- return Xe(() => {
42483
+ return Qe(() => {
42484
42484
  if (!c || !o) return;
42485
42485
  const x = (y) => {
42486
42486
  if (y.metaKey || y.ctrlKey || y.altKey) return;
@@ -42488,7 +42488,7 @@ function U3({
42488
42488
  !Number.isInteger(w) || w < 0 || !v || v.disabled || (y.preventDefault(), n(v.id), u(!1));
42489
42489
  };
42490
42490
  return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
42491
- }, [c, o, p, n]), Xe(() => {
42491
+ }, [c, o, p, n]), Qe(() => {
42492
42492
  c || d(!1);
42493
42493
  }, [c]), /* @__PURE__ */ T(
42494
42494
  bu,
@@ -42634,7 +42634,7 @@ function j3({
42634
42634
  const c = Math.max(
42635
42635
  0,
42636
42636
  e.findIndex((p) => p.id === t)
42637
- ), u = e[c], m = We(
42637
+ ), u = e[c], m = Ke(
42638
42638
  () => e.map((p, h) => ({ value: h })),
42639
42639
  [e]
42640
42640
  ), d = (
@@ -43296,7 +43296,7 @@ function uB(e) {
43296
43296
  return t.setUTCFullYear(e.year, e.month, 0), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
43297
43297
  }
43298
43298
  function dB(e, t) {
43299
- const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Ee(e), [a, l] = Ee(!1), c = Ue(s), u = De(
43299
+ const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Ee(e), [a, l] = Ee(!1), c = Ve(s), u = De(
43300
43300
  (d) => {
43301
43301
  Go(c.current, d) || (c.current = d, i(d), (d.year !== n.year || d.month !== n.month) && o?.(d));
43302
43302
  },
@@ -43406,21 +43406,21 @@ function fU({
43406
43406
  className: d,
43407
43407
  label: p = "Month"
43408
43408
  }) {
43409
- const h = mB(), g = Ut(), x = We(
43409
+ const h = mB(), g = Ut(), x = Ke(
43410
43410
  () => eB(e, r),
43411
43411
  [e.year, e.month, e.day, r]
43412
- ), y = We(() => {
43412
+ ), y = Ke(() => {
43413
43413
  const k = [];
43414
43414
  for (let R = 0; R < x.length; R += 7) k.push(x.slice(R, R + 7));
43415
43415
  return k;
43416
43416
  }, [x]), w = dB(
43417
43417
  fB(x, e, o, s),
43418
43418
  { month: e, weekStartsOn: r, onMonthChange: l }
43419
- ), v = Ue(/* @__PURE__ */ new Map()), C = Ue(!1);
43420
- Xe(() => {
43419
+ ), v = Ve(/* @__PURE__ */ new Map()), C = Ve(!1);
43420
+ Qe(() => {
43421
43421
  C.current && v.current.get(Kn(w.focusedDay))?.focus();
43422
43422
  }, [w.focusedDay]);
43423
- const S = We(
43423
+ const S = Ke(
43424
43424
  () => y.map((k) => {
43425
43425
  const R = [];
43426
43426
  for (const V of n) {
@@ -43684,7 +43684,7 @@ function bB(e, t = {}) {
43684
43684
  }
43685
43685
  function xB(e = {}) {
43686
43686
  const { resolutionMs: t = 6e4, enabled: n = !0, fixed: r } = e, [o, s] = Ee(() => r ?? Date.now());
43687
- return Xe(() => {
43687
+ return Qe(() => {
43688
43688
  if (r !== void 0) {
43689
43689
  s(r);
43690
43690
  return;
@@ -43766,16 +43766,16 @@ function gi(e, t, n) {
43766
43766
  return Gi(e, t, n);
43767
43767
  }
43768
43768
  function vB(e) {
43769
- const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Ee(null), [d, p] = Ee(null), [h, g] = Ee(!1), x = Ue({ zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l });
43769
+ const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Ee(null), [d, p] = Ee(null), [h, g] = Ee(!1), x = Ve({ zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l });
43770
43770
  x.current = { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l };
43771
- const y = Ue({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = De(() => {
43771
+ const y = Ve({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = De(() => {
43772
43772
  y.current.columns = x.current.measure();
43773
43773
  }, []);
43774
- Xe(() => {
43774
+ Qe(() => {
43775
43775
  if (!u && !d) return;
43776
43776
  const F = () => w();
43777
43777
  return window.addEventListener("scroll", F, { capture: !0, passive: !0 }), () => window.removeEventListener("scroll", F, { capture: !0 });
43778
- }, [u, d, w]), Xe(() => {
43778
+ }, [u, d, w]), Qe(() => {
43779
43779
  if (!u && !d) return;
43780
43780
  const F = (V) => {
43781
43781
  V.key === "Escape" && (V.preventDefault(), y.current.origin = null, y.current.anchor = null, y.current.last = null, m(null), p(null), g(!1), x.current.onAnnounce?.("Move cancelled"));
@@ -43785,7 +43785,7 @@ function vB(e) {
43785
43785
  const v = De((F) => {
43786
43786
  const V = tk(F, x.current.zone, x.current.locale);
43787
43787
  y.current.spoken !== V && (y.current.spoken = V, x.current.onAnnounce?.(V));
43788
- }, []), C = Ue(
43788
+ }, []), C = Ve(
43789
43789
  /* @__PURE__ */ new Map()
43790
43790
  ), S = De(
43791
43791
  (F) => (V) => {
@@ -43847,7 +43847,7 @@ function vB(e) {
43847
43847
  } }, D.cb = S(D), C.current.set(_, D)), D.event = F, D.cb;
43848
43848
  },
43849
43849
  [S]
43850
- ), k = Ue(null), R = De(
43850
+ ), k = Ve(null), R = De(
43851
43851
  (F) => !F || c || !i ? void 0 : Ui(F, {
43852
43852
  onPress: (_, D) => !D.target?.closest("button"),
43853
43853
  onActivate: (_) => {
@@ -43994,7 +43994,7 @@ function RB({
43994
43994
  ] });
43995
43995
  }
43996
43996
  function EB(e) {
43997
- const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Ee(null), [c, u] = Ee({}), m = Ue(null), d = De(
43997
+ const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Ee(null), [c, u] = Ee({}), m = Ve(null), d = De(
43998
43998
  (x, y) => {
43999
43999
  const w = r[Math.max(0, Math.min(r.length - 1, y))];
44000
44000
  w && s?.(
@@ -44159,13 +44159,13 @@ function pU({
44159
44159
  className: v,
44160
44160
  label: C = "Schedule"
44161
44161
  }) {
44162
- const S = kB(), E = Ue(null), k = Ue([]), [R, I] = Ee(""), N = xB({ fixed: m }), M = We(
44162
+ const S = kB(), E = Ve(null), k = Ve([]), [R, I] = Ee(""), N = xB({ fixed: m }), M = Ke(
44163
44163
  () => e.length > 0 ? rv(t, e[0], s) : [],
44164
44164
  [e, t, s]
44165
- ), P = We(() => e.reduce(
44165
+ ), P = Ke(() => e.reduce(
44166
44166
  (j, K) => Math.max(j, rv(t, K, s).length),
44167
44167
  1
44168
- ) * i, [e, t, s, i]), F = We(() => {
44168
+ ) * i, [e, t, s, i]), F = Ke(() => {
44169
44169
  const L = [];
44170
44170
  for (const z of n)
44171
44171
  if (z.allDay) {
@@ -44186,7 +44186,7 @@ function pU({
44186
44186
  hidden: K.hidden.length,
44187
44187
  rows: K.rows
44188
44188
  };
44189
- }, [e, n, t, l]), V = We(() => {
44189
+ }, [e, n, t, l]), V = Ke(() => {
44190
44190
  const L = lv / Math.max(1, P);
44191
44191
  return e.map((j, K) => {
44192
44192
  const B = [];
@@ -44209,12 +44209,12 @@ function pU({
44209
44209
  }))
44210
44210
  };
44211
44211
  });
44212
- }, [e, n, t, u, c, P]), _ = e.map(Kn).join(","), D = We(() => {
44212
+ }, [e, n, t, u, c, P]), _ = e.map(Kn).join(","), D = Ke(() => {
44213
44213
  if (e.length === 0) return null;
44214
44214
  const L = e[0], j = rn(t, L) + a * 36e5;
44215
44215
  return Math.max(0, Math.min(1, Gi(t, L, j))) * P;
44216
44216
  }, [_, t, a, P]);
44217
- Xe(() => {
44217
+ Qe(() => {
44218
44218
  const L = E.current;
44219
44219
  !L || D === null || (L.scrollTop = D);
44220
44220
  }, [D]);
@@ -44249,7 +44249,7 @@ function pU({
44249
44249
  },
44250
44250
  locale: y
44251
44251
  });
44252
- Xe(() => {
44252
+ Qe(() => {
44253
44253
  if (!(!A.draft && !A.creating || !E.current))
44254
44254
  return kg({ getPoint: A.getPoint, onScrolled: A.onScrolled });
44255
44255
  }, [A.draft, A.creating, A.getPoint, A.onScrolled]);
@@ -44496,28 +44496,28 @@ function hU({
44496
44496
  canAccessDevTools: i,
44497
44497
  children: a
44498
44498
  }) {
44499
- const [l, c] = Ee(null), u = We(
44499
+ const [l, c] = Ee(null), u = Ke(
44500
44500
  () => r.find((y) => y.id === s),
44501
44501
  [r, s]
44502
- ), m = We(() => {
44502
+ ), m = Ke(() => {
44503
44503
  const y = o.find(
44504
44504
  (w) => w.userId === e.id && w.teamId === s
44505
44505
  );
44506
44506
  if (y)
44507
44507
  return t.find((w) => w.id === y.roleId);
44508
- }, [o, t, e.id, s]), d = We(
44508
+ }, [o, t, e.id, s]), d = Ke(
44509
44509
  () => l ? t.find((y) => y.id === l) : m,
44510
44510
  [l, t, m]
44511
- ), p = We(
44511
+ ), p = Ke(
44512
44512
  () => new Set(d?.permissionKeys ?? []),
44513
44513
  [d]
44514
44514
  ), h = De(
44515
44515
  (y) => p.has(y),
44516
44516
  [p]
44517
- ), g = We(
44517
+ ), g = Ke(
44518
44518
  () => i(e, t, o),
44519
44519
  [i, e, t, o]
44520
- ), x = We(
44520
+ ), x = Ke(
44521
44521
  () => ({
44522
44522
  actualUser: e,
44523
44523
  currentTeam: u,
@@ -44817,7 +44817,7 @@ function LB(e) {
44817
44817
  return t.map((r) => ({ label: r, items: n.get(r) }));
44818
44818
  }
44819
44819
  function zB({ roles: e, permissions: t }) {
44820
- const n = We(() => LB(t), [t]), r = e.length + 1;
44820
+ const n = Ke(() => LB(t), [t]), r = e.length + 1;
44821
44821
  return /* @__PURE__ */ f("div", { className: "relative w-full min-w-0 overflow-auto overscroll-x-contain rounded-xl border border-border bg-surface shadow-sm", children: /* @__PURE__ */ T("table", { className: "w-full border-collapse text-left", children: [
44822
44822
  /* @__PURE__ */ f("caption", { className: "sr-only", children: "Which permissions each role has" }),
44823
44823
  /* @__PURE__ */ f("thead", { className: "sticky top-0 z-10", children: /* @__PURE__ */ T("tr", { children: [
@@ -44869,7 +44869,7 @@ function zB({ roles: e, permissions: t }) {
44869
44869
  ] }) });
44870
44870
  }
44871
44871
  function yU() {
44872
- const { actualUser: e, actualRole: t, effectiveRole: n, permissions: r, isImpersonating: o, currentTeam: s } = Hu(), [i, a] = Ee(e.name), [l, c] = Ee(e.email), u = We(
44872
+ const { actualUser: e, actualRole: t, effectiveRole: n, permissions: r, isImpersonating: o, currentTeam: s } = Hu(), [i, a] = Ee(e.name), [l, c] = Ee(e.email), u = Ke(
44873
44873
  () => r.filter((m) => n?.permissionKeys.includes(m.key)),
44874
44874
  [r, n]
44875
44875
  );
@@ -45231,7 +45231,7 @@ function wU({
45231
45231
  onUseCaseBuiltChange: i,
45232
45232
  className: a
45233
45233
  }) {
45234
- const [l, c] = Ee(Xd), [u, m] = Ee("all"), d = We(() => ZB(r), [r]), p = We(() => Og(o), [o]), h = We(() => e.map((g, x) => ({ domain: g, domainIndex: x })).filter(({ domain: g }) => l === Xd || g.slug === l).map(({ domain: g, domainIndex: x }) => ({
45234
+ const [l, c] = Ee(Xd), [u, m] = Ee("all"), d = Ke(() => ZB(r), [r]), p = Ke(() => Og(o), [o]), h = Ke(() => e.map((g, x) => ({ domain: g, domainIndex: x })).filter(({ domain: g }) => l === Xd || g.slug === l).map(({ domain: g, domainIndex: x }) => ({
45235
45235
  domain: g,
45236
45236
  domainIndex: x,
45237
45237
  items: n.filter((y) => y.domainSlug === g.slug).filter((y) => {
@@ -46130,9 +46130,9 @@ function mk(e, t) {
46130
46130
  }
46131
46131
  const hv = (e, t, n) => Math.min(Math.max(e, t), n);
46132
46132
  function w4(e) {
46133
- const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Ee({}), [l, c] = Ee(null), [u, m] = Ee(!1), d = Ue({ layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i });
46133
+ const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Ee({}), [l, c] = Ee(null), [u, m] = Ee(!1), d = Ve({ layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i });
46134
46134
  d.current = { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i };
46135
- const p = Ue(null), h = Ue({ frame: null, drag: null, pan: null, point: null }), g = De(() => {
46135
+ const p = Ve(null), h = Ve({ frame: null, drag: null, pan: null, point: null }), g = De(() => {
46136
46136
  const I = p.current;
46137
46137
  if (!I) return;
46138
46138
  const N = I.getBoundingClientRect();
@@ -46156,7 +46156,7 @@ function w4(e) {
46156
46156
  ), w = De(() => {
46157
46157
  h.current.drag = null, h.current.point = null, c(null);
46158
46158
  }, []);
46159
- Xe(() => {
46159
+ Qe(() => {
46160
46160
  if (!l) return;
46161
46161
  const I = (N) => {
46162
46162
  if (N.key !== "Escape") return;
@@ -46167,13 +46167,13 @@ function w4(e) {
46167
46167
  }), w());
46168
46168
  };
46169
46169
  return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
46170
- }, [l, w]), Xe(() => {
46170
+ }, [l, w]), Qe(() => {
46171
46171
  if (!l && !u) return;
46172
46172
  const I = () => g();
46173
46173
  return window.addEventListener("scroll", I, { capture: !0, passive: !0 }), window.addEventListener("resize", I), () => {
46174
46174
  window.removeEventListener("scroll", I, { capture: !0 }), window.removeEventListener("resize", I);
46175
46175
  };
46176
- }, [l, u, g]), Xe(() => {
46176
+ }, [l, u, g]), Qe(() => {
46177
46177
  if (l)
46178
46178
  return kg({
46179
46179
  getPoint: () => h.current.point,
@@ -46186,7 +46186,7 @@ function w4(e) {
46186
46186
  };
46187
46187
  I.addEventListener("click", N, { capture: !0, once: !0 }), setTimeout(() => I.removeEventListener("click", N, { capture: !0 }), 0);
46188
46188
  }
46189
- const C = Ue(/* @__PURE__ */ new Map()), S = De(
46189
+ const C = Ve(/* @__PURE__ */ new Map()), S = De(
46190
46190
  (I) => (N) => {
46191
46191
  if (N)
46192
46192
  return Ui(N, {
@@ -46292,9 +46292,9 @@ function TU({
46292
46292
  disabled: u,
46293
46293
  className: m
46294
46294
  }) {
46295
- const d = Ut(), [p, h] = Ee([e.id]), [g, x] = Ee(null), y = Ue(e.id);
46295
+ const d = Ut(), [p, h] = Ee([e.id]), [g, x] = Ee(null), y = Ve(e.id);
46296
46296
  y.current !== e.id && (y.current = e.id, h([e.id]), x(null));
46297
- const w = We(() => {
46297
+ const w = Ke(() => {
46298
46298
  const B = [];
46299
46299
  let z = e;
46300
46300
  for (const G of p) {
@@ -46303,16 +46303,16 @@ function TU({
46303
46303
  B.push(Y), z = Y;
46304
46304
  }
46305
46305
  return B.length ? B : [e];
46306
- }, [e, p]), v = w[w.length - 1], C = We(
46306
+ }, [e, p]), v = w[w.length - 1], C = Ke(
46307
46307
  () => v4(v, { orientation: r, depth: o, nodeWidth: s, nodeHeight: i }),
46308
46308
  [v, r, o, s, i]
46309
- ), S = We(
46309
+ ), S = Ke(
46310
46310
  () => ({
46311
46311
  width: C.width + vl * 2,
46312
46312
  height: C.height + vl * 2
46313
46313
  }),
46314
46314
  [C]
46315
- ), E = We(() => {
46315
+ ), E = Ke(() => {
46316
46316
  const B = /* @__PURE__ */ new Map();
46317
46317
  for (const z of C.nodes)
46318
46318
  B.set(z.id, { ...z, x: z.x + vl, y: z.y + vl });
@@ -46337,8 +46337,8 @@ function TU({
46337
46337
  onNodeClick: R,
46338
46338
  onNodeDragEnd: c,
46339
46339
  disabled: u
46340
- }), { clearOffsets: N } = I, M = `${v.id}:${r}:${o}`, P = Ue(M);
46341
- Xe(() => {
46340
+ }), { clearOffsets: N } = I, M = `${v.id}:${r}:${o}`, P = Ve(M);
46341
+ Qe(() => {
46342
46342
  P.current !== M && (P.current = M, N());
46343
46343
  }, [M, N]);
46344
46344
  const F = De(
@@ -46354,7 +46354,7 @@ function TU({
46354
46354
  };
46355
46355
  },
46356
46356
  [E, I.offsets]
46357
- ), V = Ue(null), _ = g && E.has(g) ? g : v.id, D = De((B) => {
46357
+ ), V = Ve(null), _ = g && E.has(g) ? g : v.id, D = De((B) => {
46358
46358
  x(B), queueMicrotask(() => {
46359
46359
  const z = V.current?.querySelector(
46360
46360
  `[data-canvas-node="${CSS.escape(B)}"]`
@@ -46406,13 +46406,13 @@ function TU({
46406
46406
  }
46407
46407
  Z && (B.preventDefault(), D(Z));
46408
46408
  }
46409
- const H = Ue(null), { bindViewport: L } = I, j = De(
46409
+ const H = Ve(null), { bindViewport: L } = I, j = De(
46410
46410
  (B) => {
46411
46411
  H.current = B, L(B);
46412
46412
  },
46413
46413
  [L]
46414
46414
  );
46415
- Xe(() => {
46415
+ Qe(() => {
46416
46416
  const B = H.current, z = E.get(v.id);
46417
46417
  !B || !z || (B.scrollLeft = Math.max(0, z.x + z.width / 2 - B.clientWidth / 2), B.scrollTop = Math.max(0, z.y + z.height / 2 - B.clientHeight / 2));
46418
46418
  }, [E, v.id]);
@@ -46981,23 +46981,23 @@ function X4(e, t, n) {
46981
46981
  () => r === null ? Sa : Ra(r, o),
46982
46982
  [r, o]
46983
46983
  ), a = kr(s, i, L4);
46984
- return Xe(() => r === null ? void 0 : zg([r]), [r]), a;
46984
+ return Qe(() => r === null ? void 0 : zg([r]), [r]), a;
46985
46985
  }
46986
46986
  function VU(e, t, n) {
46987
- const r = n.needs, o = We(() => t.map((d) => ni(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = De(
46987
+ const r = n.needs, o = Ke(() => t.map((d) => ni(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = De(
46988
46988
  (d) => {
46989
46989
  const p = o.map((h) => Fg(h, d));
46990
46990
  return () => p.forEach((h) => h());
46991
46991
  },
46992
46992
  [s]
46993
- ), a = Ue(null), l = De(() => {
46993
+ ), a = Ve(null), l = De(() => {
46994
46994
  const d = o.map((g) => Ra(g, r)), p = a.current;
46995
46995
  if (p && p.signature === s && p.needs === r && p.states.length === d.length && p.states.every((g, x) => g === d[x]))
46996
46996
  return p.states;
46997
46997
  const h = Object.freeze(d);
46998
46998
  return a.current = { signature: s, needs: r, states: h }, h;
46999
- }, [s, r]), c = We(() => Object.freeze(o.map(() => Sa)), [s]), u = De(() => c, [c]), m = kr(i, l, u);
47000
- return Xe(() => zg(o), [s]), m;
46999
+ }, [s, r]), c = Ke(() => Object.freeze(o.map(() => Sa)), [s]), u = De(() => c, [c]), m = kr(i, l, u);
47000
+ return Qe(() => zg(o), [s]), m;
47001
47001
  }
47002
47002
  function FU() {
47003
47003
  return kr(wk, Lg, W4);
@@ -47399,8 +47399,8 @@ function LU({
47399
47399
  children: r,
47400
47400
  ...o
47401
47401
  }) {
47402
- const [s] = Ee(() => new sH({ transport: e, tenant: t, ...o })), i = Ue(t);
47403
- return Xe(() => (s.start(), () => s.stop()), [s]), Xe(() => {
47402
+ const [s] = Ee(() => new sH({ transport: e, tenant: t, ...o })), i = Ve(t);
47403
+ return Qe(() => (s.start(), () => s.stop()), [s]), Qe(() => {
47404
47404
  i.current !== t && (i.current = t, s.setTenant(t)), n && O4(t);
47405
47405
  }, [s, t, n]), /* @__PURE__ */ f(Rk.Provider, { value: s, children: r });
47406
47406
  }
@@ -47408,8 +47408,8 @@ function Ek() {
47408
47408
  return Ln(Rk);
47409
47409
  }
47410
47410
  function zU(e, t, n) {
47411
- const r = Ek(), o = Sk(Ck(t)), s = [...n].sort().join(","), i = Ue({ scope: t, events: n });
47412
- i.current = { scope: t, events: n }, Xe(() => {
47411
+ const r = Ek(), o = Sk(Ck(t)), s = [...n].sort().join(","), i = Ve({ scope: t, events: n });
47412
+ i.current = { scope: t, events: n }, Qe(() => {
47413
47413
  if (r)
47414
47414
  return r.acquire(e.type, i.current.scope, i.current.events);
47415
47415
  }, [r, e.type, o, s]);
@@ -47647,34 +47647,38 @@ function GU() {
47647
47647
  }
47648
47648
  const Mk = { inFlight: !1, settled: !1, error: void 0 };
47649
47649
  function jU(e, t, n) {
47650
- const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ni(e.type, t), l = X4(e, t, { needs: r }), [c, u] = Ee(Mk), m = Ue(n.fetch);
47650
+ const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ni(e.type, t), l = X4(e, t, { needs: r }), [c, u] = Ee(Mk), m = Ve(n.fetch);
47651
47651
  m.current = n.fetch;
47652
- const d = Ue(o);
47652
+ const d = Ve(o);
47653
47653
  d.current = o;
47654
- const p = Ue(!0);
47655
- Xe(() => (p.current = !0, () => {
47654
+ const p = Ve(!0);
47655
+ Qe(() => (p.current = !0, () => {
47656
47656
  p.current = !1;
47657
47657
  }), []);
47658
- const h = We(() => a === null || !s ? null : new kk(async () => {
47659
- const x = d.current ?? Dg();
47660
- u((y) => ({ ...y, inFlight: !0 }));
47661
- try {
47662
- const y = await m.current();
47663
- Gu(y, { source: "fetch", tag: r, tenant: x }), p.current && u({ inFlight: !1, settled: !0, error: void 0 });
47664
- } catch (y) {
47665
- p.current && u({ inFlight: !1, settled: !0, error: Tk(y) });
47666
- }
47667
- }, { minIntervalMs: i }), [a, r, s, i]);
47668
- Xe(() => {
47669
- if (h)
47670
- return h.runNow(), () => h.dispose();
47671
- }, [h]), Xe(() => {
47672
- if (!h || a === null) return;
47673
- const x = [a];
47674
- return Nk({ roots: () => x, request: () => h.request() });
47675
- }, [h, a]);
47676
- const g = De(() => h?.runNow(), [h]);
47677
- return We(
47658
+ const h = Ve(null);
47659
+ Qe(() => {
47660
+ if (a === null || !s) {
47661
+ h.current = null;
47662
+ return;
47663
+ }
47664
+ const x = new kk(async () => {
47665
+ const v = d.current ?? Dg();
47666
+ u((C) => ({ ...C, inFlight: !0 }));
47667
+ try {
47668
+ const C = await m.current();
47669
+ Gu(C, { source: "fetch", tag: r, tenant: v }), p.current && u({ inFlight: !1, settled: !0, error: void 0 });
47670
+ } catch (C) {
47671
+ p.current && u({ inFlight: !1, settled: !0, error: Tk(C) });
47672
+ }
47673
+ }, { minIntervalMs: i });
47674
+ h.current = x, x.runNow();
47675
+ const y = [a], w = Nk({ roots: () => y, request: () => x.request() });
47676
+ return () => {
47677
+ w(), x.dispose(), h.current === x && (h.current = null);
47678
+ };
47679
+ }, [a, r, s, i]);
47680
+ const g = De(() => h.current?.runNow(), []);
47681
+ return Ke(
47678
47682
  () => ({
47679
47683
  state: l,
47680
47684
  data: l.status === "present" ? l.record : void 0,
@@ -47687,36 +47691,41 @@ function jU(e, t, n) {
47687
47691
  );
47688
47692
  }
47689
47693
  function WU(e, t) {
47690
- const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, acceptsCreated: a = !0 } = t, [l, c] = Ee(Mk), u = Ue(t.fetch);
47694
+ const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, acceptsCreated: a = !0 } = t, [l, c] = Ee(Mk), u = Ve(t.fetch);
47691
47695
  u.current = t.fetch;
47692
- const m = Ue(o);
47696
+ const m = Ve(o);
47693
47697
  m.current = o;
47694
- const d = Ue(!0);
47695
- Xe(() => (d.current = !0, () => {
47698
+ const d = Ve(!0);
47699
+ Qe(() => (d.current = !0, () => {
47696
47700
  d.current = !1;
47697
- }), []), Xe(
47701
+ }), []), Qe(
47698
47702
  () => hH(n, { type: e.type, tag: r, acceptsCreated: a }),
47699
47703
  [n, e.type, r, a]
47700
47704
  );
47701
- const p = De((w) => vH(n, w), [n]), h = De(() => CH(n), [n]), g = kr(p, h, fH), x = We(() => s ? new kk(async () => {
47702
- const w = m.current ?? Dg();
47703
- c((v) => ({ ...v, inFlight: !0 }));
47704
- try {
47705
- const v = await u.current();
47706
- A4(v.items, { source: "fetch", tag: r, tenant: w }), gH(n, v.items.map((C) => RH(C, e.type)).filter(EH), v.meta), d.current && c({ inFlight: !1, settled: !0, error: void 0 });
47707
- } catch (v) {
47708
- d.current && c({ inFlight: !1, settled: !0, error: Tk(v) });
47705
+ const p = De((w) => vH(n, w), [n]), h = De(() => CH(n), [n]), g = kr(p, h, fH), x = Ve(null);
47706
+ Qe(() => {
47707
+ if (!s) {
47708
+ x.current = null;
47709
+ return;
47709
47710
  }
47710
- }, { minIntervalMs: i }) : null, [n, r, s, i, e.type]);
47711
- Xe(() => {
47712
- if (x)
47713
- return x.runNow(), () => x.dispose();
47714
- }, [x]), Xe(() => {
47715
- if (x)
47716
- return Nk({ roots: () => wH(n), request: () => x.request() });
47717
- }, [x, n]);
47718
- const y = De(() => x?.runNow(), [x]);
47719
- return We(
47711
+ const w = new kk(async () => {
47712
+ const C = m.current ?? Dg();
47713
+ c((S) => ({ ...S, inFlight: !0 }));
47714
+ try {
47715
+ const S = await u.current();
47716
+ A4(S.items, { source: "fetch", tag: r, tenant: C }), gH(n, S.items.map((E) => RH(E, e.type)).filter(EH), S.meta), d.current && c({ inFlight: !1, settled: !0, error: void 0 });
47717
+ } catch (S) {
47718
+ d.current && c({ inFlight: !1, settled: !0, error: Tk(S) });
47719
+ }
47720
+ }, { minIntervalMs: i });
47721
+ x.current = w, w.runNow();
47722
+ const v = Nk({ roots: () => wH(n), request: () => w.request() });
47723
+ return () => {
47724
+ v(), w.dispose(), x.current === w && (x.current = null);
47725
+ };
47726
+ }, [n, r, s, i, e.type]);
47727
+ const y = De(() => x.current?.runNow(), []);
47728
+ return Ke(
47720
47729
  () => ({
47721
47730
  items: g.items,
47722
47731
  pending: g.pending,
@@ -47738,7 +47747,7 @@ function KU(e, t) {
47738
47747
  });
47739
47748
  }
47740
47749
  function qU(e = 6e4) {
47741
- Xe(() => {
47750
+ Qe(() => {
47742
47751
  const t = setInterval(() => Y4(), e);
47743
47752
  return () => clearInterval(t);
47744
47753
  }, [e]);