reshaped 1.0.1 → 2.1.0

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 (727) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE.md +37 -0
  3. package/bin/clean.sh +2 -0
  4. package/bin/cli.js +78 -0
  5. package/bin/copy-release.sh +8 -0
  6. package/bundle.css +1 -0
  7. package/bundle.d.ts +118 -0
  8. package/bundle.js +27 -0
  9. package/cli/theming/definitions/base.d.ts +3 -0
  10. package/cli/theming/definitions/base.js +11 -0
  11. package/cli/theming/definitions/figma.d.ts +3 -0
  12. package/cli/theming/definitions/figma.js +180 -0
  13. package/cli/theming/definitions/minimal.d.ts +3 -0
  14. package/cli/theming/definitions/minimal.js +80 -0
  15. package/cli/theming/definitions/reshaped.d.ts +3 -0
  16. package/cli/theming/definitions/reshaped.js +188 -0
  17. package/cli/theming/definitions/slate.d.ts +3 -0
  18. package/cli/theming/definitions/slate.js +80 -0
  19. package/cli/theming/index.d.ts +4 -0
  20. package/cli/theming/index.js +140 -0
  21. package/cli/theming/reshaped.config.d.ts +3 -0
  22. package/cli/theming/reshaped.config.js +25 -0
  23. package/cli/theming/tokens/color/color.transforms.d.ts +4 -0
  24. package/cli/theming/tokens/color/color.transforms.js +20 -0
  25. package/cli/theming/tokens/color/color.types.d.ts +7 -0
  26. package/cli/theming/tokens/color/color.types.js +2 -0
  27. package/cli/theming/tokens/duration/duration.transforms.d.ts +4 -0
  28. package/cli/theming/tokens/duration/duration.transforms.js +11 -0
  29. package/cli/theming/tokens/duration/duration.types.d.ts +4 -0
  30. package/cli/theming/tokens/duration/duration.types.js +2 -0
  31. package/cli/theming/tokens/easing/easing.transforms.d.ts +4 -0
  32. package/cli/theming/tokens/easing/easing.transforms.js +11 -0
  33. package/cli/theming/tokens/easing/easing.types.d.ts +7 -0
  34. package/cli/theming/tokens/easing/easing.types.js +2 -0
  35. package/cli/theming/tokens/font/font.transforms.d.ts +4 -0
  36. package/cli/theming/tokens/font/font.transforms.js +36 -0
  37. package/cli/theming/tokens/font/font.types.d.ts +10 -0
  38. package/cli/theming/tokens/font/font.types.js +2 -0
  39. package/cli/theming/tokens/fontFamily/fontFamily.transforms.d.ts +4 -0
  40. package/cli/theming/tokens/fontFamily/fontFamily.transforms.js +11 -0
  41. package/cli/theming/tokens/fontFamily/fontFamily.types.d.ts +4 -0
  42. package/cli/theming/tokens/fontFamily/fontFamily.types.js +2 -0
  43. package/cli/theming/tokens/fontWeight/fontWeight.transforms.d.ts +4 -0
  44. package/cli/theming/tokens/fontWeight/fontWeight.transforms.js +11 -0
  45. package/cli/theming/tokens/fontWeight/fontWeight.types.d.ts +4 -0
  46. package/cli/theming/tokens/fontWeight/fontWeight.types.js +2 -0
  47. package/cli/theming/tokens/shadow/shadow.transforms.d.ts +4 -0
  48. package/cli/theming/tokens/shadow/shadow.transforms.js +20 -0
  49. package/cli/theming/tokens/shadow/shadow.types.d.ts +13 -0
  50. package/cli/theming/tokens/shadow/shadow.types.js +2 -0
  51. package/cli/theming/tokens/transforms.d.ts +11 -0
  52. package/cli/theming/tokens/transforms.js +26 -0
  53. package/cli/theming/tokens/types.d.ts +52 -0
  54. package/cli/theming/tokens/types.js +2 -0
  55. package/cli/theming/tokens/unit/unit.transforms.d.ts +4 -0
  56. package/cli/theming/tokens/unit/unit.transforms.js +11 -0
  57. package/cli/theming/tokens/unit/unit.types.d.ts +7 -0
  58. package/cli/theming/tokens/unit/unit.types.js +2 -0
  59. package/cli/theming/tokens/viewport/viewport.transforms.d.ts +4 -0
  60. package/cli/theming/tokens/viewport/viewport.transforms.js +18 -0
  61. package/cli/theming/tokens/viewport/viewport.types.d.ts +5 -0
  62. package/cli/theming/tokens/viewport/viewport.types.js +2 -0
  63. package/cli/theming/types.d.ts +14 -0
  64. package/cli/theming/types.js +2 -0
  65. package/cli/theming/utilities/css.d.ts +6 -0
  66. package/cli/theming/utilities/css.js +50 -0
  67. package/cli/theming/utilities/mergeDeep.d.ts +5 -0
  68. package/cli/theming/utilities/mergeDeep.js +24 -0
  69. package/cli/theming/utilities/mergeDefinitions.d.ts +5 -0
  70. package/cli/theming/utilities/mergeDefinitions.js +17 -0
  71. package/cli/theming/utilities/resolveTokenReference.d.ts +3 -0
  72. package/cli/theming/utilities/resolveTokenReference.js +16 -0
  73. package/cli/utilities/color.d.ts +15 -0
  74. package/cli/utilities/color.js +39 -0
  75. package/cli/utilities/string.d.ts +2 -0
  76. package/cli/utilities/string.js +11 -0
  77. package/cli/utilities/tests/color.test.d.ts +1 -0
  78. package/cli/utilities/tests/color.test.js +63 -0
  79. package/components/Accordion/Accordion.context.d.ts +4 -0
  80. package/components/Accordion/Accordion.context.js +9 -0
  81. package/components/Accordion/Accordion.d.ts +8 -0
  82. package/components/Accordion/Accordion.js +14 -0
  83. package/components/Accordion/Accordion.module.css +1 -0
  84. package/components/Accordion/Accordion.types.d.ts +39 -0
  85. package/components/Accordion/Accordion.types.js +1 -0
  86. package/components/Accordion/AccordionContent.d.ts +4 -0
  87. package/components/Accordion/AccordionContent.js +43 -0
  88. package/components/Accordion/AccordionControlled.d.ts +4 -0
  89. package/components/Accordion/AccordionControlled.js +23 -0
  90. package/components/Accordion/AccordionTrigger.d.ts +4 -0
  91. package/components/Accordion/AccordionTrigger.js +26 -0
  92. package/components/Accordion/AccordionUncontrolled.d.ts +4 -0
  93. package/components/Accordion/AccordionUncontrolled.js +24 -0
  94. package/components/Accordion/index.d.ts +2 -0
  95. package/components/Accordion/index.js +1 -0
  96. package/components/Accordion/tests/Accordion.stories.d.ts +9 -0
  97. package/components/Accordion/tests/Accordion.stories.js +119 -0
  98. package/components/ActionBar/ActionBar.d.ts +4 -0
  99. package/components/ActionBar/ActionBar.js +10 -0
  100. package/components/ActionBar/ActionBar.module.css +1 -0
  101. package/components/ActionBar/ActionBar.types.d.ts +10 -0
  102. package/components/ActionBar/ActionBar.types.js +1 -0
  103. package/components/ActionBar/index.d.ts +2 -0
  104. package/components/ActionBar/index.js +1 -0
  105. package/components/ActionBar/tests/ActionBar.stories.d.ts +8 -0
  106. package/components/ActionBar/tests/ActionBar.stories.js +43 -0
  107. package/components/Actionable/Actionable.d.ts +4 -0
  108. package/components/Actionable/Actionable.js +54 -0
  109. package/components/Actionable/Actionable.module.css +1 -0
  110. package/components/Actionable/Actionable.types.d.ts +18 -0
  111. package/components/Actionable/Actionable.types.js +1 -0
  112. package/components/Actionable/index.d.ts +2 -0
  113. package/components/Actionable/index.js +1 -0
  114. package/components/Actionable/tests/Actionable.stories.d.ts +9 -0
  115. package/components/Actionable/tests/Actionable.stories.js +56 -0
  116. package/components/Alert/Alert.d.ts +4 -0
  117. package/components/Alert/Alert.js +31 -0
  118. package/components/Alert/Alert.types.d.ts +14 -0
  119. package/components/Alert/Alert.types.js +1 -0
  120. package/components/Alert/index.d.ts +2 -0
  121. package/components/Alert/index.js +1 -0
  122. package/components/Alert/tests/Alert.stories.d.ts +8 -0
  123. package/components/Alert/tests/Alert.stories.js +78 -0
  124. package/components/Autocomplete/Autocomplete.d.ts +7 -0
  125. package/components/Autocomplete/Autocomplete.js +69 -0
  126. package/components/Autocomplete/Autocomplete.types.d.ts +17 -0
  127. package/components/Autocomplete/Autocomplete.types.js +1 -0
  128. package/components/Autocomplete/index.d.ts +2 -0
  129. package/components/Autocomplete/index.js +1 -0
  130. package/components/Autocomplete/tests/Autocomplete.stories.d.ts +6 -0
  131. package/components/Autocomplete/tests/Autocomplete.stories.js +21 -0
  132. package/components/Avatar/Avatar.d.ts +4 -0
  133. package/components/Avatar/Avatar.js +29 -0
  134. package/components/Avatar/Avatar.module.css +1 -0
  135. package/components/Avatar/Avatar.types.d.ts +30 -0
  136. package/components/Avatar/Avatar.types.js +1 -0
  137. package/components/Avatar/index.d.ts +2 -0
  138. package/components/Avatar/index.js +1 -0
  139. package/components/Avatar/tests/Avatar.stories.d.ts +9 -0
  140. package/components/Avatar/tests/Avatar.stories.js +83 -0
  141. package/components/Badge/Badge.d.ts +7 -0
  142. package/components/Badge/Badge.js +24 -0
  143. package/components/Badge/Badge.module.css +1 -0
  144. package/components/Badge/Badge.types.d.ts +39 -0
  145. package/components/Badge/Badge.types.js +1 -0
  146. package/components/Badge/BadgeContainer.d.ts +4 -0
  147. package/components/Badge/BadgeContainer.js +9 -0
  148. package/components/Badge/index.d.ts +2 -0
  149. package/components/Badge/index.js +1 -0
  150. package/components/Badge/tests/Badge.stories.d.ts +13 -0
  151. package/components/Badge/tests/Badge.stories.js +222 -0
  152. package/components/Breadcrumbs/Breadcrumbs.d.ts +7 -0
  153. package/components/Breadcrumbs/Breadcrumbs.js +54 -0
  154. package/components/Breadcrumbs/Breadcrumbs.types.d.ts +13 -0
  155. package/components/Breadcrumbs/Breadcrumbs.types.js +1 -0
  156. package/components/Breadcrumbs/index.d.ts +2 -0
  157. package/components/Breadcrumbs/index.js +1 -0
  158. package/components/Breadcrumbs/tests/Breadcrumbs.stories.d.ts +10 -0
  159. package/components/Breadcrumbs/tests/Breadcrumbs.stories.js +95 -0
  160. package/components/Button/Button.d.ts +3 -0
  161. package/components/Button/Button.js +37 -0
  162. package/components/Button/Button.module.css +1 -0
  163. package/components/Button/Button.types.d.ts +31 -0
  164. package/components/Button/Button.types.js +1 -0
  165. package/components/Button/ButtonAligner.d.ts +4 -0
  166. package/components/Button/ButtonAligner.js +13 -0
  167. package/components/Button/index.d.ts +2 -0
  168. package/components/Button/index.js +1 -0
  169. package/components/Button/tests/Button.stories.d.ts +15 -0
  170. package/components/Button/tests/Button.stories.js +561 -0
  171. package/components/Card/Card.d.ts +17 -0
  172. package/components/Card/Card.js +31 -0
  173. package/components/Card/Card.module.css +1 -0
  174. package/components/Card/Card.types.d.ts +16 -0
  175. package/components/Card/Card.types.js +1 -0
  176. package/components/Card/index.d.ts +2 -0
  177. package/components/Card/index.js +1 -0
  178. package/components/Card/tests/Card.stories.d.ts +12 -0
  179. package/components/Card/tests/Card.stories.js +83 -0
  180. package/components/Carousel/Carousel.d.ts +4 -0
  181. package/components/Carousel/Carousel.js +67 -0
  182. package/components/Carousel/Carousel.module.css +1 -0
  183. package/components/Carousel/Carousel.types.d.ts +28 -0
  184. package/components/Carousel/Carousel.types.js +5 -0
  185. package/components/Carousel/CarouselControl.d.ts +4 -0
  186. package/components/Carousel/CarouselControl.js +42 -0
  187. package/components/Carousel/index.d.ts +2 -0
  188. package/components/Carousel/index.js +1 -0
  189. package/components/Carousel/tests/Carousel.stories.d.ts +9 -0
  190. package/components/Carousel/tests/Carousel.stories.js +119 -0
  191. package/components/Checkbox/Checkbox.d.ts +4 -0
  192. package/components/Checkbox/Checkbox.js +44 -0
  193. package/components/Checkbox/Checkbox.module.css +1 -0
  194. package/components/Checkbox/Checkbox.types.d.ts +26 -0
  195. package/components/Checkbox/Checkbox.types.js +1 -0
  196. package/components/Checkbox/index.d.ts +2 -0
  197. package/components/Checkbox/index.js +1 -0
  198. package/components/Checkbox/tests/Checkbox.stories.d.ts +8 -0
  199. package/components/Checkbox/tests/Checkbox.stories.js +53 -0
  200. package/components/CheckboxGroup/CheckboxGroup.context.d.ts +5 -0
  201. package/components/CheckboxGroup/CheckboxGroup.context.js +5 -0
  202. package/components/CheckboxGroup/CheckboxGroup.d.ts +4 -0
  203. package/components/CheckboxGroup/CheckboxGroup.js +10 -0
  204. package/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
  205. package/components/CheckboxGroup/CheckboxGroup.types.js +1 -0
  206. package/components/CheckboxGroup/CheckboxGroupControlled.d.ts +4 -0
  207. package/components/CheckboxGroup/CheckboxGroupControlled.js +22 -0
  208. package/components/CheckboxGroup/CheckboxGroupUncontrolled.d.ts +4 -0
  209. package/components/CheckboxGroup/CheckboxGroupUncontrolled.js +16 -0
  210. package/components/CheckboxGroup/index.d.ts +3 -0
  211. package/components/CheckboxGroup/index.js +2 -0
  212. package/components/CheckboxGroup/tests/CheckboxGroup.stories.d.ts +7 -0
  213. package/components/CheckboxGroup/tests/CheckboxGroup.stories.js +44 -0
  214. package/components/Container/Container.d.ts +4 -0
  215. package/components/Container/Container.js +10 -0
  216. package/components/Container/Container.module.css +1 -0
  217. package/components/Container/Container.types.d.ts +9 -0
  218. package/components/Container/Container.types.js +1 -0
  219. package/components/Container/index.d.ts +2 -0
  220. package/components/Container/index.js +1 -0
  221. package/components/Container/tests/Container.stories.d.ts +7 -0
  222. package/components/Container/tests/Container.stories.js +28 -0
  223. package/components/Dismissible/Dismissible.d.ts +4 -0
  224. package/components/Dismissible/Dismissible.js +15 -0
  225. package/components/Dismissible/Dismissible.module.css +1 -0
  226. package/components/Dismissible/Dismissible.types.d.ts +20 -0
  227. package/components/Dismissible/Dismissible.types.js +1 -0
  228. package/components/Dismissible/index.d.ts +2 -0
  229. package/components/Dismissible/index.js +1 -0
  230. package/components/Dismissible/tests/Dismissible.stories.d.ts +8 -0
  231. package/components/Dismissible/tests/Dismissible.stories.js +44 -0
  232. package/components/Divider/Divider.d.ts +4 -0
  233. package/components/Divider/Divider.js +14 -0
  234. package/components/Divider/Divider.module.css +1 -0
  235. package/components/Divider/Divider.types.d.ts +7 -0
  236. package/components/Divider/Divider.types.js +1 -0
  237. package/components/Divider/index.d.ts +2 -0
  238. package/components/Divider/index.js +1 -0
  239. package/components/Divider/tests/Divider.stories.d.ts +7 -0
  240. package/components/Divider/tests/Divider.stories.js +36 -0
  241. package/components/DropdownMenu/DropdownMenu.d.ts +13 -0
  242. package/components/DropdownMenu/DropdownMenu.js +90 -0
  243. package/components/DropdownMenu/DropdownMenu.module.css +1 -0
  244. package/components/DropdownMenu/DropdownMenu.types.d.ts +16 -0
  245. package/components/DropdownMenu/DropdownMenu.types.js +1 -0
  246. package/components/DropdownMenu/index.d.ts +2 -0
  247. package/components/DropdownMenu/index.js +1 -0
  248. package/components/DropdownMenu/tests/DropdownMenu.stories.d.ts +11 -0
  249. package/components/DropdownMenu/tests/DropdownMenu.stories.js +138 -0
  250. package/components/FormControl/FormControl.context.d.ts +281 -0
  251. package/components/FormControl/FormControl.context.js +18 -0
  252. package/components/FormControl/FormControl.d.ts +9 -0
  253. package/components/FormControl/FormControl.js +68 -0
  254. package/components/FormControl/FormControl.module.css +1 -0
  255. package/components/FormControl/FormControl.types.d.ts +33 -0
  256. package/components/FormControl/FormControl.types.js +1 -0
  257. package/components/FormControl/index.d.ts +3 -0
  258. package/components/FormControl/index.js +2 -0
  259. package/components/FormControl/tests/FormControl.stories.d.ts +10 -0
  260. package/components/FormControl/tests/FormControl.stories.js +78 -0
  261. package/components/Hidden/Hidden.d.ts +4 -0
  262. package/components/Hidden/Hidden.js +11 -0
  263. package/components/Hidden/Hidden.module.css +1 -0
  264. package/components/Hidden/Hidden.types.d.ts +9 -0
  265. package/components/Hidden/Hidden.types.js +1 -0
  266. package/components/Hidden/index.d.ts +2 -0
  267. package/components/Hidden/index.js +1 -0
  268. package/components/Hidden/tests/Hidden.stories.d.ts +7 -0
  269. package/components/Hidden/tests/Hidden.stories.js +39 -0
  270. package/components/HiddenVisually/HiddenVisually.d.ts +4 -0
  271. package/components/HiddenVisually/HiddenVisually.js +7 -0
  272. package/components/HiddenVisually/HiddenVisually.module.css +1 -0
  273. package/components/HiddenVisually/HiddenVisually.types.d.ts +4 -0
  274. package/components/HiddenVisually/HiddenVisually.types.js +1 -0
  275. package/components/HiddenVisually/index.d.ts +2 -0
  276. package/components/HiddenVisually/index.js +1 -0
  277. package/components/HiddenVisually/tests/HiddenVisually.stories.d.ts +6 -0
  278. package/components/HiddenVisually/tests/HiddenVisually.stories.js +9 -0
  279. package/components/Hotkey/Hotkey.d.ts +4 -0
  280. package/components/Hotkey/Hotkey.js +10 -0
  281. package/components/Hotkey/Hotkey.module.css +1 -0
  282. package/components/Hotkey/Hotkey.types.d.ts +8 -0
  283. package/components/Hotkey/Hotkey.types.js +1 -0
  284. package/components/Hotkey/index.d.ts +2 -0
  285. package/components/Hotkey/index.js +1 -0
  286. package/components/Hotkey/tests/Hotkey.stories.d.ts +6 -0
  287. package/components/Hotkey/tests/Hotkey.stories.js +26 -0
  288. package/components/Icon/Icon.d.ts +4 -0
  289. package/components/Icon/Icon.js +15 -0
  290. package/components/Icon/Icon.module.css +1 -0
  291. package/components/Icon/Icon.types.d.ts +10 -0
  292. package/components/Icon/Icon.types.js +1 -0
  293. package/components/Icon/index.d.ts +2 -0
  294. package/components/Icon/index.js +1 -0
  295. package/components/Icon/tests/Icon.stories.d.ts +8 -0
  296. package/components/Icon/tests/Icon.stories.js +69 -0
  297. package/components/Image/Image.d.ts +4 -0
  298. package/components/Image/Image.js +37 -0
  299. package/components/Image/Image.module.css +1 -0
  300. package/components/Image/Image.types.d.ts +19 -0
  301. package/components/Image/Image.types.js +1 -0
  302. package/components/Image/index.d.ts +2 -0
  303. package/components/Image/index.js +1 -0
  304. package/components/Image/tests/Image.stories.d.ts +10 -0
  305. package/components/Image/tests/Image.stories.js +90 -0
  306. package/components/Link/Link.d.ts +7 -0
  307. package/components/Link/Link.js +13 -0
  308. package/components/Link/Link.module.css +1 -0
  309. package/components/Link/Link.types.d.ts +7 -0
  310. package/components/Link/Link.types.js +1 -0
  311. package/components/Link/index.d.ts +2 -0
  312. package/components/Link/index.js +1 -0
  313. package/components/Link/tests/Link.stories.d.ts +10 -0
  314. package/components/Link/tests/Link.stories.js +62 -0
  315. package/components/Loader/Loader.d.ts +4 -0
  316. package/components/Loader/Loader.js +11 -0
  317. package/components/Loader/Loader.module.css +1 -0
  318. package/components/Loader/Loader.types.d.ts +7 -0
  319. package/components/Loader/Loader.types.js +1 -0
  320. package/components/Loader/index.d.ts +2 -0
  321. package/components/Loader/index.js +1 -0
  322. package/components/Loader/tests/Loader.stories.d.ts +7 -0
  323. package/components/Loader/tests/Loader.stories.js +29 -0
  324. package/components/MenuItem/MenuItem.d.ts +3 -0
  325. package/components/MenuItem/MenuItem.js +22 -0
  326. package/components/MenuItem/MenuItem.module.css +1 -0
  327. package/components/MenuItem/MenuItem.types.d.ts +23 -0
  328. package/components/MenuItem/MenuItem.types.js +1 -0
  329. package/components/MenuItem/MenuItemAligner.d.ts +4 -0
  330. package/components/MenuItem/MenuItemAligner.js +9 -0
  331. package/components/MenuItem/index.d.ts +2 -0
  332. package/components/MenuItem/index.js +1 -0
  333. package/components/MenuItem/tests/MenuItem.stories.d.ts +12 -0
  334. package/components/MenuItem/tests/MenuItem.stories.js +122 -0
  335. package/components/Modal/Modal.d.ts +8 -0
  336. package/components/Modal/Modal.js +56 -0
  337. package/components/Modal/Modal.module.css +1 -0
  338. package/components/Modal/Modal.types.d.ts +26 -0
  339. package/components/Modal/Modal.types.js +1 -0
  340. package/components/Modal/index.d.ts +2 -0
  341. package/components/Modal/index.js +1 -0
  342. package/components/Modal/tests/Modal.stories.d.ts +11 -0
  343. package/components/Modal/tests/Modal.stories.js +145 -0
  344. package/components/Overlay/Overlay.d.ts +4 -0
  345. package/components/Overlay/Overlay.js +110 -0
  346. package/components/Overlay/Overlay.module.css +1 -0
  347. package/components/Overlay/Overlay.types.d.ts +12 -0
  348. package/components/Overlay/Overlay.types.js +1 -0
  349. package/components/Overlay/index.d.ts +2 -0
  350. package/components/Overlay/index.js +1 -0
  351. package/components/Overlay/tests/Overlay.stories.d.ts +6 -0
  352. package/components/Overlay/tests/Overlay.stories.js +27 -0
  353. package/components/Popover/Popover.d.ts +8 -0
  354. package/components/Popover/Popover.js +19 -0
  355. package/components/Popover/Popover.module.css +1 -0
  356. package/components/Popover/Popover.types.d.ts +7 -0
  357. package/components/Popover/Popover.types.js +1 -0
  358. package/components/Popover/index.d.ts +2 -0
  359. package/components/Popover/index.js +1 -0
  360. package/components/Popover/tests/Popover.stories.d.ts +10 -0
  361. package/components/Popover/tests/Popover.stories.js +99 -0
  362. package/components/Progress/Progress.d.ts +4 -0
  363. package/components/Progress/Progress.js +18 -0
  364. package/components/Progress/Progress.module.css +1 -0
  365. package/components/Progress/Progress.types.d.ts +11 -0
  366. package/components/Progress/Progress.types.js +1 -0
  367. package/components/Progress/index.d.ts +2 -0
  368. package/components/Progress/index.js +1 -0
  369. package/components/Progress/tests/Progress.stories.d.ts +9 -0
  370. package/components/Progress/tests/Progress.stories.js +55 -0
  371. package/components/Radio/Radio.d.ts +4 -0
  372. package/components/Radio/Radio.js +35 -0
  373. package/components/Radio/Radio.module.css +1 -0
  374. package/components/Radio/Radio.types.d.ts +25 -0
  375. package/components/Radio/Radio.types.js +1 -0
  376. package/components/Radio/index.d.ts +2 -0
  377. package/components/Radio/index.js +1 -0
  378. package/components/Radio/tests/Radio.stories.d.ts +8 -0
  379. package/components/Radio/tests/Radio.stories.js +42 -0
  380. package/components/RadioGroup/RadioGroup.context.d.ts +5 -0
  381. package/components/RadioGroup/RadioGroup.context.js +5 -0
  382. package/components/RadioGroup/RadioGroup.d.ts +4 -0
  383. package/components/RadioGroup/RadioGroup.js +10 -0
  384. package/components/RadioGroup/RadioGroup.types.d.ts +28 -0
  385. package/components/RadioGroup/RadioGroup.types.js +1 -0
  386. package/components/RadioGroup/RadioGroupControlled.d.ts +4 -0
  387. package/components/RadioGroup/RadioGroupControlled.js +14 -0
  388. package/components/RadioGroup/RadioGroupUncontrolled.d.ts +4 -0
  389. package/components/RadioGroup/RadioGroupUncontrolled.js +16 -0
  390. package/components/RadioGroup/index.d.ts +3 -0
  391. package/components/RadioGroup/index.js +2 -0
  392. package/components/RadioGroup/tests/RadioGroup.stories.d.ts +7 -0
  393. package/components/RadioGroup/tests/RadioGroup.stories.js +44 -0
  394. package/components/Reshaped/Reshaped.css +1 -0
  395. package/components/Reshaped/Reshaped.d.ts +5 -0
  396. package/components/Reshaped/Reshaped.js +26 -0
  397. package/components/Reshaped/Reshaped.module.css +1 -0
  398. package/components/Reshaped/Reshaped.types.d.ts +14 -0
  399. package/components/Reshaped/Reshaped.types.js +1 -0
  400. package/components/Reshaped/index.d.ts +2 -0
  401. package/components/Reshaped/index.js +1 -0
  402. package/components/Scrim/Scrim.d.ts +4 -0
  403. package/components/Scrim/Scrim.js +13 -0
  404. package/components/Scrim/Scrim.module.css +1 -0
  405. package/components/Scrim/Scrim.types.d.ts +11 -0
  406. package/components/Scrim/Scrim.types.js +1 -0
  407. package/components/Scrim/index.d.ts +2 -0
  408. package/components/Scrim/index.js +1 -0
  409. package/components/Scrim/tests/Scrim.stories.d.ts +7 -0
  410. package/components/Scrim/tests/Scrim.stories.js +40 -0
  411. package/components/Select/Select.d.ts +4 -0
  412. package/components/Select/Select.js +59 -0
  413. package/components/Select/Select.module.css +1 -0
  414. package/components/Select/Select.types.d.ts +49 -0
  415. package/components/Select/Select.types.js +1 -0
  416. package/components/Select/index.d.ts +2 -0
  417. package/components/Select/index.js +1 -0
  418. package/components/Select/tests/Select.stories.d.ts +14 -0
  419. package/components/Select/tests/Select.stories.js +165 -0
  420. package/components/Skeleton/Skeleton.d.ts +4 -0
  421. package/components/Skeleton/Skeleton.js +10 -0
  422. package/components/Skeleton/Skeleton.module.css +1 -0
  423. package/components/Skeleton/Skeleton.types.d.ts +6 -0
  424. package/components/Skeleton/Skeleton.types.js +1 -0
  425. package/components/Skeleton/index.d.ts +2 -0
  426. package/components/Skeleton/index.js +1 -0
  427. package/components/Skeleton/tests/Skeleton.stories.d.ts +7 -0
  428. package/components/Skeleton/tests/Skeleton.stories.js +38 -0
  429. package/components/Switch/Switch.d.ts +4 -0
  430. package/components/Switch/Switch.js +31 -0
  431. package/components/Switch/Switch.module.css +1 -0
  432. package/components/Switch/Switch.types.d.ts +26 -0
  433. package/components/Switch/Switch.types.js +1 -0
  434. package/components/Switch/index.d.ts +2 -0
  435. package/components/Switch/index.js +1 -0
  436. package/components/Switch/tests/Switch.stories.d.ts +9 -0
  437. package/components/Switch/tests/Switch.stories.js +53 -0
  438. package/components/Tabs/Tabs.d.ts +16 -0
  439. package/components/Tabs/Tabs.js +16 -0
  440. package/components/Tabs/Tabs.module.css +1 -0
  441. package/components/Tabs/Tabs.types.d.ts +61 -0
  442. package/components/Tabs/Tabs.types.js +1 -0
  443. package/components/Tabs/TabsContext.d.ts +18 -0
  444. package/components/Tabs/TabsContext.js +19 -0
  445. package/components/Tabs/TabsControlled.d.ts +4 -0
  446. package/components/Tabs/TabsControlled.js +16 -0
  447. package/components/Tabs/TabsItem.d.ts +11 -0
  448. package/components/Tabs/TabsItem.js +31 -0
  449. package/components/Tabs/TabsList.d.ts +4 -0
  450. package/components/Tabs/TabsList.js +163 -0
  451. package/components/Tabs/TabsPanel.d.ts +4 -0
  452. package/components/Tabs/TabsPanel.js +13 -0
  453. package/components/Tabs/TabsUncontrolled.d.ts +4 -0
  454. package/components/Tabs/TabsUncontrolled.js +18 -0
  455. package/components/Tabs/index.d.ts +2 -0
  456. package/components/Tabs/index.js +1 -0
  457. package/components/Tabs/tests/Tabs.stories.d.ts +13 -0
  458. package/components/Tabs/tests/Tabs.stories.js +251 -0
  459. package/components/Text/Text.d.ts +4 -0
  460. package/components/Text/Text.js +24 -0
  461. package/components/Text/Text.module.css +1 -0
  462. package/components/Text/Text.types.d.ts +15 -0
  463. package/components/Text/Text.types.js +1 -0
  464. package/components/Text/index.d.ts +2 -0
  465. package/components/Text/index.js +1 -0
  466. package/components/Text/tests/Text.stories.d.ts +11 -0
  467. package/components/Text/tests/Text.stories.js +117 -0
  468. package/components/TextArea/TextArea.d.ts +4 -0
  469. package/components/TextArea/TextArea.js +25 -0
  470. package/components/TextArea/TextArea.module.css +1 -0
  471. package/components/TextArea/TextArea.types.d.ts +28 -0
  472. package/components/TextArea/TextArea.types.js +1 -0
  473. package/components/TextArea/index.d.ts +2 -0
  474. package/components/TextArea/index.js +1 -0
  475. package/components/TextArea/tests/TextArea.stories.d.ts +11 -0
  476. package/components/TextArea/tests/TextArea.stories.js +72 -0
  477. package/components/TextField/TextField.d.ts +4 -0
  478. package/components/TextField/TextField.js +47 -0
  479. package/components/TextField/TextField.module.css +1 -0
  480. package/components/TextField/TextField.types.d.ts +42 -0
  481. package/components/TextField/TextField.types.js +1 -0
  482. package/components/TextField/index.d.ts +2 -0
  483. package/components/TextField/index.js +1 -0
  484. package/components/TextField/tests/TextField.stories.d.ts +14 -0
  485. package/components/TextField/tests/TextField.stories.js +100 -0
  486. package/components/Theme/GlobalColorMode.d.ts +4 -0
  487. package/components/Theme/GlobalColorMode.js +31 -0
  488. package/components/Theme/Theme.context.d.ts +4 -0
  489. package/components/Theme/Theme.context.js +14 -0
  490. package/components/Theme/Theme.d.ts +4 -0
  491. package/components/Theme/Theme.js +39 -0
  492. package/components/Theme/Theme.module.css +1 -0
  493. package/components/Theme/Theme.types.d.ts +24 -0
  494. package/components/Theme/Theme.types.js +1 -0
  495. package/components/Theme/index.d.ts +4 -0
  496. package/components/Theme/index.js +3 -0
  497. package/components/Theme/tests/Theme.stories.d.ts +7 -0
  498. package/components/Theme/tests/Theme.stories.js +40 -0
  499. package/components/Theme/useTheme.d.ts +8 -0
  500. package/components/Theme/useTheme.js +18 -0
  501. package/components/Timeline/Timeline.d.ts +7 -0
  502. package/components/Timeline/Timeline.js +21 -0
  503. package/components/Timeline/Timeline.module.css +1 -0
  504. package/components/Timeline/Timeline.types.d.ts +13 -0
  505. package/components/Timeline/Timeline.types.js +1 -0
  506. package/components/Timeline/index.d.ts +2 -0
  507. package/components/Timeline/index.js +1 -0
  508. package/components/Timeline/tests/Timeline.stories.d.ts +7 -0
  509. package/components/Timeline/tests/Timeline.stories.js +55 -0
  510. package/components/Toast/Toast.constants.d.ts +10 -0
  511. package/components/Toast/Toast.constants.js +20 -0
  512. package/components/Toast/Toast.context.d.ts +4 -0
  513. package/components/Toast/Toast.context.js +5 -0
  514. package/components/Toast/Toast.d.ts +6 -0
  515. package/components/Toast/Toast.js +55 -0
  516. package/components/Toast/Toast.module.css +1 -0
  517. package/components/Toast/Toast.types.d.ts +77 -0
  518. package/components/Toast/Toast.types.js +1 -0
  519. package/components/Toast/ToastContainer.d.ts +4 -0
  520. package/components/Toast/ToastContainer.js +97 -0
  521. package/components/Toast/ToastProvider.d.ts +4 -0
  522. package/components/Toast/ToastProvider.js +80 -0
  523. package/components/Toast/ToastRegion.d.ts +4 -0
  524. package/components/Toast/ToastRegion.js +63 -0
  525. package/components/Toast/index.d.ts +3 -0
  526. package/components/Toast/index.js +2 -0
  527. package/components/Toast/tests/Toast.stories.d.ts +13 -0
  528. package/components/Toast/tests/Toast.stories.js +304 -0
  529. package/components/Toast/useToast.d.ts +5 -0
  530. package/components/Toast/useToast.js +8 -0
  531. package/components/Tooltip/Tooltip.d.ts +4 -0
  532. package/components/Tooltip/Tooltip.js +15 -0
  533. package/components/Tooltip/Tooltip.module.css +1 -0
  534. package/components/Tooltip/Tooltip.types.d.ts +5 -0
  535. package/components/Tooltip/Tooltip.types.js +1 -0
  536. package/components/Tooltip/index.d.ts +2 -0
  537. package/components/Tooltip/index.js +1 -0
  538. package/components/Tooltip/tests/Tooltip.stories.d.ts +7 -0
  539. package/components/Tooltip/tests/Tooltip.stories.js +58 -0
  540. package/components/View/View.d.ts +7 -0
  541. package/components/View/View.js +135 -0
  542. package/components/View/View.module.css +1 -0
  543. package/components/View/View.types.d.ts +64 -0
  544. package/components/View/View.types.js +1 -0
  545. package/components/View/index.d.ts +2 -0
  546. package/components/View/index.js +1 -0
  547. package/components/View/tests/View.stories.d.ts +32 -0
  548. package/components/View/tests/View.stories.js +1015 -0
  549. package/components/_private/Flyout/Flyout.context.d.ts +6 -0
  550. package/components/_private/Flyout/Flyout.context.js +6 -0
  551. package/components/_private/Flyout/Flyout.d.ts +8 -0
  552. package/components/_private/Flyout/Flyout.js +14 -0
  553. package/components/_private/Flyout/Flyout.module.css +1 -0
  554. package/components/_private/Flyout/Flyout.types.d.ts +77 -0
  555. package/components/_private/Flyout/Flyout.types.js +1 -0
  556. package/components/_private/Flyout/FlyoutContent.d.ts +4 -0
  557. package/components/_private/Flyout/FlyoutContent.js +40 -0
  558. package/components/_private/Flyout/FlyoutControlled.d.ts +4 -0
  559. package/components/_private/Flyout/FlyoutControlled.js +214 -0
  560. package/components/_private/Flyout/FlyoutTrigger.d.ts +4 -0
  561. package/components/_private/Flyout/FlyoutTrigger.js +47 -0
  562. package/components/_private/Flyout/FlyoutUncontrolled.d.ts +4 -0
  563. package/components/_private/Flyout/FlyoutUncontrolled.js +19 -0
  564. package/components/_private/Flyout/index.d.ts +3 -0
  565. package/components/_private/Flyout/index.js +2 -0
  566. package/components/_private/Flyout/tests/Flyout.stories.d.ts +16 -0
  567. package/components/_private/Flyout/tests/Flyout.stories.js +133 -0
  568. package/components/_private/HiddenInput/HiddenInput.d.ts +4 -0
  569. package/components/_private/HiddenInput/HiddenInput.js +9 -0
  570. package/components/_private/HiddenInput/HiddenInput.module.css +1 -0
  571. package/components/_private/HiddenInput/HiddenInput.types.d.ts +15 -0
  572. package/components/_private/HiddenInput/HiddenInput.types.js +1 -0
  573. package/components/_private/HiddenInput/index.d.ts +2 -0
  574. package/components/_private/HiddenInput/index.js +1 -0
  575. package/components/_private/Portal/Portal.d.ts +8 -0
  576. package/components/_private/Portal/Portal.js +21 -0
  577. package/components/_private/Portal/Portal.types.d.ts +6 -0
  578. package/components/_private/Portal/Portal.types.js +1 -0
  579. package/components/_private/Portal/index.d.ts +2 -0
  580. package/components/_private/Portal/index.js +1 -0
  581. package/components/_private/Portal/tests/Portal.stories.d.ts +6 -0
  582. package/components/_private/Portal/tests/Portal.stories.js +18 -0
  583. package/config/postcss.d.ts +13 -0
  584. package/config/postcss.js +19 -0
  585. package/config/tailwind.d.ts +2 -0
  586. package/config/tailwind.js +91 -0
  587. package/constants/attributes.d.ts +2 -0
  588. package/constants/attributes.js +2 -0
  589. package/constants/keys.d.ts +10 -0
  590. package/constants/keys.js +10 -0
  591. package/constants/timeouts.d.ts +2 -0
  592. package/constants/timeouts.js +2 -0
  593. package/hooks/_private/useFlyout.d.ts +27 -0
  594. package/hooks/_private/useFlyout.js +269 -0
  595. package/hooks/_private/useIsDismissible.d.ts +8 -0
  596. package/hooks/_private/useIsDismissible.js +45 -0
  597. package/hooks/_private/useOnClickOutside.d.ts +3 -0
  598. package/hooks/_private/useOnClickOutside.js +29 -0
  599. package/hooks/_private/useSingletonEnvironment.d.ts +9 -0
  600. package/hooks/_private/useSingletonEnvironment.js +33 -0
  601. package/hooks/_private/useSingletonHotkeys.d.ts +34 -0
  602. package/hooks/_private/useSingletonHotkeys.js +191 -0
  603. package/hooks/_private/useSingletonKeyboardMode.d.ts +2 -0
  604. package/hooks/_private/useSingletonKeyboardMode.js +21 -0
  605. package/hooks/tests/useHotkeys.stories.d.ts +6 -0
  606. package/hooks/tests/useHotkeys.stories.js +25 -0
  607. package/hooks/tests/useResponsiveClientValue.stories.d.ts +6 -0
  608. package/hooks/tests/useResponsiveClientValue.stories.js +13 -0
  609. package/hooks/useElementId.d.ts +2 -0
  610. package/hooks/useElementId.js +8 -0
  611. package/hooks/useHotkeys.d.ts +8 -0
  612. package/hooks/useHotkeys.js +15 -0
  613. package/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  614. package/hooks/useIsomorphicLayoutEffect.js +4 -0
  615. package/hooks/useRTL.d.ts +2 -0
  616. package/hooks/useRTL.js +7 -0
  617. package/hooks/useResponsiveClientValue.d.ts +3 -0
  618. package/hooks/useResponsiveClientValue.js +43 -0
  619. package/hooks/useScrollLock.d.ts +6 -0
  620. package/hooks/useScrollLock.js +44 -0
  621. package/hooks/useToggle.d.ts +7 -0
  622. package/hooks/useToggle.js +16 -0
  623. package/icons/ArrowUpRight.d.ts +3 -0
  624. package/icons/ArrowUpRight.js +7 -0
  625. package/icons/Checkmark.d.ts +3 -0
  626. package/icons/Checkmark.js +6 -0
  627. package/icons/ChevronDown.d.ts +3 -0
  628. package/icons/ChevronDown.js +6 -0
  629. package/icons/ChevronLeft.d.ts +3 -0
  630. package/icons/ChevronLeft.js +6 -0
  631. package/icons/ChevronRight.d.ts +3 -0
  632. package/icons/ChevronRight.js +6 -0
  633. package/icons/ChevronVertical.d.ts +3 -0
  634. package/icons/ChevronVertical.js +5 -0
  635. package/icons/Close.d.ts +3 -0
  636. package/icons/Close.js +7 -0
  637. package/icons/DotsHorizontal.d.ts +3 -0
  638. package/icons/DotsHorizontal.js +6 -0
  639. package/icons/Mic.d.ts +3 -0
  640. package/icons/Mic.js +9 -0
  641. package/icons/Zap.d.ts +3 -0
  642. package/icons/Zap.js +6 -0
  643. package/index.d.ts +118 -0
  644. package/index.js +67 -0
  645. package/package.json +141 -4
  646. package/styles/aspectRatio/aspectRatio.module.css +1 -0
  647. package/styles/aspectRatio/index.d.ts +3 -0
  648. package/styles/aspectRatio/index.js +9 -0
  649. package/styles/aspectRatio/index.test.d.ts +1 -0
  650. package/styles/aspectRatio/index.test.js +24 -0
  651. package/styles/bleed/bleed.module.css +1 -0
  652. package/styles/bleed/index.d.ts +3 -0
  653. package/styles/bleed/index.js +13 -0
  654. package/styles/bleed/index.test.d.ts +1 -0
  655. package/styles/bleed/index.test.js +24 -0
  656. package/styles/height/height.module.css +1 -0
  657. package/styles/height/index.d.ts +3 -0
  658. package/styles/height/index.js +10 -0
  659. package/styles/height/index.test.d.ts +1 -0
  660. package/styles/height/index.test.js +27 -0
  661. package/styles/inset/index.d.ts +4 -0
  662. package/styles/inset/index.js +14 -0
  663. package/styles/inset/index.test.d.ts +1 -0
  664. package/styles/inset/index.test.js +27 -0
  665. package/styles/inset/inset.module.css +1 -0
  666. package/styles/maxHeight/index.d.ts +3 -0
  667. package/styles/maxHeight/index.js +10 -0
  668. package/styles/maxHeight/index.test.d.ts +1 -0
  669. package/styles/maxHeight/index.test.js +27 -0
  670. package/styles/maxHeight/maxHeight.module.css +1 -0
  671. package/styles/maxWidth/index.d.ts +3 -0
  672. package/styles/maxWidth/index.js +10 -0
  673. package/styles/maxWidth/index.test.d.ts +1 -0
  674. package/styles/maxWidth/index.test.js +27 -0
  675. package/styles/maxWidth/maxWidth.module.css +1 -0
  676. package/styles/padding/index.d.ts +3 -0
  677. package/styles/padding/index.js +9 -0
  678. package/styles/padding/index.test.d.ts +1 -0
  679. package/styles/padding/index.test.js +24 -0
  680. package/styles/padding/padding.module.css +1 -0
  681. package/styles/position/index.d.ts +3 -0
  682. package/styles/position/index.js +9 -0
  683. package/styles/position/index.test.d.ts +1 -0
  684. package/styles/position/index.test.js +21 -0
  685. package/styles/position/position.module.css +1 -0
  686. package/styles/radius/index.d.ts +3 -0
  687. package/styles/radius/index.js +10 -0
  688. package/styles/radius/index.test.d.ts +1 -0
  689. package/styles/radius/index.test.js +24 -0
  690. package/styles/radius/radius.module.css +1 -0
  691. package/styles/types.d.ts +19 -0
  692. package/styles/types.js +1 -0
  693. package/styles/width/index.d.ts +3 -0
  694. package/styles/width/index.js +10 -0
  695. package/styles/width/index.test.d.ts +1 -0
  696. package/styles/width/index.test.js +27 -0
  697. package/styles/width/width.module.css +1 -0
  698. package/themes/figma/theme.css +1 -0
  699. package/themes/fragments/twitter/theme.css +1 -0
  700. package/themes/media.css +5 -0
  701. package/themes/minimal/theme.css +1 -0
  702. package/themes/reshaped/theme.css +1 -0
  703. package/themes/slate/theme.css +1 -0
  704. package/types/config.d.ts +8 -0
  705. package/types/config.js +2 -0
  706. package/types/global.d.ts +29 -0
  707. package/types/global.js +1 -0
  708. package/utilities/Chain.d.ts +20 -0
  709. package/utilities/Chain.js +63 -0
  710. package/utilities/a11y.d.ts +36 -0
  711. package/utilities/a11y.js +175 -0
  712. package/utilities/animation.d.ts +4 -0
  713. package/utilities/animation.js +15 -0
  714. package/utilities/helpers.d.ts +15 -0
  715. package/utilities/helpers.js +121 -0
  716. package/utilities/storybook/Example.d.ts +13 -0
  717. package/utilities/storybook/Example.js +19 -0
  718. package/utilities/storybook/Example.module.css +1 -0
  719. package/utilities/storybook/Placeholder.d.ts +9 -0
  720. package/utilities/storybook/Placeholder.js +17 -0
  721. package/utilities/storybook/index.d.ts +2 -0
  722. package/utilities/storybook/index.js +2 -0
  723. package/utilities/testPresets.d.ts +25 -0
  724. package/utilities/testPresets.js +76 -0
  725. package/utilities/tests/Chain.test.d.ts +1 -0
  726. package/utilities/tests/Chain.test.js +45 -0
  727. package/README.md +0 -1
package/bundle.d.ts ADDED
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Components
3
+ */
4
+ export { default as Accordion } from "./components/Accordion";
5
+ export type { AccordionProps } from "./components/Accordion";
6
+ export { default as Actionable } from "./components/Actionable";
7
+ export type { ActionableProps, ActionableRef } from "./components/Actionable";
8
+ export { default as ActionBar } from "./components/ActionBar";
9
+ export type { ActionBarProps } from "./components/ActionBar";
10
+ export { default as Alert } from "./components/Alert";
11
+ export type { AlertProps } from "./components/Alert";
12
+ export { default as Autocomplete } from "./components/Autocomplete";
13
+ export type { AutocompleteProps } from "./components/Autocomplete";
14
+ export { default as Avatar } from "./components/Avatar";
15
+ export type { AvatarProps } from "./components/Avatar";
16
+ export { default as Badge } from "./components/Badge";
17
+ export type { BadgeProps } from "./components/Badge";
18
+ export { default as Button } from "./components/Button";
19
+ export type { ButtonProps, ButtonAlignerProps } from "./components/Button";
20
+ export { default as Breadcrumbs } from "./components/Breadcrumbs";
21
+ export type { BreadcrumbsProps } from "./components/Breadcrumbs";
22
+ export { default as Card } from "./components/Card";
23
+ export type { CardProps } from "./components/Card";
24
+ export { default as Carousel } from "./components/Carousel";
25
+ export type { CarouselProps, CarouselInstanceRef } from "./components/Carousel";
26
+ export { default as Checkbox } from "./components/Checkbox";
27
+ export type { CheckboxProps } from "./components/Checkbox";
28
+ export { default as CheckboxGroup } from "./components/CheckboxGroup";
29
+ export type { CheckboxGroupProps } from "./components/CheckboxGroup";
30
+ export { default as Container } from "./components/Container";
31
+ export type { ContainerProps } from "./components/Container";
32
+ export { default as Dismissible } from "./components/Dismissible";
33
+ export type { DismissibleProps } from "./components/Dismissible";
34
+ export { default as Divider } from "./components/Divider";
35
+ export type { DividerProps } from "./components/Divider";
36
+ export { default as DropdownMenu } from "./components/DropdownMenu";
37
+ export type { DropdownMenuProps } from "./components/DropdownMenu";
38
+ export { default as FormControl } from "./components/FormControl";
39
+ export type { FormControlProps } from "./components/FormControl";
40
+ export { default as Hidden } from "./components/Hidden";
41
+ export type { HiddenProps } from "./components/Hidden";
42
+ export { default as HiddenVisually } from "./components/HiddenVisually";
43
+ export type { HiddenVisuallyProps } from "./components/HiddenVisually";
44
+ export { default as Hotkey } from "./components/Hotkey";
45
+ export type { HotkeyProps } from "./components/Hotkey";
46
+ export { default as Icon } from "./components/Icon";
47
+ export type { IconProps } from "./components/Icon";
48
+ export { default as Image } from "./components/Image";
49
+ export type { ImageProps } from "./components/Image";
50
+ export { default as Link } from "./components/Link";
51
+ export type { LinkProps } from "./components/Link";
52
+ export { default as Loader } from "./components/Loader";
53
+ export type { LoaderProps } from "./components/Loader";
54
+ export { default as MenuItem } from "./components/MenuItem";
55
+ export type { MenuItemProps } from "./components/MenuItem";
56
+ export { default as Modal } from "./components/Modal";
57
+ export type { ModalProps } from "./components/Modal";
58
+ export { default as Overlay } from "./components/Overlay";
59
+ export type { OverlayProps } from "./components/Overlay";
60
+ export { default as Popover } from "./components/Popover";
61
+ export type { PopoverProps } from "./components/Popover";
62
+ export { default as Progress } from "./components/Progress";
63
+ export type { ProgressProps } from "./components/Progress";
64
+ export { default as Radio } from "./components/Radio";
65
+ export type { RadioProps } from "./components/Radio";
66
+ export { default as RadioGroup } from "./components/RadioGroup";
67
+ export type { RadioGroupProps } from "./components/RadioGroup";
68
+ export { default as Reshaped } from "./components/Reshaped";
69
+ export type { ReshapedProps } from "./components/Reshaped";
70
+ export { default as Scrim } from "./components/Scrim";
71
+ export type { ScrimProps } from "./components/Scrim";
72
+ export { default as Select } from "./components/Select";
73
+ export type { SelectProps } from "./components/Select";
74
+ export { default as Skeleton } from "./components/Skeleton";
75
+ export type { SkeletonProps } from "./components/Skeleton";
76
+ export { default as Switch } from "./components/Switch";
77
+ export type { SwitchProps } from "./components/Switch";
78
+ export { default as Tabs } from "./components/Tabs";
79
+ export type { TabsProps } from "./components/Tabs";
80
+ export { default as Text } from "./components/Text";
81
+ export type { TextProps } from "./components/Text";
82
+ export { default as TextArea } from "./components/TextArea";
83
+ export type { TextAreaProps } from "./components/TextArea";
84
+ export { default as TextField } from "./components/TextField";
85
+ export type { TextFieldProps } from "./components/TextField";
86
+ export { default as Timeline } from "./components/Timeline";
87
+ export type { TimelineProps, TimelineItemProps } from "./components/Timeline";
88
+ export { useToast } from "./components/Toast";
89
+ export type { ToastProps } from "./components/Toast";
90
+ export { default as Tooltip } from "./components/Tooltip";
91
+ export type { TooltipProps } from "./components/Tooltip";
92
+ export { default as View } from "./components/View";
93
+ export type { ViewProps, ViewItemProps } from "./components/View";
94
+ /**
95
+ * Hooks
96
+ */
97
+ export { useFormControl } from "./components/FormControl";
98
+ export { default as Theme, useTheme } from "./components/Theme";
99
+ export type { ThemeProps } from "./components/Theme";
100
+ export { default as useScrollLock } from "./hooks/useScrollLock";
101
+ export { default as useToggle } from "./hooks/useToggle";
102
+ export { default as useRTL } from "./hooks/useRTL";
103
+ export { default as useIsomorphicLayoutEffect } from "./hooks/useIsomorphicLayoutEffect";
104
+ export { default as useHotkeys } from "./hooks/useHotkeys";
105
+ export { default as useResponsiveClientValue } from "./hooks/useResponsiveClientValue";
106
+ /**
107
+ * Utilities
108
+ */
109
+ export { classNames, responsiveClassNames, responsivePropDependency } from "./utilities/helpers";
110
+ /**
111
+ * Types
112
+ */
113
+ export type { ReshapedConfig } from "./types/config";
114
+ export type { Responsive } from "./types/global";
115
+ /**
116
+ * Dev utilities
117
+ */
118
+ export { default as Placeholder } from "./utilities/storybook/Placeholder";
package/bundle.js ADDED
@@ -0,0 +1,27 @@
1
+ (function(N,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(N=typeof globalThis!="undefined"?globalThis:N||self,u(N.Reshaped={},N.React,N.ReactDOM))})(this,function(N,u,ie){"use strict";var Bi=Object.defineProperty,Wi=Object.defineProperties;var Hi=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols;var rr=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;var or=(N,u,ie)=>u in N?Bi(N,u,{enumerable:!0,configurable:!0,writable:!0,value:ie}):N[u]=ie,v=(N,u)=>{for(var ie in u||(u={}))rr.call(u,ie)&&or(N,ie,u[ie]);if(nn)for(var ie of nn(u))sr.call(u,ie)&&or(N,ie,u[ie]);return N},k=(N,u)=>Wi(N,Hi(u));var Fe=(N,u)=>{var ie={};for(var me in N)rr.call(N,me)&&u.indexOf(me)<0&&(ie[me]=N[me]);if(N!=null&&nn)for(var me of nn(N))u.indexOf(me)<0&&sr.call(N,me)&&(ie[me]=N[me]);return ie};var me={exports:{}},ht={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var qn;function ir(){if(qn)return ht;qn=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,m){var _,p={},f=null,h=null;m!==void 0&&(f=""+m),d.key!==void 0&&(f=""+d.key),d.ref!==void 0&&(h=d.ref);for(_ in d)o.call(d,_)&&!s.hasOwnProperty(_)&&(p[_]=d[_]);if(l&&l.defaultProps)for(_ in d=l.defaultProps,d)p[_]===void 0&&(p[_]=d[_]);return{$$typeof:t,type:l,key:f,ref:h,props:p,_owner:r.current}}return ht.Fragment=n,ht.jsx=a,ht.jsxs=a,ht}var bt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var On;function ar(){return On||(On=1,process.env.NODE_ENV!=="production"&&function(){var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),x=Symbol.iterator,b="@@iterator";function w(c){if(c===null||typeof c!="object")return null;var j=x&&c[x]||c[b];return typeof j=="function"?j:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(c){{for(var j=arguments.length,$=new Array(j>1?j-1:0),F=1;F<j;F++)$[F-1]=arguments[F];C("error",c,$)}}function C(c,j,$){{var F=y.ReactDebugCurrentFrame,D=F.getStackAddendum();D!==""&&(j+="%s",$=$.concat([D]));var R=$.map(function(q){return String(q)});R.unshift("Warning: "+j),Function.prototype.apply.call(console[c],console,R)}}var T=!1,z=!1,M=!1,P=!1,S=!1,K;K=Symbol.for("react.module.reference");function E(c){return!!(typeof c=="string"||typeof c=="function"||c===o||c===s||S||c===r||c===m||c===_||P||c===h||T||z||M||typeof c=="object"&&c!==null&&(c.$$typeof===f||c.$$typeof===p||c.$$typeof===a||c.$$typeof===l||c.$$typeof===d||c.$$typeof===K||c.getModuleId!==void 0))}function H(c,j,$){var F=c.displayName;if(F)return F;var D=j.displayName||j.name||"";return D!==""?$+"("+D+")":$}function B(c){return c.displayName||"Context"}function U(c){if(c==null)return null;if(typeof c.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case r:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case l:var j=c;return B(j)+".Consumer";case a:var $=c;return B($._context)+".Provider";case d:return H(c,c.render,"ForwardRef");case p:var F=c.displayName||null;return F!==null?F:U(c.type)||"Memo";case f:{var D=c,R=D._payload,q=D._init;try{return U(q(R))}catch(L){return null}}}return null}var A=Object.assign,J=0,pe,de,te,Ze,mt,qe,et;function Ce(){}Ce.__reactDisabledLog=!0;function tt(){{if(J===0){pe=console.log,de=console.info,te=console.warn,Ze=console.error,mt=console.group,qe=console.groupCollapsed,et=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}J++}}function X(){{if(J--,J===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},c,{value:pe}),info:A({},c,{value:de}),warn:A({},c,{value:te}),error:A({},c,{value:Ze}),group:A({},c,{value:mt}),groupCollapsed:A({},c,{value:qe}),groupEnd:A({},c,{value:et})})}J<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=y.ReactCurrentDispatcher,ue;function _e(c,j,$){{if(ue===void 0)try{throw Error()}catch(D){var F=D.stack.trim().match(/\n( *(at )?)/);ue=F&&F[1]||""}return`
18
+ `+ue+c}}var Me=!1,He;{var Re=typeof WeakMap=="function"?WeakMap:Map;He=new Re}function Oe(c,j){if(!c||Me)return"";{var $=He.get(c);if($!==void 0)return $}var F;Me=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=ve.current,ve.current=null,tt();try{if(j){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(Ve){F=Ve}Reflect.construct(c,[],q)}else{try{q.call()}catch(Ve){F=Ve}c.call(q.prototype)}}else{try{throw Error()}catch(Ve){F=Ve}c()}}catch(Ve){if(Ve&&F&&typeof Ve.stack=="string"){for(var L=Ve.stack.split(`
19
+ `),ce=F.stack.split(`
20
+ `),Q=L.length-1,ee=ce.length-1;Q>=1&&ee>=0&&L[Q]!==ce[ee];)ee--;for(;Q>=1&&ee>=0;Q--,ee--)if(L[Q]!==ce[ee]){if(Q!==1||ee!==1)do if(Q--,ee--,ee<0||L[Q]!==ce[ee]){var be=`
21
+ `+L[Q].replace(" at new "," at ");return c.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",c.displayName)),typeof c=="function"&&He.set(c,be),be}while(Q>=1&&ee>=0);break}}}finally{Me=!1,ve.current=R,X(),Error.prepareStackTrace=D}var vt=c?c.displayName||c.name:"",nr=vt?_e(vt):"";return typeof c=="function"&&He.set(c,nr),nr}function Ue(c,j,$){return Oe(c,!1)}function Ke(c){var j=c.prototype;return!!(j&&j.isReactComponent)}function ke(c,j,$){if(c==null)return"";if(typeof c=="function")return Oe(c,Ke(c));if(typeof c=="string")return _e(c);switch(c){case m:return _e("Suspense");case _:return _e("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case d:return Ue(c.render);case p:return ke(c.type,j,$);case f:{var F=c,D=F._payload,R=F._init;try{return ke(R(D),j,$)}catch(q){}}}return""}var Ne=Object.prototype.hasOwnProperty,Pt={},nt=y.ReactDebugCurrentFrame;function ft(c){if(c){var j=c._owner,$=ke(c.type,c._source,j?j.type:null);nt.setExtraStackFrame($)}else nt.setExtraStackFrame(null)}function en(c,j,$,F,D){{var R=Function.call.bind(Ne);for(var q in c)if(R(c,q)){var L=void 0;try{if(typeof c[q]!="function"){var ce=Error((F||"React class")+": "+$+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}L=c[q](j,q,F,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Q){L=Q}L&&!(L instanceof Error)&&(ft(D),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",$,q,typeof L),ft(null)),L instanceof Error&&!(L.message in Pt)&&(Pt[L.message]=!0,ft(D),g("Failed %s type: %s",$,L.message),ft(null))}}}var Mn=Array.isArray;function Mt(c){return Mn(c)}function Sn(c){{var j=typeof Symbol=="function"&&Symbol.toStringTag,$=j&&c[Symbol.toStringTag]||c.constructor.name||"Object";return $}}function le(c){try{return se(c),!1}catch(j){return!0}}function se(c){return""+c}function Se(c){if(le(c))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Sn(c)),se(c)}var ae=y.ReactCurrentOwner,ot={key:!0,ref:!0,__self:!0,__source:!0},De,he,$e;$e={};function tn(c){if(Ne.call(c,"ref")){var j=Object.getOwnPropertyDescriptor(c,"ref").get;if(j&&j.isReactWarning)return!1}return c.ref!==void 0}function Ei(c){if(Ne.call(c,"key")){var j=Object.getOwnPropertyDescriptor(c,"key").get;if(j&&j.isReactWarning)return!1}return c.key!==void 0}function zi(c,j){if(typeof c.ref=="string"&&ae.current&&j&&ae.current.stateNode!==j){var $=U(ae.current.type);$e[$]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',U(ae.current.type),c.ref),$e[$]=!0)}}function Ti(c,j){{var $=function(){De||(De=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};$.isReactWarning=!0,Object.defineProperty(c,"key",{get:$,configurable:!0})}}function Ii(c,j){{var $=function(){he||(he=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};$.isReactWarning=!0,Object.defineProperty(c,"ref",{get:$,configurable:!0})}}var Pi=function(c,j,$,F,D,R,q){var L={$$typeof:t,type:c,key:j,ref:$,props:q,_owner:R};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function Mi(c,j,$,F,D){{var R,q={},L=null,ce=null;$!==void 0&&(Se($),L=""+$),Ei(j)&&(Se(j.key),L=""+j.key),tn(j)&&(ce=j.ref,zi(j,D));for(R in j)Ne.call(j,R)&&!ot.hasOwnProperty(R)&&(q[R]=j[R]);if(c&&c.defaultProps){var Q=c.defaultProps;for(R in Q)q[R]===void 0&&(q[R]=Q[R])}if(L||ce){var ee=typeof c=="function"?c.displayName||c.name||"Unknown":c;L&&Ti(q,ee),ce&&Ii(q,ee)}return Pi(c,L,ce,D,F,ae.current,q)}}var Fn=y.ReactCurrentOwner,Jo=y.ReactDebugCurrentFrame;function pt(c){if(c){var j=c._owner,$=ke(c.type,c._source,j?j.type:null);Jo.setExtraStackFrame($)}else Jo.setExtraStackFrame(null)}var An;An=!1;function Ln(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function Xo(){{if(Fn.current){var c=U(Fn.current.type);if(c)return`
22
+
23
+ Check the render method of \``+c+"`."}return""}}function Si(c){{if(c!==void 0){var j=c.fileName.replace(/^.*[\\\/]/,""),$=c.lineNumber;return`
24
+
25
+ Check your code at `+j+":"+$+"."}return""}}var Qo={};function Fi(c){{var j=Xo();if(!j){var $=typeof c=="string"?c:c.displayName||c.name;$&&(j=`
26
+
27
+ Check the top-level render call using <`+$+">.")}return j}}function Zo(c,j){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var $=Fi(j);if(Qo[$])return;Qo[$]=!0;var F="";c&&c._owner&&c._owner!==Fn.current&&(F=" It was passed a child from "+U(c._owner.type)+"."),pt(c),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,F),pt(null)}}function er(c,j){{if(typeof c!="object")return;if(Mt(c))for(var $=0;$<c.length;$++){var F=c[$];Ln(F)&&Zo(F,j)}else if(Ln(c))c._store&&(c._store.validated=!0);else if(c){var D=w(c);if(typeof D=="function"&&D!==c.entries)for(var R=D.call(c),q;!(q=R.next()).done;)Ln(q.value)&&Zo(q.value,j)}}}function Ai(c){{var j=c.type;if(j==null||typeof j=="string")return;var $;if(typeof j=="function")$=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===d||j.$$typeof===p))$=j.propTypes;else return;if($){var F=U(j);en($,c.props,"prop",F,c)}else if(j.PropTypes!==void 0&&!An){An=!0;var D=U(j);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",D||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Li(c){{for(var j=Object.keys(c.props),$=0;$<j.length;$++){var F=j[$];if(F!=="children"&&F!=="key"){pt(c),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}c.ref!==null&&(pt(c),g("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function tr(c,j,$,F,D,R){{var q=E(c);if(!q){var L="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ce=Si(D);ce?L+=ce:L+=Xo();var Q;c===null?Q="null":Mt(c)?Q="array":c!==void 0&&c.$$typeof===t?(Q="<"+(U(c.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof c,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,L)}var ee=Mi(c,j,$,D,R);if(ee==null)return ee;if(q){var be=j.children;if(be!==void 0)if(F)if(Mt(be)){for(var vt=0;vt<be.length;vt++)er(be[vt],c);Object.freeze&&Object.freeze(be)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else er(be,c)}return c===o?Li(ee):Ai(ee),ee}}function qi(c,j,$){return tr(c,j,$,!0)}function Oi(c,j,$){return tr(c,j,$,!1)}var Di=Oi,Vi=qi;bt.Fragment=o,bt.jsx=Di,bt.jsxs=Vi}()),bt}process.env.NODE_ENV==="production"?me.exports=ir():me.exports=ar();var i=me.exports;const Dn=(e,t=20)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function lr(e,t){const n=Dn(e,t);return o=>(o.persist(),n(o))}const cr=(e,t)=>{let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...o)},t)},t))}},I=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const o=I(...n);return o?`${t} ${o}`:t}return n?`${t} ${n}`:t},""),Vn=(e,t,n)=>{const{base:o,excludeValueFromClassName:r}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&o||r?s:t===!0&&!o?`${s}-true`:t===!1&&!o?`${s}-false`:t!==void 0?`${s}-${t}`:null},O=(e,t,n,o)=>{if(typeof n!="object"){const r=Vn(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return r?[e[r]]:[]}return Object.keys(n).reduce((r,s)=>{const a=s==="s",l=Vn(t,n[s],{base:a,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=a?"":`--${s}`;return[...r,e[`${l}${d}`]]},[])},Z=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const r=t[o];return r===void 0||r===!1?n:k(v({},n),{[`${e}-${o}`]:r})},{}),dr=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Ee=(e,t)=>dr(e)?Object.keys(e).reduce((o,r)=>{const s=e[r];return s==null?o:k(v({},o),{[r]:t(s,r)})},{}):t(e,"s"),ze=e=>{const t=u.useId();return e||t},on=u.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Bn=e=>{const{children:t,onToggle:n,active:o,iconPosition:r,iconSize:s,className:a,attributes:l}=e,d=I(a),m=ze(),_=u.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:o,onToggle:n,iconPosition:r,iconSize:s}),[o]);return i.jsx("div",k(v({},l),{className:d,children:i.jsx(on.Provider,{value:_,children:t})}))},ur=e=>{const l=e,{defaultActive:t,onToggle:n}=l,o=Fe(l,["defaultActive","onToggle"]),[r,s]=u.useState(t||!1),a=d=>{s(d),n==null||n(d)};return i.jsx(Bn,k(v({},o),{onToggle:a,active:r}))},gt={root:"_root_1sqjw_1","--disabled":"_--disabled_1sqjw_27","--full-width":"_--full-width_1sqjw_36","--inset":"_--inset_1sqjw_44","--radius-inherit":"_--radius-inherit_1sqjw_48"},_r=(e,t)=>{const{children:n,href:o,onClick:r,type:s,disabled:a,insetFocus:l,borderRadius:d,as:m,fullWidth:_,className:p,attributes:f}=e,h=I(gt.root,p,a&&gt["--disabled"],d&&gt[`--radius-${d}`],l&&gt["--inset"],_&&gt["--full-width"]),x=v({},f),b=r||(f==null?void 0:f.onClick),w=(f==null?void 0:f.onFocus)||(f==null?void 0:f.onBlur),y=!!(o||f!=null&&f.href),g=!!(b||w||s);let C;if(y)x.href=a?void 0:o||(f==null?void 0:f.href),C="a";else if(g&&(!m||m==="button"))C="button",x.type=s||(f==null?void 0:f.type)||"button",x.disabled=a||(f==null?void 0:f.disabled);else if(g){const S=!(m==="label")||b||w;C=m||"span",x.role=S?"button":void 0,x.tabIndex=S?0:void 0}else C=m||"span";const T=P=>{var S;a||(r==null||r(P),(S=f==null?void 0:f.onClick)==null||S.call(f,P))},z=P=>T(P),M=P=>{if(!(x.role==="button")||y)return;const K=P.key===" ",E=P.key==="Enter";!K&&!E||(P.preventDefault(),T(P))};return i.jsx(C,k(v({ref:t},x),{className:h,onClick:z,onKeyDown:M,children:n}))},Te=u.forwardRef(_r),rn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},Wn=e=>{const{vertical:t,blank:n,className:o,attributes:r}=e,s=I(rn.root,o,n&&rn["--blank"],...O(rn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),i.jsx("div",k(v({},r),{role:"separator","aria-orientation":a,className:s}))},St={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},sn=e=>{const{as:t="div",children:n,visibility:o,hide:r,displayStyle:s}=e,a=I(St.root,...O(St,"--hidden",r),o&&St["--visibility"],s&&St[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(a)}):i.jsx(t,{className:a,children:n})},W={root:"_root_18paf_1",item:"_item_18paf_10","--padding":"_--padding_18paf_18","--padding-top":"_--padding-top_18paf_23","--padding-bottom":"_--padding-bottom_18paf_27","--padding-start":"_--padding-start_18paf_31","--padding-end":"_--padding-end_18paf_35","--animated":"_--animated_18paf_39","--align-text-start":"_--align-text-start_18paf_1","--align-text-center":"_--align-text-center_18paf_1","--align-text-end":"_--align-text-end_18paf_1","--bg-neutral":"_--bg-neutral_18paf_1","--bg-positive":"_--bg-positive_18paf_1","--bg-critical":"_--bg-critical_18paf_1","--bg-primary":"_--bg-primary_18paf_1","--bg-neutral-faded":"_--bg-neutral-faded_18paf_1","--bg-positive-faded":"_--bg-positive-faded_18paf_1","--bg-critical-faded":"_--bg-critical-faded_18paf_1","--bg-primary-faded":"_--bg-primary-faded_18paf_1","--bg-page":"_--bg-page_18paf_1","--bg-page-faded":"_--bg-page-faded_18paf_1","--bg-disabled":"_--bg-disabled_18paf_1","--bg-disabled-faded":"_--bg-disabled-faded_18paf_1","--bg-elevation-base":"_--bg-elevation-base_18paf_1","--bg-elevation-raised":"_--bg-elevation-raised_18paf_1","--bg-elevation-overlay":"_--bg-elevation-overlay_18paf_1","--bg-white":"_--bg-white_18paf_66","--bg-black":"_--bg-black_18paf_71","--shadow-raised":"_--shadow-raised_18paf_76","--shadow-overlay":"_--shadow-overlay_18paf_80","--bd":"_--bd_18paf_84","--bd-neutral-faded":"_--bd-neutral-faded_18paf_1","--bd-neutral":"_--bd-neutral_18paf_1","--bd-positive":"_--bd-positive_18paf_1","--bd-positive-faded":"_--bd-positive-faded_18paf_1","--bd-critical":"_--bd-critical_18paf_1","--bd-critical-faded":"_--bd-critical-faded_18paf_1","--bd-primary":"_--bd-primary_18paf_1","--bd-primary-faded":"_--bd-primary-faded_18paf_1","--bd-transparent":"_--bd-transparent_18paf_96","--overflow-hidden":"_--overflow-hidden_18paf_100","--divided":"_--divided_18paf_104","--flex":"_--flex_18paf_108","--direction-column":"_--direction-column_18paf_1","item--gap-before":"_item--gap-before_18paf_120","item--gap-auto":"_item--gap-auto_18paf_124","--direction-column-reverse":"_--direction-column-reverse_18paf_1","--direction-row":"_--direction-row_18paf_1","--direction-row-reverse":"_--direction-row-reverse_18paf_1","--nowrap":"_--nowrap_18paf_179","--wrap":"_--wrap_18paf_187","--nowrap-false--m":"_--nowrap-false--m_18paf_1","--wrap-true--m":"_--wrap-true--m_18paf_1","--nowrap-true--m":"_--nowrap-true--m_18paf_1","--wrap-false--m":"_--wrap-false--m_18paf_1","--nowrap-false--l":"_--nowrap-false--l_18paf_1","--wrap-true--l":"_--wrap-true--l_18paf_1","--nowrap-true--l":"_--nowrap-true--l_18paf_1","--wrap-false--l":"_--wrap-false--l_18paf_1","--nowrap-false--xl":"_--nowrap-false--xl_18paf_1","--wrap-true--xl":"_--wrap-true--xl_18paf_1","--nowrap-true--xl":"_--nowrap-true--xl_18paf_1","--wrap-false--xl":"_--wrap-false--xl_18paf_1","--align-start":"_--align-start_18paf_1","--align-end":"_--align-end_18paf_1","--align-center":"_--align-center_18paf_1","--align-stretch":"_--align-stretch_18paf_1","--align-baseline":"_--align-baseline_18paf_1","--justify-start":"_--justify-start_18paf_1","--justify-end":"_--justify-end_18paf_1","--justify-center":"_--justify-center_18paf_1",divider:"_divider_18paf_242","item--grow":"_item--grow_18paf_246","item--columns-1":"_item--columns-1_18paf_1","item--columns-2":"_item--columns-2_18paf_1","item--columns-3":"_item--columns-3_18paf_1","item--columns-4":"_item--columns-4_18paf_1","item--columns-5":"_item--columns-5_18paf_1","item--columns-6":"_item--columns-6_18paf_1","item--columns-7":"_item--columns-7_18paf_1","item--columns-8":"_item--columns-8_18paf_1","item--columns-9":"_item--columns-9_18paf_1","item--columns-10":"_item--columns-10_18paf_1","item--columns-11":"_item--columns-11_18paf_1","item--columns-12":"_item--columns-12_18paf_1","item--columns-auto":"_item--columns-auto_18paf_279","item--columns-1--m":"_item--columns-1--m_18paf_1","item--columns-auto--m":"_item--columns-auto--m_18paf_1","item--columns-2--m":"_item--columns-2--m_18paf_1","item--columns-3--m":"_item--columns-3--m_18paf_1","item--columns-4--m":"_item--columns-4--m_18paf_1","item--columns-5--m":"_item--columns-5--m_18paf_1","item--columns-6--m":"_item--columns-6--m_18paf_1","item--columns-7--m":"_item--columns-7--m_18paf_1","item--columns-8--m":"_item--columns-8--m_18paf_1","item--columns-9--m":"_item--columns-9--m_18paf_1","item--columns-10--m":"_item--columns-10--m_18paf_1","item--columns-11--m":"_item--columns-11--m_18paf_1","item--columns-12--m":"_item--columns-12--m_18paf_1","item--columns-1--l":"_item--columns-1--l_18paf_1","item--columns-auto--l":"_item--columns-auto--l_18paf_1","item--columns-2--l":"_item--columns-2--l_18paf_1","item--columns-3--l":"_item--columns-3--l_18paf_1","item--columns-4--l":"_item--columns-4--l_18paf_1","item--columns-5--l":"_item--columns-5--l_18paf_1","item--columns-6--l":"_item--columns-6--l_18paf_1","item--columns-7--l":"_item--columns-7--l_18paf_1","item--columns-8--l":"_item--columns-8--l_18paf_1","item--columns-9--l":"_item--columns-9--l_18paf_1","item--columns-10--l":"_item--columns-10--l_18paf_1","item--columns-11--l":"_item--columns-11--l_18paf_1","item--columns-12--l":"_item--columns-12--l_18paf_1","item--columns-1--xl":"_item--columns-1--xl_18paf_1","item--columns-auto--xl":"_item--columns-auto--xl_18paf_1","item--columns-2--xl":"_item--columns-2--xl_18paf_1","item--columns-3--xl":"_item--columns-3--xl_18paf_1","item--columns-4--xl":"_item--columns-4--xl_18paf_1","item--columns-5--xl":"_item--columns-5--xl_18paf_1","item--columns-6--xl":"_item--columns-6--xl_18paf_1","item--columns-7--xl":"_item--columns-7--xl_18paf_1","item--columns-8--xl":"_item--columns-8--xl_18paf_1","item--columns-9--xl":"_item--columns-9--xl_18paf_1","item--columns-10--xl":"_item--columns-10--xl_18paf_1","item--columns-11--xl":"_item--columns-11--xl_18paf_1","item--columns-12--xl":"_item--columns-12--xl_18paf_1","--direction-column--m":"_--direction-column--m_18paf_1","--direction-column-reverse--m":"_--direction-column-reverse--m_18paf_1","--direction-row--m":"_--direction-row--m_18paf_1","--direction-row-reverse--m":"_--direction-row-reverse--m_18paf_1","--align-start--m":"_--align-start--m_18paf_1","--align-end--m":"_--align-end--m_18paf_1","--align-center--m":"_--align-center--m_18paf_1","--align-stretch--m":"_--align-stretch--m_18paf_1","--align-baseline--m":"_--align-baseline--m_18paf_1","--justify-start--m":"_--justify-start--m_18paf_1","--justify-end--m":"_--justify-end--m_18paf_1","--justify-center--m":"_--justify-center--m_18paf_1","item--grow-true--m":"_item--grow-true--m_18paf_1","item--grow-false--m":"_item--grow-false--m_18paf_1","--direction-column--l":"_--direction-column--l_18paf_1","--direction-column-reverse--l":"_--direction-column-reverse--l_18paf_1","--direction-row--l":"_--direction-row--l_18paf_1","--direction-row-reverse--l":"_--direction-row-reverse--l_18paf_1","--align-start--l":"_--align-start--l_18paf_1","--align-end--l":"_--align-end--l_18paf_1","--align-center--l":"_--align-center--l_18paf_1","--align-stretch--l":"_--align-stretch--l_18paf_1","--align-baseline--l":"_--align-baseline--l_18paf_1","--justify-start--l":"_--justify-start--l_18paf_1","--justify-end--l":"_--justify-end--l_18paf_1","--justify-center--l":"_--justify-center--l_18paf_1","item--grow-true--l":"_item--grow-true--l_18paf_1","item--grow-false--l":"_item--grow-false--l_18paf_1","--direction-column--xl":"_--direction-column--xl_18paf_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_18paf_1","--direction-row--xl":"_--direction-row--xl_18paf_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_18paf_1","--align-start--xl":"_--align-start--xl_18paf_1","--align-end--xl":"_--align-end--xl_18paf_1","--align-center--xl":"_--align-center--xl_18paf_1","--align-stretch--xl":"_--align-stretch--xl_18paf_1","--align-baseline--xl":"_--align-baseline--xl_18paf_1","--justify-start--xl":"_--justify-start--xl_18paf_1","--justify-end--xl":"_--justify-end--xl_18paf_1","--justify-center--xl":"_--justify-center--xl_18paf_1","item--grow-true--xl":"_item--grow-true--xl_18paf_1","item--grow-false--xl":"_item--grow-false--xl_18paf_1"},Hn={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},an=e=>e?{classNames:[Hn.root,...O(Hn,"--radius",e)]}:null,Rn={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},Un=e=>{if(e===void 0)return null;const t=[Rn.root,...O(Rn,"--bleed",Ee(e,o=>typeof o=="number"&&o>0))],n=Z("--rs-bleed",e);return{classNames:t,variables:n}},mr={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},Kn=e=>{if(!e)return null;const t=Z("--rs-w",e);return{classNames:O(mr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},fr={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},xt=e=>{if(!e)return null;const t=Z("--rs-h",e);return{classNames:O(fr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},pr={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},vr=e=>{if(!e)return null;const t=Z("--rs-max-w",e);return{classNames:O(pr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},hr={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},br=e=>{if(!e)return null;const t=Z("--rs-max-h",e);return{classNames:O(hr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},gr={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},xr=e=>e?{classNames:O(gr,"--position",e)}:null,yr={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},yt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,r=Z(o,e);return{classNames:O(yr,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:r}},wr={root:"_root_i342i_1"},jr=e=>{if(!e)return null;const t=Z("--rs-ratio",e);return{classNames:wr.root,variables:t}},Yn=e=>{const{columns:t,grow:n,gapBefore:o,as:r="div",order:s,children:a,className:l,attributes:d}=e,m=I(W.item,l,o==="auto"&&W["item--gap-auto"],o!==void 0&&W["item--gap-before"],...O(W,"item--grow",n),...O(W,"item--columns",t)),_=v(v({},Z("--rs-view-item-order",s)),Z("--rs-view-item-gap-before",o));return i.jsx(r,k(v({},d),{style:v(v({},d==null?void 0:d.style),_),className:m,children:a}))},V=e=>{const{align:t,justify:n,wrap:o,gap:r,height:s,width:a,aspectRatio:l,maxHeight:d,maxWidth:m,padding:_,paddingInline:p,paddingBlock:f,paddingBottom:h,paddingEnd:x,paddingStart:b,paddingTop:w,bleed:y,animated:g,backgroundColor:C,borderColor:T,borderRadius:z,shadow:M,textAlign:P,overflow:S,position:K="relative",inset:E,insetTop:H,insetBottom:B,insetStart:U,insetEnd:A,zIndex:J,grow:pe,as:de="div",children:te,divided:Ze,className:mt,attributes:qe}=e,et=!!t||!!n||!!r||!!e.direction,Ce=e.direction||(et?"column":void 0),tt=an(z),X=Un(y),ve=Kn(a),ue=xt(s),_e=vr(m),Me=br(d),He=xr(K),Re=yt(E),Oe=yt(H,"top"),Ue=yt(B,"bottom"),Ke=yt(U,"start"),ke=yt(A,"end"),Ne=jr(l);let Pt=0,nt;const ft=({className:le,key:se})=>{const Se=I(W.divider,le);let ae=!1;return typeof Ce=="string"&&Ce.startsWith("row")?ae=!0:Ce&&(ae=Object.keys(Ce).reduce((De,he)=>{const $e=Ce[he];return $e?k(v({},De),{[he]:$e.startsWith("row")}):De},{})),i.jsx("div",{className:Se,children:i.jsx(Wn,{vertical:ae,blank:!0})},`${se}-divider`)},en=({className:le,child:se,index:Se})=>{var $e,tn;const ae=se.type===Yn,ot=se.key||Se,De=!!Se&&Ze&&ft({className:le,key:ot});let he;return ae?he=u.cloneElement(se,{className:I(le,se.props.className)}):le||!u.isValidElement(se)?he=i.jsx("div",{className:le,children:se},ot):he=se,ae&&(($e=se.props)!=null&&$e.grow)&&(nt=se.props.grow),ae&&((tn=se.props)==null?void 0:tn.gap)==="auto"&&(nt=!0),[De,he]},Mn=u.Children.map(te,(le,se)=>{if(!le)return null;const Se=Pt;if(Pt+=1,le.type===sn&&typeof le.props.children!="function"){const ae=le.props,{children:ot}=ae,De=Fe(ae,["children"]),he=le.key||se;return u.createElement(sn,k(v({},De),{key:he}),$e=>en({className:$e,child:ot,index:Se}))}return en({child:le,index:Se})}),Mt=I(W.root,mt,tt==null?void 0:tt.classNames,He==null?void 0:He.classNames,X==null?void 0:X.classNames,ve==null?void 0:ve.classNames,ue==null?void 0:ue.classNames,Ne==null?void 0:Ne.classNames,_e==null?void 0:_e.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,Oe==null?void 0:Oe.classNames,Ue==null?void 0:Ue.classNames,Ke==null?void 0:Ke.classNames,ke==null?void 0:ke.classNames,P&&W[`--align-text-${P}`],C&&W[`--bg-${C}`],T&&W[`--bd-${T}`],T&&W["--bd"],M&&W[`--shadow-${M}`],S&&W[`--overflow-${S}`],g&&W["--animated"],Ze&&W["--divided"],(_!==void 0||p!==void 0||f!==void 0)&&W["--padding"],h!==void 0&&W["--padding-bottom"],x!==void 0&&W["--padding-end"],b!==void 0&&W["--padding-start"],w!==void 0&&W["--padding-top"],(et||nt)&&W["--flex"],...O(W,"--direction",Ce),...O(W,"--align",t),...O(W,"--justify",n),...O(W,"--nowrap",nt||o===!1),...O(W,"--wrap",o),...O(W,"item--grow",pe)),Sn=v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},qe==null?void 0:qe.style),Z("--rs-view-gap",r)),Z("--rs-view-p-vertical",f||_)),Z("--rs-view-p-horizontal",p||_)),Z("--rs-view-p-bottom",h)),Z("--rs-view-p-top",w)),Z("--rs-view-p-start",b)),Z("--rs-view-p-end",x)),X==null?void 0:X.variables),ve==null?void 0:ve.variables),ue==null?void 0:ue.variables),Ne==null?void 0:Ne.variables),_e==null?void 0:_e.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),Oe==null?void 0:Oe.variables),Ue==null?void 0:Ue.variables),Ke==null?void 0:Ke.variables),ke==null?void 0:ke.variables),J?{"--rs-view-z":J}:{});return i.jsx(de,k(v({},qe),{className:Mt,style:Sn,children:Mn}))};V.Item=Yn;const ln={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},ne=e=>{const{svg:t,className:n,color:o,size:r="1em",autoWidth:s,attributes:a}=e,l=xt(r),d=I(ln.root,n,l==null?void 0:l.classNames,o&&ln[`--color-${o}`],s&&ln["--auto"]),m=typeof t=="object"?t:i.jsx(t,{}),_=v(v({},a==null?void 0:a.style),l==null?void 0:l.variables);return i.jsx("span",k(v({},a),{"aria-hidden":"true",className:d,style:_,children:u.cloneElement(m,{focusable:!1})}))},Cr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),wt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},kr=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:r,contentId:s,iconPosition:a="end",iconSize:l}=u.useContext(on),d=I(wt.icon,n&&wt["icon--active"]),m=()=>{o==null||o(!n)},_={"aria-expanded":n,"aria-controls":s,id:r};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(v({},_),{onClick:m}),{active:n})}):i.jsx(Te,{onClick:m,fullWidth:!0,attributes:_,children:i.jsxs(V,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[i.jsx(V.Item,{grow:!0,children:t}),i.jsx(ne,{size:l||4,svg:Cr,className:d})]})})},jt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},cn="data-rs-no-transition",Nr=()=>{document.documentElement.setAttribute(cn,"true")},$r=()=>{document.documentElement.removeAttribute(cn)},Er=()=>!document.documentElement.hasAttribute(cn),zr=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:r}=u.useContext(on),s=u.useRef(null),a=u.useRef(!1),[l,d]=u.useState(n?"auto":null),m=I(wt.content,a.current&&l!=="auto"&&wt["content--animated"],n&&wt["content--active"]),_=p=>{p.propertyName==="height"&&d(n?"auto":null)};return u.useEffect(()=>{jt(()=>{a.current=!0})},[]),u.useEffect(()=>{const p=s.current;if(!p||!a.current)return;let f=0;n&&(p.style.height="auto",f=p.clientHeight,p.style.height="0"),n||(p.style.height=`${p.clientHeight}px`),d(f)},[n]),i.jsx("div",{className:m,ref:s,style:l!==null?{height:l}:void 0,onTransitionEnd:_,"aria-labelledby":o,id:r,role:"region",hidden:!n&&l===null,children:t})},dn=e=>{const{active:t}=e;return t!==void 0?i.jsx(Bn,v({},e)):i.jsx(ur,v({},e))};dn.Trigger=kr,dn.Content=zr;const un={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Tr=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:r=4,children:s,elevated:a,className:l,attributes:d}=e,m=I(un.root,a&&un["--elevated"],t&&un[`--position-${t}`],l);return i.jsx(V,{className:m,attributes:d,paddingBlock:n||o,paddingInline:n||r,children:s})},Ye={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Ir={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Y=e=>{const{variant:t,color:n,weight:o,align:r,decoration:s,maxLines:a,children:l,className:d,attributes:m}=e,_=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),p=e.as||_&&Ir[_]||"div",f=I(Ye.root,n&&Ye[`--color-${n}`],...O(Ye,"--variant",t),...O(Ye,"--align",r),o&&Ye[`--weight-${o}`],s&&Ye[`--decoration-${s}`],a!==void 0&&Ye["--clamp"],d),h=k(v({},m==null?void 0:m.style),{"--rs-text-lines":a});return i.jsx(p,k(v({},m),{className:f,style:h,children:l}))},Pr=e=>{const{title:t,children:n,icon:o,actionsSlot:r,color:s="neutral",inline:a,bleed:l,className:d,attributes:m}=e,_=s==="neutral",p=()=>a?i.jsxs(i.Fragment,{children:[t&&i.jsx(Y,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(Y,{variant:"body-3",as:"span",children:n})]}):i.jsxs(V,{gap:1,children:[t&&i.jsx(Y,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(Y,{variant:"body-3",children:n})]}),f=h=>r?i.jsxs(V,{gap:2,direction:a?"row":"column",children:[a?i.jsx(V.Item,{grow:!0,children:h}):h,r&&i.jsx(Y,{variant:"body-3",weight:"medium",children:i.jsx(V,{direction:"row",gap:3,children:r})})]}):h;return i.jsx(V,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:k(v({},m),{role:s==="critical"?"alert":"status"}),children:o?i.jsxs(i.Fragment,{children:[i.jsx(ne,{svg:o,size:5,color:_?"primary":s}),i.jsx(V.Item,{grow:!0,children:f(p())})]}):f(p())})},Gn=u.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Mr=Gn.Provider,Ct=()=>u.useContext(Gn),Ge=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=Ct();return{attributes:e,required:t,hasError:n,disabled:o}},Jn={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},_n=(e,t)=>`${e}-${t||"caption"}`,Ft=e=>{const{children:t,id:n,required:o,hasError:r,group:s,disabled:a,size:l}=e,d=ze(n),m=s?"fieldset":"div",[_,p]=u.useState(!1),[f,h]=u.useState(!1),x=[_&&_n(d),f&&_n(d,"error")].filter(Boolean).join(" "),b={id:d,"aria-describedby":x},w=()=>{h(!0)},y=()=>{p(!0)};return i.jsx(m,{children:i.jsx(Mr,{value:{required:o,hasError:r,errorRef:w,helperRef:y,attributes:b,group:s,disabled:a,size:l},children:t})})},Sr=e=>{const{children:t}=e,{attributes:n,required:o,group:r,disabled:s,size:a}=Ct(),l=`${n.id}-label`,d=r?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return i.jsxs(Y,k(v({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:Jn.label,color:s?"disabled":void 0,children:[t,o&&i.jsx(Y,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},Xn=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:r,size:s,helperRef:a,errorRef:l}=Ct(),d=_n(r.id,n),m=n==="error"?"critical":"neutral-faded",_=n==="error"?l:a;return i.jsx(Y,{as:"span",variant:s==="large"?"body-3":"caption-1",color:o&&!n?"disabled":m,attributes:{id:d,role:m?"alert":void 0,ref:_},className:Jn.caption,children:t})},Fr=e=>{const{children:t}=e,{disabled:n}=Ct();return i.jsx(Xn,{disabled:n,children:t})},Ar=e=>{const{children:t}=e,{hasError:n}=Ct();return n?i.jsx(Xn,{variant:"error",children:t}):null};Ft.Label=Sr,Ft.Helper=Fr,Ft.Error=Ar;const ge={root:"_root_v29im_1",input:"_input_v29im_16",slot:"_slot_v29im_37",icon:"_icon_v29im_38",affix:"_affix_v29im_39",attachment:"_attachment_v29im_55","attachment--position-start":"_attachment--position-start_v29im_60","attachment--position-end":"_attachment--position-end_v29im_73","--disabled":"_--disabled_v29im_86","--size-medium":"_--size-medium_v29im_1","--size-large":"_--size-large_v29im_1","--size-xlarge":"_--size-xlarge_v29im_1","--variant-faded":"_--variant-faded_v29im_150","--variant-headless":"_--variant-headless_v29im_159","--status-error":"_--status-error_v29im_164","--size-medium--m":"_--size-medium--m_v29im_1","--size-large--m":"_--size-large--m_v29im_1","--size-xlarge--m":"_--size-xlarge--m_v29im_1","--size-medium--l":"_--size-medium--l_v29im_1","--size-large--l":"_--size-large--l_v29im_1","--size-xlarge--l":"_--size-xlarge--l_v29im_1","--size-medium--xl":"_--size-medium--xl_v29im_1","--size-large--xl":"_--size-large--xl_v29im_1","--size-xlarge--xl":"_--size-xlarge--xl_v29im_1"},Qn=e=>{const{slot:t,icon:n,size:o,affix:r,position:s}=e;if(!n&&!t&&!r)return null;const a=I(ge.attachment,ge[`attachment--position-${s}`]),l=[t&&i.jsx("div",{className:ge.slot,children:t},"slot"),n&&i.jsx("div",{className:ge.icon,children:i.jsx(ne,{size:Ee(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),r&&i.jsx("div",{className:ge.affix,children:r},"affix")].filter(Boolean);return i.jsx("span",{className:a,children:s==="end"?l.reverse():l})},Zn=e=>{var E;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:a,placeholder:l,icon:d,endIcon:m,startSlot:_,endSlot:p,prefix:f,suffix:h,size:x="medium",variant:b="outline",className:w,attributes:y}=e,g=Ge(),C=ze(e.id),T=(g==null?void 0:g.attributes.id)||((E=e.inputAttributes)==null?void 0:E.id)||C,z=(g==null?void 0:g.disabled)||e.disabled,M=(g==null?void 0:g.hasError)||e.hasError,P=v(v({},e.inputAttributes),g==null?void 0:g.attributes),S=I(ge.root,w,x&&O(ge,"--size",x),M&&ge["--status-error"],z&&ge["--disabled"],b&&ge[`--variant-${b}`]),K=H=>{t&&t({name:r,value:H.target.value,event:H})};return i.jsxs("div",k(v({},y),{className:S,children:[i.jsx(Qn,{position:"start",icon:d,slot:_,size:x,affix:f}),i.jsx("input",k(v({},P),{className:ge.input,disabled:z,name:r,placeholder:l,value:s,defaultValue:a,onChange:K,onFocus:n||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur),id:T})),i.jsx(Qn,{position:"end",icon:m,slot:p,size:x,affix:h})]}))},Lr="Enter",qr="Tab",eo="ArrowUp",to="ArrowDown",no="ArrowRight",oo="ArrowLeft",mn="data-rs-keyboard",At="data-rs-focus";class Or{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,o=n&&this.get(n),r=this.generateId();return this.chain[r]={previousId:n,data:t},o&&(o.nextId=r),this.tailId=r,r}remove(t){var d,m;const n=this.chain[t];if(!n)return;const o=n.previousId,r=o&&this.get(o),s=n.nextId,a=s&&this.get(s);r&&(r.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(m=n.previousId)!=null?m:null),s||(this.tailId=o!=null?o:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const o=this.get(t),r=this.remove(t);return!o||!o.previousId||n(o)?r:this.removePreviousTill(o.previousId,n)}}const ro=()=>document.documentElement.hasAttribute(mn),so='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Lt=()=>document.querySelector(`[${At}]`)||document.activeElement,io=(e,t)=>{const o=Array.from(e.querySelectorAll(so)).filter(r=>!r.hasAttribute("disabled")&&r.clientHeight>0);return t&&o.length&&o.unshift(t),o},ao=e=>{const{root:t,extraElement:n,target:o,mode:r}=e,s=io(t,n),a=s.length-1,l=Lt(),d=s.indexOf(l),m={next:d+1,prev:d-1,first:0,last:a};let _=m[o];const p=_>a||_<0;return p&&(r==="action-menu"?_=o==="prev"?m.first:m.last:_=o==="prev"?m.last:m.first),{overflow:p,el:s[_]}},fn=(e,t)=>{var n;(n=document.querySelector(`[${At}]`))==null||n.removeAttribute(At),t==="selection-menu"?e.setAttribute(At,"true"):e.focus()},qt=(e,t)=>{const n=ao({root:e,target:t});fn(n.el)},Dr=e=>qt(e,"next"),Vr=e=>qt(e,"prev"),Br=e=>qt(e,"first"),Wr=e=>qt(e,"last"),Hr=(()=>{let e=[];const t=o=>{let r=o.parentNode&&o.parentNode.firstChild;for(;r;){const s=r!==o,a=r.nodeType===1&&!r.hasAttribute("aria-hidden");s&&a&&(r.setAttribute("aria-hidden","true"),e.push(r)),r=r.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let r=o;for(e.length&&n();r!==document.body;)t(r),r=r.parentElement;return{release:n}}})(),Ot=(()=>{let e=null,t=null;const n=new Or;return(o,r={})=>{const{mode:s="dialog",onNavigateOutside:a,includeTrigger:l}=r,d=Lt(),m=s==="dialog",_=s==="content-menu",p=s==="selection-menu",f=m||_,h=s==="action-menu"||p;let x;const b=(C={})=>{const{withoutFocusReturn:T}=C;n.removePreviousTill(x,M=>document.body.contains(M.data.trigger)),d&&d.focus({preventScroll:T||!ro()}),e&&(e(),t&&t.release(),e=null,t=null);const z=n.tailId&&n.get(n.tailId);z&&Ot(z.data.root,z.data.options)},w=C=>{const T=C.key,z=T===qr,M=z&&!C.shiftKey,P=z&&C.shiftKey,S=h&&T===eo,K=h&&T===to,E=P&&f||S,H=M&&f||K,B=ao({root:o,target:E?"prev":"next",extraElement:l?d:void 0,mode:s});if(z&&h||_&&z&&B.overflow){P&&Lt()!==d&&C.preventDefault(),b(),a==null||a();return}!E&&!H||(C.preventDefault(),B.el&&fn(B.el,s))};e&&e(),m&&(t=Hr(o));const y=io(o,l?d:void 0);if(!y.length)return null;const g=n.tailId&&n.get(n.tailId);return(!g||o!==g.data.root)&&(x=n.add({root:o,trigger:d,options:r}),fn(y[0],s)),document.addEventListener("keydown",w),e=()=>document.removeEventListener("keydown",w),b}})(),Rr=100,Ur=150;let rt={},Ie=null;const lo=e=>{rt[e]&&(e===Ie&&(Ie=rt[e].parentId),delete rt[e],Ie===null&&(rt={}))},Kr=(e,t,n)=>{var s;const o=Ie?rt[Ie]:void 0;!((n==null?void 0:n.current)&&o&&((s=o.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&Ie&&lo(Ie),rt[e]={parentId:Ie,triggerRef:n,contentRef:t},Ie=e},co=(e=!1,t,n)=>{const o=ze(),r=u.useCallback(()=>Ie===o,[o]);return u.useEffect(()=>{e?Kr(o,t,n):lo(o)},[e,o,t,n]),r},re=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,st="+",xe={},pn=[],uo=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),vn=e=>uo(e).split(st).sort().join(st),_o=e=>e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase(),Yr=e=>{const t=[],n=e.join(st),r=vn(n).split(st),s=(a,l)=>{l.forEach((d,m)=>{const _=a?`${a}+${d}`:d;t.push(_),s(_,l.slice(m+1))})};return s("",r),t},Gr=(e,t)=>{const n=Object.keys(e);n.length&&Yr(n).forEach(o=>{t(o)})},hn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const r=e[n];r&&t(vn(o),r)})})};class Jr{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{hn(t,(o,r)=>{r&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:r,ref:n}))})},this.unbindHotkeys=t=>{hn(t,(n,o)=>{var r,s;o&&((r=this.hotkeyMap[n])==null||r.data.forEach(a=>{a.callback===o&&this.hotkeyMap[n].data.delete(a)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{Gr(t,o=>{const r=this.hotkeyMap[o];!r||r.used||r!=null&&r.data.size&&r.data.forEach(s=>{var a;(a=s.ref)!=null&&a.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=vn(t.key);hn(this.hotkeyMap,(o,r)=>{o.split(st).includes(n)&&(r.used=!1)})}}}const Dt=new Jr,mo=u.createContext({}),Xr=e=>{const{children:t}=e,[n,o]=u.useState(0),[r,s]=u.useState(0),a=u.useCallback(f=>{if(f.repeat||r===0)return;const h=_o(f);xe[h]=f,(h==="meta"||h==="control")&&(xe.mod=f),o(Object.keys(xe).length),h==="meta"&&pn.push(...Object.keys(xe)),xe.Meta&&pn.push(h)},[r]),l=u.useCallback(f=>{if(r===0)return;const h=_o(f);delete xe[h],(h==="meta"||h==="control")&&delete xe.mod,h==="meta"&&pn.forEach(x=>{delete xe[x]}),o(Object.keys(xe).length)},[r]),d=f=>!uo(f).split(st).some(x=>!xe[x]),m=u.useCallback((f,h)=>(s(x=>x+1),Dt.bindHotkeys(f,h),()=>{s(x=>x-1),Dt.unbindHotkeys(f)}),[]),_=u.useCallback(f=>{a(f),Dt.handleKeyDown(xe,f)},[a]),p=u.useCallback(f=>{l(f),Dt.handleKeyUp(f)},[l]);return u.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",p),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",p)}),[_,p]),i.jsx(mo.Provider,{value:{addHotkeys:m,isPressed:d},children:t})},Qr=()=>u.useContext(mo),Je=(e,t=[],n)=>{const{addHotkeys:o,isPressed:r}=Qr(),s=u.useRef(null),a=(n==null?void 0:n.ref)||s;return u.useEffect(()=>{const l=o(e,a);return()=>l==null?void 0:l()},[o,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:r}},bn=u.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),Zr=e=>{const t=u.useState(e||!1),[n,o]=t;return re(()=>{const r=new MutationObserver(s=>{s.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&o(l)})});return r.observe(document.documentElement,{attributes:!0}),()=>r.disconnect()},[n]),re(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Xe=()=>u.useContext(bn).rtl,fo=u.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),gn=u.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),es=()=>{const{mode:e}=u.useContext(gn);return e},po=()=>{const{colorMode:e,theme:t,setTheme:n}=u.useContext(fo),{mode:o,setMode:r,invertMode:s}=u.useContext(gn);return u.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:r,invertColorMode:s}),[e,o,r,s,t,n])},ts={root:"_root_r30zs_1"},kt=e=>{const{name:t,defaultName:n,colorMode:o,children:r,className:s}=e,[a,l]=u.useState(n),d=es(),m=po(),_=!m.theme,p=t||a||m.theme,f=_?d:m.colorMode,x=o==="inverted"?f==="light"?"dark":"light":o||f,b=I(ts.root,s),w=y=>{l(y)};return re(()=>{if(!(!document||!_))return document.documentElement.setAttribute("data-rs-theme",p),document.documentElement.setAttribute("data-rs-color-mode",x),()=>{document.documentElement.removeAttribute("data-rs-theme"),document.documentElement.removeAttribute("data-rs-color-mode")}},[p,x,_]),i.jsx(fo.Provider,{value:{theme:p,colorMode:x,setTheme:w},children:i.jsx("div",{className:b,"data-rs-theme":_?void 0:p,"data-rs-color-mode":_?void 0:x,children:r})})},ns=e=>{const{defaultMode:t,children:n}=e,[o,r]=u.useState(t||"light"),s=u.useCallback(l=>{r(d=>(d!==l&&Nr(),l))},[]);re(()=>{jt(()=>{$r()})},[o]);const a=u.useMemo(()=>({mode:o,setMode:s,invertMode:()=>{s(o==="light"?"dark":"light")}}),[o,s]);return i.jsx(gn.Provider,{value:a,children:n})},vo=u.createContext({scopeRef:void 0}),ho=()=>u.useContext(vo),bo=e=>{var s;const{children:t,scopeRef:n}=e,o=ho(),r=n||o.scopeRef;return ie.createPortal(i.jsx(vo.Provider,{value:{scopeRef:r},children:i.jsx(kt,{children:t})}),((s=o.scopeRef)==null?void 0:s.current)||document.body)},go=16,Vt=["top-start","top","top-end"],Bt=["bottom-start","bottom","bottom-end"],Wt=["start","start-bottom","start-top"],Ht=["end","end-bottom","end-top"],os={top:[...Vt,...Bt,...Ht,...Wt],bottom:[...Bt,...Vt,...Ht,...Wt],start:[...Wt,...Ht,...Vt,...Bt],end:[...Ht,...Wt,...Vt,...Bt]},rs=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,xo=(e,t)=>Math.floor(e/2-t/2),ss=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return os[n]},xn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,r=t.scrollTop,s=r+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=r&&e.top+e.height<=s},yo=(e,t,n)=>{const{position:o,rtl:r,width:s,isInsidePortal:a}=n;let l=0,d=0,m=o;switch(r&&(m=rs(m)),(s==="full"||s==="trigger")&&(m=m.includes("top")?"top":"bottom"),m){case"bottom":case"top":l=xo(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(m){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=xo(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${m} position is not valid`);d=Math.round(d+(a?0:window.pageYOffset||0)),l=Math.round(l+(a?0:window.pageXOffset||0));let _=Math.ceil(t.width);const p=Math.ceil(t.height);return s==="full"?(l=go,_=window.innerWidth-go*2):s==="trigger"&&(_=e.width),{styles:{left:l,top:d,width:_,height:p},position:m}},wo={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},yn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},is=(e,t,n)=>{const{position:o,forcePosition:r,width:s}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(yn).forEach(_=>{const p=yn[_];a.style[_]=p.toString()}),s&&(s==="trigger"?a.style.width=`${l.width}px`:s!=="full"&&(a.style.width=s)),document.body.appendChild(a);const d=a.getBoundingClientRect();let m=yo(l,d,n);if(!xn(m.styles)&&!r){const _=ss(o),p=_.filter(h=>h==="top"||h==="bottom"),f=(h,x={})=>{const{fullWidth:b}=x;h.some(w=>{const y=k(v({},n),{width:b?"full":n.width,position:w}),g=yo(l,d,y);return xn(g.styles)?(m=g,!0):!1})};f(_),xn(m.styles)||f(p,{fullWidth:!0})}return a.parentNode.removeChild(a),m},as=(e,t)=>{switch(t.type){case"render":return k(v({},e),{status:"rendered"});case"position":return k(v({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:v(v({},wo),t.payload.styles)});case"show":return k(v({},e),{status:"visible"});case"hide":return k(v({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(v({},e),{status:"idle",styles:yn});default:throw new Error("Invalid reducer type")}},ls=(e,t,n)=>{const{position:o="bottom",forcePosition:r,width:s}=n,{scopeRef:a}=ho(),l=!!(a!=null&&a.current),[d]=Xe(),[m,_]=u.useReducer(as,{position:o,styles:wo,status:"idle"}),p=u.useCallback(()=>{_({type:"render"})},[]),f=u.useCallback(()=>{_({type:"show"})},[]),h=u.useCallback(()=>{_({type:"hide"})},[]),x=u.useCallback(()=>{_({type:"remove"})},[]),b=u.useCallback(()=>{if(!e.current||!t.current)return;const w=is(e.current,t.current,{width:s,position:o,forcePosition:r,rtl:d,isInsidePortal:l});_({type:"position",payload:w})},[e,t,o,d,r,s,l]);return u.useEffect(()=>{m.status==="rendered"&&b(),m.status==="positioned"&&jt(()=>f())},[m.status,b,f]),u.useMemo(()=>({position:m.position,styles:m.styles,status:m.status,updatePosition:b,render:p,hide:h,remove:x}),[p,b,h,x,m.position,m.styles,m.status])},cs=(e,t)=>{u.useEffect(()=>{if(!t)return;const n=o=>{let r=!1;e.forEach(s=>{(!s.current||s.current===o.target||s.current.contains(o.target))&&(r=!0)}),!r&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},jo=u.createContext({}),Rt=()=>u.useContext(jo),ds=jo.Provider,Co=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:r,forcePosition:s,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:m,contentClassName:_,contentAttributes:p,position:f,active:h,id:x,instanceRef:b}=e,[w]=Xe(),y=u.useRef(null),g=u.useRef(null),C=ze(x),T=u.useRef(),z=u.useRef(null),M=u.useRef(!1),P=u.useRef(!0),S=ls(y,g,{width:l,position:f,defaultActive:h,forcePosition:s}),K=Rt(),{status:E,updatePosition:H,render:B,hide:U,remove:A}=S,J=co(t!=="hover"&&E!=="idle",g,y),pe=u.useCallback(()=>{T.current&&clearTimeout(T.current)},[T]),de=u.useCallback(()=>{!M.current&&E==="idle"&&(n==null||n())},[E]),te=u.useCallback(X=>{var _e;!(t==="click"&&!J())&&E!=="idle"&&(o==null||o(),X!=null&&X.closeParents&&((_e=K==null?void 0:K.handleClose)==null||_e.call(K)))},[E,J,t]),Ze=u.useCallback(X=>{var ue;(ue=g.current)!=null&&ue.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||te()},[te,t,a]),mt=u.useCallback(()=>{de()},[de]),qe=u.useCallback(()=>{pe(),T.current=setTimeout(de,Rr)},[pe,T,de]),et=u.useCallback(()=>{pe(),T.current=setTimeout(()=>te(),Ur)},[pe,T,te]),Ce=u.useCallback(()=>{E==="idle"?de():te()},[E,de,te]);re(()=>{if(h){B();return}Er()&&!d?U():A()},[h,B,U,d]);const tt=u.useCallback(X=>{g.current!==X.currentTarget||X.propertyName!=="transform"||E==="hidden"&&A()},[A,E]);return re(()=>{E!=="visible"||!g.current||(z.current=Ot(g.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,te()}}))},[E,t,te,a]),u.useEffect(()=>{!d&&E!=="hidden"||d&&E!=="idle"||z.current&&(t==="hover"&&(M.current=!0,setTimeout(()=>{M.current=!1},100)),z.current({withoutFocusReturn:!P.current}),z.current=null,P.current=!0)},[E,t,d]),u.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),u.useEffect(()=>{const X=Dn(H,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[H]),u.useEffect(()=>{H()},[w,H]),u.useImperativeHandle(b,()=>({open:de,close:te}),[de,te]),Je({Escape:()=>te()},[te]),cs([g,y],()=>{P.current=!1,te()}),i.jsx(ds,{value:{id:C,flyout:S,triggerElRef:y,flyoutElRef:g,handleClose:te,handleOpen:de,handleFocus:mt,handleBlur:Ze,handleMouseEnter:qe,handleMouseLeave:et,handleTransitionEnd:tt,handleClick:Ce,triggerType:t,trapFocusMode:a,contentGap:m,contentClassName:_,contentAttributes:p},children:r})},us=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[r,s]=u.useState(t||!1),a=()=>{s(!1),n&&n()},l=()=>{s(!0),o&&o()};return i.jsx(Co,k(v({},e),{defaultActive:void 0,active:r,onClose:a,onOpen:l}))},_s=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:r,flyout:s,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:m,handleClick:_,handleOpen:p,trapFocusMode:f}=Rt();Je({[`${eo},${to}`]:()=>{s.status==="idle"&&p()}},[p,s.status],{ref:o});let h={onBlur:l,ref:o};return r==="click"&&(h.onClick=_),r==="hover"&&(h.onMouseEnter=d,h.onMouseLeave=m),(r==="hover"&&f!=="action-menu"||r==="focus")&&(h.onFocus=a,h["aria-describedby"]=n),(r==="click"||r==="focus"||f==="action-menu")&&(f==="dialog"?h["aria-haspopup"]="dialog":f==="selection-menu"?(h["aria-haspopup"]="listbox",h["aria-autocomplete"]="list"):h["aria-haspopup"]="menu",h["aria-expanded"]=s.status!=="idle",h["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(h)})},Nt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},ms=e=>{const{children:t,className:n,attributes:o}=e,{flyout:r,id:s,flyoutElRef:a,handleTransitionEnd:l,triggerType:d,handleMouseEnter:m,handleMouseLeave:_,contentGap:p,contentClassName:f,contentAttributes:h,trapFocusMode:x}=Rt(),{styles:b,status:w,position:y}=r,[g,C]=u.useState(!1);if(re(()=>{C(!0)},[]),w==="idle"||!g)return null;const T=I(Nt.content,w==="visible"&&Nt["--visible"],["visible","hidden"].includes(w)&&Nt["--animated"],y&&Nt[`--position-${y}`]),z=I(Nt.inner,n,f);let M;d==="hover"?M="tooltip":x==="dialog"?M="dialog":x==="selection-menu"?M="listbox":x==="action-menu"&&(M="menu");const P=i.jsx("div",{className:T,style:k(v({},b),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:l,onMouseEnter:d==="hover"?m:void 0,onMouseLeave:d==="hover"?_:void 0,children:i.jsx("div",k(v({role:M},o),{id:s,"aria-modal":d==="click",style:h==null?void 0:h.style,className:z,children:t}))});return i.jsx(bo,{children:P})},Be=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(Co,v({},e)):i.jsx(us,v({},e))};Be.Trigger=_s,Be.Content=ms;const wn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},fs={root:"_root_e7w6q_1"},jn=e=>{if(!e)return null;const t=Z("--rs-p",e);return{classNames:fs.root,variables:t}},it=e=>{var C;const{id:t,forcePosition:n,onOpen:o,onClose:r,active:s,defaultActive:a,children:l,width:d,contentGap:m,variant:_="elevated",triggerType:p="click",position:f="bottom",disableHideAnimation:h,instanceRef:x}=e,b=(C=e.padding)!=null?C:_==="headless"?0:4,w=e.trapFocusMode||(p==="hover"?"content-menu":void 0),y=jn(b),g=I(wn.content,!!d&&wn["content--has-width"],_&&wn[`content--variant-${_}`],y==null?void 0:y.classNames);return i.jsx(Be,{id:t,instanceRef:x,position:f,forcePosition:n,onOpen:o,onClose:r,trapFocusMode:w,triggerType:p,active:s,defaultActive:a,width:d,disableHideAnimation:h,contentGap:m,contentClassName:g,contentAttributes:{style:v({},y==null?void 0:y.variables)},children:l})};it.Trigger=Be.Trigger,it.Content=Be.Content;const Ae={root:"_root_b0foo_1",icon:"_icon_b0foo_17",content:"_content_b0foo_22","--rounded-corners":"_--rounded-corners_b0foo_27","--size-small":"_--size-small_b0foo_1","--size-medium":"_--size-medium_b0foo_1","--size-large":"_--size-large_b0foo_1","--color-neutral":"_--color-neutral_b0foo_66","--selected":"_--selected_b0foo_70","--color-critical":"_--color-critical_b0foo_76","--color-primary":"_--color-primary_b0foo_86","--disabled":"_--disabled_b0foo_107",aligner:"_aligner_b0foo_115","--rounded-corners-true--m":"_--rounded-corners-true--m_b0foo_1","--rounded-corners-false--m":"_--rounded-corners-false--m_b0foo_1","--size-small--m":"_--size-small--m_b0foo_1","--size-medium--m":"_--size-medium--m_b0foo_1","--size-large--m":"_--size-large--m_b0foo_1","--rounded-corners-true--l":"_--rounded-corners-true--l_b0foo_1","--rounded-corners-false--l":"_--rounded-corners-false--l_b0foo_1","--size-small--l":"_--size-small--l_b0foo_1","--size-medium--l":"_--size-medium--l_b0foo_1","--size-large--l":"_--size-large--l_b0foo_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_b0foo_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_b0foo_1","--size-small--xl":"_--size-small--xl_b0foo_1","--size-medium--xl":"_--size-medium--xl_b0foo_1","--size-large--xl":"_--size-large--xl_b0foo_1"},ps=e=>{const{children:t,className:n,attributes:o}=e,r=I(Ae.aligner,n);return i.jsx("div",k(v({},o),{className:r,children:t}))},vs=(e,t)=>{const{icon:n,startSlot:o,endSlot:r,children:s,color:a="primary",selected:l,disabled:d,onClick:m,href:_,size:p="medium",roundedCorners:f,className:h,attributes:x}=e,b=I(Ae.root,h,O(Ae,"--size",p),O(Ae,"--rounded-corners",f),a&&Ae[`--color-${a}`],l&&Ae["--selected"],d&&Ae["--disabled"]),w=Ee(p,g=>g==="large"?3:2),y=Ee(p,g=>g==="large"?5:4);return i.jsx(Te,{disabled:d,className:b,attributes:x,onClick:m,href:_,ref:t,children:i.jsxs(V,{direction:"row",gap:w,align:"center",children:[n&&i.jsx(ne,{svg:n,className:Ae.icon,size:y}),!n&&o,s&&i.jsx(V.Item,{grow:!0,className:Ae.content,children:s}),r]})})},Cn=u.forwardRef(vs);Cn.Aligner=ps;const Ut=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Kt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},kn=u.createContext(null),fe=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:r="action-menu"}=a,s=Fe(a,["children","position","triggerType","trapFocusMode"]);return i.jsx(it,k(v({},s),{position:n,padding:0,trapFocusMode:r,triggerType:o,children:t}))},hs=e=>{const{children:t,attributes:n,className:o}=e,r=u.useContext(kn),[s]=Xe(),{ref:a}=Je({[s?no:oo]:()=>{var d;(d=r==null?void 0:r.current)==null||d.close()},[Lr]:()=>{const d=Lt();d==null||d.click()}},[r==null?void 0:r.current]),l=I(Kt.menu,o);return i.jsx(it.Content,{className:l,attributes:k(v({},n),{ref:a}),children:t})},bs=e=>{const{children:t}=e;return i.jsx("div",{className:Kt.section,role:"group",children:t})},ko=e=>{const{onClick:t}=e,{handleClose:n}=Rt(),o=r=>{n&&n({closeParents:!0}),t&&t(r)};return i.jsx(Cn,k(v({},e),{roundedCorners:!0,className:Kt.item,attributes:k(v({},e.attributes),{role:"menuitem"}),onClick:o}))},gs=e=>{const{children:t}=e,n=u.useRef();return i.jsx(kn.Provider,{value:n,children:i.jsx(fe,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},xs=e=>{const l=e,{children:t,attributes:n}=l,o=Fe(l,["children","attributes"]),r=u.useContext(kn),[s]=Xe(),{ref:a}=Je({[s?oo:no]:()=>{var d;(d=r==null?void 0:r.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(ko,k(v({},o),{attributes:k(v({},n),{ref:a}),endSlot:i.jsx(ne,{autoWidth:!0,svg:Ut,className:Kt.arrow}),children:t}))},ys=e=>{const{children:t}=e;return i.jsx(fe.Trigger,{children:n=>i.jsx(xs,{attributes:n,children:t})})};fe.Trigger=it.Trigger,fe.Content=hs,fe.Section=bs,fe.Item=ko,fe.SubMenu=gs,fe.SubTrigger=ys;const No=u.createContext({}),$o=e=>{const w=e,{children:t,onChange:n,onItemSelect:o,name:r}=w,s=Fe(w,["children","onChange","onItemSelect","name"]),[a,l]=u.useState(!1),[d,m]=u.useState(!1),_=!!u.Children.toArray(t).filter(Boolean).length,p=()=>l(!0),f=()=>l(!1),h=y=>{n==null||n(y),m(!1),p()},x=y=>{n==null||n({value:y.value,name:r}),o==null||o({value:y.value}),m(!0)},b=y=>{var g;requestAnimationFrame(()=>{d&&(l(!1),m(!1))}),(g=s.onFocus)==null||g.call(s,y)};return i.jsx(No.Provider,{value:{onItemClick:x},children:i.jsxs(fe,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!d&&_&&a,onClose:f,onOpen:p,disableHideAnimation:!0,children:[i.jsx(fe.Trigger,{children:C=>{var T=C,{ref:y}=T,g=Fe(T,["ref"]);return i.jsx(Zn,k(v({},s),{name:r,onChange:h,attributes:k(v({},s.attributes),{ref:y}),inputAttributes:k(v({},g),{onFocus:z=>{var M;(M=g.onFocus)==null||M.call(g),b(z)},role:"combobox"})}))}}),i.jsx(fe.Content,{children:t})]})})},ws=e=>{const a=e,{value:t,onClick:n}=a,o=Fe(a,["value","onClick"]),{onItemClick:r}=u.useContext(No),s=l=>{n==null||n(l),r({value:t})};return i.jsx(fe.Item,k(v({},o),{attributes:k(v({},o.attributes),{role:"option"}),onClick:s}))};$o.Item=ws;const Yt={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},js=e=>{const{color:t="neutral",variant:n,src:o,size:r=12,squared:s,initials:a,icon:l,alt:d,className:m,attributes:_}=e,p=s?Ee(r,b=>b>=24?"large":b>=12?"medium":"small"):"circular",f=xt(r),h=I(Yt.root,m,f==null?void 0:f.classNames,t&&Yt[`--color-${t}`],n&&Yt[`--variant-${n}`]),x=()=>o?i.jsx("img",{role:a?void 0:"presentation",src:o,alt:d,className:Yt.img}):l?i.jsx(ne,{svg:l,size:Ee(r,b=>Math.ceil(b*.4))}):a;return i.jsx(V,{borderRadius:p,attributes:k(v({},_),{style:v({},f==null?void 0:f.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:h,children:x()})},Eo=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),ye={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Cs=e=>{const{children:t,position:n="top-end",overlap:o,className:r,attributes:s}=e,a=I(ye.container,r,o&&ye["--container-overlap"],n&&ye[`--container-position-${n}`]);return i.jsx("div",k(v({},s),{className:a,children:t}))},zo=e=>{const{children:t,color:n,rounded:o,size:r="medium",icon:s,endIcon:a,variant:l,hidden:d,href:m,onClick:_,onDismiss:p,dismissAriaLabel:f,className:h,attributes:x}=e,b=!!(_||m),w=r==="large"?4:3.5,y=I(ye.root,h,o&&ye["--rounded"],d&&ye["--hidden"],r&&ye[`--size-${r}`],n&&ye[`--color-${n}`],l&&ye[`--variant-${l}`],b&&ye["--actionable"]);return i.jsxs(Te,{onClick:_,href:m,className:y,attributes:x,children:[s&&i.jsx(ne,{svg:s,autoWidth:!0,size:w}),t&&i.jsx(Y,{variant:r==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&i.jsx(ne,{svg:a,autoWidth:!0,size:w}),p&&i.jsx(Te,{onClick:p,className:ye.dismiss,as:"span",attributes:{"aria-label":f},children:i.jsx(ne,{svg:Eo,size:w})})]})};zo.Container=Cs;const Gt={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},To=e=>{const{size:t="small",color:n="primary",className:o,attributes:r}=e,s=r==null?void 0:r["aria-label"],a=I(Gt.root,o,O(Gt,"--size",t),n&&Gt[`--color-${n}`]);return i.jsx("span",k(v({},r),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:a,children:i.jsx("span",{className:Gt.inner})}))},oe={root:"_root_15bb6_1",loader:"_loader_15bb6_34",icon:"_icon_15bb6_42","--icon-position-end":"_--icon-position-end_15bb6_46",text:"_text_15bb6_57","--loading":"_--loading_15bb6_63","--elevated":"_--elevated_15bb6_80","--icon-only":"_--icon-only_15bb6_84","--rounded":"_--rounded_15bb6_90","--size-small":"_--size-small_15bb6_1","--size-medium":"_--size-medium_15bb6_1","--size-large":"_--size-large_15bb6_1","--size-xlarge":"_--size-xlarge_15bb6_1","--full-width":"_--full-width_15bb6_140","--variant-solid":"_--variant-solid_15bb6_154","--color-black":"_--color-black_15bb6_154","--color-white":"_--color-white_15bb6_155","--variant-faded":"_--variant-faded_15bb6_156","--color-neutral":"_--color-neutral_15bb6_156","--color-primary":"_--color-primary_15bb6_157","--color-critical":"_--color-critical_15bb6_158","--color-positive":"_--color-positive_15bb6_159","--color-inherit":"_--color-inherit_15bb6_160","--variant-outline":"_--variant-outline_15bb6_161","--variant-ghost":"_--variant-ghost_15bb6_162","--highlighted":"_--highlighted_15bb6_179","--disabled":"_--disabled_15bb6_530",aligner:"_aligner_15bb6_563","--aligner-position-all":"_--aligner-position-all_15bb6_567","--aligner-position-start":"_--aligner-position-start_15bb6_571","--aligner-position-end":"_--aligner-position-end_15bb6_575","--aligner-position-top":"_--aligner-position-top_15bb6_579","--aligner-position-bottom":"_--aligner-position-bottom_15bb6_583","--size-small--m":"_--size-small--m_15bb6_1","--size-medium--m":"_--size-medium--m_15bb6_1","--size-large--m":"_--size-large--m_15bb6_1","--size-xlarge--m":"_--size-xlarge--m_15bb6_1","--full-width-true--m":"_--full-width-true--m_15bb6_1","--full-width-false--m":"_--full-width-false--m_15bb6_1","--size-small--l":"_--size-small--l_15bb6_1","--size-medium--l":"_--size-medium--l_15bb6_1","--size-large--l":"_--size-large--l_15bb6_1","--size-xlarge--l":"_--size-xlarge--l_15bb6_1","--full-width-true--l":"_--full-width-true--l_15bb6_1","--full-width-false--l":"_--full-width-false--l_15bb6_1","--size-small--xl":"_--size-small--xl_15bb6_1","--size-medium--xl":"_--size-medium--xl_15bb6_1","--size-large--xl":"_--size-large--xl_15bb6_1","--size-xlarge--xl":"_--size-xlarge--xl_15bb6_1","--full-width-true--xl":"_--full-width-true--xl_15bb6_1","--full-width-false--xl":"_--full-width-false--xl_15bb6_1"},ks=e=>{const{children:t,position:n,className:o,attributes:r}=e,s=typeof n=="string"?[n]:n,a=s?s.map(d=>oe[`--aligner-position-${d}`]):[oe["--aligner-position-all"]],l=I(oe.aligner,o,...a);return i.jsx("div",k(v({},r),{className:l,children:t}))},Ns=(e,t)=>{const{variant:n="solid",color:o="neutral",elevated:r,highlighted:s,fullWidth:a,loading:l,disabled:d,type:m,href:_,size:p="medium",className:f,children:h,rounded:x,attributes:b,onClick:w,icon:y,endIcon:g}=e,C=(y||g)&&!h,T=I(oe.root,f,o&&oe[`--color-${o}`],n&&oe[`--variant-${n}`],O(oe,"--size",p),O(oe,"--full-width",a),r&&n!=="ghost"&&oe["--elevated"],x&&oe["--rounded"],d&&oe["--disabled"],l&&oe["--loading"],s&&oe["--highlighted"],C&&oe["--icon-only"]),z=M=>{if(!(M==="start"&&y||M==="end"&&g))return null;const E=I(oe.icon,M==="end"&&oe["--icon-position-end"]),H=Ee(p,B=>B==="large"?5:B==="xlarge"?6:4);return i.jsx(ne,{className:E,svg:M==="start"?y:g,size:H,autoWidth:!0})};return i.jsxs(Te,{disabled:d||l,className:T,attributes:b,type:m,onClick:w,href:_,ref:t,children:[l&&i.jsx("div",{className:oe.loader,children:i.jsx(To,{size:"small",color:"inherit"})}),z("start"),h&&i.jsx("span",{className:oe.text,children:h}),z("end")]})},we=u.forwardRef(Ns);we.Aligner=ks;const $t={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},$s=(e,t)=>{const{icon:n,disabled:o,href:r,color:s="primary",variant:a="underline",className:l,children:d,attributes:m,type:_,onClick:p}=e,f=I($t.root,l,o&&$t["--disabled"],a&&$t[`--variant-${a}`],s&&$t[`--color-${s}`],n&&$t["--with-icon"]);return i.jsxs(Te,{href:r,disabled:o,className:f,attributes:m,type:_,onClick:p,ref:t,children:[n&&i.jsx(ne,{svg:n}),d]})},Io=u.forwardRef($s),Es=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),zs=e=>{const{children:t,onClick:n,href:o,icon:r,disabled:s}=e;return!o&&!n&&!s?i.jsx(Y,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Io,{onClick:n,href:o,icon:r,disabled:s,variant:"plain",color:"inherit",children:t})},Po=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:r,ariaLabel:s,className:a,attributes:l}=e,d=r&&r>=2?r:null,[m,_]=u.useState(!1),p=I(a),f=u.Children.count(t);let h=0;const x=()=>{_(!0)};return i.jsx("nav",k(v({},l),{"aria-label":s||(l==null?void 0:l["aria-label"]),className:p,children:i.jsx(V,{as:"ol",direction:"row",gap:2,align:"center",children:u.Children.map(t,(b,w)=>{if(!b)return null;const y=f-(d||0),g=h===0,C=h>y,T=!d||g||C||m,z=h===y;h+=1;let M=null;return T?M=b:z&&(M=i.jsx(we.Aligner,{children:i.jsx(we,{variant:"ghost",size:"small",icon:Es,onClick:x})})),M===null?null:i.jsxs(V,{as:"li",gap:2,direction:"row",align:"center",children:[w>0&&(T||z)&&i.jsx(Y,{color:"neutral-faded",children:n||i.jsx(ne,{svg:Ut,size:3})}),i.jsx(Y,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:M})]},w)})})}))};Po.Item=zs;const at={root:"_root_10bg5_1",content:"_content_10bg5_11","--selected":"_--selected_10bg5_16","--elevated":"_--elevated_10bg5_21","--actionable":"_--actionable_10bg5_26"},Ts=(e,t)=>{const{padding:n=4}=e,{selected:o,elevated:r,bleed:s,height:a,onClick:l,href:d,children:m,className:_,attributes:p,as:f="div"}=e,h=!!d||!!l,x=an("medium"),b=Un(s),w=jn(n),y=xt(a),g=I(at.root,x==null?void 0:x.classNames,b==null?void 0:b.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,h&&at["--actionable"],r&&at["--elevated"],o&&at["--selected"],_),C=v(v(v(v({},p==null?void 0:p.style),b==null?void 0:b.variables),w==null?void 0:w.variables),y==null?void 0:y.variables);return h?i.jsx(Te,{className:g,attributes:k(v({},p),{style:C}),href:d,as:f,onClick:l,ref:t,children:i.jsx("span",{className:at.content,children:m})}):i.jsx(f,k(v({},p),{onClick:l,href:d,ref:t,className:g,style:C,children:i.jsx("span",{className:at.content,children:m})}))},Is=u.forwardRef(Ts),Mo=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})});var lt=(e=>(e.back="back",e.forward="forward",e))(lt||{});const Le={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},So=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:r,isRTL:s,mounted:a}=e,[l,d]=u.useState(!1),[m,_]=u.useState(!1),p=t===lt.forward,f=t===(s?lt.back:lt.forward),h=I(Le.control,f?Le["--control-next"]:Le["--control-prev"],l&&Le["--control-visible"],m&&Le["--control-rendered"]);return re(()=>{const x=n.current;if(!x||!a)return;let b;const w=Math.abs(o),y=w<=0,g=w+x.clientWidth>=x.scrollWidth-1;return(p?g:y)?(d(!1),b=setTimeout(()=>_(!1),1500)):(_(!0),d(!0)),()=>{b&&clearTimeout(b)}},[o,n.current,a]),i.jsx("div",{className:h,"aria-hidden":"true",children:i.jsx(we,{onClick:r,icon:f?Ut:Mo,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Ps=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:r,navigationDisplay:s,instanceRef:a,className:l,attributes:d}=e,[m,_]=u.useState(!1),[p,f]=u.useState(0),[h]=Xe(),x=u.useRef(null),b={};typeof r=="object"&&Object.entries(r).forEach(([P,S])=>{b[P]=typeof S=="number"&&S>0});const w=I(Le.root,l,...O(Le,"--bleed",typeof r=="number"?!0:b)),y=lr(P=>{const S=P.target;f(S.scrollLeft)},16),g=()=>{const S=getComputedStyle(x.current).gap.split(" ")[0];return Number(S.replace("px",""))},C=()=>{const P=x.current;P.scrollBy({left:P.clientWidth+g(),top:0,behavior:"smooth"})},T=()=>{const P=x.current;P.scrollBy({left:-P.clientWidth-g(),top:0,behavior:"smooth"})},z=h?C:T,M=h?T:C;return u.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:M})),re(()=>{_(!0)},[]),i.jsxs("section",k(v({},d),{className:w,style:v(v({},Z("--rs-carousel-items",o)),Z("--rs-carousel-bleed",r)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(So,{isRTL:h,type:lt.back,scrollElRef:x,scrollPosition:p,onClick:z,mounted:m}),i.jsx(So,{isRTL:h,type:lt.forward,scrollElRef:x,scrollPosition:p,onClick:M,mounted:m})]}),i.jsx(V,{as:"ul",direction:"row",wrap:!1,gap:n,className:Le.scroll,attributes:{ref:x,onScroll:y},children:u.Children.map(t,P=>i.jsx(V.Item,{className:Le.item,as:"li",children:P}))})]}))},Ms={root:"_root_1feer_1"},Nn=e=>{const{name:t,value:n,type:o,onChange:r,onFocus:s,onBlur:a,checked:l,defaultChecked:d,disabled:m,className:_,attributes:p}=e,f=I(Ms.root,_);return i.jsx("input",k(v({},p),{className:f,type:o,name:t,value:n,checked:l,defaultChecked:d,disabled:m,onChange:r,onFocus:s||(p==null?void 0:p.onFocus),onBlur:a||(p==null?void 0:p.onBlur)}))},Fo=u.createContext(null),Ss=()=>u.useContext(Fo),Ao=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:a}=e,l=d=>{const{event:m,value:_,checked:p}=d;if(!_)return;let f=[...r];p?f.push(_):f=f.filter(h=>h!==_),t&&t({name:n,value:f,event:m})};return i.jsx(Fo.Provider,{value:{onChange:l,disabled:o,value:r,name:n,hasError:a},children:s})},Fs=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=u.useState(t||[]),s=a=>{a.value&&(r(a.value),n&&n(a))};return i.jsx(Ao,k(v({},e),{value:o,defaultValue:void 0,onChange:s}))},As=e=>{const{value:t}=e;return t!==void 0?i.jsx(Ao,v({},e)):i.jsx(Fs,v({},e))},Ls=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),We={root:"_root_nib7w_1",decorator:"_decorator_nib7w_10",field:"_field_nib7w_14",icon:"_icon_nib7w_26",input:"_input_nib7w_34","--error":"_--error_nib7w_40","--disabled":"_--disabled_nib7w_77"},qs=e=>{var z;const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,indeterminate:a,className:l,attributes:d,inputAttributes:m}=e,_=Ss(),p=Ge(),f=(p==null?void 0:p.hasError)||e.hasError||(_==null?void 0:_.hasError),h=(p==null?void 0:p.disabled)||e.disabled||(_==null?void 0:_.disabled),x=_?(z=_.value)==null?void 0:z.includes(n):e.checked,b=_?void 0:e.defaultChecked,w=_?_.name:e.name,y=u.useRef(null),g=t?"label":"span",C=I(We.root,l,f&&We["--error"],h&&We["--disabled"]),T=M=>{if(!w)return;const{checked:P}=M.target,S={name:w,value:n,checked:P,event:M};o&&o(S),_!=null&&_.onChange&&_.onChange(S)};return re(()=>{y.current.indeterminate=a||!1},[a]),i.jsxs(g,k(v({},d),{className:C,children:[i.jsxs("span",{className:We.field,children:[i.jsx(Nn,{className:We.input,type:"checkbox",checked:x,defaultChecked:b,name:w,disabled:h,value:n,onChange:T,onFocus:r,onBlur:s,attributes:k(v({},m),{ref:y})}),i.jsx("div",{className:We.decorator,children:i.jsx(ne,{svg:Ls,className:We.icon})})]}),t&&i.jsx("span",{className:We.text,children:t})]}))},Os={root:"_root_1c40o_1"},Ds=e=>{const{children:t,padding:n=4,width:o,className:r,attributes:s}=e,a=I(Os.root,r);return i.jsx(V,{attributes:s,className:a,paddingInline:n,width:o,maxWidth:"100%",children:t})},Et={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},Vs=e=>{const{children:t,align:n,onClose:o,hideCloseButton:r,variant:s,closeAriaLabel:a,className:l,attributes:d}=e,m=I(Et.root,l,s&&Et[`--variant-${s}`],n&&Et[`--align-${n}`],r&&Et["--hide-close"]),_=s==="media"?"div":we.Aligner;return i.jsxs("div",k(v({},d),{className:m,children:[t,!r&&i.jsx(_,{className:Et.close,children:i.jsx(we,k(v({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?a:void 0},icon:Eo}))})]}))},Bs={root:"_root_r7flr_1"},Ws=e=>{const{children:t}=e;return i.jsx("div",{className:Bs.root,children:t})},Lo={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},Hs=e=>{const{children:t,active:n,className:o,attributes:r}=e,s=I(Lo.root,n&&Lo["--active"],o);return i.jsx(Y,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:r,children:t})},Jt={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},Rs=e=>{const{src:t,alt:n,width:o,height:r,onLoad:s,onError:a,fallback:l,displayMode:d="cover",borderRadius:m,className:_,attributes:p,imageAttributes:f}=e,[h,x]=u.useState("loading"),b=an(m),w=Kn(o),y=xt(r),g=I(Jt.root,b==null?void 0:b.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,d&&Jt[`--display-mode-${d}`],_),C=I(Jt.image,g),T=I(Jt.fallback,g),z=v(v({},w==null?void 0:w.variables),y==null?void 0:y.variables),M=S=>{x("success"),s==null||s(S)},P=S=>{x("error"),a==null||a(S)};return u.useEffect(()=>{x("loading")},[t]),(h==="error"||!t)&&l?typeof l=="string"?i.jsx("img",k(v({},p),{src:l,alt:n,role:n?void 0:"presentation",className:T,style:z})):i.jsx("div",k(v({},p),{className:T,style:z,children:l})):i.jsx("img",k(v(v({},p),f),{src:t,alt:n,role:n?void 0:"presentation",onLoad:M,onError:P,className:C,style:z}))},$n=e=>{const[t,n]=u.useState(e||!1),o=u.useCallback(()=>{n(!0)},[]),r=u.useCallback(()=>{n(!1)},[]),s=u.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:o,deactivate:r,toggle:s}},Us=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),qo=()=>{const[e,t]=u.useState(!1),n=u.useRef(),o=u.useRef(!1),r=u.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(o.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",o.current){const d=Us();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),s=u.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:r,unlockScroll:s}},ct={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Oo=e=>{const{active:t,children:n,transparent:o,onClose:r,className:s,attributes:a}=e,[l,d]=u.useState(!1),m=u.useRef(null),_=u.useRef(null),p=u.useRef(!1),f=u.useRef(null),{lockScroll:h,unlockScroll:x}=qo(),{active:b,activate:w,deactivate:y}=$n(t||!1),{active:g,activate:C,deactivate:T}=$n(t||!1),z=co(t,m),M=I(ct.root,g&&ct["--visible"],o&&ct["--transparent"],s),P=A=>{if(!m.current)return;const J=m.current.firstChild;if(J)return J.contains(A)},S=()=>{m.current&&(f.current=Ot(m.current))},K=()=>{f.current&&(f.current(),f.current=null)},E=u.useCallback(()=>{!g||!z()||r&&r()},[g,z]),H=A=>{p.current=!P(A.target)},B=A=>{const J=!P(A.target);p.current&&J&&!o&&E()},U=A=>{A.propertyName!=="opacity"||A.target!==A.currentTarget||g||(o||x(),y())};return Je({Escape:E},[E]),u.useEffect(()=>{t&&!b&&w(),!t&&b&&T()},[t,w,T,b]),u.useEffect(()=>{b&&(o||h(),jt(()=>C()))},[b,C,h,o]),u.useEffect(()=>{if(b)return S(),()=>K()},[b]),u.useEffect(()=>()=>{o||x()},[x,o]),re(()=>{d(!0)},[]),!b||!l?null:i.jsx(bo,{scopeRef:_,children:i.jsx("div",k(v({},a),{ref:_,role:"button",tabIndex:-1,className:M,onMouseDown:H,onMouseUp:B,onTransitionEnd:U,children:i.jsx("div",{className:ct.wrapper,children:i.jsx("div",{className:ct.inner,children:i.jsx("div",{className:ct.content,ref:m,children:typeof n=="function"?n({active:g}):n})})})}))})},En={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Do=u.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Vo=()=>u.useContext(Do),Ks=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=Vo();return u.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(Y,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},Ys=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=Vo();return u.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(Y,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},zn=e=>{const{children:t,onClose:n,active:o,size:r,padding:s=4,position:a="center",transparentOverlay:l,className:d,attributes:m}=e,_=ze(),[p,f]=u.useState(!1),[h,x]=u.useState(!1),b=jn(s),w=u.useMemo(()=>({titleMounted:p,setTitleMounted:f,subtitleMounted:h,setSubtitleMounted:x,id:_}),[_,h,p]);return i.jsx(Oo,{onClose:n,active:o,transparent:l,children:({active:y})=>{const g=I(En.root,d,b==null?void 0:b.classNames,y&&En["--active"],O(En,"--position",a));return i.jsx(Do.Provider,{value:w,children:i.jsx("div",k(v({},m),{style:v(v({},b==null?void 0:b.variables),Z("--rs-modal-size",r)),"aria-labelledby":p?`${_}-title`:void 0,"aria-describedby":h?`${_}-subtitle`:void 0,className:g,"aria-modal":"true",role:"dialog",children:t}))})}})};zn.Title=Ks,zn.Subtitle=Ys;const zt={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},Gs=e=>{const{value:t=0,min:n=0,max:o=100,color:r="primary",size:s="medium",duration:a,className:l,attributes:d}=e,m=I(zt.root,l,r&&zt[`--color-${r}`],s&&zt[`--size-${s}`],!!a&&zt["--duration"]),_=o-n,p=t-n,x=`${Math.max(n,Math.min(o,p))/_*100-100}%`;return i.jsx("div",k(v({role:"progressbar"},d),{className:m,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:zt.value,style:{"--rs-progress-value":x,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Bo=u.createContext(null),Js=()=>u.useContext(Bo),Wo=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:a}=e,l=({event:d,value:m})=>{m&&t&&t({name:n,value:m,event:d})};return i.jsx(Bo.Provider,{value:{onChange:l,disabled:o,value:r,name:n,hasError:a},children:s})},Xs=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=u.useState(t||null),s=a=>{a.value&&(r(a.value),n&&n(a))};return i.jsx(Wo,k(v({},e),{value:o,defaultValue:void 0,onChange:s}))},Qs=e=>{const{value:t}=e;return t!==void 0?i.jsx(Wo,v({},e)):i.jsx(Xs,v({},e))},Qe={root:"_root_13ir2_1",input:"_input_13ir2_9",decorator:"_decorator_13ir2_9",field:"_field_13ir2_13","--error":"_--error_13ir2_43",text:"_text_13ir2_55","--disabled":"_--disabled_13ir2_66"},Zs=e=>{const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,className:a,attributes:l,inputAttributes:d}=e,m=Ge(),_=Js(),p=(m==null?void 0:m.hasError)||e.hasError||(_==null?void 0:_.hasError),f=(m==null?void 0:m.disabled)||e.disabled||(_==null?void 0:_.disabled),h=_?_.value===n:e.checked,x=_?void 0:e.defaultChecked,b=_?_.name:e.name,w=t?"label":"span",y=I(Qe.root,a,p&&Qe["--error"],f&&Qe["--disabled"]),g=C=>{if(!b)return;const{checked:T}=C.target,z={name:b,value:n,checked:T,event:C};o&&o(z),_!=null&&_.onChange&&_.onChange(z)};return i.jsxs(w,k(v({},l),{className:y,children:[i.jsxs("span",{className:Qe.field,children:[i.jsx(Nn,{className:Qe.input,type:"radio",checked:h,defaultChecked:x,name:b,disabled:f,value:n,onChange:g,onFocus:r,onBlur:s,attributes:d}),i.jsx("div",{className:Qe.decorator})]}),t&&i.jsx("span",{className:Qe.text,children:t})]}))},Ho={short:4e3,long:8e3},Tt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Ro={queues:Tt.reduce((e,t)=>v({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},Xt=u.createContext(Ro),ei=()=>{const{add:e,hide:t}=u.useContext(Xt);return u.useMemo(()=>({show:e,hide:t}),[e,t])},Pe={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},ti=e=>{const{size:t="small",text:n,children:o,color:r="inverted",icon:s,title:a,actionsSlot:l,startSlot:d,collapsed:m,attributes:_}=e;let p=r==="inverted"||r==="neutral"?"elevation-overlay":r;r==="neutral"&&(p=m?"neutral":"elevation-overlay");const f=r==="neutral"?"neutral-faded":"transparent",h=t==="small"?"span":"div",x=t==="large";let b=[];l&&(b=Array.isArray(l)?l:[l]);const w=(a||n)&&i.jsxs(i.Fragment,{children:[a&&i.jsxs(Y,{variant:"body-3",weight:"bold",as:h,children:[a," "]}),i.jsx(Y,{variant:"body-3",as:h,children:n})]}),y=i.jsxs(V,{backgroundColor:p,borderColor:f,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:x?"start":"center",className:Pe.toast,attributes:_,children:[s&&i.jsx(ne,{size:5,svg:s,className:Pe.icon}),d&&!s&&i.jsx(V.Item,{children:d}),i.jsx(V.Item,{grow:!0,children:i.jsxs(V,{direction:x?"column":"row",align:x?"start":"center",gap:3,children:[i.jsx(V.Item,{grow:!0,children:w&&o||t!=="small"?i.jsxs(V,{gap:.5,children:[w,o&&i.jsx(V,{gap:3,children:o})]}):w||o}),b.length&&i.jsx(V,{direction:"row",align:"center",gap:2,children:b.map((g,C)=>{const T=t==="large"?C===0:C===b.length-1,M={variant:T?"solid":"ghost",size:"small",color:T?r==="neutral"||r==="inverted"?"neutral":"white":"inherit",elevated:r!=="neutral"};return g.type===we?u.createElement(we,k(v(v({},M),g.props),{key:C})):g})})]})})]});return r==="inverted"?i.jsx(kt,{colorMode:"inverted",children:y}):y},ni=e=>{const{toastProps:t,id:n,status:o,inspected:r,index:s}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:m}=u.useContext(Xt),[_,p]=u.useState(),f=u.useRef(),h=u.useRef(!1),x=u.useRef(null),b=u.useRef(null),w=o==="entered",y=I(Pe.container,w&&Pe["container--visible"],s===0&&Pe[`container--index-${s}`],!r&&(s===1||s===2)&&Pe[`container--index-${s}`],!r&&s>=3&&Pe["container--index-overflow"]),g=u.useCallback(()=>{f.current&&clearTimeout(f.current)},[]),C=u.useCallback(()=>{g();const z=typeof a=="string"?Ho[a]:a;a!==0&&(f.current=setTimeout(()=>{d(n)},z!=null?z:Ho.short))},[d,n,a,g]),T=z=>{z.propertyName==="height"&&(w||m(n))};return u.useEffect(()=>{w&&(r?g():C())},[r,C,g,w]),u.useEffect(()=>{b.current&&p(b.current.clientHeight),l(n),C()},[l,n,C]),u.useEffect(()=>{b.current&&(w?x.current=Ot(b.current,{includeTrigger:!0,mode:"content-menu"}):x.current&&ro()&&(x.current(),x.current=null))},[w]),u.useEffect(()=>{if(!w||s>0)return;const z=()=>{h.current=!0,jt(()=>{h.current=!1}),b.current&&p(b.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[w,s]),i.jsx("li",{className:y,style:{height:o==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:h.current?"0s":void 0},onTransitionEnd:T,onFocus:g,onBlur:C,children:i.jsx("span",{className:Pe.wrapper,children:i.jsx(ti,k(v({},t),{collapsed:s>0&&!r,attributes:{ref:b}}))})})},oi=e=>{const{position:t}=e,{queues:n,options:o}=u.useContext(Xt),[r,s]=u.useState(!1),a=u.useRef(!1),l=u.useRef(null),d=n[t],{width:m,expanded:_}=(o==null?void 0:o[t])||{},p=I(Pe.region,Pe[`region--position-${t}`]),f=d.filter(g=>g.status==="entered").length;let h=0;const x=()=>{a.current=!0},b=g=>{let C=g.target,T=!1;for(;C&&C!==l.current&&!T;)T=C.matches(so),C=C.parentElement;T||s(z=>!z),a.current=!1},w=()=>{a.current||s(!0)},y=()=>{a.current||s(!1)};return u.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:p,ref:l,onTouchStart:x,onClick:b,onMouseEnter:w,onMouseLeave:y,style:{width:m},children:d.map((g,C)=>{const T=f-C+h-1;return g.status!=="entered"&&(h+=1),i.jsx(ni,k(v({},g),{index:T,inspected:r||!!_}),g.id)})}):null};let ri=0;const si=()=>`__rs-toast-${ri++}`,ii=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:r="bottom-end"}=o,s=Fe(o,["position"]);return k(v({},e),{[r]:[...e[r],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:a}=t.payload;return n=v({},e),Tt.forEach(m=>{n[m]=n[m].map(_=>_.id===a?k(v({},_),{status:"entered"}):_)}),n;case"hide":const{id:l}=t.payload;return n=v({},e),Tt.forEach(m=>{n[m]=n[m].map(_=>_.id===l?k(v({},_),{status:"exiting"}):_)}),n;case"remove":const{id:d}=t.payload;return n=v({},e),Tt.forEach(m=>{n[m]=n[m].filter(_=>_.id!==d)}),n}},ai=e=>{const{children:t,options:n}=e,[o,r]=u.useReducer(ii,Ro.queues),s=u.useCallback(_=>{const p=si();return r({type:"add",payload:{toastProps:_,id:p}}),p},[]),a=u.useCallback(_=>{r({type:"show",payload:{id:_}})},[]),l=u.useCallback(_=>{r({type:"hide",payload:{id:_}})},[]),d=u.useCallback(_=>{r({type:"remove",payload:{id:_}})},[]),m=u.useMemo(()=>({queues:o,add:s,show:a,hide:l,remove:d,inspecting:!1,options:n}),[o,a,l,s,d,n]);return i.jsxs(Xt.Provider,{value:m,children:[t,Tt.map(_=>i.jsx(oi,{position:_},_))]})},li=()=>{u.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(mn,"true")},t=()=>{document.documentElement.removeAttribute(mn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},zl="",ci={root:"_root_18j53_1"},di=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:r}=e,s=Zr(n);return li(),i.jsx(bn.Provider,{value:{rtl:s,defaultViewport:o},children:i.jsx(Xr,{children:i.jsx(ai,{options:r,children:t})})})},ui=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:r}=e,s=I(ci.root,r);return i.jsx(ns,{defaultMode:o,children:i.jsx(kt,{name:t,defaultName:n,className:s,children:i.jsx(di,k(v({},e),{children:e.children}))})})},It={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},_i=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:r,className:s,scrimClassName:a}=e,l=I(It.root,!!n&&It["--with-background"],o&&It[`--position-${o}`],s),d=I(It.scrim,a);return i.jsxs("div",k(v({},r),{className:l,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:It.content,children:t})})]}))},mi=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),je={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},fi=e=>{var B,U;const{onChange:t,onClick:n,onFocus:o,onBlur:r,name:s,value:a,defaultValue:l,placeholder:d,options:m,children:_,icon:p,startSlot:f,size:h="medium",variant:x="outline",className:b,attributes:w}=e,[y,g]=u.useState(a===void 0?!l:!a),C=Ge(),T=ze(e.id),z=((B=C==null?void 0:C.attributes)==null?void 0:B.id)||((U=e.inputAttributes)==null?void 0:U.id)||T,M=(C==null?void 0:C.disabled)||e.disabled,P=(C==null?void 0:C.hasError)||e.hasError,S=v(v({},e.inputAttributes),C==null?void 0:C.attributes),K=I(je.root,b,h&&O(je,"--size",h),P&&je["--status-error"],M&&je["--disabled"],y&&m&&je["--placeholder"],x&&je[`--variant-${x}`]),E=A=>{const J=A.target.value;a===void 0&&g(!J),t&&t({name:s,value:J,event:A})};u.useEffect(()=>{a!==void 0&&g(!a)},[a]);const H=(f||p)&&i.jsx("div",{className:je.slot,children:p?i.jsx(ne,{size:Ee(h,A=>A==="large"?5:A==="xlarge"?6:4),svg:p,className:je.icon}):f});return i.jsxs("div",k(v({},w),{className:K,children:[m?i.jsxs(i.Fragment,{children:[H,i.jsxs("select",k(v({},S),{className:je.input,disabled:M,name:s,value:a,defaultValue:l,onChange:E,onFocus:o||(S==null?void 0:S.onFocus),onBlur:r||(S==null?void 0:S.onBlur),id:z,children:[d&&i.jsx("option",{value:"",children:d}),m.map(A=>i.jsx("option",{value:A.value,disabled:A.disabled,children:A.label},A.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(Te,{className:je.input,disabled:M,onClick:n,attributes:k(v({},S),{onFocus:o||(S==null?void 0:S.onFocus),onBlur:r||(S==null?void 0:S.onBlur)}),children:[H,_||(d?i.jsx(Y,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:a,name:s})]}),i.jsx("div",{className:je.arrow,children:i.jsx(ne,{svg:mi,color:"neutral-faded",size:Ee(h,A=>A==="large"||A==="xlarge"?5:4)})})]}))},pi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},vi=e=>{const{borderRadius:t="small",width:n,height:o,className:r,attributes:s}=e,a=I(pi.root,r);return i.jsx(V,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:a,attributes:s})},dt={root:"_root_o04k9_1",input:"_input_o04k9_9",area:"_area_o04k9_21",thumb:"_thumb_o04k9_25","root--size-small":"_root--size-small_o04k9_81","root--reversed":"_root--reversed_o04k9_101"},hi=e=>{var g;const{children:t,name:n,checked:o,size:r,reversed:s,defaultChecked:a,onChange:l,onFocus:d,onBlur:m,className:_,attributes:p}=e,f=I(dt.root,r&&dt[`root--size-${r}`],s&&dt["root--reversed"],_),h=Ge(),x=ze((h==null?void 0:h.attributes.id)||e.id||((g=e.inputAttributes)==null?void 0:g.id)),b=v(v({},e.inputAttributes),h==null?void 0:h.attributes),w=(h==null?void 0:h.disabled)||e.disabled,y=C=>{l&&l({name:n,event:C,checked:C.target.checked})};return i.jsxs("label",k(v({},p),{className:f,children:[i.jsx("input",k(v({type:"checkbox"},b),{className:dt.input,name:n,checked:o,defaultChecked:a,disabled:w,onChange:y,onFocus:d||(b==null?void 0:b.onFocus),onBlur:m||(b==null?void 0:b.onBlur),id:x})),i.jsx("span",{className:dt.area,"aria-hidden":"true",children:i.jsx("span",{className:dt.thumb})}),t&&i.jsx(Y,{variant:"body-3",weight:"medium",children:t})]}))},Uo=u.createContext({}),bi=Uo.Provider,Tn=e=>{const o=u.useContext(Uo),{id:t}=o,n=Fe(o,["id"]);return k(v({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Ko=e=>{const{children:t,value:n,onChange:o,onSilentChange:r,itemWidth:s,variant:a,name:l,direction:d="row",size:m="medium"}=e,_=ze(),p=f=>{f!==void 0&&r&&r({value:f,name:l})};return i.jsx(bi,{value:{value:n,name:l,size:m,direction:d,itemWidth:s,variant:a,onChange:o,id:_,setDefaultValue:p},children:t})},gi=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=u.useState(t),s=({value:l})=>{r(l),n&&n({value:l})},a=({value:l})=>{r(l)};return i.jsx(Ko,k(v({},e),{onChange:s,onSilentChange:a,value:o,defaultValue:void 0}))},G={root:"_root_eqstu_1",list:"_list_eqstu_12",inner:"_inner_eqstu_16",item:"_item_eqstu_23",button:"_button_eqstu_30",buttonContent:"_buttonContent_eqstu_46",icon:"_icon_eqstu_59",radio:"_radio_eqstu_64","--item-active":"_--item-active_eqstu_72",selector:"_selector_eqstu_77","--selector-hidden":"_--selector-hidden_eqstu_95","--selector-animated":"_--selector-animated_eqstu_99",next:"_next_eqstu_104",prev:"_prev_eqstu_105",panel:"_panel_eqstu_125","--panel-hidden":"_--panel-hidden_eqstu_133","--direction-row":"_--direction-row_eqstu_137","--direction-column":"_--direction-column_eqstu_205","--variant-borderless":"_--variant-borderless_eqstu_256","--variant-pills":"_--variant-pills_eqstu_257","--variant-pills-elevated":"_--variant-pills-elevated_eqstu_258","--size-medium":"_--size-medium_eqstu_329","--size-large":"_--size-large_eqstu_334","--item-width-equal":"_--item-width-equal_eqstu_339","--cut-off-start":"_--cut-off-start_eqstu_358","--cut-off-end":"_--cut-off-end_eqstu_359","--cut-off-both":"_--cut-off-both_eqstu_380"},xi=(e,t)=>{const{value:n,children:o,icon:r,active:s,visuallySelected:a,attributes:l}=e,{onChange:d,panelId:m,name:_,size:p}=Tn(n),f=I(G.item,a&&G["--item-active"]),h=!!_,x={role:"tab",tabIndex:s?0:-1,"aria-selected":s},b=()=>{d&&d({value:n,name:_})};return i.jsx("div",{className:f,ref:t,role:"presentation",children:i.jsxs(Te,{insetFocus:!0,onClick:_?void 0:b,className:G.button,as:_?"label":void 0,attributes:k(v(v({},l),!h&&x),{"aria-controls":m}),children:[_&&i.jsx(Nn,{type:"radio",name:_,value:n,checked:a,onChange:b,className:G.radio}),i.jsxs("span",{className:G.buttonContent,children:[r&&i.jsx(ne,{svg:r,className:G.icon,size:4}),o&&i.jsx(Y,{variant:p==="large"?"body-2":"body-3",children:o})]})]})})},Qt=u.forwardRef(xi),yi=e=>{const{children:t,className:n,attributes:o}=e,{value:r,setDefaultValue:s,itemWidth:a,variant:l,name:d,direction:m,size:_}=Tn(),[p]=Xe(),f=u.useRef(null),h=u.useRef(null),x=u.useRef(h.current),[b,w]=u.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),[y,g]=u.useState(null),C=I(G.root,_&&G[`--size-${_}`],m&&G[`--direction-${m}`],a&&G[`--item-width-${a}`],l&&G[`--variant-${l}`],y&&G[`--cut-off-${y}`],n),T=I(G.selector,b.status==="idle"&&G["--selector-hidden"],b.status==="animated"&&G["--selector-animated"]),z=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(p?-1:1),behavior:"smooth"})},M=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(p?1:-1),behavior:"smooth"})},P=()=>{w(E=>k(v({},E),{status:"idle"}))},S=u.useCallback(E=>({scaleX:E.clientWidth,scaleY:E.clientHeight,top:E.offsetTop,left:E.offsetLeft}),[]),{ref:K}=Je({"ArrowLeft, ArrowUp":E=>{d||(E.preventDefault(),Vr(f.current))},"ArrowRight, ArrowDown":E=>{d||(E.preventDefault(),Dr(f.current))},Home:E=>{d||(E.preventDefault(),Br(f.current))},End:E=>{d||(E.preventDefault(),Wr(f.current))}});return re(()=>{if(r)return;const E=u.Children.toArray(t)[0];!E||E.type!==Qt||s(E.props.value)},[r]),re(()=>{if(h.current===x.current)return;const E=S(x.current);w(k(v({},E),{status:"prepared"}))},[r,S]),re(()=>{if(b.status==="prepared"){const E=S(h.current);w(k(v({},E),{status:"animated"}))}},[b]),re(()=>{const E=f.current;if(!E||m==="column")return;const H=()=>{E.clientWidth<E.scrollWidth||g(null);const A=E.scrollLeft*(p?-1:1),J=A>1,pe=A+E.clientWidth<E.scrollWidth-1;if(pe&&J)return g("both");if(J)return g("start");if(pe)return g("end")},B=cr(H,100);return requestAnimationFrame(()=>{H()}),window.addEventListener("resize",B),E.addEventListener("scroll",B),()=>{window.removeEventListener("resize",B),E.removeEventListener("scroll",B)}},[p]),i.jsxs("div",k(v({},o),{className:C,children:[i.jsx("div",{className:G.inner,ref:f,children:i.jsxs("div",{className:G.list,role:"tablist",ref:K,children:[u.Children.map(t,E=>{if(!E||E.type!==Qt)return i.jsx("div",{className:G.item,children:E});const H=E.props.value,B=H===r;return u.createElement(Qt,k(v({},E.props),{ref:U=>{U&&B&&(x.current=h.current||U,h.current=U)},value:H,key:H,active:B,visuallySelected:B&&b.status==="idle"}))}),i.jsx("div",{onTransitionEnd:P,className:T,style:{"--rs-tab-selection-x":b.left,"--rs-tab-selection-y":b.top,"--rs-tab-selection-scale-x":b.scaleX,"--rs-tab-selection-scale-y":b.scaleY}})]})}),(y==="start"||y==="both")&&i.jsx("span",{className:G.prev,children:i.jsx(we,{onClick:M,size:"small",icon:Mo,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(y==="end"||y==="both")&&i.jsx("span",{className:G.next,children:i.jsx(we,{onClick:z,size:"small",icon:Ut,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},wi=e=>{const{value:t,children:n}=e,{value:o,panelId:r,buttonId:s}=Tn(t),a=t===o,l=I(G.panel,!a&&G["--panel-hidden"]);return i.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:r,"aria-labelledby":s,children:a&&n})},Zt=e=>{const{value:t}=e;return t!==void 0?i.jsx(Ko,v({},e)):i.jsx(gi,v({},e))};Zt.Item=Qt,Zt.List=yi,Zt.Panel=wi;const ut={root:"_root_16y23_1",input:"_input_16y23_5","--size-medium":"_--size-medium_16y23_1","--size-large":"_--size-large_16y23_1","--size-xlarge":"_--size-xlarge_16y23_1","--variant-faded":"_--variant-faded_16y23_69","--variant-headless":"_--variant-headless_16y23_80","--status-error":"_--status-error_16y23_87","--size-medium--m":"_--size-medium--m_16y23_1","--size-large--m":"_--size-large--m_16y23_1","--size-xlarge--m":"_--size-xlarge--m_16y23_1","--size-medium--l":"_--size-medium--l_16y23_1","--size-large--l":"_--size-large--l_16y23_1","--size-xlarge--l":"_--size-xlarge--l_16y23_1","--size-medium--xl":"_--size-medium--xl_16y23_1","--size-large--xl":"_--size-large--xl_16y23_1","--size-xlarge--xl":"_--size-xlarge--xl_16y23_1"},ji=e=>{var T,z;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:a,placeholder:l,size:d="medium",variant:m="outline",className:_,attributes:p}=e,f=Ge(),h=ze(e.id),x=((T=f==null?void 0:f.attributes)==null?void 0:T.id)||((z=e.inputAttributes)==null?void 0:z.id)||h,b=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,y=v(v({},e.inputAttributes),f==null?void 0:f.attributes),g=I(ut.root,d&&O(ut,"--size",d),w&&ut["--status-error"],b&&ut["--disabled"],m&&ut[`--variant-${m}`],_),C=M=>{t&&t({name:r,value:M.target.value,event:M})};return i.jsx("div",k(v({},p),{className:g,children:i.jsx("textarea",k(v({},y),{className:ut.input,rows:3,disabled:b,name:r,placeholder:l,value:s,defaultValue:a,onChange:C,onFocus:n||(y==null?void 0:y.onFocus),onBlur:o||(y==null?void 0:y.onBlur),id:x}))}))},In={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Pn=e=>{const{children:t,markerSlot:n,className:o,attributes:r}=e,s=n!==null,a=I(In.item,!s&&In["item--full-width"],o);return i.jsxs(V,{as:"li",direction:"row",align:"stretch",gap:3,attributes:r,className:a,children:[s&&i.jsx("span",{className:In.marker,children:n}),i.jsx(V.Item,{grow:!0,children:t})]})},Yo=e=>{const{children:t,className:n,attributes:o}=e,r=I(n);return i.jsx("ul",k(v({},o),{className:r,children:u.Children.map(t,(s,a)=>(s==null?void 0:s.type)===Pn?s:i.jsx(Pn,{children:s},a))}))};Yo.Item=Pn;const Ci={root:"_root_9090g_1"},ki=e=>{const{id:t,text:n,children:o,onOpen:r,onClose:s,position:a="bottom",active:l}=e;return i.jsxs(Be,{id:t,active:l,position:a,onOpen:r,onClose:s,triggerType:"hover",children:[i.jsx(Be.Trigger,{children:o}),i.jsx(Be.Content,{children:i.jsx(kt,{colorMode:"inverted",children:i.jsx(Y,{variant:"caption-1",className:Ci.root,children:n})})})]})},_t={m:660,l:900,xl:1280},Go={s:`(max-width: ${_t.m-1}px)`,m:`(min-width: ${_t.m}px) and (max-width: ${_t.l-1}px)`,l:`(min-width: ${_t.l}px) and (max-width: ${_t.xl-1}px)`,xl:`(min-width: ${_t.xl}px)`},Ni=e=>{const{defaultViewport:t}=u.useContext(bn),[n,o]=u.useState(t);return re(()=>{const s=Object.keys(Go).map(a=>{const l=window.matchMedia(Go[a]);return{mq:l,handler:()=>l.matches&&o(a)}});return s.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{s.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},$i=e=>{const{w:t="auto",h:n=50,children:o}=e;return i.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:o})};N.Accordion=dn,N.ActionBar=Tr,N.Actionable=Te,N.Alert=Pr,N.Autocomplete=$o,N.Avatar=js,N.Badge=zo,N.Breadcrumbs=Po,N.Button=we,N.Card=Is,N.Carousel=Ps,N.Checkbox=qs,N.CheckboxGroup=As,N.Container=Ds,N.Dismissible=Vs,N.Divider=Wn,N.DropdownMenu=fe,N.FormControl=Ft,N.Hidden=sn,N.HiddenVisually=Ws,N.Hotkey=Hs,N.Icon=ne,N.Image=Rs,N.Link=Io,N.Loader=To,N.MenuItem=Cn,N.Modal=zn,N.Overlay=Oo,N.Placeholder=$i,N.Popover=it,N.Progress=Gs,N.Radio=Zs,N.RadioGroup=Qs,N.Reshaped=ui,N.Scrim=_i,N.Select=fi,N.Skeleton=vi,N.Switch=hi,N.Tabs=Zt,N.Text=Y,N.TextArea=ji,N.TextField=Zn,N.Theme=kt,N.Timeline=Yo,N.Tooltip=ki,N.View=V,N.classNames=I,N.responsiveClassNames=O,N.responsivePropDependency=Ee,N.useFormControl=Ge,N.useHotkeys=Je,N.useIsomorphicLayoutEffect=re,N.useRTL=Xe,N.useResponsiveClientValue=Ni,N.useScrollLock=qo,N.useTheme=po,N.useToast=ei,N.useToggle=$n,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,3 @@
1
+ import { BaseThemeDefinition } from "../tokens/types";
2
+ declare const base: BaseThemeDefinition;
3
+ export default base;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const base = {
4
+ viewport: {
5
+ s: { maxPx: 659 },
6
+ m: { minPx: 660 },
7
+ l: { minPx: 900 },
8
+ xl: { minPx: 1280 },
9
+ },
10
+ };
11
+ exports.default = base;
@@ -0,0 +1,3 @@
1
+ import { UserThemeDefinition } from "../tokens/types";
2
+ declare const theme: UserThemeDefinition;
3
+ export default theme;