@arcadeai/design-system 3.45.1 → 3.45.3

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.
Files changed (173) hide show
  1. package/dist/{DialogRoot-7HAboV4G.js → DialogRoot-D-_zaCC2.js} +1 -1
  2. package/dist/{DialogTrigger-BTPMu18a.js → DialogTrigger-BkQyc4gV.js} +3 -3
  3. package/dist/{FloatingPortalLite-uSCCGrVj.js → FloatingPortalLite-NI2VH-ZL.js} +1 -1
  4. package/dist/{ToolbarRootContext-BCFQEGJJ.js → ToolbarRootContext-xiYteIYN.js} +1 -1
  5. package/dist/{alert-dialog-C_Vt5qVj.js → alert-dialog-1T197KWl.js} +1 -1
  6. package/dist/{angular-html-CCvzJfQt.js → angular-html-D85fwMJh.js} +2 -2
  7. package/dist/{angular-html-DKFaBpuE.js → angular-html-D_RiD7M7.js} +2 -2
  8. package/dist/{angular-ts-DJElN9UQ.js → angular-ts-C3bnauCX.js} +2 -2
  9. package/dist/{angular-ts-BHLU9KRK.js → angular-ts-CjG-oO10.js} +2 -2
  10. package/dist/{apl-NjK7jFNJ.js → apl-92oxg4m4.js} +5 -5
  11. package/dist/{astro-bMBIA5W9.js → astro-BmZ7vV4W.js} +5 -5
  12. package/dist/{astro-D3wSNNcH.js → astro-Bxx43WjB.js} +4 -4
  13. package/dist/{blade-BiuHKr_S.js → blade-Ca0hUm9r.js} +6 -6
  14. package/dist/{blade-DRXVXpDl.js → blade-CsxOO3tZ.js} +7 -7
  15. package/dist/{c-CENSAUdD.js → c-CoKjrVSd.js} +1 -1
  16. package/dist/{c-tDGT7jEj.js → c-DF_jgqPC.js} +1 -1
  17. package/dist/{calendar-D6NEdfPP.js → calendar-BSBAthxy.js} +1 -1
  18. package/dist/{chunk-CWhphoD1.js → chunk-Dqa2HsxW.js} +2 -5
  19. package/dist/{cobol-CtDWjgdF.js → cobol-DW9I8MrZ.js} +2 -2
  20. package/dist/{coffee-C32NBpdX.js → coffee-Cci8qppL.js} +1 -1
  21. package/dist/{coffee-CEpG5t5A.js → coffee-IcWixSuh.js} +1 -1
  22. package/dist/components/index.js +10 -10
  23. package/dist/components/ui/atoms/alert-dialog.js +1 -1
  24. package/dist/components/ui/atoms/calendar.js +1 -1
  25. package/dist/components/ui/atoms/code-block.js +1 -1
  26. package/dist/components/ui/atoms/dialog.js +2 -2
  27. package/dist/components/ui/atoms/dropdown-menu.js +1 -1
  28. package/dist/components/ui/atoms/form.d.ts +1 -1
  29. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  30. package/dist/components/ui/atoms/hover-card.js +1 -1
  31. package/dist/components/ui/atoms/index.js +9 -9
  32. package/dist/components/ui/atoms/markdown.js +1 -1
  33. package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
  34. package/dist/components/ui/atoms/popover.js +1 -1
  35. package/dist/components/ui/atoms/scroll-button.js +1 -1
  36. package/dist/components/ui/atoms/select.js +1 -1
  37. package/dist/components/ui/atoms/sheet.js +2 -2
  38. package/dist/components/ui/atoms/sidebar.js +1 -1
  39. package/dist/components/ui/atoms/slider.js +1 -1
  40. package/dist/components/ui/atoms/tooltip.js +1 -1
  41. package/dist/components/ui/index.js +10 -10
  42. package/dist/components/ui/molecules/chat-history-item.js +1 -1
  43. package/dist/components/ui/molecules/command-bar.js +1 -1
  44. package/dist/components/ui/molecules/confirm-popover.js +1 -1
  45. package/dist/components/ui/molecules/date-time-picker.js +2 -2
  46. package/dist/components/ui/molecules/index.js +1 -1
  47. package/dist/components/ui/molecules/message.js +2 -2
  48. package/dist/components/ui/molecules/prompt-input.js +1 -1
  49. package/dist/components/ui/molecules/requirement-badges.js +1 -1
  50. package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
  51. package/dist/components/ui/molecules/steps-progress.js +64 -88
  52. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  53. package/dist/components/ui/molecules/user-nav.js +1 -1
  54. package/dist/{cpp-B0ApZrc9.js → cpp-BLc8IWxi.js} +4 -4
  55. package/dist/{cpp-Cz7x0sgj.js → cpp-W6KpbKKR.js} +3 -3
  56. package/dist/{crystal-Dp3_Rm_0.js → crystal-Bpo57dB-.js} +6 -6
  57. package/dist/{css-C0Wqv74W.js → css-Bg-v_ie3.js} +1 -1
  58. package/dist/{css-A5dPh-hw.js → css-DSy_xl5Z.js} +1 -1
  59. package/dist/{dropdown-menu-CwVAL83J.js → dropdown-menu-D982ge7V.js} +9 -9
  60. package/dist/{edge-DB-nxOg9.js → edge-Crbn4Nhk.js} +3 -3
  61. package/dist/{elixir-Bh05715y.js → elixir-CIj8u1AY.js} +1 -1
  62. package/dist/{elm-DhZqiJ0D.js → elm-CfYD1d_e.js} +1 -1
  63. package/dist/{erb-BAiiKgzO.js → erb-BJQo6_56.js} +2 -2
  64. package/dist/{getPseudoElementBounds-BIFEJg_E.js → getPseudoElementBounds-Cvds_dA3.js} +4 -4
  65. package/dist/{git-rebase-B-Y-hwdW.js → git-rebase-DVA6p9-5.js} +1 -1
  66. package/dist/{glimmer-js-DFMKp7MA.js → glimmer-js-DVJpm-CV.js} +4 -4
  67. package/dist/{glimmer-ts-BB_orehZ.js → glimmer-ts-kH8c2RJ9.js} +4 -4
  68. package/dist/{glsl-CdkYDqWc.js → glsl-BNc4P8Sc.js} +2 -2
  69. package/dist/{glsl-BMUVAYSF.js → glsl-Ckye8FrQ.js} +2 -2
  70. package/dist/{graphql-DVZ4Am5r.js → graphql-DEzE15R4.js} +5 -5
  71. package/dist/{graphql-BO7oc1vW.js → graphql-qf7evLPy.js} +4 -4
  72. package/dist/{hack-CtGoaz4-.js → hack-o7fvIqt8.js} +2 -2
  73. package/dist/{haml-DZGfKrgp.js → haml-C5GSorf3.js} +3 -3
  74. package/dist/{haml-DH7v2a1T.js → haml-Du2hspvc.js} +2 -2
  75. package/dist/{handlebars-C0ZsvHDH.js → handlebars-Bhpj_d0s.js} +4 -4
  76. package/dist/{handlebars-DULd3ZmC.js → handlebars-CQBI8FtD.js} +3 -3
  77. package/dist/{highlighted-body-OFNGDK62-BCIc09Ns.js → highlighted-body-OFNGDK62-DAGt7hUz.js} +1 -1
  78. package/dist/{hover-card-Bavb-slQ.js → hover-card-CO4afheH.js} +6 -6
  79. package/dist/{html-D4MIdpEU.js → html-D4w9Dm28.js} +3 -3
  80. package/dist/{html-derivative-Bz-6tuZ9.js → html-derivative-Bj-VxhMx.js} +1 -1
  81. package/dist/{html-derivative-DtJ1tdb9.js → html-derivative-CnXJYJW5.js} +1 -1
  82. package/dist/{html-CisyjiEv.js → html-v74m6eMZ.js} +3 -3
  83. package/dist/{http--CKuHaq6.js → http-Dp7myANe.js} +2 -2
  84. package/dist/{http-CX-tkfXJ.js → http-d-m0Mc7D.js} +4 -4
  85. package/dist/{hurl-BKTZkNJM.js → hurl-Bv2eBC_s.js} +2 -2
  86. package/dist/{hurl-CNgmevsW.js → hurl-DfTnDfTu.js} +2 -2
  87. package/dist/{java-nyWqLPcA.js → java-BKNJluE5.js} +1 -1
  88. package/dist/{java-BhtYksJu.js → java-OqMEerJ5.js} +1 -1
  89. package/dist/{javascript-B7hw7btH.js → javascript-D9OkSFEX.js} +1 -1
  90. package/dist/{javascript-8AY484FX.js → javascript-Da2xmRTV.js} +1 -1
  91. package/dist/{jinja-ILVKjN-h.js → jinja-DhkDj1Xi.js} +1 -1
  92. package/dist/{jinja-Cs8KQ05J.js → jinja-cMw3yszm.js} +1 -1
  93. package/dist/{jison-DeeC1Fpp.js → jison-CLtgki7v.js} +1 -1
  94. package/dist/{jison-L3KbL1Tm.js → jison-CShmv6Fb.js} +1 -1
  95. package/dist/{json-CFrUf_15.js → json-Df3TJ3vS.js} +1 -1
  96. package/dist/{jsx-C19pZCax.js → jsx-D0xGKDLn.js} +1 -1
  97. package/dist/{jsx-zfLWOWap.js → jsx-DSWrLxXO.js} +1 -1
  98. package/dist/{julia-BkeV_GAI.js → julia-BN-I8ZOK.js} +4 -4
  99. package/dist/{julia-cM9QIxaq.js → julia-BVtC6WAU.js} +3 -3
  100. package/dist/{just-CmaOAIrC.js → just-YBnaWXEe.js} +5 -5
  101. package/dist/{latex-CCJD2YW0.js → latex-C_OKc6Tr.js} +1 -1
  102. package/dist/{lib-B5caseGF.js → lib-pq2S0_yx.js} +3 -3
  103. package/dist/{liquid-BbxzyJM4.js → liquid-BK9PRBL0.js} +4 -4
  104. package/dist/{lua-Q8A6kKKb.js → lua-BLio8ECy.js} +2 -2
  105. package/dist/main.js +10 -10
  106. package/dist/{markdown-Skk5B2-K.js → markdown-C7WrG0wr.js} +78 -78
  107. package/dist/{marko-Cyw_40EQ.js → marko-Dwdxo91p.js} +3 -3
  108. package/dist/{marko-DcT3V8D5.js → marko-Fde_uU3F.js} +3 -3
  109. package/dist/{mdc-Kc_DncTv.js → mdc-BquaIcR3.js} +1 -1
  110. package/dist/{mdc-Bjifxtws.js → mdc-wawAspAJ.js} +2 -2
  111. package/dist/mermaid-GHXKKRXX-CpSctOnJ.js +3 -0
  112. package/dist/{nginx-2GbmfKNT.js → nginx-WcmIS9lz.js} +1 -1
  113. package/dist/{nim-Cvtoi7Us.js → nim-C_JBe3PW.js} +6 -6
  114. package/dist/{perl-CX-MiiDr.js → perl-DxzDgnFP.js} +5 -5
  115. package/dist/{php-iBJfpCPp.js → php-BeqSo3UK.js} +5 -5
  116. package/dist/{php-ZG4n9rUZ.js → php-BslXz14x.js} +6 -6
  117. package/dist/{popover-BnkWhaIi.js → popover-BGixi_lH.js} +7 -7
  118. package/dist/{popupStateMapping-BpjNa9Vs.js → popupStateMapping-B4Kue1zT.js} +370 -370
  119. package/dist/{pug-2I-RXpNR.js → pug-gvU6XHJO.js} +3 -3
  120. package/dist/{pug-Caizs4rF.js → pug-yS-UC2lD.js} +3 -3
  121. package/dist/{qml-BoCV4IvZ.js → qml-tenACNq4.js} +1 -1
  122. package/dist/{r-B5x6J8zw.js → r-DdU4yNZO.js} +1 -1
  123. package/dist/{razor-D3fp603X.js → razor-D5yYWriQ.js} +1 -1
  124. package/dist/{regexp-CmEgFPF7.js → regexp-BdO-BAkn.js} +1 -1
  125. package/dist/{regexp-DuxmzSB9.js → regexp-Dnzoo8L8.js} +1 -1
  126. package/dist/{rst-gpj3N0N_.js → rst-C-dkSMvp.js} +6 -6
  127. package/dist/{ruby-CmU0Z5fo.js → ruby-7kZgYYwi.js} +12 -12
  128. package/dist/{safePolygon-DkNjWjVX.js → safePolygon-B_GG47La.js} +2 -2
  129. package/dist/{sas-CC2Zc1Ed.js → sas-DtHo0e4p.js} +1 -1
  130. package/dist/{scss-B9O2M_0v.js → scss-86jh_zRg.js} +2 -2
  131. package/dist/{scss-CVKxdJLF.js → scss-bso_k44A.js} +2 -2
  132. package/dist/{select-CYFtC5dg.js → select-C-K7y0TX.js} +6 -6
  133. package/dist/{shellscript-C0LzMqgl.js → shellscript-BWxNrzSf.js} +1 -1
  134. package/dist/{shellsession-CF6VlYGY.js → shellsession-IETTXW5g.js} +1 -1
  135. package/dist/shim-D8dJbeBy.js +136 -0
  136. package/dist/{slider-DbzYORRs.js → slider-DaizWHo6.js} +4 -4
  137. package/dist/{soy-Bb3A5g7-.js → soy-33Xu8yiH.js} +1 -1
  138. package/dist/{sql-D5BZidSb.js → sql-B432xaB7.js} +1 -1
  139. package/dist/{sql-BKgzmiHp.js → sql-CpwNEwBO.js} +1 -1
  140. package/dist/{stata-B_L0aoJ1.js → stata-B5wF29_Y.js} +1 -1
  141. package/dist/{store-C2-4zmvj.js → store-B7JRjrkL.js} +1 -1
  142. package/dist/{surrealql-C0xAC_g5.js → surrealql-DYHeSEsk.js} +1 -1
  143. package/dist/{svelte-BaimehAA.js → svelte-oVhfAiMg.js} +3 -3
  144. package/dist/{svelte-FpnNQhYw.js → svelte-wsTs0hbr.js} +3 -3
  145. package/dist/{templ-Bag4mmVn.js → templ-DEwqY_Qt.js} +2 -2
  146. package/dist/{tex-DZgMegoC.js → tex-Bi7DoImG.js} +1 -1
  147. package/dist/{tooltip-BgYvlcwv.js → tooltip-CvZSk0iE.js} +6 -6
  148. package/dist/{ts-tags-C1lJngtr.js → ts-tags-D1P1fdht.js} +7 -7
  149. package/dist/{ts-tags-C3uBfS_j.js → ts-tags-DOmIyh9G.js} +7 -7
  150. package/dist/{tsx-BPoqShTM.js → tsx-B2e39lJI.js} +1 -1
  151. package/dist/{tsx-C-FNQM0T.js → tsx-oo1y-gXD.js} +1 -1
  152. package/dist/{twig-Rt8_5-_I.js → twig-DxRYLs_L.js} +5 -5
  153. package/dist/{typescript-B7wdlXbF.js → typescript-CWrXW5hv.js} +1 -1
  154. package/dist/{typescript-CroVN6-N.js → typescript-DoUOZlpP.js} +1 -1
  155. package/dist/{ui-DouvHx5k.js → ui-CPih1UEb.js} +1 -1
  156. package/dist/{useFocus-DZgGGAxw.js → useFocus-rejqe-zL.js} +5 -5
  157. package/dist/{useOpenInteractionType-CLGXwYtJ.js → useOpenInteractionType-CHrSydUp.js} +7 -7
  158. package/dist/{usePositioner-ku7JYvKU.js → usePositioner-s_qc8xb0.js} +1 -1
  159. package/dist/{useTriggerFocusGuards-DMglXkIl.js → useTriggerFocusGuards-BVVVsJu-.js} +1 -1
  160. package/dist/{vue-WV6e076M.js → vue-BEPn_TF_.js} +6 -6
  161. package/dist/{vue-BoIwcTNU.js → vue-NHWyIGu4.js} +5 -5
  162. package/dist/{vue-html-CF2Ge3FO.js → vue-html-CEiB3REn.js} +1 -1
  163. package/dist/{vue-html-DVl87uhv.js → vue-html-Cc4hXUE2.js} +1 -1
  164. package/dist/{vue-vine-o73v-MMj.js → vue-vine-D6cSZo1M.js} +3 -3
  165. package/dist/{vue-vine-tcPYViWT.js → vue-vine-DHhx8dYx.js} +3 -3
  166. package/dist/{web-BMVVZSj5.js → web-3DnwVIkW.js} +39 -39
  167. package/dist/{xml-C19nPMGd.js → xml-DRTU1nx4.js} +2 -2
  168. package/dist/{xml-Bww5eBn6.js → xml-DmGhA_Po.js} +2 -2
  169. package/dist/{xsl-CU-qdMyh.js → xsl-3eu75y43.js} +1 -1
  170. package/dist/{yaml-BQn8oezX.js → yaml-6pzV2NiB.js} +1 -1
  171. package/package.json +2 -2
  172. package/dist/mermaid-GHXKKRXX-Byt4Eksi.js +0 -3
  173. package/dist/shim-CsAgVHE8.js +0 -133
@@ -1,30 +1,30 @@
1
1
  "use client";
2
- import { r as e, t } from "./chunk-CWhphoD1.js";
3
- import { t as n } from "./useIsoLayoutEffect-CKOv1bV_.js";
4
- import { c as r, f as i, o as a, s as o, t as s, u as c } from "./useRenderElement-Cdy6ZfU9.js";
5
- import { t as l } from "./useStableCallback-DzEDGauc.js";
6
- import { S as u, _ as d, s as f, t as p } from "./createBaseUIEventDetails-JTJtk1s7.js";
7
- import { n as m } from "./useBaseUiId-BFABznPV.js";
8
- import { i as h, o as g, t as _ } from "./useOpenChangeComplete-D1WLBqEV.js";
9
- import { a as v, c as ee, d as y, f as b, g as te, m as x, p as ne, t as re, y as ie } from "./floating-ui.utils.dom-5U5b4xPf.js";
10
- import { a as ae } from "./detectBrowser-FBYSu3xM.js";
11
- import { a as S } from "./constants-3RAo_0fn.js";
12
- import { n as C, r as oe, t as se } from "./shadowDom-CDCExTGf.js";
13
- import { a as ce, r as le, t as w } from "./shim-CsAgVHE8.js";
14
- import { r as T, t as E } from "./event-DRs_Ywjy.js";
15
- import { c as ue } from "./composite-CmdWYKT-.js";
16
- import { t as D } from "./owner-BrzQrszh.js";
17
- import { t as O } from "./addEventListener-B4Gs94GY.js";
18
- import { n as de, t as fe } from "./useTimeout-BeaGP7up.js";
19
- import { t as k } from "./visuallyHidden-CEAV1xeA.js";
20
- import * as A from "react";
21
- import { jsx as j, jsxs as M } from "react/jsx-runtime";
22
- import * as N from "react-dom";
2
+ import { t as e } from "./chunk-Dqa2HsxW.js";
3
+ import { t } from "./useIsoLayoutEffect-CKOv1bV_.js";
4
+ import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-Cdy6ZfU9.js";
5
+ import { t as c } from "./useStableCallback-DzEDGauc.js";
6
+ import { S as l, _ as u, s as d, t as f } from "./createBaseUIEventDetails-JTJtk1s7.js";
7
+ import { n as p } from "./useBaseUiId-BFABznPV.js";
8
+ import { i as m, o as h, t as g } from "./useOpenChangeComplete-D1WLBqEV.js";
9
+ import { a as _, c as v, d as y, f as b, g as x, m as S, p as ee, t as te, y as ne } from "./floating-ui.utils.dom-5U5b4xPf.js";
10
+ import { a as C } from "./detectBrowser-FBYSu3xM.js";
11
+ import { a as re } from "./constants-3RAo_0fn.js";
12
+ import { n as w, r as ie, t as T } from "./shadowDom-CDCExTGf.js";
13
+ import { i as ae, n as oe, o as se, t as E } from "./shim-D8dJbeBy.js";
14
+ import { r as D, t as O } from "./event-DRs_Ywjy.js";
15
+ import { c as ce } from "./composite-CmdWYKT-.js";
16
+ import { t as k } from "./owner-BrzQrszh.js";
17
+ import { t as A } from "./addEventListener-B4Gs94GY.js";
18
+ import { n as le, t as ue } from "./useTimeout-BeaGP7up.js";
19
+ import { t as j } from "./visuallyHidden-CEAV1xeA.js";
20
+ import * as M from "react";
21
+ import { jsx as N, jsxs as P } from "react/jsx-runtime";
22
+ import * as F from "react-dom";
23
23
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js
24
- function P(e, t, n = !0) {
25
- return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...P(e, t.id, n)]);
24
+ function de(e, t, n = !0) {
25
+ return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...de(e, t.id, n)]);
26
26
  }
27
- function F(e, t) {
27
+ function I(e, t) {
28
28
  let n = [], r = e.find((e) => e.id === t)?.parentId;
29
29
  for (; r;) {
30
30
  let t = e.find((e) => e.id === r);
@@ -34,141 +34,141 @@ function F(e, t) {
34
34
  }
35
35
  //#endregion
36
36
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js
37
- var I = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
38
- function L(e) {
37
+ var L = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
38
+ function R(e) {
39
39
  let t = e.assignedSlot;
40
40
  if (t) return t;
41
41
  if (e.parentElement) return e.parentElement;
42
42
  let n = e.getRootNode();
43
- return te(n) ? n.host : null;
43
+ return x(n) ? n.host : null;
44
44
  }
45
- function R(e) {
46
- for (let t of Array.from(e.children)) if (v(t) === "summary") return t;
45
+ function z(e) {
46
+ for (let t of Array.from(e.children)) if (_(t) === "summary") return t;
47
47
  return null;
48
48
  }
49
- function z(e, t) {
50
- let n = R(t);
51
- return !!n && (e === n || C(n, e));
52
- }
53
- function B(e) {
54
- let t = e ? v(e) : "";
55
- return e != null && e.matches(I) && (t !== "summary" || e.parentElement != null && v(e.parentElement) === "details" && R(e.parentElement) === e) && (t !== "details" || R(e) == null) && (t !== "input" || e.type !== "hidden");
49
+ function B(e, t) {
50
+ let n = z(t);
51
+ return !!n && (e === n || w(n, e));
56
52
  }
57
53
  function V(e) {
58
- if (!B(e) || !e.isConnected || e.matches(":disabled")) return !1;
59
- for (let t = e; t; t = L(t)) {
60
- let n = t !== e, r = v(t) === "slot";
61
- if (t.hasAttribute("inert") || n && v(t) === "details" && !t.open && !z(e, t) || t.hasAttribute("hidden") || !r && !H(t, n)) return !1;
54
+ let t = e ? _(e) : "";
55
+ return e != null && e.matches(L) && (t !== "summary" || e.parentElement != null && _(e.parentElement) === "details" && z(e.parentElement) === e) && (t !== "details" || z(e) == null) && (t !== "input" || e.type !== "hidden");
56
+ }
57
+ function H(e) {
58
+ if (!V(e) || !e.isConnected || e.matches(":disabled")) return !1;
59
+ for (let t = e; t; t = R(t)) {
60
+ let n = t !== e, r = _(t) === "slot";
61
+ if (t.hasAttribute("inert") || n && _(t) === "details" && !t.open && !B(e, t) || t.hasAttribute("hidden") || !r && !U(t, n)) return !1;
62
62
  }
63
63
  return !0;
64
64
  }
65
- function H(e, t) {
66
- let n = re(e);
67
- return t ? n.display !== "none" : ue(e, n);
65
+ function U(e, t) {
66
+ let n = te(e);
67
+ return t ? n.display !== "none" : ce(e, n);
68
68
  }
69
- function U(e) {
69
+ function W(e) {
70
70
  let t = e.tabIndex;
71
71
  if (t < 0) {
72
- let t = v(e);
72
+ let t = _(e);
73
73
  if (t === "details" || t === "audio" || t === "video" || b(e) && e.isContentEditable) return 0;
74
74
  }
75
75
  return t;
76
76
  }
77
- function W(e) {
78
- if (v(e) !== "input") return null;
77
+ function G(e) {
78
+ if (_(e) !== "input") return null;
79
79
  let t = e;
80
80
  return t.type === "radio" && t.name !== "" ? t : null;
81
81
  }
82
- function G(e, t) {
83
- let n = W(e);
82
+ function K(e, t) {
83
+ let n = G(e);
84
84
  if (!n) return !0;
85
85
  let r = t.find((e) => {
86
- let t = W(e);
86
+ let t = G(e);
87
87
  return t?.name === n.name && t.form === n.form && t.checked;
88
88
  });
89
89
  return r ? r === n : t.find((e) => {
90
- let t = W(e);
90
+ let t = G(e);
91
91
  return t?.name === n.name && t.form === n.form;
92
92
  }) === n;
93
93
  }
94
- function K(e) {
95
- if (b(e) && v(e) === "slot") {
94
+ function q(e) {
95
+ if (b(e) && _(e) === "slot") {
96
96
  let t = e.assignedElements({ flatten: !0 });
97
97
  if (t.length > 0) return t;
98
98
  }
99
99
  return b(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
100
100
  }
101
- function q(e, t) {
102
- K(e).forEach((e) => {
103
- B(e) && t.push(e), q(e, t);
101
+ function J(e, t) {
102
+ q(e).forEach((e) => {
103
+ V(e) && t.push(e), J(e, t);
104
104
  });
105
105
  }
106
- function J(e, t, n) {
107
- K(e).forEach((e) => {
108
- b(e) && e.matches(t) && n.push(e), J(e, t, n);
106
+ function Y(e, t, n) {
107
+ q(e).forEach((e) => {
108
+ b(e) && e.matches(t) && n.push(e), Y(e, t, n);
109
109
  });
110
110
  }
111
- function pe(e) {
112
- return V(e) && U(e) >= 0;
111
+ function fe(e) {
112
+ return H(e) && W(e) >= 0;
113
113
  }
114
- function me(e) {
114
+ function pe(e) {
115
115
  let t = [];
116
- return q(e, t), t.filter(V);
116
+ return J(e, t), t.filter(H);
117
117
  }
118
- function Y(e) {
119
- let t = me(e);
120
- return t.filter((e) => U(e) >= 0 && G(e, t));
118
+ function X(e) {
119
+ let t = pe(e);
120
+ return t.filter((e) => W(e) >= 0 && K(e, t));
121
121
  }
122
- function he(e, t) {
123
- let n = Y(e), r = n.length;
122
+ function me(e, t) {
123
+ let n = X(e), r = n.length;
124
124
  if (r === 0) return;
125
- let i = se(D(e)), a = n.indexOf(i);
125
+ let i = T(k(e)), a = n.indexOf(i);
126
126
  return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
127
127
  }
128
- function ge(e) {
129
- return he(D(e).body, 1) || e;
128
+ function he(e) {
129
+ return me(k(e).body, 1) || e;
130
130
  }
131
- function _e(e) {
132
- return he(D(e).body, -1) || e;
131
+ function ge(e) {
132
+ return me(k(e).body, -1) || e;
133
133
  }
134
- function ve(e, t) {
134
+ function _e(e, t) {
135
135
  if (!e) return null;
136
- let n = Y(D(e).body), r = n.length;
136
+ let n = X(k(e).body), r = n.length;
137
137
  if (r === 0) return null;
138
138
  let i = n.indexOf(e);
139
139
  return i === -1 ? null : n[(i + t + r) % r];
140
140
  }
141
- function ye(e) {
142
- return ve(e, 1);
141
+ function ve(e) {
142
+ return _e(e, 1);
143
143
  }
144
- function be(e) {
145
- return ve(e, -1);
144
+ function ye(e) {
145
+ return _e(e, -1);
146
146
  }
147
- function X(e, t) {
147
+ function Z(e, t) {
148
148
  let n = t || e.currentTarget, r = e.relatedTarget;
149
- return !r || !C(n, r);
149
+ return !r || !w(n, r);
150
150
  }
151
- function xe(e) {
152
- Y(e).forEach((e) => {
151
+ function be(e) {
152
+ X(e).forEach((e) => {
153
153
  e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
154
154
  });
155
155
  }
156
- function Se(e) {
156
+ function xe(e) {
157
157
  let t = [];
158
- J(e, "[data-tabindex]", t), t.forEach((e) => {
158
+ Y(e, "[data-tabindex]", t), t.forEach((e) => {
159
159
  let t = e.dataset.tabindex;
160
160
  delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
161
161
  });
162
162
  }
163
163
  //#endregion
164
164
  //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/useOnFirstRender.js
165
- function Ce(e) {
166
- let t = A.useRef(!0);
165
+ function Se(e) {
166
+ let t = M.useRef(!0);
167
167
  t.current && (t.current = !1, e());
168
168
  }
169
169
  //#endregion
170
170
  //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/mergeCleanups.js
171
- function Z(...e) {
171
+ function Q(...e) {
172
172
  return () => {
173
173
  for (let t = 0; t < e.length; t += 1) {
174
174
  let n = e[t];
@@ -178,25 +178,25 @@ function Z(...e) {
178
178
  }
179
179
  //#endregion
180
180
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/utils/FocusGuard.js
181
- var Q = /*#__PURE__*/ A.forwardRef(function(e, t) {
182
- let [r, i] = A.useState();
183
- n(() => {
184
- ae && i("button");
181
+ var Ce = /*#__PURE__*/ M.forwardRef(function(e, n) {
182
+ let [r, i] = M.useState();
183
+ t(() => {
184
+ C && i("button");
185
185
  }, []);
186
186
  let a = {
187
187
  tabIndex: 0,
188
188
  role: r
189
189
  };
190
- return /*#__PURE__*/ j("span", {
190
+ return /*#__PURE__*/ N("span", {
191
191
  ...e,
192
- ref: t,
193
- style: k,
192
+ ref: n,
193
+ style: j,
194
194
  "aria-hidden": r ? void 0 : !0,
195
195
  ...a,
196
196
  "data-base-ui-focus-guard": ""
197
197
  });
198
198
  });
199
- process.env.NODE_ENV !== "production" && (Q.displayName = "FocusGuard");
199
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "FocusGuard");
200
200
  //#endregion
201
201
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
202
202
  function we(e) {
@@ -209,20 +209,20 @@ var Te = { style: { transition: "none" } }, Ee = "data-base-ui-click-trigger", D
209
209
  position: "fixed",
210
210
  top: 0,
211
211
  left: 0
212
- }, Ae = /*#__PURE__*/ A.createContext(null);
212
+ }, Ae = /*#__PURE__*/ M.createContext(null);
213
213
  process.env.NODE_ENV !== "production" && (Ae.displayName = "PortalContext");
214
- var je = () => A.useContext(Ae), Me = we("portal");
214
+ var je = () => M.useContext(Ae), Me = we("portal");
215
215
  function Ne(e = {}) {
216
- let { ref: t, container: r, componentProps: i = a, elementProps: o } = e, c = m(), u = je()?.portalNode, [d, f] = A.useState(null), [p, h] = A.useState(null), g = l((e) => {
216
+ let { ref: n, container: r, componentProps: a = i, elementProps: s } = e, l = p(), u = je()?.portalNode, [d, f] = M.useState(null), [m, h] = M.useState(null), g = c((e) => {
217
217
  e !== null && h(e);
218
- }), _ = A.useRef(null);
219
- n(() => {
218
+ }), _ = M.useRef(null);
219
+ t(() => {
220
220
  if (r === null) {
221
221
  _.current && (_.current = null, h(null), f(null));
222
222
  return;
223
223
  }
224
- if (c == null) return;
225
- let e = (r && (x(r) ? r : r.current)) ?? u ?? document.body;
224
+ if (l == null) return;
225
+ let e = (r && (S(r) ? r : r.current)) ?? u ?? document.body;
226
226
  if (e == null) {
227
227
  _.current && (_.current = null, h(null), f(null));
228
228
  return;
@@ -231,64 +231,64 @@ function Ne(e = {}) {
231
231
  }, [
232
232
  r,
233
233
  u,
234
- c
234
+ l
235
235
  ]);
236
- let v = s("div", i, {
237
- ref: [t, g],
236
+ let v = o("div", a, {
237
+ ref: [n, g],
238
238
  props: [{
239
- id: c,
239
+ id: l,
240
240
  [Me]: ""
241
- }, o]
241
+ }, s]
242
242
  });
243
243
  return {
244
- portalNode: p,
245
- portalSubtree: d && v ? /*#__PURE__*/ N.createPortal(v, d) : null
244
+ portalNode: m,
245
+ portalSubtree: d && v ? /*#__PURE__*/ F.createPortal(v, d) : null
246
246
  };
247
247
  }
248
- var Pe = /*#__PURE__*/ A.forwardRef(function(e, t) {
248
+ var Pe = /*#__PURE__*/ M.forwardRef(function(e, t) {
249
249
  let { render: n, className: r, style: i, children: a, container: o, renderGuards: s, ...c } = e, { portalNode: l, portalSubtree: u } = Ne({
250
250
  container: o,
251
251
  ref: t,
252
252
  componentProps: e,
253
253
  elementProps: c
254
- }), d = A.useRef(null), f = A.useRef(null), m = A.useRef(null), h = A.useRef(null), [g, _] = A.useState(null), v = A.useRef(!1), ee = g?.modal, y = g?.open, b = typeof s == "boolean" ? s : !!g && !g.modal && g.open && !!l;
255
- A.useEffect(() => {
256
- if (!l || ee) return;
254
+ }), d = M.useRef(null), p = M.useRef(null), m = M.useRef(null), h = M.useRef(null), [g, _] = M.useState(null), v = M.useRef(!1), y = g?.modal, b = g?.open, x = typeof s == "boolean" ? s : !!g && !g.modal && g.open && !!l;
255
+ M.useEffect(() => {
256
+ if (!l || y) return;
257
257
  function e(e) {
258
- l && e.relatedTarget && X(e) && (e.type === "focusin" ? v.current &&= (Se(l), !1) : (xe(l), v.current = !0));
258
+ l && e.relatedTarget && Z(e) && (e.type === "focusin" ? v.current &&= (xe(l), !1) : (be(l), v.current = !0));
259
259
  }
260
- return Z(O(l, "focusin", e, !0), O(l, "focusout", e, !0));
261
- }, [l, ee]), A.useEffect(() => {
262
- !l || y !== !1 || (Se(l), v.current = !1);
263
- }, [y, l]);
264
- let te = A.useMemo(() => ({
260
+ return Q(A(l, "focusin", e, !0), A(l, "focusout", e, !0));
261
+ }, [l, y]), M.useEffect(() => {
262
+ !l || b !== !1 || (xe(l), v.current = !1);
263
+ }, [b, l]);
264
+ let S = M.useMemo(() => ({
265
265
  beforeOutsideRef: d,
266
- afterOutsideRef: f,
266
+ afterOutsideRef: p,
267
267
  beforeInsideRef: m,
268
268
  afterInsideRef: h,
269
269
  portalNode: l,
270
270
  setFocusManagerState: _
271
271
  }), [l]);
272
- return /*#__PURE__*/ M(A.Fragment, { children: [u, /*#__PURE__*/ M(Ae.Provider, {
273
- value: te,
272
+ return /*#__PURE__*/ P(M.Fragment, { children: [u, /*#__PURE__*/ P(Ae.Provider, {
273
+ value: S,
274
274
  children: [
275
- b && l && /*#__PURE__*/ j(Q, {
275
+ x && l && /*#__PURE__*/ N(Ce, {
276
276
  "data-type": "outside",
277
277
  ref: d,
278
278
  onFocus: (e) => {
279
- X(e, l) ? m.current?.focus() : _e(g ? g.domReference : null)?.focus();
279
+ Z(e, l) ? m.current?.focus() : ge(g ? g.domReference : null)?.focus();
280
280
  }
281
281
  }),
282
- b && l && /*#__PURE__*/ j("span", {
282
+ x && l && /*#__PURE__*/ N("span", {
283
283
  "aria-owns": l.id,
284
284
  style: ke
285
285
  }),
286
- l && /*#__PURE__*/ N.createPortal(a, l),
287
- b && l && /*#__PURE__*/ j(Q, {
286
+ l && /*#__PURE__*/ F.createPortal(a, l),
287
+ x && l && /*#__PURE__*/ N(Ce, {
288
288
  "data-type": "outside",
289
- ref: f,
289
+ ref: p,
290
290
  onFocus: (e) => {
291
- X(e, l) ? h.current?.focus() : (ge(g ? g.domReference : null)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, p("focus-out", e.nativeEvent)));
291
+ Z(e, l) ? h.current?.focus() : (he(g ? g.domReference : null)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, f("focus-out", e.nativeEvent)));
292
292
  }
293
293
  })
294
294
  ]
@@ -323,20 +323,20 @@ var Ie = class {
323
323
  let t = this.nodesRef.current.findIndex((t) => t === e);
324
324
  t !== -1 && this.nodesRef.current.splice(t, 1);
325
325
  }
326
- }, Le = /*#__PURE__*/ A.createContext(null);
326
+ }, Le = /*#__PURE__*/ M.createContext(null);
327
327
  process.env.NODE_ENV !== "production" && (Le.displayName = "FloatingNodeContext");
328
- var Re = /*#__PURE__*/ A.createContext(null);
328
+ var Re = /*#__PURE__*/ M.createContext(null);
329
329
  process.env.NODE_ENV !== "production" && (Re.displayName = "FloatingTreeContext");
330
- var ze = () => A.useContext(Le)?.id || null, Be = (e) => {
331
- let t = A.useContext(Re);
330
+ var ze = () => M.useContext(Le)?.id || null, Be = (e) => {
331
+ let t = M.useContext(Re);
332
332
  return e ?? t;
333
333
  };
334
334
  function Ve(e) {
335
- let t = m(), r = Be(e), i = ze();
336
- return n(() => {
337
- if (!t) return;
335
+ let n = p(), r = Be(e), i = ze();
336
+ return t(() => {
337
+ if (!n) return;
338
338
  let e = {
339
- id: t,
339
+ id: n,
340
340
  parentId: i
341
341
  };
342
342
  return r?.addNode(e), () => {
@@ -344,14 +344,14 @@ function Ve(e) {
344
344
  };
345
345
  }, [
346
346
  r,
347
- t,
347
+ n,
348
348
  i
349
- ]), t;
349
+ ]), n;
350
350
  }
351
351
  function He(e) {
352
352
  let { children: t, id: n } = e, r = ze();
353
- return /*#__PURE__*/ j(Le.Provider, {
354
- value: A.useMemo(() => ({
353
+ return /*#__PURE__*/ N(Le.Provider, {
354
+ value: M.useMemo(() => ({
355
355
  id: n,
356
356
  parentId: r
357
357
  }), [n, r]),
@@ -359,9 +359,9 @@ function He(e) {
359
359
  });
360
360
  }
361
361
  function Ue(e) {
362
- let { children: t, externalTree: n } = e, r = i(() => n ?? new Ie()).current;
363
- return /*#__PURE__*/ j(Re.Provider, {
364
- value: r,
362
+ let { children: t, externalTree: n } = e, i = r(() => n ?? new Ie()).current;
363
+ return /*#__PURE__*/ N(Re.Provider, {
364
+ value: i,
365
365
  children: t
366
366
  });
367
367
  }
@@ -381,235 +381,235 @@ function Ke(e) {
381
381
  };
382
382
  }
383
383
  function qe(e, t = {}) {
384
- let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = Ge, referencePressEvent: s = "sloppy", bubbles: c, externalTree: m } = t, h = "rootStore" in e ? e.rootStore : e, g = h.useState("open"), _ = h.useState("floatingElement"), { dataRef: v } = h.context, x = Be(m), ae = l(typeof i == "function" ? i : () => !1), S = typeof i == "function" ? ae : i, se = S !== !1, w = l(() => a), { escapeKey: E, outsidePress: ue } = Ke(c), k = A.useRef(!1), j = A.useRef(!1), M = A.useRef(!1), N = A.useRef(!1), F = A.useRef(""), I = A.useRef(null), L = de(), R = de(), z = l(() => {
385
- R.clear(), v.current.insideReactTree = !1;
386
- }), B = l((e) => {
387
- let t = v.current.floatingContext?.nodeId;
388
- return (x ? P(x.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
389
- }), V = l((e) => le(e, h.select("floatingElement")) || le(e, h.select("domReferenceElement"))), H = l((e) => {
390
- o() && h.setOpen(!1, p(u, e.nativeEvent));
391
- }), U = l((e) => {
392
- if (!g || !n || !r || e.key !== "Escape" || N.current || !E && B("__escapeKeyBubbles")) return;
393
- let t = p(f, T(e) ? e.nativeEvent : e);
394
- h.setOpen(!1, t), t.isCanceled || e.preventDefault(), !E && !t.isPropagationAllowed && e.stopPropagation();
395
- }), W = l(() => {
396
- v.current.insideReactTree = !0, R.start(0, z);
397
- }), G = l((e) => {
384
+ let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = Ge, referencePressEvent: s = "sloppy", bubbles: p, externalTree: m } = t, h = "rootStore" in e ? e.rootStore : e, g = h.useState("open"), _ = h.useState("floatingElement"), { dataRef: S } = h.context, C = Be(m), re = c(typeof i == "function" ? i : () => !1), T = typeof i == "function" ? re : i, oe = T !== !1, E = c(() => a), { escapeKey: O, outsidePress: ce } = Ke(p), j = M.useRef(!1), N = M.useRef(!1), P = M.useRef(!1), F = M.useRef(!1), I = M.useRef(""), L = M.useRef(null), R = le(), z = le(), B = c(() => {
385
+ z.clear(), S.current.insideReactTree = !1;
386
+ }), V = c((e) => {
387
+ let t = S.current.floatingContext?.nodeId;
388
+ return (C ? de(C.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
389
+ }), H = c((e) => ae(e, h.select("floatingElement")) || ae(e, h.select("domReferenceElement"))), U = c((e) => {
390
+ o() && h.setOpen(!1, f(l, e.nativeEvent));
391
+ }), W = c((e) => {
392
+ if (!g || !n || !r || e.key !== "Escape" || F.current || !O && V("__escapeKeyBubbles")) return;
393
+ let t = f(d, D(e) ? e.nativeEvent : e);
394
+ h.setOpen(!1, t), t.isCanceled || e.preventDefault(), !O && !t.isPropagationAllowed && e.stopPropagation();
395
+ }), G = c(() => {
396
+ S.current.insideReactTree = !0, z.start(0, B);
397
+ }), K = c((e) => {
398
398
  if (!g || !n || e.button !== 0) return;
399
- let t = oe(e.nativeEvent);
400
- C(h.select("floatingElement"), t) && (k.current || (k.current = !0, j.current = !1));
401
- }), K = l((e) => {
402
- !g || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && k.current && (j.current = !0);
399
+ let t = ie(e.nativeEvent);
400
+ w(h.select("floatingElement"), t) && (j.current || (j.current = !0, N.current = !1));
401
+ }), q = c((e) => {
402
+ !g || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && j.current && (N.current = !0);
403
403
  });
404
- A.useEffect(() => {
404
+ M.useEffect(() => {
405
405
  if (!g || !n) return;
406
- v.current.__escapeKeyBubbles = E, v.current.__outsidePressBubbles = ue;
407
- let e = new fe(), t = new fe();
406
+ S.current.__escapeKeyBubbles = O, S.current.__outsidePressBubbles = ce;
407
+ let e = new ue(), t = new ue();
408
408
  function i() {
409
- e.clear(), N.current = !0;
409
+ e.clear(), F.current = !0;
410
410
  }
411
411
  function a() {
412
- e.start(ie() ? 5 : 0, () => {
413
- N.current = !1;
412
+ e.start(ne() ? 5 : 0, () => {
413
+ F.current = !1;
414
414
  });
415
415
  }
416
416
  function o() {
417
- M.current = !0, t.start(0, () => {
418
- M.current = !1;
417
+ P.current = !0, t.start(0, () => {
418
+ P.current = !1;
419
419
  });
420
420
  }
421
421
  function s() {
422
- k.current = !1, j.current = !1;
422
+ j.current = !1, N.current = !1;
423
423
  }
424
424
  function c() {
425
- let e = F.current, t = e === "pen" || !e ? "mouse" : e, n = w(), r = typeof n == "function" ? n() : n;
425
+ let e = I.current, t = e === "pen" || !e ? "mouse" : e, n = E(), r = typeof n == "function" ? n() : n;
426
426
  return typeof r == "string" ? r : r[t];
427
427
  }
428
428
  function l(e) {
429
429
  let t = c();
430
430
  return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
431
431
  }
432
- function u(e) {
433
- let t = v.current.floatingContext?.nodeId, n = x && P(x.nodesRef.current, t).some((t) => le(e, t.context?.elements.floating));
434
- return V(e) || n;
432
+ function d(e) {
433
+ let t = S.current.floatingContext?.nodeId, n = C && de(C.nodesRef.current, t).some((t) => ae(e, t.context?.elements.floating));
434
+ return H(e) || n;
435
435
  }
436
- function f(e) {
436
+ function p(e) {
437
437
  if (l(e)) {
438
- e.type !== "click" && !V(e) && (t.clear(), M.current = !1), z();
438
+ e.type !== "click" && !H(e) && (t.clear(), P.current = !1), B();
439
439
  return;
440
440
  }
441
- if (v.current.insideReactTree) {
442
- z();
441
+ if (S.current.insideReactTree) {
442
+ B();
443
443
  return;
444
444
  }
445
- let n = oe(e), r = `[${we("inert")}]`, i = y(n) ? n.getRootNode() : null, a = Array.from((te(i) ? i : D(h.select("floatingElement"))).querySelectorAll(r)), o = h.context.triggerElements;
446
- if (n && (o.hasElement(n) || o.hasMatchingElement((e) => C(e, n)))) return;
445
+ let n = ie(e), r = `[${we("inert")}]`, i = y(n) ? n.getRootNode() : null, a = Array.from((x(i) ? i : k(h.select("floatingElement"))).querySelectorAll(r)), o = h.context.triggerElements;
446
+ if (n && (o.hasElement(n) || o.hasMatchingElement((e) => w(e, n)))) return;
447
447
  let s = y(n) ? n : null;
448
- for (; s && !ne(s);) {
449
- let e = ee(s);
450
- if (ne(e) || !y(e)) break;
448
+ for (; s && !ee(s);) {
449
+ let e = v(s);
450
+ if (ee(e) || !y(e)) break;
451
451
  s = e;
452
452
  }
453
- if (!(a.length && y(n) && !ce(n) && !C(n, h.select("floatingElement")) && a.every((e) => !C(s, e)))) {
453
+ if (!(a.length && y(n) && !se(n) && !w(n, h.select("floatingElement")) && a.every((e) => !w(s, e)))) {
454
454
  if (b(n) && !("touches" in e)) {
455
- let t = ne(n), r = re(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
455
+ let t = ee(n), r = te(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
456
456
  if (u || d) return;
457
457
  }
458
- if (!u(e)) {
459
- if (c() === "intentional" && M.current) {
460
- t.clear(), M.current = !1;
458
+ if (!d(e)) {
459
+ if (c() === "intentional" && P.current) {
460
+ t.clear(), P.current = !1;
461
461
  return;
462
462
  }
463
- typeof S == "function" && !S(e) || B("__outsidePressBubbles") || (h.setOpen(!1, p(d, e)), z());
463
+ typeof T == "function" && !T(e) || V("__outsidePressBubbles") || (h.setOpen(!1, f(u, e)), B());
464
464
  }
465
465
  }
466
466
  }
467
467
  function m(e) {
468
- c() !== "sloppy" || e.pointerType === "touch" || !h.select("open") || !n || V(e) || f(e);
468
+ c() !== "sloppy" || e.pointerType === "touch" || !h.select("open") || !n || H(e) || p(e);
469
469
  }
470
- function ae(e) {
471
- if (c() !== "sloppy" || !h.select("open") || !n || V(e)) return;
470
+ function re(e) {
471
+ if (c() !== "sloppy" || !h.select("open") || !n || H(e)) return;
472
472
  let t = e.touches[0];
473
- t && (I.current = {
473
+ t && (L.current = {
474
474
  startTime: Date.now(),
475
475
  startX: t.clientX,
476
476
  startY: t.clientY,
477
477
  dismissOnTouchEnd: !1,
478
478
  dismissOnMouseDown: !0
479
- }, L.start(1e3, () => {
480
- I.current && (I.current.dismissOnTouchEnd = !1, I.current.dismissOnMouseDown = !1);
479
+ }, R.start(1e3, () => {
480
+ L.current && (L.current.dismissOnTouchEnd = !1, L.current.dismissOnMouseDown = !1);
481
481
  }));
482
482
  }
483
- function T(e, t) {
484
- let n = oe(e);
483
+ function D(e, t) {
484
+ let n = ie(e);
485
485
  if (!n) return;
486
- let r = O(n, e.type, () => {
486
+ let r = A(n, e.type, () => {
487
487
  t(e), r();
488
488
  });
489
489
  }
490
- function de(e) {
491
- F.current = "touch", T(e, ae);
490
+ function le(e) {
491
+ I.current = "touch", D(e, re);
492
492
  }
493
- function A(e) {
494
- L.clear(), e.type === "pointerdown" && (F.current = e.pointerType), !(e.type === "mousedown" && I.current && !I.current.dismissOnMouseDown) && T(e, (e) => {
495
- e.type === "pointerdown" ? m(e) : f(e);
493
+ function M(e) {
494
+ R.clear(), e.type === "pointerdown" && (I.current = e.pointerType), !(e.type === "mousedown" && L.current && !L.current.dismissOnMouseDown) && D(e, (e) => {
495
+ e.type === "pointerdown" ? m(e) : p(e);
496
496
  });
497
497
  }
498
- function R(e) {
499
- if (!k.current) return;
500
- let n = j.current;
498
+ function z(e) {
499
+ if (!j.current) return;
500
+ let n = N.current;
501
501
  if (s(), c() === "intentional") {
502
502
  if (e.type === "pointercancel") {
503
503
  n && o();
504
504
  return;
505
505
  }
506
- if (!u(e)) {
506
+ if (!d(e)) {
507
507
  if (n) {
508
508
  o();
509
509
  return;
510
510
  }
511
- typeof S == "function" && !S(e) || (t.clear(), M.current = !0, z());
511
+ typeof T == "function" && !T(e) || (t.clear(), P.current = !0, B());
512
512
  }
513
513
  }
514
514
  }
515
- function H(e) {
516
- if (c() !== "sloppy" || !I.current || V(e)) return;
515
+ function U(e) {
516
+ if (c() !== "sloppy" || !L.current || H(e)) return;
517
517
  let t = e.touches[0];
518
518
  if (!t) return;
519
- let n = Math.abs(t.clientX - I.current.startX), r = Math.abs(t.clientY - I.current.startY), i = Math.sqrt(n * n + r * r);
520
- i > 5 && (I.current.dismissOnTouchEnd = !0), i > 10 && (f(e), L.clear(), I.current = null);
521
- }
522
- function W(e) {
523
- T(e, H);
519
+ let n = Math.abs(t.clientX - L.current.startX), r = Math.abs(t.clientY - L.current.startY), i = Math.sqrt(n * n + r * r);
520
+ i > 5 && (L.current.dismissOnTouchEnd = !0), i > 10 && (p(e), R.clear(), L.current = null);
524
521
  }
525
522
  function G(e) {
526
- c() !== "sloppy" || !I.current || V(e) || (I.current.dismissOnTouchEnd && f(e), L.clear(), I.current = null);
523
+ D(e, U);
527
524
  }
528
525
  function K(e) {
529
- T(e, G);
526
+ c() !== "sloppy" || !L.current || H(e) || (L.current.dismissOnTouchEnd && p(e), R.clear(), L.current = null);
527
+ }
528
+ function q(e) {
529
+ D(e, K);
530
530
  }
531
- let q = D(_), J = Z(r && Z(O(q, "keydown", U), O(q, "compositionstart", i), O(q, "compositionend", a)), se && Z(O(q, "click", A, !0), O(q, "pointerdown", A, !0), O(q, "pointerup", R, !0), O(q, "pointercancel", R, !0), O(q, "mousedown", A, !0), O(q, "mouseup", R, !0), O(q, "touchstart", de, !0), O(q, "touchmove", W, !0), O(q, "touchend", K, !0)));
531
+ let J = k(_), Y = Q(r && Q(A(J, "keydown", W), A(J, "compositionstart", i), A(J, "compositionend", a)), oe && Q(A(J, "click", M, !0), A(J, "pointerdown", M, !0), A(J, "pointerup", z, !0), A(J, "pointercancel", z, !0), A(J, "mousedown", M, !0), A(J, "mouseup", z, !0), A(J, "touchstart", le, !0), A(J, "touchmove", G, !0), A(J, "touchend", q, !0)));
532
532
  return () => {
533
- J(), e.clear(), t.clear(), s(), M.current = !1;
533
+ Y(), e.clear(), t.clear(), s(), P.current = !1;
534
534
  };
535
535
  }, [
536
- v,
536
+ S,
537
537
  _,
538
538
  r,
539
- se,
540
- S,
539
+ oe,
540
+ T,
541
541
  g,
542
542
  n,
543
- E,
544
- ue,
545
- U,
546
- z,
547
- w,
543
+ O,
544
+ ce,
545
+ W,
548
546
  B,
547
+ E,
549
548
  V,
550
- x,
549
+ H,
550
+ C,
551
551
  h,
552
- L
553
- ]), A.useEffect(z, [S, z]);
554
- let q = A.useMemo(() => ({
555
- onKeyDown: U,
556
- [We[s]]: H,
557
- ...s !== "intentional" && { onClick: H }
552
+ R
553
+ ]), M.useEffect(B, [T, B]);
554
+ let J = M.useMemo(() => ({
555
+ onKeyDown: W,
556
+ [We[s]]: U,
557
+ ...s !== "intentional" && { onClick: U }
558
558
  }), [
559
+ W,
559
560
  U,
560
- H,
561
561
  s
562
- ]), J = A.useMemo(() => ({
563
- onKeyDown: U,
564
- onPointerDown: K,
565
- onMouseDown: K,
566
- onClickCapture: W,
562
+ ]), Y = M.useMemo(() => ({
563
+ onKeyDown: W,
564
+ onPointerDown: q,
565
+ onMouseDown: q,
566
+ onClickCapture: G,
567
567
  onMouseDownCapture(e) {
568
- W(), G(e);
568
+ G(), K(e);
569
569
  },
570
570
  onPointerDownCapture(e) {
571
- W(), G(e);
571
+ G(), K(e);
572
572
  },
573
- onMouseUpCapture: W,
574
- onTouchEndCapture: W,
575
- onTouchMoveCapture: W
573
+ onMouseUpCapture: G,
574
+ onTouchEndCapture: G,
575
+ onTouchMoveCapture: G
576
576
  }), [
577
- U,
578
577
  W,
579
578
  G,
580
- K
579
+ K,
580
+ q
581
581
  ]);
582
- return A.useMemo(() => n ? {
583
- reference: q,
584
- floating: J,
585
- trigger: q
582
+ return M.useMemo(() => n ? {
583
+ reference: J,
584
+ floating: Y,
585
+ trigger: J
586
586
  } : {}, [
587
587
  n,
588
- q,
589
- J
588
+ J,
589
+ Y
590
590
  ]);
591
591
  }
592
592
  //#endregion
593
593
  //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/createSelector.js
594
594
  var $ = (e, t, n, r, i, a, ...o) => {
595
- if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? c(1) : "Unsupported number of selectors");
596
- let s;
597
- if (e && t && n && r && i && a) s = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
598
- else if (e && t && n && r && i) s = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
599
- else if (e && t && n && r) s = (i, a, o, s) => r(e(i, a, o, s), t(i, a, o, s), n(i, a, o, s), a, o, s);
600
- else if (e && t && n) s = (r, i, a, o) => n(e(r, i, a, o), t(r, i, a, o), i, a, o);
601
- else if (e && t) s = (n, r, i, a) => t(e(n, r, i, a), r, i, a);
602
- else if (e) s = e;
595
+ if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? s(1) : "Unsupported number of selectors");
596
+ let c;
597
+ if (e && t && n && r && i && a) c = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
598
+ else if (e && t && n && r && i) c = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
599
+ else if (e && t && n && r) c = (i, a, o, s) => r(e(i, a, o, s), t(i, a, o, s), n(i, a, o, s), a, o, s);
600
+ else if (e && t && n) c = (r, i, a, o) => n(e(r, i, a, o), t(r, i, a, o), i, a, o);
601
+ else if (e && t) c = (n, r, i, a) => t(e(n, r, i, a), r, i, a);
602
+ else if (e) c = e;
603
603
  else throw Error("Missing arguments");
604
- return s;
605
- }, Je = /* @__PURE__ */ t(((t) => {
606
- var n = e("react"), r = w();
607
- function i(e, t) {
604
+ return c;
605
+ }, Je = /* @__PURE__ */ e(((e) => {
606
+ var t = oe(), n = E();
607
+ function r(e, t) {
608
608
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
609
609
  }
610
- var a = typeof Object.is == "function" ? Object.is : i, o = r.useSyncExternalStore, s = n.useRef, c = n.useEffect, l = n.useMemo, u = n.useDebugValue;
611
- t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
612
- var d = s(null);
610
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;
611
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
612
+ var d = o(null);
613
613
  if (d.current === null) {
614
614
  var f = {
615
615
  hasValue: !1,
@@ -617,45 +617,45 @@ var $ = (e, t, n, r, i, a, ...o) => {
617
617
  };
618
618
  d.current = f;
619
619
  } else f = d.current;
620
- d = l(function() {
620
+ d = c(function() {
621
621
  function e(e) {
622
- if (!o) {
623
- if (o = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
622
+ if (!a) {
623
+ if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
624
624
  var t = f.value;
625
- if (i(t, e)) return c = t;
625
+ if (u(t, e)) return s = t;
626
626
  }
627
- return c = e;
627
+ return s = e;
628
628
  }
629
- if (t = c, a(s, e)) return t;
629
+ if (t = s, i(o, e)) return t;
630
630
  var n = r(e);
631
- return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
631
+ return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
632
632
  }
633
- var o = !1, s, c, l = n === void 0 ? null : n;
633
+ var a = !1, o, s, c = n === void 0 ? null : n;
634
634
  return [function() {
635
635
  return e(t());
636
- }, l === null ? void 0 : function() {
637
- return e(l());
636
+ }, c === null ? void 0 : function() {
637
+ return e(c());
638
638
  }];
639
639
  }, [
640
640
  t,
641
641
  n,
642
642
  r,
643
- i
643
+ u
644
644
  ]);
645
- var p = o(e, d[0], d[1]);
646
- return c(function() {
645
+ var p = a(e, d[0], d[1]);
646
+ return s(function() {
647
647
  f.hasValue = !0, f.value = p;
648
- }, [p]), u(p), p;
648
+ }, [p]), l(p), p;
649
649
  };
650
- })), Ye = /* @__PURE__ */ t(((t) => {
650
+ })), Ye = /* @__PURE__ */ e(((e) => {
651
651
  process.env.NODE_ENV !== "production" && (function() {
652
- function n(e, t) {
652
+ function t(e, t) {
653
653
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
654
654
  }
655
655
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
656
- var r = e("react"), i = w(), a = typeof Object.is == "function" ? Object.is : n, o = i.useSyncExternalStore, s = r.useRef, c = r.useEffect, l = r.useMemo, u = r.useDebugValue;
657
- t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
658
- var d = s(null);
656
+ var n = oe(), r = E(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
657
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
658
+ var d = o(null);
659
659
  if (d.current === null) {
660
660
  var f = {
661
661
  hasValue: !1,
@@ -663,40 +663,40 @@ var $ = (e, t, n, r, i, a, ...o) => {
663
663
  };
664
664
  d.current = f;
665
665
  } else f = d.current;
666
- d = l(function() {
666
+ d = c(function() {
667
667
  function e(e) {
668
- if (!o) {
669
- if (o = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
668
+ if (!a) {
669
+ if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
670
670
  var t = f.value;
671
- if (i(t, e)) return c = t;
671
+ if (u(t, e)) return s = t;
672
672
  }
673
- return c = e;
673
+ return s = e;
674
674
  }
675
- if (t = c, a(s, e)) return t;
675
+ if (t = s, i(o, e)) return t;
676
676
  var n = r(e);
677
- return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
677
+ return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
678
678
  }
679
- var o = !1, s, c, l = n === void 0 ? null : n;
679
+ var a = !1, o, s, c = n === void 0 ? null : n;
680
680
  return [function() {
681
681
  return e(t());
682
- }, l === null ? void 0 : function() {
683
- return e(l());
682
+ }, c === null ? void 0 : function() {
683
+ return e(c());
684
684
  }];
685
685
  }, [
686
686
  t,
687
687
  n,
688
688
  r,
689
- i
689
+ u
690
690
  ]);
691
- var p = o(e, d[0], d[1]);
692
- return c(function() {
691
+ var p = a(e, d[0], d[1]);
692
+ return s(function() {
693
693
  f.hasValue = !0, f.value = p;
694
- }, [p]), u(p), p;
694
+ }, [p]), l(p), p;
695
695
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
696
696
  })();
697
- })), Xe = /* @__PURE__ */ t(((e, t) => {
697
+ })), Xe = /* @__PURE__ */ e(((e, t) => {
698
698
  process.env.NODE_ENV === "production" ? t.exports = Je() : t.exports = Ye();
699
- })), Ze = w(), Qe = Xe(), $e = [], et = void 0;
699
+ })), Ze = E(), Qe = Xe(), $e = [], et = void 0;
700
700
  function tt() {
701
701
  return et;
702
702
  }
@@ -705,13 +705,13 @@ function nt(e) {
705
705
  }
706
706
  function rt(e) {
707
707
  let t = (t, n) => {
708
- let r = i(at).current, a;
708
+ let i = r(at).current, a;
709
709
  try {
710
- et = r;
711
- for (let e of $e) e.before(r);
710
+ et = i;
711
+ for (let e of $e) e.before(i);
712
712
  a = e(t, n);
713
- for (let e of $e) e.after(r);
714
- r.didInitialize = !0;
713
+ for (let e of $e) e.after(i);
714
+ i.didInitialize = !0;
715
715
  } finally {
716
716
  et = void 0;
717
717
  }
@@ -720,19 +720,19 @@ function rt(e) {
720
720
  return t.displayName = e.displayName || e.name, t;
721
721
  }
722
722
  function it(e) {
723
- return /*#__PURE__*/ A.forwardRef(rt(e));
723
+ return /*#__PURE__*/ M.forwardRef(rt(e));
724
724
  }
725
725
  function at() {
726
726
  return { didInitialize: !1 };
727
727
  }
728
728
  //#endregion
729
729
  //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/useStore.js
730
- var ot = r(19) ? lt : ut;
730
+ var ot = n(19) ? lt : ut;
731
731
  function st(e, t, n, r, i) {
732
732
  return ot(e, t, n, r, i);
733
733
  }
734
734
  function ct(e, t, n, r, i) {
735
- let a = A.useCallback(() => t(e.getSnapshot(), n, r, i), [
735
+ let a = M.useCallback(() => t(e.getSnapshot(), n, r, i), [
736
736
  e,
737
737
  t,
738
738
  n,
@@ -828,50 +828,50 @@ var dt = class {
828
828
  constructor(e, t = {}, n) {
829
829
  super(e), this.context = t, this.selectors = n;
830
830
  }
831
- useSyncedValue(e, t) {
832
- A.useDebugValue(e);
831
+ useSyncedValue(e, n) {
832
+ M.useDebugValue(e);
833
833
  let r = this;
834
- n(() => {
835
- r.state[e] !== t && r.set(e, t);
834
+ t(() => {
835
+ r.state[e] !== n && r.set(e, n);
836
836
  }, [
837
837
  r,
838
838
  e,
839
- t
839
+ n
840
840
  ]);
841
841
  }
842
- useSyncedValueWithCleanup(e, t) {
842
+ useSyncedValueWithCleanup(e, n) {
843
843
  let r = this;
844
- n(() => (r.state[e] !== t && r.set(e, t), () => {
844
+ t(() => (r.state[e] !== n && r.set(e, n), () => {
845
845
  r.set(e, void 0);
846
846
  }), [
847
847
  r,
848
848
  e,
849
- t
849
+ n
850
850
  ]);
851
851
  }
852
852
  useSyncedValues(e) {
853
- let t = this;
853
+ let n = this;
854
854
  if (process.env.NODE_ENV !== "production") {
855
- A.useDebugValue(e, (e) => Object.keys(e));
856
- let t = A.useRef(Object.keys(e)).current, n = Object.keys(e);
855
+ M.useDebugValue(e, (e) => Object.keys(e));
856
+ let t = M.useRef(Object.keys(e)).current, n = Object.keys(e);
857
857
  (t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
858
858
  }
859
- n(() => {
860
- t.update(e);
861
- }, [t, ...Object.values(e)]);
859
+ t(() => {
860
+ n.update(e);
861
+ }, [n, ...Object.values(e)]);
862
862
  }
863
- useControlledProp(e, t) {
864
- A.useDebugValue(e);
865
- let r = this, i = t !== void 0;
866
- if (n(() => {
867
- i && !Object.is(r.state[e], t) && r.setState({
863
+ useControlledProp(e, n) {
864
+ M.useDebugValue(e);
865
+ let r = this, i = n !== void 0;
866
+ if (t(() => {
867
+ i && !Object.is(r.state[e], n) && r.setState({
868
868
  ...r.state,
869
- [e]: t
869
+ [e]: n
870
870
  });
871
871
  }, [
872
872
  r,
873
873
  e,
874
- t,
874
+ n,
875
875
  i
876
876
  ]), process.env.NODE_ENV !== "production") {
877
877
  let t = this.controlledValues ??= /* @__PURE__ */ new Map();
@@ -885,15 +885,15 @@ var dt = class {
885
885
  return i(this.state, t, n, r);
886
886
  }
887
887
  useState(e, t, n, r) {
888
- return A.useDebugValue(e), st(this, this.selectors[e], t, n, r);
888
+ return M.useDebugValue(e), st(this, this.selectors[e], t, n, r);
889
889
  }
890
890
  useContextCallback(e, t) {
891
- A.useDebugValue(e);
892
- let n = l(t ?? o);
891
+ M.useDebugValue(e);
892
+ let n = c(t ?? a);
893
893
  this.context[e] = n;
894
894
  }
895
895
  useStateSetter(e) {
896
- let t = A.useRef(void 0);
896
+ let t = M.useRef(void 0);
897
897
  return t.current === void 0 && (t.current = (t) => {
898
898
  this.set(e, t);
899
899
  }), t.current;
@@ -933,7 +933,7 @@ var dt = class {
933
933
  }, pt), this.syncOnly = t;
934
934
  }
935
935
  syncOpenEvent = (e, t) => {
936
- (!e || !this.state.open || t != null && E(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
936
+ (!e || !this.state.open || t != null && O(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
937
937
  };
938
938
  dispatchOpenChange = (e, t) => {
939
939
  this.syncOpenEvent(e, t.event);
@@ -957,7 +957,7 @@ var dt = class {
957
957
  //#endregion
958
958
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
959
959
  function ht(e) {
960
- let { popupStore: t, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = e, c = t.useState("open"), l = t.useState("activeTriggerElement"), u = t.useState(r ? "popupElement" : "positionerElement"), d = t.context.triggerElements, f = s, p = A.useRef(null);
960
+ let { popupStore: n, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = e, c = n.useState("open"), l = n.useState("activeTriggerElement"), u = n.useState(r ? "popupElement" : "positionerElement"), d = n.context.triggerElements, f = s, p = M.useRef(null);
961
961
  i === void 0 && p.current === null && (p.current = new mt({
962
962
  open: c,
963
963
  transitionStatus: void 0,
@@ -970,7 +970,7 @@ function ht(e) {
970
970
  nested: o
971
971
  }));
972
972
  let m = i ?? p.current;
973
- return t.useSyncedValue("floatingId", a), n(() => {
973
+ return n.useSyncedValue("floatingId", a), t(() => {
974
974
  let e = {
975
975
  open: c,
976
976
  floatingId: a,
@@ -990,10 +990,10 @@ function ht(e) {
990
990
  //#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
991
991
  var gt = {
992
992
  tabIndex: -1,
993
- [S]: ""
993
+ [re]: ""
994
994
  };
995
995
  function _t(e, t, n = !1) {
996
- let r = m(), i = ze() != null, a = A.useRef(null);
996
+ let r = p(), i = ze() != null, a = M.useRef(null);
997
997
  e === void 0 && a.current === null && (a.current = t(r, i));
998
998
  let o = e ?? a.current;
999
999
  return ht({
@@ -1009,8 +1009,8 @@ function _t(e, t, n = !1) {
1009
1009
  };
1010
1010
  }
1011
1011
  function vt(e, t) {
1012
- let n = A.useRef(null), r = A.useRef(null);
1013
- return A.useCallback((i) => {
1012
+ let n = M.useRef(null), r = M.useRef(null);
1013
+ return M.useCallback((i) => {
1014
1014
  if (e === void 0) return;
1015
1015
  let a = !1;
1016
1016
  if (n.current !== null) {
@@ -1027,8 +1027,8 @@ function yt(e, t, n) {
1027
1027
  let r = n?.id ?? null;
1028
1028
  (r || t) && (e.activeTriggerId = r, e.activeTriggerElement = n ?? null);
1029
1029
  }
1030
- function bt(e, t, r, i) {
1031
- let a = r.useState("isMountedByTrigger", e), o = vt(e, r), s = l((t) => {
1030
+ function bt(e, n, r, i) {
1031
+ let a = r.useState("isMountedByTrigger", e), o = vt(e, r), s = c((t) => {
1032
1032
  if (o(t), !t) return;
1033
1033
  let n = r.select("open"), a = r.select("activeTriggerId");
1034
1034
  if (a === e) {
@@ -1044,15 +1044,15 @@ function bt(e, t, r, i) {
1044
1044
  ...i
1045
1045
  });
1046
1046
  });
1047
- return n(() => {
1047
+ return t(() => {
1048
1048
  a && r.update({
1049
- activeTriggerElement: t.current,
1049
+ activeTriggerElement: n.current,
1050
1050
  ...i
1051
1051
  });
1052
1052
  }, [
1053
1053
  a,
1054
1054
  r,
1055
- t,
1055
+ n,
1056
1056
  ...Object.values(i)
1057
1057
  ]), {
1058
1058
  registerTrigger: s,
@@ -1060,14 +1060,14 @@ function bt(e, t, r, i) {
1060
1060
  };
1061
1061
  }
1062
1062
  function xt(e) {
1063
- let t = e.useState("open");
1064
- n(() => {
1065
- if (!t) {
1063
+ let n = e.useState("open");
1064
+ t(() => {
1065
+ if (!n) {
1066
1066
  e.state.triggerCount !== 0 && e.set("triggerCount", 0);
1067
1067
  return;
1068
1068
  }
1069
- let n = e.context.triggerElements.size, r = {};
1070
- if (e.state.triggerCount !== n && (r.triggerCount = n), !e.select("activeTriggerId") && n === 1) {
1069
+ let t = e.context.triggerElements.size, r = {};
1070
+ if (e.state.triggerCount !== t && (r.triggerCount = t), !e.select("activeTriggerId") && t === 1) {
1071
1071
  let t = e.context.triggerElements.entries().next();
1072
1072
  if (!t.done) {
1073
1073
  let [e, n] = t.value;
@@ -1076,18 +1076,18 @@ function xt(e) {
1076
1076
  }
1077
1077
  (r.triggerCount !== void 0 || r.activeTriggerId !== void 0) && e.update(r);
1078
1078
  }, [
1079
- t,
1079
+ n,
1080
1080
  e,
1081
1081
  e.useState("triggerCount")
1082
1082
  ]);
1083
1083
  }
1084
1084
  function St(e, t, n) {
1085
- let { mounted: r, setMounted: i, transitionStatus: a } = g(e);
1085
+ let { mounted: r, setMounted: i, transitionStatus: a } = h(e);
1086
1086
  t.useSyncedValues({
1087
1087
  mounted: r,
1088
1088
  transitionStatus: a
1089
1089
  });
1090
- let o = l(() => {
1090
+ let o = c(() => {
1091
1091
  i(!1), t.update({
1092
1092
  activeTriggerId: null,
1093
1093
  activeTriggerElement: null,
@@ -1095,7 +1095,7 @@ function St(e, t, n) {
1095
1095
  preventUnmountingOnClose: !1
1096
1096
  }), n?.(), t.context.onOpenChangeComplete?.(!1);
1097
1097
  }), s = t.useState("preventUnmountingOnClose");
1098
- return _({
1098
+ return g({
1099
1099
  enabled: r && !e && !s,
1100
1100
  open: e,
1101
1101
  ref: t.context.popupRef,
@@ -1107,19 +1107,19 @@ function St(e, t, n) {
1107
1107
  transitionStatus: a
1108
1108
  };
1109
1109
  }
1110
- function Ct(e, t) {
1111
- e.useSyncedValues(t), n(() => () => {
1110
+ function Ct(e, n) {
1111
+ e.useSyncedValues(n), t(() => () => {
1112
1112
  e.update({
1113
- activeTriggerProps: a,
1114
- inactiveTriggerProps: a,
1115
- popupProps: a
1113
+ activeTriggerProps: i,
1114
+ inactiveTriggerProps: i,
1115
+ popupProps: i
1116
1116
  });
1117
1117
  }, [e]);
1118
1118
  }
1119
- function wt(e, t) {
1120
- n(() => {
1121
- !t && e.state.openMethod !== null && e.set("openMethod", null);
1122
- }, [t, e]), n(() => () => {
1119
+ function wt(e, n) {
1120
+ t(() => {
1121
+ !n && e.state.openMethod !== null && e.set("openMethod", null);
1122
+ }, [n, e]), t(() => () => {
1123
1123
  e.state.openMethod !== null && e.set("openMethod", null);
1124
1124
  }, [e]);
1125
1125
  }
@@ -1157,7 +1157,7 @@ var Tt = class {
1157
1157
  return this.idMap.size;
1158
1158
  }
1159
1159
  }, Et = function(e) {
1160
- return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = h.startingStyle] = "startingStyle", e[e.endingStyle = h.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
1160
+ return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = m.startingStyle] = "startingStyle", e[e.endingStyle = m.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
1161
1161
  }({}), Dt = /*#__PURE__*/ function(e) {
1162
1162
  return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
1163
1163
  }({}), Ot = { [Dt.popupOpen]: "" }, kt = {
@@ -1176,4 +1176,4 @@ var Tt = class {
1176
1176
  }
1177
1177
  };
1178
1178
  //#endregion
1179
- export { Ie as A, Z as B, $ as C, Ve as D, Ue as E, Te as F, ye as G, me as H, De as I, pe as J, be as K, Oe as L, Ne as M, je as N, ze as O, Ee as P, we as R, it as S, He as T, ge as U, Ce as V, _e as W, F as X, Y, P as Z, mt as _, Nt as a, st as b, yt as c, Ct as d, wt as f, ht as g, vt as h, Pt as i, Pe as j, Be as k, xt as l, bt as m, Dt as n, Tt as o, _t as p, X as q, Ft as r, gt as s, Et as t, St as u, ft as v, qe as w, rt as x, dt as y, Q as z };
1179
+ export { Ie as A, Q as B, $ as C, Ve as D, Ue as E, Te as F, ve as G, pe as H, De as I, fe as J, ye as K, Oe as L, Ne as M, je as N, ze as O, Ee as P, we as R, it as S, He as T, he as U, Se as V, ge as W, I as X, X as Y, de as Z, mt as _, Nt as a, st as b, yt as c, Ct as d, wt as f, ht as g, vt as h, Pt as i, Pe as j, Be as k, xt as l, bt as m, Dt as n, Tt as o, _t as p, Z as q, Ft as r, gt as s, Et as t, St as u, ft as v, qe as w, rt as x, dt as y, Ce as z };