@nxgt/material 3.58.0 → 3.59.1

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 (205) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +31 -0
  3. package/dist/{async-slice-C_Juki7i.js → async-slice-Cmvxrvn9.js} +2 -2
  4. package/dist/barcode.js +440 -0
  5. package/dist/{button-CCHGtPIN.js → button-qb9UpHF5.js} +47 -46
  6. package/dist/charts.js +92 -92
  7. package/dist/{chip-1XnyX4bd.js → chip-BlmIjpiD.js} +2 -2
  8. package/dist/{code-editor-1Y7ykpam.js → code-editor-BYEpBp_U.js} +11 -11
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-Clbln9C6.js → code-language-items-Cqk4Fq61.js} +2 -2
  11. package/dist/components/components.css +1 -0
  12. package/dist/components/ui/actions/split-button/split-button-states.css +6 -0
  13. package/dist/components/ui/widgets/barcode/barcode.css +112 -0
  14. package/dist/{components-Cj3lJ_uK.js → components-j44ReRNq.js} +11255 -11174
  15. package/dist/components.js +26 -26
  16. package/dist/{dialog-Cx_xWUVR.js → dialog-1BstKBvt.js} +4 -4
  17. package/dist/dnd.js +1 -1
  18. package/dist/{dropdown-menu-Jp6pHNgP.js → dropdown-menu-hoaocAS7.js} +1 -1
  19. package/dist/editor.js +9 -9
  20. package/dist/{empty-state-D61RimJr.js → empty-state-DEG9h7xk.js} +2 -2
  21. package/dist/{escape-owner-Ch_-kDLw.js → escape-owner-BvLBo_Al.js} +22 -22
  22. package/dist/{field-blur-BJjUHsgJ.js → field-blur-BkeYPaWi.js} +1 -1
  23. package/dist/{field-blur-context-CmOF0FIN.js → field-blur-context-Ba7iZVm_.js} +1 -1
  24. package/dist/hooks.js +2 -2
  25. package/dist/{hover-card-CVmY0Z44.js → hover-card-C5DTU9P_.js} +2 -2
  26. package/dist/{i18n-provider-C0uLEv0G.js → i18n-provider-BJDI-A5w.js} +1 -1
  27. package/dist/i18n.js +5 -5
  28. package/dist/{icon-badge-bAQQK3ls.js → icon-badge-9ZE6k7cn.js} +3 -3
  29. package/dist/{icon-button-Csvj2R8S.js → icon-button-AwJtCkV5.js} +1 -1
  30. package/dist/lib/barcode/index.d.ts +15 -0
  31. package/dist/lib/components/ui/actions/button/button-busy.d.ts +5 -0
  32. package/dist/lib/components/ui/actions/index.d.ts +1 -0
  33. package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
  34. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -0
  35. package/dist/lib/components/ui/actions/responsive-button/responsive-button.d.ts +1 -1
  36. package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +0 -2
  37. package/dist/lib/components/ui/collections/filter/bar/filter-bar-view.d.ts +1 -1
  38. package/dist/lib/components/ui/collections/filter/editors/custom-types.d.ts +1 -1
  39. package/dist/lib/components/ui/collections/filter/facets/filter-facets.d.ts +1 -1
  40. package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -0
  41. package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -0
  42. package/dist/lib/components/ui/collections/filter/index.d.ts +2 -1
  43. package/dist/lib/components/ui/collections/filter/query/filter-query-model.d.ts +1 -1
  44. package/dist/lib/components/ui/collections/filter/query/types.d.ts +0 -1
  45. package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +2 -1
  46. package/dist/lib/components/ui/collections/server-table/partials/server-table-band.d.ts +1 -1
  47. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +0 -1
  48. package/dist/lib/components/ui/collections/server-table/partials/server-table-error.d.ts +1 -1
  49. package/dist/lib/components/ui/collections/server-table/partials/server-table-hosted.d.ts +1 -1
  50. package/dist/lib/components/ui/collections/server-table/server-table.d.ts +3 -1
  51. package/dist/lib/components/ui/collections/server-table/types.d.ts +0 -2
  52. package/dist/lib/components/ui/collections/server-table/use-filter-params.d.ts +2 -1
  53. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +2 -1
  54. package/dist/lib/components/ui/dates/date-field/{date-field-parts.d.ts → date-field-props.d.ts} +2 -40
  55. package/dist/lib/components/ui/dates/date-field/use-date-field-model.d.ts +28 -0
  56. package/dist/lib/components/ui/dates/date-field/use-date-field-open.d.ts +11 -0
  57. package/dist/lib/components/ui/display/cards/index.d.ts +3 -1
  58. package/dist/lib/components/ui/display/cards/partials/album-card.d.ts +1 -1
  59. package/dist/lib/components/ui/display/cards/partials/checklist-card.d.ts +1 -1
  60. package/dist/lib/components/ui/display/cards/partials/crew-card.d.ts +1 -1
  61. package/dist/lib/components/ui/display/cards/partials/event-card.d.ts +1 -1
  62. package/dist/lib/components/ui/display/cards/partials/feature-card.d.ts +1 -1
  63. package/dist/lib/components/ui/display/cards/partials/file-card.d.ts +1 -1
  64. package/dist/lib/components/ui/display/cards/partials/link-card.d.ts +1 -1
  65. package/dist/lib/components/ui/display/cards/partials/media-card.d.ts +1 -1
  66. package/dist/lib/components/ui/display/cards/partials/message-card.d.ts +1 -1
  67. package/dist/lib/components/ui/display/cards/partials/notice-card.d.ts +1 -1
  68. package/dist/lib/components/ui/display/cards/partials/offer-card.d.ts +1 -1
  69. package/dist/lib/components/ui/display/cards/partials/overlay-card.d.ts +1 -1
  70. package/dist/lib/components/ui/display/cards/partials/place-card.d.ts +1 -1
  71. package/dist/lib/components/ui/display/cards/partials/pricing-card.d.ts +1 -1
  72. package/dist/lib/components/ui/display/cards/partials/profile-card.d.ts +1 -1
  73. package/dist/lib/components/ui/display/cards/partials/quote-card.d.ts +1 -1
  74. package/dist/lib/components/ui/display/cards/partials/receipt-card.d.ts +1 -1
  75. package/dist/lib/components/ui/display/cards/partials/review-card.d.ts +1 -1
  76. package/dist/lib/components/ui/display/cards/partials/score-card.d.ts +1 -1
  77. package/dist/lib/components/ui/display/cards/partials/shortcut-card.d.ts +1 -1
  78. package/dist/lib/components/ui/display/cards/partials/split-card.d.ts +1 -1
  79. package/dist/lib/components/ui/display/cards/partials/spotlight-card.d.ts +1 -1
  80. package/dist/lib/components/ui/display/cards/partials/status-card.d.ts +1 -1
  81. package/dist/lib/components/ui/display/cards/partials/tag-card.d.ts +1 -1
  82. package/dist/lib/components/ui/display/cards/partials/ticket-card.d.ts +1 -1
  83. package/dist/lib/components/ui/display/cards/partials/timeline-card.d.ts +1 -1
  84. package/dist/lib/components/ui/feedback/index.d.ts +1 -0
  85. package/dist/lib/components/ui/feedback/notifications/notifications-provider.d.ts +1 -1
  86. package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +0 -1
  87. package/dist/lib/components/ui/feedback/page-load-failed/index.d.ts +1 -0
  88. package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
  89. package/dist/lib/components/ui/feedback/step-dots/index.d.ts +2 -1
  90. package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +0 -1
  91. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  92. package/dist/lib/components/ui/fields/country-field/iso-codes.d.ts +2 -0
  93. package/dist/lib/components/ui/fields/country-field/iso-countries.d.ts +0 -2
  94. package/dist/lib/components/ui/fields/field/types.d.ts +2 -2
  95. package/dist/lib/components/ui/fields/timezone-field/timezone-field.d.ts +1 -1
  96. package/dist/lib/components/ui/layout/app-shell/index.d.ts +2 -2
  97. package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +0 -2
  98. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +0 -3
  99. package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +0 -2
  100. package/dist/lib/components/ui/layout/doc/index.d.ts +2 -1
  101. package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +0 -1
  102. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -1
  103. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +0 -2
  104. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group-form-field.d.ts +1 -1
  105. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -1
  106. package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +0 -1
  107. package/dist/lib/components/ui/selection/color-swatches/index.d.ts +2 -1
  108. package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +0 -1
  109. package/dist/lib/components/ui/selection/combobox-field/combobox-form-field.d.ts +1 -1
  110. package/dist/lib/components/ui/selection/combobox-field/index.d.ts +1 -1
  111. package/dist/lib/components/ui/selection/radio-group/radio-group-form-field.d.ts +1 -1
  112. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +4 -3
  113. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +0 -1
  114. package/dist/lib/components/ui/widgets/barcode/barcode-error.d.ts +4 -0
  115. package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
  116. package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
  117. package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
  118. package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
  119. package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
  120. package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
  121. package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
  122. package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
  123. package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
  124. package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
  125. package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -0
  126. package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/{use-node-list.d.ts → node-list.d.ts} +1 -1
  127. package/dist/lib/components/ui/widgets/education/quizzes/quiz.utils.d.ts +1 -1
  128. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +0 -1
  129. package/dist/lib/components/ui/widgets/native-charts/core/heat-model.d.ts +2 -1
  130. package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +2 -2
  131. package/dist/lib/components/ui/widgets/native-charts/core/scatter-text.d.ts +2 -1
  132. package/dist/lib/components/ui/widgets/native-charts/core/slice-model.d.ts +1 -1
  133. package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +0 -2
  134. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/funnel-chart-types.d.ts +2 -1
  135. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.d.ts +1 -1
  136. package/dist/lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.d.ts +1 -1
  137. package/dist/lib/components/ui/widgets/native-charts/gauge/gauge-types.d.ts +1 -1
  138. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/heatmap-chart-types.d.ts +2 -1
  139. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-tip.d.ts +1 -1
  140. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heat-nav.d.ts +1 -1
  141. package/dist/lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.d.ts +1 -1
  142. package/dist/lib/components/ui/widgets/native-charts/hooks/chart-model-types.d.ts +3 -1
  143. package/dist/lib/components/ui/widgets/native-charts/hooks/model-parts.d.ts +2 -1
  144. package/dist/lib/components/ui/widgets/native-charts/hooks/use-slice-model.d.ts +2 -1
  145. package/dist/lib/components/ui/widgets/native-charts/index.d.ts +3 -1
  146. package/dist/lib/components/ui/widgets/native-charts/line-chart/line-chart-types.d.ts +3 -1
  147. package/dist/lib/components/ui/widgets/native-charts/partials/chart-frame.d.ts +1 -1
  148. package/dist/lib/components/ui/widgets/native-charts/partials/chart-shell.d.ts +1 -1
  149. package/dist/lib/components/ui/widgets/native-charts/partials/point-tip.d.ts +1 -1
  150. package/dist/lib/components/ui/widgets/native-charts/pie-chart/partials/slice-tip.d.ts +1 -1
  151. package/dist/lib/components/ui/widgets/native-charts/pie-chart/slice-chart-types.d.ts +2 -1
  152. package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/radial-bar-chart-types.d.ts +2 -1
  153. package/dist/lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.d.ts +1 -1
  154. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-tip.d.ts +1 -1
  155. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/scatter-chart-types.d.ts +2 -1
  156. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-active.d.ts +1 -1
  157. package/dist/lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.d.ts +1 -1
  158. package/dist/lib/i18n/resources/en/en.d.ts +8 -0
  159. package/dist/lib/i18n/resources/en/material.json.d.ts +8 -0
  160. package/dist/lib/i18n/resources/fr/fr.d.ts +8 -0
  161. package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -0
  162. package/dist/lib/i18n/resources/resources.d.ts +16 -0
  163. package/dist/lib/i18n/translator.d.ts +1 -1
  164. package/dist/lib/print/components/print-document/print-document.d.ts +2 -1
  165. package/dist/lib/print/components/print-section.d.ts +8 -1
  166. package/dist/lib.js +1 -1
  167. package/dist/main.js +43 -43
  168. package/dist/map.js +8 -8
  169. package/dist/material.css +1 -1
  170. package/dist/pdf-reader.js +1 -1
  171. package/dist/print.js +4 -3
  172. package/dist/{public-B42vT7ee.js → public-DEh75enl.js} +15 -15
  173. package/dist/{rich-code-block-DIJ1X1AF.js → rich-code-block-hJexXOdk.js} +5 -5
  174. package/dist/{sortable-provider-Csby6WpB.js → sortable-provider-DE-MSfeJ.js} +2 -2
  175. package/dist/{spinner-DC35lhqx.js → spinner-CquTUxzt.js} +1 -1
  176. package/dist/{stored-language-BIxd7uiP.js → stored-language-BDzGeEAm.js} +16 -0
  177. package/dist/theme-picker.js +2 -2
  178. package/dist/{theme-toggle-BWdNFLvB.js → theme-toggle-DBgsBw8S.js} +1 -1
  179. package/dist/{toolbar-items-oqmVfnfO.js → toolbar-items-Bm1baIp6.js} +4 -4
  180. package/dist/{translate-material-Bgtjuh85.js → translate-material-Q67GD4co.js} +2 -2
  181. package/dist/{translator-BrZv1U54.js → translator-CBhGdYun.js} +1 -1
  182. package/dist/{use-chat-composer-Dj0TP_B1.js → use-chat-composer-BlfhGDFp.js} +967 -967
  183. package/dist/{use-heading-spy-1Dqxj_JQ.js → use-heading-spy-COxCWqWF.js} +1 -1
  184. package/dist/{use-material-translation-DLdQKdfw.js → use-material-translation-BZAy_ffS.js} +2 -2
  185. package/docs/README.md +1 -0
  186. package/docs/components/buttons-and-actions.md +37 -0
  187. package/docs/components/feedback-and-status.md +25 -0
  188. package/docs/components/rich-widgets.md +35 -0
  189. package/docs/guides/barcode.md +203 -0
  190. package/docs/guides/printing.md +28 -3
  191. package/docs/previews/buttons-actions-loadmorebutton.webp +0 -0
  192. package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
  193. package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
  194. package/docs/previews/rich-widgets-barcode.webp +0 -0
  195. package/docs/previews/rich-widgets-labelsheet.webp +0 -0
  196. package/docs/roadmap.md +14 -7
  197. package/docs/troubleshooting.md +62 -0
  198. package/lib/components/components.css +1 -0
  199. package/lib/components/ui/actions/split-button/split-button-states.css +6 -0
  200. package/lib/components/ui/widgets/barcode/barcode.css +112 -0
  201. package/package.json +10 -3
  202. package/dist/lib/components/ui/display/cards/types.d.ts +0 -3
  203. package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +0 -2
  204. package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +0 -2
  205. package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +0 -2
@@ -4,40 +4,40 @@ import { t as n } from "./utils-BLfntITJ.js";
4
4
  import { n as r } from "./use-shape-morph-BKA_R5P5.js";
5
5
  import { n as i, o as a, t as o } from "./dist-DVRQkaTK.js";
6
6
  import { a as s, c, i as l, l as u, n as d, o as f, r as p, s as m, t as h } from "./dist-lmHmz_bu.js";
7
- import { _ as g, a as _, b as v, c as y, g as b, h as x, i as S, n as C, o as w, r as T, s as E, t as D, v as O, x as k, y as A } from "./spinner-DC35lhqx.js";
8
- import { a as ee, i as j, n as M, r as N, t as te } from "./dist-C4wtXCjf.js";
9
- import { i as ne, n as P, t as re } from "./in-dialog-Vwkyp-M5.js";
10
- import { A as ie, C as F, D as ae, E as oe, O as se, S as I, T as ce, _ as le, b as ue, f as de, g as fe, k as pe, l as me, m as he, n as ge, o as _e, r as ve, s as ye, t as be, u as xe, v as Se, w as Ce, x as we, y as Te } from "./dialog-Cx_xWUVR.js";
11
- import { A as Ee, C as De, D as Oe, E as ke, O as Ae, S as je, T as Me, _ as Ne, a as Pe, b as Fe, d as Ie, f as Le, g as Re, h as ze, i as Be, k as Ve, l as He, m as Ue, n as We, o as Ge, p as Ke, r as qe, s as Je, t as Ye, u as Xe, v as Ze, w as Qe, x as $e, y as et } from "./floating-ui.dom-KkZSW8_E.js";
12
- import { D as tt, E as nt, N as rt, O as it, c as at, d as ot, f as st, i as ct, k as lt, m as ut, n as dt, o as ft, p as pt, t as mt, u as ht } from "./dropdown-menu-Jp6pHNgP.js";
13
- import { a as gt, i as _t, n as vt } from "./field-blur-context-CmOF0FIN.js";
14
- import { C as yt, S as bt, a as xt, c as St, d as Ct, l as wt, n as Tt, o as Et, s as Dt, u as Ot } from "./toolbar-items-oqmVfnfO.js";
7
+ import { _ as g, a as _, b as v, c as y, g as b, h as x, i as S, n as C, o as w, r as T, s as E, t as D, v as O, x as k, y as A } from "./spinner-CquTUxzt.js";
8
+ import { a as ee, i as j, n as te, r as M, t as ne } from "./dist-C4wtXCjf.js";
9
+ import { i as re, n as N, t as ie } from "./in-dialog-Vwkyp-M5.js";
10
+ import { A as ae, C as P, D as oe, E as se, O as ce, S as F, T as le, _ as ue, b as de, f as fe, g as pe, k as me, l as he, m as ge, n as _e, o as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee } from "./dialog-1BstKBvt.js";
11
+ import { A as De, C as Oe, D as ke, E as Ae, O as je, S as Me, T as Ne, _ as Pe, a as Fe, b as Ie, d as Le, f as Re, g as ze, h as Be, i as Ve, k as He, l as Ue, m as We, n as Ge, o as Ke, p as qe, r as Je, s as Ye, t as Xe, u as Ze, v as Qe, w as $e, x as et, y as tt } from "./floating-ui.dom-KkZSW8_E.js";
12
+ import { D as nt, E as rt, N as it, O as at, c as ot, d as I, f as st, i as ct, k as lt, m as ut, n as dt, o as ft, p as pt, t as mt, u as ht } from "./dropdown-menu-hoaocAS7.js";
13
+ import { a as gt, i as _t, n as vt } from "./field-blur-context-Ba7iZVm_.js";
14
+ import { C as yt, S as bt, a as xt, c as St, d as Ct, l as wt, n as Tt, o as Et, s as Dt, u as Ot } from "./toolbar-items-Bm1baIp6.js";
15
15
  import { a as kt, i as At, n as jt, o as Mt, t as Nt } from "./bubble-input-B7BVd9fX.js";
16
16
  import { i as Pt } from "./dist-B7RjY7SL.js";
17
17
  import { o as Ft, s as It, t as Lt } from "./use-click-lock-BZYtTmVt.js";
18
18
  import { a as Rt, r as zt } from "./icon-sprites-CaYXzOL4.js";
19
19
  import { t as Bt } from "./warn-once-C_e47JM8.js";
20
- import { r as Vt, t as Ht } from "./button-CCHGtPIN.js";
21
- import "./stored-language-BIxd7uiP.js";
22
- import { a as Ut } from "./translator-BrZv1U54.js";
20
+ import { r as Vt, t as Ht } from "./button-qb9UpHF5.js";
21
+ import "./stored-language-BDzGeEAm.js";
22
+ import { a as Ut } from "./translator-CBhGdYun.js";
23
23
  import { h as Wt } from "./get-CTzJAwfc.js";
24
24
  import { t as Gt } from "./isEmpty-F_g3jLf8.js";
25
- import { t as L } from "./use-material-translation-DLdQKdfw.js";
26
- import { t as R } from "./icon-button-Csvj2R8S.js";
25
+ import { t as L } from "./use-material-translation-BZAy_ffS.js";
26
+ import { t as R } from "./icon-button-AwJtCkV5.js";
27
27
  import { t as Kt } from "./use-ssr-media-query-C6M5m8sf.js";
28
- import { n as qt, t as Jt } from "./util-4heV2LPI.js";
29
- import { t as Yt } from "./useEvent-2fKq-6w8.js";
30
- import { f as Xt } from "./field-blur-BJjUHsgJ.js";
31
- import { c as Zt, i as Qt, l as $t, o as en, r as tn, s as nn, t as rn } from "./dist-C3GR7kJd.js";
32
- import { i as an } from "./toggle-group-BkH23Jk4.js";
33
- import { a as on, i as sn, o as cn } from "./escape-owner-Ch_-kDLw.js";
28
+ import { a as qt, i as Jt, o as Yt } from "./escape-owner-BvLBo_Al.js";
29
+ import { n as Xt, t as Zt } from "./util-4heV2LPI.js";
30
+ import { t as Qt } from "./useEvent-2fKq-6w8.js";
31
+ import { f as $t } from "./field-blur-BkeYPaWi.js";
32
+ import { c as en, i as tn, l as nn, o as rn, r as an, s as on, t as sn } from "./dist-C3GR7kJd.js";
33
+ import { i as cn } from "./toggle-group-BkH23Jk4.js";
34
34
  import { n as ln } from "./use-slice-reducer-BGkeGtML.js";
35
35
  import { t as un } from "./browser-only-DQ94lWF8.js";
36
36
  import { t as dn } from "./compose-refs-DZ0iIVF-.js";
37
- import { n as fn, r as pn, t as mn } from "./chip-1XnyX4bd.js";
38
- import { n as hn, t as gn } from "./icon-badge-bAQQK3ls.js";
37
+ import { n as fn, r as pn, t as mn } from "./chip-BlmIjpiD.js";
38
+ import { n as hn, t as gn } from "./icon-badge-9ZE6k7cn.js";
39
39
  import { r as _n } from "./use-csp-nonce-ZKs9k-ov.js";
40
- import { t as vn } from "./empty-state-D61RimJr.js";
40
+ import { t as vn } from "./empty-state-DEG9h7xk.js";
41
41
  import { t as yn } from "./skeleton-DSdtr2qc.js";
42
42
  import { H as bn, V as xn, X as Sn, bt as Cn, it as wn, lt as Tn, n as En, t as Dn, xt as On, yt as kn } from "./dist-moutbfbd.js";
43
43
  import { t as An } from "./markdown-Dw_uH7j7.js";
@@ -592,29 +592,29 @@ var Ec = ac, Dc = vc, Oc = bc, kc = Sc, Ac = wc, jc = /* @__PURE__ */ e({
592
592
  }), Mc = Object.defineProperty, Nc = (e, t) => Mc(e, "name", {
593
593
  value: t,
594
594
  configurable: !0
595
- }), [Pc, Fc] = c("AlertDialog", [ie]), Ic = ie(), Lc = /* @__PURE__ */ Nc((e) => {
595
+ }), [Pc, Fc] = c("AlertDialog", [ae]), Ic = ae(), Lc = /* @__PURE__ */ Nc((e) => {
596
596
  let { __scopeAlertDialog: t, ...n } = e;
597
- return /* @__PURE__ */ G(I, {
597
+ return /* @__PURE__ */ G(F, {
598
598
  ...Ic(t),
599
599
  ...n,
600
600
  modal: !0
601
601
  });
602
602
  }, "AlertDialog"), Rc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
603
603
  let { __scopeAlertDialog: n, ...r } = e;
604
- return /* @__PURE__ */ G(pe, {
604
+ return /* @__PURE__ */ G(me, {
605
605
  ...Ic(n),
606
606
  ...r,
607
607
  ref: t
608
608
  });
609
609
  }, "AlertDialogTrigger")), zc = /* @__PURE__ */ Nc((e) => {
610
610
  let { __scopeAlertDialog: t, ...n } = e;
611
- return /* @__PURE__ */ G(ae, {
611
+ return /* @__PURE__ */ G(oe, {
612
612
  ...Ic(t),
613
613
  ...n
614
614
  });
615
615
  }, "AlertDialogPortal"), Bc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
616
616
  let { __scopeAlertDialog: n, ...r } = e;
617
- return /* @__PURE__ */ G(oe, {
617
+ return /* @__PURE__ */ G(se, {
618
618
  ...Ic(n),
619
619
  ...r,
620
620
  ref: t
@@ -624,7 +624,7 @@ var Ec = ac, Dc = vc, Oc = bc, kc = Sc, Ac = wc, jc = /* @__PURE__ */ e({
624
624
  return /* @__PURE__ */ G(Vc, {
625
625
  scope: n,
626
626
  cancelRef: c,
627
- children: /* @__PURE__ */ G(Ce, {
627
+ children: /* @__PURE__ */ G(we, {
628
628
  role: "alertdialog",
629
629
  ...o,
630
630
  ...i,
@@ -639,28 +639,28 @@ var Ec = ac, Dc = vc, Oc = bc, kc = Sc, Ac = wc, jc = /* @__PURE__ */ e({
639
639
  });
640
640
  }, "AlertDialogContent")), Wc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
641
641
  let { __scopeAlertDialog: n, ...r } = e;
642
- return /* @__PURE__ */ G(se, {
642
+ return /* @__PURE__ */ G(ce, {
643
643
  ...Ic(n),
644
644
  ...r,
645
645
  ref: t
646
646
  });
647
647
  }, "AlertDialogTitle")), Gc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
648
648
  let { __scopeAlertDialog: n, ...r } = e;
649
- return /* @__PURE__ */ G(ce, {
649
+ return /* @__PURE__ */ G(le, {
650
650
  ...Ic(n),
651
651
  ...r,
652
652
  ref: t
653
653
  });
654
654
  }, "AlertDialogDescription")), Kc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
655
655
  let { __scopeAlertDialog: n, ...r } = e;
656
- return /* @__PURE__ */ G(F, {
656
+ return /* @__PURE__ */ G(P, {
657
657
  ...Ic(n),
658
658
  ...r,
659
659
  ref: t
660
660
  });
661
661
  }, "AlertDialogAction")), qc = "AlertDialogCancel", Jc = z.forwardRef(/* @__PURE__ */ Nc(function(e, t) {
662
662
  let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = Hc(qc, n), o = Ic(n), s = a(t, i);
663
- return /* @__PURE__ */ G(F, {
663
+ return /* @__PURE__ */ G(P, {
664
664
  ...o,
665
665
  ...r,
666
666
  ref: s
@@ -999,7 +999,7 @@ Ll(Zl, "getState");
999
999
  var Ql = Object.defineProperty, $l = (e, t) => Ql(e, "name", {
1000
1000
  value: t,
1001
1001
  configurable: !0
1002
- }), eu = "Tabs", [tu, nu] = c(eu, [N]), ru = N(), [iu, au] = tu(eu), ou = /* @__PURE__ */ z.forwardRef(/* @__PURE__ */ $l(function(e, t) {
1002
+ }), eu = "Tabs", [tu, nu] = c(eu, [M]), ru = M(), [iu, au] = tu(eu), ou = /* @__PURE__ */ z.forwardRef(/* @__PURE__ */ $l(function(e, t) {
1003
1003
  let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: c, activationMode: l = "automatic", ...d } = e, f = j(c), [m, h] = s({
1004
1004
  prop: r,
1005
1005
  onChange: i,
@@ -1023,7 +1023,7 @@ var Ql = Object.defineProperty, $l = (e, t) => Ql(e, "name", {
1023
1023
  });
1024
1024
  }, "Tabs")), su = "TabsList", cu = /* @__PURE__ */ z.forwardRef(/* @__PURE__ */ $l(function(e, t) {
1025
1025
  let { __scopeTabs: n, loop: r = !0, ...i } = e, a = au(su, n);
1026
- return /* @__PURE__ */ G(M, {
1026
+ return /* @__PURE__ */ G(te, {
1027
1027
  asChild: !0,
1028
1028
  ...ru(n),
1029
1029
  orientation: a.orientation,
@@ -1038,7 +1038,7 @@ var Ql = Object.defineProperty, $l = (e, t) => Ql(e, "name", {
1038
1038
  });
1039
1039
  }, "TabsList")), lu = "TabsTrigger", uu = /* @__PURE__ */ z.forwardRef(/* @__PURE__ */ $l(function(e, t) {
1040
1040
  let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = au(lu, n), s = ru(n), c = pu(o.baseId, r), l = mu(o.baseId, r), d = r === o.value;
1041
- return /* @__PURE__ */ G(te, {
1041
+ return /* @__PURE__ */ G(ne, {
1042
1042
  asChild: !0,
1043
1043
  ...s,
1044
1044
  focusable: !i,
@@ -1444,7 +1444,7 @@ function Fu({ label: e, items: t, icon: r = /* @__PURE__ */ G(Ta, { strokeWidth:
1444
1444
  open: c,
1445
1445
  onOpenChange: l,
1446
1446
  defaultOpen: u,
1447
- children: [/* @__PURE__ */ G(rt, {
1447
+ children: [/* @__PURE__ */ G(it, {
1448
1448
  asChild: !0,
1449
1449
  children: /* @__PURE__ */ G("button", {
1450
1450
  "data-slot": "fab-menu-trigger",
@@ -1468,8 +1468,8 @@ function Fu({ label: e, items: t, icon: r = /* @__PURE__ */ G(Ta, { strokeWidth:
1468
1468
  });
1469
1469
  }
1470
1470
  function Iu({ items: e, variant: t, tone: n, trigger: r, onCloseAutoFocus: i }) {
1471
- return /* @__PURE__ */ G(it, { children: /* @__PURE__ */ G(nt, {
1472
- ref: ne(!0),
1471
+ return /* @__PURE__ */ G(at, { children: /* @__PURE__ */ G(rt, {
1472
+ ref: re(!0),
1473
1473
  "data-slot": "fab-menu",
1474
1474
  "data-variant": t,
1475
1475
  "data-tone": n,
@@ -1480,7 +1480,7 @@ function Iu({ items: e, variant: t, tone: n, trigger: r, onCloseAutoFocus: i })
1480
1480
  onCloseAutoFocus: (e) => {
1481
1481
  i?.(e), !e.defaultPrevented && (e.preventDefault(), r.current?.focus({ preventScroll: !0 }));
1482
1482
  },
1483
- children: e.map((e) => /* @__PURE__ */ K(tt, {
1483
+ children: e.map((e) => /* @__PURE__ */ K(nt, {
1484
1484
  "data-slot": "fab-menu-item",
1485
1485
  className: "nxgt-fab-menu-item",
1486
1486
  disabled: e.disabled,
@@ -1529,10 +1529,10 @@ function Ru(e, t, n) {
1529
1529
  //#endregion
1530
1530
  //#region ../../node_modules/react-use/esm/useLocalStorage.js
1531
1531
  var zu = function(e, t, n) {
1532
- if (!Jt) return [
1532
+ if (!Zt) return [
1533
1533
  t,
1534
- qt,
1535
- qt
1534
+ Xt,
1535
+ Xt
1536
1536
  ];
1537
1537
  if (!e) throw Error("useLocalStorage key may not be falsy");
1538
1538
  var r = n ? n.raw ? function(e) {
@@ -1590,7 +1590,7 @@ function Bu({ children: e, loading: t = !1, lockOnClick: r, tooltip: i, filled:
1590
1590
  //#endregion
1591
1591
  //#region lib/components/ui/actions/split-button/split-button-trigger.tsx
1592
1592
  function Vu({ label: e, disabled: t, ...n }) {
1593
- return /* @__PURE__ */ G(rt, {
1593
+ return /* @__PURE__ */ G(it, {
1594
1594
  asChild: !0,
1595
1595
  children: /* @__PURE__ */ G("button", {
1596
1596
  ...n,
@@ -1734,7 +1734,7 @@ function Ku({ className: e, checked: t, defaultChecked: r, required: i, onChecke
1734
1734
  }
1735
1735
  //#endregion
1736
1736
  //#region lib/components/ui/primitives/direction/direction-of.ts
1737
- var qu = $t(), Ju = Zt();
1737
+ var qu = nn(), Ju = en();
1738
1738
  function Yu(e) {
1739
1739
  return e && getComputedStyle(e).direction === "rtl" ? "rtl" : "ltr";
1740
1740
  }
@@ -2505,7 +2505,7 @@ function Uf(e = {}) {
2505
2505
  };
2506
2506
  }
2507
2507
  function Wf(e) {
2508
- return Ne(e) && e.tagName === "BUTTON";
2508
+ return Pe(e) && e.tagName === "BUTTON";
2509
2509
  }
2510
2510
  function Gf(e) {
2511
2511
  return !!(e?.tagName === "A" && e?.href);
@@ -2667,11 +2667,11 @@ var vp = {}, yp = {}, bp = "";
2667
2667
  function xp(e) {
2668
2668
  if (typeof document > "u") return !1;
2669
2669
  let t = Yf(e);
2670
- return ze(t).innerWidth - t.documentElement.clientWidth > 0;
2670
+ return Be(t).innerWidth - t.documentElement.clientWidth > 0;
2671
2671
  }
2672
2672
  function Sp(e) {
2673
2673
  if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
2674
- let t = Yf(e), n = t.documentElement, r = t.body, i = Fe(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
2674
+ let t = Yf(e), n = t.documentElement, r = t.body, i = Ie(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
2675
2675
  n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
2676
2676
  let s = i.offsetWidth;
2677
2677
  i.style.overflowY = "hidden";
@@ -2679,7 +2679,7 @@ function Sp(e) {
2679
2679
  return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
2680
2680
  }
2681
2681
  function Cp(e) {
2682
- let t = Yf(e), n = t.documentElement, r = t.body, i = Fe(n) ? n : r, a = {
2682
+ let t = Yf(e), n = t.documentElement, r = t.body, i = Ie(n) ? n : r, a = {
2683
2683
  overflowY: i.style.overflowY,
2684
2684
  overflowX: i.style.overflowX
2685
2685
  };
@@ -2691,7 +2691,7 @@ function Cp(e) {
2691
2691
  };
2692
2692
  }
2693
2693
  function wp(e) {
2694
- let t = Yf(e), n = t.documentElement, r = t.body, i = ze(n), a = 0, o = 0, s = !1, c = jf.create();
2694
+ let t = Yf(e), n = t.documentElement, r = t.body, i = Be(n), a = 0, o = 0, s = !1, c = jf.create();
2695
2695
  if (dp && (i.visualViewport?.scale ?? 1) !== 1) return () => {};
2696
2696
  function l() {
2697
2697
  let t = i.getComputedStyle(n), c = i.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
@@ -2708,7 +2708,7 @@ function wp(e) {
2708
2708
  overflowX: r.style.overflowX,
2709
2709
  scrollBehavior: r.style.scrollBehavior
2710
2710
  };
2711
- let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || c.overflowY === "scroll", p = t.overflowX === "scroll" || c.overflowX === "scroll", m = Math.max(0, i.innerWidth - r.clientWidth), h = Math.max(0, i.innerHeight - r.clientHeight), g = parseFloat(c.marginTop) + parseFloat(c.marginBottom), _ = parseFloat(c.marginLeft) + parseFloat(c.marginRight), v = Fe(n) ? n : r;
2711
+ let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || c.overflowY === "scroll", p = t.overflowX === "scroll" || c.overflowX === "scroll", m = Math.max(0, i.innerWidth - r.clientWidth), h = Math.max(0, i.innerHeight - r.clientHeight), g = parseFloat(c.marginTop) + parseFloat(c.marginBottom), _ = parseFloat(c.marginLeft) + parseFloat(c.marginRight), v = Ie(n) ? n : r;
2712
2712
  if (s = Sp(e), s) {
2713
2713
  n.style.scrollbarGutter = l, v.style.overflowY = "hidden", v.style.overflowX = "hidden";
2714
2714
  return;
@@ -2754,7 +2754,7 @@ var Tp = new class {
2754
2754
  };
2755
2755
  lock(e) {
2756
2756
  if (this.lockCount === 0 || this.restore !== null) return;
2757
- let t = Yf(e).documentElement, n = ze(t).getComputedStyle(t).overflowY;
2757
+ let t = Yf(e).documentElement, n = Be(t).getComputedStyle(t).overflowY;
2758
2758
  if (n === "hidden" || n === "clip") {
2759
2759
  this.restore = kd;
2760
2760
  return;
@@ -2804,7 +2804,7 @@ function Bp(e, t) {
2804
2804
  if (!e || !t) return !1;
2805
2805
  let n = t.getRootNode?.();
2806
2806
  if (e.contains(t)) return !0;
2807
- if (n && $e(n)) {
2807
+ if (n && et(n)) {
2808
2808
  let n = t;
2809
2809
  for (; n;) {
2810
2810
  if (e === n) return !0;
@@ -2828,7 +2828,7 @@ function Up(e) {
2828
2828
  return e.matches("html,body");
2829
2829
  }
2830
2830
  function Wp(e) {
2831
- return Ne(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
2831
+ return Pe(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
2832
2832
  }
2833
2833
  function Gp(e) {
2834
2834
  return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Pp}`) != null;
@@ -2951,7 +2951,7 @@ function im(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols
2951
2951
  }
2952
2952
  }, x = (t) => {
2953
2953
  if (!v || u === -1) return;
2954
- let n = u % y, i = t === "up" ? -y : y, a = l - l % y, o = Qe(l / y) + 1;
2954
+ let n = u % y, i = t === "up" ? -y : y, a = l - l % y, o = $e(l / y) + 1;
2955
2955
  for (let t = u - n + i, c = 0; c < o; c += 1, t += i) {
2956
2956
  if (t < 0 || t > l) {
2957
2957
  if (!r) return;
@@ -2984,7 +2984,7 @@ function im(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols
2984
2984
  em(e, f) && (f = u);
2985
2985
  }
2986
2986
  if (n === "both") {
2987
- let n = Qe(u / o);
2987
+ let n = $e(u / o);
2988
2988
  t.key === (a ? "ArrowLeft" : "ArrowRight") && (d && Dp(t), u % o === o - 1 ? r && (f = rm(e, {
2989
2989
  startingIndex: u - u % o - 1,
2990
2990
  disabledIndices: s
@@ -3007,7 +3007,7 @@ function im(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols
3007
3007
  decrement: !0,
3008
3008
  disabledIndices: s
3009
3009
  }), i && (f = i(t, u, f)))), $p(f, o, n) && (f = u));
3010
- let c = Qe(l / o) === n;
3010
+ let c = $e(l / o) === n;
3011
3011
  em(e, f) && (r && c ? (f = t.key === (a ? "ArrowRight" : "ArrowLeft") ? l : rm(e, {
3012
3012
  startingIndex: u - u % o - 1,
3013
3013
  disabledIndices: s
@@ -3023,7 +3023,7 @@ function am(e, t, n) {
3023
3023
  function om(e) {
3024
3024
  return e.visibility === "hidden" || e.visibility === "collapse";
3025
3025
  }
3026
- function sm(e, t = e ? Le(e) : null) {
3026
+ function sm(e, t = e ? Re(e) : null) {
3027
3027
  return !e || !e.isConnected || !t || om(t) ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : t.display !== "none" && t.display !== "contents";
3028
3028
  }
3029
3029
  //#endregion
@@ -3034,10 +3034,10 @@ function lm(e) {
3034
3034
  if (t) return t;
3035
3035
  if (e.parentElement) return e.parentElement;
3036
3036
  let n = e.getRootNode();
3037
- return $e(n) ? n.host : null;
3037
+ return et(n) ? n.host : null;
3038
3038
  }
3039
3039
  function um(e) {
3040
- for (let t of Array.from(e.children)) if (Ke(t) === "summary") return t;
3040
+ for (let t of Array.from(e.children)) if (qe(t) === "summary") return t;
3041
3041
  return null;
3042
3042
  }
3043
3043
  function dm(e, t) {
@@ -3045,31 +3045,31 @@ function dm(e, t) {
3045
3045
  return !!n && (e === n || Bp(n, e));
3046
3046
  }
3047
3047
  function fm(e) {
3048
- let t = e ? Ke(e) : "";
3049
- return e != null && e.matches(cm) && (t !== "summary" || e.parentElement != null && Ke(e.parentElement) === "details" && um(e.parentElement) === e) && (t !== "details" || um(e) == null) && (t !== "input" || e.type !== "hidden");
3048
+ let t = e ? qe(e) : "";
3049
+ return e != null && e.matches(cm) && (t !== "summary" || e.parentElement != null && qe(e.parentElement) === "details" && um(e.parentElement) === e) && (t !== "details" || um(e) == null) && (t !== "input" || e.type !== "hidden");
3050
3050
  }
3051
3051
  function pm(e) {
3052
3052
  if (!fm(e) || !e.isConnected || e.matches(":disabled")) return !1;
3053
3053
  for (let t = e; t; t = lm(t)) {
3054
- let n = t !== e, r = Ke(t) === "slot";
3055
- if (t.hasAttribute("inert") || n && Ke(t) === "details" && !t.open && !dm(e, t) || t.hasAttribute("hidden") || !r && !mm(t, n)) return !1;
3054
+ let n = t !== e, r = qe(t) === "slot";
3055
+ if (t.hasAttribute("inert") || n && qe(t) === "details" && !t.open && !dm(e, t) || t.hasAttribute("hidden") || !r && !mm(t, n)) return !1;
3056
3056
  }
3057
3057
  return !0;
3058
3058
  }
3059
3059
  function mm(e, t) {
3060
- let n = Le(e);
3060
+ let n = Re(e);
3061
3061
  return t ? n.display !== "none" : sm(e, n);
3062
3062
  }
3063
3063
  function hm(e) {
3064
3064
  let t = e.tabIndex;
3065
3065
  if (t < 0) {
3066
- let t = Ke(e);
3067
- if (t === "details" || t === "audio" || t === "video" || Ne(e) && e.isContentEditable) return 0;
3066
+ let t = qe(e);
3067
+ if (t === "details" || t === "audio" || t === "video" || Pe(e) && e.isContentEditable) return 0;
3068
3068
  }
3069
3069
  return t;
3070
3070
  }
3071
3071
  function gm(e) {
3072
- if (Ke(e) !== "input") return null;
3072
+ if (qe(e) !== "input") return null;
3073
3073
  let t = e;
3074
3074
  return t.type === "radio" && t.name !== "" ? t : null;
3075
3075
  }
@@ -3086,11 +3086,11 @@ function _m(e, t) {
3086
3086
  }) === n;
3087
3087
  }
3088
3088
  function vm(e) {
3089
- if (Ne(e) && Ke(e) === "slot") {
3089
+ if (Pe(e) && qe(e) === "slot") {
3090
3090
  let t = e.assignedElements({ flatten: !0 });
3091
3091
  if (t.length > 0) return t;
3092
3092
  }
3093
- return Ne(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
3093
+ return Pe(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
3094
3094
  }
3095
3095
  function ym(e, t) {
3096
3096
  vm(e).forEach((e) => {
@@ -3099,7 +3099,7 @@ function ym(e, t) {
3099
3099
  }
3100
3100
  function bm(e, t, n) {
3101
3101
  vm(e).forEach((e) => {
3102
- Ne(e) && e.matches(t) && n.push(e), bm(e, t, n);
3102
+ Pe(e) && e.matches(t) && n.push(e), bm(e, t, n);
3103
3103
  });
3104
3104
  }
3105
3105
  function xm(e) {
@@ -3187,7 +3187,7 @@ function Bm(e) {
3187
3187
  return Lm[e];
3188
3188
  }
3189
3189
  function Vm(e) {
3190
- return e ? $e(e) ? e.host : Vm(e.parentNode) : null;
3190
+ return e ? et(e) ? e.host : Vm(e.parentNode) : null;
3191
3191
  }
3192
3192
  var Hm = (e, t) => t.map((t) => {
3193
3193
  if (e.contains(t)) return t;
@@ -3202,7 +3202,7 @@ var Hm = (e, t) => t.map((t) => {
3202
3202
  }, Wm = (e, t, n) => {
3203
3203
  let r = [], i = (e) => {
3204
3204
  !e || n.has(e) || Array.from(e.children).forEach((e) => {
3205
- Ke(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
3205
+ qe(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
3206
3206
  });
3207
3207
  };
3208
3208
  return i(e), r;
@@ -3257,7 +3257,7 @@ function $m(e = {}) {
3257
3257
  return;
3258
3258
  }
3259
3259
  if (a == null) return;
3260
- let e = (n && (et(n) ? n : n.current)) ?? o ?? document.body;
3260
+ let e = (n && (tt(n) ? n : n.current)) ?? o ?? document.body;
3261
3261
  if (e == null) {
3262
3262
  f.current && (f.current = null, u(null), c(null));
3263
3263
  return;
@@ -3359,7 +3359,7 @@ var ih = () => z.useContext(nh)?.id || null, ah = (e) => {
3359
3359
  //#endregion
3360
3360
  //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
3361
3361
  function oh(e, t) {
3362
- let n = ze(Vp(e));
3362
+ let n = Be(Vp(e));
3363
3363
  return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
3364
3364
  }
3365
3365
  var sh = 20, ch = [];
@@ -3367,7 +3367,7 @@ function lh() {
3367
3367
  ch = ch.filter((e) => e.deref()?.isConnected);
3368
3368
  }
3369
3369
  function uh(e) {
3370
- lh(), e && Ke(e) !== "body" && (ch.push(new WeakRef(e)), ch.length > sh && (ch = ch.slice(-20)));
3370
+ lh(), e && qe(e) !== "body" && (ch.push(new WeakRef(e)), ch.length > sh && (ch = ch.slice(-20)));
3371
3371
  }
3372
3372
  function dh() {
3373
3373
  return lh(), ch[ch.length - 1]?.deref();
@@ -3384,62 +3384,62 @@ function ph(e) {
3384
3384
  t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
3385
3385
  }
3386
3386
  function mh(e) {
3387
- let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: s = !0, closeOnFocusOut: c = !0, openInteractionType: l = "", nextFocusableElement: u, previousFocusableElement: d, beforeContentFocusGuardRef: f, externalTree: p, getInsideElements: m } = e, h = "rootStore" in t ? t.rootStore : t, g = h.useState("open"), _ = h.useState("domReferenceElement"), v = h.useState("floatingElement"), { events: y, dataRef: b } = h.context, x = q(() => b.current.floatingContext?.nodeId), S = i === !1, C = Kp(_) && S, w = qf(i), T = qf(a), E = qf(l), D = qf(g), O = ah(p), k = Zm(), A = z.useRef(!1), ee = z.useRef(!1), j = z.useRef(!1), M = z.useRef(null), N = z.useRef(""), te = z.useRef(""), ne = z.useRef(null), P = z.useRef(null), re = yd(ne, f, k?.beforeInsideRef), ie = yd(P, k?.afterInsideRef), F = _p(), ae = _p(), oe = Mf(), se = k != null, I = qp(v), ce = q((e = I) => e ? Cm(e) : []), le = q(() => m?.().filter((e) => e != null) ?? []);
3387
+ let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: s = !0, closeOnFocusOut: c = !0, openInteractionType: l = "", nextFocusableElement: u, previousFocusableElement: d, beforeContentFocusGuardRef: f, externalTree: p, getInsideElements: m } = e, h = "rootStore" in t ? t.rootStore : t, g = h.useState("open"), _ = h.useState("domReferenceElement"), v = h.useState("floatingElement"), { events: y, dataRef: b } = h.context, x = q(() => b.current.floatingContext?.nodeId), S = i === !1, C = Kp(_) && S, w = qf(i), T = qf(a), E = qf(l), D = qf(g), O = ah(p), k = Zm(), A = z.useRef(!1), ee = z.useRef(!1), j = z.useRef(!1), te = z.useRef(null), M = z.useRef(""), ne = z.useRef(""), re = z.useRef(null), N = z.useRef(null), ie = yd(re, f, k?.beforeInsideRef), ae = yd(N, k?.afterInsideRef), P = _p(), oe = _p(), se = Mf(), ce = k != null, F = qp(v), le = q((e = F) => e ? Cm(e) : []), ue = q(() => m?.().filter((e) => e != null) ?? []);
3388
3388
  z.useEffect(() => {
3389
3389
  if (r || !s) return;
3390
3390
  function e(e) {
3391
- e.key === "Tab" && Bp(I, zp(Yf(I))) && ce().length === 0 && !C && Dp(e);
3391
+ e.key === "Tab" && Bp(F, zp(Yf(F))) && le().length === 0 && !C && Dp(e);
3392
3392
  }
3393
- return Kf(Yf(I), "keydown", e);
3393
+ return Kf(Yf(F), "keydown", e);
3394
3394
  }, [
3395
3395
  r,
3396
- I,
3396
+ F,
3397
3397
  s,
3398
3398
  C,
3399
- ce
3399
+ le
3400
3400
  ]), z.useEffect(() => {
3401
3401
  if (r || !g) return;
3402
- let e = Yf(I);
3402
+ let e = Yf(F);
3403
3403
  function t() {
3404
3404
  j.current = !1;
3405
3405
  }
3406
3406
  function n(e) {
3407
- let t = Vp(e), n = le(), r = Bp(v, t) || Bp(_, t) || Bp(k?.portalNode, t) || n.some((e) => e === t || Bp(e, t));
3408
- j.current = !r, te.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (ee.current = !0, ae.start(0, () => {
3407
+ let t = Vp(e), n = ue(), r = Bp(v, t) || Bp(_, t) || Bp(k?.portalNode, t) || n.some((e) => e === t || Bp(e, t));
3408
+ j.current = !r, ne.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (ee.current = !0, oe.start(0, () => {
3409
3409
  ee.current = !1;
3410
3410
  }));
3411
3411
  }
3412
3412
  function i() {
3413
- te.current = "keyboard";
3413
+ ne.current = "keyboard";
3414
3414
  }
3415
3415
  return Jp(Kf(e, "pointerdown", n, !0), Kf(e, "pointerup", t, !0), Kf(e, "pointercancel", t, !0), Kf(e, "keydown", i, !0), t);
3416
3416
  }, [
3417
3417
  r,
3418
3418
  v,
3419
3419
  _,
3420
- I,
3420
+ F,
3421
3421
  g,
3422
3422
  k,
3423
- ae,
3424
- le
3423
+ oe,
3424
+ ue
3425
3425
  ]), z.useEffect(() => {
3426
3426
  if (r || !c) return;
3427
- let e = Yf(I);
3427
+ let e = Yf(F);
3428
3428
  function t() {
3429
- ee.current = !0, ae.start(0, () => {
3429
+ ee.current = !0, oe.start(0, () => {
3430
3430
  ee.current = !1;
3431
3431
  });
3432
3432
  }
3433
3433
  function n(e) {
3434
3434
  let t = Vp(e);
3435
- xm(t) && (M.current = t);
3435
+ xm(t) && (te.current = t);
3436
3436
  }
3437
3437
  function i(t) {
3438
3438
  let n = t.relatedTarget, r = t.currentTarget, i = Vp(t);
3439
3439
  s && n == null && i != null && Bp(v, i) && uh(i), queueMicrotask(() => {
3440
- let a = x(), c = h.context.triggerElements, l = le(), f = n?.hasAttribute(Mm("focus-guard")) && [
3441
- ne.current,
3442
- P.current,
3440
+ let a = x(), c = h.context.triggerElements, l = ue(), f = n?.hasAttribute(Mm("focus-guard")) && [
3441
+ re.current,
3442
+ N.current,
3443
3443
  k?.beforeInsideRef.current,
3444
3444
  k?.afterInsideRef.current,
3445
3445
  k?.beforeOutsideRef.current,
@@ -3447,15 +3447,15 @@ function mh(e) {
3447
3447
  Xf(d),
3448
3448
  Xf(u)
3449
3449
  ].includes(n), p = !(Bp(_, n) || Bp(v, n) || Bp(n, v) || Bp(k?.portalNode, n) || l.some((e) => e === n || Bp(e, n)) || n != null && c.hasElement(n) || c.hasMatchingElement((e) => Bp(e, n)) || f || O && (Am(O.nodesRef.current, a).find((e) => Bp(e.context?.elements.floating, n) || Bp(e.context?.elements.domReference, n)) || jm(O.nodesRef.current, a).find((e) => [e.context?.elements.floating, qp(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
3450
- if (r === _ && I && ph(I), o && r !== _ && !sm(i) && zp(e) === e.body) {
3451
- if (Ne(I) && (I.focus(), o === "popup")) {
3452
- oe.request(() => {
3453
- I.focus();
3450
+ if (r === _ && F && ph(F), o && r !== _ && !sm(i) && zp(e) === e.body) {
3451
+ if (Pe(F) && (F.focus(), o === "popup")) {
3452
+ se.request(() => {
3453
+ F.focus();
3454
3454
  });
3455
3455
  return;
3456
3456
  }
3457
- let e = ce(), t = M.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || I;
3458
- Ne(n) && n.focus();
3457
+ let e = le(), t = te.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || F;
3458
+ Pe(n) && n.focus();
3459
3459
  }
3460
3460
  if (b.current.insideReactTree) {
3461
3461
  b.current.insideReactTree = !1;
@@ -3465,43 +3465,43 @@ function mh(e) {
3465
3465
  });
3466
3466
  }
3467
3467
  function a() {
3468
- j.current || (b.current.insideReactTree = !0, F.start(0, () => {
3468
+ j.current || (b.current.insideReactTree = !0, P.start(0, () => {
3469
3469
  b.current.insideReactTree = !1;
3470
3470
  }));
3471
3471
  }
3472
- let l = Ne(_) ? _ : null;
3472
+ let l = Pe(_) ? _ : null;
3473
3473
  if (!(!v && !l)) return Jp(l && Kf(l, "focusout", i), l && Kf(l, "pointerdown", t), v && Kf(v, "focusin", n), v && Kf(v, "focusout", i), v && k && Kf(v, "focusout", a, !0));
3474
3474
  }, [
3475
3475
  r,
3476
3476
  _,
3477
3477
  v,
3478
- I,
3478
+ F,
3479
3479
  s,
3480
3480
  O,
3481
3481
  k,
3482
3482
  h,
3483
3483
  c,
3484
3484
  o,
3485
- ce,
3485
+ le,
3486
3486
  C,
3487
3487
  x,
3488
3488
  b,
3489
- F,
3490
- ae,
3489
+ P,
3491
3490
  oe,
3491
+ se,
3492
3492
  u,
3493
3493
  d,
3494
- le
3494
+ ue
3495
3495
  ]), z.useEffect(() => {
3496
3496
  if (r || !v || !g) return;
3497
3497
  let e = Array.from(k?.portalNode?.querySelectorAll(`[${Mm("portal")}]`) || []), t = (O ? jm(O.nodesRef.current, x()) : []).find((e) => Kp(e.context?.elements.domReference || null))?.context?.elements.domReference, n = Km([
3498
3498
  v,
3499
3499
  ...e,
3500
- ne.current,
3501
- P.current,
3500
+ re.current,
3501
+ N.current,
3502
3502
  k?.beforeOutsideRef.current,
3503
3503
  k?.afterOutsideRef.current,
3504
- ...le(),
3504
+ ...ue(),
3505
3505
  t,
3506
3506
  Xf(d),
3507
3507
  Xf(u),
@@ -3525,79 +3525,79 @@ function mh(e) {
3525
3525
  x,
3526
3526
  u,
3527
3527
  d,
3528
- le
3528
+ ue
3529
3529
  ]), J(() => {
3530
- if (!g || r || !Ne(I)) return;
3531
- let e = Yf(I), t = zp(e);
3530
+ if (!g || r || !Pe(F)) return;
3531
+ let e = Yf(F), t = zp(e);
3532
3532
  queueMicrotask(() => {
3533
3533
  let n = w.current, r = typeof n == "function" ? n(E.current || "") : n;
3534
- if (r === void 0 || r === !1 || Bp(I, t)) return;
3535
- let i = null, a = () => (i ??= ce(I), i[0] || I), o;
3534
+ if (r === void 0 || r === !1 || Bp(F, t)) return;
3535
+ let i = null, a = () => (i ??= le(F), i[0] || F), o;
3536
3536
  o = r === !0 || r === null ? a() : Xf(r), o ||= a();
3537
- let s = Bp(I, zp(e));
3537
+ let s = Bp(F, zp(e));
3538
3538
  Pm(o, {
3539
- preventScroll: o === I,
3539
+ preventScroll: o === F,
3540
3540
  shouldFocus() {
3541
3541
  if (!D.current) return !1;
3542
3542
  if (s) return !0;
3543
3543
  let t = zp(e);
3544
- return !(t !== o && Bp(I, t));
3544
+ return !(t !== o && Bp(F, t));
3545
3545
  }
3546
3546
  });
3547
3547
  });
3548
3548
  }, [
3549
3549
  r,
3550
3550
  g,
3551
- I,
3552
- ce,
3551
+ F,
3552
+ le,
3553
3553
  w,
3554
3554
  E,
3555
3555
  D
3556
3556
  ]), J(() => {
3557
- if (r || !I) return;
3558
- let e = Yf(I), t = zp(e), n = E.current == null;
3557
+ if (r || !F) return;
3558
+ let e = Yf(F), t = zp(e), n = E.current == null;
3559
3559
  uh(t);
3560
3560
  function i(e) {
3561
- if (e.open || (N.current = oh(e.nativeEvent, te.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (A.current = !0), e.reason === "outside-press") if (e.nested) A.current = !1;
3561
+ if (e.open || (M.current = oh(e.nativeEvent, ne.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (A.current = !0), e.reason === "outside-press") if (e.nested) A.current = !1;
3562
3562
  else if (kp(e.nativeEvent) || Ap(e.nativeEvent)) A.current = !1;
3563
3563
  else {
3564
3564
  let e = !1;
3565
- Yf(I).createElement("div").focus({ get preventScroll() {
3565
+ Yf(F).createElement("div").focus({ get preventScroll() {
3566
3566
  return e = !0, !1;
3567
3567
  } }), e ? A.current = !1 : A.current = !0;
3568
3568
  }
3569
3569
  }
3570
3570
  y.on("openchange", i);
3571
3571
  function a() {
3572
- let e = T.current, r = typeof e == "function" ? e(N.current) : e;
3572
+ let e = T.current, r = typeof e == "function" ? e(M.current) : e;
3573
3573
  if (r === void 0 || r === !1) return null;
3574
3574
  r === null && (r = !0);
3575
- let i = _?.isConnected ? _ : null, a = t?.isConnected && Ke(t) !== "body" ? t : null, o = n ? a || i : i || a;
3575
+ let i = _?.isConnected ? _ : null, a = t?.isConnected && qe(t) !== "body" ? t : null, o = n ? a || i : i || a;
3576
3576
  return o ||= dh() || null, typeof r == "boolean" ? o : Xf(r) || o || null;
3577
3577
  }
3578
3578
  return () => {
3579
3579
  y.off("openchange", i);
3580
- let t = zp(e), n = le(), r = Bp(v, t) || n.some((e) => e === t || Bp(e, t)) || O && Am(O.nodesRef.current, x(), !1).some((e) => Bp(e.context?.elements.floating, t)), o = T.current, s = a();
3580
+ let t = zp(e), n = ue(), r = Bp(v, t) || n.some((e) => e === t || Bp(e, t)) || O && Am(O.nodesRef.current, x(), !1).some((e) => Bp(e.context?.elements.floating, t)), o = T.current, s = a();
3581
3581
  queueMicrotask(() => {
3582
3582
  let n = fh(s), i = typeof o != "boolean";
3583
- o && !A.current && Ne(n) && (!(!i && n !== t && t !== e.body) || r) && n.focus({ preventScroll: !0 }), A.current = !1;
3583
+ o && !A.current && Pe(n) && (!(!i && n !== t && t !== e.body) || r) && n.focus({ preventScroll: !0 }), A.current = !1;
3584
3584
  });
3585
3585
  };
3586
3586
  }, [
3587
3587
  r,
3588
3588
  v,
3589
- I,
3589
+ F,
3590
3590
  T,
3591
3591
  E,
3592
3592
  y,
3593
3593
  O,
3594
3594
  _,
3595
3595
  x,
3596
- le
3596
+ ue
3597
3597
  ]), J(() => {
3598
3598
  if (!dp || g || !v) return;
3599
3599
  let e = zp(Yf(v));
3600
- !Ne(e) || !Wp(e) || Bp(v, e) && e.blur();
3600
+ !Pe(e) || !Wp(e) || Bp(v, e) && e.blur();
3601
3601
  }, [g, v]), J(() => {
3602
3602
  if (!(r || !k)) return k.setFocusManagerState({
3603
3603
  modal: s,
@@ -3617,28 +3617,28 @@ function mh(e) {
3617
3617
  c,
3618
3618
  _
3619
3619
  ]), J(() => {
3620
- if (!(r || !I)) return ph(I), () => {
3620
+ if (!(r || !F)) return ph(F), () => {
3621
3621
  queueMicrotask(lh);
3622
3622
  };
3623
- }, [r, I]);
3624
- let ue = !r && (!s || !C) && (se || s);
3623
+ }, [r, F]);
3624
+ let de = !r && (!s || !C) && (ce || s);
3625
3625
  return /*#__PURE__*/ K(z.Fragment, { children: [
3626
- ue && /*#__PURE__*/ G(Qp, {
3626
+ de && /*#__PURE__*/ G(Qp, {
3627
3627
  "data-type": "inside",
3628
- ref: re,
3628
+ ref: ie,
3629
3629
  onFocus: (e) => {
3630
3630
  if (s) {
3631
- let e = ce();
3631
+ let e = le();
3632
3632
  Pm(e[e.length - 1]);
3633
3633
  } else k?.portalNode && (A.current = !1, Dm(e, k.portalNode) ? Tm(_)?.focus() : Xf(d ?? k.beforeOutsideRef)?.focus());
3634
3634
  }
3635
3635
  }),
3636
3636
  n,
3637
- ue && /*#__PURE__*/ G(Qp, {
3637
+ de && /*#__PURE__*/ G(Qp, {
3638
3638
  "data-type": "inside",
3639
- ref: ie,
3639
+ ref: ae,
3640
3640
  onFocus: (e) => {
3641
- s ? Pm(ce()[0]) : k?.portalNode && (c && (A.current = !0), Dm(e, k.portalNode) ? Em(_)?.focus() : Xf(u ?? k.afterOutsideRef)?.focus());
3641
+ s ? Pm(le()[0]) : k?.portalNode && (c && (A.current = !0), Dm(e, k.portalNode) ? Em(_)?.focus() : Xf(u ?? k.afterOutsideRef)?.focus());
3642
3642
  }
3643
3643
  })
3644
3644
  ] });
@@ -3724,13 +3724,13 @@ function vh(e, t = {}) {
3724
3724
  if (!u || !n || !r || e.key !== "Escape" || C.current || !v && k("__escapeKeyBubbles")) return;
3725
3725
  let t = wf(Sf, Op(e) ? e.nativeEvent : e);
3726
3726
  l.setOpen(!1, t), t.isCanceled || e.preventDefault(), !v && !t.isPropagationAllowed && e.stopPropagation();
3727
- }), M = q(() => {
3727
+ }), te = q(() => {
3728
3728
  f.current.insideReactTree = !0, D.start(0, O);
3729
- }), N = q((e) => {
3729
+ }), M = q((e) => {
3730
3730
  if (!u || !n || e.button !== 0) return;
3731
3731
  let t = Vp(e.nativeEvent);
3732
3732
  Bp(l.select("floatingElement"), t) && (b.current || (b.current = !0, x.current = !1));
3733
- }), te = q((e) => {
3733
+ }), ne = q((e) => {
3734
3734
  !u || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && b.current && (x.current = !0);
3735
3735
  });
3736
3736
  z.useEffect(() => {
@@ -3774,17 +3774,17 @@ function vh(e, t = {}) {
3774
3774
  O();
3775
3775
  return;
3776
3776
  }
3777
- let n = Vp(e), r = `[${Mm("inert")}]`, i = Re(n) ? n.getRootNode() : null, a = Array.from(($e(i) ? i : Yf(l.select("floatingElement"))).querySelectorAll(r)), o = l.context.triggerElements;
3777
+ let n = Vp(e), r = `[${Mm("inert")}]`, i = ze(n) ? n.getRootNode() : null, a = Array.from((et(i) ? i : Yf(l.select("floatingElement"))).querySelectorAll(r)), o = l.context.triggerElements;
3778
3778
  if (n && (o.hasElement(n) || o.hasMatchingElement((e) => Bp(e, n)))) return;
3779
- let s = Re(n) ? n : null;
3780
- for (; s && !Ze(s);) {
3781
- let e = Ue(s);
3782
- if (Ze(e) || !Re(e)) break;
3779
+ let s = ze(n) ? n : null;
3780
+ for (; s && !Qe(s);) {
3781
+ let e = We(s);
3782
+ if (Qe(e) || !ze(e)) break;
3783
3783
  s = e;
3784
3784
  }
3785
- if (!(a.length && Re(n) && !Up(n) && !Bp(n, l.select("floatingElement")) && a.every((e) => !Bp(s, e)))) {
3786
- if (Ne(n) && !("touches" in e)) {
3787
- let t = Ze(n), r = Le(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;
3785
+ if (!(a.length && ze(n) && !Up(n) && !Bp(n, l.select("floatingElement")) && a.every((e) => !Bp(s, e)))) {
3786
+ if (Pe(n) && !("touches" in e)) {
3787
+ let t = Qe(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;
3788
3788
  if (u || d) return;
3789
3789
  }
3790
3790
  if (!D(e)) {
@@ -3796,10 +3796,10 @@ function vh(e, t = {}) {
3796
3796
  }
3797
3797
  }
3798
3798
  }
3799
- function M(e) {
3799
+ function te(e) {
3800
3800
  c() !== "sloppy" || e.pointerType === "touch" || !l.select("open") || !n || A(e) || ee(e);
3801
3801
  }
3802
- function N(e) {
3802
+ function M(e) {
3803
3803
  if (c() !== "sloppy" || !l.select("open") || !n || A(e)) return;
3804
3804
  let t = e.touches[0];
3805
3805
  t && (T.current = {
@@ -3812,22 +3812,22 @@ function vh(e, t = {}) {
3812
3812
  T.current && (T.current.dismissOnTouchEnd = !1, T.current.dismissOnMouseDown = !1);
3813
3813
  }));
3814
3814
  }
3815
- function te(e, t) {
3815
+ function ne(e, t) {
3816
3816
  let n = Vp(e);
3817
3817
  if (!n) return;
3818
3818
  let r = Kf(n, e.type, () => {
3819
3819
  t(e), r();
3820
3820
  });
3821
3821
  }
3822
- function ne(e) {
3823
- w.current = "touch", te(e, N);
3822
+ function re(e) {
3823
+ w.current = "touch", ne(e, M);
3824
3824
  }
3825
- function P(e) {
3826
- E.clear(), e.type === "pointerdown" && (w.current = e.pointerType), !(e.type === "mousedown" && T.current && !T.current.dismissOnMouseDown) && te(e, (e) => {
3827
- e.type === "pointerdown" ? M(e) : ee(e);
3825
+ function N(e) {
3826
+ E.clear(), e.type === "pointerdown" && (w.current = e.pointerType), !(e.type === "mousedown" && T.current && !T.current.dismissOnMouseDown) && ne(e, (e) => {
3827
+ e.type === "pointerdown" ? te(e) : ee(e);
3828
3828
  });
3829
3829
  }
3830
- function re(e) {
3830
+ function ie(e) {
3831
3831
  if (!b.current) return;
3832
3832
  let n = x.current;
3833
3833
  if (s(), c() === "intentional") {
@@ -3844,25 +3844,25 @@ function vh(e, t = {}) {
3844
3844
  }
3845
3845
  }
3846
3846
  }
3847
- function ie(e) {
3847
+ function ae(e) {
3848
3848
  if (c() !== "sloppy" || !T.current || A(e)) return;
3849
3849
  let t = e.touches[0];
3850
3850
  if (!t) return;
3851
3851
  let n = Math.abs(t.clientX - T.current.startX), r = Math.abs(t.clientY - T.current.startY), i = Math.sqrt(n * n + r * r);
3852
3852
  i > 5 && (T.current.dismissOnTouchEnd = !0), i > 10 && (ee(e), E.clear(), T.current = null);
3853
3853
  }
3854
- function F(e) {
3855
- te(e, ie);
3854
+ function P(e) {
3855
+ ne(e, ae);
3856
3856
  }
3857
- function ae(e) {
3857
+ function oe(e) {
3858
3858
  c() !== "sloppy" || !T.current || A(e) || (T.current.dismissOnTouchEnd && ee(e), E.clear(), T.current = null);
3859
3859
  }
3860
- function oe(e) {
3861
- te(e, ae);
3860
+ function se(e) {
3861
+ ne(e, oe);
3862
3862
  }
3863
- let se = Yf(d), I = Jp(r && Jp(Kf(se, "keydown", j), Kf(se, "compositionstart", i), Kf(se, "compositionend", a)), g && Jp(Kf(se, "click", P, !0), Kf(se, "pointerdown", P, !0), Kf(se, "pointerup", re, !0), Kf(se, "pointercancel", re, !0), Kf(se, "mousedown", P, !0), Kf(se, "mouseup", re, !0), Kf(se, "touchstart", ne, !0), Kf(se, "touchmove", F, !0), Kf(se, "touchend", oe, !0)));
3863
+ let ce = Yf(d), F = Jp(r && Jp(Kf(ce, "keydown", j), Kf(ce, "compositionstart", i), Kf(ce, "compositionend", a)), g && Jp(Kf(ce, "click", N, !0), Kf(ce, "pointerdown", N, !0), Kf(ce, "pointerup", ie, !0), Kf(ce, "pointercancel", ie, !0), Kf(ce, "mousedown", N, !0), Kf(ce, "mouseup", ie, !0), Kf(ce, "touchstart", re, !0), Kf(ce, "touchmove", P, !0), Kf(ce, "touchend", se, !0)));
3864
3864
  return () => {
3865
- I(), e.clear(), t.clear(), s(), S.current = !1;
3865
+ F(), e.clear(), t.clear(), s(), S.current = !1;
3866
3866
  };
3867
3867
  }, [
3868
3868
  f,
@@ -3883,38 +3883,38 @@ function vh(e, t = {}) {
3883
3883
  l,
3884
3884
  E
3885
3885
  ]), z.useEffect(O, [h, O]);
3886
- let ne = z.useMemo(() => ({
3886
+ let re = z.useMemo(() => ({
3887
3887
  onKeyDown: j,
3888
3888
  onPointerDown: ee,
3889
3889
  onClick: ee
3890
- }), [j, ee]), P = z.useMemo(() => ({
3890
+ }), [j, ee]), N = z.useMemo(() => ({
3891
3891
  onKeyDown: j,
3892
- onPointerDown: te,
3893
- onMouseDown: te,
3894
- onClickCapture: M,
3892
+ onPointerDown: ne,
3893
+ onMouseDown: ne,
3894
+ onClickCapture: te,
3895
3895
  onMouseDownCapture(e) {
3896
- M(), N(e);
3896
+ te(), M(e);
3897
3897
  },
3898
3898
  onPointerDownCapture(e) {
3899
- M(), N(e);
3899
+ te(), M(e);
3900
3900
  },
3901
- onMouseUpCapture: M,
3902
- onTouchEndCapture: M,
3903
- onTouchMoveCapture: M
3901
+ onMouseUpCapture: te,
3902
+ onTouchEndCapture: te,
3903
+ onTouchMoveCapture: te
3904
3904
  }), [
3905
3905
  j,
3906
+ te,
3906
3907
  M,
3907
- N,
3908
- te
3908
+ ne
3909
3909
  ]);
3910
3910
  return z.useMemo(() => n ? {
3911
- reference: ne,
3912
- floating: P,
3913
- trigger: ne
3911
+ reference: re,
3912
+ floating: N,
3913
+ trigger: re
3914
3914
  } : {}, [
3915
3915
  n,
3916
- ne,
3917
- P
3916
+ re,
3917
+ N
3918
3918
  ]);
3919
3919
  }
3920
3920
  //#endregion
@@ -4205,7 +4205,7 @@ function Nh(e) {
4205
4205
  let { open: t = !1, onOpenChange: n, elements: r = {} } = e, i = lf(), a = ih() != null;
4206
4206
  if (process.env.NODE_ENV !== "production") {
4207
4207
  let e = r.reference;
4208
- e && !Re(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
4208
+ e && !ze(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
4209
4209
  }
4210
4210
  let o = nd(() => new Ah({
4211
4211
  open: t,
@@ -4223,7 +4223,7 @@ function Nh(e) {
4223
4223
  open: t,
4224
4224
  floatingId: i
4225
4225
  };
4226
- r.reference !== void 0 && (e.referenceElement = r.reference, e.domReferenceElement = Re(r.reference) ? r.reference : null), r.floating !== void 0 && (e.floatingElement = r.floating), o.update(e);
4226
+ r.reference !== void 0 && (e.referenceElement = r.reference, e.domReferenceElement = ze(r.reference) ? r.reference : null), r.floating !== void 0 && (e.floatingElement = r.floating), o.update(e);
4227
4227
  }, [
4228
4228
  t,
4229
4229
  i,
@@ -4249,17 +4249,17 @@ function Ph(e = {}) {
4249
4249
  ...v,
4250
4250
  ...u && { reference: u }
4251
4251
  }
4252
- }), b = Re(f) ? f : null, x = m === void 0 ? i.state.floatingElement : m;
4252
+ }), b = ze(f) ? f : null, x = m === void 0 ? i.state.floatingElement : m;
4253
4253
  i.useSyncedValue("referenceElement", f ?? null), i.useSyncedValue("domReferenceElement", f === void 0 ? s : b), i.useSyncedValue("floatingElement", x);
4254
4254
  let S = z.useCallback((e) => {
4255
- let t = Re(e) ? {
4255
+ let t = ze(e) ? {
4256
4256
  getBoundingClientRect: () => e.getBoundingClientRect(),
4257
4257
  getClientRects: () => e.getClientRects(),
4258
4258
  contextElement: e
4259
4259
  } : e;
4260
4260
  d(t), y.refs.setReference(t);
4261
4261
  }, [y.refs]), C = z.useCallback((e) => {
4262
- (Re(e) || e === null) && (g.current = e, p(e)), (Re(y.refs.reference.current) || y.refs.reference.current === null || e !== null && !Re(e)) && y.refs.setReference(e);
4262
+ (ze(e) || e === null) && (g.current = e, p(e)), (ze(y.refs.reference.current) || y.refs.reference.current === null || e !== null && !ze(e)) && y.refs.setReference(e);
4263
4263
  }, [y.refs, p]), w = z.useCallback((e) => {
4264
4264
  h(e), y.refs.setFloating(e);
4265
4265
  }, [y.refs]), T = z.useMemo(() => ({
@@ -4341,19 +4341,19 @@ function Bh(e, t, n, r) {
4341
4341
  function Vh(e, t) {
4342
4342
  let { listRef: n, activeIndex: r, onNavigate: i = () => {}, enabled: a = !0, selectedIndex: o = null, allowEscape: s = !1, loopFocus: c = !1, nested: l = !1, rtl: u = !1, virtual: d = !1, focusItemOnOpen: f = "auto", focusItemOnHover: p = !0, openOnArrowKeyDown: m = !0, disabledIndices: h = void 0, orientation: g = "vertical", parentOrientation: _, id: v, resetOnPointerLeave: y = !0, externalTree: b, grid: x } = t, S = x != null;
4343
4343
  process.env.NODE_ENV !== "production" && (s && (c || console.warn("`useListNavigation` looping must be enabled to allow escaping."), d || console.warn("`useListNavigation` must be virtual to allow escaping.")), g === "vertical" && S && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
4344
- let C = "rootStore" in e ? e.rootStore : e, w = C.useState("open"), T = C.useState("floatingElement"), E = C.useState("domReferenceElement"), D = C.context.dataRef, O = qp(T), k = Kp(E), A = qf(O), ee = ih(), j = ah(b), M = z.useRef(f), N = z.useRef(o ?? -1), te = z.useRef(null), ne = z.useRef(!0), P = q((e) => {
4345
- i(N.current === -1 ? null : N.current, e);
4346
- }), re = z.useRef(!!T), ie = z.useRef(w), F = z.useRef(!1), ae = z.useRef(!1), oe = z.useRef(null), se = qf(h), I = qf(w), ce = qf(o), le = qf(y), ue = Mf(), de = Mf(), fe = q(() => {
4344
+ let C = "rootStore" in e ? e.rootStore : e, w = C.useState("open"), T = C.useState("floatingElement"), E = C.useState("domReferenceElement"), D = C.context.dataRef, O = qp(T), k = Kp(E), A = qf(O), ee = ih(), j = ah(b), te = z.useRef(f), M = z.useRef(o ?? -1), ne = z.useRef(null), re = z.useRef(!0), N = q((e) => {
4345
+ i(M.current === -1 ? null : M.current, e);
4346
+ }), ie = z.useRef(!!T), ae = z.useRef(w), P = z.useRef(!1), oe = z.useRef(!1), se = z.useRef(null), ce = qf(h), F = qf(w), le = qf(o), ue = qf(y), de = Mf(), fe = Mf(), pe = q(() => {
4347
4347
  function e(e) {
4348
- d ? j?.events.emit("virtualfocus", e) : oe.current = Pm(e, {
4349
- sync: F.current,
4348
+ d ? j?.events.emit("virtualfocus", e) : se.current = Pm(e, {
4349
+ sync: P.current,
4350
4350
  preventScroll: !0
4351
4351
  });
4352
4352
  }
4353
- let t = n.current[N.current], r = ae.current;
4354
- t && e(t), (F.current ? (e) => e() : (e) => ue.request(e))(() => {
4355
- let i = n.current[N.current] || t;
4356
- i && (t || e(i), ve && (r || !ne.current) && i.scrollIntoView?.({
4353
+ let t = n.current[M.current], r = oe.current;
4354
+ t && e(t), (P.current ? (e) => e() : (e) => de.request(e))(() => {
4355
+ let i = n.current[M.current] || t;
4356
+ i && (t || e(i), ye && (r || !re.current) && i.scrollIntoView?.({
4357
4357
  block: "nearest",
4358
4358
  inline: "nearest"
4359
4359
  }));
@@ -4362,46 +4362,46 @@ function Vh(e, t) {
4362
4362
  J(() => {
4363
4363
  D.current.orientation = g;
4364
4364
  }, [D, g]), J(() => {
4365
- a && (w && T ? (N.current = o ?? -1, M.current && o != null && (ae.current = !0, P())) : re.current && (N.current = -1, P()));
4365
+ a && (w && T ? (M.current = o ?? -1, te.current && o != null && (oe.current = !0, N())) : ie.current && (M.current = -1, N()));
4366
4366
  }, [
4367
4367
  a,
4368
4368
  w,
4369
4369
  T,
4370
4370
  o,
4371
- P
4371
+ N
4372
4372
  ]), J(() => {
4373
4373
  if (a) {
4374
4374
  if (!w) {
4375
- F.current = !1;
4375
+ P.current = !1;
4376
4376
  return;
4377
4377
  }
4378
4378
  if (T) if (r == null) {
4379
- if (F.current = !1, ce.current != null) return;
4380
- if (re.current && (N.current = -1, fe()), (!ie.current || !re.current) && M.current && (te.current != null || M.current === !0 && te.current == null)) {
4379
+ if (P.current = !1, le.current != null) return;
4380
+ if (ie.current && (M.current = -1, pe()), (!ae.current || !ie.current) && te.current && (ne.current != null || te.current === !0 && ne.current == null)) {
4381
4381
  let e = 0, t = () => {
4382
- n.current[0] == null ? (e < 2 && (e ? (e) => de.request(e) : queueMicrotask)(t), e += 1) : (N.current = te.current == null || Rh(te.current, g, u) || l ? tm(n) : nm(n), te.current = null, P());
4382
+ n.current[0] == null ? (e < 2 && (e ? (e) => fe.request(e) : queueMicrotask)(t), e += 1) : (M.current = ne.current == null || Rh(ne.current, g, u) || l ? tm(n) : nm(n), ne.current = null, N());
4383
4383
  };
4384
4384
  t();
4385
4385
  }
4386
- } else em(n.current, r) || (N.current = r, fe(), ae.current = !1);
4386
+ } else em(n.current, r) || (M.current = r, pe(), oe.current = !1);
4387
4387
  }
4388
4388
  }, [
4389
4389
  a,
4390
4390
  w,
4391
4391
  T,
4392
4392
  r,
4393
- ce,
4393
+ le,
4394
4394
  l,
4395
4395
  n,
4396
4396
  g,
4397
4397
  u,
4398
- P,
4399
- fe,
4400
- de
4398
+ N,
4399
+ pe,
4400
+ fe
4401
4401
  ]), J(() => {
4402
- if (!a || T || !j || d || !re.current) return;
4402
+ if (!a || T || !j || d || !ie.current) return;
4403
4403
  let e = j.nodesRef.current, t = e.find((e) => e.id === ee)?.context?.elements.floating, n = zp(Yf(E ?? t ?? null)), r = e.some((e) => e.context && Bp(e.context.elements.floating, n));
4404
- t && !r && ne.current && t.focus({ preventScroll: !0 });
4404
+ t && !r && re.current && t.focus({ preventScroll: !0 });
4405
4405
  }, [
4406
4406
  a,
4407
4407
  T,
@@ -4410,96 +4410,96 @@ function Vh(e, t) {
4410
4410
  ee,
4411
4411
  d
4412
4412
  ]), J(() => {
4413
- ie.current = w, re.current = !!T;
4413
+ ae.current = w, ie.current = !!T;
4414
4414
  }), J(() => {
4415
- w || (te.current = null, M.current = f);
4415
+ w || (ne.current = null, te.current = f);
4416
4416
  }, [w, f]);
4417
- let pe = r != null, me = q((e) => {
4418
- if (!I.current) return;
4417
+ let me = r != null, he = q((e) => {
4418
+ if (!F.current) return;
4419
4419
  let t = n.current.indexOf(e.currentTarget);
4420
- t !== -1 && (N.current !== t || r !== t) && (N.current = t, P(e));
4421
- }), he = q(() => _ ?? j?.nodesRef.current.find((e) => e.id === ee)?.context?.dataRef?.current.orientation), ge = q(() => tm(n, se.current)), _e = q((e) => {
4422
- if (ne.current = !1, F.current = !0, e.which === 229 || !I.current && e.currentTarget === A.current) return;
4420
+ t !== -1 && (M.current !== t || r !== t) && (M.current = t, N(e));
4421
+ }), ge = q(() => _ ?? j?.nodesRef.current.find((e) => e.id === ee)?.context?.dataRef?.current.orientation), _e = q(() => tm(n, ce.current)), ve = q((e) => {
4422
+ if (re.current = !1, P.current = !0, e.which === 229 || !F.current && e.currentTarget === A.current) return;
4423
4423
  if (l && Bh(e.key, g, u, S)) {
4424
- Lh(e.key, he()) || Dp(e), C.setOpen(!1, wf(Cf, e.nativeEvent)), Ne(E) && (d ? j?.events.emit("virtualfocus", E) : E.focus());
4424
+ Lh(e.key, ge()) || Dp(e), C.setOpen(!1, wf(Cf, e.nativeEvent)), Pe(E) && (d ? j?.events.emit("virtualfocus", E) : E.focus());
4425
4425
  return;
4426
4426
  }
4427
- let t = N.current, r = tm(n, h), i = nm(n, h);
4428
- if (k || (e.key === "Home" && (Dp(e), N.current = r, P(e)), e.key === "End" && (Dp(e), N.current = i, P(e))), x != null) {
4429
- let t = x(e, N.current, n, g, c, u, h, r, i);
4430
- if (t != null && (N.current = t, P(e)), g === "both") return;
4427
+ let t = M.current, r = tm(n, h), i = nm(n, h);
4428
+ if (k || (e.key === "Home" && (Dp(e), M.current = r, N(e)), e.key === "End" && (Dp(e), M.current = i, N(e))), x != null) {
4429
+ let t = x(e, M.current, n, g, c, u, h, r, i);
4430
+ if (t != null && (M.current = t, N(e)), g === "both") return;
4431
4431
  }
4432
4432
  if (Lh(e.key, g)) {
4433
4433
  if (Dp(e), w && !d && zp(e.currentTarget.ownerDocument) === e.currentTarget) {
4434
- N.current = Rh(e.key, g, u) ? r : i, P(e);
4434
+ M.current = Rh(e.key, g, u) ? r : i, N(e);
4435
4435
  return;
4436
4436
  }
4437
- Rh(e.key, g, u) ? c ? t >= i ? s && t !== n.current.length ? N.current = -1 : (F.current = !1, N.current = r) : N.current = rm(n.current, {
4437
+ Rh(e.key, g, u) ? c ? t >= i ? s && t !== n.current.length ? M.current = -1 : (P.current = !1, M.current = r) : M.current = rm(n.current, {
4438
4438
  startingIndex: t,
4439
4439
  disabledIndices: h
4440
- }) : N.current = Math.min(i, rm(n.current, {
4440
+ }) : M.current = Math.min(i, rm(n.current, {
4441
4441
  startingIndex: t,
4442
4442
  disabledIndices: h
4443
- })) : c ? t <= r ? s && t !== -1 ? N.current = n.current.length : (F.current = !1, N.current = i) : N.current = rm(n.current, {
4443
+ })) : c ? t <= r ? s && t !== -1 ? M.current = n.current.length : (P.current = !1, M.current = i) : M.current = rm(n.current, {
4444
4444
  startingIndex: t,
4445
4445
  decrement: !0,
4446
4446
  disabledIndices: h
4447
- }) : N.current = Math.max(r, rm(n.current, {
4447
+ }) : M.current = Math.max(r, rm(n.current, {
4448
4448
  startingIndex: t,
4449
4449
  decrement: !0,
4450
4450
  disabledIndices: h
4451
- })), em(n.current, N.current) && (N.current = -1), P(e);
4451
+ })), em(n.current, M.current) && (M.current = -1), N(e);
4452
4452
  }
4453
- }), ve = z.useMemo(() => ({
4453
+ }), ye = z.useMemo(() => ({
4454
4454
  onFocus(e) {
4455
- F.current = !0, me(e);
4455
+ P.current = !0, he(e);
4456
4456
  },
4457
4457
  onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
4458
4458
  onMouseMove(e) {
4459
- F.current = !0, ae.current = !1, p && me(e);
4459
+ P.current = !0, oe.current = !1, p && he(e);
4460
4460
  },
4461
4461
  onPointerLeave(e) {
4462
- if (!I.current || !ne.current || e.pointerType === "touch") return;
4463
- F.current = !0;
4462
+ if (!F.current || !re.current || e.pointerType === "touch") return;
4463
+ P.current = !0;
4464
4464
  let t = e.relatedTarget;
4465
- if (!(!p || n.current.includes(t)) && le.current && (oe.current?.(), oe.current = null, N.current = -1, P(e), !d)) {
4465
+ if (!(!p || n.current.includes(t)) && ue.current && (se.current?.(), se.current = null, M.current = -1, N(e), !d)) {
4466
4466
  let e = A.current, t = zp(Yf(e));
4467
4467
  e && Bp(e, t) && e.focus({ preventScroll: !0 });
4468
4468
  }
4469
4469
  }
4470
4470
  }), [
4471
- me,
4472
- I,
4471
+ he,
4472
+ F,
4473
4473
  A,
4474
4474
  p,
4475
4475
  n,
4476
- P,
4477
- le,
4476
+ N,
4477
+ ue,
4478
4478
  d
4479
- ]), ye = z.useMemo(() => d && w && pe && { "aria-activedescendant": `${v}-${r}` }, [
4479
+ ]), be = z.useMemo(() => d && w && me && { "aria-activedescendant": `${v}-${r}` }, [
4480
4480
  d,
4481
4481
  w,
4482
- pe,
4482
+ me,
4483
4483
  v,
4484
4484
  r
4485
- ]), be = z.useMemo(() => ({
4485
+ ]), xe = z.useMemo(() => ({
4486
4486
  "aria-orientation": g === "both" ? void 0 : g,
4487
- ...k ? {} : ye,
4487
+ ...k ? {} : be,
4488
4488
  onKeyDown(e) {
4489
4489
  if (e.key === "Tab" && e.shiftKey && w && !d) {
4490
4490
  let t = Vp(e.nativeEvent);
4491
4491
  if (t && !Bp(A.current, t)) return;
4492
- Dp(e), C.setOpen(!1, wf(xf, e.nativeEvent)), Ne(E) && E.focus();
4492
+ Dp(e), C.setOpen(!1, wf(xf, e.nativeEvent)), Pe(E) && E.focus();
4493
4493
  return;
4494
4494
  }
4495
- _e(e);
4495
+ ve(e);
4496
4496
  },
4497
4497
  onPointerMove() {
4498
- ne.current = !0;
4498
+ re.current = !0;
4499
4499
  }
4500
4500
  }), [
4501
- ye,
4502
- _e,
4501
+ be,
4502
+ ve,
4503
4503
  A,
4504
4504
  g,
4505
4505
  k,
@@ -4507,36 +4507,36 @@ function Vh(e, t) {
4507
4507
  w,
4508
4508
  d,
4509
4509
  E
4510
- ]), xe = z.useMemo(() => {
4510
+ ]), Se = z.useMemo(() => {
4511
4511
  function e(e) {
4512
4512
  C.setOpen(!0, wf(Cf, e.nativeEvent, e.currentTarget));
4513
4513
  }
4514
4514
  function t(e) {
4515
- f === "auto" && kp(e.nativeEvent) && (M.current = !d);
4515
+ f === "auto" && kp(e.nativeEvent) && (te.current = !d);
4516
4516
  }
4517
4517
  function n(e) {
4518
- M.current = f, f === "auto" && Ap(e.nativeEvent) && (M.current = !0);
4518
+ te.current = f, f === "auto" && Ap(e.nativeEvent) && (te.current = !0);
4519
4519
  }
4520
4520
  return {
4521
4521
  onKeyDown(t) {
4522
4522
  let n = C.select("open");
4523
- ne.current = !1;
4524
- let r = t.key.startsWith("Arrow"), i = zh(t.key, he(), u), a = Lh(t.key, g), o = (l ? i : a) || t.key === "Enter" || t.key.trim() === "";
4525
- if (d && n) return _e(t);
4523
+ re.current = !1;
4524
+ let r = t.key.startsWith("Arrow"), i = zh(t.key, ge(), u), a = Lh(t.key, g), o = (l ? i : a) || t.key === "Enter" || t.key.trim() === "";
4525
+ if (d && n) return ve(t);
4526
4526
  if (!(!n && !m && r)) {
4527
4527
  if (o) {
4528
- let e = Lh(t.key, he());
4529
- te.current = l && e ? null : t.key;
4528
+ let e = Lh(t.key, ge());
4529
+ ne.current = l && e ? null : t.key;
4530
4530
  }
4531
4531
  if (l) {
4532
- i && (Dp(t), n ? (N.current = ge(), P(t)) : e(t));
4532
+ i && (Dp(t), n ? (M.current = _e(), N(t)) : e(t));
4533
4533
  return;
4534
4534
  }
4535
- a && (ce.current != null && (N.current = ce.current), Dp(t), !n && m ? e(t) : _e(t), n && P(t));
4535
+ a && (le.current != null && (M.current = le.current), Dp(t), !n && m ? e(t) : ve(t), n && N(t));
4536
4536
  }
4537
4537
  },
4538
4538
  onFocus(e) {
4539
- C.select("open") && !d && (N.current = -1, P(e));
4539
+ C.select("open") && !d && (M.current = -1, N(e));
4540
4540
  },
4541
4541
  onPointerDown: n,
4542
4542
  onPointerEnter: n,
@@ -4544,33 +4544,33 @@ function Vh(e, t) {
4544
4544
  onClick: t
4545
4545
  };
4546
4546
  }, [
4547
- _e,
4547
+ ve,
4548
4548
  f,
4549
- ge,
4549
+ _e,
4550
4550
  l,
4551
- P,
4551
+ N,
4552
4552
  C,
4553
4553
  m,
4554
4554
  g,
4555
- he,
4555
+ ge,
4556
4556
  u,
4557
- ce,
4557
+ le,
4558
4558
  d
4559
- ]), Se = z.useMemo(() => ({
4560
- ...ye,
4561
- ...xe
4562
- }), [ye, xe]);
4559
+ ]), Ce = z.useMemo(() => ({
4560
+ ...be,
4561
+ ...Se
4562
+ }), [be, Se]);
4563
4563
  return z.useMemo(() => a ? {
4564
- reference: Se,
4565
- floating: be,
4566
- item: ve,
4567
- trigger: xe
4564
+ reference: Ce,
4565
+ floating: xe,
4566
+ item: ye,
4567
+ trigger: Se
4568
4568
  } : {}, [
4569
4569
  a,
4570
- Se,
4571
- be,
4570
+ Ce,
4572
4571
  xe,
4573
- ve
4572
+ Se,
4573
+ ye
4574
4574
  ]);
4575
4575
  }
4576
4576
  //#endregion
@@ -5034,7 +5034,7 @@ function Vg(e = {}) {
5034
5034
  let e;
5035
5035
  if (n) {
5036
5036
  let n = r?.current;
5037
- e = Re(n) && n.closest("label") != null ? t ?? null : s ?? o;
5037
+ e = ze(n) && n.closest("label") != null ? t ?? null : s ?? o;
5038
5038
  } else if (t != null) u.current = !0, e = t;
5039
5039
  else if (u.current) e = o;
5040
5040
  else {
@@ -5142,40 +5142,40 @@ var Zg = Symbol("none"), Qg = {
5142
5142
  //#endregion
5143
5143
  //#region ../../node_modules/@base-ui/react/combobox/root/AriaCombobox.mjs
5144
5144
  function $g(e) {
5145
- let { id: t, onOpenChangeComplete: n, defaultSelectedValue: r = null, selectedValue: i, onSelectedValueChange: a, defaultInputValue: o, inputValue: s, open: c, defaultOpen: l = !1, selectionMode: u = "none", onItemHighlighted: d, name: f, form: p, disabled: m = !1, readOnly: h = !1, required: g = !1, inputRef: _, grid: v = !1, items: y, filteredItems: b, filter: x, openOnInputClick: S = !0, autoHighlight: C = !1, keepHighlight: w = !1, highlightItemOnHover: T = !0, loopFocus: E = !0, itemToStringLabel: D, itemToStringValue: O, isItemEqualToValue: k = gg, virtualized: A = !1, inline: ee = !1, fillInputOnItemPress: j = !0, modal: M = !1, limit: N = -1, autoComplete: te = "list", formAutoComplete: ne, locale: P, submitOnItemClick: re = !1 } = e, { clearErrors: ie } = Rg(), { setDirty: F, validityData: ae, setFilled: oe, name: se, disabled: I, setTouched: ce, setFocused: le, validationMode: ue, validation: de } = Fg(), fe = gd(), pe = Vg({ id: t }), me = Jg({ locale: P }), [he, ge] = z.useState(!1), [_e, ve] = z.useState(null), ye = z.useRef([]), be = z.useRef([]), xe = z.useRef(null), Se = z.useRef(null), Ce = z.useRef(null), we = z.useRef(null), Te = z.useRef(null), Ee = z.useRef(!0), De = z.useRef(!1), Oe = z.useRef(null), ke = z.useRef(null), Ae = z.useRef(null), je = z.useRef(Qg), Me = z.useRef(null), Ne = z.useRef([]), Pe = z.useRef([]), Fe = I || m, Ie = se ?? f, Le = u === "multiple", Re = u === "single", ze = s !== void 0 || o !== void 0, Be = y !== void 0, Ve = b !== void 0, He;
5146
- He = C === "always" ? "always" : C ? "input-change" : !1;
5147
- let [Ue, We] = Qu({
5145
+ let { id: t, onOpenChangeComplete: n, defaultSelectedValue: r = null, selectedValue: i, onSelectedValueChange: a, defaultInputValue: o, inputValue: s, open: c, defaultOpen: l = !1, selectionMode: u = "none", onItemHighlighted: d, name: f, form: p, disabled: m = !1, readOnly: h = !1, required: g = !1, inputRef: _, grid: v = !1, items: y, filteredItems: b, filter: x, openOnInputClick: S = !0, autoHighlight: C = !1, keepHighlight: w = !1, highlightItemOnHover: T = !0, loopFocus: E = !0, itemToStringLabel: D, itemToStringValue: O, isItemEqualToValue: k = gg, virtualized: A = !1, inline: ee = !1, fillInputOnItemPress: j = !0, modal: te = !1, limit: M = -1, autoComplete: ne = "list", formAutoComplete: re, locale: N, submitOnItemClick: ie = !1 } = e, { clearErrors: ae } = Rg(), { setDirty: P, validityData: oe, setFilled: se, name: ce, disabled: F, setTouched: le, setFocused: ue, validationMode: de, validation: fe } = Fg(), pe = gd(), me = Vg({ id: t }), he = Jg({ locale: N }), [ge, _e] = z.useState(!1), [ve, ye] = z.useState(null), be = z.useRef([]), xe = z.useRef([]), Se = z.useRef(null), Ce = z.useRef(null), we = z.useRef(null), Te = z.useRef(null), Ee = z.useRef(null), De = z.useRef(!0), Oe = z.useRef(!1), ke = z.useRef(null), Ae = z.useRef(null), je = z.useRef(null), Me = z.useRef(Qg), Ne = z.useRef(null), Pe = z.useRef([]), Fe = z.useRef([]), Ie = F || m, Le = ce ?? f, Re = u === "multiple", ze = u === "single", Be = s !== void 0 || o !== void 0, Ve = y !== void 0, He = b !== void 0, Ue;
5146
+ Ue = C === "always" ? "always" : C ? "input-change" : !1;
5147
+ let [We, Ge] = Qu({
5148
5148
  controlled: i,
5149
- default: Le ? r ?? Ad : r,
5149
+ default: Re ? r ?? Ad : r,
5150
5150
  name: "Combobox",
5151
5151
  state: "selectedValue"
5152
- }), Ge = z.useMemo(() => x === null ? () => !0 : x === void 0 ? Re && !he ? Wg(me, D, Ue) : Ug(me, D) : x, [
5152
+ }), Ke = z.useMemo(() => x === null ? () => !0 : x === void 0 ? ze && !ge ? Wg(he, D, We) : Ug(he, D) : x, [
5153
5153
  x,
5154
- Re,
5155
- Ue,
5154
+ ze,
5155
+ We,
5156
+ ge,
5156
5157
  he,
5157
- me,
5158
5158
  D
5159
- ]), Ke = nd(() => ze ? o ?? "" : Re ? wg(Ue, D) : "").current, [qe, Je] = Qu({
5159
+ ]), qe = nd(() => Be ? o ?? "" : ze ? wg(We, D) : "").current, [Je, Ye] = Qu({
5160
5160
  controlled: s,
5161
- default: Ke,
5161
+ default: qe,
5162
5162
  name: "Combobox",
5163
5163
  state: "inputValue"
5164
- }), [Ye, Xe] = Qu({
5164
+ }), [Xe, Ze] = Qu({
5165
5165
  controlled: c,
5166
5166
  default: l,
5167
5167
  name: "Combobox",
5168
5168
  state: "open"
5169
- }), Ze = Sg(y), Qe = _e ?? (qe === "" ? "" : String(qe).trim()), $e = Re ? wg(Ue, D) : "", et = Re && !he && Qe !== "" && $e !== "" && $e.length === Qe.length && me.contains($e, Qe), tt = et ? "" : Qe, nt = Be && Ve && et, rt = z.useMemo(() => y ? Ze ? y.flatMap((e) => e.items) : y : Ad, [y, Ze]), it = z.useMemo(() => {
5170
- if (b && !nt) return b;
5169
+ }), Qe = Sg(y), $e = ve ?? (Je === "" ? "" : String(Je).trim()), et = ze ? wg(We, D) : "", tt = ze && !ge && $e !== "" && et !== "" && et.length === $e.length && he.contains(et, $e), nt = tt ? "" : $e, rt = Ve && He && tt, it = z.useMemo(() => y ? Qe ? y.flatMap((e) => e.items) : y : Ad, [y, Qe]), at = z.useMemo(() => {
5170
+ if (b && !rt) return b;
5171
5171
  if (!y) return Ad;
5172
- if (Ze) {
5172
+ if (Qe) {
5173
5173
  let e = y, t = [], n = 0;
5174
5174
  for (let r of e) {
5175
- if (N > -1 && n >= N) break;
5176
- let e = tt === "" ? r.items : r.items.filter((e) => Ge(e, tt, D));
5175
+ if (M > -1 && n >= M) break;
5176
+ let e = nt === "" ? r.items : r.items.filter((e) => Ke(e, nt, D));
5177
5177
  if (e.length === 0) continue;
5178
- let i = N > -1 ? N - n : Infinity, a = e.slice(0, i);
5178
+ let i = M > -1 ? M - n : Infinity, a = e.slice(0, i);
5179
5179
  if (a.length > 0) {
5180
5180
  let e = {
5181
5181
  ...r,
@@ -5186,60 +5186,60 @@ function $g(e) {
5186
5186
  }
5187
5187
  return t;
5188
5188
  }
5189
- if (tt === "") return N > -1 ? rt.slice(0, N) : rt;
5189
+ if (nt === "") return M > -1 ? it.slice(0, M) : it;
5190
5190
  let e = [];
5191
- for (let t of rt) {
5192
- if (N > -1 && e.length >= N) break;
5193
- Ge(t, tt, D) && e.push(t);
5191
+ for (let t of it) {
5192
+ if (M > -1 && e.length >= M) break;
5193
+ Ke(t, nt, D) && e.push(t);
5194
5194
  }
5195
5195
  return e;
5196
5196
  }, [
5197
5197
  b,
5198
- nt,
5198
+ rt,
5199
5199
  y,
5200
- Ze,
5201
- tt,
5202
- N,
5203
- Ge,
5200
+ Qe,
5201
+ nt,
5202
+ M,
5203
+ Ke,
5204
5204
  D,
5205
- rt
5206
- ]), at = z.useMemo(() => Ze ? it.flatMap((e) => e.items) : it, [it, Ze]), ot = nd(() => new Dh({
5207
- id: pe,
5205
+ it
5206
+ ]), ot = z.useMemo(() => Qe ? at.flatMap((e) => e.items) : at, [at, Qe]), I = nd(() => new Dh({
5207
+ id: me,
5208
5208
  labelId: void 0,
5209
- selectedValue: Ue,
5210
- open: Ye,
5211
- filter: Ge,
5212
- query: Qe,
5209
+ selectedValue: We,
5210
+ open: Xe,
5211
+ filter: Ke,
5212
+ query: $e,
5213
5213
  items: y,
5214
5214
  selectionMode: u,
5215
- listRef: ye,
5216
- labelsRef: be,
5217
- popupRef: xe,
5218
- emptyRef: Te,
5219
- inputRef: Se,
5220
- startDismissRef: Ce,
5221
- endDismissRef: we,
5222
- keyboardActiveRef: Ee,
5223
- chipsContainerRef: Oe,
5224
- clearRef: ke,
5225
- valuesRef: Ne,
5226
- allValuesRef: Pe,
5227
- selectionEventRef: Ae,
5228
- name: Ie,
5215
+ listRef: be,
5216
+ labelsRef: xe,
5217
+ popupRef: Se,
5218
+ emptyRef: Ee,
5219
+ inputRef: Ce,
5220
+ startDismissRef: we,
5221
+ endDismissRef: Te,
5222
+ keyboardActiveRef: De,
5223
+ chipsContainerRef: ke,
5224
+ clearRef: Ae,
5225
+ valuesRef: Pe,
5226
+ allValuesRef: Fe,
5227
+ selectionEventRef: je,
5228
+ name: Le,
5229
5229
  form: p,
5230
- disabled: Fe,
5230
+ disabled: Ie,
5231
5231
  readOnly: h,
5232
5232
  required: g,
5233
5233
  grid: v,
5234
- isGrouped: Ze,
5234
+ isGrouped: Qe,
5235
5235
  virtualized: A,
5236
5236
  openOnInputClick: S,
5237
5237
  itemToStringLabel: D,
5238
5238
  isItemEqualToValue: k,
5239
- modal: M,
5240
- autoHighlight: He,
5241
- submitOnItemClick: re,
5242
- hasInputValue: ze,
5239
+ modal: te,
5240
+ autoHighlight: Ue,
5241
+ submitOnItemClick: ie,
5242
+ hasInputValue: Be,
5243
5243
  mounted: !1,
5244
5244
  forceMounted: !1,
5245
5245
  transitionStatus: "idle",
@@ -5269,214 +5269,214 @@ function $g(e) {
5269
5269
  handleSelection: kd,
5270
5270
  forceMount: kd,
5271
5271
  requestSubmit: kd
5272
- })).current, st = u === "none" ? qe : Ue, ct = z.useMemo(() => u === "none" ? st : Array.isArray(Ue) ? Ue.map((e) => Tg(e, O)) : Tg(Ue, O), [
5272
+ })).current, st = u === "none" ? Je : We, ct = z.useMemo(() => u === "none" ? st : Array.isArray(We) ? We.map((e) => Tg(e, O)) : Tg(We, O), [
5273
5273
  st,
5274
5274
  O,
5275
5275
  u,
5276
- Ue
5277
- ]), lt = q(d), ut = q(n), dt = X(ot, Z.activeIndex), ft = X(ot, Z.selectedIndex), pt = X(ot, Z.positionerElement), mt = X(ot, Z.listElement), ht = X(ot, Z.triggerElement), gt = X(ot, Z.inputElement), _t = X(ot, Z.inputGroupElement), vt = X(ot, Z.inline), yt = X(ot, Z.inputInsidePopup), bt = X(ot, Z.inputOwnsFormValue), xt = qf(ht), { mounted: St, setMounted: Ct, transitionStatus: wt } = Nf(Ye), { openMethod: Tt, triggerProps: Et } = ig(Ye), Dt = q(() => ct);
5278
- Ig(yt ? xt : Se, pe, st, Dt, !Fe, f);
5276
+ We
5277
+ ]), lt = q(d), ut = q(n), dt = X(I, Z.activeIndex), ft = X(I, Z.selectedIndex), pt = X(I, Z.positionerElement), mt = X(I, Z.listElement), ht = X(I, Z.triggerElement), gt = X(I, Z.inputElement), _t = X(I, Z.inputGroupElement), vt = X(I, Z.inline), yt = X(I, Z.inputInsidePopup), bt = X(I, Z.inputOwnsFormValue), xt = qf(ht), { mounted: St, setMounted: Ct, transitionStatus: wt } = Nf(Xe), { openMethod: Tt, triggerProps: Et } = ig(Xe), Dt = q(() => ct);
5278
+ Ig(yt ? xt : Ce, me, st, Dt, !Ie, f);
5279
5279
  let Ot = q(() => {
5280
- y ? be.current = at.map((e) => wg(e, D)) : ot.set("forceMounted", !0);
5281
- }), kt = z.useRef(Ue);
5280
+ y ? xe.current = ot.map((e) => wg(e, D)) : I.set("forceMounted", !0);
5281
+ }), kt = z.useRef(We);
5282
5282
  J(() => {
5283
- Ue !== kt.current && Ot();
5284
- }, [Ot, Ue]);
5283
+ We !== kt.current && Ot();
5284
+ }, [Ot, We]);
5285
5285
  let At = q((e) => {
5286
- ot.update(e);
5286
+ I.update(e);
5287
5287
  let t = e.type || "none";
5288
- if (e.activeIndex !== void 0) if (e.activeIndex === null) je.current !== Qg && (je.current = Qg, lt(void 0, Tf(t, void 0, { index: -1 })));
5288
+ if (e.activeIndex !== void 0) if (e.activeIndex === null) Me.current !== Qg && (Me.current = Qg, lt(void 0, Tf(t, void 0, { index: -1 })));
5289
5289
  else {
5290
- let n = Ne.current[e.activeIndex];
5291
- je.current = {
5290
+ let n = Pe.current[e.activeIndex];
5291
+ Me.current = {
5292
5292
  value: n,
5293
5293
  index: e.activeIndex
5294
5294
  }, lt(n, Tf(t, void 0, { index: e.activeIndex }));
5295
5295
  }
5296
5296
  }), jt = q((t, n) => {
5297
- if (De.current = n.reason === yf, e.onInputValueChange?.(t, n), !n.isCanceled) {
5297
+ if (Oe.current = n.reason === yf, e.onInputValueChange?.(t, n), !n.isCanceled) {
5298
5298
  if (n.reason === "input-change") {
5299
5299
  let e = n.event, r = e.inputType;
5300
5300
  if (e.type === "compositionend" || r != null && r !== "" && r !== "insertReplacementText") {
5301
5301
  let e = t.trim() !== "";
5302
- e && ge(!0), Me.current = { hasQuery: e }, e && He && ot.state.activeIndex == null && ot.set("activeIndex", 0);
5302
+ e && _e(!0), Ne.current = { hasQuery: e }, e && Ue && I.state.activeIndex == null && I.set("activeIndex", 0);
5303
5303
  }
5304
5304
  }
5305
- Je(t);
5305
+ Ye(t);
5306
5306
  }
5307
5307
  }), Mt = q((t, n) => {
5308
- if (Ye !== t && (n.reason === "escape-key" && Be && at.length === 0 && !ot.state.emptyRef.current && n.allowPropagation(), e.onOpenChange?.(t, n), !n.isCanceled && (t && Le && yt && !vt && _e !== null && (ge(!1), ve(null), qe !== "" && jt("", wf(yf, n.event))), !t && he && (Re ? (vt || ve(Qe), Qe === "" && ge(!1)) : Le && (vt || ve(Qe), yt && At({ activeIndex: null }), (!yt || vt) && jt("", wf(yf, n.event)))), Xe(t), !t && yt && (n.reason === "focus-out" || n.reason === "outside-press") && (ce(!0), le(!1), ue === "onBlur")))) {
5309
- let e = u === "none" ? qe : Ue;
5310
- de.commit(e);
5308
+ if (Xe !== t && (n.reason === "escape-key" && Ve && ot.length === 0 && !I.state.emptyRef.current && n.allowPropagation(), e.onOpenChange?.(t, n), !n.isCanceled && (t && Re && yt && !vt && ve !== null && (_e(!1), ye(null), Je !== "" && jt("", wf(yf, n.event))), !t && ge && (ze ? (vt || ye($e), $e === "" && _e(!1)) : Re && (vt || ye($e), yt && At({ activeIndex: null }), (!yt || vt) && jt("", wf(yf, n.event)))), Ze(t), !t && yt && (n.reason === "focus-out" || n.reason === "outside-press") && (le(!0), ue(!1), de === "onBlur")))) {
5309
+ let e = u === "none" ? Je : We;
5310
+ fe.commit(e);
5311
5311
  }
5312
5312
  }), Nt = q((e, t) => {
5313
- a?.(e, t), !t.isCanceled && (We(e), (u === "none" && xe.current && j || Re && !ot.state.inputInsidePopup) && jt(wg(e, D), wf(t.reason, t.event)), Re && e != null && t.reason !== "input-change" && he && !vt && ve(Qe));
5313
+ a?.(e, t), !t.isCanceled && (Ge(e), (u === "none" && Se.current && j || ze && !I.state.inputInsidePopup) && jt(wg(e, D), wf(t.reason, t.event)), ze && e != null && t.reason !== "input-change" && ge && !vt && ye($e));
5314
5314
  }), Pt = q((e, t) => {
5315
5315
  let n = t;
5316
5316
  if (n === void 0) {
5317
5317
  if (dt === null) return;
5318
- n = Ne.current[dt];
5318
+ n = Pe.current[dt];
5319
5319
  }
5320
- let r = Vp(e), i = Ae.current ?? e;
5321
- Ae.current = null;
5320
+ let r = Vp(e), i = je.current ?? e;
5321
+ je.current = null;
5322
5322
  let a = wf(mf, i), o = r?.closest("a")?.getAttribute("href");
5323
5323
  if (o) {
5324
5324
  o.startsWith("#") && Mt(!1, a);
5325
5325
  return;
5326
5326
  }
5327
- if (Le) {
5328
- let e = Array.isArray(Ue) ? Ue : [], t = vg(e, n, ot.state.isItemEqualToValue) ? bg(e, n, ot.state.isItemEqualToValue) : [...e, n];
5329
- if (Nt(t, a), a.isCanceled || !(Se.current && Se.current.value.trim() !== "")) return;
5330
- ot.state.inputInsidePopup ? jt("", wf(yf, a.event)) : Mt(!1, a);
5327
+ if (Re) {
5328
+ let e = Array.isArray(We) ? We : [], t = vg(e, n, I.state.isItemEqualToValue) ? bg(e, n, I.state.isItemEqualToValue) : [...e, n];
5329
+ if (Nt(t, a), a.isCanceled || !(Ce.current && Ce.current.value.trim() !== "")) return;
5330
+ I.state.inputInsidePopup ? jt("", wf(yf, a.event)) : Mt(!1, a);
5331
5331
  } else {
5332
5332
  if (Nt(n, a), a.isCanceled) return;
5333
5333
  Mt(!1, a);
5334
5334
  }
5335
5335
  }), Ft = q(() => {
5336
- if (!ot.state.submitOnItemClick) return;
5337
- let e = de.inputRef.current?.form ?? ot.state.inputElement?.form;
5336
+ if (!I.state.submitOnItemClick) return;
5337
+ let e = fe.inputRef.current?.form ?? I.state.inputElement?.form;
5338
5338
  e && typeof e.requestSubmit == "function" && e.requestSubmit();
5339
5339
  }), It = q(() => {
5340
- if (Ct(!1), ut?.(!1), ge(!1), ve(null), At(u === "none" ? {
5340
+ if (Ct(!1), ut?.(!1), _e(!1), ye(null), At(u === "none" ? {
5341
5341
  activeIndex: null,
5342
5342
  selectedIndex: null
5343
- } : { activeIndex: null }), Le && Se.current && Se.current.value !== "" && !De.current && jt("", wf(yf)), Re) if (ot.state.inputInsidePopup) Se.current && Se.current.value !== "" && jt("", wf(yf));
5343
+ } : { activeIndex: null }), Re && Ce.current && Ce.current.value !== "" && !Oe.current && jt("", wf(yf)), ze) if (I.state.inputInsidePopup) Ce.current && Ce.current.value !== "" && jt("", wf(yf));
5344
5344
  else {
5345
- let e = wg(Ue, D);
5346
- Se.current && Se.current.value !== e && jt(e, wf(e === "" ? yf : df));
5345
+ let e = wg(We, D);
5346
+ Ce.current && Ce.current.value !== e && jt(e, wf(e === "" ? yf : df));
5347
5347
  }
5348
- }), Lt = z.useMemo(() => vt && pt ? { current: pt.closest("[role=\"dialog\"]") } : xe, [vt, pt]);
5348
+ }), Lt = z.useMemo(() => vt && pt ? { current: pt.closest("[role=\"dialog\"]") } : Se, [vt, pt]);
5349
5349
  Qf({
5350
5350
  enabled: !e.actionsRef,
5351
- open: Ye,
5351
+ open: Xe,
5352
5352
  ref: Lt,
5353
5353
  onComplete() {
5354
- Ye || It();
5354
+ Xe || It();
5355
5355
  }
5356
5356
  }), z.useImperativeHandle(e.actionsRef, () => ({ unmount: It }), [It]), J(function() {
5357
- if (Ye || u === "none") return;
5358
- let e = y ? rt : Pe.current;
5359
- if (Le) {
5360
- let t = Array.isArray(Ue) ? Ue : [], n = t[t.length - 1], r = yg(e, n, k);
5357
+ if (Xe || u === "none") return;
5358
+ let e = y ? it : Fe.current;
5359
+ if (Re) {
5360
+ let t = Array.isArray(We) ? We : [], n = t[t.length - 1], r = yg(e, n, k);
5361
5361
  At({ selectedIndex: r === -1 ? null : r });
5362
5362
  } else {
5363
- let t = yg(e, Ue, k);
5363
+ let t = yg(e, We, k);
5364
5364
  At({ selectedIndex: t === -1 ? null : t });
5365
5365
  }
5366
5366
  }, [
5367
- Ye,
5368
- Ue,
5367
+ Xe,
5368
+ We,
5369
5369
  y,
5370
5370
  u,
5371
- rt,
5372
- Le,
5371
+ it,
5372
+ Re,
5373
5373
  k,
5374
5374
  At
5375
5375
  ]), J(() => {
5376
- y && (Ne.current = at, ye.current.length = at.length);
5377
- }, [y, at]), J(() => {
5378
- let e = Me.current;
5379
- if (e && (e.hasQuery ? He && ot.set("activeIndex", 0) : He === "always" && ot.set("activeIndex", 0), Me.current = null), !Ye && !vt) return;
5380
- let t = Be || Ve ? at : Ne.current, n = ot.state.activeIndex;
5376
+ y && (Pe.current = ot, be.current.length = ot.length);
5377
+ }, [y, ot]), J(() => {
5378
+ let e = Ne.current;
5379
+ if (e && (e.hasQuery ? Ue && I.set("activeIndex", 0) : Ue === "always" && I.set("activeIndex", 0), Ne.current = null), !Xe && !vt) return;
5380
+ let t = Ve || He ? ot : Pe.current, n = I.state.activeIndex;
5381
5381
  if (n == null) {
5382
- if (He === "always" && t.length > 0) {
5383
- ot.set("activeIndex", 0);
5382
+ if (Ue === "always" && t.length > 0) {
5383
+ I.set("activeIndex", 0);
5384
5384
  return;
5385
5385
  }
5386
- je.current !== Qg && (je.current = Qg, ot.state.onItemHighlighted(void 0, Tf(df, void 0, { index: -1 })));
5386
+ Me.current !== Qg && (Me.current = Qg, I.state.onItemHighlighted(void 0, Tf(df, void 0, { index: -1 })));
5387
5387
  return;
5388
5388
  }
5389
5389
  if (n >= t.length) {
5390
- je.current !== Qg && (je.current = Qg, ot.state.onItemHighlighted(void 0, Tf(df, void 0, { index: -1 }))), ot.set("activeIndex", null);
5390
+ Me.current !== Qg && (Me.current = Qg, I.state.onItemHighlighted(void 0, Tf(df, void 0, { index: -1 }))), I.set("activeIndex", null);
5391
5391
  return;
5392
5392
  }
5393
- let r = t[n], i = je.current.value, a = i !== Zg && _g(r, i, ot.state.isItemEqualToValue);
5394
- (je.current.index !== n || !a) && (je.current = {
5393
+ let r = t[n], i = Me.current.value, a = i !== Zg && _g(r, i, I.state.isItemEqualToValue);
5394
+ (Me.current.index !== n || !a) && (Me.current = {
5395
5395
  value: r,
5396
5396
  index: n
5397
- }, ot.state.onItemHighlighted(r, Tf(df, void 0, { index: n })));
5397
+ }, I.state.onItemHighlighted(r, Tf(df, void 0, { index: n })));
5398
5398
  }, [
5399
5399
  dt,
5400
+ Ue,
5400
5401
  He,
5401
5402
  Ve,
5402
- Be,
5403
- at,
5403
+ ot,
5404
5404
  vt,
5405
- Ye,
5406
- ot
5405
+ Xe,
5406
+ I
5407
5407
  ]), J(() => {
5408
5408
  if (u === "none") {
5409
- oe(String(qe) !== "");
5409
+ se(String(Je) !== "");
5410
5410
  return;
5411
5411
  }
5412
- oe(Le ? Array.isArray(Ue) && Ue.length > 0 : Ue != null);
5412
+ se(Re ? Array.isArray(We) && We.length > 0 : We != null);
5413
5413
  }, [
5414
- oe,
5414
+ se,
5415
5415
  u,
5416
- qe,
5417
- Ue,
5418
- Le
5416
+ Je,
5417
+ We,
5418
+ Re
5419
5419
  ]), z.useEffect(() => {
5420
- Be && He && at.length === 0 && At({ activeIndex: null });
5420
+ Ve && Ue && ot.length === 0 && At({ activeIndex: null });
5421
5421
  }, [
5422
- Be,
5423
- He,
5424
- at.length,
5422
+ Ve,
5423
+ Ue,
5424
+ ot.length,
5425
5425
  At
5426
5426
  ]);
5427
5427
  function Rt(e) {
5428
- let t = ae.initialValue;
5428
+ let t = oe.initialValue;
5429
5429
  return Array.isArray(e) && Array.isArray(t) ? !Xg(e, t, (e, t) => _g(e, t, k)) : e !== t;
5430
5430
  }
5431
- ng(Qe, () => {
5432
- !Ye || Qe === "" || Qe === String(Ke) || ge(!0);
5433
- }), ng(Ue, () => {
5434
- if (u !== "none" && (ie(Ie), F(Rt(Ue)), de.change(Ue), Re && !ze && !yt)) {
5435
- let e = wg(Ue, D);
5436
- qe !== e && jt(e, wf(df));
5431
+ ng($e, () => {
5432
+ !Xe || $e === "" || $e === String(qe) || _e(!0);
5433
+ }), ng(We, () => {
5434
+ if (u !== "none" && (ae(Le), P(Rt(We)), fe.change(We), ze && !Be && !yt)) {
5435
+ let e = wg(We, D);
5436
+ Je !== e && jt(e, wf(df));
5437
5437
  }
5438
- }), ng(qe, () => {
5439
- u === "none" && (ie(Ie), F(qe !== ae.initialValue), de.change(qe));
5438
+ }), ng(Je, () => {
5439
+ u === "none" && (ae(Le), P(Je !== oe.initialValue), fe.change(Je));
5440
5440
  }), ng(y, () => {
5441
- if (!Re || ze || yt || he) return;
5442
- let e = wg(Ue, D);
5443
- qe !== e && jt(e, wf(df));
5441
+ if (!ze || Be || yt || ge) return;
5442
+ let e = wg(We, D);
5443
+ Je !== e && jt(e, wf(df));
5444
5444
  });
5445
5445
  let zt = Nh({
5446
- open: vt ? !0 : Ye,
5446
+ open: vt ? !0 : Xe,
5447
5447
  onOpenChange: Mt,
5448
5448
  elements: {
5449
5449
  reference: yt ? ht : gt,
5450
5450
  floating: pt
5451
5451
  }
5452
5452
  }), Bt, Vt;
5453
- vt || (Bt = v ? "grid" : "listbox", Vt = Ye ? "true" : "false");
5453
+ vt || (Bt = v ? "grid" : "listbox", Vt = Xe ? "true" : "false");
5454
5454
  let Ht = z.useMemo(() => {
5455
- let e = gt?.tagName === "INPUT", t = gt == null || e, n = t || Ye, r = t ? {
5455
+ let e = gt?.tagName === "INPUT", t = gt == null || e, n = t || Xe, r = t ? {
5456
5456
  autoComplete: "off",
5457
5457
  spellCheck: "false",
5458
5458
  autoCorrect: "off",
5459
5459
  autoCapitalize: "none"
5460
5460
  } : {};
5461
- return n && (r.role = "combobox", r["aria-expanded"] = Vt, r["aria-haspopup"] = Bt, r["aria-controls"] = Ye ? mt?.id : void 0, r["aria-autocomplete"] = te), {
5461
+ return n && (r.role = "combobox", r["aria-expanded"] = Vt, r["aria-haspopup"] = Bt, r["aria-controls"] = Xe ? mt?.id : void 0, r["aria-autocomplete"] = ne), {
5462
5462
  reference: r,
5463
5463
  floating: { role: "presentation" }
5464
5464
  };
5465
5465
  }, [
5466
5466
  gt,
5467
- Ye,
5467
+ Xe,
5468
5468
  Vt,
5469
5469
  Bt,
5470
5470
  mt?.id,
5471
- te
5471
+ ne
5472
5472
  ]), Ut = hh(zt, {
5473
- enabled: !h && !Fe && S,
5473
+ enabled: !h && !Ie && S,
5474
5474
  event: "mousedown-only",
5475
5475
  toggle: !1,
5476
5476
  touchOpenDelay: yt ? 0 : 100,
5477
5477
  reason: bf
5478
5478
  }), Wt = vh(zt, {
5479
- enabled: !h && !Fe && !vt,
5479
+ enabled: !h && !Ie && !vt,
5480
5480
  outsidePressEvent: {
5481
5481
  mouse: "sloppy",
5482
5482
  touch: "intentional"
@@ -5484,39 +5484,39 @@ function $g(e) {
5484
5484
  bubbles: vt ? !0 : void 0,
5485
5485
  outsidePress(e) {
5486
5486
  let t = Vp(e);
5487
- return !Bp(ht, t) && !Bp(ke.current, t) && !Bp(Oe.current, t) && !Bp(_t, t);
5487
+ return !Bp(ht, t) && !Bp(Ae.current, t) && !Bp(ke.current, t) && !Bp(_t, t);
5488
5488
  }
5489
5489
  }), Gt = Vh(zt, {
5490
- enabled: !h && !Fe,
5491
- id: pe,
5492
- listRef: ye,
5490
+ enabled: !h && !Ie,
5491
+ id: me,
5492
+ listRef: be,
5493
5493
  activeIndex: dt,
5494
5494
  selectedIndex: ft,
5495
5495
  virtual: !0,
5496
5496
  loopFocus: E,
5497
- allowEscape: E && !He,
5498
- focusItemOnOpen: he || u === "none" && !He ? !1 : "auto",
5497
+ allowEscape: E && !Ue,
5498
+ focusItemOnOpen: ge || u === "none" && !Ue ? !1 : "auto",
5499
5499
  focusItemOnHover: T,
5500
5500
  resetOnPointerLeave: !w,
5501
5501
  orientation: v ? "horizontal" : void 0,
5502
- rtl: fe === "rtl",
5502
+ rtl: pe === "rtl",
5503
5503
  disabledIndices: Ad,
5504
5504
  grid: v ? ag : void 0,
5505
5505
  onNavigate(e, t) {
5506
- !t && !Ye || wt === "ending" || At(t ? {
5506
+ !t && !Xe || wt === "ending" || At(t ? {
5507
5507
  activeIndex: e,
5508
- type: Ee.current ? "keyboard" : "pointer"
5508
+ type: De.current ? "keyboard" : "pointer"
5509
5509
  } : { activeIndex: e });
5510
5510
  }
5511
5511
  }), L = z.useMemo(() => Id(Gt.reference, { onKeyDown(e) {
5512
- v && ot.state.activeIndex == null && (e.key === "ArrowLeft" || e.key === "ArrowRight") && e.preventBaseUIHandler();
5512
+ v && I.state.activeIndex == null && (e.key === "ArrowLeft" || e.key === "ArrowRight") && e.preventBaseUIHandler();
5513
5513
  } }, Wt.reference, Ut.reference, Ht.reference), [
5514
5514
  Gt.reference,
5515
5515
  Wt.reference,
5516
5516
  Ut.reference,
5517
5517
  Ht.reference,
5518
5518
  v,
5519
- ot
5519
+ I
5520
5520
  ]), R = z.useMemo(() => Id(jh, Gt.floating, Wt.floating, Ht.floating), [
5521
5521
  Gt.floating,
5522
5522
  Wt.floating,
@@ -5529,7 +5529,7 @@ function $g(e) {
5529
5529
  } : jd;
5530
5530
  }, [Gt.item]);
5531
5531
  $f(() => {
5532
- ot.update({
5532
+ I.update({
5533
5533
  inline: ee,
5534
5534
  popupProps: R,
5535
5535
  inputProps: L,
@@ -5545,10 +5545,10 @@ function $g(e) {
5545
5545
  requestSubmit: Ft
5546
5546
  });
5547
5547
  }), J(() => {
5548
- ot.update({
5549
- id: pe,
5550
- selectedValue: Ue,
5551
- open: Ye,
5548
+ I.update({
5549
+ id: me,
5550
+ selectedValue: We,
5551
+ open: Xe,
5552
5552
  mounted: St,
5553
5553
  transitionStatus: wt,
5554
5554
  items: y,
@@ -5559,30 +5559,30 @@ function $g(e) {
5559
5559
  openMethod: Tt,
5560
5560
  itemProps: Kt,
5561
5561
  selectionMode: u,
5562
- name: Ie,
5562
+ name: Le,
5563
5563
  form: p,
5564
- disabled: Fe,
5564
+ disabled: Ie,
5565
5565
  readOnly: h,
5566
5566
  required: g,
5567
5567
  grid: v,
5568
- isGrouped: Ze,
5568
+ isGrouped: Qe,
5569
5569
  virtualized: A,
5570
5570
  onOpenChangeComplete: ut,
5571
5571
  openOnInputClick: S,
5572
5572
  itemToStringLabel: D,
5573
- modal: M,
5574
- autoHighlight: He,
5573
+ modal: te,
5574
+ autoHighlight: Ue,
5575
5575
  isItemEqualToValue: k,
5576
- submitOnItemClick: re,
5577
- hasInputValue: ze,
5576
+ submitOnItemClick: ie,
5577
+ hasInputValue: Be,
5578
5578
  requestSubmit: Ft,
5579
- inputOwnsFormValue: u === "none" && (ee || !ot.state.inputInsidePopup)
5579
+ inputOwnsFormValue: u === "none" && (ee || !I.state.inputInsidePopup)
5580
5580
  });
5581
5581
  }, [
5582
- ot,
5583
- pe,
5584
- Ue,
5585
- Ye,
5582
+ I,
5583
+ me,
5584
+ We,
5585
+ Xe,
5586
5586
  St,
5587
5587
  wt,
5588
5588
  y,
@@ -5592,88 +5592,88 @@ function $g(e) {
5592
5592
  Tt,
5593
5593
  Et,
5594
5594
  u,
5595
+ Le,
5595
5596
  Ie,
5596
- Fe,
5597
5597
  h,
5598
5598
  g,
5599
- de,
5599
+ fe,
5600
5600
  v,
5601
- Ze,
5601
+ Qe,
5602
5602
  A,
5603
5603
  ut,
5604
5604
  S,
5605
5605
  D,
5606
- M,
5606
+ te,
5607
5607
  k,
5608
- re,
5609
- ze,
5608
+ ie,
5609
+ Be,
5610
5610
  ee,
5611
5611
  Ft,
5612
- He,
5612
+ Ue,
5613
5613
  p
5614
5614
  ]);
5615
- let qt = yd(_, de.inputRef), Jt = z.useMemo(() => ({
5616
- query: Qe,
5617
- hasItems: Be,
5618
- filteredItems: it,
5619
- flatFilteredItems: at
5615
+ let qt = yd(_, fe.inputRef), Jt = z.useMemo(() => ({
5616
+ query: $e,
5617
+ hasItems: Ve,
5618
+ filteredItems: at,
5619
+ flatFilteredItems: ot
5620
5620
  }), [
5621
- Qe,
5622
- Be,
5623
- it,
5624
- at
5625
- ]), Yt = z.useMemo(() => Array.isArray(st) ? "" : Tg(st, O), [st, O]), Xt = Le && Array.isArray(Ue) && Ue.length > 0, Zt = Le || u === "none" && bt ? void 0 : Ie, Qt = z.useMemo(() => !Le || !Array.isArray(Ue) || !Ie ? null : Ue.map((e) => {
5621
+ $e,
5622
+ Ve,
5623
+ at,
5624
+ ot
5625
+ ]), Yt = z.useMemo(() => Array.isArray(st) ? "" : Tg(st, O), [st, O]), Xt = Re && Array.isArray(We) && We.length > 0, Zt = Re || u === "none" && bt ? void 0 : Le, Qt = z.useMemo(() => !Re || !Array.isArray(We) || !Le ? null : We.map((e) => {
5626
5626
  let t = Tg(e, O);
5627
5627
  return /*#__PURE__*/ G("input", {
5628
5628
  type: "hidden",
5629
5629
  form: p,
5630
- name: Ie,
5630
+ name: Le,
5631
5631
  value: t,
5632
- disabled: Fe
5632
+ disabled: Ie
5633
5633
  }, t);
5634
5634
  }), [
5635
- Le,
5636
- Ue,
5635
+ Re,
5636
+ We,
5637
5637
  p,
5638
- Ie,
5638
+ Le,
5639
5639
  O,
5640
- Fe
5640
+ Ie
5641
5641
  ]), $t = /*#__PURE__*/ K(z.Fragment, { children: [
5642
5642
  e.children,
5643
5643
  /*#__PURE__*/ G("input", {
5644
- ...de.getValidationProps(Fe, {
5644
+ ...fe.getValidationProps(Ie, {
5645
5645
  onFocus() {
5646
5646
  if (yt) {
5647
5647
  ht?.focus();
5648
5648
  return;
5649
5649
  }
5650
- (Se.current || ht)?.focus();
5650
+ (Ce.current || ht)?.focus();
5651
5651
  },
5652
5652
  onChange(e) {
5653
- if (e.nativeEvent.defaultPrevented || Fe || h) return;
5654
- let t = e.currentTarget.value, n = t.toLowerCase(), r = wf(df, e.nativeEvent), i = () => Ne.current.findIndex((e) => Tg(e, O).toLowerCase() === n || wg(e, D).toLowerCase() === n);
5653
+ if (e.nativeEvent.defaultPrevented || Ie || h) return;
5654
+ let t = e.currentTarget.value, n = t.toLowerCase(), r = wf(df, e.nativeEvent), i = () => Pe.current.findIndex((e) => Tg(e, O).toLowerCase() === n || wg(e, D).toLowerCase() === n);
5655
5655
  function a() {
5656
- if (Le) return;
5656
+ if (Re) return;
5657
5657
  if (u === "none") {
5658
5658
  jt(t, r);
5659
5659
  return;
5660
5660
  }
5661
5661
  let e = i();
5662
- e === -1 && (e = Ne.current.findIndex((e, t) => {
5663
- let r = be.current[t];
5662
+ e === -1 && (e = Pe.current.findIndex((e, t) => {
5663
+ let r = xe.current[t];
5664
5664
  return r != null && r.toLowerCase() === n;
5665
5665
  }));
5666
- let a = e === -1 ? void 0 : Ne.current[e];
5666
+ let a = e === -1 ? void 0 : Pe.current[e];
5667
5667
  a != null && Nt?.(a, r);
5668
5668
  }
5669
- Re && (Ot(), y && i() === -1 && ot.set("forceMounted", !0)), queueMicrotask(a);
5669
+ ze && (Ot(), y && i() === -1 && I.set("forceMounted", !0)), queueMicrotask(a);
5670
5670
  }
5671
5671
  }),
5672
- id: pe && Zt == null ? `${pe}-hidden-input` : void 0,
5672
+ id: me && Zt == null ? `${me}-hidden-input` : void 0,
5673
5673
  form: p,
5674
5674
  name: Zt,
5675
- autoComplete: ne,
5676
- disabled: Fe,
5675
+ autoComplete: re,
5676
+ disabled: Ie,
5677
5677
  required: g && !Xt,
5678
5678
  readOnly: h,
5679
5679
  value: Yt,
@@ -5686,15 +5686,15 @@ function $g(e) {
5686
5686
  Qt
5687
5687
  ] });
5688
5688
  return /*#__PURE__*/ G(og.Provider, {
5689
- value: ot,
5689
+ value: I,
5690
5690
  children: /*#__PURE__*/ G(sg.Provider, {
5691
5691
  value: zt,
5692
5692
  children: /*#__PURE__*/ G(lg.Provider, {
5693
- value: Be,
5693
+ value: Ve,
5694
5694
  children: /*#__PURE__*/ G(cg.Provider, {
5695
5695
  value: Jt,
5696
5696
  children: /*#__PURE__*/ G(ug.Provider, {
5697
- value: qe,
5697
+ value: Je,
5698
5698
  children: $t
5699
5699
  })
5700
5700
  })
@@ -5713,7 +5713,7 @@ var e_ = {
5713
5713
  //#endregion
5714
5714
  //#region ../../node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
5715
5715
  function t_(e) {
5716
- let t = e.getBoundingClientRect(), n = ze(e);
5716
+ let t = e.getBoundingClientRect(), n = Be(e);
5717
5717
  if (mp) return t;
5718
5718
  let r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
5719
5719
  if (!(r.content !== "none" || i.content !== "none")) return t;
@@ -5736,81 +5736,81 @@ function r_(e, t) {
5736
5736
  //#endregion
5737
5737
  //#region ../../node_modules/@base-ui/react/combobox/trigger/ComboboxTrigger.mjs
5738
5738
  var i_ = 2, a_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
5739
- let { render: n, className: r, nativeButton: i = !0, disabled: a = !1, id: o, style: s, ...c } = e, { state: l, disabled: u, setTouched: d, setFocused: f, validationMode: p, validation: m } = Fg(), { labelId: h } = Bg(), g = dg(), { filteredItems: _ } = pg(), v = X(g, Z.selectionMode), y = X(g, Z.disabled), b = X(g, Z.readOnly), x = X(g, Z.required), S = X(g, Z.mounted), C = X(g, Z.popupSide), w = X(g, Z.positionerElement), T = X(g, Z.listElement), E = X(g, Z.popupId), D = X(g, Z.triggerProps), O = X(g, Z.triggerElement), k = X(g, Z.inputInsidePopup), A = X(g, Z.id), ee = X(g, Z.labelId), j = X(g, Z.open), M = X(g, Z.selectedValue), N = X(g, Z.activeIndex), te = X(g, Z.selectedIndex), ne = X(g, Z.hasSelectedValue), P = fg(), re = mg(), ie = _p(), F = u || y || a, ae = _.length === 0, oe = S && w ? C : null;
5739
+ let { render: n, className: r, nativeButton: i = !0, disabled: a = !1, id: o, style: s, ...c } = e, { state: l, disabled: u, setTouched: d, setFocused: f, validationMode: p, validation: m } = Fg(), { labelId: h } = Bg(), g = dg(), { filteredItems: _ } = pg(), v = X(g, Z.selectionMode), y = X(g, Z.disabled), b = X(g, Z.readOnly), x = X(g, Z.required), S = X(g, Z.mounted), C = X(g, Z.popupSide), w = X(g, Z.positionerElement), T = X(g, Z.listElement), E = X(g, Z.popupId), D = X(g, Z.triggerProps), O = X(g, Z.triggerElement), k = X(g, Z.inputInsidePopup), A = X(g, Z.id), ee = X(g, Z.labelId), j = X(g, Z.open), te = X(g, Z.selectedValue), M = X(g, Z.activeIndex), ne = X(g, Z.selectedIndex), re = X(g, Z.hasSelectedValue), N = fg(), ie = mg(), ae = _p(), P = u || y || a, oe = _.length === 0, se = S && w ? C : null;
5740
5740
  Vg({ id: k ? o : void 0 });
5741
- let se = k ? o ?? A : o, I = r_(h, ee), ce;
5742
- j && k ? ce = E ?? Hg(A) : j && (ce = T?.id);
5743
- let le = z.useRef("");
5744
- function ue(e) {
5745
- le.current = e.pointerType;
5741
+ let ce = k ? o ?? A : o, F = r_(h, ee), le;
5742
+ j && k ? le = E ?? Hg(A) : j && (le = T?.id);
5743
+ let ue = z.useRef("");
5744
+ function de(e) {
5745
+ ue.current = e.pointerType;
5746
5746
  }
5747
- let de = P.useState("domReferenceElement");
5747
+ let fe = N.useState("domReferenceElement");
5748
5748
  z.useEffect(() => {
5749
- k && O && O !== de && P.set("domReferenceElement", O);
5749
+ k && O && O !== fe && N.set("domReferenceElement", O);
5750
5750
  }, [
5751
5751
  O,
5752
- de,
5753
- P,
5752
+ fe,
5753
+ N,
5754
5754
  k
5755
5755
  ]);
5756
- let { reference: fe } = Hh(P, {
5756
+ let { reference: pe } = Hh(N, {
5757
5757
  enabled: !j && !b && !y && v === "single",
5758
5758
  listRef: g.state.labelsRef,
5759
- activeIndex: N,
5760
- selectedIndex: te,
5759
+ activeIndex: M,
5760
+ selectedIndex: ne,
5761
5761
  onMatch(e) {
5762
5762
  let t = g.state.valuesRef.current[e];
5763
5763
  t !== void 0 && g.state.setSelectedValue(t, wf("none"));
5764
5764
  }
5765
- }), { reference: pe } = hh(P, {
5765
+ }), { reference: me } = hh(N, {
5766
5766
  enabled: !b && !y,
5767
5767
  event: "mousedown"
5768
- }), { buttonRef: me, getButtonProps: he } = Uf({
5768
+ }), { buttonRef: he, getButtonProps: ge } = Uf({
5769
5769
  native: i,
5770
- disabled: F
5771
- }), ge = {
5770
+ disabled: P
5771
+ }), _e = {
5772
5772
  ...l,
5773
5773
  open: j,
5774
- disabled: F,
5775
- popupSide: oe,
5776
- listEmpty: ae,
5777
- placeholder: v !== "none" && !ne
5774
+ disabled: P,
5775
+ popupSide: se,
5776
+ listEmpty: oe,
5777
+ placeholder: v !== "none" && !re
5778
5778
  };
5779
5779
  return Xd("button", e, {
5780
5780
  ref: [
5781
5781
  t,
5782
- me,
5782
+ he,
5783
5783
  q((e) => {
5784
5784
  g.set("triggerElement", e);
5785
5785
  })
5786
5786
  ],
5787
- state: ge,
5787
+ state: _e,
5788
5788
  props: [
5789
5789
  D,
5790
+ me,
5790
5791
  pe,
5791
- fe,
5792
5792
  {
5793
- id: se,
5793
+ id: ce,
5794
5794
  tabIndex: k ? 0 : -1,
5795
5795
  role: k ? "combobox" : void 0,
5796
5796
  "aria-expanded": j ? "true" : "false",
5797
5797
  "aria-haspopup": k ? "dialog" : "listbox",
5798
- "aria-controls": ce,
5798
+ "aria-controls": le,
5799
5799
  "aria-required": k && x || void 0,
5800
- "aria-labelledby": I,
5801
- onPointerDown: ue,
5802
- onPointerEnter: ue,
5800
+ "aria-labelledby": F,
5801
+ onPointerDown: de,
5802
+ onPointerEnter: de,
5803
5803
  onFocus() {
5804
- f(!0), !(F || b) && ie.start(0, g.state.forceMount);
5804
+ f(!0), !(P || b) && ae.start(0, g.state.forceMount);
5805
5805
  },
5806
5806
  onBlur(e) {
5807
5807
  if (!Bp(w, e.relatedTarget) && (d(!0), f(!1), p === "onBlur")) {
5808
- let e = v === "none" ? re : M;
5808
+ let e = v === "none" ? ie : te;
5809
5809
  m.commit(e);
5810
5810
  }
5811
5811
  },
5812
5812
  onMouseDown(e) {
5813
- if (F || b || (k || P.set("domReferenceElement", e.currentTarget), g.state.forceMount(), le.current !== "touch" && (g.state.inputRef.current?.focus(), k || e.preventDefault()), j)) return;
5813
+ if (P || b || (k || N.set("domReferenceElement", e.currentTarget), g.state.forceMount(), ue.current !== "touch" && (g.state.inputRef.current?.focus(), k || e.preventDefault()), j)) return;
5814
5814
  let t = Yf(e.currentTarget);
5815
5815
  function n(e) {
5816
5816
  if (!O) return;
@@ -5822,11 +5822,11 @@ var i_ = 2, a_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
5822
5822
  k && t.addEventListener("mouseup", n, { once: !0 });
5823
5823
  },
5824
5824
  onKeyDown(e) {
5825
- F || b || (e.key === "ArrowDown" || e.key === "ArrowUp") && (Dp(e), g.state.setOpen(!0, wf(Cf, e.nativeEvent)), g.state.inputRef.current?.focus());
5825
+ P || b || (e.key === "ArrowDown" || e.key === "ArrowUp") && (Dp(e), g.state.setOpen(!0, wf(Cf, e.nativeEvent)), g.state.inputRef.current?.focus());
5826
5826
  }
5827
5827
  },
5828
- m ? m.getValidationProps(F, c) : c,
5829
- he
5828
+ m ? m.getValidationProps(P, c) : c,
5829
+ ge
5830
5830
  ],
5831
5831
  stateAttributesMapping: e_
5832
5832
  });
@@ -5867,22 +5867,22 @@ process.env.NODE_ENV !== "production" && (u_.displayName = "ComboboxInternalDism
5867
5867
  //#endregion
5868
5868
  //#region ../../node_modules/@base-ui/react/combobox/input/ComboboxInput.mjs
5869
5869
  var d_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
5870
- let { render: n, className: r, disabled: i = !1, id: a, style: o, ...s } = e, { state: c, disabled: l, setTouched: u, setFocused: d, validationMode: f, validation: p } = Fg(), { labelId: m } = Bg(), h = s_(), g = !!l_(!0), _ = dg(), { filteredItems: v } = pg(), y = mg(), b = gd(), x = X(_, Z.required), S = X(_, Z.disabled), C = X(_, Z.readOnly), w = X(_, Z.name), T = X(_, Z.form), E = X(_, Z.selectionMode), D = X(_, Z.autoHighlight), O = X(_, Z.inputProps), k = X(_, Z.triggerProps), A = X(_, Z.open), ee = X(_, Z.mounted), j = X(_, Z.selectedValue), M = X(_, Z.popupSide), N = X(_, Z.positionerElement), te = X(_, Z.id), ne = X(_, Z.inline), P = X(_, Z.modal), re = !!D, ie = ee && N ? M : null, F = l || S || i, ae = v.length === 0, oe = g || ne, se = !oe || P, I = uf(a ?? (oe ? void 0 : te)), ce = r_(m, void 0), le = g ? Ag : c, [ue, de] = z.useState(null), fe = z.useRef(!1), pe = z.useRef(null), me = z.useRef(!1), he = E === "none" && !g, ge = q((e) => {
5870
+ let { render: n, className: r, disabled: i = !1, id: a, style: o, ...s } = e, { state: c, disabled: l, setTouched: u, setFocused: d, validationMode: f, validation: p } = Fg(), { labelId: m } = Bg(), h = s_(), g = !!l_(!0), _ = dg(), { filteredItems: v } = pg(), y = mg(), b = gd(), x = X(_, Z.required), S = X(_, Z.disabled), C = X(_, Z.readOnly), w = X(_, Z.name), T = X(_, Z.form), E = X(_, Z.selectionMode), D = X(_, Z.autoHighlight), O = X(_, Z.inputProps), k = X(_, Z.triggerProps), A = X(_, Z.open), ee = X(_, Z.mounted), j = X(_, Z.selectedValue), te = X(_, Z.popupSide), M = X(_, Z.positionerElement), ne = X(_, Z.id), re = X(_, Z.inline), N = X(_, Z.modal), ie = !!D, ae = ee && M ? te : null, P = l || S || i, oe = v.length === 0, se = g || re, ce = !se || N, F = uf(a ?? (se ? void 0 : ne)), le = r_(m, void 0), ue = g ? Ag : c, [de, fe] = z.useState(null), pe = z.useRef(!1), me = z.useRef(null), he = z.useRef(!1), ge = E === "none" && !g, _e = q((e) => {
5871
5871
  let t = g || _.state.inline;
5872
5872
  t && !_.state.hasInputValue && _.state.setInputValue("", wf(df)), _.update({
5873
5873
  inputElement: e,
5874
5874
  inputInsidePopup: t,
5875
- inputOwnsFormValue: he
5875
+ inputOwnsFormValue: ge
5876
5876
  });
5877
- }), _e = g || !p ? s : p.getValidationProps(F, s), ve = {
5878
- ...le,
5877
+ }), ve = g || !p ? s : p.getValidationProps(P, s), ye = {
5878
+ ...ue,
5879
5879
  open: A,
5880
- disabled: F,
5880
+ disabled: P,
5881
5881
  readOnly: C,
5882
- popupSide: ie,
5883
- listEmpty: ae
5882
+ popupSide: ae,
5883
+ listEmpty: oe
5884
5884
  };
5885
- function ye(e) {
5885
+ function be(e) {
5886
5886
  if (!h) return;
5887
5887
  let t, { highlightedChipIndex: n } = h, r = h.chipsRef.current.length, i = b === "rtl", a = i ? "ArrowRight" : "ArrowLeft", o = i ? "ArrowLeft" : "ArrowRight";
5888
5888
  if (n !== void 0) {
@@ -5905,57 +5905,57 @@ var d_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
5905
5905
  type: "keyboard"
5906
5906
  }), e.preventDefault()), t;
5907
5907
  }
5908
- let be = Xd("input", e, {
5909
- state: ve,
5908
+ let xe = Xd("input", e, {
5909
+ state: ye,
5910
5910
  ref: [
5911
5911
  t,
5912
5912
  _.state.inputRef,
5913
- ge
5913
+ _e
5914
5914
  ],
5915
5915
  props: [
5916
5916
  O,
5917
5917
  k,
5918
5918
  {
5919
5919
  type: "text",
5920
- value: e.value ?? ue ?? y,
5920
+ value: e.value ?? de ?? y,
5921
5921
  "aria-readonly": C || void 0,
5922
5922
  "aria-required": x || void 0,
5923
- "aria-labelledby": ce,
5924
- disabled: F,
5923
+ "aria-labelledby": le,
5924
+ disabled: P,
5925
5925
  readOnly: C,
5926
5926
  required: E === "none" ? x : void 0,
5927
5927
  form: T,
5928
- ...he && w && { name: w },
5929
- id: I,
5928
+ ...ge && w && { name: w },
5929
+ id: F,
5930
5930
  onFocus() {
5931
- if (d(!0), !ne || !me.current) return;
5932
- me.current = !1;
5933
- let e = pe.current;
5931
+ if (d(!0), !re || !he.current) return;
5932
+ he.current = !1;
5933
+ let e = me.current;
5934
5934
  e == null || !Object.hasOwn(_.state.valuesRef.current, e) || _.state.setIndices({ activeIndex: e });
5935
5935
  },
5936
5936
  onBlur() {
5937
5937
  u(!0), d(!1);
5938
5938
  let e = _.state.activeIndex;
5939
- if (ne && e !== null && D !== "always" && (pe.current = e, me.current = !0, _.state.setIndices({ activeIndex: null })), f === "onBlur") {
5939
+ if (re && e !== null && D !== "always" && (me.current = e, he.current = !0, _.state.setIndices({ activeIndex: null })), f === "onBlur") {
5940
5940
  let e = E === "none" ? y : j;
5941
5941
  p.commit(e);
5942
5942
  }
5943
5943
  },
5944
5944
  onCompositionStart(e) {
5945
- cp || (fe.current = !0, de(e.currentTarget.value));
5945
+ cp || (pe.current = !0, fe(e.currentTarget.value));
5946
5946
  },
5947
5947
  onCompositionEnd(e) {
5948
- fe.current = !1;
5948
+ pe.current = !1;
5949
5949
  let t = e.currentTarget.value;
5950
- de(null), _.state.setInputValue(t, wf(vf, e.nativeEvent));
5950
+ fe(null), _.state.setInputValue(t, wf(vf, e.nativeEvent));
5951
5951
  },
5952
5952
  onChange(e) {
5953
- let t = e.nativeEvent.inputType, n = !t || t === "insertReplacementText", r = fe.current || !n;
5954
- if (fe.current) {
5953
+ let t = e.nativeEvent.inputType, n = !t || t === "insertReplacementText", r = pe.current || !n;
5954
+ if (pe.current) {
5955
5955
  let t = e.currentTarget.value;
5956
- de(t), t === "" && !_.state.openOnInputClick && !_.state.inputInsidePopup && _.state.setOpen(!1, wf(yf, e.nativeEvent));
5957
- let n = t.trim(), i = re && n !== "";
5958
- !C && !F && n && r && (_.state.setOpen(!0, wf(vf, e.nativeEvent)), re || _.state.setIndices({
5956
+ fe(t), t === "" && !_.state.openOnInputClick && !_.state.inputInsidePopup && _.state.setOpen(!1, wf(yf, e.nativeEvent));
5957
+ let n = t.trim(), i = ie && n !== "";
5958
+ !C && !P && n && r && (_.state.setOpen(!0, wf(vf, e.nativeEvent)), ie || _.state.setIndices({
5959
5959
  activeIndex: null,
5960
5960
  selectedIndex: null,
5961
5961
  type: _.state.keyboardActiveRef.current ? "keyboard" : "pointer"
@@ -5971,18 +5971,18 @@ var d_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
5971
5971
  let a = e.currentTarget.value === "", o = wf(yf, e.nativeEvent);
5972
5972
  a && !_.state.inputInsidePopup && (E === "single" && _.state.setSelectedValue(null, o), _.state.openOnInputClick || _.state.setOpen(!1, o));
5973
5973
  let s = e.currentTarget.value.trim();
5974
- !C && !F && s && r && (_.state.setOpen(!0, wf(vf, e.nativeEvent)), re || _.state.setIndices({
5974
+ !C && !P && s && r && (_.state.setOpen(!0, wf(vf, e.nativeEvent)), ie || _.state.setIndices({
5975
5975
  activeIndex: null,
5976
5976
  selectedIndex: null,
5977
5977
  type: _.state.keyboardActiveRef.current ? "keyboard" : "pointer"
5978
- })), A && _.state.activeIndex !== null && !re && _.state.setIndices({
5978
+ })), A && _.state.activeIndex !== null && !ie && _.state.setIndices({
5979
5979
  activeIndex: null,
5980
5980
  selectedIndex: null,
5981
5981
  type: _.state.keyboardActiveRef.current ? "keyboard" : "pointer"
5982
5982
  });
5983
5983
  },
5984
5984
  onKeyDown(e) {
5985
- if (F || C || e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) return;
5985
+ if (P || C || e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) return;
5986
5986
  _.state.keyboardActiveRef.current = !0;
5987
5987
  let t = e.currentTarget, n = t.scrollWidth - t.clientWidth, r = b === "rtl";
5988
5988
  if (e.key === "Home") {
@@ -6011,11 +6011,11 @@ var d_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
6011
6011
  }), _.state.setSelectedValue(r, wf(df, e.nativeEvent));
6012
6012
  return;
6013
6013
  }
6014
- let i = h?.highlightedChipIndex !== void 0, a = ye(e);
6014
+ let i = h?.highlightedChipIndex !== void 0, a = be(e);
6015
6015
  if (h?.setHighlightedChipIndex(a), a === void 0 ? i && _.state.inputRef.current?.focus() : h?.chipsRef.current[a]?.focus(), e.which !== 229 && e.key === "Enter" && A) {
6016
6016
  let t = _.state.activeIndex, n = e.nativeEvent;
6017
6017
  if (t === null) {
6018
- if (ne) return;
6018
+ if (re) return;
6019
6019
  _.state.setOpen(!1, wf(df, n));
6020
6020
  return;
6021
6021
  }
@@ -6031,21 +6031,21 @@ var d_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
6031
6031
  _.state.keyboardActiveRef.current = !1;
6032
6032
  }
6033
6033
  },
6034
- _e
6034
+ ve
6035
6035
  ],
6036
6036
  stateAttributesMapping: e_
6037
- }), xe = g ? /*#__PURE__*/ G(Pg.Provider, {
6037
+ }), Se = g ? /*#__PURE__*/ G(Pg.Provider, {
6038
6038
  value: Ng,
6039
- children: be
6040
- }) : be;
6041
- return /*#__PURE__*/ K(z.Fragment, { children: [A && se && /*#__PURE__*/ G(u_, { ref: _.state.startDismissRef }), xe] });
6039
+ children: xe
6040
+ }) : xe;
6041
+ return /*#__PURE__*/ K(z.Fragment, { children: [A && ce && /*#__PURE__*/ G(u_, { ref: _.state.startDismissRef }), Se] });
6042
6042
  });
6043
6043
  process.env.NODE_ENV !== "production" && (d_.displayName = "ComboboxInput");
6044
6044
  //#endregion
6045
6045
  //#region ../../node_modules/@base-ui/react/combobox/utils/handleInputPress.mjs
6046
6046
  function f_(e, t, n, r, i) {
6047
6047
  if (e.baseUIHandlerPrevented || r) return;
6048
- let a = Vp(e.nativeEvent), o = Re(a) ? a : null;
6048
+ let a = Vp(e.nativeEvent), o = ze(a) ? a : null;
6049
6049
  o !== e.currentTarget && (i?.(o) || Gp(o)) || (e.preventDefault(), !n && (t.state.inputRef.current?.focus(), t.state.openOnInputClick && t.state.setOpen(!0, wf(bf, e.nativeEvent))));
6050
6050
  }
6051
6051
  //#endregion
@@ -6233,22 +6233,22 @@ var E_ = (e) => ({
6233
6233
  name: "arrow",
6234
6234
  options: e,
6235
6235
  async fn(t) {
6236
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0, offsetParent: d = "real" } = De(e, t) || {};
6236
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0, offsetParent: d = "real" } = Oe(e, t) || {};
6237
6237
  if (l == null) return {};
6238
- let f = Ae(u), p = {
6238
+ let f = je(u), p = {
6239
6239
  x: n,
6240
6240
  y: r
6241
- }, m = ke(i), h = Oe(m), g = await o.getDimensions(l), _ = m === "y", v = _ ? "top" : "left", y = _ ? "bottom" : "right", b = _ ? "clientHeight" : "clientWidth", x = a.reference[h] + a.reference[m] - p[m] - a.floating[h], S = p[m] - a.reference[m], C = d === "real" ? await o.getOffsetParent?.(l) : s.floating, w = s.floating[b] || a.floating[h];
6241
+ }, m = Ae(i), h = ke(m), g = await o.getDimensions(l), _ = m === "y", v = _ ? "top" : "left", y = _ ? "bottom" : "right", b = _ ? "clientHeight" : "clientWidth", x = a.reference[h] + a.reference[m] - p[m] - a.floating[h], S = p[m] - a.reference[m], C = d === "real" ? await o.getOffsetParent?.(l) : s.floating, w = s.floating[b] || a.floating[h];
6242
6242
  (!w || !await o.isElement?.(C)) && (w = s.floating[b] || a.floating[h]);
6243
- let T = x / 2 - S / 2, E = w / 2 - g[h] / 2 - 1, D = Math.min(f[v], E), O = Math.min(f[y], E), k = D, A = w - g[h] - O, ee = w / 2 - g[h] / 2 + T, j = je(k, ee, A), M = !c.arrow && Me(i) != null && ee !== j && a.reference[h] / 2 - (ee < k ? D : O) - g[h] / 2 < 0, N = M ? ee < k ? ee - k : ee - A : 0;
6243
+ let T = x / 2 - S / 2, E = w / 2 - g[h] / 2 - 1, D = Math.min(f[v], E), O = Math.min(f[y], E), k = D, A = w - g[h] - O, ee = w / 2 - g[h] / 2 + T, j = Me(k, ee, A), te = !c.arrow && Ne(i) != null && ee !== j && a.reference[h] / 2 - (ee < k ? D : O) - g[h] / 2 < 0, M = te ? ee < k ? ee - k : ee - A : 0;
6244
6244
  return {
6245
- [m]: p[m] + N,
6245
+ [m]: p[m] + M,
6246
6246
  data: {
6247
6247
  [m]: j,
6248
- centerOffset: ee - j - N,
6249
- ...M && { alignmentOffset: N }
6248
+ centerOffset: ee - j - M,
6249
+ ...te && { alignmentOffset: M }
6250
6250
  },
6251
- reset: M
6251
+ reset: te
6252
6252
  };
6253
6253
  }
6254
6254
  }), D_ = (e, t) => ({
@@ -6278,8 +6278,8 @@ function j_(e, t, n) {
6278
6278
  function M_(e, t, n) {
6279
6279
  let { rects: r, placement: i } = e;
6280
6280
  return {
6281
- side: j_(t, Ve(i), n),
6282
- align: Me(i) || "center",
6281
+ side: j_(t, He(i), n),
6282
+ align: Ne(i) || "center",
6283
6283
  anchor: {
6284
6284
  width: r.reference.width,
6285
6285
  height: r.reference.height
@@ -6293,57 +6293,57 @@ function M_(e, t, n) {
6293
6293
  function N_(e) {
6294
6294
  let { anchor: t, positionMethod: n = "absolute", side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, collisionBoundary: s, collisionPadding: c = 5, sticky: l = !1, arrowPadding: u = 5, disableAnchorTracking: d = !1, inline: f, keepMounted: p = !1, floatingRootContext: m, mounted: h, collisionAvoidance: _, shiftCrossAxis: y = !1, nodeId: b, adaptiveOrigin: S, lazyFlip: C = !1, externalTree: w } = e, [T, E] = z.useState(null);
6295
6295
  !h && T !== null && E(null);
6296
- let D = _.side || "flip", k = _.align || "flip", ee = _.fallbackAxisSide || "end", j = typeof t == "function" ? t : void 0, M = q(j), N = j ? M : t, te = qf(t), ne = qf(h), P = gd() === "rtl", re = T || {
6296
+ let D = _.side || "flip", k = _.align || "flip", ee = _.fallbackAxisSide || "end", j = typeof t == "function" ? t : void 0, te = q(j), M = j ? te : t, ne = qf(t), re = qf(h), N = gd() === "rtl", ie = T || {
6297
6297
  top: "top",
6298
6298
  right: "right",
6299
6299
  bottom: "bottom",
6300
6300
  left: "left",
6301
- "inline-end": P ? "left" : "right",
6302
- "inline-start": P ? "right" : "left"
6303
- }[r], ie = a === "center" ? re : `${re}-${a}`, F = c, ae = +(r === "bottom"), oe = +(r === "top"), se = +(r === "right"), I = +(r === "left");
6304
- typeof F == "number" ? F = {
6305
- top: F + ae,
6306
- right: F + I,
6307
- bottom: F + oe,
6308
- left: F + se
6309
- } : F &&= {
6310
- top: (F.top || 0) + ae,
6311
- right: (F.right || 0) + I,
6312
- bottom: (F.bottom || 0) + oe,
6313
- left: (F.left || 0) + se
6301
+ "inline-end": N ? "left" : "right",
6302
+ "inline-start": N ? "right" : "left"
6303
+ }[r], ae = a === "center" ? ie : `${ie}-${a}`, P = c, oe = +(r === "bottom"), se = +(r === "top"), ce = +(r === "right"), F = +(r === "left");
6304
+ typeof P == "number" ? P = {
6305
+ top: P + oe,
6306
+ right: P + F,
6307
+ bottom: P + se,
6308
+ left: P + ce
6309
+ } : P &&= {
6310
+ top: (P.top || 0) + oe,
6311
+ right: (P.right || 0) + F,
6312
+ bottom: (P.bottom || 0) + se,
6313
+ left: (P.left || 0) + ce
6314
6314
  };
6315
- let ce = {
6315
+ let le = {
6316
6316
  boundary: s === "clipping-ancestors" ? "clippingAncestors" : s,
6317
- padding: F
6318
- }, le = z.useRef(null), ue = qf(i), de = qf(o), fe = typeof i == "function" ? 0 : i, pe = typeof o == "function" ? 0 : o, me = [];
6319
- f && me.push(f), me.push(O((e) => {
6320
- let t = M_(e, r, P), n = typeof ue.current == "function" ? ue.current(t) : ue.current, i = typeof de.current == "function" ? de.current(t) : de.current;
6317
+ padding: P
6318
+ }, ue = z.useRef(null), de = qf(i), fe = qf(o), pe = typeof i == "function" ? 0 : i, me = typeof o == "function" ? 0 : o, he = [];
6319
+ f && he.push(f), he.push(O((e) => {
6320
+ let t = M_(e, r, N), n = typeof de.current == "function" ? de.current(t) : de.current, i = typeof fe.current == "function" ? fe.current(t) : fe.current;
6321
6321
  return {
6322
6322
  mainAxis: n,
6323
6323
  crossAxis: i,
6324
6324
  alignmentAxis: i
6325
6325
  };
6326
6326
  }, [
6327
- fe,
6328
6327
  pe,
6329
- P,
6328
+ me,
6329
+ N,
6330
6330
  r
6331
6331
  ]));
6332
- let he = k === "none" && D !== "shift", ge = !he && (l || y || D === "shift"), _e = D === "none" ? null : x({
6333
- ...ce,
6332
+ let ge = k === "none" && D !== "shift", _e = !ge && (l || y || D === "shift"), ve = D === "none" ? null : x({
6333
+ ...le,
6334
6334
  padding: {
6335
- top: F.top + 1,
6336
- right: F.right + 1,
6337
- bottom: F.bottom + 1,
6338
- left: F.left + 1
6335
+ top: P.top + 1,
6336
+ right: P.right + 1,
6337
+ bottom: P.bottom + 1,
6338
+ left: P.left + 1
6339
6339
  },
6340
6340
  mainAxis: !y && D === "flip",
6341
6341
  crossAxis: k === "flip" && "alignment",
6342
6342
  fallbackAxisSideDirection: ee
6343
- }), ve = he ? null : A((e) => {
6343
+ }), ye = ge ? null : A((e) => {
6344
6344
  let t = Yf(e.elements.floating).documentElement;
6345
6345
  return {
6346
- ...ce,
6346
+ ...le,
6347
6347
  rootBoundary: y ? {
6348
6348
  x: 0,
6349
6349
  y: 0,
@@ -6351,43 +6351,43 @@ function N_(e) {
6351
6351
  height: t.clientHeight
6352
6352
  } : void 0,
6353
6353
  mainAxis: k !== "none",
6354
- crossAxis: ge,
6354
+ crossAxis: _e,
6355
6355
  limiter: l || y ? void 0 : g((e) => {
6356
- if (!le.current) return {};
6357
- let { width: t, height: n } = le.current.getBoundingClientRect(), r = Ee(Ve(e.placement)), i = r === "y" ? t : n, a = r === "y" ? F.left + F.right : F.top + F.bottom;
6356
+ if (!ue.current) return {};
6357
+ let { width: t, height: n } = ue.current.getBoundingClientRect(), r = De(He(e.placement)), i = r === "y" ? t : n, a = r === "y" ? P.left + P.right : P.top + P.bottom;
6358
6358
  return { offset: i / 2 + a / 2 };
6359
6359
  })
6360
6360
  };
6361
6361
  }, [
6362
- ce,
6362
+ le,
6363
6363
  l,
6364
6364
  y,
6365
- F,
6365
+ P,
6366
6366
  k
6367
6367
  ]);
6368
- D === "shift" || k === "shift" || a === "center" ? me.push(ve, _e) : me.push(_e, ve), me.push(v({
6369
- ...ce,
6368
+ D === "shift" || k === "shift" || a === "center" ? he.push(ye, ve) : he.push(ve, ye), he.push(v({
6369
+ ...le,
6370
6370
  apply({ elements: { floating: e }, availableWidth: t, availableHeight: n, rects: r }) {
6371
- if (!ne.current) return;
6371
+ if (!re.current) return;
6372
6372
  let i = e.style;
6373
6373
  i.setProperty("--available-width", `${t}px`), i.setProperty("--available-height", `${n}px`);
6374
- let a = ze(e).devicePixelRatio || 1, { x: o, y: s, width: c, height: l } = r.reference, u = (Math.round((o + c) * a) - Math.round(o * a)) / a, d = (Math.round((s + l) * a) - Math.round(s * a)) / a;
6374
+ let a = Be(e).devicePixelRatio || 1, { x: o, y: s, width: c, height: l } = r.reference, u = (Math.round((o + c) * a) - Math.round(o * a)) / a, d = (Math.round((s + l) * a) - Math.round(s * a)) / a;
6375
6375
  i.setProperty("--anchor-width", `${u}px`), i.setProperty("--anchor-height", `${d}px`);
6376
6376
  }
6377
6377
  }), D_((e) => ({
6378
- element: le.current || Yf(e.elements.floating).createElement("div"),
6378
+ element: ue.current || Yf(e.elements.floating).createElement("div"),
6379
6379
  padding: u,
6380
6380
  offsetParent: "floating"
6381
6381
  }), [u]), {
6382
6382
  name: "transformOrigin",
6383
6383
  fn(e) {
6384
- let { elements: t, middlewareData: n, placement: a, rects: o, y: s } = e, c = Ve(a), l = Ee(c), u = le.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, m = u?.clientHeight || 0, h = d + p / 2, g = f + m / 2, _ = Math.abs(n.shift?.y || 0), v = o.reference.height / 2, y = typeof i == "function" ? i(M_(e, r, P)) : i, b = _ > y, x = {
6384
+ let { elements: t, middlewareData: n, placement: a, rects: o, y: s } = e, c = He(a), l = De(c), u = ue.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, m = u?.clientHeight || 0, h = d + p / 2, g = f + m / 2, _ = Math.abs(n.shift?.y || 0), v = o.reference.height / 2, y = typeof i == "function" ? i(M_(e, r, N)) : i, b = _ > y, x = {
6385
6385
  top: `${h}px calc(100% + ${y}px)`,
6386
6386
  bottom: `${h}px ${-y}px`,
6387
6387
  left: `calc(100% + ${y}px) ${g}px`,
6388
6388
  right: `${-y}px ${g}px`
6389
6389
  }[c], S = `${h}px ${o.reference.y + v - s}px`;
6390
- return t.floating.style.setProperty("--transform-origin", ge && l === "y" && b ? S : x), {};
6390
+ return t.floating.style.setProperty("--transform-origin", _e && l === "y" && b ? S : x), {};
6391
6391
  }
6392
6392
  }, k_, S), J(() => {
6393
6393
  !h && m && m.update({
@@ -6397,105 +6397,105 @@ function N_(e) {
6397
6397
  positionReference: null
6398
6398
  });
6399
6399
  }, [h, m]);
6400
- let ye = z.useMemo(() => ({
6400
+ let be = z.useMemo(() => ({
6401
6401
  elementResize: !d && typeof ResizeObserver < "u",
6402
6402
  layoutShift: !d && typeof IntersectionObserver < "u"
6403
- }), [d]), { refs: be, elements: xe, x: Se, y: Ce, middlewareData: we, update: Te, placement: De, context: Oe, isPositioned: ke, floatingStyles: Ae } = Ph({
6403
+ }), [d]), { refs: xe, elements: Se, x: Ce, y: we, middlewareData: Te, update: Ee, placement: Oe, context: ke, isPositioned: Ae, floatingStyles: je } = Ph({
6404
6404
  rootContext: m,
6405
6405
  open: p ? h : void 0,
6406
- placement: ie,
6407
- middleware: me,
6406
+ placement: ae,
6407
+ middleware: he,
6408
6408
  strategy: n,
6409
- whileElementsMounted: p ? void 0 : (...e) => qe(...e, ye),
6409
+ whileElementsMounted: p ? void 0 : (...e) => Je(...e, be),
6410
6410
  nodeId: b,
6411
6411
  externalTree: w
6412
- }), { sideX: je, sideY: Ne } = we.adaptiveOrigin || A_, Pe = ke ? n : "fixed", Fe = z.useMemo(() => {
6412
+ }), { sideX: Me, sideY: Pe } = Te.adaptiveOrigin || A_, Fe = Ae ? n : "fixed", Ie = z.useMemo(() => {
6413
6413
  let e = S ? {
6414
- position: Pe,
6415
- [je]: Se,
6416
- [Ne]: Ce
6414
+ position: Fe,
6415
+ [Me]: Ce,
6416
+ [Pe]: we
6417
6417
  } : {
6418
- position: Pe,
6419
- ...Ae
6418
+ position: Fe,
6419
+ ...je
6420
6420
  };
6421
- return ke || (e.opacity = 0), e;
6421
+ return Ae || (e.opacity = 0), e;
6422
6422
  }, [
6423
6423
  S,
6424
+ Fe,
6425
+ Me,
6426
+ Ce,
6424
6427
  Pe,
6428
+ we,
6425
6429
  je,
6426
- Se,
6427
- Ne,
6428
- Ce,
6429
- Ae,
6430
- ke
6431
- ]), Ie = z.useRef(null);
6430
+ Ae
6431
+ ]), Le = z.useRef(null);
6432
6432
  J(() => {
6433
6433
  if (!h) return;
6434
- let e = te.current, t = typeof e == "function" ? e() : e, n = (P_(t) ? t.current : t) || null;
6435
- n !== Ie.current && (be.setPositionReference(n), Ie.current = n);
6434
+ let e = ne.current, t = typeof e == "function" ? e() : e, n = (P_(t) ? t.current : t) || null;
6435
+ n !== Le.current && (xe.setPositionReference(n), Le.current = n);
6436
6436
  }, [
6437
6437
  h,
6438
- be,
6439
- N,
6440
- te
6438
+ xe,
6439
+ M,
6440
+ ne
6441
6441
  ]), z.useEffect(() => {
6442
6442
  if (!h) return;
6443
- let e = te.current;
6444
- typeof e != "function" && P_(e) && e.current !== Ie.current && (be.setPositionReference(e.current), Ie.current = e.current);
6443
+ let e = ne.current;
6444
+ typeof e != "function" && P_(e) && e.current !== Le.current && (xe.setPositionReference(e.current), Le.current = e.current);
6445
6445
  }, [
6446
6446
  h,
6447
- be,
6448
- N,
6449
- te
6447
+ xe,
6448
+ M,
6449
+ ne
6450
6450
  ]), z.useEffect(() => {
6451
- if (p && h && xe.reference && xe.floating) return qe(xe.reference, xe.floating, Te, ye);
6451
+ if (p && h && Se.reference && Se.floating) return Je(Se.reference, Se.floating, Ee, be);
6452
6452
  }, [
6453
6453
  p,
6454
6454
  h,
6455
- xe,
6456
- Te,
6457
- ye
6455
+ Se,
6456
+ Ee,
6457
+ be
6458
6458
  ]);
6459
- let Le = Ve(De), Re = j_(r, Le, P), Be = Me(De) || "center", He = !!we.hide?.referenceHidden;
6459
+ let Re = He(Oe), ze = j_(r, Re, N), Ve = Ne(Oe) || "center", Ue = !!Te.hide?.referenceHidden;
6460
6460
  J(() => {
6461
- C && h && ke && E(Le);
6461
+ C && h && Ae && E(Re);
6462
6462
  }, [
6463
6463
  C,
6464
6464
  h,
6465
- ke,
6466
- Le
6465
+ Ae,
6466
+ Re
6467
6467
  ]);
6468
- let Ue = z.useMemo(() => ({
6468
+ let We = z.useMemo(() => ({
6469
6469
  position: "absolute",
6470
- top: we.arrow?.y,
6471
- left: we.arrow?.x
6472
- }), [we.arrow]), We = we.arrow?.centerOffset !== 0;
6470
+ top: Te.arrow?.y,
6471
+ left: Te.arrow?.x
6472
+ }), [Te.arrow]), Ge = Te.arrow?.centerOffset !== 0;
6473
6473
  return z.useMemo(() => ({
6474
- positionerStyles: Fe,
6475
- arrowStyles: Ue,
6476
- arrowRef: le,
6477
- arrowUncentered: We,
6478
- side: Re,
6479
- align: Be,
6480
- physicalSide: Le,
6481
- anchorHidden: He,
6482
- refs: be,
6483
- context: Oe,
6484
- isPositioned: ke,
6485
- update: Te
6474
+ positionerStyles: Ie,
6475
+ arrowStyles: We,
6476
+ arrowRef: ue,
6477
+ arrowUncentered: Ge,
6478
+ side: ze,
6479
+ align: Ve,
6480
+ physicalSide: Re,
6481
+ anchorHidden: Ue,
6482
+ refs: xe,
6483
+ context: ke,
6484
+ isPositioned: Ae,
6485
+ update: Ee
6486
6486
  }), [
6487
- Fe,
6488
- Ue,
6489
- le,
6487
+ Ie,
6490
6488
  We,
6489
+ ue,
6490
+ Ge,
6491
+ ze,
6492
+ Ve,
6491
6493
  Re,
6492
- Be,
6493
- Le,
6494
- He,
6495
- be,
6496
- Oe,
6494
+ Ue,
6495
+ xe,
6497
6496
  ke,
6498
- Te
6497
+ Ae,
6498
+ Ee
6499
6499
  ]);
6500
6500
  }
6501
6501
  function P_(e) {
@@ -6546,7 +6546,7 @@ function R_(e, t, n, r) {
6546
6546
  //#endregion
6547
6547
  //#region ../../node_modules/@base-ui/react/combobox/positioner/ComboboxPositioner.mjs
6548
6548
  var z_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
6549
- let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = Jm, style: g, ..._ } = e, v = dg(), { filteredItems: y } = pg(), b = fg(), x = w_(), S = X(v, Z.modal), C = X(v, Z.open), w = X(v, Z.mounted), T = X(v, Z.openMethod), E = X(v, Z.positionerElement), D = X(v, Z.triggerElement), O = X(v, Z.inputElement), k = X(v, Z.inputGroupElement), A = X(v, Z.inputInsidePopup), ee = X(v, Z.transitionStatus), j = y.length === 0, M = N_({
6549
+ let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = Jm, style: g, ..._ } = e, v = dg(), { filteredItems: y } = pg(), b = fg(), x = w_(), S = X(v, Z.modal), C = X(v, Z.open), w = X(v, Z.mounted), T = X(v, Z.openMethod), E = X(v, Z.positionerElement), D = X(v, Z.triggerElement), O = X(v, Z.inputElement), k = X(v, Z.inputGroupElement), A = X(v, Z.inputInsidePopup), ee = X(v, Z.transitionStatus), j = y.length === 0, te = N_({
6550
6550
  anchor: i ?? (A ? D : k ?? O),
6551
6551
  floatingRootContext: b,
6552
6552
  positionMethod: a,
@@ -6565,32 +6565,32 @@ var z_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
6565
6565
  lazyFlip: !0
6566
6566
  });
6567
6567
  R_(C && S, T === "touch", E, D);
6568
- let N = {
6568
+ let M = {
6569
6569
  open: C,
6570
- side: M.side,
6571
- align: M.align,
6572
- anchorHidden: M.anchorHidden,
6570
+ side: te.side,
6571
+ align: te.align,
6572
+ anchorHidden: te.anchorHidden,
6573
6573
  empty: j
6574
6574
  };
6575
6575
  J(() => {
6576
- v.set("popupSide", M.side);
6577
- }, [v, M.side]);
6578
- let te = q((e) => {
6576
+ v.set("popupSide", te.side);
6577
+ }, [v, te.side]);
6578
+ let ne = q((e) => {
6579
6579
  v.set("positionerElement", e);
6580
- }), ne = I_(e, N, {
6581
- styles: M.positionerStyles,
6580
+ }), re = I_(e, M, {
6581
+ styles: te.positionerStyles,
6582
6582
  transitionStatus: ee,
6583
6583
  props: _,
6584
- refs: [t, te],
6584
+ refs: [t, ne],
6585
6585
  hidden: !w,
6586
6586
  inert: !C
6587
6587
  });
6588
6588
  return /*#__PURE__*/ K(c_.Provider, {
6589
- value: M,
6589
+ value: te,
6590
6590
  children: [w && S && /*#__PURE__*/ G(eg, {
6591
6591
  inert: $h(!C),
6592
6592
  cutout: k ?? O ?? D
6593
- }), ne]
6593
+ }), re]
6594
6594
  });
6595
6595
  });
6596
6596
  process.env.NODE_ENV !== "production" && (z_.displayName = "ComboboxPositioner");
@@ -6763,23 +6763,23 @@ function X_(e) {
6763
6763
  c,
6764
6764
  S
6765
6765
  ]);
6766
- let { getButtonProps: M, buttonRef: N } = Uf({
6766
+ let { getButtonProps: te, buttonRef: M } = Uf({
6767
6767
  disabled: u,
6768
6768
  focusableWhenDisabled: !0,
6769
6769
  native: d,
6770
6770
  composite: !0
6771
- }), te = {
6771
+ }), ne = {
6772
6772
  disabled: u,
6773
6773
  selected: j,
6774
6774
  highlighted: D
6775
6775
  };
6776
- function ne(e) {
6776
+ function re(e) {
6777
6777
  function t() {
6778
6778
  g.state.handleSelection(e, c);
6779
6779
  }
6780
6780
  g.state.submitOnItemClick ? (ti.flushSync(t), g.state.requestSubmit()) : t();
6781
6781
  }
6782
- let P = {
6782
+ let N = {
6783
6783
  id: ee,
6784
6784
  role: _ ? "gridcell" : "option",
6785
6785
  "aria-selected": C ? j : void 0,
@@ -6791,33 +6791,33 @@ function X_(e) {
6791
6791
  e.preventDefault();
6792
6792
  },
6793
6793
  onClick(e) {
6794
- u || x || ne(e.nativeEvent);
6794
+ u || x || re(e.nativeEvent);
6795
6795
  },
6796
6796
  onMouseUp(e) {
6797
6797
  let t = p.current;
6798
- p.current = !1, !(u || x || e.button !== 0 || t || !D) && ne(e.nativeEvent);
6798
+ p.current = !1, !(u || x || e.button !== 0 || t || !D) && re(e.nativeEvent);
6799
6799
  }
6800
- }, re = Xd("div", t, {
6800
+ }, ie = Xd("div", t, {
6801
6801
  ref: [
6802
- N,
6802
+ M,
6803
6803
  n,
6804
6804
  h.ref,
6805
6805
  A
6806
6806
  ],
6807
- state: te,
6807
+ state: ne,
6808
6808
  props: [
6809
6809
  k,
6810
- P,
6810
+ N,
6811
6811
  f,
6812
- M
6812
+ te
6813
6813
  ]
6814
- }), ie = z.useMemo(() => ({
6814
+ }), ae = z.useMemo(() => ({
6815
6815
  selected: j,
6816
6816
  textRef: m
6817
6817
  }), [j, m]);
6818
6818
  return /*#__PURE__*/ G(K_.Provider, {
6819
- value: ie,
6820
- children: re
6819
+ value: ae,
6820
+ children: ie
6821
6821
  });
6822
6822
  }
6823
6823
  function Z_(e) {
@@ -7145,12 +7145,12 @@ function bv({ className: e, ref: t, children: r, showTrigger: i = !0, showClear:
7145
7145
  let l = z.useContext(fv);
7146
7146
  return /* @__PURE__ */ K(av, {
7147
7147
  "data-slot": "combobox-chips",
7148
- ...we({
7148
+ ...Te({
7149
7149
  list: _v(),
7150
7150
  disabled: o
7151
7151
  }),
7152
7152
  ref: dn(t, l ?? void 0),
7153
- className: n(Te, "flex min-h-11 w-full items-start gap-1.5 py-1.5 ps-2 pe-1.5 text-base md:text-sm", e),
7153
+ className: n(Ee, "flex min-h-11 w-full items-start gap-1.5 py-1.5 ps-2 pe-1.5 text-base md:text-sm", e),
7154
7154
  ...c,
7155
7155
  children: [/* @__PURE__ */ G("span", {
7156
7156
  "data-slot": "combobox-chips-values",
@@ -7240,7 +7240,7 @@ function Ov({ className: e, side: t = "bottom", sideOffset: r, align: i = "start
7240
7240
  ref: h ? g : d,
7241
7241
  "data-slot": "combobox-content",
7242
7242
  "data-chips": !!s,
7243
- className: n("group/combobox-content pointer-events-auto relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width))] origin-(--transform-origin) overflow-hidden bg-popover text-popover-foreground duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:pointer-events-none data-ending-style:pointer-events-none", wv, u && "data-closed:hidden", h ? ue : "rounded shadow-md ring-1 ring-foreground/10", e),
7243
+ className: n("group/combobox-content pointer-events-auto relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width))] origin-(--transform-origin) overflow-hidden bg-popover text-popover-foreground duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:pointer-events-none data-ending-style:pointer-events-none", wv, u && "data-closed:hidden", h ? de : "rounded shadow-md ring-1 ring-foreground/10", e),
7244
7244
  ...f
7245
7245
  })
7246
7246
  })
@@ -7268,7 +7268,7 @@ function jv({ className: e, ...t }) {
7268
7268
  return /* @__PURE__ */ G("div", {
7269
7269
  "data-slot": "input-group",
7270
7270
  role: "group",
7271
- className: n(Te, "group/input-group relative flex w-full items-center outline-none", "h-11 max-h-full min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:ps-2", "has-[>[data-align=inline-end]]:[&>input]:pe-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", e),
7271
+ className: n(Ee, "group/input-group relative flex w-full items-center outline-none", "h-11 max-h-full min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:ps-2", "has-[>[data-align=inline-end]]:[&>input]:pe-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", e),
7272
7272
  ...t
7273
7273
  });
7274
7274
  }
@@ -7314,7 +7314,7 @@ function Iv({ className: e, type: t = "text", ...r }) {
7314
7314
  "data-pw": r.name ?? "input",
7315
7315
  className: n("h-full w-full min-w-0 flex-1 bg-transparent px-2 py-1 text-base outline-none md:text-sm", "pointer-coarse:-my-px pointer-coarse:h-[calc(100%+2px)]", "placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground disabled:pointer-events-none", e),
7316
7316
  ...r,
7317
- placeholder: Se(r.placeholder, t)
7317
+ placeholder: Ce(r.placeholder, t)
7318
7318
  });
7319
7319
  }
7320
7320
  function Lv({ className: e, ...t }) {
@@ -7323,7 +7323,7 @@ function Lv({ className: e, ...t }) {
7323
7323
  "data-pw": t.name ?? "textarea",
7324
7324
  className: n("field-sizing-content min-h-16 w-full min-w-[280px] flex-1 resize-none bg-transparent px-3 py-3 text-base outline-none md:text-sm", "placeholder:text-muted-foreground disabled:pointer-events-none", e),
7325
7325
  ...t,
7326
- placeholder: Se(t.placeholder, "text")
7326
+ placeholder: Ce(t.placeholder, "text")
7327
7327
  });
7328
7328
  }
7329
7329
  //#endregion
@@ -7343,7 +7343,7 @@ function zv({ className: e, children: t, disabled: r = !1, showTrigger: i = !0,
7343
7343
  let f = z.useContext(fv), p = _v();
7344
7344
  return /* @__PURE__ */ K(jv, {
7345
7345
  ref: dn(u, f ?? void 0),
7346
- ...we({
7346
+ ...Te({
7347
7347
  size: o,
7348
7348
  list: p
7349
7349
  }),
@@ -7488,11 +7488,11 @@ function Jv({ id: e, rowTextId: t, text: r, isChecked: i, error: a, className: o
7488
7488
  "data-checked": i,
7489
7489
  "data-filled": i,
7490
7490
  "data-invalid": a || void 0,
7491
- className: n(he, "h-auto min-h-11 items-start py-[5px]", o),
7491
+ className: n(ge, "h-auto min-h-11 items-start py-[5px]", o),
7492
7492
  children: [/* @__PURE__ */ G("label", {
7493
7493
  id: t,
7494
7494
  htmlFor: e,
7495
- className: n(on(), "my-1.5 min-w-0 flex-1 cursor-pointer break-words", "pointer-coarse:py-3 pointer-coarse:-my-1.5", { "text-primary-text": i }),
7495
+ className: n(Yt(), "my-1.5 min-w-0 flex-1 cursor-pointer break-words", "pointer-coarse:py-3 pointer-coarse:-my-1.5", { "text-primary-text": i }),
7496
7496
  children: r
7497
7497
  }), s]
7498
7498
  });
@@ -7624,15 +7624,15 @@ function ry({ className: e, ...t }) {
7624
7624
  });
7625
7625
  }
7626
7626
  function iy({ className: e, onOpenAutoFocus: t, onCloseAutoFocus: r, onEscapeKeyDown: i, ref: a, ...o }) {
7627
- let s = fe({
7627
+ let s = pe({
7628
7628
  onOpenAutoFocus: t,
7629
7629
  onCloseAutoFocus: r
7630
- }, { focusFallback: !0 }), c = le({
7630
+ }, { focusFallback: !0 }), c = ue({
7631
7631
  ref: a,
7632
7632
  onEscapeKeyDown: i,
7633
7633
  ...o
7634
7634
  }, !0);
7635
- return /* @__PURE__ */ G(cn, { children: /* @__PURE__ */ G(re, {
7635
+ return /* @__PURE__ */ G(Jt, { children: /* @__PURE__ */ G(ie, {
7636
7636
  value: !0,
7637
7637
  children: /* @__PURE__ */ K(ny, { children: [/* @__PURE__ */ G(ry, { ref: c.overlayRef }), /* @__PURE__ */ G($c, {
7638
7638
  ref: c.ref,
@@ -8457,7 +8457,7 @@ function Eb({ extensions: e, structuralKey: t, format: n, value: r, defaultValue
8457
8457
  //#endregion
8458
8458
  //#region lib/components/ui/widgets/editor/core/use-editor-handle.ts
8459
8459
  function Db(e) {
8460
- let { editor: t } = e, n = nn({
8460
+ let { editor: t } = e, n = on({
8461
8461
  editor: t,
8462
8462
  selector: (e) => !e.editor || pb(e.editor.state.doc)
8463
8463
  }) ?? !0, r = B(() => t?.commands.focus(), [t]), { features: i, getValue: a, setValue: o, attributes: s, setAttributes: c } = e, { suggestions: l, clear: u } = e;
@@ -8931,7 +8931,7 @@ function tx({ more: e, ...t }) {
8931
8931
  //#endregion
8932
8932
  //#region lib/components/ui/widgets/editor/extensions/custom/accordion/editor-accordion-wrapper.tsx
8933
8933
  function nx({ editor: e }) {
8934
- let { t } = L(), n = nn({
8934
+ let { t } = L(), n = on({
8935
8935
  editor: e,
8936
8936
  selector: (e) => ({
8937
8937
  isAccordion: e.editor.isActive("accordion") ?? !1,
@@ -9027,7 +9027,7 @@ function cx({ className: e, ...t }) {
9027
9027
  return /* @__PURE__ */ G("textarea", {
9028
9028
  "data-slot": "textarea",
9029
9029
  "data-pw": t.name ?? "textarea",
9030
- className: n(Te, "placeholder:text-muted-foreground flex resize-none outline-none", "field-sizing-content min-h-16 w-full min-w-[280px] px-3 py-2 text-base md:text-sm", e),
9030
+ className: n(Ee, "placeholder:text-muted-foreground flex resize-none outline-none", "field-sizing-content min-h-16 w-full min-w-[280px] px-3 py-2 text-base md:text-sm", e),
9031
9031
  ...t,
9032
9032
  placeholder: t.placeholder || " "
9033
9033
  });
@@ -9238,7 +9238,7 @@ function hx(e) {
9238
9238
  }, o = (t) => {
9239
9239
  e.updateAttributes({ items: r.filter((e, n) => n !== t) });
9240
9240
  };
9241
- return /* @__PURE__ */ G(tn, {
9241
+ return /* @__PURE__ */ G(an, {
9242
9242
  contentEditable: !1,
9243
9243
  children: /* @__PURE__ */ K("div", {
9244
9244
  className: "my-2",
@@ -9279,7 +9279,7 @@ function hx(e) {
9279
9279
  //#region lib/components/ui/widgets/editor/extensions/custom/accordion/extension.ts
9280
9280
  var gx = Zn.extend({
9281
9281
  addNodeView() {
9282
- return Qt(hx);
9282
+ return tn(hx);
9283
9283
  },
9284
9284
  addCommands() {
9285
9285
  return { insertAccordion: (e) => ({ commands: t }) => t.insertContent({
@@ -9565,7 +9565,7 @@ var kx = () => jn({
9565
9565
  //#endregion
9566
9566
  //#region lib/components/ui/widgets/editor/extensions/custom/action-card/editor-action-card-wrapper.tsx
9567
9567
  function Ax({ editor: e }) {
9568
- let { t } = L(), n = nn({
9568
+ let { t } = L(), n = on({
9569
9569
  editor: e,
9570
9570
  selector: (e) => ({
9571
9571
  isActionCard: e.editor.isActive("actionCard") ?? !1,
@@ -9582,7 +9582,7 @@ function Ax({ editor: e }) {
9582
9582
  });
9583
9583
  }
9584
9584
  //#endregion
9585
- //#region lib/components/ui/widgets/editor/extensions/custom/shared/use-node-list.ts
9585
+ //#region lib/components/ui/widgets/editor/extensions/custom/shared/node-list.ts
9586
9586
  function jx(e, t, n) {
9587
9587
  let r = e.node.attrs[t] ?? [], i = (n) => e.updateAttributes({ [t]: n });
9588
9588
  return {
@@ -10150,17 +10150,17 @@ function cS({ icon: e, title: t, description: r, href: i, onSubmit: a, className
10150
10150
  label: c("material.rich-text-editor.icon", "Icon"),
10151
10151
  options: sS
10152
10152
  }),
10153
- /* @__PURE__ */ G(an, {}),
10153
+ /* @__PURE__ */ G(cn, {}),
10154
10154
  /* @__PURE__ */ G(hn, {
10155
10155
  ...l.text("title"),
10156
10156
  label: c("material.rich-text-editor.title", "Title")
10157
10157
  }),
10158
- /* @__PURE__ */ G(an, {}),
10158
+ /* @__PURE__ */ G(cn, {}),
10159
10159
  /* @__PURE__ */ G(ux, {
10160
10160
  ...l.text("description"),
10161
10161
  label: c("material.rich-text-editor.description", "Description")
10162
10162
  }),
10163
- /* @__PURE__ */ G(an, {}),
10163
+ /* @__PURE__ */ G(cn, {}),
10164
10164
  /* @__PURE__ */ G(hn, {
10165
10165
  ...l.text("href"),
10166
10166
  label: c("material.rich-text-editor.link-optional", "Link (optional)"),
@@ -10260,7 +10260,7 @@ function dS(e) {
10260
10260
  description: "",
10261
10261
  href: ""
10262
10262
  }));
10263
- return /* @__PURE__ */ G(tn, {
10263
+ return /* @__PURE__ */ G(an, {
10264
10264
  contentEditable: !1,
10265
10265
  children: /* @__PURE__ */ K("div", {
10266
10266
  className: "group/block relative my-2",
@@ -10298,7 +10298,7 @@ function dS(e) {
10298
10298
  //#region lib/components/ui/widgets/editor/extensions/custom/action-card/extension.ts
10299
10299
  var fS = tr.extend({
10300
10300
  addNodeView() {
10301
- return Qt(dS);
10301
+ return tn(dS);
10302
10302
  },
10303
10303
  addCommands() {
10304
10304
  return { insertActionCard: (e) => ({ commands: t }) => t.insertContent({
@@ -10326,7 +10326,7 @@ var fS = tr.extend({
10326
10326
  //#endregion
10327
10327
  //#region lib/components/ui/widgets/editor/partials/toolbar-blocks.tsx
10328
10328
  function mS({ editor: e }) {
10329
- let { t } = L(), n = nn({
10329
+ let { t } = L(), n = on({
10330
10330
  editor: e,
10331
10331
  selector: (e) => ({
10332
10332
  isBulletList: e.editor.isActive("bulletList") ?? !1,
@@ -10361,7 +10361,7 @@ function mS({ editor: e }) {
10361
10361
  ] });
10362
10362
  }
10363
10363
  function hS({ editor: e }) {
10364
- let { t } = L(), n = nn({
10364
+ let { t } = L(), n = on({
10365
10365
  editor: e,
10366
10366
  selector: (e) => e.editor.isActive("blockquote") ?? !1
10367
10367
  });
@@ -10407,7 +10407,7 @@ function _S({ insert: e }) {
10407
10407
  }
10408
10408
  function vS({ editor: e }) {
10409
10409
  let { t } = L(), n = (t) => e.chain().focus().insertCallout({ type: t }).run();
10410
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
10410
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
10411
10411
  asChild: !0,
10412
10412
  children: /* @__PURE__ */ G(tx, {
10413
10413
  variant: "ghost",
@@ -10448,13 +10448,13 @@ function bS({ type: e, title: t, description: r, onSubmit: i, className: a, ...o
10448
10448
  label: s("material.rich-text-editor.type", "Type"),
10449
10449
  options: yS
10450
10450
  }),
10451
- /* @__PURE__ */ G(an, {}),
10451
+ /* @__PURE__ */ G(cn, {}),
10452
10452
  /* @__PURE__ */ G(hn, {
10453
10453
  ...c.text("title"),
10454
10454
  label: s("material.rich-text-editor.title", "Title"),
10455
10455
  placeholder: nr[e].label
10456
10456
  }),
10457
- /* @__PURE__ */ G(an, {}),
10457
+ /* @__PURE__ */ G(cn, {}),
10458
10458
  /* @__PURE__ */ G(ux, {
10459
10459
  ...c.text("description"),
10460
10460
  label: s("material.rich-text-editor.description", "Description"),
@@ -10505,7 +10505,7 @@ function xS({ type: e, title: t, description: r, onSubmit: i, children: a }) {
10505
10505
  //#region lib/components/ui/widgets/editor/extensions/custom/callout/callout-component.tsx
10506
10506
  function SS(e) {
10507
10507
  let { t } = L(), n = Nr(e.node.attrs.type), r = e.node.attrs.title ?? "", i = e.node.attrs.description ?? "", a = nr[n];
10508
- return /* @__PURE__ */ G(tn, {
10508
+ return /* @__PURE__ */ G(an, {
10509
10509
  contentEditable: !1,
10510
10510
  children: /* @__PURE__ */ G(Pr, {
10511
10511
  type: n,
@@ -10522,7 +10522,7 @@ function SS(e) {
10522
10522
  children: /* @__PURE__ */ G(Sa, {})
10523
10523
  })
10524
10524
  }),
10525
- description: i || /* @__PURE__ */ G(sn, {
10525
+ description: i || /* @__PURE__ */ G(qt, {
10526
10526
  as: "span",
10527
10527
  variant: "body-small",
10528
10528
  className: "italic opacity-70",
@@ -10535,7 +10535,7 @@ function SS(e) {
10535
10535
  //#region lib/components/ui/widgets/editor/extensions/custom/callout/extension.ts
10536
10536
  var CS = Ln.extend({
10537
10537
  addNodeView() {
10538
- return Qt(SS);
10538
+ return tn(SS);
10539
10539
  },
10540
10540
  addCommands() {
10541
10541
  return { insertCallout: (e) => ({ commands: t }) => t.insertContent({
@@ -10564,7 +10564,7 @@ var CS = Ln.extend({
10564
10564
  //#endregion
10565
10565
  //#region lib/components/ui/widgets/editor/extensions/custom/checkbox-group/editor-checkbox-group-wrapper.tsx
10566
10566
  function TS({ editor: e }) {
10567
- let { t } = L(), n = nn({
10567
+ let { t } = L(), n = on({
10568
10568
  editor: e,
10569
10569
  selector: (e) => ({
10570
10570
  isCheckboxGroup: e.editor.isActive("checkboxGroup") ?? !1,
@@ -10870,7 +10870,7 @@ function zS(e) {
10870
10870
  e.actions && /* @__PURE__ */ K(ei, { children: [/* @__PURE__ */ G("div", {
10871
10871
  className: "flex w-full gap-0.5 justify-end py-1",
10872
10872
  children: typeof e.actions == "function" ? e.actions(r) : e.actions
10873
- }), /* @__PURE__ */ G(an, {})] }),
10873
+ }), /* @__PURE__ */ G(cn, {})] }),
10874
10874
  /* @__PURE__ */ G(RS, {
10875
10875
  loading: e.loading,
10876
10876
  failure: e.failure,
@@ -11071,7 +11071,7 @@ var XS = {
11071
11071
  results: []
11072
11072
  };
11073
11073
  function ZS(e, t, n) {
11074
- let r = Xt(e), [i, a] = W(XS), [o] = W(() => No({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
11074
+ let r = $t(e), [i, a] = W(XS), [o] = W(() => No({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
11075
11075
  a(e), e.status === "error" && r.current.onSearchError?.(e.error);
11076
11076
  })), s = !!e.onSearch;
11077
11077
  return V(() => {
@@ -11207,7 +11207,7 @@ function iC({ getOptionValue: e = (e) => e.value, getOptionLabel: t = (e) => e.l
11207
11207
  let r = Xr(), i = n.id ?? r, a = Kv(), o = rC(n, {
11208
11208
  getOptionValue: e,
11209
11209
  getOptionLabel: t
11210
- }), { query: s, status: c } = o, l = P(), u = /* @__PURE__ */ G(zS, {
11210
+ }), { query: s, status: c } = o, l = N(), u = /* @__PURE__ */ G(zS, {
11211
11211
  anchor: a,
11212
11212
  inline: l,
11213
11213
  open: o.open,
@@ -11277,13 +11277,13 @@ function aC({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
11277
11277
  label: s("material.rich-text-editor.label", "Label"),
11278
11278
  placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
11279
11279
  }),
11280
- /* @__PURE__ */ G(an, {}),
11280
+ /* @__PURE__ */ G(cn, {}),
11281
11281
  /* @__PURE__ */ G(iS, {
11282
11282
  ...c.chip("orientation"),
11283
11283
  label: s("material.rich-text-editor.orientation", "Orientation"),
11284
11284
  options: qn
11285
11285
  }),
11286
- /* @__PURE__ */ G(an, {}),
11286
+ /* @__PURE__ */ G(cn, {}),
11287
11287
  /* @__PURE__ */ G(iC, {
11288
11288
  ...c.tags("options"),
11289
11289
  mode: "multiple",
@@ -11340,7 +11340,7 @@ function sC(e) {
11340
11340
  label: e,
11341
11341
  value: e
11342
11342
  })), [r]);
11343
- return /* @__PURE__ */ G(tn, {
11343
+ return /* @__PURE__ */ G(an, {
11344
11344
  contentEditable: !1,
11345
11345
  children: /* @__PURE__ */ K("div", {
11346
11346
  className: "group relative my-2 max-w-sm",
@@ -11370,7 +11370,7 @@ function sC(e) {
11370
11370
  //#region lib/components/ui/widgets/editor/extensions/custom/checkbox-group/extension.ts
11371
11371
  var cC = Wn.extend({
11372
11372
  addNodeView() {
11373
- return Qt(sC);
11373
+ return tn(sC);
11374
11374
  },
11375
11375
  addCommands() {
11376
11376
  return { insertCheckboxGroup: (e) => ({ commands: t }) => t.insertContent({
@@ -11400,7 +11400,7 @@ var cC = Wn.extend({
11400
11400
  //#endregion
11401
11401
  //#region lib/components/ui/widgets/editor/extensions/code/editor-code-block.tsx
11402
11402
  function uC({ editor: e }) {
11403
- let { t } = L(), n = nn({
11403
+ let { t } = L(), n = on({
11404
11404
  editor: e,
11405
11405
  selector: (e) => ({
11406
11406
  canCodeBlock: e.editor.can().chain().toggleCodeBlock().run() ?? !1,
@@ -11424,7 +11424,7 @@ var dC = (e = {}) => jn({
11424
11424
  let [{ default: t }, { lowlight: n }, { richCodeBlock: r }] = await Promise.all([
11425
11425
  import("./dist-CRMFGjng.js"),
11426
11426
  import("./lowlight-OtcjU2Sa.js"),
11427
- import("./rich-code-block-DIJ1X1AF.js")
11427
+ import("./rich-code-block-hJexXOdk.js")
11428
11428
  ]);
11429
11429
  return [r(t, {
11430
11430
  lowlight: n,
@@ -11974,9 +11974,9 @@ var $C = [
11974
11974
  }, [y, x]), D = B((e) => y === "horizontal" ? x ? 1 - e : e : x ? e : 1 - e, [y, x]), O = (e) => {
11975
11975
  var t = E(e);
11976
11976
  C && C(Q({}, a, { a: t }), e);
11977
- }, k = _C(Object.assign({}, a, { a: 1 })), A = x ? "linear-gradient(to right, " + k + " 0%, rgba(244, 67, 54, 0) 100%)" : "linear-gradient(to right, rgba(244, 67, 54, 0) 0%, " + k + " 100%)", ee = x ? "linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, " + k + " 100%)" : "linear-gradient(to bottom, " + k + " 0%, rgba(244, 67, 54, 0) 100%)", j = y === "horizontal" ? A : ee, M = {};
11978
- y === "horizontal" ? M.left = D(a.a) * 100 + "%" : M.top = D(a.a) * 100 + "%";
11979
- var N = Q({
11977
+ }, k = _C(Object.assign({}, a, { a: 1 })), A = x ? "linear-gradient(to right, " + k + " 0%, rgba(244, 67, 54, 0) 100%)" : "linear-gradient(to right, rgba(244, 67, 54, 0) 0%, " + k + " 100%)", ee = x ? "linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, " + k + " 100%)" : "linear-gradient(to bottom, " + k + " 0%, rgba(244, 67, 54, 0) 100%)", j = y === "horizontal" ? A : ee, te = {};
11978
+ y === "horizontal" ? te.left = D(a.a) * 100 + "%" : te.top = D(a.a) * 100 + "%";
11979
+ var M = Q({
11980
11980
  "--alpha-background-color": "#fff",
11981
11981
  "--alpha-pointer-background-color": "rgb(248, 248, 248)",
11982
11982
  "--alpha-pointer-box-shadow": "rgb(0 0 0 / 37%) 0px 1px 4px 0px",
@@ -11986,7 +11986,7 @@ var $C = [
11986
11986
  }, {
11987
11987
  width: h,
11988
11988
  height: _
11989
- }, S, { position: "relative" }), te = B((e) => {
11989
+ }, S, { position: "relative" }), ne = B((e) => {
11990
11990
  var t = .01, n = a.a, r = n;
11991
11991
  switch (e.key) {
11992
11992
  case "ArrowLeft":
@@ -12020,16 +12020,16 @@ var $C = [
12020
12020
  y,
12021
12021
  C,
12022
12022
  x
12023
- ]), ne = B((e) => {
12023
+ ]), re = B((e) => {
12024
12024
  e.target.focus();
12025
- }, []), P = w && typeof w == "function" ? w(Q({ prefixCls: r }, f, M)) : /*#__PURE__*/ G(ew, Q({}, f, { prefixCls: r }, M));
12025
+ }, []), N = w && typeof w == "function" ? w(Q({ prefixCls: r }, f, te)) : /*#__PURE__*/ G(ew, Q({}, f, { prefixCls: r }, te));
12026
12026
  return /*#__PURE__*/ K("div", Q({}, T, {
12027
12027
  className: [
12028
12028
  r,
12029
12029
  r + "-" + y,
12030
12030
  i || ""
12031
12031
  ].filter(Boolean).join(" "),
12032
- style: N,
12032
+ style: M,
12033
12033
  ref: t,
12034
12034
  children: [/*#__PURE__*/ G("div", Q({}, c, { style: Q({
12035
12035
  inset: 0,
@@ -12045,9 +12045,9 @@ var $C = [
12045
12045
  }),
12046
12046
  onMove: O,
12047
12047
  onDown: O,
12048
- onClick: ne,
12049
- onKeyDown: te,
12050
- children: P
12048
+ onClick: re,
12049
+ onKeyDown: ne,
12050
+ children: N
12051
12051
  }))]
12052
12052
  }));
12053
12053
  });
@@ -12371,14 +12371,14 @@ var bw = [
12371
12371
  borderRadius: "50%",
12372
12372
  background: TC(C),
12373
12373
  boxShadow: "var(--chrome-alpha-box-shadow)"
12374
- }, M = (e) => {
12374
+ }, te = (e) => {
12375
12375
  w(Q({}, SC(e)));
12376
- }, N = {
12376
+ }, M = {
12377
12377
  height: 14,
12378
12378
  width: 14
12379
- }, te = {
12380
- style: Q({}, N),
12381
- fillProps: { style: N }
12379
+ }, ne = {
12380
+ style: Q({}, M),
12381
+ fillProps: { style: M }
12382
12382
  };
12383
12383
  return /*#__PURE__*/ G(HC, Q({
12384
12384
  ref: t,
@@ -12414,7 +12414,7 @@ var bw = [
12414
12414
  gap: 10
12415
12415
  },
12416
12416
  children: [
12417
- vw() && u && /*#__PURE__*/ G(yw, { onPickColor: M }),
12417
+ vw() && u && /*#__PURE__*/ G(yw, { onPickColor: te }),
12418
12418
  f && /*#__PURE__*/ G(rw, {
12419
12419
  width: 28,
12420
12420
  height: 28,
@@ -12434,7 +12434,7 @@ var bw = [
12434
12434
  height: 12,
12435
12435
  borderRadius: 2
12436
12436
  },
12437
- pointerProps: te,
12437
+ pointerProps: ne,
12438
12438
  bgProps: { style: { borderRadius: 2 } },
12439
12439
  onChange: (e) => {
12440
12440
  w(Q({}, C, e));
@@ -12446,7 +12446,7 @@ var bw = [
12446
12446
  height: 12,
12447
12447
  borderRadius: 2
12448
12448
  },
12449
- pointerProps: te,
12449
+ pointerProps: ne,
12450
12450
  bgProps: { style: { borderRadius: 2 } },
12451
12451
  onChange: (e) => {
12452
12452
  w(Q({}, C, e));
@@ -12580,7 +12580,7 @@ function Tw({ color: e, onChange: t, onClear: n, trigger: r, label: i, onDone: a
12580
12580
  //#endregion
12581
12581
  //#region lib/components/ui/widgets/editor/extensions/color/editor-color-wrapper.tsx
12582
12582
  function Ew({ editor: e }) {
12583
- let { t } = L(), n = nn({
12583
+ let { t } = L(), n = on({
12584
12584
  editor: e,
12585
12585
  selector: (e) => ({ color: e.editor.getAttributes("textStyle").color })
12586
12586
  }), r = t("material.rich-text-editor.text-color", "Text color"), i = /* @__PURE__ */ G("div", {
@@ -12735,7 +12735,7 @@ function Nw({ search: e, error: t, loading: n, shortcut: r, placeholder: i, disa
12735
12735
  //#endregion
12736
12736
  //#region lib/components/ui/fields/search-field/use-search-value.ts
12737
12737
  function Pw({ value: e, defaultValue: t = "", debounceMs: n, onValueChange: r, onClear: i, onChange: a, onKeyDown: o }) {
12738
- let [s, c] = W(String(t ?? "")), l = e !== void 0, u = l ? String(e ?? "") : s, d = Xt(r), f = r !== void 0, p = H(() => n ? Ro((e) => d.current?.(e), n) : null, [n, d]);
12738
+ let [s, c] = W(String(t ?? "")), l = e !== void 0, u = l ? String(e ?? "") : s, d = $t(r), f = r !== void 0, p = H(() => n ? Ro((e) => d.current?.(e), n) : null, [n, d]);
12739
12739
  V(() => () => p?.cancel(), [p]);
12740
12740
  let m = (e, t = !1) => {
12741
12741
  if (l || c(e), f) {
@@ -13240,7 +13240,7 @@ var ST = ({ suggest: e = !1 } = {}) => jn({
13240
13240
  ];
13241
13241
  function TT({ current: e, choose: t }) {
13242
13242
  let { t: n } = L();
13243
- return /* @__PURE__ */ G(ot, {
13243
+ return /* @__PURE__ */ G(I, {
13244
13244
  value: ((e) => wT.find((t) => t.value === e)?.key ?? "")(e),
13245
13245
  onValueChange: (e) => t(wT.find((t) => t.key === e)?.value ?? null),
13246
13246
  children: wT.map((e) => /* @__PURE__ */ G(st, {
@@ -13251,11 +13251,11 @@ function TT({ current: e, choose: t }) {
13251
13251
  });
13252
13252
  }
13253
13253
  function ET({ editor: e }) {
13254
- let { t } = L(), n = nn({
13254
+ let { t } = L(), n = on({
13255
13255
  editor: e,
13256
13256
  selector: (e) => ({ fontFamily: e.editor.getAttributes("textStyle").fontFamily })
13257
13257
  }).fontFamily ?? null, r = (t) => t ? e.chain().focus().setFontFamily(t).run() : e.chain().focus().unsetFontFamily().run(), i = wT.find((e) => e.value === n);
13258
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
13258
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
13259
13259
  asChild: !0,
13260
13260
  children: /* @__PURE__ */ G(tx, {
13261
13261
  variant: n ? "filled" : "ghost",
@@ -13294,7 +13294,7 @@ var DT = () => jn({
13294
13294
  //#endregion
13295
13295
  //#region lib/components/ui/widgets/editor/extensions/custom/gallery/editor-gallery-wrapper.tsx
13296
13296
  function OT({ editor: e }) {
13297
- let { t } = L(), n = nn({
13297
+ let { t } = L(), n = on({
13298
13298
  editor: e,
13299
13299
  selector: (e) => ({
13300
13300
  isGallery: e.editor.isActive("gallery") ?? !1,
@@ -13464,7 +13464,7 @@ function HT() {
13464
13464
  //#endregion
13465
13465
  //#region lib/components/ui/media/carousel/use-carousel-autoplay.ts
13466
13466
  function UT({ api: e, root: t, actions: n, playing: r, delay: i, jump: a }) {
13467
- Yt("visibilitychange", () => n.setHidden(document.visibilityState === "hidden"), typeof document > "u" ? null : document), V(() => {
13467
+ Qt("visibilitychange", () => n.setHidden(document.visibilityState === "hidden"), typeof document > "u" ? null : document), V(() => {
13468
13468
  let e = t.current;
13469
13469
  if (!e) return;
13470
13470
  let r = (e) => {
@@ -13784,58 +13784,58 @@ function xE(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
13784
13784
  }, D = {
13785
13785
  mouse: 500,
13786
13786
  touch: 600
13787
- }, O = m ? 43 : 25, k = !1, A = 0, ee = 0, j = !1, M = !1, N = !1, te = !1;
13788
- function ne(e) {
13787
+ }, O = m ? 43 : 25, k = !1, A = 0, ee = 0, j = !1, te = !1, M = !1, ne = !1;
13788
+ function re(e) {
13789
13789
  if (!v) return;
13790
13790
  function n(t) {
13791
- (eE(v) || v(e, t)) && oe(t);
13791
+ (eE(v) || v(e, t)) && se(t);
13792
13792
  }
13793
13793
  let r = t;
13794
- C.add(r, "dragstart", (e) => e.preventDefault(), S).add(r, "touchmove", () => void 0, S).add(r, "touchend", () => void 0).add(r, "touchstart", n).add(r, "mousedown", n).add(r, "touchcancel", I).add(r, "contextmenu", I).add(r, "click", ce, !0);
13794
+ C.add(r, "dragstart", (e) => e.preventDefault(), S).add(r, "touchmove", () => void 0, S).add(r, "touchend", () => void 0).add(r, "touchstart", n).add(r, "mousedown", n).add(r, "touchcancel", F).add(r, "contextmenu", F).add(r, "click", le, !0);
13795
13795
  }
13796
- function P() {
13796
+ function N() {
13797
13797
  C.clear(), w.clear();
13798
13798
  }
13799
- function re() {
13800
- let e = te ? n : t;
13801
- w.add(e, "touchmove", se, S).add(e, "touchend", I).add(e, "mousemove", se, S).add(e, "mouseup", I);
13799
+ function ie() {
13800
+ let e = ne ? n : t;
13801
+ w.add(e, "touchmove", ce, S).add(e, "touchend", F).add(e, "mousemove", ce, S).add(e, "mouseup", F);
13802
13802
  }
13803
- function ie(e) {
13803
+ function ae(e) {
13804
13804
  let t = e.nodeName || "";
13805
13805
  return x.includes(t);
13806
13806
  }
13807
- function F() {
13808
- return (m ? D : E)[te ? "mouse" : "touch"];
13807
+ function P() {
13808
+ return (m ? D : E)[ne ? "mouse" : "touch"];
13809
13809
  }
13810
- function ae(e, t) {
13810
+ function oe(e, t) {
13811
13811
  let n = d.add(rE(e) * -1), r = u.byDistance(e, !m).distance;
13812
13812
  return m || nE(e) < T ? r : g && t ? r * .5 : u.byIndex(n.get(), 0).distance;
13813
13813
  }
13814
- function oe(e) {
13814
+ function se(e) {
13815
13815
  let t = mE(e, r);
13816
- te = t, N = m && t && !e.buttons && k, k = iE(i.get(), o.get()) >= 2, !(t && e.button !== 0) && (ie(e.target) || (j = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), re(), A = a.readPoint(e), ee = a.readPoint(e, y), f.emit("pointerDown")));
13816
+ ne = t, M = m && t && !e.buttons && k, k = iE(i.get(), o.get()) >= 2, !(t && e.button !== 0) && (ae(e.target) || (j = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), ie(), A = a.readPoint(e), ee = a.readPoint(e, y), f.emit("pointerDown")));
13817
13817
  }
13818
- function se(e) {
13819
- if (!mE(e, r) && e.touches.length >= 2) return I(e);
13818
+ function ce(e) {
13819
+ if (!mE(e, r) && e.touches.length >= 2) return F(e);
13820
13820
  let t = a.readPoint(e), n = a.readPoint(e, y), o = iE(t, A), c = iE(n, ee);
13821
- if (!M && !te && (!e.cancelable || (M = o > c, !M))) return I(e);
13821
+ if (!te && !ne && (!e.cancelable || (te = o > c, !te))) return F(e);
13822
13822
  let u = a.pointerMove(e);
13823
- o > h && (N = !0), l.useFriction(.3).useDuration(.75), s.start(), i.add(b(u)), e.preventDefault();
13823
+ o > h && (M = !0), l.useFriction(.3).useDuration(.75), s.start(), i.add(b(u)), e.preventDefault();
13824
13824
  }
13825
- function I(e) {
13826
- let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) * F(), r = ae(b(n), t), i = aE(n, r), o = O - 10 * i, s = _ + i / 50;
13827
- M = !1, j = !1, w.clear(), l.useDuration(o).useFriction(s), c.distance(r, !m), te = !1, f.emit("pointerUp");
13825
+ function F(e) {
13826
+ let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) * P(), r = oe(b(n), t), i = aE(n, r), o = O - 10 * i, s = _ + i / 50;
13827
+ te = !1, j = !1, w.clear(), l.useDuration(o).useFriction(s), c.distance(r, !m), ne = !1, f.emit("pointerUp");
13828
13828
  }
13829
- function ce(e) {
13830
- N &&= (e.stopPropagation(), e.preventDefault(), !1);
13829
+ function le(e) {
13830
+ M &&= (e.stopPropagation(), e.preventDefault(), !1);
13831
13831
  }
13832
- function le() {
13832
+ function ue() {
13833
13833
  return j;
13834
13834
  }
13835
13835
  return {
13836
- init: ne,
13837
- destroy: P,
13838
- pointerDown: le
13836
+ init: re,
13837
+ destroy: N,
13838
+ pointerDown: ue
13839
13839
  };
13840
13840
  }
13841
13841
  function SE(e, t) {
@@ -14350,56 +14350,56 @@ function UE(e, t, n, r, i, a, o, s, c) {
14350
14350
  return { groupSlides: h };
14351
14351
  }
14352
14352
  function WE(e, t, n, r, i, a, o) {
14353
- let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = CE(), w = C.measure(t), T = n.map(C.measure), E = vE(c, l), D = E.measureSize(w), O = wE(D), k = hE(s, D), A = !d && !!v, { slideSizes: ee, slideSizesWithGaps: j, startGap: M, endGap: N } = HE(E, w, T, n, d || !!v, i), te = UE(E, D, g, d, w, T, M, N, 2), { snaps: ne, snapsAligned: P } = ME(E, k, w, T, te), re = -cE(ne) + cE(j), { snapsContained: ie, scrollContainLimit: F } = OE(D, re, P, v, 2), ae = A ? ie : P, { limit: oe } = kE(re, ae, d), se = bE(lE(ae), u, d), I = se.clone(), ce = sE(n), le = ({ dragHandler: e, scrollBody: t, scrollBounds: n, options: { loop: r } }) => {
14353
+ let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = CE(), w = C.measure(t), T = n.map(C.measure), E = vE(c, l), D = E.measureSize(w), O = wE(D), k = hE(s, D), A = !d && !!v, { slideSizes: ee, slideSizesWithGaps: j, startGap: te, endGap: M } = HE(E, w, T, n, d || !!v, i), ne = UE(E, D, g, d, w, T, te, M, 2), { snaps: re, snapsAligned: N } = ME(E, k, w, T, ne), ie = -cE(re) + cE(j), { snapsContained: ae, scrollContainLimit: P } = OE(D, ie, N, v, 2), oe = A ? ae : N, { limit: se } = kE(ie, oe, d), ce = bE(lE(oe), u, d), F = ce.clone(), le = sE(n), ue = ({ dragHandler: e, scrollBody: t, scrollBounds: n, options: { loop: r } }) => {
14354
14354
  r || n.constrain(e.pointerDown()), t.seek();
14355
- }, ue = ({ scrollBody: e, translate: t, location: n, offsetLocation: r, previousLocation: i, scrollLooper: a, slideLooper: o, dragHandler: s, animation: c, eventHandler: l, scrollBounds: u, options: { loop: d } }, f) => {
14355
+ }, de = ({ scrollBody: e, translate: t, location: n, offsetLocation: r, previousLocation: i, scrollLooper: a, slideLooper: o, dragHandler: s, animation: c, eventHandler: l, scrollBounds: u, options: { loop: d } }, f) => {
14356
14356
  let p = e.settled(), m = !u.shouldConstrain(), h = d ? p : p && m, g = h && !s.pointerDown();
14357
14357
  g && c.stop();
14358
14358
  let _ = n.get() * f + i.get() * (1 - f);
14359
14359
  r.set(_), d && (a.loop(e.direction()), o.loop()), t.to(r.get()), g && l.emit("settle"), h || l.emit("scroll");
14360
- }, de = _E(r, i, () => le(Ee), (e) => ue(Ee, e)), fe = .68, pe = ae[se.get()], me = LE(pe), he = LE(pe), ge = LE(pe), _e = LE(pe), ve = EE(me, ge, he, _e, f, fe), ye = PE(d, ae, re, oe, _e), be = FE(de, se, I, ve, ye, _e, o), xe = jE(oe), Se = gE(), Ce = VE(t, n, o, h), { slideRegistry: we } = NE(A, v, ae, F, te, ce), Te = IE(e, n, we, be, ve, Se, o, S), Ee = {
14360
+ }, fe = _E(r, i, () => ue(De), (e) => de(De, e)), pe = .68, me = oe[ce.get()], he = LE(me), ge = LE(me), _e = LE(me), ve = LE(me), ye = EE(he, _e, ge, ve, f, pe), be = PE(d, oe, ie, se, ve), xe = FE(fe, ce, F, ye, be, ve, o), Se = jE(se), Ce = gE(), we = VE(t, n, o, h), { slideRegistry: Te } = NE(A, v, oe, P, ne, le), Ee = IE(e, n, Te, xe, ye, Ce, o, S), De = {
14361
14361
  ownerDocument: r,
14362
14362
  ownerWindow: i,
14363
14363
  eventHandler: o,
14364
14364
  containerRect: w,
14365
14365
  slideRects: T,
14366
- animation: de,
14366
+ animation: fe,
14367
14367
  axis: E,
14368
- dragHandler: xE(E, e, r, i, _e, SE(E, i), me, de, be, ve, ye, se, o, O, p, m, _, fe, x),
14369
- eventStore: Se,
14368
+ dragHandler: xE(E, e, r, i, ve, SE(E, i), he, fe, xe, ye, be, ce, o, O, p, m, _, pe, x),
14369
+ eventStore: Ce,
14370
14370
  percentOfView: O,
14371
- index: se,
14372
- indexPrevious: I,
14373
- limit: oe,
14374
- location: me,
14375
- offsetLocation: ge,
14376
- previousLocation: he,
14371
+ index: ce,
14372
+ indexPrevious: F,
14373
+ limit: se,
14374
+ location: he,
14375
+ offsetLocation: _e,
14376
+ previousLocation: ge,
14377
14377
  options: a,
14378
14378
  resizeHandler: TE(t, o, i, n, E, y, C),
14379
- scrollBody: ve,
14380
- scrollBounds: DE(oe, ge, _e, ve, O),
14381
- scrollLooper: AE(re, oe, ge, [
14382
- me,
14383
- ge,
14379
+ scrollBody: ye,
14380
+ scrollBounds: DE(se, _e, ve, ye, O),
14381
+ scrollLooper: AE(ie, se, _e, [
14384
14382
  he,
14385
- _e
14383
+ _e,
14384
+ ge,
14385
+ ve
14386
14386
  ]),
14387
- scrollProgress: xe,
14388
- scrollSnapList: ae.map(xe.get),
14389
- scrollSnaps: ae,
14390
- scrollTarget: ye,
14391
- scrollTo: be,
14392
- slideLooper: zE(E, D, re, ee, j, ne, ae, ge, n),
14393
- slideFocus: Te,
14387
+ scrollProgress: Se,
14388
+ scrollSnapList: oe.map(Se.get),
14389
+ scrollSnaps: oe,
14390
+ scrollTarget: be,
14391
+ scrollTo: xe,
14392
+ slideLooper: zE(E, D, ie, ee, j, re, oe, _e, n),
14393
+ slideFocus: Ee,
14394
14394
  slidesHandler: BE(t, o, b),
14395
- slidesInView: Ce,
14396
- slideIndexes: ce,
14397
- slideRegistry: we,
14398
- slidesToScroll: te,
14399
- target: _e,
14395
+ slidesInView: we,
14396
+ slideIndexes: le,
14397
+ slideRegistry: Te,
14398
+ slidesToScroll: ne,
14399
+ target: ve,
14400
14400
  translate: RE(E, t)
14401
14401
  };
14402
- return Ee;
14402
+ return De;
14403
14403
  }
14404
14404
  function GE() {
14405
14405
  let e = {}, t;
@@ -14495,10 +14495,10 @@ function YE(e, t, n) {
14495
14495
  return t.loop && !n.slideLooper.canLoop() ? T(Object.assign({}, t, { loop: !1 })) : n;
14496
14496
  }
14497
14497
  function E(e, t) {
14498
- g || (v = l(v, e), y = u(v), b = t || b, w(), _ = T(y), d([v, ...b.map(({ options: e }) => e)]).forEach((e) => s.add(e, "change", D)), y.active && (_.translate.to(_.location.get()), _.animation.init(), _.slidesInView.init(), _.slideFocus.init(le), _.eventHandler.init(le), _.resizeHandler.init(le), _.slidesHandler.init(le), _.options.loop && _.slideLooper.loop(), S.offsetParent && C.length && _.dragHandler.init(le), x = o.init(le, b)));
14498
+ g || (v = l(v, e), y = u(v), b = t || b, w(), _ = T(y), d([v, ...b.map(({ options: e }) => e)]).forEach((e) => s.add(e, "change", D)), y.active && (_.translate.to(_.location.get()), _.animation.init(), _.slidesInView.init(), _.slideFocus.init(ue), _.eventHandler.init(ue), _.resizeHandler.init(ue), _.slidesHandler.init(ue), _.options.loop && _.slideLooper.loop(), S.offsetParent && C.length && _.dragHandler.init(ue), x = o.init(ue, b)));
14499
14499
  }
14500
14500
  function D(e, t) {
14501
- let n = P();
14501
+ let n = N();
14502
14502
  O(), E(l({ startIndex: n }, e), t), c.emit("reInit");
14503
14503
  }
14504
14504
  function O() {
@@ -14516,69 +14516,69 @@ function YE(e, t, n) {
14516
14516
  function j(e) {
14517
14517
  A(_.index.add(-1).get(), e, 1);
14518
14518
  }
14519
- function M() {
14520
- return _.index.add(1).get() !== P();
14519
+ function te() {
14520
+ return _.index.add(1).get() !== N();
14521
14521
  }
14522
- function N() {
14523
- return _.index.add(-1).get() !== P();
14522
+ function M() {
14523
+ return _.index.add(-1).get() !== N();
14524
14524
  }
14525
- function te() {
14525
+ function ne() {
14526
14526
  return _.scrollSnapList;
14527
14527
  }
14528
- function ne() {
14528
+ function re() {
14529
14529
  return _.scrollProgress.get(_.offsetLocation.get());
14530
14530
  }
14531
- function P() {
14531
+ function N() {
14532
14532
  return _.index.get();
14533
14533
  }
14534
- function re() {
14534
+ function ie() {
14535
14535
  return _.indexPrevious.get();
14536
14536
  }
14537
- function ie() {
14537
+ function ae() {
14538
14538
  return _.slidesInView.get();
14539
14539
  }
14540
- function F() {
14540
+ function P() {
14541
14541
  return _.slidesInView.get(!1);
14542
14542
  }
14543
- function ae() {
14543
+ function oe() {
14544
14544
  return x;
14545
14545
  }
14546
- function oe() {
14546
+ function se() {
14547
14547
  return _;
14548
14548
  }
14549
- function se() {
14549
+ function ce() {
14550
14550
  return e;
14551
14551
  }
14552
- function I() {
14552
+ function F() {
14553
14553
  return S;
14554
14554
  }
14555
- function ce() {
14555
+ function le() {
14556
14556
  return C;
14557
14557
  }
14558
- let le = {
14559
- canScrollNext: M,
14560
- canScrollPrev: N,
14561
- containerNode: I,
14562
- internalEngine: oe,
14558
+ let ue = {
14559
+ canScrollNext: te,
14560
+ canScrollPrev: M,
14561
+ containerNode: F,
14562
+ internalEngine: se,
14563
14563
  destroy: k,
14564
14564
  off: p,
14565
14565
  on: f,
14566
14566
  emit: m,
14567
- plugins: ae,
14568
- previousScrollSnap: re,
14567
+ plugins: oe,
14568
+ previousScrollSnap: ie,
14569
14569
  reInit: h,
14570
- rootNode: se,
14570
+ rootNode: ce,
14571
14571
  scrollNext: ee,
14572
14572
  scrollPrev: j,
14573
- scrollProgress: ne,
14574
- scrollSnapList: te,
14573
+ scrollProgress: re,
14574
+ scrollSnapList: ne,
14575
14575
  scrollTo: A,
14576
- selectedScrollSnap: P,
14577
- slideNodes: ce,
14578
- slidesInView: ie,
14579
- slidesNotInView: F
14576
+ selectedScrollSnap: N,
14577
+ slideNodes: le,
14578
+ slidesInView: ae,
14579
+ slidesNotInView: P
14580
14580
  };
14581
- return E(t, n), setTimeout(() => c.emit("init"), 0), le;
14581
+ return E(t, n), setTimeout(() => c.emit("init"), 0), ue;
14582
14582
  }
14583
14583
  YE.globalOptions = void 0;
14584
14584
  //#endregion
@@ -17359,7 +17359,7 @@ function Sj() {
17359
17359
  //#region lib/components/ui/media/media-player/partials/atoms/captions-menu.tsx
17360
17360
  function Cj() {
17361
17361
  let { state: e, actions: t, track: n } = $("CaptionsMenu"), { t: r } = L(), i = n?.captions ?? [];
17362
- return /* @__PURE__ */ K(ot, {
17362
+ return /* @__PURE__ */ K(I, {
17363
17363
  value: Ek(e, n),
17364
17364
  onValueChange: (e) => t.setCaptions(e === "off" ? null : e),
17365
17365
  children: [/* @__PURE__ */ G(st, {
@@ -17375,7 +17375,7 @@ function wj({ tone: e = "surface", className: t }) {
17375
17375
  let { state: r, track: i } = $("CaptionsMenu"), { t: a } = L(), o = Sj();
17376
17376
  if ((i?.captions ?? []).length === 0) return null;
17377
17377
  let s = Ek(r, i), c = a("material.media-player.captions", "Captions"), l = s === "off" ? _i : gi;
17378
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
17378
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
17379
17379
  asChild: !0,
17380
17380
  children: /* @__PURE__ */ G(R, {
17381
17381
  variant: "ghost",
@@ -17491,7 +17491,7 @@ function Fj({ tone: e = "surface", className: t }) {
17491
17491
  let { state: r, track: i } = $("ChaptersMenu"), { t: a } = L(), o = Sj();
17492
17492
  if (jj(i, r.duration || i?.duration).length === 0) return null;
17493
17493
  let s = a("material.media-player.chapters", "Chapters");
17494
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
17494
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
17495
17495
  asChild: !0,
17496
17496
  children: /* @__PURE__ */ G(R, {
17497
17497
  variant: "ghost",
@@ -17580,7 +17580,7 @@ function Uj({ tone: e = "surface", className: t }) {
17580
17580
  let { state: r, actions: i } = $("QualityMenu"), { t: a } = L(), o = Sj();
17581
17581
  if (r.qualities.length === 0) return null;
17582
17582
  let { entries: s, current: c } = Hj(r, a), l = a("material.media-player.quality", "Quality");
17583
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
17583
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
17584
17584
  asChild: !0,
17585
17585
  children: /* @__PURE__ */ G(R, {
17586
17586
  variant: "ghost",
@@ -17592,7 +17592,7 @@ function Uj({ tone: e = "surface", className: t }) {
17592
17592
  }), /* @__PURE__ */ K(dt, {
17593
17593
  align: "end",
17594
17594
  container: o,
17595
- children: [/* @__PURE__ */ G(ct, { children: l }), /* @__PURE__ */ G(ot, {
17595
+ children: [/* @__PURE__ */ G(ct, { children: l }), /* @__PURE__ */ G(I, {
17596
17596
  value: c.id,
17597
17597
  onValueChange: (e) => i.setQuality(e),
17598
17598
  children: s.map((e) => /* @__PURE__ */ G(st, {
@@ -17628,7 +17628,7 @@ function Gj() {
17628
17628
  }
17629
17629
  function Kj() {
17630
17630
  let { state: e, actions: t, playbackRates: n } = $("SpeedMenu"), { t: r } = L(), i = Gj();
17631
- return /* @__PURE__ */ G(ot, {
17631
+ return /* @__PURE__ */ G(I, {
17632
17632
  value: String(e.rate),
17633
17633
  onValueChange: (e) => t.setRate(Number(e)),
17634
17634
  children: n.map((e) => /* @__PURE__ */ G(st, {
@@ -17639,7 +17639,7 @@ function Kj() {
17639
17639
  }
17640
17640
  function qj({ tone: e = "surface", className: t }) {
17641
17641
  let { state: r, track: i } = $("SpeedMenu"), { t: a } = L(), o = Sj(), s = a("material.media-player.playback-rate", "Playback speed"), c = Gj();
17642
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
17642
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
17643
17643
  asChild: !0,
17644
17644
  children: /* @__PURE__ */ G(R, {
17645
17645
  variant: "ghost",
@@ -17659,7 +17659,7 @@ function qj({ tone: e = "surface", className: t }) {
17659
17659
  //#region lib/components/ui/media/media-player/partials/atoms/settings-menu.tsx
17660
17660
  function Jj() {
17661
17661
  let { state: e, actions: t } = $("SettingsMenu"), { t: n } = L(), { entries: r, current: i } = Hj(e, n);
17662
- return /* @__PURE__ */ G(ot, {
17662
+ return /* @__PURE__ */ G(I, {
17663
17663
  value: i.id,
17664
17664
  onValueChange: t.setQuality,
17665
17665
  children: r.map((e) => /* @__PURE__ */ G(st, {
@@ -17689,7 +17689,7 @@ function Xj({ tone: e = "surface", className: t }) {
17689
17689
  label: l[e],
17690
17690
  options: u[e]
17691
17691
  }));
17692
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
17692
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
17693
17693
  asChild: !0,
17694
17694
  children: /* @__PURE__ */ G(R, {
17695
17695
  variant: "ghost",
@@ -18026,7 +18026,7 @@ function bM({ search: e, onStep: t }) {
18026
18026
  "data-slot": "media-transcript-search",
18027
18027
  className: "flex items-center gap-1",
18028
18028
  children: [
18029
- /* @__PURE__ */ G(de, {
18029
+ /* @__PURE__ */ G(fe, {
18030
18030
  type: "search",
18031
18031
  value: r,
18032
18032
  onChange: (t) => e.setQuery(t.target.value),
@@ -18765,20 +18765,20 @@ function hN() {
18765
18765
  }
18766
18766
  function gN() {
18767
18767
  let { state: e, sliceActions: t, rootRef: n } = $("MediaPlayer"), r = pN(), i = Yr(xj);
18768
- return /* @__PURE__ */ G(be, {
18768
+ return /* @__PURE__ */ G(xe, {
18769
18769
  open: e.helpOpen,
18770
18770
  onOpenChange: t.setHelpOpen,
18771
- children: /* @__PURE__ */ K(ve, {
18771
+ children: /* @__PURE__ */ K(ye, {
18772
18772
  container: e.fullscreen ? n.current : i,
18773
18773
  "data-slot": "media-shortcut-help",
18774
18774
  className: "sm:max-w-xl",
18775
18775
  children: [
18776
- /* @__PURE__ */ K(me, {
18776
+ /* @__PURE__ */ K(he, {
18777
18777
  className: "pe-8 text-start",
18778
- children: [/* @__PURE__ */ G(xe, { children: r("title") }), /* @__PURE__ */ G(ye, { children: r("description") })]
18778
+ children: [/* @__PURE__ */ G(Se, { children: r("title") }), /* @__PURE__ */ G(be, { children: r("description") })]
18779
18779
  }),
18780
18780
  /* @__PURE__ */ G(hN, {}),
18781
- /* @__PURE__ */ G(ge, {})
18781
+ /* @__PURE__ */ G(_e, {})
18782
18782
  ]
18783
18783
  })
18784
18784
  });
@@ -19725,10 +19725,10 @@ function bP({ className: e }) {
19725
19725
  }),
19726
19726
  (r.title || r.description) && /* @__PURE__ */ K("div", {
19727
19727
  className: "px-1",
19728
- children: [r.title && /* @__PURE__ */ G(sn, {
19728
+ children: [r.title && /* @__PURE__ */ G(qt, {
19729
19729
  className: "font-medium",
19730
19730
  children: r.title
19731
- }), r.description && /* @__PURE__ */ G(sn, {
19731
+ }), r.description && /* @__PURE__ */ G(qt, {
19732
19732
  className: "text-muted-foreground text-sm",
19733
19733
  children: r.description
19734
19734
  })]
@@ -20147,7 +20147,7 @@ function sF(e, t, n = e) {
20147
20147
  //#endregion
20148
20148
  //#region lib/components/ui/media/galleries/use-lightbox-gestures.ts
20149
20149
  function cF(e, t, n = null) {
20150
- let r = Xt(t), { zoom: i, pan: a, setPan: o } = t;
20150
+ let r = $t(t), { zoom: i, pan: a, setPan: o } = t;
20151
20151
  Zr(() => {
20152
20152
  e && LP(e, i, a);
20153
20153
  }, [
@@ -20181,8 +20181,34 @@ function cF(e, t, n = null) {
20181
20181
  ]);
20182
20182
  }
20183
20183
  //#endregion
20184
+ //#region lib/components/ui/media/galleries/partials/gallery-viewer-button.ts
20185
+ var lF = "bg-black/45 text-white backdrop-blur-sm hover:bg-black/60 focus:bg-black/60 active:bg-black/70 [&_svg]:stroke-white [&_svg]:data-[slot=icon]:text-white";
20186
+ //#endregion
20187
+ //#region lib/components/ui/media/galleries/partials/gallery-chrome-arrows.tsx
20188
+ function uF() {
20189
+ let { items: e, next: t, prev: r, canNext: i, canPrev: a } = jT(), { t: o } = L();
20190
+ return e.length < 2 ? null : /* @__PURE__ */ K("div", {
20191
+ className: "pointer-events-none absolute inset-x-3 top-1/2 flex -translate-y-1/2 items-center justify-between [&>*]:pointer-events-auto",
20192
+ children: [/* @__PURE__ */ G(R, {
20193
+ variant: "tonal",
20194
+ className: n(lF, "disabled:opacity-0"),
20195
+ tooltip: o("material.gallery.previous", "Previous"),
20196
+ disabled: !a,
20197
+ onClick: r,
20198
+ children: /* @__PURE__ */ G(Si, { className: "rtl:-scale-x-100" })
20199
+ }), /* @__PURE__ */ G(R, {
20200
+ variant: "tonal",
20201
+ className: n(lF, "disabled:opacity-0"),
20202
+ tooltip: o("material.gallery.next", "Next"),
20203
+ disabled: !i,
20204
+ onClick: t,
20205
+ children: /* @__PURE__ */ G(Ci, { className: "rtl:-scale-x-100" })
20206
+ })]
20207
+ });
20208
+ }
20209
+ //#endregion
20184
20210
  //#region lib/components/ui/media/galleries/partials/gallery-chrome-status.tsx
20185
- function lF() {
20211
+ function dF() {
20186
20212
  let { items: e, current: t, state: n } = jT(), { t: r } = L(), i = r("material.gallery.of", "{current} of {total}", {
20187
20213
  current: n.currentIndex + 1,
20188
20214
  total: e.length
@@ -20190,11 +20216,11 @@ function lF() {
20190
20216
  return /* @__PURE__ */ K("div", {
20191
20217
  className: "min-w-0 flex-1 text-white",
20192
20218
  children: [
20193
- t?.title && /* @__PURE__ */ G(sn, {
20219
+ t?.title && /* @__PURE__ */ G(qt, {
20194
20220
  className: "truncate font-medium",
20195
20221
  children: t.title
20196
20222
  }),
20197
- e.length > 0 && /* @__PURE__ */ G(sn, {
20223
+ e.length > 0 && /* @__PURE__ */ G(qt, {
20198
20224
  className: "text-white/70 text-xs",
20199
20225
  children: i
20200
20226
  }),
@@ -20207,22 +20233,19 @@ function lF() {
20207
20233
  });
20208
20234
  }
20209
20235
  //#endregion
20210
- //#region lib/components/ui/media/galleries/partials/gallery-viewer-button.ts
20211
- var uF = "bg-black/45 text-white backdrop-blur-sm hover:bg-black/60 focus:bg-black/60 active:bg-black/70 [&_svg]:stroke-white [&_svg]:data-[slot=icon]:text-white";
20212
- //#endregion
20213
20236
  //#region lib/components/ui/media/galleries/partials/gallery-chrome-zoom.tsx
20214
- function dF() {
20237
+ function fF() {
20215
20238
  let { state: e, setZoom: t } = jT(), { t: n } = L();
20216
20239
  return /* @__PURE__ */ K(ei, { children: [/* @__PURE__ */ G(R, {
20217
20240
  variant: "tonal",
20218
- className: uF,
20241
+ className: lF,
20219
20242
  tooltip: n("material.gallery.zoom-out", "Zoom out"),
20220
20243
  disabled: e.zoom <= 1,
20221
20244
  onClick: () => t(e.zoom - .25),
20222
20245
  children: /* @__PURE__ */ G(po, {})
20223
20246
  }), /* @__PURE__ */ G(R, {
20224
20247
  variant: "tonal",
20225
- className: uF,
20248
+ className: lF,
20226
20249
  tooltip: n("material.gallery.zoom-in", "Zoom in"),
20227
20250
  disabled: e.zoom >= 4,
20228
20251
  onClick: () => t(e.zoom + .25),
@@ -20231,17 +20254,17 @@ function dF() {
20231
20254
  }
20232
20255
  //#endregion
20233
20256
  //#region lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.tsx
20234
- function fF() {
20257
+ function pF() {
20235
20258
  let { current: e, state: t, closeLightbox: r, toggleLoop: i, downloadCurrent: a } = jT(), { t: o } = L(), s = e?.kind !== "video", c = o("material.gallery.close", "Close");
20236
20259
  return /* @__PURE__ */ K("div", {
20237
20260
  className: n("pointer-events-auto -m-3 flex flex-wrap items-start justify-between gap-2 p-3", t.zoom > 1 && "bg-gradient-to-b from-black/60 to-transparent pb-8"),
20238
- children: [/* @__PURE__ */ G(lF, {}), /* @__PURE__ */ K("div", {
20261
+ children: [/* @__PURE__ */ G(dF, {}), /* @__PURE__ */ K("div", {
20239
20262
  className: "flex max-w-full flex-wrap justify-end gap-1",
20240
20263
  children: [
20241
- s && /* @__PURE__ */ G(dF, {}),
20264
+ s && /* @__PURE__ */ G(fF, {}),
20242
20265
  /* @__PURE__ */ G(R, {
20243
20266
  variant: "tonal",
20244
- className: uF,
20267
+ className: lF,
20245
20268
  tooltip: o("material.gallery.download", "Download"),
20246
20269
  onClick: a,
20247
20270
  disabled: !e,
@@ -20249,7 +20272,7 @@ function fF() {
20249
20272
  }),
20250
20273
  /* @__PURE__ */ G(R, {
20251
20274
  variant: "tonal",
20252
- className: n(uF, "[--ib-on:white]! [--ib-on-fg:black]!"),
20275
+ className: n(lF, "[--ib-on:white]! [--ib-on-fg:black]!"),
20253
20276
  tooltip: t.loop ? o("material.gallery.repeat-off", "Repeat off") : o("material.gallery.repeat", "Repeat"),
20254
20277
  "aria-pressed": t.loop,
20255
20278
  onClick: i,
@@ -20257,7 +20280,7 @@ function fF() {
20257
20280
  }),
20258
20281
  /* @__PURE__ */ G(R, {
20259
20282
  variant: "tonal",
20260
- className: uF,
20283
+ className: lF,
20261
20284
  "aria-label": c,
20262
20285
  tooltip: c,
20263
20286
  onClick: r,
@@ -20268,34 +20291,11 @@ function fF() {
20268
20291
  });
20269
20292
  }
20270
20293
  //#endregion
20271
- //#region lib/components/ui/media/galleries/partials/gallery-chrome-arrows.tsx
20272
- function pF() {
20273
- let { items: e, next: t, prev: r, canNext: i, canPrev: a } = jT(), { t: o } = L();
20274
- return e.length < 2 ? null : /* @__PURE__ */ K("div", {
20275
- className: "pointer-events-none absolute inset-x-3 top-1/2 flex -translate-y-1/2 items-center justify-between [&>*]:pointer-events-auto",
20276
- children: [/* @__PURE__ */ G(R, {
20277
- variant: "tonal",
20278
- className: n(uF, "disabled:opacity-0"),
20279
- tooltip: o("material.gallery.previous", "Previous"),
20280
- disabled: !a,
20281
- onClick: r,
20282
- children: /* @__PURE__ */ G(Si, { className: "rtl:-scale-x-100" })
20283
- }), /* @__PURE__ */ G(R, {
20284
- variant: "tonal",
20285
- className: n(uF, "disabled:opacity-0"),
20286
- tooltip: o("material.gallery.next", "Next"),
20287
- disabled: !i,
20288
- onClick: t,
20289
- children: /* @__PURE__ */ G(Ci, { className: "rtl:-scale-x-100" })
20290
- })]
20291
- });
20292
- }
20293
- //#endregion
20294
20294
  //#region lib/components/ui/media/galleries/partials/gallery-chrome.tsx
20295
20295
  function mF() {
20296
20296
  return /* @__PURE__ */ K("div", {
20297
20297
  className: "pointer-events-none absolute inset-0 z-10 flex flex-col justify-between p-3",
20298
- children: [/* @__PURE__ */ G(fF, {}), /* @__PURE__ */ G(pF, {})]
20298
+ children: [/* @__PURE__ */ G(pF, {}), /* @__PURE__ */ G(uF, {})]
20299
20299
  });
20300
20300
  }
20301
20301
  //#endregion
@@ -20381,12 +20381,12 @@ function _F() {
20381
20381
  //#region lib/components/ui/media/galleries/partials/gallery-lightbox.tsx
20382
20382
  function vF() {
20383
20383
  let { items: e, current: t, state: r, closeLightbox: i, onKeyDown: a, morph: o } = jT(), { t: s } = L(), c = t?.title || t?.alt || t?.id || s("material.gallery.label", "Gallery");
20384
- return /* @__PURE__ */ G(be, {
20384
+ return /* @__PURE__ */ G(xe, {
20385
20385
  open: r.lightboxOpen && e.length > 0,
20386
20386
  onOpenChange: (e) => {
20387
20387
  e || i();
20388
20388
  },
20389
- children: /* @__PURE__ */ K(ve, {
20389
+ children: /* @__PURE__ */ K(ye, {
20390
20390
  container: o.active && typeof document < "u" ? document.body : void 0,
20391
20391
  "data-view-transition": o.active || void 0,
20392
20392
  className: n("@container inset-0 top-0 left-0 flex h-dvh max-h-none w-screen max-w-none supports-[not(height:100dvh)]:max-h-none translate-x-0 translate-y-0 flex-col gap-0 rounded-none border-0 bg-transparent p-0 shadow-none data-[view-transition]:animate-none sm:max-w-none"),
@@ -20394,11 +20394,11 @@ function vF() {
20394
20394
  a(e), e.defaultPrevented && e.stopPropagation();
20395
20395
  },
20396
20396
  children: [
20397
- /* @__PURE__ */ G(xe, {
20397
+ /* @__PURE__ */ G(Se, {
20398
20398
  className: "sr-only",
20399
20399
  children: c
20400
20400
  }),
20401
- /* @__PURE__ */ G(ye, {
20401
+ /* @__PURE__ */ G(be, {
20402
20402
  className: "sr-only",
20403
20403
  children: s("material.gallery.viewer.dismiss-hint", "Pinch or double-tap to zoom, swipe to change picture, swipe down to close. The buttons and the arrow keys do the same.")
20404
20404
  }),
@@ -20441,7 +20441,7 @@ function xF() {
20441
20441
  return !t || e.selectedIds.length === 0 ? null : /* @__PURE__ */ K("div", {
20442
20442
  "data-slot": "gallery-selection-bar",
20443
20443
  className: "mb-2 flex flex-wrap items-center justify-between gap-2 rounded-(--nxgt-shape-corner-lg) border border-border bg-background px-3 py-2",
20444
- children: [/* @__PURE__ */ G(sn, {
20444
+ children: [/* @__PURE__ */ G(qt, {
20445
20445
  className: "text-sm",
20446
20446
  children: r("material.gallery.selected", "{count} selected", { count: e.selectedIds.length })
20447
20447
  }), /* @__PURE__ */ G(Ht, {
@@ -20986,7 +20986,7 @@ function JF({ items: e, onSubmit: t, children: r }) {
20986
20986
  //#region lib/components/ui/widgets/editor/extensions/custom/gallery/gallery-component.tsx
20987
20987
  function YF(e) {
20988
20988
  let { t } = L(), n = e.node.attrs.items ?? [], r = e.editor.isEditable, i = n.length === 0;
20989
- return /* @__PURE__ */ G(tn, {
20989
+ return /* @__PURE__ */ G(an, {
20990
20990
  contentEditable: !1,
20991
20991
  children: /* @__PURE__ */ K("div", {
20992
20992
  className: "group relative my-2",
@@ -21000,7 +21000,7 @@ function YF(e) {
21000
21000
  children: [/* @__PURE__ */ G(qi, {}), t("material.rich-text-editor.add-images", "Add images")]
21001
21001
  })
21002
21002
  }),
21003
- i && !r && /* @__PURE__ */ G(sn, {
21003
+ i && !r && /* @__PURE__ */ G(qt, {
21004
21004
  variant: "body-small",
21005
21005
  className: "italic opacity-70",
21006
21006
  children: t("material.rich-text-editor.no-images", "No images")
@@ -21023,7 +21023,7 @@ function YF(e) {
21023
21023
  //#region lib/components/ui/widgets/editor/extensions/custom/gallery/extension.ts
21024
21024
  var XF = Bn.extend({
21025
21025
  addNodeView() {
21026
- return Qt(YF);
21026
+ return tn(YF);
21027
21027
  },
21028
21028
  addCommands() {
21029
21029
  return { insertGallery: (e) => ({ commands: t }) => t.insertContent({
@@ -21068,7 +21068,7 @@ function tI(e) {
21068
21068
  function nI(e) {
21069
21069
  let { t } = L();
21070
21070
  return {
21071
- current: nn({
21071
+ current: on({
21072
21072
  editor: e,
21073
21073
  selector: (e) => tI(e.editor)
21074
21074
  }),
@@ -21086,7 +21086,7 @@ function nI(e) {
21086
21086
  }
21087
21087
  function rI({ editor: e }) {
21088
21088
  let { current: t, label: n, iconOf: r, choose: i } = nI(e);
21089
- return /* @__PURE__ */ G(ot, {
21089
+ return /* @__PURE__ */ G(I, {
21090
21090
  value: t,
21091
21091
  onValueChange: i,
21092
21092
  children: eI.map((e) => /* @__PURE__ */ K(st, {
@@ -21112,7 +21112,7 @@ function iI({ editor: e }) {
21112
21112
  /* @__PURE__ */ G(bi, { className: "hidden size-3 opacity-60 @5xl:in-[[aria-orientation=horizontal]]:block" })
21113
21113
  ]
21114
21114
  });
21115
- return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
21115
+ return /* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
21116
21116
  asChild: !0,
21117
21117
  children: /* @__PURE__ */ G(xt, {
21118
21118
  label: a,
@@ -21146,7 +21146,7 @@ var aI = () => jn({
21146
21146
  markdown: "native"
21147
21147
  }), oI = "#fef08a";
21148
21148
  function sI({ editor: e }) {
21149
- let { t } = L(), n = nn({
21149
+ let { t } = L(), n = on({
21150
21150
  editor: e,
21151
21151
  selector: (e) => ({
21152
21152
  color: e.editor.getAttributes("highlight").color,
@@ -21263,7 +21263,7 @@ function fI({ editor: e, storage: t, disabled: n, onUrl: r }) {
21263
21263
  let { t: i } = L(), [a, o] = W(!1), s = () => {
21264
21264
  t.pick(e.state.selection.to), e.chain().focus().run();
21265
21265
  }, c = () => o(!0);
21266
- return /* @__PURE__ */ K(ei, { children: [/* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(at, {
21266
+ return /* @__PURE__ */ K(ei, { children: [/* @__PURE__ */ K(mt, { children: [/* @__PURE__ */ G(ot, {
21267
21267
  asChild: !0,
21268
21268
  children: /* @__PURE__ */ G(tx, {
21269
21269
  variant: "ghost",
@@ -21291,7 +21291,7 @@ function fI({ editor: e, storage: t, disabled: n, onUrl: r }) {
21291
21291
  //#endregion
21292
21292
  //#region lib/components/ui/widgets/editor/extensions/image/editor-image-wrapper.tsx
21293
21293
  function pI({ editor: e }) {
21294
- let { t } = L(), n = nn({
21294
+ let { t } = L(), n = on({
21295
21295
  editor: e,
21296
21296
  selector: (e) => ({ canImage: e.editor.can().setImage({ src: "" }) ?? !1 })
21297
21297
  }), r = yx(e), i = (t) => e.chain().focus().setImage({ src: t }).run();
@@ -21358,7 +21358,7 @@ function hI({ children: e, onSubmit: t }) {
21358
21358
  //#endregion
21359
21359
  //#region lib/components/ui/widgets/editor/extensions/link/editor-link-wrapper.tsx
21360
21360
  function gI({ editor: e }) {
21361
- let { t } = L(), n = nn({
21361
+ let { t } = L(), n = on({
21362
21362
  editor: e,
21363
21363
  selector: (e) => ({
21364
21364
  isLink: e.editor.isActive("link") ?? !1,
@@ -21533,7 +21533,7 @@ var _I = () => jn({
21533
21533
  //#endregion
21534
21534
  //#region lib/components/ui/widgets/editor/extensions/history/history-buttons.tsx
21535
21535
  function UI({ editor: e }) {
21536
- let { t } = L(), n = nn({
21536
+ let { t } = L(), n = on({
21537
21537
  editor: e,
21538
21538
  selector: (e) => ({
21539
21539
  canUndo: e.editor.can().undo() ?? !1,
@@ -21557,7 +21557,7 @@ function UI({ editor: e }) {
21557
21557
  //#endregion
21558
21558
  //#region lib/components/ui/widgets/editor/extensions/marks/compact-mark-buttons.tsx
21559
21559
  function WI({ editor: e }) {
21560
- let { t } = L(), n = nn({
21560
+ let { t } = L(), n = on({
21561
21561
  editor: e,
21562
21562
  selector: (e) => ({
21563
21563
  isBold: e.editor.isActive("bold") ?? !1,
@@ -21639,7 +21639,7 @@ function qI({ editor: e, part: t = "all" }) {
21639
21639
  strike: n("material.rich-text-editor.strikethrough", "Strikethrough"),
21640
21640
  subscript: n("material.rich-text-editor.subscript", "Subscript"),
21641
21641
  superscript: n("material.rich-text-editor.superscript", "Superscript")
21642
- }, i = GI.filter((e) => t === "all" || t === "main" == !!e.main), a = nn({
21642
+ }, i = GI.filter((e) => t === "all" || t === "main" == !!e.main), a = on({
21643
21643
  editor: e,
21644
21644
  selector: (e) => i.map((t) => KI(e.editor, t.name)),
21645
21645
  equalityFn: (e, t) => t !== null && e.length === t.length && e.every((e, n) => e.on === t[n]?.on && e.can === t[n]?.can)
@@ -21770,7 +21770,7 @@ var eL = new On("mention-suggestion"), tL = (e, t) => ({
21770
21770
  //#endregion
21771
21771
  //#region lib/components/ui/widgets/editor/extensions/custom/radio-group/editor-radio-group-wrapper.tsx
21772
21772
  function aL({ editor: e }) {
21773
- let { t } = L(), n = nn({
21773
+ let { t } = L(), n = on({
21774
21774
  editor: e,
21775
21775
  selector: (e) => ({
21776
21776
  isRadioGroup: e.editor.isActive("radioGroup") ?? !1,
@@ -21903,13 +21903,13 @@ function dL({ label: e, options: t, orientation: r, onSubmit: i, className: a, .
21903
21903
  label: s("material.rich-text-editor.label", "Label"),
21904
21904
  placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
21905
21905
  }),
21906
- /* @__PURE__ */ G(an, {}),
21906
+ /* @__PURE__ */ G(cn, {}),
21907
21907
  /* @__PURE__ */ G(iS, {
21908
21908
  ...c.chip("orientation"),
21909
21909
  label: s("material.rich-text-editor.orientation", "Orientation"),
21910
21910
  options: sr
21911
21911
  }),
21912
- /* @__PURE__ */ G(an, {}),
21912
+ /* @__PURE__ */ G(cn, {}),
21913
21913
  /* @__PURE__ */ G(iC, {
21914
21914
  ...c.tags("options"),
21915
21915
  mode: "multiple",
@@ -21966,7 +21966,7 @@ function pL(e) {
21966
21966
  label: e,
21967
21967
  value: e
21968
21968
  })), [r]);
21969
- return /* @__PURE__ */ G(tn, {
21969
+ return /* @__PURE__ */ G(an, {
21970
21970
  contentEditable: !1,
21971
21971
  children: /* @__PURE__ */ K("div", {
21972
21972
  className: "group relative my-2 max-w-sm",
@@ -21996,7 +21996,7 @@ function pL(e) {
21996
21996
  //#region lib/components/ui/widgets/editor/extensions/custom/radio-group/extension.ts
21997
21997
  var mL = yr.extend({
21998
21998
  addNodeView() {
21999
- return Qt(pL);
21999
+ return tn(pL);
22000
22000
  },
22001
22001
  addCommands() {
22002
22002
  return { insertRadioGroup: (e) => ({ commands: t }) => t.insertContent({
@@ -22026,7 +22026,7 @@ var mL = yr.extend({
22026
22026
  //#endregion
22027
22027
  //#region lib/components/ui/widgets/editor/extensions/custom/select-card/editor-select-card-wrapper.tsx
22028
22028
  function gL({ editor: e }) {
22029
- let { t } = L(), n = nn({
22029
+ let { t } = L(), n = on({
22030
22030
  editor: e,
22031
22031
  selector: (e) => ({
22032
22032
  isSelectCard: e.editor.isActive("selectCard") ?? !1,
@@ -22061,7 +22061,7 @@ function _L({ label: e, mode: t, onSubmit: r, className: i, ...a }) {
22061
22061
  label: o("material.rich-text-editor.label", "Label"),
22062
22062
  placeholder: o("material.rich-text-editor.optional-heading", "Optional heading")
22063
22063
  }),
22064
- /* @__PURE__ */ G(an, {}),
22064
+ /* @__PURE__ */ G(cn, {}),
22065
22065
  /* @__PURE__ */ G(iS, {
22066
22066
  ...s.chip("mode"),
22067
22067
  label: o("material.rich-text-editor.selection", "Selection"),
@@ -22135,12 +22135,12 @@ function bL({ icon: e, title: t, description: r, onSubmit: i, className: a, ...o
22135
22135
  label: s("material.rich-text-editor.icon", "Icon"),
22136
22136
  options: yL
22137
22137
  }),
22138
- /* @__PURE__ */ G(an, {}),
22138
+ /* @__PURE__ */ G(cn, {}),
22139
22139
  /* @__PURE__ */ G(hn, {
22140
22140
  ...c.text("title"),
22141
22141
  label: s("material.rich-text-editor.title", "Title")
22142
22142
  }),
22143
- /* @__PURE__ */ G(an, {}),
22143
+ /* @__PURE__ */ G(cn, {}),
22144
22144
  /* @__PURE__ */ G(ux, {
22145
22145
  ...c.text("description"),
22146
22146
  label: s("material.rich-text-editor.description", "Description")
@@ -22239,7 +22239,7 @@ function wL(e) {
22239
22239
  description: "",
22240
22240
  icon: Cr
22241
22241
  })), u = (t) => e.updateAttributes({ value: CL(r, i, t) });
22242
- return /* @__PURE__ */ G(tn, {
22242
+ return /* @__PURE__ */ G(an, {
22243
22243
  contentEditable: !1,
22244
22244
  children: /* @__PURE__ */ K("div", {
22245
22245
  className: "group/block relative my-2",
@@ -22279,7 +22279,7 @@ function wL(e) {
22279
22279
  //#region lib/components/ui/widgets/editor/extensions/custom/select-card/extension.ts
22280
22280
  var TL = dr.extend({
22281
22281
  addNodeView() {
22282
- return Qt(wL);
22282
+ return tn(wL);
22283
22283
  },
22284
22284
  addCommands() {
22285
22285
  return { insertSelectCard: (e) => ({ commands: t }) => t.insertContent({
@@ -22309,7 +22309,7 @@ var TL = dr.extend({
22309
22309
  //#endregion
22310
22310
  //#region lib/components/ui/widgets/editor/extensions/custom/select-chip/editor-select-chip-wrapper.tsx
22311
22311
  function DL({ editor: e }) {
22312
- let { t } = L(), n = nn({
22312
+ let { t } = L(), n = on({
22313
22313
  editor: e,
22314
22314
  selector: (e) => ({
22315
22315
  isSelectChip: e.editor.isActive("selectChip") ?? !1,
@@ -22345,13 +22345,13 @@ function OL({ label: e, mode: t, options: r, onSubmit: i, className: a, ...o })
22345
22345
  label: s("material.rich-text-editor.label", "Label"),
22346
22346
  placeholder: s("material.rich-text-editor.optional-heading", "Optional heading")
22347
22347
  }),
22348
- /* @__PURE__ */ G(an, {}),
22348
+ /* @__PURE__ */ G(cn, {}),
22349
22349
  /* @__PURE__ */ G(iS, {
22350
22350
  ...c.chip("mode"),
22351
22351
  label: s("material.rich-text-editor.selection", "Selection"),
22352
22352
  options: Dr
22353
22353
  }),
22354
- /* @__PURE__ */ G(an, {}),
22354
+ /* @__PURE__ */ G(cn, {}),
22355
22355
  /* @__PURE__ */ G(iC, {
22356
22356
  ...c.tags("options"),
22357
22357
  mode: "multiple",
@@ -22408,7 +22408,7 @@ function AL(e) {
22408
22408
  label: e,
22409
22409
  value: e
22410
22410
  })), [i]);
22411
- return /* @__PURE__ */ G(tn, {
22411
+ return /* @__PURE__ */ G(an, {
22412
22412
  contentEditable: !1,
22413
22413
  children: /* @__PURE__ */ K("div", {
22414
22414
  className: "group relative my-2 max-w-sm",
@@ -22445,7 +22445,7 @@ function AL(e) {
22445
22445
  //#region lib/components/ui/widgets/editor/extensions/custom/select-chip/extension.ts
22446
22446
  var jL = ur.extend({
22447
22447
  addNodeView() {
22448
- return Qt(AL);
22448
+ return tn(AL);
22449
22449
  },
22450
22450
  addCommands() {
22451
22451
  return { insertSelectChip: (e) => ({ commands: t }) => t.insertContent({
@@ -22670,7 +22670,7 @@ function BL({ caption: e, align: t, onSubmit: r }) {
22670
22670
  label: i("material.rich-text-editor.caption", "Caption"),
22671
22671
  placeholder: i("material.rich-text-editor.caption-placeholder", "Add a caption…")
22672
22672
  }),
22673
- /* @__PURE__ */ G(an, {}),
22673
+ /* @__PURE__ */ G(cn, {}),
22674
22674
  /* @__PURE__ */ G(iS, {
22675
22675
  ...a.chip("align"),
22676
22676
  label: i("material.rich-text-editor.alignment", "Alignment"),
@@ -22690,7 +22690,7 @@ function BL({ caption: e, align: t, onSubmit: r }) {
22690
22690
  //#endregion
22691
22691
  //#region lib/components/ui/widgets/editor/extensions/table/use-table-menu-state.ts
22692
22692
  function VL(e) {
22693
- return nn({
22693
+ return on({
22694
22694
  editor: e,
22695
22695
  selector: (e) => ({
22696
22696
  isTable: e.editor.isActive("table") ?? !1,
@@ -22739,17 +22739,17 @@ function HL({ editor: e, onApplied: t }) {
22739
22739
  //#endregion
22740
22740
  //#region lib/components/ui/widgets/editor/extensions/table/editor-table-wrapper.tsx
22741
22741
  function UL({ editor: e }) {
22742
- let { t } = L(), [n, r] = W(!1), { trigger: i, onCloseAutoFocus: a } = lI(), o = nn({
22742
+ let { t } = L(), [n, r] = W(!1), { trigger: i, onCloseAutoFocus: a } = lI(), o = on({
22743
22743
  editor: e,
22744
22744
  selector: (e) => ({
22745
22745
  isTable: e.editor.isActive("table") ?? !1,
22746
22746
  canTable: e.editor.can().insertTable()
22747
22747
  })
22748
22748
  });
22749
- return /* @__PURE__ */ K(be, {
22749
+ return /* @__PURE__ */ K(xe, {
22750
22750
  open: n,
22751
22751
  onOpenChange: r,
22752
- children: [/* @__PURE__ */ G(_e, {
22752
+ children: [/* @__PURE__ */ G(ve, {
22753
22753
  asChild: !0,
22754
22754
  ref: i,
22755
22755
  children: /* @__PURE__ */ G(tx, {
@@ -22767,10 +22767,10 @@ function UL({ editor: e }) {
22767
22767
  more: { kind: "dialog" },
22768
22768
  children: /* @__PURE__ */ G(Za, {})
22769
22769
  })
22770
- }), /* @__PURE__ */ K(ve, {
22770
+ }), /* @__PURE__ */ K(ye, {
22771
22771
  className: "max-h-[80vh] overflow-y-auto sm:max-w-lg",
22772
22772
  onCloseAutoFocus: a,
22773
- children: [/* @__PURE__ */ G(me, { children: /* @__PURE__ */ G(xe, { children: t("material.rich-text-editor.table-properties", "Table properties") }) }), /* @__PURE__ */ G(HL, {
22773
+ children: [/* @__PURE__ */ G(he, { children: /* @__PURE__ */ G(Se, { children: t("material.rich-text-editor.table-properties", "Table properties") }) }), /* @__PURE__ */ G(HL, {
22774
22774
  editor: e,
22775
22775
  onApplied: () => r(!1)
22776
22776
  })]
@@ -22823,7 +22823,7 @@ var WL = () => jn({
22823
22823
  }
22824
22824
  ];
22825
22825
  function KL({ editor: e }) {
22826
- let { t } = L(), n = nn({
22826
+ let { t } = L(), n = on({
22827
22827
  editor: e,
22828
22828
  selector: (e) => ({ align: GL.find(({ value: t }) => e.editor.isActive({ textAlign: t }))?.value ?? "left" })
22829
22829
  });
@@ -22900,7 +22900,7 @@ function XL({ editor: e }) {
22900
22900
  }).run(),
22901
22901
  children: /* @__PURE__ */ G(tx, {
22902
22902
  variant: "ghost",
22903
- disabled: !nn({
22903
+ disabled: !on({
22904
22904
  editor: e,
22905
22905
  selector: (e) => ({ canYoutube: e.editor.can().setYoutubeVideo({ src: YL }) ?? !1 })
22906
22906
  }).canYoutube,
@@ -22940,7 +22940,7 @@ function QL(e, t) {
22940
22940
  var $L = class {
22941
22941
  get middlewares() {
22942
22942
  let e = [];
22943
- return this.floatingUIOptions.flip && e.push(Pe(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xe(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(He(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(Ye(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Ie(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(We(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(Ge(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(Je(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
22943
+ return this.floatingUIOptions.flip && e.push(Fe(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Ze(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Ue(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(Xe(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Le(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Ge(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(Ke(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(Ye(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
22944
22944
  }
22945
22945
  get virtualElement() {
22946
22946
  var e;
@@ -23033,7 +23033,7 @@ var $L = class {
23033
23033
  updatePosition() {
23034
23034
  if (!this.isVisible) return;
23035
23035
  let e = this.virtualElement;
23036
- e && Be(e, this.element, {
23036
+ e && Ve(e, this.element, {
23037
23037
  placement: this.floatingUIOptions.placement,
23038
23038
  strategy: this.floatingUIOptions.strategy,
23039
23039
  middleware: this.middlewares
@@ -23126,7 +23126,7 @@ var tR = class {
23126
23126
  }
23127
23127
  get middlewares() {
23128
23128
  let e = [];
23129
- return this.floatingUIOptions.flip && e.push(Pe(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xe(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(He(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(Ye(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Ie(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(We(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(Ge(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(Je(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
23129
+ return this.floatingUIOptions.flip && e.push(Fe(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Ze(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Ue(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(Xe(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Le(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Ge(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(Ke(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(Ye(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
23130
23130
  }
23131
23131
  constructor({ editor: e, element: t, view: n, pluginKey: r = "floatingMenu", updateDelay: i = 250, resizeDelay: a = 60, options: o, appendTo: s, shouldShow: c }) {
23132
23132
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
@@ -23198,7 +23198,7 @@ var tR = class {
23198
23198
  var e;
23199
23199
  if (!(!((e = this.view) == null || (e = e.dom) == null) && e.parentNode)) return;
23200
23200
  let { selection: t } = this.editor.state, n = wn(this.view, t.from, t.to);
23201
- Be({
23201
+ Ve({
23202
23202
  getBoundingClientRect: () => n,
23203
23203
  getClientRects: () => [n]
23204
23204
  }, this.element, {
@@ -23449,7 +23449,7 @@ function DR(e, t) {
23449
23449
  var OR = zr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay: r, appendTo: i, shouldShow: a = null, getReferencedVirtualElement: o, options: s, children: c, ...l }, u) => {
23450
23450
  let d = U(document.createElement("div")), f = U(rR(e, "bubbleMenu")).current;
23451
23451
  DR(d.current, l), typeof u == "function" ? u(d.current) : u && (u.current = d.current);
23452
- let { editor: p } = en(), m = t || p, h = {
23452
+ let { editor: p } = rn(), m = t || p, h = {
23453
23453
  updateDelay: n,
23454
23454
  resizeDelay: r,
23455
23455
  appendTo: i,
@@ -23506,7 +23506,7 @@ var OR = zr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay:
23506
23506
  zr.forwardRef(({ pluginKey: e, editor: t, updateDelay: n, resizeDelay: r, appendTo: i, shouldShow: a = null, options: o, children: s, ...c }, l) => {
23507
23507
  let u = U(document.createElement("div")), d = U(rR(e, "floatingMenu")).current;
23508
23508
  DR(u.current, c), typeof l == "function" ? l(u.current) : l && (l.current = u.current);
23509
- let { editor: f } = en(), p = t || f, m = {
23509
+ let { editor: f } = rn(), p = t || f, m = {
23510
23510
  updateDelay: n,
23511
23511
  resizeDelay: r,
23512
23512
  appendTo: i,
@@ -23572,10 +23572,10 @@ function AR(e, t = "toolbar", n) {
23572
23572
  //#endregion
23573
23573
  //#region lib/components/ui/widgets/editor/partials/editor-bubble-menu.tsx
23574
23574
  function jR({ className: e }) {
23575
- let { t } = L(), { handle: r, chrome: i } = db(), { editor: a } = r, o = nn({
23575
+ let { t } = L(), { handle: r, chrome: i } = db(), { editor: a } = r, o = on({
23576
23576
  editor: a,
23577
23577
  selector: (e) => e.editor?.isEditable ?? !1
23578
- }), s = nn({
23578
+ }), s = on({
23579
23579
  editor: a,
23580
23580
  selector: (e) => AR(r.features, "bubble", e.editor).map((e) => e.id).join("|")
23581
23581
  }), c = AR(r.features, "bubble", a).filter((e) => s?.split("|").includes(e.id) && (o || e.readOnly));
@@ -23591,7 +23591,7 @@ function jR({ className: e }) {
23591
23591
  children: /* @__PURE__ */ G(Ct, {
23592
23592
  label: t("material.editor.bubble", "Selection formatting"),
23593
23593
  className: n("h-auto gap-1 rounded-none bg-transparent p-0 shadow-none", kR, "[&_button[data-variant]]:rounded", "**:data-[slot=separator]:mx-1 **:data-[slot=separator]:h-6"),
23594
- children: c.map((e, t) => /* @__PURE__ */ K(Vr, { children: [t > 0 && /* @__PURE__ */ G(an, { orientation: "vertical" }), /* @__PURE__ */ G(e.render, { editor: a })] }, e.id))
23594
+ children: c.map((e, t) => /* @__PURE__ */ K(Vr, { children: [t > 0 && /* @__PURE__ */ G(cn, { orientation: "vertical" }), /* @__PURE__ */ G(e.render, { editor: a })] }, e.id))
23595
23595
  })
23596
23596
  });
23597
23597
  }
@@ -23616,7 +23616,7 @@ function MR({ className: e, ...t }) {
23616
23616
  ...t
23617
23617
  });
23618
23618
  }
23619
- return /* @__PURE__ */ G(rn, {
23619
+ return /* @__PURE__ */ G(sn, {
23620
23620
  "data-slot": "editor-content",
23621
23621
  editor: i,
23622
23622
  className: e,
@@ -23833,7 +23833,7 @@ function HR({ group: e, editor: t }) {
23833
23833
  });
23834
23834
  }
23835
23835
  function UR({ groups: e, editor: t, dividers: n, orientation: r = "horizontal" }) {
23836
- return e.map((e, i) => /* @__PURE__ */ K(Vr, { children: [n && i > 0 && /* @__PURE__ */ G(an, { orientation: r === "vertical" ? "horizontal" : "vertical" }), /* @__PURE__ */ G(HR, {
23836
+ return e.map((e, i) => /* @__PURE__ */ K(Vr, { children: [n && i > 0 && /* @__PURE__ */ G(cn, { orientation: r === "vertical" ? "horizontal" : "vertical" }), /* @__PURE__ */ G(HR, {
23837
23837
  group: e,
23838
23838
  editor: t
23839
23839
  })] }, e.id));