@prokodo/ui 0.0.4 → 0.0.6

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 (281) hide show
  1. package/README.md +99 -12
  2. package/dist/components/Accordion-V3d_aGvZ.js +130 -0
  3. package/dist/components/Accordion-o8oKA6Tq.js +1 -0
  4. package/dist/components/Animated-BBfAgsHL.js +64 -0
  5. package/dist/components/Animated-CO4IEerF.js +1 -0
  6. package/dist/components/AnimatedText-BmB5Vkyq.js +31 -0
  7. package/dist/components/AnimatedText-Sy1jofZl.js +1 -0
  8. package/dist/components/Avatar-Ci5YNFc5.js +95 -0
  9. package/dist/components/Avatar-CjlbA5a5.js +1 -0
  10. package/dist/components/BaseLink-Dd9htNXU.js +1 -0
  11. package/dist/components/BaseLink-w1q9Qc1U.js +30 -0
  12. package/dist/components/Button-B8chVgsB.js +111 -0
  13. package/dist/components/Button-yvFLX-6Q.js +1 -0
  14. package/dist/components/Calendly-CWCAs02R.js +1 -0
  15. package/dist/components/Calendly-WBM4oHyC.js +82 -0
  16. package/dist/components/Card-BPEoLzF1.js +1 -0
  17. package/dist/components/Card-IW4R7bKr.js +202 -0
  18. package/dist/components/Carousel-CdS7SVzA.js +1 -0
  19. package/dist/components/Carousel-DpO4a3lm.js +257 -0
  20. package/dist/components/Chip-BmBxJH5M.js +80 -0
  21. package/dist/components/Chip-Q2ttDAQn.js +1 -0
  22. package/dist/components/ClassNameConfigurator-C6UbdI-d.js +21 -0
  23. package/dist/components/ClassNameConfigurator-Ce5BUPXc.js +860 -0
  24. package/dist/components/DatePicker-BTenaDN8.js +1 -0
  25. package/dist/components/DatePicker-PK173UTy.js +93 -0
  26. package/dist/components/Dialog-Bq3tfZ0_.js +1 -0
  27. package/dist/components/Dialog-KlXAOdt_.js +172 -0
  28. package/dist/components/Drawer-DulO9091.js +1 -0
  29. package/dist/components/Drawer-i9X07r74.js +120 -0
  30. package/dist/components/Form-B6963dT5.js +368 -0
  31. package/dist/components/Form-DVNzITG2.js +1 -0
  32. package/dist/components/GridRow-1h1JHuDl.js +114 -0
  33. package/dist/components/GridRow-C5v0sOZZ.js +1 -0
  34. package/dist/components/Headline-CnyLLQLB.js +1 -0
  35. package/dist/components/Headline-DzEinaZi.js +98 -0
  36. package/dist/components/Icon-BMrVlROP.js +4195 -0
  37. package/dist/components/Icon-eWdA85cf.js +1 -0
  38. package/dist/components/Image-B-lyA7ym.js +1 -0
  39. package/dist/components/Image-CVgvVlLE.js +33 -0
  40. package/dist/components/ImageText-Cqp4xp9y.js +113 -0
  41. package/dist/components/ImageText-D-06_EGf.js +1 -0
  42. package/dist/components/Input-BEO9ig1R.js +1 -0
  43. package/dist/components/Input-CrNLI_OY.js +258 -0
  44. package/dist/components/InputOTP-Db7DHrhS.js +88 -0
  45. package/dist/components/InputOTP-MnmjEmPU.js +1 -0
  46. package/dist/components/Label-BvCzZIGM.js +1 -0
  47. package/dist/components/Label-DRUCdGoX.js +71 -0
  48. package/dist/components/Link-DSQ1125B.js +69 -0
  49. package/dist/components/Link-Dg7XR4uY.js +1 -0
  50. package/dist/components/List-D_dSwMx5.js +1 -0
  51. package/dist/components/List-P6xbVrBc.js +196 -0
  52. package/dist/components/Loading-C7lyHDW7.js +68 -0
  53. package/dist/components/Loading-U-CrTVTi.js +1 -0
  54. package/dist/components/Lottie-Br7PmIzX.js +1 -0
  55. package/dist/components/Lottie-CrvbxK0R.js +87 -0
  56. package/dist/components/Map-D3xbPS1S.js +1 -0
  57. package/dist/components/Map-DEIB_y-M.js +64 -0
  58. package/dist/components/PostItem-B8Vfv_sW.js +183 -0
  59. package/dist/components/PostItem-BSTn6cHD.js +1 -0
  60. package/dist/components/PostTeaser-BmZyqFL2.js +186 -0
  61. package/dist/components/PostTeaser-DLynX43c.js +1 -0
  62. package/dist/components/PostWidget-Bo4KiSsV.js +170 -0
  63. package/dist/components/PostWidget-DYWA-B8d.js +1 -0
  64. package/dist/components/PostWidgetCarousel-CZ6ptOGv.js +168 -0
  65. package/dist/components/PostWidgetCarousel-D7-p3Pwr.js +1 -0
  66. package/dist/components/Quote-6aurOanD.js +1 -0
  67. package/dist/components/Quote-CV_UYE1G.js +101 -0
  68. package/dist/components/RichText-Cg_XzkUs.js +152 -0
  69. package/dist/components/RichText-DVg1dwMV.js +1 -0
  70. package/dist/components/Select-BMyrX8V0.js +3081 -0
  71. package/dist/components/Select-DbjU6dlH.js +3 -0
  72. package/dist/components/Skeleton-BuY3bttw.js +1 -0
  73. package/dist/components/Skeleton-D6olNYTG.js +40 -0
  74. package/dist/components/Slider-C-lecSwc.js +957 -0
  75. package/dist/components/Slider-GvO3Xllf.js +1 -0
  76. package/dist/components/Stepper-BV3PGCr2.js +1 -0
  77. package/dist/components/Stepper-CA1DOm4D.js +135 -0
  78. package/dist/components/Switch-C_6EUOIc.js +330 -0
  79. package/dist/components/Switch-Db3HpOhM.js +1 -0
  80. package/dist/components/Table-Csc0FIbX.js +1 -0
  81. package/dist/components/Table-Cy8bIv_C.js +95 -0
  82. package/dist/components/Teaser-CkisYOs-.js +1 -0
  83. package/dist/components/Teaser-Cl2oBeh5.js +118 -0
  84. package/dist/components/accordion.js +1 -0
  85. package/dist/components/animated.js +1 -0
  86. package/dist/components/animatedText.js +1 -0
  87. package/dist/components/areArraysEqual-6R3bBH2E.js +1 -0
  88. package/dist/components/areArraysEqual-CJkStQkx.js +20 -0
  89. package/dist/components/avatar.js +1 -0
  90. package/dist/components/base-link.js +1 -0
  91. package/dist/components/bem-CYKrPjje.js +11 -0
  92. package/dist/components/bem-DC5wv0dD.js +1 -0
  93. package/dist/components/button.js +1 -0
  94. package/dist/components/calculation-79PhfKvq.js +4 -0
  95. package/dist/components/calculation-D-p0iqpk.js +1 -0
  96. package/dist/components/calendly.js +1 -0
  97. package/dist/components/card.js +1 -0
  98. package/dist/components/carousel.js +1 -0
  99. package/dist/components/chip.js +1 -0
  100. package/dist/components/datePicker.js +1 -0
  101. package/dist/components/dialog.js +1 -0
  102. package/dist/components/drawer.js +1 -0
  103. package/dist/components/form.js +1 -0
  104. package/dist/components/grid.js +1 -0
  105. package/dist/components/headline.js +1 -0
  106. package/dist/components/icon.js +1 -0
  107. package/dist/components/image-text.js +1 -0
  108. package/dist/components/image.js +1 -0
  109. package/dist/components/input.js +1 -0
  110. package/dist/components/inputOTP.js +1 -0
  111. package/dist/components/jsx-runtime-C5mzlN2N.js +284 -0
  112. package/dist/components/jsx-runtime-CITbqOLs.js +22 -0
  113. package/dist/components/label.js +1 -0
  114. package/dist/components/link.js +1 -0
  115. package/dist/components/list.js +1 -0
  116. package/dist/components/loading.js +1 -0
  117. package/dist/components/lottie.js +1 -0
  118. package/dist/components/map.js +1 -0
  119. package/dist/components/post-item.js +1 -0
  120. package/dist/components/post-teaser.js +1 -0
  121. package/dist/components/post-widget-carousel.js +1 -0
  122. package/dist/components/post-widget.js +1 -0
  123. package/dist/components/quote.js +1 -0
  124. package/dist/components/rich-text.js +1 -0
  125. package/dist/components/select.js +1 -0
  126. package/dist/components/skeleton.js +1 -0
  127. package/dist/components/slider.js +1 -0
  128. package/dist/components/stepper.js +1 -0
  129. package/dist/components/switch.js +1 -0
  130. package/dist/components/table.js +1 -0
  131. package/dist/components/teaser.js +1 -0
  132. package/dist/components/useControlled-BYdyS7Pn.js +31 -0
  133. package/dist/components/useControlled-Ysk4KqoX.js +3 -0
  134. package/dist/components/validations-B_cxltQ_.js +8 -0
  135. package/dist/components/validations-Cnxtn28y.js +1 -0
  136. package/dist/index.cjs.js +1 -46
  137. package/dist/index.es.js +82 -13845
  138. package/dist/tsconfig.build.tsbuildinfo +1 -0
  139. package/dist/types/components/accordion/Accordion.d.ts +3 -0
  140. package/dist/types/components/accordion/Accordion.model.d.ts +28 -0
  141. package/dist/types/components/accordion/index.d.ts +2 -0
  142. package/dist/types/components/animated/Animated.d.ts +3 -0
  143. package/dist/types/components/animated/Animated.model.d.ts +12 -0
  144. package/dist/types/components/animated/index.d.ts +2 -0
  145. package/dist/types/components/animatedText/AnimatedText.d.ts +3 -0
  146. package/dist/types/components/animatedText/AnimatedText.model.d.ts +7 -0
  147. package/dist/types/components/animatedText/index.d.ts +2 -0
  148. package/dist/types/components/avatar/Avatar.d.ts +3 -0
  149. package/dist/types/components/avatar/Avatar.model.d.ts +11 -0
  150. package/dist/types/components/avatar/index.d.ts +2 -0
  151. package/dist/types/components/base-link/BaseLink.d.ts +3 -0
  152. package/dist/types/components/base-link/BaseLink.model.d.ts +7 -0
  153. package/dist/types/components/base-link/index.d.ts +2 -0
  154. package/dist/types/components/button/Button.d.ts +3 -0
  155. package/dist/types/components/button/Button.model.d.ts +26 -0
  156. package/dist/types/components/button/index.d.ts +2 -0
  157. package/dist/types/components/calendly/Calendly.d.ts +22 -0
  158. package/dist/types/components/calendly/Calendly.model.d.ts +27 -0
  159. package/dist/types/components/calendly/index.d.ts +2 -0
  160. package/dist/types/components/card/Card.d.ts +3 -0
  161. package/dist/types/components/card/Card.model.d.ts +35 -0
  162. package/dist/types/components/card/index.d.ts +2 -0
  163. package/dist/types/components/carousel/Carousel.d.ts +3 -0
  164. package/dist/types/components/carousel/Carousel.model.d.ts +24 -0
  165. package/dist/types/components/carousel/Carousel.services.d.ts +23 -0
  166. package/dist/types/components/carousel/index.d.ts +2 -0
  167. package/dist/types/components/chip/Chip.d.ts +3 -0
  168. package/dist/types/components/chip/Chip.model.d.ts +14 -0
  169. package/dist/types/components/chip/index.d.ts +2 -0
  170. package/dist/types/components/datePicker/DatePicker.d.ts +3 -0
  171. package/dist/types/components/datePicker/DatePicker.model.d.ts +21 -0
  172. package/dist/types/components/datePicker/index.d.ts +2 -0
  173. package/dist/types/components/dialog/Dialog.d.ts +3 -0
  174. package/dist/types/components/dialog/Dialog.model.d.ts +34 -0
  175. package/dist/types/components/dialog/index.d.ts +2 -0
  176. package/dist/types/components/drawer/Drawer.d.ts +5 -0
  177. package/dist/types/components/drawer/Drawer.model.d.ts +11 -0
  178. package/dist/types/components/drawer/index.d.ts +2 -0
  179. package/dist/types/components/form/Form.d.ts +3 -0
  180. package/dist/types/components/form/Form.model.d.ts +71 -0
  181. package/dist/types/components/form/FormField.d.ts +9 -0
  182. package/dist/types/components/form/FormResponse.d.ts +6 -0
  183. package/dist/types/components/form/index.d.ts +3 -0
  184. package/dist/types/components/grid/Grid.d.ts +7 -0
  185. package/dist/types/components/grid/GridRow.d.ts +13 -0
  186. package/dist/types/components/grid/index.d.ts +2 -0
  187. package/dist/types/components/headline/Headline.d.ts +4 -0
  188. package/dist/types/components/headline/Headline.model.d.ts +19 -0
  189. package/dist/types/components/headline/index.d.ts +2 -0
  190. package/dist/types/components/icon/Icon.d.ts +4 -0
  191. package/dist/types/components/icon/Icon.model.d.ts +15 -0
  192. package/dist/types/components/icon/iconsMap.d.ts +4128 -0
  193. package/dist/types/components/icon/index.d.ts +2 -0
  194. package/dist/types/components/image/Image.d.ts +3 -0
  195. package/dist/types/components/image/Image.model.d.ts +12 -0
  196. package/dist/types/components/image/index.d.ts +2 -0
  197. package/dist/types/components/image-text/ImageText.d.ts +3 -0
  198. package/dist/types/components/image-text/ImageText.model.d.ts +21 -0
  199. package/dist/types/components/image-text/index.d.ts +2 -0
  200. package/dist/types/components/input/Input.d.ts +3 -0
  201. package/dist/types/components/input/Input.model.d.ts +55 -0
  202. package/dist/types/components/input/InputValidation.d.ts +2 -0
  203. package/dist/types/components/input/index.d.ts +2 -0
  204. package/dist/types/components/inputOTP/InputOTP.d.ts +3 -0
  205. package/dist/types/components/inputOTP/InputOTP.model.d.ts +8 -0
  206. package/dist/types/components/inputOTP/index.d.ts +2 -0
  207. package/dist/types/components/label/Label.d.ts +3 -0
  208. package/dist/types/components/label/Label.model.d.ts +9 -0
  209. package/dist/types/components/label/index.d.ts +2 -0
  210. package/dist/types/components/link/Link.d.ts +3 -0
  211. package/dist/types/components/link/Link.model.d.ts +22 -0
  212. package/dist/types/components/link/index.d.ts +2 -0
  213. package/dist/types/components/list/List.d.ts +3 -0
  214. package/dist/types/components/list/List.model.d.ts +49 -0
  215. package/dist/types/components/list/index.d.ts +2 -0
  216. package/dist/types/components/loading/Loading.d.ts +3 -0
  217. package/dist/types/components/loading/Loading.model.d.ts +5 -0
  218. package/dist/types/components/loading/index.d.ts +2 -0
  219. package/dist/types/components/lottie/Lottie.d.ts +3 -0
  220. package/dist/types/components/lottie/Lottie.model.d.ts +8 -0
  221. package/dist/types/components/lottie/LottieAnimations.d.ts +32 -0
  222. package/dist/types/components/lottie/index.d.ts +2 -0
  223. package/dist/types/components/map/Map.d.ts +3 -0
  224. package/dist/types/components/map/Map.model.d.ts +20 -0
  225. package/dist/types/components/map/index.d.ts +2 -0
  226. package/dist/types/components/post-item/PostItem.d.ts +3 -0
  227. package/dist/types/components/post-item/PostItem.model.d.ts +21 -0
  228. package/dist/types/components/post-item/PostItemAuthor.d.ts +3 -0
  229. package/dist/types/components/post-item/PostItemAuthor.model.d.ts +14 -0
  230. package/dist/types/components/post-item/index.d.ts +3 -0
  231. package/dist/types/components/post-teaser/PostTeaser.d.ts +3 -0
  232. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +25 -0
  233. package/dist/types/components/post-teaser/index.d.ts +2 -0
  234. package/dist/types/components/post-widget/PostWidget.d.ts +3 -0
  235. package/dist/types/components/post-widget/PostWidget.model.d.ts +25 -0
  236. package/dist/types/components/post-widget/index.d.ts +2 -0
  237. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +3 -0
  238. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +20 -0
  239. package/dist/types/components/post-widget-carousel/index.d.ts +2 -0
  240. package/dist/types/components/quote/Quote.d.ts +3 -0
  241. package/dist/types/components/quote/Quote.model.d.ts +19 -0
  242. package/dist/types/components/quote/index.d.ts +2 -0
  243. package/dist/types/components/rich-text/RichText.d.ts +3 -0
  244. package/dist/types/components/rich-text/RichText.model.d.ts +11 -0
  245. package/dist/types/components/rich-text/index.d.ts +2 -0
  246. package/dist/types/components/select/Select.d.ts +3 -0
  247. package/dist/types/components/select/Select.model.d.ts +30 -0
  248. package/dist/types/components/select/index.d.ts +2 -0
  249. package/dist/types/components/skeleton/Skeleton.d.ts +3 -0
  250. package/dist/types/components/skeleton/Skeleton.model.d.ts +7 -0
  251. package/dist/types/components/skeleton/index.d.ts +2 -0
  252. package/dist/types/components/slider/Slider.d.ts +3 -0
  253. package/dist/types/components/slider/Slider.model.d.ts +11 -0
  254. package/dist/types/components/slider/index.d.ts +2 -0
  255. package/dist/types/components/stepper/Stepper.d.ts +3 -0
  256. package/dist/types/components/stepper/Stepper.model.d.ts +24 -0
  257. package/dist/types/components/stepper/index.d.ts +2 -0
  258. package/dist/types/components/switch/Switch.d.ts +3 -0
  259. package/dist/types/components/switch/Switch.model.d.ts +18 -0
  260. package/dist/types/components/switch/index.d.ts +2 -0
  261. package/dist/types/components/table/Table.d.ts +3 -0
  262. package/dist/types/components/table/Table.model.d.ts +32 -0
  263. package/dist/types/components/table/index.d.ts +2 -0
  264. package/dist/types/components/teaser/Teaser.d.ts +3 -0
  265. package/dist/types/components/teaser/Teaser.model.d.ts +29 -0
  266. package/dist/types/components/teaser/index.d.ts +2 -0
  267. package/dist/types/helpers/bem.d.ts +8 -0
  268. package/dist/types/helpers/calculation.d.ts +2 -0
  269. package/dist/types/helpers/effect.d.ts +1 -0
  270. package/dist/types/helpers/getTracking.d.ts +5 -0
  271. package/dist/types/helpers/theme.d.ts +1 -0
  272. package/dist/types/helpers/validations.d.ts +6 -0
  273. package/dist/types/hooks/useGoogleMaps.d.ts +1 -0
  274. package/dist/types/hooks/useThrottleScroll.d.ts +1 -0
  275. package/dist/types/index.d.ts +80 -0
  276. package/dist/types/types/colors.d.ts +5 -0
  277. package/dist/types/types/core.d.ts +5 -0
  278. package/dist/types/types/schema.d.ts +7 -0
  279. package/dist/types/types/variants.d.ts +1 -0
  280. package/dist/ui.css +1 -1
  281. package/package.json +183 -18
@@ -0,0 +1,3 @@
1
+ "use strict";const _=require("./jsx-runtime-CITbqOLs.js"),ue=require("react"),on=require("./bem-DC5wv0dD.js"),we=require("./validations-Cnxtn28y.js"),rn=require("./Label-BvCzZIGM.js"),a=require("./ClassNameConfigurator-C6UbdI-d.js"),sn=require("react-dom"),ae=require("./areArraysEqual-6R3bBH2E.js");function yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=yt(ue),wt=yt(sn),ln="exact-prop: ​";function cn(e){return process.env.NODE_ENV==="production"?e:{...e,[ln]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function Je(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const s=e[t],i=r||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${o} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}let it=0;function un(e){const[t,n]=f.useState(e),o=e||t;return f.useEffect(()=>{t==null&&(it+=1,n(`mui-${it}`))},[t]),o}const lt=f.useId;function Rt(e){if(lt!==void 0){const t=lt();return e??t}return un(e)}function an(e){return!e||!f.isValidElement(e)?null:e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}const Pt="Option";function fn(e){return a.generateUtilityClass(Pt,e)}a.generateUtilityClasses(Pt,["root","disabled","selected","highlighted"]);function dn(e){const{rootElementName:t="",componentName:n}=e,[o,r]=f.useState(t.toUpperCase());process.env.NODE_ENV!=="production"&&f.useEffect(()=>{t&&o!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${n?`the ${n} component`:"a component"} expected the '${t}' element, but a '${o.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")},[t,o,n]);const s=f.useCallback(i=>{r((i==null?void 0:i.tagName)??"")},[]);return[o,s]}const K={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function pn(e,t,n,o,r,s){if(n.length===0||!o&&n.every((l,c)=>r(l,c)))return-1;let i=e;for(;;){if(!s&&t==="next"&&i===n.length||!s&&t==="previous"&&i===-1)return-1;if(o?!1:r(n[i],i))i+=t==="next"?1:-1,s&&(i=(i+n.length)%n.length);else return i}}function J(e,t,n){const{items:o,isItemDisabled:r,disableListWrap:s,disabledItemsFocusable:i,itemComparer:l,focusManagement:c}=n,u=c==="DOM"?0:-1,g=o.length-1,d=e==null?-1:o.findIndex(P=>l(P,e));let m,p,h=!s;switch(t){case"reset":if(u===-1)return null;m=0,p="next",h=!1;break;case"start":m=0,p="next",h=!1;break;case"end":m=g,p="previous",h=!1;break;default:{const P=d+t;P<0?!h&&d!==-1||Math.abs(t)>1?(m=0,p="next"):(m=g,p="previous"):P>g?!h||Math.abs(t)>1?(m=g,p="previous"):(m=0,p="next"):(m=P,p=t>=0?"next":"previous")}}const w=pn(m,p,o,i,r,h);return w===-1&&e!==null&&!r(e,d)?e:o[w]??null}function gn(e,t,n,o){return n==="none"?[]:n==="single"?o(t[0],e)?t:[e]:t.some(r=>o(r,e))?t.filter(r=>!o(r,e)):[...t,e]}function et(e,t,n){const{itemComparer:o,isItemDisabled:r,selectionMode:s,items:i}=n,{selectedValues:l}=t,c=i.findIndex(g=>o(e,g));if(r(e,c))return t;const u=gn(e,l,s,o);return{...t,selectedValues:u,highlightedValue:e}}function mn(e,t,n){const o=t.highlightedValue,{orientation:r,pageSize:s}=n;switch(e){case"Home":return{...t,highlightedValue:J(o,"start",n)};case"End":return{...t,highlightedValue:J(o,"end",n)};case"PageUp":return{...t,highlightedValue:J(o,-s,n)};case"PageDown":return{...t,highlightedValue:J(o,s,n)};case"ArrowUp":if(r!=="vertical")break;return{...t,highlightedValue:J(o,-1,n)};case"ArrowDown":if(r!=="vertical")break;return{...t,highlightedValue:J(o,1,n)};case"ArrowLeft":{if(r==="vertical")break;return{...t,highlightedValue:J(o,r==="horizontal-ltr"?-1:1,n)}}case"ArrowRight":{if(r==="vertical")break;return{...t,highlightedValue:J(o,r==="horizontal-ltr"?1:-1,n)}}case"Enter":case" ":return t.highlightedValue===null?t:et(t.highlightedValue,t,n)}return t}function hn(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function bn(e,t,n){var r;const o=(r=n(e))==null?void 0:r.trim().toLowerCase();return!o||o.length===0?!1:o.startsWith(t)}function xn(e,t,n){const{items:o,isItemDisabled:r,disabledItemsFocusable:s,getItemAsString:i}=n,l=t.length>1;let c=l?e.highlightedValue:J(e.highlightedValue,1,n);for(let u=0;u<o.length;u+=1){if(!c||!l&&e.highlightedValue===c)return e;if(bn(c,t,i)&&(!r(c,o.indexOf(c))||s))return{...e,highlightedValue:c};c=J(c,1,n)}return e}function yn(e,t,n,o){const{itemComparer:r,focusManagement:s}=o;let i=null;n.highlightedValue!=null?i=e.find(u=>r(u,n.highlightedValue))??null:s==="DOM"&&t.length===0&&(i=J(null,"reset",o));const c=(n.selectedValues??[]).filter(u=>e.some(g=>r(g,u)));return{...n,highlightedValue:i,selectedValues:c}}function wn(e,t){return{...e,highlightedValue:J(null,"reset",t)}}function Rn(e,t){return{...e,highlightedValue:J(null,"end",t)}}function Pn(e,t){return{...e,selectedValues:[],highlightedValue:J(null,"reset",t)}}function Ct(e,t){const{type:n,context:o}=t;switch(n){case K.keyDown:return mn(t.key,e,o);case K.itemClick:return et(t.item,e,o);case K.blur:return hn(e,o);case K.textNavigation:return xn(e,t.searchString,o);case K.itemsChange:return yn(t.items,t.previousItems,e,o);case K.resetHighlight:return wn(e,o);case K.highlightLast:return Rn(e,o);case K.clearSelection:return Pn(e,o);default:return e}}function Cn(e,t){return e===t}const qe={},ct=()=>{};function Xe(e,t){const n={...e};return Object.keys(t).forEach(o=>{t[o]!==void 0&&(n[o]=t[o])}),n}function Tn(e){const{nextState:t,initialState:n,stateComparers:o,onStateChange:r,controlledProps:s,lastActionRef:i}=e,l=f.useRef(n);f.useEffect(()=>{if(i.current===null)return;const c=Xe(l.current,s);Object.keys(t).forEach(u=>{const g=o[u]??Cn,d=t[u],m=c[u];(m==null&&d!=null||m!=null&&d==null||m!=null&&d!=null&&!g(d,m))&&(r==null||r(i.current.event??null,u,d,i.current.type??"",t))}),l.current=t,i.current=null},[l,t,i,r,o,s])}function vn(e){const t=f.useRef(null),{reducer:n,initialState:o,controlledProps:r=qe,stateComparers:s=qe,onStateChange:i=ct,actionContext:l,componentName:c=""}=e,u=f.useRef(r);process.env.NODE_ENV!=="production"&&f.useEffect(()=>{Object.keys(r).forEach(h=>{u.current[h]!==void 0&&r[h]===void 0&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing a controlled prop to be uncontrolled: ${h}`),u.current[h]===void 0&&r[h]!==void 0&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing an uncontrolled prop to be controlled: ${h}`)})},[r,c]);const g=f.useCallback((h,w)=>{t.current=w;const P=Xe(h,r);return n(P,w)},[r,n]),[d,m]=f.useReducer(g,o),p=f.useCallback(h=>{m({...h,context:l})},[l]);return Tn({nextState:d,initialState:o,stateComparers:s??qe,onStateChange:i??ct,controlledProps:r,lastActionRef:t}),[Xe(d,r),p]}const Sn=500;function En(e){const t=f.useRef({searchString:"",lastTime:null});return f.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const o=t.current,r=n.key.toLowerCase(),s=performance.now();o.searchString.length>0&&o.lastTime&&s-o.lastTime>Sn?o.searchString=r:(o.searchString.length!==1||r!==o.searchString)&&(o.searchString+=r),o.lastTime=s,e(o.searchString,n)}},[e])}const ut={},On=()=>{},kn=(e,t)=>e===t,Nn=()=>!1,Vn=e=>typeof e=="string"?e:String(e),An=()=>({highlightedValue:null,selectedValues:[]});function Mn(e){const{controlledProps:t=ut,disabledItemsFocusable:n=!1,disableListWrap:o=!1,focusManagement:r="activeDescendant",getInitialState:s=An,getItemDomElement:i,getItemId:l,isItemDisabled:c=Nn,rootRef:u,onStateChange:g=On,items:d,itemComparer:m=kn,getItemAsString:p=Vn,onChange:h,onHighlightChange:w,onItemsChange:P,orientation:v="vertical",pageSize:R=5,reducerActionContext:S=ut,selectionMode:E="single",stateReducer:O,componentName:A="useList"}=e;if(process.env.NODE_ENV!=="production"){if(r==="DOM"&&i==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(r==="activeDescendant"&&l==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const L=f.useRef(null),W=a.useForkRef(u,L),D=f.useCallback(($,M,U)=>{var Y;w==null||w($,M,U),r==="DOM"&&M!=null&&(U===K.itemClick||U===K.keyDown||U===K.textNavigation)&&((Y=i==null?void 0:i(M))==null||Y.focus())},[i,w,r]),j=f.useMemo(()=>({highlightedValue:m,selectedValues:($,M)=>ae.areArraysEqual($,M,m)}),[m]),y=f.useCallback(($,M,U,Y,ie)=>{switch(g==null||g($,M,U,Y,ie),M){case"highlightedValue":D($,U,Y);break;case"selectedValues":h==null||h($,U,Y);break}},[D,h,g]),b=f.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:o,focusManagement:r,isItemDisabled:c,itemComparer:m,items:d,getItemAsString:p,onHighlightChange:D,orientation:v,pageSize:R,selectionMode:E,stateComparers:j}),[n,o,r,c,m,d,p,D,v,R,E,j]),k=s(),F=O??Ct,q=f.useMemo(()=>({...S,...b}),[S,b]),[T,V]=vn({reducer:F,actionContext:q,initialState:k,controlledProps:t,stateComparers:j,onStateChange:y,componentName:A}),{highlightedValue:N,selectedValues:I}=T,B=En(($,M)=>V({type:K.textNavigation,event:M,searchString:$})),H=f.useRef([]);f.useEffect(()=>{ae.areArraysEqual(H.current,d,m)||(V({type:K.itemsChange,event:null,items:d,previousItems:H.current}),H.current=d,P==null||P(d))},[d,m,V,P]);const G=$=>M=>{var Y;if((Y=$.onKeyDown)==null||Y.call($,M),M.defaultMuiPrevented)return;const U=["Home","End","PageUp","PageDown"];v==="vertical"?U.push("ArrowUp","ArrowDown"):U.push("ArrowLeft","ArrowRight"),r==="activeDescendant"&&U.push(" ","Enter"),U.includes(M.key)&&M.preventDefault(),V({type:K.keyDown,key:M.key,event:M}),B(M)},se=$=>M=>{var U,Y;(U=$.onBlur)==null||U.call($,M),!M.defaultMuiPrevented&&((Y=L.current)!=null&&Y.contains(M.relatedTarget)||V({type:K.blur,event:M}))},Te=($={})=>{const M=a.extractEventHandlers($);return{...$,"aria-activedescendant":r==="activeDescendant"&&N!=null?l(N):void 0,tabIndex:r==="DOM"?-1:0,ref:W,...M,onBlur:se(M),onKeyDown:G(M)}},xe=f.useCallback($=>{const M=(I??[]).some(ie=>ie!=null&&m($,ie)),U=N!=null&&m($,N);return{focusable:r==="DOM",highlighted:U,selected:M}},[m,I,N,r]),ye=f.useMemo(()=>({dispatch:V,getItemState:xe}),[V,xe]);return f.useDebugValue({state:T}),{contextValue:ye,dispatch:V,getRootProps:Te,rootRef:W,state:T}}const Ee=f.createContext(null);process.env.NODE_ENV!=="production"&&(Ee.displayName="ListContext");function Dn(e){const{handlePointerOverEvents:t=!1,item:n}=e,o=f.useContext(Ee);if(!o)throw new Error("useListItem must be used within a ListProvider");const{dispatch:r,getItemState:s}=o,{highlighted:i,selected:l,focusable:c}=s(n),u=f.useCallback(p=>h=>{var w;if((w=p.onClick)==null||w.call(p,h),!h.defaultPrevented){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
2
+ `));r({type:K.itemClick,item:n,event:h})}},[r,n]),g=f.useCallback(p=>h=>{var w;if((w=p.onMouseOver)==null||w.call(p,h),!h.defaultPrevented){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
3
+ `));r({type:K.itemHover,item:n,event:h})}},[r,n]);let d;return c&&(d=i?0:-1),{getRootProps:(p={})=>{const h=a.extractEventHandlers(p);return{...p,onClick:u(h),onPointerOver:t?g(h):void 0,tabIndex:d}},highlighted:i,selected:l}}const tt=f.createContext(null);process.env.NODE_ENV!=="production"&&(tt.displayName="CompoundComponentContext");function In(e){const t=Array.from(e.keys()).map(n=>{const o=e.get(n);return{key:n,subitem:o}});return t.sort((n,o)=>{const r=n.subitem.ref.current,s=o.subitem.ref.current;return r===null||s===null||r===s?0:r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function _n(){const[e,t]=f.useState(new Map),n=f.useRef(new Set),o=f.useCallback(function(u){n.current.delete(u),t(g=>{const d=new Map(g);return d.delete(u),d})},[]),r=f.useCallback(function(u,g){let d;return typeof u=="function"?d=u(n.current):d=u,n.current.add(d),t(m=>{const p=new Map(m);return p.set(d,g),p}),{id:d,deregister:()=>o(d)}},[o]),s=f.useMemo(()=>In(e),[e]),i=f.useCallback(function(u){return Array.from(s.keys()).indexOf(u)},[s]);return{contextValue:f.useMemo(()=>({getItemIndex:i,registerItem:r,totalSubitemCount:e.size}),[i,r,e.size]),subitems:s}}function Ln(e,t){const n=f.useContext(tt);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:o}=n,[r,s]=f.useState(typeof e=="function"?void 0:e);return ae.useEnhancedEffect(()=>{const{id:i,deregister:l}=o(e,t);return s(i),l},[o,t,e]),{id:r,index:r!==void 0?n.getItemIndex(r):-1,totalItemCount:n.totalSubitemCount}}function Tt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:o,rootRef:r,tabIndex:s,to:i,type:l,rootElementName:c}=e,u=f.useRef(null),[g,d]=f.useState(!1),[m,p]=f.useState(!1);t&&!n&&m&&p(!1);const[h,w]=dn({rootElementName:c??(o||i?"a":void 0),componentName:"Button"}),P=y=>b=>{var k;m&&b.preventDefault(),(k=y.onMouseLeave)==null||k.call(y,b)},v=y=>b=>{var k;a.isFocusVisible(b.target)||p(!1),(k=y.onBlur)==null||k.call(y,b)},R=y=>b=>{var k,F;u.current||(u.current=b.currentTarget),a.isFocusVisible(b.target)&&(p(!0),(k=y.onFocusVisible)==null||k.call(y,b)),(F=y.onFocus)==null||F.call(y,b)},S=()=>{const y=u.current;return h==="BUTTON"||h==="INPUT"&&["button","submit","reset"].includes(y==null?void 0:y.type)||h==="A"&&(y==null?void 0:y.href)},E=y=>b=>{var k;t||(k=y.onClick)==null||k.call(y,b)},O=y=>b=>{var k;t||(d(!0),document.addEventListener("mouseup",()=>{d(!1)},{once:!0})),(k=y.onMouseDown)==null||k.call(y,b)},A=y=>b=>{var k,F;(k=y.onKeyDown)==null||k.call(y,b),!b.defaultMuiPrevented&&(b.target===b.currentTarget&&!S()&&b.key===" "&&b.preventDefault(),b.target===b.currentTarget&&b.key===" "&&!t&&d(!0),b.target===b.currentTarget&&!S()&&b.key==="Enter"&&!t&&((F=y.onClick)==null||F.call(y,b),b.preventDefault()))},L=y=>b=>{var k,F;b.target===b.currentTarget&&d(!1),(k=y.onKeyUp)==null||k.call(y,b),b.target===b.currentTarget&&!S()&&!t&&b.key===" "&&!b.defaultMuiPrevented&&((F=y.onClick)==null||F.call(y,b))},W=a.useForkRef(w,r,u),D={};return s!==void 0&&(D.tabIndex=s),h==="BUTTON"?(D.type=l??"button",n?D["aria-disabled"]=t:D.disabled=t):h==="INPUT"?l&&["button","submit","reset"].includes(l)&&(n?D["aria-disabled"]=t:D.disabled=t):h!==""&&(!o&&!i&&(D.role="button",D.tabIndex=s??0),t&&(D["aria-disabled"]=t,D.tabIndex=n?s??0:-1)),{getRootProps:(y={})=>{const b={...a.extractEventHandlers(e),...a.extractEventHandlers(y)},k={type:l,...b,...D,...y,onBlur:v(b),onClick:E(b),onFocus:R(b),onKeyDown:A(b),onKeyUp:L(b),onMouseDown:O(b),onMouseLeave:P(b),ref:W};return delete k.onFocusVisible,k},focusVisible:m,setFocusVisible:p,active:g,rootRef:W}}function Ve(e,t){return function(o={}){const r={...o,...e(o)};return{...r,...t(r)}}}function jn(e){const{value:t,label:n,disabled:o,rootRef:r,id:s}=e,{getRootProps:i,highlighted:l,selected:c}=Dn({item:t}),{getRootProps:u,rootRef:g}=Tt({disabled:o,focusableWhenDisabled:!0}),d=Rt(s),m=f.useRef(null),p=f.useMemo(()=>({disabled:o,label:n,value:t,ref:m,id:d}),[o,n,t,d]),{index:h}=Ln(t,p),w=a.useForkRef(r,m,g),P=R=>S=>{var E;(E=R.onKeyDown)==null||E.call(R,S),!S.defaultMuiPrevented&&[" ","Enter"].includes(S.key)&&(S.defaultMuiPrevented=!0)},v=(R={})=>({onKeyDown:P(R)});return{getRootProps:(R={})=>{const S=a.extractEventHandlers(R),E=Ve(i,Ve(u,v));return{...R,...S,...E(S),id:d,ref:w,role:"option","aria-selected":c}},highlighted:l,index:h,selected:c,rootRef:w}}function Fn(e){const t=f.useContext(Ee);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:n,dispatch:o}=t,{highlighted:r,selected:s,focusable:i}=n(e),l=f.useCallback(u=>{if(u!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:r,selected:s,focusable:i}},[r,s,i,e]);return{contextValue:f.useMemo(()=>({dispatch:o,getItemState:l}),[o,l])}}function Bn(e){const{disabled:t,highlighted:n,selected:o}=e,r={root:["root",t&&"disabled",n&&"highlighted",o&&"selected"]};return a.composeClasses(r,a.useClassNamesOverride(fn))}const $n=f.memo(f.forwardRef(function(t,n){var O,A;const{children:o,disabled:r=!1,label:s,slotProps:i={},slots:l={},value:c,...u}=t,g=l.root??"li",d=f.useRef(null),m=a.useForkRef(d,n),p=s??(typeof o=="string"?o:(A=(O=d.current)==null?void 0:O.textContent)==null?void 0:A.trim()),{getRootProps:h,selected:w,highlighted:P,index:v}=jn({disabled:r,label:p,rootRef:m,value:c}),R={...t,disabled:r,highlighted:P,index:v,selected:w},S=Bn(R),E=a.useSlotProps({getSlotProps:h,elementType:g,externalSlotProps:i.root,externalForwardedProps:u,className:S.root,ownerState:R});return _.jsxRuntimeExports.jsx(g,{...E,children:o})})),Qe=f.forwardRef(function(t,n){const{value:o}=t,{contextValue:r}=Fn(o);return _.jsxRuntimeExports.jsx(Ee.Provider,{value:r,children:_.jsxRuntimeExports.jsx($n,{...t,ref:n})})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={children:a.PropTypes.node,className:a.PropTypes.string,disabled:a.PropTypes.bool,label:a.PropTypes.string,slotProps:a.PropTypes.shape({root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),slots:a.PropTypes.shape({root:a.PropTypes.elementType}),value:a.PropTypes.any.isRequired});const Ae={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},vt=e=>{const{label:t,value:n}=e;return typeof t=="string"?t:typeof n=="string"?n:String(e)};function Un(e,t){const{open:n}=e,{context:{selectionMode:o}}=t;if(t.type===Ae.buttonClick){const s=e.selectedValues[0]??J(null,"start",t.context);return{...e,open:!n,highlightedValue:n?null:s}}if(t.type===Ae.browserAutoFill)return et(t.item,e,t.context);const r=Ct(e,t);switch(t.type){case K.keyDown:if(e.open){if(t.event.key==="Escape")return{...r,open:!1}}else{if(t.event.key==="ArrowDown")return{...e,open:!0,highlightedValue:e.selectedValues[0]??J(null,"start",t.context)};if(t.event.key==="ArrowUp")return{...e,open:!0,highlightedValue:e.selectedValues[0]??J(null,"end",t.context)}}break;case K.itemClick:if(o==="single")return{...r,open:!1};break;case K.blur:return{...r,open:!1};default:return r}return r}function Wn(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):(e==null?void 0:e.value)==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function zn(e){const{areOptionsEqual:t,buttonRef:n,defaultOpen:o=!1,defaultValue:r,disabled:s=!1,listboxId:i,listboxRef:l,multiple:c=!1,name:u,required:g,onChange:d,onHighlightChange:m,onOpenChange:p,open:h,options:w,getOptionAsString:P=vt,getSerializedValue:v=Wn,value:R,componentName:S="useSelect"}=e,E=f.useRef(null),O=a.useForkRef(n,E),A=f.useRef(null),L=Rt(i);let W;R===void 0&&r===void 0?W=[]:r!==void 0&&(c?W=r:W=r==null?[]:[r]);const D=f.useMemo(()=>{if(R!==void 0)return c?R:R==null?[]:[R]},[R,c]),{subitems:j,contextValue:y}=_n(),b=f.useMemo(()=>w!=null?new Map(w.map((x,C)=>[x.value,{value:x.value,label:x.label,disabled:x.disabled,ref:f.createRef(),id:`${L}_${C}`}])):j,[w,j,L]),k=a.useForkRef(l,A),{getRootProps:F,active:q,focusVisible:T,rootRef:V}=Tt({disabled:s,rootRef:O}),N=f.useMemo(()=>Array.from(b.keys()),[b]),I=f.useCallback(x=>{if(t!==void 0){const C=N.find(z=>t(z,x));return b.get(C)}return b.get(x)},[b,t,N]),B=f.useCallback(x=>{const C=I(x);return(C==null?void 0:C.disabled)??!1},[I]),H=f.useCallback(x=>{const C=I(x);return C?P(C):""},[I,P]),G=f.useMemo(()=>({selectedValues:D,open:h}),[D,h]),se=f.useCallback(x=>{var C;return(C=b.get(x))==null?void 0:C.id},[b]),Te=f.useCallback((x,C)=>{c?d==null||d(x,C):d==null||d(x,C[0]??null)},[c,d]),xe=f.useCallback((x,C)=>{m==null||m(x,C??null)},[m]),ye=f.useCallback((x,C,z)=>{var X;C==="open"&&(p==null||p(z),z===!1&&(x==null?void 0:x.type)!=="blur"&&((X=E.current)==null||X.focus()))},[p]),$=f.useCallback(x=>{var C;return x==null?null:((C=j.get(x))==null?void 0:C.ref.current)??null},[j]),M={getInitialState:()=>({highlightedValue:null,selectedValues:W??[],open:o}),getItemId:se,controlledProps:G,focusManagement:"DOM",getItemDomElement:$,itemComparer:t,isItemDisabled:B,rootRef:k,onChange:Te,onHighlightChange:xe,onStateChange:ye,reducerActionContext:f.useMemo(()=>({multiple:c}),[c]),items:N,getItemAsString:H,selectionMode:c?"multiple":"single",stateReducer:Un,componentName:S},{dispatch:U,getRootProps:Y,contextValue:ie,state:{open:le,highlightedValue:de,selectedValues:ce},rootRef:pe}=Mn(M),qt=f.useRef(le);ae.useEnhancedEffect(()=>{var x;if(le&&de!==null){const C=(x=I(de))==null?void 0:x.ref;if(!A.current||!(C!=null&&C.current))return;qt.current||C.current.focus({preventScroll:!0});const z=A.current.getBoundingClientRect(),X=C.current.getBoundingClientRect();X.top<z.top?A.current.scrollTop-=z.top-X.top:X.bottom>z.bottom&&(A.current.scrollTop+=X.bottom-z.bottom)}},[le,de,I]);const ze=f.useCallback(x=>I(x),[I]),Yt=x=>C=>{var z;if((z=x==null?void 0:x.onClick)==null||z.call(x,C),!C.defaultMuiPrevented){const X={type:Ae.buttonClick,event:C};U(X)}},Gt=x=>C=>{var z;(z=x.onKeyDown)==null||z.call(x,C),!C.defaultMuiPrevented&&(C.key==="ArrowDown"||C.key==="ArrowUp")&&(C.preventDefault(),U({type:K.keyDown,key:C.key,event:C}))},Jt=(x={})=>({onClick:Yt(x),onKeyDown:Gt(x)}),Xt=(x={})=>({...x,...Jt(x),role:"combobox","aria-expanded":le,"aria-controls":L}),Qt=(x={})=>{const C=a.extractEventHandlers(x),z=Ve(Xt,F);return{...x,...z(C)}},Zt=x=>C=>{var z,X;(z=x.onBlur)==null||z.call(x,C),!C.defaultMuiPrevented&&((X=A.current)!=null&&X.contains(C.relatedTarget)||C.relatedTarget===E.current)&&(C.defaultMuiPrevented=!0)},Ht=(x={})=>({onBlur:Zt(x)}),en=(x={})=>{const C=a.extractEventHandlers(x),z=Ve(Ht,Y);return{id:L,role:"listbox","aria-multiselectable":c?"true":void 0,...x,...z(C)}};f.useDebugValue({selectedOptions:ce,highlightedOption:de,open:le});const tn=f.useMemo(()=>({...ie,...y}),[ie,y]);let ve;e.multiple?ve=ce:ve=ce.length>0?ce[0]:null;let Ke;c?Ke=ve.map(x=>ze(x)).filter(x=>x!==void 0):Ke=ze(ve)??null;const nn=x=>C=>{var X;if((X=x==null?void 0:x.onChange)==null||X.call(x,C),C.defaultMuiPrevented)return;const z=b.get(C.target.value);C.target.value===""?U({type:K.clearSelection}):z!==void 0&&U({type:Ae.browserAutoFill,item:z.value,event:C})};return{buttonActive:q,buttonFocusVisible:T,buttonRef:V,contextValue:tn,disabled:s,dispatch:U,getButtonProps:Qt,getHiddenInputProps:(x={})=>{const C=a.extractEventHandlers(x);return{name:u,tabIndex:-1,"aria-hidden":!0,required:g?!0:void 0,value:v(Ke),style:ae.visuallyHidden,...x,onChange:nn(C)}},getListboxProps:en,getOptionMetadata:ze,listboxRef:pe,open:le,options:N,value:ve,highlightedOption:de}}function Kn(e){const{value:t,children:n}=e,{dispatch:o,getItemIndex:r,getItemState:s,registerItem:i,totalSubitemCount:l}=t,c=f.useMemo(()=>({dispatch:o,getItemState:s,getItemIndex:r}),[o,r,s]),u=f.useMemo(()=>({getItemIndex:r,registerItem:i,totalSubitemCount:l}),[i,r,l]);return _.jsxRuntimeExports.jsx(tt.Provider,{value:u,children:_.jsxRuntimeExports.jsx(Ee.Provider,{value:c,children:n})})}const Me=Math.min,ge=Math.max,De=Math.round,ke=Math.floor,ne=e=>({x:e,y:e}),qn={left:"right",right:"left",bottom:"top",top:"bottom"},Yn={start:"end",end:"start"};function at(e,t,n){return ge(e,Me(t,n))}function Fe(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function St(e){return e==="x"?"y":"x"}function Et(e){return e==="y"?"height":"width"}function me(e){return["top","bottom"].includes(he(e))?"y":"x"}function Ot(e){return St(me(e))}function Gn(e,t,n){n===void 0&&(n=!1);const o=Be(e),r=Ot(e),s=Et(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ie(i)),[i,Ie(i)]}function Jn(e){const t=Ie(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Yn[t])}function Xn(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function Qn(e,t,n,o){const r=Be(e);let s=Xn(he(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Ze)))),s}function Ie(e){return e.replace(/left|right|bottom|top/g,t=>qn[t])}function Zn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hn(e){return typeof e!="number"?Zn(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function ft(e,t,n){let{reference:o,floating:r}=e;const s=me(t),i=Ot(t),l=Et(i),c=he(t),u=s==="y",g=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:g,y:o.y-r.height};break;case"bottom":p={x:g,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Be(t)){case"start":p[i]-=m*(n&&u?-1:1);break;case"end":p[i]+=m*(n&&u?-1:1);break}return p}const eo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:g,y:d}=ft(u,o,c),m=o,p={},h=0;for(let w=0;w<l.length;w++){const{name:P,fn:v}=l[w],{x:R,y:S,data:E,reset:O}=await v({x:g,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});g=R??g,d=S??d,p={...p,[P]:{...p[P],...E}},O&&h<=50&&(h++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(u=O.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):O.rects),{x:g,y:d}=ft(u,m,c)),w=-1)}return{x:g,y:d,placement:m,strategy:r,middlewareData:p}};async function kt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Fe(t,e),h=Hn(p),P=l[m?d==="floating"?"reference":"floating":d],v=_e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:g,strategy:c})),R=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},O=_e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:S,strategy:c}):R);return{top:(v.top-O.top+h.top)/E.y,bottom:(O.bottom-v.bottom+h.bottom)/E.y,left:(v.left-O.left+h.left)/E.x,right:(O.right-v.right+h.right)/E.x}}const to=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:g=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...P}=Fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=he(r),R=me(l),S=he(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),O=m||(S||!w?[Ie(l)]:Jn(l)),A=h!=="none";!m&&A&&O.push(...Qn(l,w,h,E));const L=[l,...O],W=await kt(t,P),D=[];let j=((o=s.flip)==null?void 0:o.overflows)||[];if(g&&D.push(W[v]),d){const q=Gn(r,i,E);D.push(W[q[0]],W[q[1]])}if(j=[...j,{placement:r,overflows:D}],!D.every(q=>q<=0)){var y,b;const q=(((y=s.flip)==null?void 0:y.index)||0)+1,T=L[q];if(T){var k;const N=d==="alignment"?R!==me(T):!1,I=((k=j[0])==null?void 0:k.overflows[0])>0;if(!N||I)return{data:{index:q,overflows:j},reset:{placement:T}}}let V=(b=j.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])==null?void 0:b.placement;if(!V)switch(p){case"bestFit":{var F;const N=(F=j.filter(I=>{if(A){const B=me(I.placement);return B===R||B==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(B=>B>0).reduce((B,H)=>B+H,0)]).sort((I,B)=>I[1]-B[1])[0])==null?void 0:F[0];N&&(V=N);break}case"initialPlacement":V=l;break}if(r!==V)return{reset:{placement:V}}}return{}}}};async function no(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=he(n),l=Be(n),c=me(n)==="y",u=["left","top"].includes(i)?-1:1,g=s&&c?-1:1,d=Fe(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*g,y:m*u}:{x:m*u,y:p*g}}const oo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,c=await no(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},ro=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:P=>{let{x:v,y:R}=P;return{x:v,y:R}}},...c}=Fe(e,t),u={x:n,y:o},g=await kt(t,c),d=me(he(r)),m=St(d);let p=u[m],h=u[d];if(s){const P=m==="y"?"top":"left",v=m==="y"?"bottom":"right",R=p+g[P],S=p-g[v];p=at(R,p,S)}if(i){const P=d==="y"?"top":"left",v=d==="y"?"bottom":"right",R=h+g[P],S=h-g[v];h=at(R,h,S)}const w=l.fn({...t,[m]:p,[d]:h});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[m]:s,[d]:i}}}}}};function $e(){return typeof window<"u"}function Ce(e){return Nt(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function re(e){var t;return(t=(Nt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nt(e){return $e()?e instanceof Node||e instanceof Z(e).Node:!1}function ee(e){return $e()?e instanceof Element||e instanceof Z(e).Element:!1}function oe(e){return $e()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function dt(e){return!$e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Oe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function so(e){return["table","td","th"].includes(Ce(e))}function Ue(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function nt(e){const t=ot(),n=ee(e)?te(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function io(e){let t=fe(e);for(;oe(t)&&!Pe(t);){if(nt(t))return t;if(Ue(t))return null;t=fe(t)}return null}function ot(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pe(e){return["html","body","#document"].includes(Ce(e))}function te(e){return Z(e).getComputedStyle(e)}function We(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fe(e){if(Ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||re(e);return dt(t)?t.host:t}function Vt(e){const t=fe(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Oe(t)?t:Vt(t)}function Se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Vt(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Z(r);if(s){const l=He(i);return t.concat(i,i.visualViewport||[],Oe(r)?r:[],l&&n?Se(l):[])}return t.concat(r,Se(r,[],n))}function He(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function At(e){const t=te(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=oe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=De(n)!==s||De(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function rt(e){return ee(e)?e:e.contextElement}function Re(e){const t=rt(e);if(!oe(t))return ne(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=At(t);let i=(s?De(n.width):n.width)/o,l=(s?De(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const lo=ne(0);function Mt(e){const t=Z(e);return!ot()||!t.visualViewport?lo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function co(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function be(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=rt(e);let i=ne(1);t&&(o?ee(o)&&(i=Re(o)):i=Re(e));const l=co(s,n,o)?Mt(s):ne(0);let c=(r.left+l.x)/i.x,u=(r.top+l.y)/i.y,g=r.width/i.x,d=r.height/i.y;if(s){const m=Z(s),p=o&&ee(o)?Z(o):o;let h=m,w=He(h);for(;w&&o&&p!==h;){const P=Re(w),v=w.getBoundingClientRect(),R=te(w),S=v.left+(w.clientLeft+parseFloat(R.paddingLeft))*P.x,E=v.top+(w.clientTop+parseFloat(R.paddingTop))*P.y;c*=P.x,u*=P.y,g*=P.x,d*=P.y,c+=S,u+=E,h=Z(w),w=He(h)}}return _e({width:g,height:d,x:c,y:u})}function st(e,t){const n=We(e).scrollLeft;return t?t.left+n:be(re(e)).left+n}function Dt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:st(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function uo(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=re(o),l=t?Ue(t.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ne(1);const g=ne(0),d=oe(o);if((d||!d&&!s)&&((Ce(o)!=="body"||Oe(i))&&(c=We(o)),oe(o))){const p=be(o);u=Re(o),g.x=p.x+o.clientLeft,g.y=p.y+o.clientTop}const m=i&&!d&&!s?Dt(i,c,!0):ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+g.x+m.x,y:n.y*u.y-c.scrollTop*u.y+g.y+m.y}}function ao(e){return Array.from(e.getClientRects())}function fo(e){const t=re(e),n=We(e),o=e.ownerDocument.body,r=ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+st(e);const l=-n.scrollTop;return te(o).direction==="rtl"&&(i+=ge(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:l}}function po(e,t){const n=Z(e),o=re(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(r){s=r.width,i=r.height;const u=ot();(!u||u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:i,x:l,y:c}}function go(e,t){const n=be(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=oe(e)?Re(e):ne(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function pt(e,t,n){let o;if(t==="viewport")o=po(e,n);else if(t==="document")o=fo(re(e));else if(ee(t))o=go(t,n);else{const r=Mt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _e(o)}function It(e,t){const n=fe(e);return n===t||!ee(n)||Pe(n)?!1:te(n).position==="fixed"||It(n,t)}function mo(e,t){const n=t.get(e);if(n)return n;let o=Se(e,[],!1).filter(l=>ee(l)&&Ce(l)!=="body"),r=null;const s=te(e).position==="fixed";let i=s?fe(e):e;for(;ee(i)&&!Pe(i);){const l=te(i),c=nt(i);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Oe(i)&&!c&&It(e,i))?o=o.filter(g=>g!==i):r=l,i=fe(i)}return t.set(e,o),o}function ho(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ue(t)?[]:mo(t,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,g)=>{const d=pt(t,g,r);return u.top=ge(d.top,u.top),u.right=Me(d.right,u.right),u.bottom=Me(d.bottom,u.bottom),u.left=ge(d.left,u.left),u},pt(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bo(e){const{width:t,height:n}=At(e);return{width:t,height:n}}function xo(e,t,n){const o=oe(t),r=re(t),s=n==="fixed",i=be(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ne(0);function u(){c.x=st(r)}if(o||!o&&!s)if((Ce(t)!=="body"||Oe(r))&&(l=We(t)),o){const p=be(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&u();s&&!o&&r&&u();const g=r&&!o&&!s?Dt(r,l):ne(0),d=i.left+l.scrollLeft-c.x-g.x,m=i.top+l.scrollTop-c.y-g.y;return{x:d,y:m,width:i.width,height:i.height}}function Ye(e){return te(e).position==="static"}function gt(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return re(e)===n&&(n=n.ownerDocument.body),n}function _t(e,t){const n=Z(e);if(Ue(e))return n;if(!oe(e)){let r=fe(e);for(;r&&!Pe(r);){if(ee(r)&&!Ye(r))return r;r=fe(r)}return n}let o=gt(e,t);for(;o&&so(o)&&Ye(o);)o=gt(o,t);return o&&Pe(o)&&Ye(o)&&!nt(o)?n:o||io(e)||n}const yo=async function(e){const t=this.getOffsetParent||_t,n=this.getDimensions,o=await n(e.floating);return{reference:xo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wo(e){return te(e).direction==="rtl"}const Ro={convertOffsetParentRelativeRectToViewportRelativeRect:uo,getDocumentElement:re,getClippingRect:ho,getOffsetParent:_t,getElementRects:yo,getClientRects:ao,getDimensions:bo,getScale:Re,isElement:ee,isRTL:wo};function Lt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Po(e,t){let n=null,o;const r=re(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:g,top:d,width:m,height:p}=u;if(l||t(),!m||!p)return;const h=ke(d),w=ke(r.clientWidth-(g+m)),P=ke(r.clientHeight-(d+p)),v=ke(g),S={rootMargin:-h+"px "+-w+"px "+-P+"px "+-v+"px",threshold:ge(0,Me(1,c))||1};let E=!0;function O(A){const L=A[0].intersectionRatio;if(L!==c){if(!E)return i();L?i(!1,L):o=setTimeout(()=>{i(!1,1e-7)},1e3)}L===1&&!Lt(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(O,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(O,S)}n.observe(e)}return i(!0),s}function mt(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=rt(e),g=r||s?[...u?Se(u):[],...Se(t)]:[];g.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=u&&l?Po(u,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(v=>{let[R]=v;R&&R.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let h,w=c?be(e):null;c&&P();function P(){const v=be(e);w&&!Lt(w,v)&&n(),w=v,h=requestAnimationFrame(P)}return n(),()=>{var v;g.forEach(R=>{r&&R.removeEventListener("scroll",n),s&&R.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Co=oo,To=ro,vo=to,So=(e,t,n)=>{const o=new Map,r={platform:Ro,...n},s={...r.platform,_c:o};return eo(e,t,{...r,platform:s})};var Ne=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Le(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Le(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Le(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function jt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ht(e,t){const n=jt(e);return Math.round(t*n)/n}function Ge(e){const t=f.useRef(e);return Ne(()=>{t.current=e}),t}function Eo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[g,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=f.useState(o);Le(m,o)||p(o);const[h,w]=f.useState(null),[P,v]=f.useState(null),R=f.useCallback(N=>{N!==A.current&&(A.current=N,w(N))},[]),S=f.useCallback(N=>{N!==L.current&&(L.current=N,v(N))},[]),E=s||h,O=i||P,A=f.useRef(null),L=f.useRef(null),W=f.useRef(g),D=c!=null,j=Ge(c),y=Ge(r),b=Ge(u),k=f.useCallback(()=>{if(!A.current||!L.current)return;const N={placement:t,strategy:n,middleware:m};y.current&&(N.platform=y.current),So(A.current,L.current,N).then(I=>{const B={...I,isPositioned:b.current!==!1};F.current&&!Le(W.current,B)&&(W.current=B,wt.flushSync(()=>{d(B)}))})},[m,t,n,y,b]);Ne(()=>{u===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[u]);const F=f.useRef(!1);Ne(()=>(F.current=!0,()=>{F.current=!1}),[]),Ne(()=>{if(E&&(A.current=E),O&&(L.current=O),E&&O){if(j.current)return j.current(E,O,k);k()}},[E,O,k,j,D]);const q=f.useMemo(()=>({reference:A,floating:L,setReference:R,setFloating:S}),[R,S]),T=f.useMemo(()=>({reference:E,floating:O}),[E,O]),V=f.useMemo(()=>{const N={position:n,left:0,top:0};if(!T.floating)return N;const I=ht(T.floating,g.x),B=ht(T.floating,g.y);return l?{...N,transform:"translate("+I+"px, "+B+"px)",...jt(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:B}},[n,l,T.floating,g.x,g.y]);return f.useMemo(()=>({...g,update:k,refs:q,elements:T,floatingStyles:V}),[g,k,q,T,V])}const bt=(e,t)=>({...Co(e),options:[e,t]}),Oo=(e,t)=>({...To(e),options:[e,t]}),ko=(e,t)=>({...vo(e),options:[e,t]});function No(e){return typeof e=="function"?e():e}const je=f.forwardRef(function(t,n){const{children:o,container:r,disablePortal:s=!1}=t,[i,l]=f.useState(null),c=a.useForkRef(an(o),n);if(ae.useEnhancedEffect(()=>{s||l(No(r)||document.body)},[r,s]),ae.useEnhancedEffect(()=>{if(i&&!s)return a.setRef(n,i),()=>{a.setRef(n,null)}},[n,i,s]),s){if(f.isValidElement(o)){const u={ref:c};return f.cloneElement(o,u)}return _.jsxRuntimeExports.jsx(f.Fragment,{children:o})}return _.jsxRuntimeExports.jsx(f.Fragment,{children:i&&wt.createPortal(o,i)})});process.env.NODE_ENV!=="production"&&(je.propTypes={children:a.PropTypes.node,container:a.PropTypes.oneOfType([Je,a.PropTypes.func]),disablePortal:a.PropTypes.bool});process.env.NODE_ENV!=="production"&&(je.propTypes=cn(je.propTypes));const Ft="Popup";function Vo(e){return a.generateUtilityClass(Ft,e)}a.generateUtilityClasses(Ft,["root","open"]);const Bt=f.createContext(null);process.env.NODE_ENV!=="production"&&(Bt.displayName="TransitionContext");function Ao(e){const[t,n]=f.useState(!0),o=f.useRef(!1),r=f.useRef(0),[s,i]=f.useState(!1),l=f.useRef(e);f.useEffect(()=>{!e&&r.current>0&&l.current!==e&&(o.current=!0,n(!1)),l.current=e},[e]);const c=f.useCallback(()=>{o.current=!1,n(!0)},[]),u=f.useCallback(()=>(r.current+=1,i(!0),()=>{r.current-=1,r.current===0&&i(!1)}),[]);let g;return s?e?g=!1:g=!o.current&&t:g=!e,{contextValue:f.useMemo(()=>({requestedEnter:e,onExited:c,registerTransition:u,hasExited:g}),[c,e,u,g]),hasExited:g}}const $t=f.createContext(null);process.env.NODE_ENV!=="production"&&($t.displayName="PopupContext");function Mo(e){const{open:t}=e,n={root:["root",t&&"open"]};return a.composeClasses(n,a.useClassNamesOverride(Vo))}function Do(e){return typeof e=="function"?e():e}const Ut=f.forwardRef(function(t,n){const{anchor:o,children:r,container:s,disablePortal:i=!1,keepMounted:l=!1,middleware:c,offset:u=0,open:g=!1,placement:d="bottom",slotProps:m={},slots:p={},strategy:h="absolute",...w}=t,{refs:P,elements:v,floatingStyles:R,update:S,placement:E}=Eo({elements:{reference:Do(o)},open:g,middleware:c??[bt(u??0),ko(),Oo()],placement:d,strategy:h,whileElementsMounted:l?void 0:mt}),O=a.useForkRef(P.setFloating,n);ae.useEnhancedEffect(()=>{if(l&&g&&v.reference&&v.floating)return mt(v.reference,v.floating,S)},[l,g,v,S]);const A={...t,disablePortal:i,keepMounted:l,offset:bt,open:g,placement:d,finalPlacement:E,strategy:h},{contextValue:L,hasExited:W}=Ao(g),D=l&&W?"hidden":void 0,j=Mo(A),y=(p==null?void 0:p.root)??"div",b=a.useSlotProps({elementType:y,externalSlotProps:m.root,externalForwardedProps:w,ownerState:A,className:j.root,additionalProps:{ref:O,role:"tooltip",style:{...R,visibility:D}}}),k=f.useMemo(()=>({placement:E}),[E]);return l||!W?_.jsxRuntimeExports.jsx(je,{disablePortal:i,container:s,children:_.jsxRuntimeExports.jsx($t.Provider,{value:k,children:_.jsxRuntimeExports.jsx(Bt.Provider,{value:L,children:_.jsxRuntimeExports.jsx(y,{...b,children:r})})})}):null});process.env.NODE_ENV!=="production"&&(Ut.propTypes={anchor:a.PropTypes.oneOfType([Je,a.PropTypes.object,a.PropTypes.func]),children:a.PropTypes.oneOfType([a.PropTypes.node,a.PropTypes.func]),container:a.PropTypes.oneOfType([Je,a.PropTypes.func]),disablePortal:a.PropTypes.bool,keepMounted:a.PropTypes.bool,middleware:a.PropTypes.arrayOf(a.PropTypes.oneOfType([a.PropTypes.oneOf([!1]),a.PropTypes.shape({fn:a.PropTypes.func.isRequired,name:a.PropTypes.string.isRequired,options:a.PropTypes.any})])),offset:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.number,a.PropTypes.shape({alignmentAxis:a.PropTypes.number,crossAxis:a.PropTypes.number,mainAxis:a.PropTypes.number})]),open:a.PropTypes.bool,placement:a.PropTypes.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),slotProps:a.PropTypes.shape({root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),slots:a.PropTypes.shape({root:a.PropTypes.elementType}),strategy:a.PropTypes.oneOf(["absolute","fixed"])});const Wt="Select";function Io(e){return a.generateUtilityClass(Wt,e)}a.generateUtilityClasses(Wt,["root","button","listbox","popup","active","expanded","disabled","focusVisible"]);var xt;function _o(e){return Array.isArray(e)?_.jsxRuntimeExports.jsx(f.Fragment,{children:e.map(t=>t.label).join(", ")}):(e==null?void 0:e.label)??null}function Lo(e){const{active:t,disabled:n,open:o,focusVisible:r}=e,s={root:["root",n&&"disabled",r&&"focusVisible",t&&"active",o&&"expanded"],listbox:["listbox",n&&"disabled"],popup:["popup"]};return a.composeClasses(s,a.useClassNamesOverride(Io))}const zt=f.forwardRef(function(t,n){const{areOptionsEqual:o,autoComplete:r,autoFocus:s,children:i,defaultValue:l,defaultListboxOpen:c=!1,disabled:u,getSerializedValue:g,listboxId:d,listboxOpen:m,multiple:p=!1,name:h,required:w=!1,onChange:P,onListboxOpenChange:v,getOptionAsString:R=vt,renderValue:S,placeholder:E,slotProps:O={},slots:A={},value:L,...W}=t,D=S??_o,[j,y]=f.useState(!1),b=f.useRef(null),k=f.useRef(null),F=A.root??"button",q=A.listbox??"ul",T=A.popup??"div",V=f.useCallback(pe=>{y(pe!=null)},[]),N=a.useForkRef(n,b,V);f.useEffect(()=>{s&&b.current.focus()},[s]);const{buttonActive:I,buttonFocusVisible:B,contextValue:H,disabled:G,getButtonProps:se,getListboxProps:Te,getHiddenInputProps:xe,getOptionMetadata:ye,value:$,open:M}=zn({name:h,required:w,getSerializedValue:g,areOptionsEqual:o,buttonRef:N,defaultOpen:c,defaultValue:l,disabled:u,listboxId:d,multiple:p,open:m,onChange:P,onOpenChange:v,getOptionAsString:R,value:L,componentName:"Select"}),U={...t,active:I,defaultListboxOpen:c,disabled:G,focusVisible:B,open:M,multiple:p,renderValue:D,value:$},Y=Lo(U),ie=a.useSlotProps({elementType:F,getSlotProps:se,externalSlotProps:O.root,externalForwardedProps:W,ownerState:U,className:Y.root}),le=a.useSlotProps({elementType:q,getSlotProps:Te,externalSlotProps:O.listbox,additionalProps:{ref:k},ownerState:U,className:Y.listbox}),de=a.useSlotProps({elementType:T,externalSlotProps:O.popup,additionalProps:{anchor:b.current,keepMounted:!0,open:M,placement:"bottom-start",role:void 0},ownerState:U,className:Y.popup});let ce;return p?ce=$.map(pe=>ye(pe)).filter(pe=>pe!==void 0):ce=ye($)??null,_.jsxRuntimeExports.jsxs(f.Fragment,{children:[_.jsxRuntimeExports.jsx(F,{...ie,children:D(ce)??E??(xt||(xt=_.jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})))}),j&&_.jsxRuntimeExports.jsx(Ut,{slots:{root:T},...de,children:_.jsxRuntimeExports.jsx(q,{...le,children:_.jsxRuntimeExports.jsx(Kn,{value:H,children:i})})}),_.jsxRuntimeExports.jsx("input",{...xe(),autoComplete:r})]})});process.env.NODE_ENV!=="production"&&(zt.propTypes={areOptionsEqual:a.PropTypes.func,autoComplete:a.PropTypes.string,autoFocus:a.PropTypes.bool,children:a.PropTypes.node,className:a.PropTypes.string,defaultListboxOpen:a.PropTypes.bool,defaultValue:a.PropTypes.any,disabled:a.PropTypes.bool,getOptionAsString:a.PropTypes.func,getSerializedValue:a.PropTypes.func,listboxId:a.PropTypes.string,listboxOpen:a.PropTypes.bool,multiple:a.PropTypes.bool,name:a.PropTypes.string,onChange:a.PropTypes.func,onListboxOpenChange:a.PropTypes.func,placeholder:a.PropTypes.node,renderValue:a.PropTypes.func,required:a.PropTypes.bool,slotProps:a.PropTypes.shape({listbox:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object]),popup:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object]),root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),slots:a.PropTypes.shape({listbox:a.PropTypes.elementType,popup:a.PropTypes.elementType,root:a.PropTypes.elementType}),value:a.PropTypes.any});const jo="open",Fo="closed",Bo="disabled",$o="gradientMove",Uo="fadeInKeyframe",Wo={"prokodo-Select":"prokodo-Select","prokodo-Select__field":"prokodo-Select__field","prokodo-Select__field--expanded":"prokodo-Select__field--expanded","prokodo-Select__button":"prokodo-Select__button","prokodo-Select__button__inner":"prokodo-Select__button__inner","prokodo-Select__button--expanded":"prokodo-Select__button--expanded","prokodo-Select__listbox":"prokodo-Select__listbox",open:jo,"fade-in":"fade-in",closed:Fo,"fade-out":"fade-out","placement-top":"placement-top","placement-bottom":"placement-bottom","prokodo-Select__item":"prokodo-Select__item",disabled:Bo,"prokodo-Select__item--selected":"prokodo-Select__item--selected","base-Option-highlighted":"base-Option-highlighted","base--selected":"base--selected","prokodo-Select__item--disabled":"prokodo-Select__item--disabled","prokodo-Select__popup":"prokodo-Select__popup","prokodo-Select__checkbox":"prokodo-Select__checkbox","prokodo-Select__checkbox--checked":"prokodo-Select__checkbox--checked",gradientMove:$o,fadeInKeyframe:Uo},Q=on.create(Wo,"Select"),Kt=ue.memo(({id:e,iconVisible:t,required:n,multiple:o,value:r,placeholder:s,color:i="primary",label:l,labelProps:c={},hideLabel:u,className:g,classNameSelect:d,items:m,slotProps:p,errorText:h,helperText:w,onChange:P,...v})=>{const[R,S]=ue.useState(r??o?[]:"default");ue.useEffect(()=>{r!==void 0&&S(r)},[r,R]);const E=ue.useCallback((T,V)=>{V!==null&&(S(V),P==null||P(T,V))},[P]),O=`${e}-label`,A=`${e}-error`,L=`${e}-helper`,[W,D]=ue.useState(!1);if(Array.isArray(m)?m.length===0:Object.keys(m).length===0)return null;const j={expanded:W},y=s??"-- Please choose --",b=we.isString(h),k=n===!0,F=o===!0,q=we.isString(w);return _.jsxRuntimeExports.jsxs("div",{className:Q(void 0,void 0,g),children:[(u===void 0||u===!1)&&_.jsxRuntimeExports.jsx(rn.Label,{...c,error:b,htmlFor:O,label:l,required:n}),_.jsxRuntimeExports.jsx("div",{className:Q("field",{...j,[i]:!!i}),children:_.jsxRuntimeExports.jsxs(zt,{...v,"aria-invalid":b,"aria-labelledby":O,"aria-required":n?"true":void 0,className:Q("select",void 0,d),id:e,multiple:o,required:n,slots:{root:"button",listbox:"ul",popup:"div"},value:R,"aria-describedby":b?A:q?L:void 0,renderValue:T=>{var N,I,B,H;if(T===null&&(k||F)||Array.isArray(T)&&T.length===0&&(k||F))return _.jsxRuntimeExports.jsx("span",{className:Q("button__inner",{"is-placeholder":!0}),children:y});if(Array.isArray(T)){const G=m==null?void 0:m.find(se=>se.value===r);return _.jsxRuntimeExports.jsxs("span",{className:Q("button__inner",j),children:[we.isTrue(t)&&!we.isNull((N=G==null?void 0:G.icon)==null?void 0:N.call(G))&&((I=G==null?void 0:G.icon)==null?void 0:I.call(G)),T.map(se=>se.label).join(", ")]})}const V=m==null?void 0:m.find(G=>G.value===(T==null?void 0:T.value));return _.jsxRuntimeExports.jsxs("span",{className:Q("button__inner",j),children:[we.isTrue(t)&&!we.isNull((B=V==null?void 0:V.icon)==null?void 0:B.call(V))&&((H=V==null?void 0:V.icon)==null?void 0:H.call(V)),T==null?void 0:T.label]})},slotProps:{...p,root:{...p==null?void 0:p.root,className:Q("button",j),role:"button","aria-haspopup":"listbox","aria-expanded":W?"true":"false"},listbox:{...p==null?void 0:p.listbox,className:Q("listbox"),role:"listbox"},popup:{...p==null?void 0:p.popup,disablePortal:!0,className:Q("popup",{"is-expanded":W})}},onChange:E,onListboxOpenChange:T=>D(T),children:[!k&&!F&&_.jsxRuntimeExports.jsx(Qe,{"aria-label":y.toString(),"aria-selected":R==="default"?"true":"false",value:"default",className:Q("item",{selected:R==="default"}),children:y}),m.map(T=>{const{icon:V,...N}=T,B=((T==null?void 0:T.value)===R||(R==null?void 0:R.includes(T==null?void 0:T.value)))===!0;return _.jsxRuntimeExports.jsxs(Qe,{className:Q("item",{selected:B&&!F},T==null?void 0:T.className),...N,"aria-label":T==null?void 0:T.label,"aria-selected":B?"true":"false",children:[F&&_.jsxRuntimeExports.jsx("input",{"aria-hidden":"true",defaultChecked:B,type:"checkbox",className:Q("checkbox",{checked:B})}),V&&V(),T==null?void 0:T.label]},`${O}-item-${T==null?void 0:T.value}`)})]})}),(b||q)&&_.jsxRuntimeExports.jsx("div",{"aria-live":b?"assertive":"polite",className:Q("helperText",{"is-error":b}),id:b?A:L,role:b?"alert":void 0,children:_.jsxRuntimeExports.jsx("span",{className:Q("helperText__content"),children:h??w})})]})});Kt.displayName="Select";exports.Select=Kt;
@@ -0,0 +1 @@
1
+ "use strict";const k=require("./jsx-runtime-CITbqOLs.js"),l=require("./bem-DC5wv0dD.js"),s="gradientMove",a="fadeInKeyframe",d={"prokodo-Skeleton":"prokodo-Skeleton","prokodo-Skeleton--text":"prokodo-Skeleton--text","prokodo-Skeleton--rectangular":"prokodo-Skeleton--rectangular","prokodo-Skeleton--circular":"prokodo-Skeleton--circular","prokodo-Skeleton--pulse":"prokodo-Skeleton--pulse","skeleton-pulse":"skeleton-pulse","prokodo-Skeleton--wave":"prokodo-Skeleton--wave","skeleton-wave":"skeleton-wave","prokodo-Skeleton--none":"prokodo-Skeleton--none",gradientMove:s,fadeInKeyframe:a},p=l.create(d,"Skeleton"),c=({width:e="100%",height:o="16px",variant:t="rectangular",animation:n="wave",className:r})=>k.jsxRuntimeExports.jsx("div",{className:p(void 0,{[t]:!0,[n]:!0},r),style:{width:e,height:o}});exports.Skeleton=c;
@@ -0,0 +1,40 @@
1
+ import { j as k } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { c as l } from "./bem-CYKrPjje.js";
3
+ const a = "gradientMove", s = "fadeInKeyframe", p = {
4
+ "prokodo-Skeleton": "prokodo-Skeleton",
5
+ "prokodo-Skeleton--text": "prokodo-Skeleton--text",
6
+ "prokodo-Skeleton--rectangular": "prokodo-Skeleton--rectangular",
7
+ "prokodo-Skeleton--circular": "prokodo-Skeleton--circular",
8
+ "prokodo-Skeleton--pulse": "prokodo-Skeleton--pulse",
9
+ "skeleton-pulse": "skeleton-pulse",
10
+ "prokodo-Skeleton--wave": "prokodo-Skeleton--wave",
11
+ "skeleton-wave": "skeleton-wave",
12
+ "prokodo-Skeleton--none": "prokodo-Skeleton--none",
13
+ gradientMove: a,
14
+ fadeInKeyframe: s
15
+ }, d = l(p, "Skeleton"), u = ({
16
+ width: e = "100%",
17
+ height: o = "16px",
18
+ variant: t = "rectangular",
19
+ animation: n = "wave",
20
+ className: r
21
+ }) => /* @__PURE__ */ k.jsx(
22
+ "div",
23
+ {
24
+ className: d(
25
+ void 0,
26
+ {
27
+ [t]: !0,
28
+ [n]: !0
29
+ },
30
+ r
31
+ ),
32
+ style: {
33
+ width: e,
34
+ height: o
35
+ }
36
+ }
37
+ );
38
+ export {
39
+ u as S
40
+ };