@orangesk/orange-design-system 2.0.0-alpha.1 → 2.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1159) hide show
  1. package/build/components/Accordion/index.js +3 -1157
  2. package/build/components/Accordion/index.js.map +1 -1
  3. package/build/components/Accordion/style.css +1 -1
  4. package/build/components/Accordion/style.css.map +1 -1
  5. package/build/components/Alert/index.js +3 -1907
  6. package/build/components/Alert/index.js.map +1 -1
  7. package/build/components/Alert/style.css +1 -1
  8. package/build/components/Alert/style.css.map +1 -1
  9. package/build/components/AnchorNavigation/index.js +16 -0
  10. package/build/components/AnchorNavigation/index.js.map +1 -0
  11. package/build/components/AnchorNavigation/style.css +2 -0
  12. package/build/components/AnchorNavigation/style.css.map +1 -0
  13. package/build/components/Bar/index.js +16 -0
  14. package/build/components/Bar/index.js.map +1 -0
  15. package/build/components/Bar/style.css +2 -0
  16. package/build/components/Bar/style.css.map +1 -0
  17. package/build/components/BlockAction/index.js +16 -0
  18. package/build/components/BlockAction/index.js.map +1 -0
  19. package/build/components/BlockAction/style.css +2 -0
  20. package/build/components/BlockAction/style.css.map +1 -0
  21. package/build/components/BodyBanner/index.js +16 -0
  22. package/build/components/BodyBanner/index.js.map +1 -0
  23. package/build/components/BodyBanner/style.css +2 -0
  24. package/build/components/BodyBanner/style.css.map +1 -0
  25. package/build/components/Breadcrumbs/index.js +3 -674
  26. package/build/components/Breadcrumbs/index.js.map +1 -1
  27. package/build/components/Breadcrumbs/style.css +1 -1
  28. package/build/components/Breadcrumbs/style.css.map +1 -1
  29. package/build/components/Button/index.js +3 -721
  30. package/build/components/Button/index.js.map +1 -1
  31. package/build/components/Button/style.css +1 -1
  32. package/build/components/Button/style.css.map +1 -1
  33. package/build/components/Buttons/index.js +3 -601
  34. package/build/components/Buttons/index.js.map +1 -1
  35. package/build/components/Buttons/style.css +1 -1
  36. package/build/components/Buttons/style.css.map +1 -1
  37. package/build/components/Card/index.js +16 -0
  38. package/build/components/Card/index.js.map +1 -0
  39. package/build/components/Card/style.css +2 -0
  40. package/build/components/Card/style.css.map +1 -0
  41. package/build/components/Carousel/index.js +16 -0
  42. package/build/components/Carousel/index.js.map +1 -0
  43. package/build/components/Carousel/style.css +2 -0
  44. package/build/components/Carousel/style.css.map +1 -0
  45. package/build/components/CarouselPromotions/index.js +16 -0
  46. package/build/components/CarouselPromotions/index.js.map +1 -0
  47. package/build/components/CarouselPromotions/style.css +2 -0
  48. package/build/components/CarouselPromotions/style.css.map +1 -0
  49. package/build/components/CartTable/index.js +16 -0
  50. package/build/components/CartTable/index.js.map +1 -0
  51. package/build/components/CartTable/style.css +2 -0
  52. package/build/components/CartTable/style.css.map +1 -0
  53. package/build/components/Code/index.js +11 -0
  54. package/build/components/Code/index.js.map +1 -0
  55. package/build/components/Code/style.css +2 -0
  56. package/build/components/Code/style.css.map +1 -0
  57. package/build/components/Container/index.js +3 -598
  58. package/build/components/Container/index.js.map +1 -1
  59. package/build/components/Container/style.css +1 -1
  60. package/build/components/Container/style.css.map +1 -1
  61. package/build/components/Controls/index.js +16 -0
  62. package/build/components/Controls/index.js.map +1 -0
  63. package/build/components/Controls/style.css +2 -0
  64. package/build/components/Controls/style.css.map +1 -0
  65. package/build/components/Cover/index.js +16 -0
  66. package/build/components/Cover/index.js.map +1 -0
  67. package/build/components/Cover/style.css +2 -0
  68. package/build/components/Cover/style.css.map +1 -0
  69. package/build/components/Divider/index.js +16 -0
  70. package/build/components/Divider/index.js.map +1 -0
  71. package/build/components/Divider/style.css +2 -0
  72. package/build/components/Divider/style.css.map +1 -0
  73. package/build/components/DocumentationSidebar/index.js +16 -0
  74. package/build/components/DocumentationSidebar/index.js.map +1 -0
  75. package/build/components/DocumentationSidebar/style.css +2 -0
  76. package/build/components/DocumentationSidebar/style.css.map +1 -0
  77. package/build/components/Dropdown/index.js +16 -0
  78. package/build/components/Dropdown/index.js.map +1 -0
  79. package/build/components/Dropdown/style.css +2 -0
  80. package/build/components/Dropdown/style.css.map +1 -0
  81. package/build/components/Expander/index.js +16 -0
  82. package/build/components/Expander/index.js.map +1 -0
  83. package/build/components/Expander/style.css +2 -0
  84. package/build/components/Expander/style.css.map +1 -0
  85. package/build/components/FeatureAccordion/index.js +16 -0
  86. package/build/components/FeatureAccordion/index.js.map +1 -0
  87. package/build/components/FeatureAccordion/style.css +2 -0
  88. package/build/components/FeatureAccordion/style.css.map +1 -0
  89. package/build/components/Footer/index.js +16 -0
  90. package/build/components/Footer/index.js.map +1 -0
  91. package/build/components/Footer/style.css +2 -0
  92. package/build/components/Footer/style.css.map +1 -0
  93. package/build/components/Forms/index.js +18 -0
  94. package/build/components/Forms/index.js.map +1 -0
  95. package/build/components/Forms/style.css +2 -0
  96. package/build/components/Forms/style.css.map +1 -0
  97. package/build/components/Gauge/index.js +16 -0
  98. package/build/components/Gauge/index.js.map +1 -0
  99. package/build/components/Gauge/style.css +2 -0
  100. package/build/components/Gauge/style.css.map +1 -0
  101. package/build/components/Grid/index.js +3 -1069
  102. package/build/components/Grid/index.js.map +1 -1
  103. package/build/components/Grid/style.css +1 -1
  104. package/build/components/Grid/style.css.map +1 -1
  105. package/build/components/Hero/index.js +16 -0
  106. package/build/components/Hero/index.js.map +1 -0
  107. package/build/components/Hero/style.css +2 -0
  108. package/build/components/Hero/style.css.map +1 -0
  109. package/build/components/Icon/index.js +2 -619
  110. package/build/components/Icon/index.js.map +1 -1
  111. package/build/components/Icon/style.css +1 -1
  112. package/build/components/Icon/style.css.map +1 -1
  113. package/build/components/IconList/index.js +16 -0
  114. package/build/components/IconList/index.js.map +1 -0
  115. package/build/components/IconList/style.css +2 -0
  116. package/build/components/IconList/style.css.map +1 -0
  117. package/build/components/Image/index.js +3 -646
  118. package/build/components/Image/index.js.map +1 -1
  119. package/build/components/Image/style.css +1 -1
  120. package/build/components/Image/style.css.map +1 -1
  121. package/build/components/Link/index.js +2 -168
  122. package/build/components/Link/index.js.map +1 -1
  123. package/build/components/Link/style.css +1 -1
  124. package/build/components/Link/style.css.map +1 -1
  125. package/build/components/List/index.js +16 -0
  126. package/build/components/List/index.js.map +1 -0
  127. package/build/components/List/style.css +2 -0
  128. package/build/components/List/style.css.map +1 -0
  129. package/build/components/Loader/index.js +16 -0
  130. package/build/components/Loader/index.js.map +1 -0
  131. package/build/components/Loader/style.css +2 -0
  132. package/build/components/Loader/style.css.map +1 -0
  133. package/build/components/Modal/index.js +4 -3154
  134. package/build/components/Modal/index.js.map +1 -1
  135. package/build/components/Modal/style.css +1 -1
  136. package/build/components/Modal/style.css.map +1 -1
  137. package/build/components/Pagination/index.js +16 -0
  138. package/build/components/Pagination/index.js.map +1 -0
  139. package/build/components/Pagination/style.css +2 -0
  140. package/build/components/Pagination/style.css.map +1 -0
  141. package/build/components/Preview/index.js +83 -0
  142. package/build/components/Preview/index.js.map +1 -0
  143. package/build/components/Preview/style.css +2 -0
  144. package/build/components/Preview/style.css.map +1 -0
  145. package/build/components/Progress/index.js +16 -0
  146. package/build/components/Progress/index.js.map +1 -0
  147. package/build/components/Progress/style.css +2 -0
  148. package/build/components/Progress/style.css.map +1 -0
  149. package/build/components/PromoBanner/index.js +16 -0
  150. package/build/components/PromoBanner/index.js.map +1 -0
  151. package/build/components/PromoBanner/style.css +2 -0
  152. package/build/components/PromoBanner/style.css.map +1 -0
  153. package/build/components/PromotionCard/index.js +16 -0
  154. package/build/components/PromotionCard/index.js.map +1 -0
  155. package/build/components/PromotionCard/style.css +2 -0
  156. package/build/components/PromotionCard/style.css.map +1 -0
  157. package/build/components/Section/index.js +3 -619
  158. package/build/components/Section/index.js.map +1 -1
  159. package/build/components/Section/style.css +1 -1
  160. package/build/components/Section/style.css.map +1 -1
  161. package/build/components/Skeleton/index.js +16 -0
  162. package/build/components/Skeleton/index.js.map +1 -0
  163. package/build/components/Skeleton/style.css +2 -0
  164. package/build/components/Skeleton/style.css.map +1 -0
  165. package/build/components/SkipLink/index.js +16 -0
  166. package/build/components/SkipLink/index.js.map +1 -0
  167. package/build/components/SkipLink/style.css +2 -0
  168. package/build/components/SkipLink/style.css.map +1 -0
  169. package/build/components/Stepbar/index.js +16 -0
  170. package/build/components/Stepbar/index.js.map +1 -0
  171. package/build/components/Stepbar/style.css +2 -0
  172. package/build/components/Stepbar/style.css.map +1 -0
  173. package/build/components/Sticker/index.js +16 -0
  174. package/build/components/Sticker/index.js.map +1 -0
  175. package/build/components/Sticker/style.css +2 -0
  176. package/build/components/Sticker/style.css.map +1 -0
  177. package/build/components/Table/index.js +16 -0
  178. package/build/components/Table/index.js.map +1 -0
  179. package/build/components/Table/style.css +2 -0
  180. package/build/components/Table/style.css.map +1 -0
  181. package/build/components/Tabs/index.js +3 -1043
  182. package/build/components/Tabs/index.js.map +1 -1
  183. package/build/components/Tabs/style.css +1 -1
  184. package/build/components/Tabs/style.css.map +1 -1
  185. package/build/components/Tag/index.js +16 -0
  186. package/build/components/Tag/index.js.map +1 -0
  187. package/build/components/Tag/style.css +2 -0
  188. package/build/components/Tag/style.css.map +1 -0
  189. package/build/components/Testimonial/index.js +16 -0
  190. package/build/components/Testimonial/index.js.map +1 -0
  191. package/build/components/Testimonial/style.css +2 -0
  192. package/build/components/Testimonial/style.css.map +1 -0
  193. package/build/components/Tile/index.js +16 -0
  194. package/build/components/Tile/index.js.map +1 -0
  195. package/build/components/Tile/style.css +2 -0
  196. package/build/components/Tile/style.css.map +1 -0
  197. package/build/components/Tooltip/index.js +16 -0
  198. package/build/components/Tooltip/index.js.map +1 -0
  199. package/build/components/Tooltip/style.css +2 -0
  200. package/build/components/Tooltip/style.css.map +1 -0
  201. package/build/components/index.css +2 -1
  202. package/build/components/index.css.map +1 -1
  203. package/build/components/index.js +6 -3662
  204. package/build/components/index.js.map +1 -1
  205. package/build/components/static.css +2 -0
  206. package/build/components/static.css.map +1 -0
  207. package/build/components/static.js +4 -2440
  208. package/build/components/static.js.map +1 -1
  209. package/build/components/types/mdx-components.d.ts +2 -0
  210. package/build/components/types/next.config.d.ts +3 -0
  211. package/build/components/types/src/app/ODSLib.d.ts +1 -0
  212. package/build/components/types/src/app/components/accordion/AccordionClientWrapper.d.ts +1 -0
  213. package/build/components/types/src/app/components/alert/AlertClientWrapper.d.ts +1 -0
  214. package/build/components/types/src/app/components/anchor-navigation/AnchorNavigationClientWrapper.d.ts +2 -0
  215. package/build/components/types/src/app/components/body-banner/BodyBannerClientWrapper.d.ts +1 -0
  216. package/build/components/types/src/app/components/code/CodeClientWrapper.d.ts +1 -0
  217. package/build/components/types/src/app/components/cover/CoverClientWrapper.d.ts +1 -0
  218. package/build/components/types/src/app/components/expander/ExpanderClientWrapper.d.ts +1 -0
  219. package/build/components/types/src/app/components/feature-accordion/FeatureAccordionClientWrapper.d.ts +1 -0
  220. package/build/components/types/src/app/components/forms/autocomplete/AutocompleteClientWrapper.d.ts +1 -0
  221. package/build/components/types/src/app/components/forms/datepicker/DatePickerClientWrapper.d.ts +1 -0
  222. package/build/components/types/src/app/components/forms/radio/RadioClientWrapper.d.ts +1 -0
  223. package/build/components/types/src/app/components/gauge/GaugeClientWrapper.d.ts +1 -0
  224. package/build/components/types/src/app/components/hero/HeroClientWrapper.d.ts +1 -0
  225. package/build/components/types/src/app/components/icon-list/IconListClientWrapper.d.ts +1 -0
  226. package/build/components/types/src/app/components/list/ListClientWrapper.d.ts +1 -0
  227. package/build/components/types/src/app/components/pagination/PaginationClientWrapper.d.ts +1 -0
  228. package/build/components/types/src/app/components/progress/ProgressClientWrapper.d.ts +1 -0
  229. package/build/components/types/src/app/components/promo-banner/PromoBannerClientWrapper.d.ts +1 -0
  230. package/build/components/types/src/app/components/promotion-card/PromotionCardWrapper.d.ts +1 -0
  231. package/build/components/types/src/app/components/sticker/StickerClientWrapper.d.ts +1 -0
  232. package/build/components/types/src/app/components/tag/TagClientWrapper.d.ts +1 -0
  233. package/build/components/types/src/app/components/testimonial/TestimonialClientWrapper.d.ts +1 -0
  234. package/build/components/types/src/app/layout.d.ts +4 -0
  235. package/build/components/types/src/app/menuItems.d.ts +24 -0
  236. package/build/components/types/src/components/Accordion/Accordion.d.ts +17 -0
  237. package/build/components/types/src/components/Accordion/Accordion.static.d.ts +17 -0
  238. package/build/components/types/src/components/Accordion/AccordionHeader.d.ts +15 -0
  239. package/build/components/types/src/components/Accordion/AccordionItem.d.ts +19 -0
  240. package/build/components/types/src/components/Accordion/HeadingContext.d.ts +2 -0
  241. package/build/components/types/src/components/Accordion/index.d.ts +3 -0
  242. package/build/components/types/src/components/Accordion/tests/data.d.ts +5 -0
  243. package/build/components/types/{components → src/components}/Alert/Alert.d.ts +2 -2
  244. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +17 -0
  245. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +24 -0
  246. package/build/components/types/src/components/AnchorNavigation/index.d.ts +2 -0
  247. package/build/components/types/src/components/Bar/Bar.d.ts +22 -0
  248. package/build/components/types/src/components/Bar/BarBreak.d.ts +12 -0
  249. package/build/components/types/src/components/Bar/BarItem.d.ts +16 -0
  250. package/build/components/types/src/components/Bar/index.d.ts +4 -0
  251. package/build/components/types/src/components/BlockAction/BlockAction.d.ts +9 -0
  252. package/build/components/types/src/components/BlockAction/BlockAction.static.d.ts +19 -0
  253. package/build/components/types/src/components/BlockAction/BlockActionControl.d.ts +9 -0
  254. package/build/components/types/src/components/BlockAction/BlockActionIndicator.d.ts +9 -0
  255. package/build/components/types/src/components/BlockAction/CloneElementWithClassName.d.ts +8 -0
  256. package/build/components/types/src/components/BlockAction/Context.d.ts +13 -0
  257. package/build/components/types/src/components/BlockAction/index.d.ts +16 -0
  258. package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +20 -0
  259. package/build/components/types/src/components/BodyBanner/index.d.ts +2 -0
  260. package/build/components/types/src/components/Breadcrumbs/BreadcrumbItem.d.ts +15 -0
  261. package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +20 -0
  262. package/build/components/types/src/components/Breadcrumbs/index.d.ts +2 -0
  263. package/build/components/types/{components → src/components}/Button/Button.d.ts +1 -1
  264. package/build/components/types/src/components/Card/Card.d.ts +13 -0
  265. package/build/components/types/src/components/Card/CardProductHeader.d.ts +9 -0
  266. package/build/components/types/src/components/Card/CardSection.d.ts +14 -0
  267. package/build/components/types/src/components/Card/index.d.ts +4 -0
  268. package/build/components/types/src/components/Card/tests/data.d.ts +5 -0
  269. package/build/components/types/src/components/Carousel/Carousel.d.ts +12 -0
  270. package/build/components/types/src/components/Carousel/Carousel.static.d.ts +33 -0
  271. package/build/components/types/src/components/Carousel/CarouselItem.d.ts +7 -0
  272. package/build/components/types/src/components/Carousel/constants.d.ts +22 -0
  273. package/build/components/types/src/components/Carousel/index.d.ts +3 -0
  274. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +10 -0
  275. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.static.d.ts +31 -0
  276. package/build/components/types/src/components/CarouselPromotions/CarouselPromotionsItem.d.ts +12 -0
  277. package/build/components/types/src/components/CarouselPromotions/constants.d.ts +20 -0
  278. package/build/components/types/src/components/CarouselPromotions/index.d.ts +3 -0
  279. package/build/components/types/src/components/CartTable/CartTable.d.ts +13 -0
  280. package/build/components/types/src/components/CartTable/FooterNameColumn.d.ts +7 -0
  281. package/build/components/types/src/components/CartTable/FooterPriceColumn.d.ts +9 -0
  282. package/build/components/types/src/components/CartTable/Price.d.ts +10 -0
  283. package/build/components/types/src/components/CartTable/data.d.ts +33 -0
  284. package/build/components/types/src/components/CartTable/generateFooter.d.ts +22 -0
  285. package/build/components/types/src/components/CartTable/generateRow.d.ts +21 -0
  286. package/build/components/types/src/components/CartTable/generateTotal.d.ts +45 -0
  287. package/build/components/types/src/components/CartTable/index.d.ts +2 -0
  288. package/build/components/types/src/components/Code/Code.d.ts +16 -0
  289. package/build/components/types/src/components/Code/index.d.ts +6 -0
  290. package/build/components/types/src/components/Code/oneDarkProTheme.d.ts +13 -0
  291. package/build/components/types/src/components/Container/Container.d.ts +3 -0
  292. package/build/components/types/src/components/Container/index.d.ts +2 -0
  293. package/build/components/types/src/components/Controls/Controls.d.ts +16 -0
  294. package/build/components/types/src/components/Controls/index.d.ts +2 -0
  295. package/build/components/types/src/components/Cover/Cover.d.ts +42 -0
  296. package/build/components/types/src/components/Cover/index.d.ts +3 -0
  297. package/build/components/types/src/components/Divider/Divider.d.ts +13 -0
  298. package/build/components/types/src/components/Divider/index.d.ts +2 -0
  299. package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +16 -0
  300. package/build/components/types/src/components/DocumentationSidebar/index.d.ts +3 -0
  301. package/build/components/types/src/components/Dropdown/Dropdown.d.ts +20 -0
  302. package/build/components/types/src/components/Dropdown/Dropdown.static.d.ts +28 -0
  303. package/build/components/types/src/components/Dropdown/DropdownDivider.d.ts +3 -0
  304. package/build/components/types/src/components/Dropdown/DropdownItem.d.ts +9 -0
  305. package/build/components/types/src/components/Dropdown/DropdownToggleButton.d.ts +7 -0
  306. package/build/components/types/src/components/Dropdown/index.d.ts +5 -0
  307. package/build/components/types/src/components/Expander/Expander.d.ts +22 -0
  308. package/build/components/types/src/components/Expander/Expander.static.d.ts +13 -0
  309. package/build/components/types/src/components/Expander/index.d.ts +2 -0
  310. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +11 -0
  311. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.static.d.ts +23 -0
  312. package/build/components/types/src/components/FeatureAccordion/FeatureAccordionItem.d.ts +11 -0
  313. package/build/components/types/src/components/FeatureAccordion/index.d.ts +2 -0
  314. package/build/components/types/src/components/Footer/Footer.d.ts +12 -0
  315. package/build/components/types/src/components/Footer/data.d.ts +15 -0
  316. package/build/components/types/src/components/Footer/index.d.ts +1 -0
  317. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.d.ts +17 -0
  318. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +21 -0
  319. package/build/components/types/src/components/Forms/Autocomplete/index.d.ts +2 -0
  320. package/build/components/types/src/components/Forms/Checkbox/Checkbox.d.ts +21 -0
  321. package/build/components/types/src/components/Forms/Checkbox/index.d.ts +2 -0
  322. package/build/components/types/src/components/Forms/DatePicker/DatePicker.d.ts +84 -0
  323. package/build/components/types/src/components/Forms/DatePicker/DatePicker.static.d.ts +69 -0
  324. package/build/components/types/src/components/Forms/DatePicker/index.d.ts +2 -0
  325. package/build/components/types/src/components/Forms/Field/Control.d.ts +6 -0
  326. package/build/components/types/src/components/Forms/Field/Description.d.ts +7 -0
  327. package/build/components/types/src/components/Forms/Field/Field.d.ts +17 -0
  328. package/build/components/types/src/components/Forms/Field/FieldContext.d.ts +18 -0
  329. package/build/components/types/src/components/Forms/Field/Label.d.ts +11 -0
  330. package/build/components/types/src/components/Forms/Field/Messages.d.ts +12 -0
  331. package/build/components/types/src/components/Forms/Field/Tooltip.d.ts +11 -0
  332. package/build/components/types/src/components/Forms/Field/index.d.ts +2 -0
  333. package/build/components/types/src/components/Forms/Field/utils.d.ts +16 -0
  334. package/build/components/types/src/components/Forms/Fieldset/Fieldset.d.ts +16 -0
  335. package/build/components/types/src/components/Forms/Fieldset/FieldsetContext.d.ts +7 -0
  336. package/build/components/types/src/components/Forms/Fieldset/docsData.d.ts +59 -0
  337. package/build/components/types/src/components/Forms/Fieldset/index.d.ts +2 -0
  338. package/build/components/types/src/components/Forms/File/File.d.ts +17 -0
  339. package/build/components/types/src/components/Forms/File/File.static.d.ts +27 -0
  340. package/build/components/types/src/components/Forms/File/index.d.ts +2 -0
  341. package/build/components/types/src/components/Forms/Group/Group.d.ts +14 -0
  342. package/build/components/types/src/components/Forms/Group/Item.d.ts +8 -0
  343. package/build/components/types/src/components/Forms/Group/index.d.ts +2 -0
  344. package/build/components/types/src/components/Forms/Hint/Hint.d.ts +7 -0
  345. package/build/components/types/src/components/Forms/Hint/index.d.ts +2 -0
  346. package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +20 -0
  347. package/build/components/types/src/components/Forms/InputStepper/InputStepper.static.d.ts +24 -0
  348. package/build/components/types/src/components/Forms/InputStepper/index.d.ts +2 -0
  349. package/build/components/types/src/components/Forms/Label/Label.d.ts +8 -0
  350. package/build/components/types/src/components/Forms/Label/index.d.ts +2 -0
  351. package/build/components/types/src/components/Forms/Message/Message.d.ts +12 -0
  352. package/build/components/types/src/components/Forms/Message/index.d.ts +2 -0
  353. package/build/components/types/src/components/Forms/Radio/Radio.d.ts +21 -0
  354. package/build/components/types/src/components/Forms/Radio/index.d.ts +2 -0
  355. package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.d.ts +38 -0
  356. package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.static.d.ts +24 -0
  357. package/build/components/types/src/components/Forms/RangeSlider/data.d.ts +49 -0
  358. package/build/components/types/src/components/Forms/RangeSlider/index.d.ts +2 -0
  359. package/build/components/types/src/components/Forms/Select/Select.d.ts +33 -0
  360. package/build/components/types/src/components/Forms/Select/index.d.ts +4 -0
  361. package/build/components/types/src/components/Forms/TextArea/TextArea.d.ts +29 -0
  362. package/build/components/types/src/components/Forms/TextArea/index.d.ts +2 -0
  363. package/build/components/types/src/components/Forms/TextInput/TextInput.d.ts +32 -0
  364. package/build/components/types/src/components/Forms/TextInput/index.d.ts +2 -0
  365. package/build/components/types/src/components/Forms/index.d.ts +16 -0
  366. package/build/components/types/src/components/Gauge/Gauge.d.ts +11 -0
  367. package/build/components/types/src/components/Gauge/GaugeMaker.d.ts +3 -0
  368. package/build/components/types/src/components/Gauge/index.d.ts +2 -0
  369. package/build/components/types/src/components/Grid/Grid.d.ts +14 -0
  370. package/build/components/types/src/components/Grid/GridCol.d.ts +12 -0
  371. package/build/components/types/src/components/Grid/index.d.ts +3 -0
  372. package/build/components/types/src/components/Hero/Hero.d.ts +52 -0
  373. package/build/components/types/src/components/Hero/HeroPlayground.d.ts +2 -0
  374. package/build/components/types/src/components/Hero/index.d.ts +2 -0
  375. package/build/components/types/{components → src/components}/Icon/Icon.d.ts +2 -2
  376. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +419 -0
  377. package/build/components/types/src/components/IconList/IconList.d.ts +13 -0
  378. package/build/components/types/src/components/IconList/Item.d.ts +9 -0
  379. package/build/components/types/src/components/IconList/index.d.ts +3 -0
  380. package/build/components/types/src/components/Image/Image.d.ts +20 -0
  381. package/build/components/types/src/components/Image/index.d.ts +2 -0
  382. package/build/components/types/src/components/Link/Link.d.ts +18 -0
  383. package/build/components/types/src/components/Link/index.d.ts +2 -0
  384. package/build/components/types/src/components/List/ClickableControl.d.ts +9 -0
  385. package/build/components/types/src/components/List/List.d.ts +13 -0
  386. package/build/components/types/src/components/List/ListItem.d.ts +16 -0
  387. package/build/components/types/src/components/List/index.d.ts +3 -0
  388. package/build/components/types/src/components/Loader/Loader.d.ts +14 -0
  389. package/build/components/types/src/components/Loader/Loader.static.d.ts +19 -0
  390. package/build/components/types/src/components/Loader/index.d.ts +2 -0
  391. package/build/components/types/{components → src/components}/Modal/Modal.d.ts +2 -0
  392. package/build/components/types/src/components/Pagination/Pagination.d.ts +28 -0
  393. package/build/components/types/src/components/Pagination/PaginationItem.d.ts +21 -0
  394. package/build/components/types/src/components/Pagination/Separator.d.ts +6 -0
  395. package/build/components/types/src/components/Pagination/helpers.d.ts +23 -0
  396. package/build/components/types/src/components/Pagination/index.d.ts +4 -0
  397. package/build/components/types/src/components/Preview/CodeExample.d.ts +9 -0
  398. package/build/components/types/src/components/Preview/Interact/ButtonShowPropsGroup.d.ts +10 -0
  399. package/build/components/types/src/components/Preview/Interact/Interact.d.ts +17 -0
  400. package/build/components/types/src/components/Preview/Interact/PropCheckbox.d.ts +15 -0
  401. package/build/components/types/src/components/Preview/Interact/PropFormField.d.ts +7 -0
  402. package/build/components/types/src/components/Preview/Interact/PropInput.d.ts +17 -0
  403. package/build/components/types/src/components/Preview/Interact/PropLabelWithTooltip.d.ts +17 -0
  404. package/build/components/types/src/components/Preview/Interact/PropSelect.d.ts +15 -0
  405. package/build/components/types/src/components/Preview/Interact/PropsGroup.d.ts +10 -0
  406. package/build/components/types/src/components/Preview/Interact/Tooltip.d.ts +8 -0
  407. package/build/components/types/src/components/Preview/Interact/helpers.d.ts +19 -0
  408. package/build/components/types/src/components/Preview/Interact/state.d.ts +14 -0
  409. package/build/components/types/src/components/Preview/Preview.d.ts +26 -0
  410. package/build/components/types/src/components/Preview/PreviewTitleBar.d.ts +9 -0
  411. package/build/components/types/src/components/Preview/index.d.ts +7 -0
  412. package/build/components/types/src/components/Progress/Progress.d.ts +15 -0
  413. package/build/components/types/src/components/Progress/index.d.ts +2 -0
  414. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +12 -0
  415. package/build/components/types/src/components/PromoBanner/index.d.ts +2 -0
  416. package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +9 -0
  417. package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +8 -0
  418. package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +8 -0
  419. package/build/components/types/src/components/PromotionCard/PromotionCardSection.d.ts +9 -0
  420. package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +8 -0
  421. package/build/components/types/src/components/PromotionCard/constants.d.ts +5 -0
  422. package/build/components/types/src/components/PromotionCard/index.d.ts +6 -0
  423. package/build/components/types/src/components/Skeleton/Skeleton.d.ts +3 -0
  424. package/build/components/types/src/components/Skeleton/index.d.ts +2 -0
  425. package/build/components/types/src/components/SkipLink/SkipLink.d.ts +6 -0
  426. package/build/components/types/src/components/SkipLink/index.d.ts +2 -0
  427. package/build/components/types/src/components/Stepbar/Stepbar.d.ts +21 -0
  428. package/build/components/types/src/components/Stepbar/index.d.ts +2 -0
  429. package/build/components/types/src/components/Sticker/Sticker.d.ts +10 -0
  430. package/build/components/types/src/components/Sticker/index.d.ts +3 -0
  431. package/build/components/types/src/components/Table/Cell.d.ts +11 -0
  432. package/build/components/types/src/components/Table/Footer.d.ts +3 -0
  433. package/build/components/types/src/components/Table/Header.d.ts +3 -0
  434. package/build/components/types/src/components/Table/Row.d.ts +10 -0
  435. package/build/components/types/src/components/Table/Rows.d.ts +3 -0
  436. package/build/components/types/src/components/Table/Table.d.ts +24 -0
  437. package/build/components/types/src/components/Table/Table.static.d.ts +23 -0
  438. package/build/components/types/src/components/Table/TableContext.d.ts +4 -0
  439. package/build/components/types/src/components/Table/docsData.d.ts +39 -0
  440. package/build/components/types/src/components/Table/index.d.ts +3 -0
  441. package/build/components/types/src/components/Table/types.d.ts +34 -0
  442. package/build/components/types/{components → src/components}/Tabs/Tabs.d.ts +1 -3
  443. package/build/components/types/src/components/Tag/Tag.d.ts +24 -0
  444. package/build/components/types/src/components/Tag/TagButton.d.ts +12 -0
  445. package/build/components/types/src/components/Tag/index.d.ts +4 -0
  446. package/build/components/types/src/components/Testimonial/Testimonial.d.ts +10 -0
  447. package/build/components/types/src/components/Testimonial/index.d.ts +2 -0
  448. package/build/components/types/src/components/Tile/Tile.d.ts +23 -0
  449. package/build/components/types/src/components/Tile/index.d.ts +2 -0
  450. package/build/components/types/src/components/Tooltip/InfoTooltip.d.ts +8 -0
  451. package/build/components/types/src/components/Tooltip/Tooltip.d.ts +25 -0
  452. package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +26 -0
  453. package/build/components/types/src/components/Tooltip/index.d.ts +3 -0
  454. package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +3 -0
  455. package/build/components/types/src/components/index.d.ts +49 -0
  456. package/build/components/types/src/components/static.d.ts +1 -0
  457. package/build/components/types/src/docs/utils/ToggleButton.d.ts +9 -0
  458. package/build/components/types/src/lib/scripts.d.ts +1 -0
  459. package/build/components/types/src/scripts/index.d.ts +102 -0
  460. package/build/components/types/src/scripts/lib/moduleFactory.d.ts +3 -0
  461. package/build/components/types/src/scripts/modules/SameHeight.d.ts +15 -0
  462. package/build/components/types/src/scripts/modules/Toggle.d.ts +39 -0
  463. package/build/components/types/src/scripts/modules/toggleUtil.d.ts +13 -0
  464. package/build/components/types/src/styles/export/breakpoint.d.ts +9 -0
  465. package/build/components/types/src/utils/ConditionalWrapper.d.ts +10 -0
  466. package/build/components/types/src/utils/classes.d.ts +5 -0
  467. package/build/components/types/src/utils/color.d.ts +20 -0
  468. package/build/components/types/src/utils/helpers.d.ts +11 -0
  469. package/build/components/types/{utils → src/utils}/hooks.d.ts +2 -1
  470. package/build/components/types/src/utils/index.d.ts +5 -0
  471. package/build/images/product-1.svg +10 -0
  472. package/build/images/product-2.svg +14 -0
  473. package/build/images/product-3.svg +9 -0
  474. package/build/lib/after-components.css +1 -1
  475. package/build/lib/after-components.css.map +1 -1
  476. package/build/lib/before-components.css +2 -1
  477. package/build/lib/before-components.css.map +1 -1
  478. package/build/lib/components.css +1 -1
  479. package/build/lib/components.css.map +1 -1
  480. package/build/lib/scripts.css +2 -0
  481. package/build/lib/scripts.css.map +1 -0
  482. package/build/lib/scripts.js +4 -2442
  483. package/build/lib/scripts.js.map +1 -1
  484. package/build/lib/style.css +2 -1
  485. package/build/lib/style.css.map +1 -1
  486. package/build/logo.svg +1 -0
  487. package/package.json +46 -29
  488. package/src/components/Accordion/Accordion.mdx +2 -2
  489. package/src/components/Accordion/Accordion.tsx +12 -20
  490. package/src/components/Accordion/AccordionItem.tsx +16 -26
  491. package/src/components/Accordion/index.ts +3 -3
  492. package/src/components/Accordion/styles/mixins.scss +11 -11
  493. package/src/components/Accordion/styles/style.scss +34 -32
  494. package/src/components/Accordion/tests/Accordion.unit.test.js +2 -2
  495. package/src/components/Accordion/tests/{data.js → data.ts} +9 -7
  496. package/src/components/Alert/Alert.tsx +6 -5
  497. package/src/components/Alert/CHANGELOG.md +33 -0
  498. package/src/components/Alert/styles/config.scss +6 -44
  499. package/src/components/Alert/styles/mixins.scss +20 -8
  500. package/src/components/Alert/styles/style.scss +22 -30
  501. package/src/components/Alert/tests/Alert.test.js +26 -0
  502. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +115 -0
  503. package/src/components/AnchorNavigation/AnchorNavigation.tsx +81 -0
  504. package/src/components/AnchorNavigation/index.tsx +3 -0
  505. package/src/components/AnchorNavigation/styles/mixins.scss +126 -0
  506. package/src/components/AnchorNavigation/styles/style.scss +22 -0
  507. package/src/components/Bar/Bar.mdx +203 -0
  508. package/src/components/Bar/Bar.tsx +58 -0
  509. package/src/components/Bar/BarBreak.tsx +29 -0
  510. package/src/components/Bar/BarItem.tsx +50 -0
  511. package/src/components/Bar/index.ts +5 -0
  512. package/src/components/Bar/styles/config.scss +10 -0
  513. package/src/components/Bar/styles/mixins.scss +84 -0
  514. package/src/components/Bar/styles/style.scss +62 -0
  515. package/src/components/Bar/tests/Bar.conformance.test.js +29 -0
  516. package/src/components/Bar/tests/Bar.unit.test.js +58 -0
  517. package/src/components/Bar/tests/BarBreak.unit.test.js +32 -0
  518. package/src/components/Bar/tests/BarItem.unit.test.js +51 -0
  519. package/src/components/BlockAction/BlockAction.mdx +244 -0
  520. package/src/components/BlockAction/BlockAction.static.ts +104 -0
  521. package/src/components/BlockAction/BlockAction.tsx +27 -0
  522. package/src/components/BlockAction/BlockActionControl.tsx +32 -0
  523. package/src/components/BlockAction/BlockActionIndicator.tsx +32 -0
  524. package/src/components/BlockAction/CloneElementWithClassName.tsx +23 -0
  525. package/src/components/BlockAction/Context.tsx +39 -0
  526. package/src/components/BlockAction/index.tsx +29 -0
  527. package/src/components/BlockAction/styles/config.scss +10 -0
  528. package/src/components/BlockAction/styles/mixins.scss +33 -0
  529. package/src/components/BlockAction/styles/style.scss +35 -0
  530. package/src/components/BlockAction/tests/BlockAction.conformance.test.js +117 -0
  531. package/src/components/BlockAction/tests/BlockAction.unit.test.js +44 -0
  532. package/src/components/BlockAction/tests/BlockActionControl.unit.test.js +146 -0
  533. package/src/components/BlockAction/tests/BlockActionIndicator.unit.test.js +68 -0
  534. package/src/components/BlockAction/tests/CloneElementWithClassName.unit.test.js +33 -0
  535. package/src/components/BodyBanner/BodyBanner.mdx +268 -0
  536. package/src/components/BodyBanner/BodyBanner.tsx +102 -0
  537. package/src/components/BodyBanner/index.tsx +3 -0
  538. package/src/components/BodyBanner/styles/mixins.scss +106 -0
  539. package/src/components/BodyBanner/styles/style.scss +41 -0
  540. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +13 -13
  541. package/src/components/Breadcrumbs/Breadcrumbs.tsx +17 -16
  542. package/src/components/Breadcrumbs/index.ts +2 -4
  543. package/src/components/Breadcrumbs/styles/mixins.scss +16 -28
  544. package/src/components/Breadcrumbs/styles/style.scss +17 -26
  545. package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +1 -2
  546. package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.js +16 -17
  547. package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +21 -19
  548. package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +28 -21
  549. package/src/components/Button/Button.tsx +4 -3
  550. package/src/components/Button/styles/config.scss +34 -135
  551. package/src/components/Button/styles/mixins.scss +2 -11
  552. package/src/components/Button/styles/style.scss +28 -48
  553. package/src/components/Button/tests/Button.test.js +8 -3
  554. package/src/components/Buttons/styles/style.scss +6 -4
  555. package/src/components/Card/CHANGELOG.md +19 -0
  556. package/src/components/Card/Card.mdx +334 -0
  557. package/src/components/Card/Card.tsx +35 -0
  558. package/src/components/Card/CardProductHeader.tsx +36 -0
  559. package/src/components/Card/CardSection.tsx +44 -0
  560. package/src/components/Card/index.ts +5 -0
  561. package/src/components/Card/styles/config.scss +16 -0
  562. package/src/components/Card/styles/mixins.scss +68 -0
  563. package/src/components/Card/styles/style.scss +39 -0
  564. package/src/components/Card/tests/Card.conformance.test.js +31 -0
  565. package/src/components/Card/tests/Card.unit.test.js +47 -0
  566. package/src/components/Card/tests/CardProductHeader.unit.test.js +61 -0
  567. package/src/components/Card/tests/CardSection.unit.test.js +61 -0
  568. package/src/components/Card/tests/data.ts +44 -0
  569. package/src/components/Carousel/CHANGELOG.md +11 -0
  570. package/src/components/Carousel/Carousel.mdx +159 -0
  571. package/src/components/Carousel/Carousel.static.ts +261 -0
  572. package/src/components/Carousel/Carousel.tsx +98 -0
  573. package/src/components/Carousel/CarouselItem.tsx +29 -0
  574. package/src/components/Carousel/constants.ts +24 -0
  575. package/src/components/Carousel/index.ts +4 -0
  576. package/src/components/Carousel/styles/config.scss +31 -0
  577. package/src/components/Carousel/styles/mixins.scss +196 -0
  578. package/src/components/Carousel/styles/style.scss +65 -0
  579. package/src/components/Carousel/tests/Carousel.conformance.test.js +26 -0
  580. package/src/components/Carousel/tests/Carousel.unit.test.js +207 -0
  581. package/src/components/Carousel/tests/CarouselItem.unit.test.js +31 -0
  582. package/src/components/CarouselPromotions/CarouselPromotions.mdx +246 -0
  583. package/src/components/CarouselPromotions/CarouselPromotions.static.ts +287 -0
  584. package/src/components/CarouselPromotions/CarouselPromotions.tsx +66 -0
  585. package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +53 -0
  586. package/src/components/CarouselPromotions/constants.ts +23 -0
  587. package/src/components/CarouselPromotions/index.ts +4 -0
  588. package/src/components/CarouselPromotions/styles/config.scss +65 -0
  589. package/src/components/CarouselPromotions/styles/mixins.scss +286 -0
  590. package/src/components/CarouselPromotions/styles/style.scss +51 -0
  591. package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.js +30 -0
  592. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +244 -0
  593. package/src/components/CarouselPromotions/tests/CarouselPromotionsItem.unit.test.js +33 -0
  594. package/src/components/CartTable/CartTable.mdx +129 -0
  595. package/src/components/CartTable/CartTable.tsx +111 -0
  596. package/src/components/CartTable/FooterNameColumn.tsx +32 -0
  597. package/src/components/CartTable/FooterPriceColumn.tsx +50 -0
  598. package/src/components/CartTable/Price.tsx +48 -0
  599. package/src/components/CartTable/data.ts +147 -0
  600. package/src/components/CartTable/generateFooter.tsx +97 -0
  601. package/src/components/CartTable/generateRow.tsx +196 -0
  602. package/src/components/CartTable/generateTotal.ts +157 -0
  603. package/src/components/CartTable/index.ts +3 -0
  604. package/src/components/CartTable/styles/config.scss +19 -0
  605. package/src/components/CartTable/styles/mixins.scss +141 -0
  606. package/src/components/CartTable/styles/style.scss +37 -0
  607. package/src/components/CartTable/tests/CartTable.conformance.test.js +16 -0
  608. package/src/components/Code/Code.tsx +85 -0
  609. package/src/components/Code/index.tsx +16 -0
  610. package/src/components/Code/oneDarkProTheme.ts +70 -0
  611. package/src/components/Code/styles/style.scss +58 -0
  612. package/src/components/Container/Container.tsx +11 -9
  613. package/src/components/Container/index.ts +2 -4
  614. package/src/components/Container/styles/style.scss +5 -3
  615. package/src/components/Container/tests/Container.conformance.test.js +58 -53
  616. package/src/components/Container/tests/Container.unit.test.js +125 -134
  617. package/src/components/Controls/Controls.mdx +469 -0
  618. package/src/components/Controls/Controls.tsx +50 -0
  619. package/src/components/Controls/index.ts +3 -0
  620. package/src/components/Controls/styles/config.scss +52 -0
  621. package/src/components/Controls/styles/mixins.scss +70 -0
  622. package/src/components/Controls/styles/style.scss +16 -0
  623. package/src/components/Controls/tests/Controls.test.js +479 -0
  624. package/src/components/Cover/Cover.mdx +87 -0
  625. package/src/components/Cover/Cover.tsx +81 -0
  626. package/src/components/Cover/index.ts +5 -0
  627. package/src/components/Cover/styles/config.scss +55 -0
  628. package/src/components/Cover/styles/mixins.scss +43 -0
  629. package/src/components/Cover/styles/style.scss +32 -0
  630. package/src/components/Cover/tests/Cover.conformance.test.js +28 -0
  631. package/src/components/Cover/tests/Cover.unit.test.js +116 -0
  632. package/src/components/Divider/Divider.mdx +65 -0
  633. package/src/components/Divider/Divider.tsx +57 -0
  634. package/src/components/Divider/index.ts +3 -0
  635. package/src/components/Divider/styles/config.scss +27 -0
  636. package/src/components/Divider/styles/mixins.scss +45 -0
  637. package/src/components/Divider/styles/style.scss +33 -0
  638. package/src/components/{Badge/tests/Badge.conformance.test.js → Divider/tests/Divider.conformance.test.js} +5 -8
  639. package/src/components/Divider/tests/Divider.unit.test.js +80 -0
  640. package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +171 -0
  641. package/src/components/DocumentationSidebar/index.ts +4 -0
  642. package/src/components/DocumentationSidebar/styles/style.scss +230 -0
  643. package/src/components/Dropdown/Dropdown.mdx +260 -0
  644. package/src/components/Dropdown/Dropdown.static.ts +198 -0
  645. package/src/components/Dropdown/Dropdown.tsx +107 -0
  646. package/src/components/Dropdown/DropdownDivider.tsx +17 -0
  647. package/src/components/Dropdown/DropdownItem.tsx +43 -0
  648. package/src/components/Dropdown/DropdownToggleButton.tsx +37 -0
  649. package/src/components/Dropdown/index.ts +6 -0
  650. package/src/components/Dropdown/styles/config.scss +41 -0
  651. package/src/components/Dropdown/styles/mixins.scss +79 -0
  652. package/src/components/Dropdown/styles/style.scss +33 -0
  653. package/src/components/Dropdown/tests/Dropdown.conformance.test.js +48 -0
  654. package/src/components/Dropdown/tests/Dropdown.unit.test.js +69 -0
  655. package/src/components/Expander/Expander.mdx +153 -0
  656. package/src/components/Expander/Expander.static.ts +59 -0
  657. package/src/components/Expander/Expander.tsx +99 -0
  658. package/src/components/Expander/index.ts +3 -0
  659. package/src/components/Expander/styles/style.scss +63 -0
  660. package/src/components/Expander/tests/Expander.conformance.test.js +59 -0
  661. package/src/components/Expander/tests/Expander.unit.test.js +124 -0
  662. package/src/components/FeatureAccordion/FeatureAccordion.mdx +33 -0
  663. package/src/components/FeatureAccordion/FeatureAccordion.static.ts +121 -0
  664. package/src/components/FeatureAccordion/FeatureAccordion.tsx +116 -0
  665. package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +31 -0
  666. package/src/components/FeatureAccordion/index.ts +2 -0
  667. package/src/components/FeatureAccordion/styles/mixins.scss +74 -0
  668. package/src/components/FeatureAccordion/styles/style.scss +21 -0
  669. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +92 -0
  670. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +80 -0
  671. package/src/components/Footer/Footer.tsx +93 -0
  672. package/src/components/Footer/data.ts +71 -0
  673. package/src/components/Footer/index.ts +1 -0
  674. package/src/components/Footer/tests/Footer.conformance.test.js +13 -0
  675. package/src/components/Footer/tests/Footer.unit.test.js +66 -0
  676. package/src/components/Forms/Autocomplete/Autocomplete.mdx +198 -0
  677. package/src/components/Forms/Autocomplete/Autocomplete.static.ts +90 -0
  678. package/src/components/Forms/Autocomplete/Autocomplete.tsx +66 -0
  679. package/src/components/Forms/Autocomplete/index.ts +3 -0
  680. package/src/components/Forms/Autocomplete/styles/config.scss +7 -0
  681. package/src/components/Forms/Autocomplete/styles/mixins.scss +78 -0
  682. package/src/components/Forms/Autocomplete/styles/style.scss +66 -0
  683. package/src/components/Forms/Checkbox/Checkbox.mdx +139 -0
  684. package/src/components/Forms/Checkbox/Checkbox.tsx +75 -0
  685. package/src/components/Forms/Checkbox/index.ts +3 -0
  686. package/src/components/Forms/Checkbox/styles/config.scss +25 -0
  687. package/src/components/Forms/Checkbox/styles/mixins.scss +2 -0
  688. package/src/components/Forms/Checkbox/styles/style.scss +89 -0
  689. package/src/components/Forms/Checkbox/tests/Checkbox.unit.test.js +95 -0
  690. package/src/components/Forms/DatePicker/DatePicker.mdx +149 -0
  691. package/src/components/Forms/DatePicker/DatePicker.static.ts +211 -0
  692. package/src/components/Forms/DatePicker/DatePicker.tsx +129 -0
  693. package/src/components/Forms/DatePicker/index.ts +3 -0
  694. package/src/components/Forms/DatePicker/styles/style.scss +183 -0
  695. package/src/components/Forms/DatePicker/tests/DatePicker.unit.test.js +262 -0
  696. package/src/components/Forms/Field/Control.tsx +129 -0
  697. package/src/components/Forms/Field/Description.tsx +40 -0
  698. package/src/components/Forms/Field/Field.mdx +383 -0
  699. package/src/components/Forms/Field/Field.tsx +104 -0
  700. package/src/components/Forms/Field/FieldContext.tsx +24 -0
  701. package/src/components/Forms/Field/Label.tsx +71 -0
  702. package/src/components/Forms/Field/Messages.tsx +36 -0
  703. package/src/components/Forms/Field/Tooltip.tsx +37 -0
  704. package/src/components/Forms/Field/index.ts +3 -0
  705. package/src/components/Forms/Field/styles/config.scss +25 -0
  706. package/src/components/Forms/Field/styles/mixins.scss +43 -0
  707. package/src/components/Forms/Field/styles/style.scss +37 -0
  708. package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +52 -0
  709. package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +43 -0
  710. package/src/components/Forms/Field/tests/Field.unit.test.js +11 -0
  711. package/src/components/Forms/Field/tests/File.Field.conformance.test.js +47 -0
  712. package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +47 -0
  713. package/src/components/Forms/Field/tests/Label.unit.test.js +163 -0
  714. package/src/components/Forms/Field/tests/Messages.unit.test.js +102 -0
  715. package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +43 -0
  716. package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +60 -0
  717. package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +45 -0
  718. package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +43 -0
  719. package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +43 -0
  720. package/src/components/Forms/Field/tests/Tooltip.unit.test.js +38 -0
  721. package/src/components/Forms/Field/utils.ts +36 -0
  722. package/src/components/Forms/Fieldset/Fieldset.mdx +178 -0
  723. package/src/components/Forms/Fieldset/Fieldset.tsx +62 -0
  724. package/src/components/Forms/Fieldset/FieldsetContext.ts +13 -0
  725. package/src/components/Forms/Fieldset/docsData.ts +75 -0
  726. package/src/components/Forms/Fieldset/index.ts +3 -0
  727. package/src/components/Forms/Fieldset/styles/mixins.scss +6 -0
  728. package/src/components/Forms/Fieldset/styles/style.scss +10 -0
  729. package/src/components/Forms/Fieldset/tests/Fieldset.unit.test.js +63 -0
  730. package/src/components/Forms/File/File.mdx +88 -0
  731. package/src/components/Forms/File/File.static.ts +164 -0
  732. package/src/components/Forms/File/File.tsx +77 -0
  733. package/src/components/Forms/File/index.ts +3 -0
  734. package/src/components/Forms/File/styles/config.scss +12 -0
  735. package/src/components/Forms/File/styles/mixins.scss +87 -0
  736. package/src/components/Forms/File/styles/style.scss +51 -0
  737. package/src/components/Forms/FormTooltip.mdx +51 -0
  738. package/src/components/Forms/Forms.mdx +48 -0
  739. package/src/components/Forms/Group/CHANGELOG.md +5 -0
  740. package/src/components/Forms/Group/Group.mdx +146 -0
  741. package/src/components/Forms/Group/Group.tsx +74 -0
  742. package/src/components/Forms/Group/Item.tsx +35 -0
  743. package/src/components/Forms/Group/index.ts +3 -0
  744. package/src/components/Forms/Group/styles/config.scss +9 -0
  745. package/src/components/Forms/Group/styles/mixins.scss +50 -0
  746. package/src/components/Forms/Group/styles/style.scss +19 -0
  747. package/src/components/Forms/Group/tests/Group.unit.test.js +171 -0
  748. package/src/components/Forms/Group/tests/Item.unit.test.js +31 -0
  749. package/src/components/Forms/Hint/Hint.mdx +40 -0
  750. package/src/components/Forms/Hint/Hint.tsx +21 -0
  751. package/src/components/Forms/Hint/index.ts +3 -0
  752. package/src/components/Forms/Hint/styles/config.scss +5 -0
  753. package/src/components/Forms/Hint/styles/mixins.scss +6 -0
  754. package/src/components/Forms/Hint/styles/style.scss +7 -0
  755. package/src/components/Forms/Hint/tests/Hint.unit.test.js +35 -0
  756. package/src/components/Forms/InputStepper/InputStepper.mdx +147 -0
  757. package/src/components/Forms/InputStepper/InputStepper.static.ts +187 -0
  758. package/src/components/Forms/InputStepper/InputStepper.tsx +86 -0
  759. package/src/components/Forms/InputStepper/index.ts +3 -0
  760. package/src/components/Forms/InputStepper/styles/style.scss +210 -0
  761. package/src/components/Forms/InputStepper/tests/InputStepper.unit.test.js +54 -0
  762. package/src/components/Forms/Label/Label.mdx +95 -0
  763. package/src/components/Forms/Label/Label.tsx +26 -0
  764. package/src/components/Forms/Label/index.ts +3 -0
  765. package/src/components/Forms/Label/styles/config.scss +4 -0
  766. package/src/components/Forms/Label/styles/mixins.scss +6 -0
  767. package/src/components/Forms/Label/styles/style.scss +11 -0
  768. package/src/components/Forms/Label/tests/Label.unit.test.js +42 -0
  769. package/src/components/Forms/Message/Message.mdx +40 -0
  770. package/src/components/Forms/Message/Message.tsx +58 -0
  771. package/src/components/Forms/Message/index.ts +3 -0
  772. package/src/components/Forms/Message/styles/config.scss +15 -0
  773. package/src/components/Forms/Message/styles/mixins.scss +12 -0
  774. package/src/components/Forms/Message/styles/style.scss +11 -0
  775. package/src/components/Forms/Message/tests/Message.unit.test.js +71 -0
  776. package/src/components/Forms/Radio/Radio.mdx +98 -0
  777. package/src/components/Forms/Radio/Radio.tsx +70 -0
  778. package/src/components/Forms/Radio/index.ts +3 -0
  779. package/src/components/Forms/Radio/styles/config.scss +25 -0
  780. package/src/components/Forms/Radio/styles/mixins.scss +6 -0
  781. package/src/components/Forms/Radio/styles/style.scss +25 -0
  782. package/src/components/Forms/Radio/tests/Radio.unit.test.js +105 -0
  783. package/src/components/Forms/RangeSlider/RangeSlider.mdx +304 -0
  784. package/src/components/Forms/RangeSlider/RangeSlider.static.ts +121 -0
  785. package/src/components/Forms/RangeSlider/RangeSlider.tsx +98 -0
  786. package/src/components/Forms/RangeSlider/data.ts +50 -0
  787. package/src/components/Forms/RangeSlider/index.ts +3 -0
  788. package/src/components/Forms/RangeSlider/styles/config.scss +32 -0
  789. package/src/components/Forms/RangeSlider/styles/mixins.scss +139 -0
  790. package/src/components/Forms/RangeSlider/styles/style.scss +97 -0
  791. package/src/components/Forms/Select/Select.mdx +106 -0
  792. package/src/components/Forms/Select/Select.tsx +97 -0
  793. package/src/components/Forms/Select/index.tsx +9 -0
  794. package/src/components/Forms/Select/styles/config.scss +53 -0
  795. package/src/components/Forms/Select/styles/mixins.scss +34 -0
  796. package/src/components/Forms/Select/styles/style.scss +22 -0
  797. package/src/components/Forms/Select/tests/Select.unit.test.js +98 -0
  798. package/src/components/Forms/TextArea/TextArea.mdx +109 -0
  799. package/src/components/Forms/TextArea/TextArea.tsx +84 -0
  800. package/src/components/Forms/TextArea/index.ts +3 -0
  801. package/src/components/Forms/TextArea/styles/config.scss +35 -0
  802. package/src/components/Forms/TextArea/styles/mixins.scss +48 -0
  803. package/src/components/Forms/TextArea/styles/style.scss +22 -0
  804. package/src/components/Forms/TextArea/tests/TextArea.unit.test.js +127 -0
  805. package/src/components/Forms/TextInput/TextInput.mdx +153 -0
  806. package/src/components/Forms/TextInput/TextInput.tsx +101 -0
  807. package/src/components/Forms/TextInput/index.ts +3 -0
  808. package/src/components/Forms/TextInput/styles/config.scss +60 -0
  809. package/src/components/Forms/TextInput/styles/mixins.scss +80 -0
  810. package/src/components/Forms/TextInput/styles/style.scss +30 -0
  811. package/src/components/Forms/TextInput/tests/TextInput.unit.test.js +108 -0
  812. package/src/components/Forms/index.ts +16 -0
  813. package/src/components/Forms/styles/config.scss +41 -0
  814. package/src/components/Forms/styles/mixins.scss +44 -0
  815. package/src/components/Gauge/Gauge.mdx +35 -0
  816. package/src/components/Gauge/Gauge.tsx +72 -0
  817. package/src/components/Gauge/GaugeMaker.tsx +90 -0
  818. package/src/components/Gauge/index.ts +3 -0
  819. package/src/components/Gauge/styles/style.scss +34 -0
  820. package/src/components/Gauge/tests/Gauge.conformance.test.js +25 -0
  821. package/src/components/Gauge/tests/Gauge.unit.test.js +35 -0
  822. package/src/components/Grid/Grid.mdx +20 -19
  823. package/src/components/Grid/Grid.tsx +27 -22
  824. package/src/components/Grid/index.ts +3 -5
  825. package/src/components/Grid/styles/style.scss +29 -27
  826. package/src/components/Grid/tests/Grid.unit.test.js +572 -0
  827. package/src/components/Grid/tests/GridCol.unit.test.js +223 -0
  828. package/src/components/Hero/Hero.mdx +168 -0
  829. package/src/components/Hero/Hero.tsx +182 -0
  830. package/src/components/Hero/HeroPlayground.tsx +369 -0
  831. package/src/components/Hero/index.ts +3 -0
  832. package/src/components/Hero/styles/config.scss +23 -0
  833. package/src/components/Hero/styles/mixins.scss +173 -0
  834. package/src/components/Hero/styles/style.scss +59 -0
  835. package/src/components/Hero/tests/Hero.conformance.test.js +29 -0
  836. package/src/components/Hero/tests/Hero.unit.test.js +272 -0
  837. package/src/components/Hero/tests/data.js +40 -0
  838. package/src/components/Icon/Icon.tsx +2 -2
  839. package/src/components/Icon/IconSearch.jsx +2 -0
  840. package/src/components/Icon/styles/config.scss +5 -5
  841. package/src/components/Icon/styles/style.scss +12 -10
  842. package/src/components/IconList/IconList.mdx +53 -0
  843. package/src/components/IconList/IconList.tsx +30 -0
  844. package/src/components/IconList/Item.tsx +39 -0
  845. package/src/components/IconList/index.ts +4 -0
  846. package/src/components/IconList/styles/config.scss +3 -0
  847. package/src/components/IconList/styles/mixins.scss +33 -0
  848. package/src/components/IconList/styles/style.scss +21 -0
  849. package/src/components/IconList/tests/IconList.conformance.test.js +55 -0
  850. package/src/components/IconList/tests/IconList.unit.test.js +79 -0
  851. package/src/components/IconList/tests/Item.unit.test.js +143 -0
  852. package/src/components/Image/Image.mdx +29 -20
  853. package/src/components/Image/Image.tsx +12 -13
  854. package/src/components/Image/index.ts +2 -6
  855. package/src/components/Image/styles/style.scss +9 -6
  856. package/src/components/Image/tests/Image.conformance.test.js +1 -1
  857. package/src/components/Image/tests/Image.unit.test.js +166 -188
  858. package/src/components/Link/CHANGELOG.md +25 -0
  859. package/src/components/Link/Link.tsx +14 -9
  860. package/src/components/Link/styles/mixins.scss +8 -17
  861. package/src/components/Link/styles/style.scss +37 -54
  862. package/src/components/Link/tests/Link.conformance.test.js +7 -25
  863. package/src/components/Link/tests/Link.unit.test.js +20 -33
  864. package/src/components/List/ClickableControl.tsx +33 -0
  865. package/src/components/List/List.mdx +216 -0
  866. package/src/components/List/List.tsx +40 -0
  867. package/src/components/List/ListItem.tsx +44 -0
  868. package/src/components/List/index.ts +5 -0
  869. package/src/components/List/styles/config.scss +38 -0
  870. package/src/components/List/styles/mixins.scss +99 -0
  871. package/src/components/List/styles/style.scss +48 -0
  872. package/src/components/List/tests/ClickableControl.unit.test.js +100 -0
  873. package/src/components/List/tests/List.conformance.test.js +69 -0
  874. package/src/components/List/tests/List.unit.test.js +47 -0
  875. package/src/components/List/tests/ListItem.unit.test.js +104 -0
  876. package/src/components/Loader/Loader.mdx +148 -0
  877. package/src/components/Loader/Loader.static.ts +85 -0
  878. package/src/components/Loader/Loader.tsx +75 -0
  879. package/src/components/Loader/index.ts +3 -0
  880. package/src/components/Loader/styles/config.scss +16 -0
  881. package/src/components/Loader/styles/mixins.scss +66 -0
  882. package/src/components/Loader/styles/style.scss +38 -0
  883. package/src/components/Loader/tests/Loader.conformance.test.js +22 -0
  884. package/src/components/Loader/tests/Loader.unit.test.js +59 -0
  885. package/src/components/Loader/tests/test.scss +5 -0
  886. package/src/components/Modal/Modal.mdx +86 -86
  887. package/src/components/Modal/Modal.tsx +5 -0
  888. package/src/components/Modal/styles/config.scss +7 -8
  889. package/src/components/Modal/styles/mixins.scss +2 -2
  890. package/src/components/Modal/styles/style.scss +65 -63
  891. package/src/components/Modal/tests/Modal.unit.test.js +22 -0
  892. package/src/components/Pagination/Pagination.mdx +45 -0
  893. package/src/components/Pagination/Pagination.tsx +86 -0
  894. package/src/components/Pagination/PaginationItem.tsx +61 -0
  895. package/src/components/Pagination/Separator.tsx +19 -0
  896. package/src/components/Pagination/helpers.ts +71 -0
  897. package/src/components/Pagination/index.ts +5 -0
  898. package/src/components/Pagination/styles/mixins.scss +43 -0
  899. package/src/components/Pagination/styles/style.scss +28 -0
  900. package/src/components/Pagination/tests/Item.unit.test.js +96 -0
  901. package/src/components/Pagination/tests/Pagination.conformance.test.js +41 -0
  902. package/src/components/Pagination/tests/Pagination.unit.test.js +108 -0
  903. package/src/components/Pagination/tests/Separator.unit.test.js +25 -0
  904. package/src/components/Pagination/tests/utils.js +12 -0
  905. package/src/components/Preview/CodeExample.tsx +238 -0
  906. package/src/components/Preview/Interact/ButtonShowPropsGroup.tsx +38 -0
  907. package/src/components/Preview/Interact/Interact.tsx +263 -0
  908. package/src/components/Preview/Interact/PropCheckbox.tsx +50 -0
  909. package/src/components/Preview/Interact/PropFormField.tsx +76 -0
  910. package/src/components/Preview/Interact/PropInput.tsx +72 -0
  911. package/src/components/Preview/Interact/PropLabelWithTooltip.tsx +77 -0
  912. package/src/components/Preview/Interact/PropSelect.tsx +60 -0
  913. package/src/components/Preview/Interact/PropsGroup.tsx +49 -0
  914. package/src/components/Preview/Interact/Tooltip.tsx +17 -0
  915. package/src/components/Preview/Interact/helpers.ts +60 -0
  916. package/src/components/Preview/Interact/state.ts +18 -0
  917. package/src/components/Preview/Preview.docs.mdx +153 -0
  918. package/src/components/Preview/Preview.test.js +66 -0
  919. package/src/components/Preview/Preview.tsx +273 -0
  920. package/src/components/Preview/PreviewTitleBar.tsx +32 -0
  921. package/src/components/Preview/index.tsx +16 -0
  922. package/src/components/Preview/styles/style.scss +340 -0
  923. package/src/components/Progress/Progress.mdx +119 -0
  924. package/src/components/Progress/Progress.tsx +60 -0
  925. package/src/components/Progress/index.ts +3 -0
  926. package/src/components/Progress/styles/config.scss +19 -0
  927. package/src/components/Progress/styles/mixins.scss +40 -0
  928. package/src/components/Progress/styles/style.scss +31 -0
  929. package/src/components/Progress/tests/Progress.conformance.test.js +27 -0
  930. package/src/components/Progress/tests/Progress.unit.test.js +108 -0
  931. package/src/components/PromoBanner/PromoBanner.tsx +65 -0
  932. package/src/components/PromoBanner/index.ts +2 -0
  933. package/src/components/PromoBanner/styles/mixins.scss +37 -0
  934. package/src/components/PromoBanner/styles/style.scss +23 -0
  935. package/src/components/PromotionCard/PromotionCard.mdx +191 -0
  936. package/src/components/PromotionCard/PromotionCard.tsx +31 -0
  937. package/src/components/PromotionCard/PromotionCardContent.tsx +25 -0
  938. package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +25 -0
  939. package/src/components/PromotionCard/PromotionCardSection.tsx +29 -0
  940. package/src/components/PromotionCard/PromotionCardTitle.tsx +24 -0
  941. package/src/components/PromotionCard/constants.ts +5 -0
  942. package/src/components/PromotionCard/index.ts +7 -0
  943. package/src/components/PromotionCard/styles/config.scss +4 -0
  944. package/src/components/PromotionCard/styles/mixins.scss +89 -0
  945. package/src/components/PromotionCard/styles/style.scss +25 -0
  946. package/src/components/Section/Section.tsx +1 -1
  947. package/src/components/Section/styles/style.scss +28 -26
  948. package/src/components/Skeleton/Skeleton.mdx +90 -0
  949. package/src/components/Skeleton/Skeleton.tsx +21 -0
  950. package/src/components/Skeleton/index.ts +3 -0
  951. package/src/components/Skeleton/styles/config.scss +31 -0
  952. package/src/components/Skeleton/styles/mixins.scss +22 -0
  953. package/src/components/Skeleton/styles/style.scss +7 -0
  954. package/src/components/Skeleton/tests/Skeleton.conformance.test.js +16 -0
  955. package/src/components/Skeleton/tests/Skeleton.unit.test.js +22 -0
  956. package/src/components/SkipLink/SkipLink.mdx +23 -0
  957. package/src/components/SkipLink/SkipLink.tsx +25 -0
  958. package/src/components/SkipLink/index.ts +3 -0
  959. package/src/components/SkipLink/styles/style.scss +20 -0
  960. package/src/components/SkipLink/tests/SkipLink.unit.test.js +88 -0
  961. package/src/components/Stepbar/Stepbar.mdx +137 -0
  962. package/src/components/Stepbar/Stepbar.tsx +100 -0
  963. package/src/components/Stepbar/index.ts +3 -0
  964. package/src/components/Stepbar/styles/config.scss +91 -0
  965. package/src/components/Stepbar/styles/mixins.scss +132 -0
  966. package/src/components/Stepbar/styles/style.scss +77 -0
  967. package/src/components/Stepbar/tests/Stepbar.conformance.test.js +34 -0
  968. package/src/components/Stepbar/tests/Stepbar.unit.test.js +92 -0
  969. package/src/components/Sticker/Sticker.mdx +50 -0
  970. package/src/components/Sticker/Sticker.tsx +31 -0
  971. package/src/components/Sticker/index.ts +4 -0
  972. package/src/components/Sticker/styles/config.scss +31 -0
  973. package/src/components/Sticker/styles/mixins.scss +25 -0
  974. package/src/components/Sticker/styles/style.scss +22 -0
  975. package/src/components/Sticker/tests/Sticker.conformance.test.js +17 -0
  976. package/src/components/Sticker/tests/Sticker.unit.test.js +42 -0
  977. package/src/components/Table/Cell.tsx +22 -0
  978. package/src/components/Table/Footer.tsx +25 -0
  979. package/src/components/Table/Header.tsx +73 -0
  980. package/src/components/Table/Row.tsx +70 -0
  981. package/src/components/Table/Rows.tsx +36 -0
  982. package/src/components/Table/Table.mdx +199 -0
  983. package/src/components/Table/Table.static.ts +146 -0
  984. package/src/components/Table/Table.tsx +130 -0
  985. package/src/components/Table/TableContext.ts +9 -0
  986. package/src/components/Table/docsData.ts +210 -0
  987. package/src/components/Table/index.ts +4 -0
  988. package/src/components/Table/styles/config.scss +4 -0
  989. package/src/components/Table/styles/mixins.scss +115 -0
  990. package/src/components/Table/styles/style.scss +103 -0
  991. package/src/components/Table/tests/Cell.unit.test.js +59 -0
  992. package/src/components/Table/tests/Footer.unit.test.js +70 -0
  993. package/src/components/Table/tests/Header.unit.test.js +120 -0
  994. package/src/components/Table/tests/Row.unit.test.js +206 -0
  995. package/src/components/Table/tests/Rows.unit.test.js +92 -0
  996. package/src/components/Table/tests/Table.conformance.test.js +74 -0
  997. package/src/components/Table/tests/Table.unit.test.js +296 -0
  998. package/src/components/Table/types.ts +40 -0
  999. package/src/components/Tabs/Tabs.tsx +4 -5
  1000. package/src/components/Tabs/styles/config.scss +29 -48
  1001. package/src/components/Tabs/styles/mixins.scss +20 -29
  1002. package/src/components/Tabs/styles/style.scss +34 -42
  1003. package/src/components/Tabs/tests/Tabs.unit.test.js +8 -0
  1004. package/src/components/Tag/CHANGELOG.md +93 -0
  1005. package/src/components/Tag/Tag.mdx +52 -0
  1006. package/src/components/Tag/Tag.tsx +118 -0
  1007. package/src/components/Tag/TagButton.tsx +67 -0
  1008. package/src/components/Tag/index.ts +5 -0
  1009. package/src/components/Tag/styles/config.scss +132 -0
  1010. package/src/components/Tag/styles/mixins.scss +54 -0
  1011. package/src/components/Tag/styles/style.scss +69 -0
  1012. package/src/components/Tag/tests/Tag.conformance.test.js +44 -0
  1013. package/src/components/Tag/tests/Tag.unit.test.js +93 -0
  1014. package/src/components/Tag/tests/TagButton.conformance.test.js +24 -0
  1015. package/src/components/Tag/tests/TagButton.unit.test.js +96 -0
  1016. package/src/components/Testimonial/Testimonial.mdx +41 -0
  1017. package/src/components/Testimonial/Testimonial.tsx +38 -0
  1018. package/src/components/Testimonial/index.ts +3 -0
  1019. package/src/components/Testimonial/styles/config.scss +39 -0
  1020. package/src/components/Testimonial/styles/mixins.scss +40 -0
  1021. package/src/components/Testimonial/styles/style.scss +16 -0
  1022. package/src/components/Testimonial/tests/Testimonial.conformance.test.js +17 -0
  1023. package/src/components/Testimonial/tests/Testimonial.unit.test.js +44 -0
  1024. package/src/components/Tile/CHANGELOG.md +14 -0
  1025. package/src/components/Tile/Tile.mdx +163 -0
  1026. package/src/components/Tile/Tile.tsx +86 -0
  1027. package/src/components/Tile/index.ts +3 -0
  1028. package/src/components/Tile/styles/config.scss +17 -0
  1029. package/src/components/Tile/styles/mixins.scss +78 -0
  1030. package/src/components/Tile/styles/style.scss +55 -0
  1031. package/src/components/Tile/tests/Tile.conformance.test.js +16 -0
  1032. package/src/components/Tile/tests/Tile.unit.test.js +126 -0
  1033. package/src/components/Tooltip/InfoTooltip.tsx +40 -0
  1034. package/src/components/Tooltip/TODO.md +1 -0
  1035. package/src/components/Tooltip/Tooltip.mdx +227 -0
  1036. package/src/components/Tooltip/Tooltip.static.ts +213 -0
  1037. package/src/components/Tooltip/Tooltip.tsx +107 -0
  1038. package/src/components/Tooltip/index.ts +4 -0
  1039. package/src/components/Tooltip/styles/config.scss +59 -0
  1040. package/src/components/Tooltip/styles/mixins.scss +94 -0
  1041. package/src/components/Tooltip/styles/style.scss +30 -0
  1042. package/src/components/Tooltip/tests/BaseWrapper.tsx +10 -0
  1043. package/src/components/Tooltip/tests/InfoTooltip.unit.test.js +98 -0
  1044. package/src/components/Tooltip/tests/Tooltip.conformance.test.js +44 -0
  1045. package/src/components/Tooltip/tests/Tooltip.unit.test.js +326 -0
  1046. package/src/components/index.ts +147 -3
  1047. package/src/components/static.ts +1 -1
  1048. package/src/styles/base/globals-forms.scss +15 -13
  1049. package/src/styles/base/globals.scss +132 -103
  1050. package/src/styles/before-components.scss +18 -4
  1051. package/src/styles/export/base.scss +1 -1
  1052. package/src/styles/export/color.scss +22 -22
  1053. package/src/styles/shame.scss +10 -8
  1054. package/src/styles/tokens/base.scss +4 -4
  1055. package/src/styles/tokens/color.scss +11 -11
  1056. package/src/styles/typography/mixins.scss +1 -1
  1057. package/src/styles/typography/style.scss +43 -41
  1058. package/src/styles/utilities/border.scss +16 -15
  1059. package/src/styles/utilities/color.scss +115 -95
  1060. package/src/styles/utilities/horizontal-scroll.scss +40 -36
  1061. package/src/styles/utilities/layout.scss +159 -157
  1062. package/src/styles/utilities/text.scss +98 -84
  1063. package/src/styles/utilities/visibility.scss +66 -62
  1064. package/build/404.html +0 -1
  1065. package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_buildManifest.js +0 -1
  1066. package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_ssgManifest.js +0 -1
  1067. package/build/_next/static/chunks/4bd1b696-40a218329c8ae32b.js +0 -1
  1068. package/build/_next/static/chunks/684-c72f8f73e7f2d568.js +0 -1
  1069. package/build/_next/static/chunks/925.75d0c8afa7ab7cfa.js +0 -1
  1070. package/build/_next/static/chunks/998-a45c3cf6f575e126.js +0 -1
  1071. package/build/_next/static/chunks/app/_not-found/page-c799b4c91b89a5c2.js +0 -1
  1072. package/build/_next/static/chunks/app/components/alert/page-d591b03a7394f81e.js +0 -1
  1073. package/build/_next/static/chunks/app/components/badge/page-bbcffd5558aeab06.js +0 -1
  1074. package/build/_next/static/chunks/app/components/button/page-b922a8f5114b0a69.js +0 -1
  1075. package/build/_next/static/chunks/app/components/buttons/page-0a5bf7e5ac7991fb.js +0 -1
  1076. package/build/_next/static/chunks/app/components/icon/page-dac6ba29b85d924d.js +0 -1
  1077. package/build/_next/static/chunks/app/components/modal/page-4a249b6d271eea91.js +0 -1
  1078. package/build/_next/static/chunks/app/components/tabs/page-7d82e8eafd25b86e.js +0 -1
  1079. package/build/_next/static/chunks/app/layout-f74d44a2772d8d63.js +0 -1
  1080. package/build/_next/static/chunks/app/page-9efa16a51ef59461.js +0 -1
  1081. package/build/_next/static/chunks/framework-f593a28cde54158e.js +0 -1
  1082. package/build/_next/static/chunks/main-43608b6b4bb05f8f.js +0 -1
  1083. package/build/_next/static/chunks/main-app-ce2a2222e012907f.js +0 -1
  1084. package/build/_next/static/chunks/pages/_app-da15c11dea942c36.js +0 -1
  1085. package/build/_next/static/chunks/pages/_error-cc3f077a18ea1793.js +0 -1
  1086. package/build/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  1087. package/build/_next/static/chunks/webpack-623f6e616651e1c0.js +0 -1
  1088. package/build/_next/static/css/14f3a3e0186fb7a8.css +0 -3
  1089. package/build/_next/static/css/168dd2b7e791cf72.css +0 -1
  1090. package/build/_next/static/css/28a41a1d7dcdbfd9.css +0 -1
  1091. package/build/_next/static/css/291602d64f1f3570.css +0 -1
  1092. package/build/_next/static/css/4c4366b3963177f0.css +0 -1
  1093. package/build/_next/static/css/5481aeac9adca710.css +0 -1
  1094. package/build/_next/static/css/73b136688c14b891.css +0 -1
  1095. package/build/_next/static/css/91c8cf755bf9ff19.css +0 -1
  1096. package/build/_next/static/css/c1b0424033f305ff.css +0 -1
  1097. package/build/_next/static/css/eea9fd9ccdd56c76.css +0 -1
  1098. package/build/_next/static/media/671791babd225be4-s.p.woff2 +0 -0
  1099. package/build/_next/static/media/c62d990acddde5f0-s.p.woff2 +0 -0
  1100. package/build/_next/static/media/dfdbb1c4973e0bd7-s.p.woff2 +0 -0
  1101. package/build/components/Badge/index.js +0 -619
  1102. package/build/components/Badge/index.js.map +0 -1
  1103. package/build/components/Badge/style.css +0 -2
  1104. package/build/components/Badge/style.css.map +0 -1
  1105. package/build/components/alert.html +0 -2
  1106. package/build/components/alert.txt +0 -30
  1107. package/build/components/badge.html +0 -4
  1108. package/build/components/badge.txt +0 -24
  1109. package/build/components/button.html +0 -2
  1110. package/build/components/button.txt +0 -27
  1111. package/build/components/buttons.html +0 -1
  1112. package/build/components/buttons.txt +0 -27
  1113. package/build/components/icon.html +0 -1
  1114. package/build/components/icon.txt +0 -23
  1115. package/build/components/modal.html +0 -1
  1116. package/build/components/modal.txt +0 -29
  1117. package/build/components/tabs.html +0 -1
  1118. package/build/components/tabs.txt +0 -27
  1119. package/build/components/types/components/Badge/Badge.d.ts +0 -12
  1120. package/build/components/types/components/Badge/index.d.ts +0 -2
  1121. package/build/components/types/components/Container/Container.d.ts +0 -6
  1122. package/build/components/types/components/Container/index.d.ts +0 -3
  1123. package/build/components/types/components/index.d.ts +0 -11
  1124. package/build/components/types/utils/ConditionalWrapper.d.ts +0 -13
  1125. package/build/index.html +0 -11
  1126. package/build/index.txt +0 -23
  1127. package/src/components/Badge/Badge.mdx +0 -52
  1128. package/src/components/Badge/Badge.tsx +0 -47
  1129. package/src/components/Badge/index.ts +0 -3
  1130. package/src/components/Badge/styles/config.scss +0 -88
  1131. package/src/components/Badge/styles/mixins.scss +0 -26
  1132. package/src/components/Badge/styles/style.scss +0 -21
  1133. package/src/components/Badge/tests/Badge.unit.test.js +0 -50
  1134. package/src/components/Grid/tests/Grid.unit.test.tsx +0 -533
  1135. package/src/components/Grid/tests/GridCol.unit.test.tsx +0 -199
  1136. package/src/components/Link/styles/config.scss +0 -85
  1137. package/src/components/Link/tests/Link.integration.test.js +0 -393
  1138. /package/build/components/types/{components → src/components}/Alert/data.d.ts +0 -0
  1139. /package/build/components/types/{components → src/components}/Alert/index.d.ts +0 -0
  1140. /package/build/components/types/{components → src/components}/Button/IconButton.d.ts +0 -0
  1141. /package/build/components/types/{components → src/components}/Button/index.d.ts +0 -0
  1142. /package/build/components/types/{components → src/components}/Buttons/Buttons.d.ts +0 -0
  1143. /package/build/components/types/{components → src/components}/Buttons/index.d.ts +0 -0
  1144. /package/build/components/types/{components → src/components}/Icon/SpritePathContext.d.ts +0 -0
  1145. /package/build/components/types/{components → src/components}/Icon/index.d.ts +0 -0
  1146. /package/build/components/types/{components → src/components}/Modal/Modal.static.d.ts +0 -0
  1147. /package/build/components/types/{components → src/components}/Modal/ModalBody.d.ts +0 -0
  1148. /package/build/components/types/{components → src/components}/Modal/ModalCloseButton.d.ts +0 -0
  1149. /package/build/components/types/{components → src/components}/Modal/ModalTitle.d.ts +0 -0
  1150. /package/build/components/types/{components → src/components}/Modal/index.d.ts +0 -0
  1151. /package/build/components/types/{components → src/components}/Section/Section.d.ts +0 -0
  1152. /package/build/components/types/{components → src/components}/Section/index.d.ts +0 -0
  1153. /package/build/components/types/{components → src/components}/Tabs/Tab.d.ts +0 -0
  1154. /package/build/components/types/{components → src/components}/Tabs/TabPanel.d.ts +0 -0
  1155. /package/build/components/types/{components → src/components}/Tabs/Tabs.static.d.ts +0 -0
  1156. /package/build/components/types/{components → src/components}/Tabs/index.d.ts +0 -0
  1157. /package/build/components/types/{utils → src/utils}/constants.d.ts +0 -0
  1158. /package/build/components/types/{utils → src/utils}/generateId.d.ts +0 -0
  1159. /package/build/components/types/{utils → src/utils}/keyboard.d.ts +0 -0
@@ -1,283 +1,9 @@
1
- import React, { useContext, cloneElement, useRef, useEffect, useCallback } from 'react';
2
-
3
- function _arrayLikeToArray(r, a) {
4
- (null == a || a > r.length) && (a = r.length);
5
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6
- return n;
7
- }
8
- function _arrayWithHoles(r) {
9
- if (Array.isArray(r)) return r;
10
- }
11
- function _classCallCheck(a, n) {
12
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13
- }
14
- function _defineProperties(e, r) {
15
- for (var t = 0; t < r.length; t++) {
16
- var o = r[t];
17
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
18
- }
19
- }
20
- function _createClass(e, r, t) {
21
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
22
- writable: false
23
- }), e;
24
- }
25
- function _defineProperty(e, r, t) {
26
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
27
- value: t,
28
- enumerable: true,
29
- configurable: true,
30
- writable: true
31
- }) : e[r] = t, e;
32
- }
33
- function _iterableToArrayLimit(r, l) {
34
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
35
- if (null != t) {
36
- var e,
37
- n,
38
- i,
39
- u,
40
- a = [],
41
- f = true,
42
- o = false;
43
- try {
44
- if (i = (t = t.call(r)).next, 0 === l) {
45
- if (Object(t) !== t) return;
46
- f = !1;
47
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
48
- } catch (r) {
49
- o = true, n = r;
50
- } finally {
51
- try {
52
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
53
- } finally {
54
- if (o) throw n;
55
- }
56
- }
57
- return a;
58
- }
59
- }
60
- function _nonIterableRest() {
61
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
62
- }
63
- function ownKeys(e, r) {
64
- var t = Object.keys(e);
65
- if (Object.getOwnPropertySymbols) {
66
- var o = Object.getOwnPropertySymbols(e);
67
- r && (o = o.filter(function (r) {
68
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
69
- })), t.push.apply(t, o);
70
- }
71
- return t;
72
- }
73
- function _objectSpread2(e) {
74
- for (var r = 1; r < arguments.length; r++) {
75
- var t = null != arguments[r] ? arguments[r] : {};
76
- r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
77
- _defineProperty(e, r, t[r]);
78
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
79
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
80
- });
81
- }
82
- return e;
83
- }
84
- function _slicedToArray(r, e) {
85
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
86
- }
87
- function _toPrimitive(t, r) {
88
- if ("object" != typeof t || !t) return t;
89
- var e = t[Symbol.toPrimitive];
90
- if (void 0 !== e) {
91
- var i = e.call(t, r);
92
- if ("object" != typeof i) return i;
93
- throw new TypeError("@@toPrimitive must return a primitive value.");
94
- }
95
- return ("string" === r ? String : Number)(t);
96
- }
97
- function _toPropertyKey(t) {
98
- var i = _toPrimitive(t, "string");
99
- return "symbol" == typeof i ? i : i + "";
100
- }
101
- function _unsupportedIterableToArray(r, a) {
102
- if (r) {
103
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
104
- var t = {}.toString.call(r).slice(8, -1);
105
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
106
- }
107
- }
108
-
109
- /******************************************************************************
110
- Copyright (c) Microsoft Corporation.
111
-
112
- Permission to use, copy, modify, and/or distribute this software for any
113
- purpose with or without fee is hereby granted.
114
-
115
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
116
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
117
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
118
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
119
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
120
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
121
- PERFORMANCE OF THIS SOFTWARE.
122
- ***************************************************************************** */
123
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
124
-
125
-
126
- function __rest(s, e) {
127
- var t = {};
128
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
129
- t[p] = s[p];
130
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
131
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
133
- t[p[i]] = s[p[i]];
134
- }
135
- return t;
136
- }
137
-
138
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
139
- var e = new Error(message);
140
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
141
- };
142
-
143
- function getDefaultExportFromCjs (x) {
144
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
145
- }
146
-
147
- var classnames = {exports: {}};
148
-
1
+ import e,{createContext as t,useRef as n,useEffect as i,useCallback as r,useState as a,useContext as s,cloneElement as o,forwardRef as l,createElement as c,useId as d,useMemo as u}from"react";function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,x(i.key),i)}}function m(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function E(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var N,T={exports:{}};
149
2
  /*!
150
3
  Copyright (c) 2018 Jed Watson.
151
4
  Licensed under the MIT License (MIT), see
152
5
  http://jedwatson.github.io/classnames
153
- */
154
-
155
- var hasRequiredClassnames;
156
-
157
- function requireClassnames () {
158
- if (hasRequiredClassnames) return classnames.exports;
159
- hasRequiredClassnames = 1;
160
- (function (module) {
161
- /* global define */
162
-
163
- (function () {
164
-
165
- var hasOwn = {}.hasOwnProperty;
166
-
167
- function classNames () {
168
- var classes = '';
169
-
170
- for (var i = 0; i < arguments.length; i++) {
171
- var arg = arguments[i];
172
- if (arg) {
173
- classes = appendClass(classes, parseValue(arg));
174
- }
175
- }
176
-
177
- return classes;
178
- }
179
-
180
- function parseValue (arg) {
181
- if (typeof arg === 'string' || typeof arg === 'number') {
182
- return arg;
183
- }
184
-
185
- if (typeof arg !== 'object') {
186
- return '';
187
- }
188
-
189
- if (Array.isArray(arg)) {
190
- return classNames.apply(null, arg);
191
- }
192
-
193
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
194
- return arg.toString();
195
- }
196
-
197
- var classes = '';
198
-
199
- for (var key in arg) {
200
- if (hasOwn.call(arg, key) && arg[key]) {
201
- classes = appendClass(classes, key);
202
- }
203
- }
204
-
205
- return classes;
206
- }
207
-
208
- function appendClass (value, newClass) {
209
- if (!newClass) {
210
- return value;
211
- }
212
-
213
- if (value) {
214
- return value + ' ' + newClass;
215
- }
216
-
217
- return value + newClass;
218
- }
219
-
220
- if (module.exports) {
221
- classNames.default = classNames;
222
- module.exports = classNames;
223
- } else {
224
- window.classNames = classNames;
225
- }
226
- }());
227
- } (classnames));
228
- return classnames.exports;
229
- }
230
-
231
- var classnamesExports = requireClassnames();
232
- var cx = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
233
-
234
- var jsxRuntime = {exports: {}};
235
-
236
- var reactJsxRuntime_production = {};
237
-
238
- /**
239
- * @license React
240
- * react-jsx-runtime.production.js
241
- *
242
- * Copyright (c) Meta Platforms, Inc. and affiliates.
243
- *
244
- * This source code is licensed under the MIT license found in the
245
- * LICENSE file in the root directory of this source tree.
246
- */
247
-
248
- var hasRequiredReactJsxRuntime_production;
249
-
250
- function requireReactJsxRuntime_production () {
251
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
252
- hasRequiredReactJsxRuntime_production = 1;
253
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
254
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
255
- function jsxProd(type, config, maybeKey) {
256
- var key = null;
257
- void 0 !== maybeKey && (key = "" + maybeKey);
258
- void 0 !== config.key && (key = "" + config.key);
259
- if ("key" in config) {
260
- maybeKey = {};
261
- for (var propName in config)
262
- "key" !== propName && (maybeKey[propName] = config[propName]);
263
- } else maybeKey = config;
264
- config = maybeKey.ref;
265
- return {
266
- $$typeof: REACT_ELEMENT_TYPE,
267
- type: type,
268
- key: key,
269
- ref: void 0 !== config ? config : null,
270
- props: maybeKey
271
- };
272
- }
273
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
274
- reactJsxRuntime_production.jsx = jsxProd;
275
- reactJsxRuntime_production.jsxs = jsxProd;
276
- return reactJsxRuntime_production;
277
- }
278
-
279
- var reactJsxRuntime_development = {};
280
-
6
+ */var C,O=(N||(N=1,C=T,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,n(r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var a in n)e.call(n,a)&&n[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+" "+t:e+t:e}C.exports?(t.default=t,C.exports=t):window.classNames=t}()),T.exports),j=k(O),A={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},D=function(){return m(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};h(this,e),this.elems=t,this.config=n,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(A.ARROWUP.includes(e.key)||A.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(A.ARROWLEFT.includes(e.key)||A.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((A.ARROWDOWN.includes(e.key)||A.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(A.ARROWUP.includes(e.key)||A.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),A.TAB.includes(e.key)&&this.destroy())}}])}(),L={activeClass:"is-active",settingsAttr:"data-toggle"},M=function(){function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},L),n),this.settings=[],this.targets=[],this.handleClick=this.handleClick.bind(this),this.element.ODS_Toggle=this,this.init(),this}return m(e,[{key:"doToggle",value:function(e){var t=e.dispatchEvent,n=void 0===t||t,i=e.element,r=e.attribute,a=e.value,s=e.action,o=Object.assign({},e),l={trigger:this.element,element:i},c=r,d=i,u=a;"icon"===c&&(c="xlink:href",d=i.querySelector("use")),"text"===c&&(d=i.querySelector("[data-toggle-text-target]")||i),void 0===u&&(u=!1);var p=P({element:d,attribute:c,action:s,value:u,dispatchEvent:n,eventDetail:l});return null!==p&&(o.value=p),o}},{key:"init",value:function(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.element.addEventListener("click",this.handleClick),this.targets}},{key:"handleClick",value:function(){var e=this;this.targets=this.targets.map(function(t){return e.doToggle(t)}),this.element.dispatchEvent(new CustomEvent("toggleTrigger",{bubbles:!0}))}},{key:"destroy",value:function(){this.element.removeEventListener("click",this.handleClick),this.settings=[],this.targets=[]}},{key:"update",value:function(){this.removeNonExistentTargets(),this.addNewTargets()}},{key:"parseSettings",value:function(){var e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls"),n=[];try{e&&(n=JSON.parse(e))}catch(e){console.warn("Invalid JSON in data-toggle attribute",e)}if(t){var i=this.element.getAttribute("aria-expanded");n=[].concat(_(i?[{target:"self",attribute:"aria-expanded"}]:[]),[{target:t.split(" ").map(function(e){return"#".concat(e)}).join(","),attribute:"hidden"}],_(Array.isArray(n)?n:[]))}return n}},{key:"setupTargets",value:function(){var t=this.element;return this.settings.reduce(function(n,i){return i&&i.target?[].concat(_(n),_(i.target.split(",").reduce(function(n,r){return[].concat(_(n),_(e.getTargetElementsFromString({target:r,trigger:t}).map(function(e){return Object.assign(Object.assign({},i),{element:e})})))},[]))):n},[])}},{key:"removeNonExistentTargets",value:function(){this.targets=this.targets.filter(function(e){return document.contains(e.element)})}},{key:"addNewTargets",value:function(){var e=this,t=this.setupTargets().filter(function(t){return!e.targets.find(function(e){return e.element===t.element&&e.action===t.action})});this.targets=[].concat(_(this.targets),_(t))}}],[{key:"getTargetElementsFromString",value:function(e){var t=e.target,n=e.trigger,i=t.trim();return"self"===i?[n]:"parent"===i?[n.parentNode]:"previous"===i?[n.previousElementSibling]:"next"===i?[n.nextElementSibling]:"string"==typeof i?Array.from(document.querySelectorAll(i)):[]}},{key:"getInstance",value:function(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}])}();function P(e){var t=e.element,n=e.attribute,i=e.action,r=e.value,a=e.dispatchEvent,s=void 0===a||a,o=e.eventDetail,l=null;if(!(t&&t instanceof Element))return l;if("focus"===i&&setTimeout(function(){return t.focus()},20),"click"===i&&t.click(),"class"===n&&"string"==typeof r&&(t.classList.toggle(r),l=r),"text"===n){var c=t.textContent;t.textContent=(null==r?void 0:r.toString())||"",l=c}return"class"!==n&&"text"!==n&&void 0===i&&(l=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):r?t.setAttribute(n,String(r)):t.setAttribute(n,String(!("true"===l)))),s&&t.dispatchEvent(new CustomEvent("toggle",{detail:o,bubbles:!0})),l}var I={buttonSelector:"[data-accordion-toggle]"},z=function(){return m(function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},I),n),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new D(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.getAttribute("data-toggle")||t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget,n=this.element.querySelector("#".concat(t.getAttribute("aria-controls")));P({element:t,attribute:"aria-expanded"}),P({element:n,attribute:"hidden"})}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),R=t(null),F=0;function B(e){return"id".concat("","-").concat(F+=1)}var V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n(null),s=n(t);i(function(){s.current=null!=t?t:{}},[t]);var o=r(function(t){var n,i,r=s.current;t&&(null===a.current?a.current=new e(t,r):null===(i=(n=a.current).update)||void 0===i||i.call(n,r))},[e]);return i(function(){return function(){var e,t;a.current&&(null===(t=(e=a.current).destroy)||void 0===t||t.call(e),a.current=null)}},[]),[o,a]},H={current:0};var U,$={exports:{}},q={};var G,W,Y={};
281
7
  /**
282
8
  * @license React
283
9
  * react-jsx-runtime.development.js
@@ -286,3393 +12,11 @@ var reactJsxRuntime_development = {};
286
12
  *
287
13
  * This source code is licensed under the MIT license found in the
288
14
  * LICENSE file in the root directory of this source tree.
289
- */
290
-
291
- var hasRequiredReactJsxRuntime_development;
292
-
293
- function requireReactJsxRuntime_development () {
294
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
295
- hasRequiredReactJsxRuntime_development = 1;
296
- "production" !== process.env.NODE_ENV &&
297
- (function () {
298
- function getComponentNameFromType(type) {
299
- if (null == type) return null;
300
- if ("function" === typeof type)
301
- return type.$$typeof === REACT_CLIENT_REFERENCE
302
- ? null
303
- : type.displayName || type.name || null;
304
- if ("string" === typeof type) return type;
305
- switch (type) {
306
- case REACT_FRAGMENT_TYPE:
307
- return "Fragment";
308
- case REACT_PROFILER_TYPE:
309
- return "Profiler";
310
- case REACT_STRICT_MODE_TYPE:
311
- return "StrictMode";
312
- case REACT_SUSPENSE_TYPE:
313
- return "Suspense";
314
- case REACT_SUSPENSE_LIST_TYPE:
315
- return "SuspenseList";
316
- case REACT_ACTIVITY_TYPE:
317
- return "Activity";
318
- }
319
- if ("object" === typeof type)
320
- switch (
321
- ("number" === typeof type.tag &&
322
- console.error(
323
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
324
- ),
325
- type.$$typeof)
326
- ) {
327
- case REACT_PORTAL_TYPE:
328
- return "Portal";
329
- case REACT_CONTEXT_TYPE:
330
- return (type.displayName || "Context") + ".Provider";
331
- case REACT_CONSUMER_TYPE:
332
- return (type._context.displayName || "Context") + ".Consumer";
333
- case REACT_FORWARD_REF_TYPE:
334
- var innerType = type.render;
335
- type = type.displayName;
336
- type ||
337
- ((type = innerType.displayName || innerType.name || ""),
338
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
339
- return type;
340
- case REACT_MEMO_TYPE:
341
- return (
342
- (innerType = type.displayName || null),
343
- null !== innerType
344
- ? innerType
345
- : getComponentNameFromType(type.type) || "Memo"
346
- );
347
- case REACT_LAZY_TYPE:
348
- innerType = type._payload;
349
- type = type._init;
350
- try {
351
- return getComponentNameFromType(type(innerType));
352
- } catch (x) {}
353
- }
354
- return null;
355
- }
356
- function testStringCoercion(value) {
357
- return "" + value;
358
- }
359
- function checkKeyStringCoercion(value) {
360
- try {
361
- testStringCoercion(value);
362
- var JSCompiler_inline_result = !1;
363
- } catch (e) {
364
- JSCompiler_inline_result = true;
365
- }
366
- if (JSCompiler_inline_result) {
367
- JSCompiler_inline_result = console;
368
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
369
- var JSCompiler_inline_result$jscomp$0 =
370
- ("function" === typeof Symbol &&
371
- Symbol.toStringTag &&
372
- value[Symbol.toStringTag]) ||
373
- value.constructor.name ||
374
- "Object";
375
- JSCompiler_temp_const.call(
376
- JSCompiler_inline_result,
377
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
378
- JSCompiler_inline_result$jscomp$0
379
- );
380
- return testStringCoercion(value);
381
- }
382
- }
383
- function getTaskName(type) {
384
- if (type === REACT_FRAGMENT_TYPE) return "<>";
385
- if (
386
- "object" === typeof type &&
387
- null !== type &&
388
- type.$$typeof === REACT_LAZY_TYPE
389
- )
390
- return "<...>";
391
- try {
392
- var name = getComponentNameFromType(type);
393
- return name ? "<" + name + ">" : "<...>";
394
- } catch (x) {
395
- return "<...>";
396
- }
397
- }
398
- function getOwner() {
399
- var dispatcher = ReactSharedInternals.A;
400
- return null === dispatcher ? null : dispatcher.getOwner();
401
- }
402
- function UnknownOwner() {
403
- return Error("react-stack-top-frame");
404
- }
405
- function hasValidKey(config) {
406
- if (hasOwnProperty.call(config, "key")) {
407
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
408
- if (getter && getter.isReactWarning) return false;
409
- }
410
- return void 0 !== config.key;
411
- }
412
- function defineKeyPropWarningGetter(props, displayName) {
413
- function warnAboutAccessingKey() {
414
- specialPropKeyWarningShown ||
415
- ((specialPropKeyWarningShown = true),
416
- console.error(
417
- "%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://react.dev/link/special-props)",
418
- displayName
419
- ));
420
- }
421
- warnAboutAccessingKey.isReactWarning = true;
422
- Object.defineProperty(props, "key", {
423
- get: warnAboutAccessingKey,
424
- configurable: true
425
- });
426
- }
427
- function elementRefGetterWithDeprecationWarning() {
428
- var componentName = getComponentNameFromType(this.type);
429
- didWarnAboutElementRef[componentName] ||
430
- ((didWarnAboutElementRef[componentName] = true),
431
- console.error(
432
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
433
- ));
434
- componentName = this.props.ref;
435
- return void 0 !== componentName ? componentName : null;
436
- }
437
- function ReactElement(
438
- type,
439
- key,
440
- self,
441
- source,
442
- owner,
443
- props,
444
- debugStack,
445
- debugTask
446
- ) {
447
- self = props.ref;
448
- type = {
449
- $$typeof: REACT_ELEMENT_TYPE,
450
- type: type,
451
- key: key,
452
- props: props,
453
- _owner: owner
454
- };
455
- null !== (void 0 !== self ? self : null)
456
- ? Object.defineProperty(type, "ref", {
457
- enumerable: false,
458
- get: elementRefGetterWithDeprecationWarning
459
- })
460
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
461
- type._store = {};
462
- Object.defineProperty(type._store, "validated", {
463
- configurable: false,
464
- enumerable: false,
465
- writable: true,
466
- value: 0
467
- });
468
- Object.defineProperty(type, "_debugInfo", {
469
- configurable: false,
470
- enumerable: false,
471
- writable: true,
472
- value: null
473
- });
474
- Object.defineProperty(type, "_debugStack", {
475
- configurable: false,
476
- enumerable: false,
477
- writable: true,
478
- value: debugStack
479
- });
480
- Object.defineProperty(type, "_debugTask", {
481
- configurable: false,
482
- enumerable: false,
483
- writable: true,
484
- value: debugTask
485
- });
486
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
487
- return type;
488
- }
489
- function jsxDEVImpl(
490
- type,
491
- config,
492
- maybeKey,
493
- isStaticChildren,
494
- source,
495
- self,
496
- debugStack,
497
- debugTask
498
- ) {
499
- var children = config.children;
500
- if (void 0 !== children)
501
- if (isStaticChildren)
502
- if (isArrayImpl(children)) {
503
- for (
504
- isStaticChildren = 0;
505
- isStaticChildren < children.length;
506
- isStaticChildren++
507
- )
508
- validateChildKeys(children[isStaticChildren]);
509
- Object.freeze && Object.freeze(children);
510
- } else
511
- console.error(
512
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
513
- );
514
- else validateChildKeys(children);
515
- if (hasOwnProperty.call(config, "key")) {
516
- children = getComponentNameFromType(type);
517
- var keys = Object.keys(config).filter(function (k) {
518
- return "key" !== k;
519
- });
520
- isStaticChildren =
521
- 0 < keys.length
522
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
523
- : "{key: someKey}";
524
- didWarnAboutKeySpread[children + isStaticChildren] ||
525
- ((keys =
526
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
527
- console.error(
528
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
529
- isStaticChildren,
530
- children,
531
- keys,
532
- children
533
- ),
534
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
535
- }
536
- children = null;
537
- void 0 !== maybeKey &&
538
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
539
- hasValidKey(config) &&
540
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
541
- if ("key" in config) {
542
- maybeKey = {};
543
- for (var propName in config)
544
- "key" !== propName && (maybeKey[propName] = config[propName]);
545
- } else maybeKey = config;
546
- children &&
547
- defineKeyPropWarningGetter(
548
- maybeKey,
549
- "function" === typeof type
550
- ? type.displayName || type.name || "Unknown"
551
- : type
552
- );
553
- return ReactElement(
554
- type,
555
- children,
556
- self,
557
- source,
558
- getOwner(),
559
- maybeKey,
560
- debugStack,
561
- debugTask
562
- );
563
- }
564
- function validateChildKeys(node) {
565
- "object" === typeof node &&
566
- null !== node &&
567
- node.$$typeof === REACT_ELEMENT_TYPE &&
568
- node._store &&
569
- (node._store.validated = 1);
570
- }
571
- var React$1 = React,
572
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
573
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
574
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
575
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
576
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
577
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
578
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
579
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
580
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
581
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
582
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
583
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
584
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
585
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
586
- ReactSharedInternals =
587
- React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
588
- hasOwnProperty = Object.prototype.hasOwnProperty,
589
- isArrayImpl = Array.isArray,
590
- createTask = console.createTask
591
- ? console.createTask
592
- : function () {
593
- return null;
594
- };
595
- React$1 = {
596
- "react-stack-bottom-frame": function (callStackForError) {
597
- return callStackForError();
598
- }
599
- };
600
- var specialPropKeyWarningShown;
601
- var didWarnAboutElementRef = {};
602
- var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
603
- React$1,
604
- UnknownOwner
605
- )();
606
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
607
- var didWarnAboutKeySpread = {};
608
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
609
- reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
610
- var trackActualOwner =
611
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
612
- return jsxDEVImpl(
613
- type,
614
- config,
615
- maybeKey,
616
- false,
617
- source,
618
- self,
619
- trackActualOwner
620
- ? Error("react-stack-top-frame")
621
- : unknownOwnerDebugStack,
622
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
623
- );
624
- };
625
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
626
- var trackActualOwner =
627
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
628
- return jsxDEVImpl(
629
- type,
630
- config,
631
- maybeKey,
632
- true,
633
- source,
634
- self,
635
- trackActualOwner
636
- ? Error("react-stack-top-frame")
637
- : unknownOwnerDebugStack,
638
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
639
- );
640
- };
641
- })();
642
- return reactJsxRuntime_development;
643
- }
644
-
645
- var hasRequiredJsxRuntime;
646
-
647
- function requireJsxRuntime () {
648
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
649
- hasRequiredJsxRuntime = 1;
650
-
651
- if (process.env.NODE_ENV === 'production') {
652
- jsxRuntime.exports = requireReactJsxRuntime_production();
653
- } else {
654
- jsxRuntime.exports = requireReactJsxRuntime_development();
655
- }
656
- return jsxRuntime.exports;
657
- }
658
-
659
- var jsxRuntimeExports = requireJsxRuntime();
660
-
661
- var SpritePathContext = /*#__PURE__*/React.createContext("/sprite.svg");
662
-
663
- var CLASS_ROOT$8 = "icon";
664
- var Icon = function Icon(_a) {
665
- var className = _a.className,
666
- alt = _a.alt,
667
- color = _a.color,
668
- name = _a.name,
669
- size = _a.size,
670
- _a$spritePath = _a.spritePath,
671
- spritePath = _a$spritePath === void 0 ? "/sprite.svg" : _a$spritePath,
672
- other = __rest(_a, ["className", "alt", "color", "name", "size", "spritePath"]);
673
- var contextPath = useContext(SpritePathContext);
674
- var classes = cx(CLASS_ROOT$8, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$8, "--").concat(size), size), "".concat(CLASS_ROOT$8, "--").concat(color), color), className);
675
- return /*#__PURE__*/jsxRuntimeExports.jsxs("svg", _objectSpread2(_objectSpread2({
676
- className: classes,
677
- "aria-hidden": alt !== undefined ? undefined : "true",
678
- role: alt !== undefined ? "img" : undefined
679
- }, other), {}, {
680
- children: [alt !== undefined && alt.length > 0 && /*#__PURE__*/jsxRuntimeExports.jsx("title", {
681
- children: alt
682
- }), /*#__PURE__*/jsxRuntimeExports.jsx("use", {
683
- xlinkHref: spritePath !== "/sprite.svg" || typeof contextPath === "undefined" ? "".concat(spritePath, "#").concat(name) : "".concat(contextPath, "#").concat(name)
684
- })]
685
- }));
686
- };
687
- Icon.displayName = "Icon";
688
-
689
- var CLASS_ROOT$7 = "buttons";
690
- var Buttons = function Buttons(_a) {
691
- var isStackedOnXs = _a.isStackedOnXs,
692
- children = _a.children,
693
- className = _a.className,
694
- other = __rest(_a, ["isStackedOnXs", "children", "className"]);
695
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
696
- className: cx(CLASS_ROOT$7, _defineProperty({}, "".concat(CLASS_ROOT$7, "--stack-on-xs"), isStackedOnXs), className)
697
- }, other), {}, {
698
- children: children
699
- }));
700
- };
701
- Buttons.displayName = "Buttons";
702
-
703
- var propTypes$1 = {exports: {}};
704
-
705
- var reactIs = {exports: {}};
706
-
707
- var reactIs_production_min = {};
708
-
709
- /** @license React v16.13.1
710
- * react-is.production.min.js
711
- *
712
- * Copyright (c) Facebook, Inc. and its affiliates.
713
- *
714
- * This source code is licensed under the MIT license found in the
715
- * LICENSE file in the root directory of this source tree.
716
- */
717
-
718
- var hasRequiredReactIs_production_min;
719
-
720
- function requireReactIs_production_min () {
721
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
722
- hasRequiredReactIs_production_min = 1;
723
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
724
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
725
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
726
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
727
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
728
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
729
- return reactIs_production_min;
730
- }
731
-
732
- var reactIs_development = {};
733
-
734
- /** @license React v16.13.1
735
- * react-is.development.js
736
- *
737
- * Copyright (c) Facebook, Inc. and its affiliates.
738
- *
739
- * This source code is licensed under the MIT license found in the
740
- * LICENSE file in the root directory of this source tree.
741
- */
742
-
743
- var hasRequiredReactIs_development;
744
-
745
- function requireReactIs_development () {
746
- if (hasRequiredReactIs_development) return reactIs_development;
747
- hasRequiredReactIs_development = 1;
748
-
749
-
750
-
751
- if (process.env.NODE_ENV !== "production") {
752
- (function() {
753
-
754
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
755
- // nor polyfill, then a plain number is used for performance.
756
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
757
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
758
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
759
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
760
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
761
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
762
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
763
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
764
- // (unstable) APIs that have been removed. Can we remove the symbols?
765
-
766
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
767
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
768
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
769
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
770
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
771
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
772
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
773
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
774
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
775
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
776
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
777
-
778
- function isValidElementType(type) {
779
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
780
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
781
- }
782
-
783
- function typeOf(object) {
784
- if (typeof object === 'object' && object !== null) {
785
- var $$typeof = object.$$typeof;
786
-
787
- switch ($$typeof) {
788
- case REACT_ELEMENT_TYPE:
789
- var type = object.type;
790
-
791
- switch (type) {
792
- case REACT_ASYNC_MODE_TYPE:
793
- case REACT_CONCURRENT_MODE_TYPE:
794
- case REACT_FRAGMENT_TYPE:
795
- case REACT_PROFILER_TYPE:
796
- case REACT_STRICT_MODE_TYPE:
797
- case REACT_SUSPENSE_TYPE:
798
- return type;
799
-
800
- default:
801
- var $$typeofType = type && type.$$typeof;
802
-
803
- switch ($$typeofType) {
804
- case REACT_CONTEXT_TYPE:
805
- case REACT_FORWARD_REF_TYPE:
806
- case REACT_LAZY_TYPE:
807
- case REACT_MEMO_TYPE:
808
- case REACT_PROVIDER_TYPE:
809
- return $$typeofType;
810
-
811
- default:
812
- return $$typeof;
813
- }
814
-
815
- }
816
-
817
- case REACT_PORTAL_TYPE:
818
- return $$typeof;
819
- }
820
- }
821
-
822
- return undefined;
823
- } // AsyncMode is deprecated along with isAsyncMode
824
-
825
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
826
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
827
- var ContextConsumer = REACT_CONTEXT_TYPE;
828
- var ContextProvider = REACT_PROVIDER_TYPE;
829
- var Element = REACT_ELEMENT_TYPE;
830
- var ForwardRef = REACT_FORWARD_REF_TYPE;
831
- var Fragment = REACT_FRAGMENT_TYPE;
832
- var Lazy = REACT_LAZY_TYPE;
833
- var Memo = REACT_MEMO_TYPE;
834
- var Portal = REACT_PORTAL_TYPE;
835
- var Profiler = REACT_PROFILER_TYPE;
836
- var StrictMode = REACT_STRICT_MODE_TYPE;
837
- var Suspense = REACT_SUSPENSE_TYPE;
838
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
839
-
840
- function isAsyncMode(object) {
841
- {
842
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
843
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
844
-
845
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
846
- }
847
- }
848
-
849
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
850
- }
851
- function isConcurrentMode(object) {
852
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
853
- }
854
- function isContextConsumer(object) {
855
- return typeOf(object) === REACT_CONTEXT_TYPE;
856
- }
857
- function isContextProvider(object) {
858
- return typeOf(object) === REACT_PROVIDER_TYPE;
859
- }
860
- function isElement(object) {
861
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
862
- }
863
- function isForwardRef(object) {
864
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
865
- }
866
- function isFragment(object) {
867
- return typeOf(object) === REACT_FRAGMENT_TYPE;
868
- }
869
- function isLazy(object) {
870
- return typeOf(object) === REACT_LAZY_TYPE;
871
- }
872
- function isMemo(object) {
873
- return typeOf(object) === REACT_MEMO_TYPE;
874
- }
875
- function isPortal(object) {
876
- return typeOf(object) === REACT_PORTAL_TYPE;
877
- }
878
- function isProfiler(object) {
879
- return typeOf(object) === REACT_PROFILER_TYPE;
880
- }
881
- function isStrictMode(object) {
882
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
883
- }
884
- function isSuspense(object) {
885
- return typeOf(object) === REACT_SUSPENSE_TYPE;
886
- }
887
-
888
- reactIs_development.AsyncMode = AsyncMode;
889
- reactIs_development.ConcurrentMode = ConcurrentMode;
890
- reactIs_development.ContextConsumer = ContextConsumer;
891
- reactIs_development.ContextProvider = ContextProvider;
892
- reactIs_development.Element = Element;
893
- reactIs_development.ForwardRef = ForwardRef;
894
- reactIs_development.Fragment = Fragment;
895
- reactIs_development.Lazy = Lazy;
896
- reactIs_development.Memo = Memo;
897
- reactIs_development.Portal = Portal;
898
- reactIs_development.Profiler = Profiler;
899
- reactIs_development.StrictMode = StrictMode;
900
- reactIs_development.Suspense = Suspense;
901
- reactIs_development.isAsyncMode = isAsyncMode;
902
- reactIs_development.isConcurrentMode = isConcurrentMode;
903
- reactIs_development.isContextConsumer = isContextConsumer;
904
- reactIs_development.isContextProvider = isContextProvider;
905
- reactIs_development.isElement = isElement;
906
- reactIs_development.isForwardRef = isForwardRef;
907
- reactIs_development.isFragment = isFragment;
908
- reactIs_development.isLazy = isLazy;
909
- reactIs_development.isMemo = isMemo;
910
- reactIs_development.isPortal = isPortal;
911
- reactIs_development.isProfiler = isProfiler;
912
- reactIs_development.isStrictMode = isStrictMode;
913
- reactIs_development.isSuspense = isSuspense;
914
- reactIs_development.isValidElementType = isValidElementType;
915
- reactIs_development.typeOf = typeOf;
916
- })();
917
- }
918
- return reactIs_development;
919
- }
920
-
921
- var hasRequiredReactIs;
922
-
923
- function requireReactIs () {
924
- if (hasRequiredReactIs) return reactIs.exports;
925
- hasRequiredReactIs = 1;
926
-
927
- if (process.env.NODE_ENV === 'production') {
928
- reactIs.exports = requireReactIs_production_min();
929
- } else {
930
- reactIs.exports = requireReactIs_development();
931
- }
932
- return reactIs.exports;
933
- }
934
-
935
- /*
936
- object-assign
937
- (c) Sindre Sorhus
938
- @license MIT
939
- */
940
-
941
- var objectAssign;
942
- var hasRequiredObjectAssign;
943
-
944
- function requireObjectAssign () {
945
- if (hasRequiredObjectAssign) return objectAssign;
946
- hasRequiredObjectAssign = 1;
947
- /* eslint-disable no-unused-vars */
948
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
949
- var hasOwnProperty = Object.prototype.hasOwnProperty;
950
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
951
-
952
- function toObject(val) {
953
- if (val === null || val === undefined) {
954
- throw new TypeError('Object.assign cannot be called with null or undefined');
955
- }
956
-
957
- return Object(val);
958
- }
959
-
960
- function shouldUseNative() {
961
- try {
962
- if (!Object.assign) {
963
- return false;
964
- }
965
-
966
- // Detect buggy property enumeration order in older V8 versions.
967
-
968
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
969
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
970
- test1[5] = 'de';
971
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
972
- return false;
973
- }
974
-
975
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
976
- var test2 = {};
977
- for (var i = 0; i < 10; i++) {
978
- test2['_' + String.fromCharCode(i)] = i;
979
- }
980
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
981
- return test2[n];
982
- });
983
- if (order2.join('') !== '0123456789') {
984
- return false;
985
- }
986
-
987
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
988
- var test3 = {};
989
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
990
- test3[letter] = letter;
991
- });
992
- if (Object.keys(Object.assign({}, test3)).join('') !==
993
- 'abcdefghijklmnopqrst') {
994
- return false;
995
- }
996
-
997
- return true;
998
- } catch (err) {
999
- // We don't expect any of the above to throw, but better to be safe.
1000
- return false;
1001
- }
1002
- }
1003
-
1004
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1005
- var from;
1006
- var to = toObject(target);
1007
- var symbols;
1008
-
1009
- for (var s = 1; s < arguments.length; s++) {
1010
- from = Object(arguments[s]);
1011
-
1012
- for (var key in from) {
1013
- if (hasOwnProperty.call(from, key)) {
1014
- to[key] = from[key];
1015
- }
1016
- }
1017
-
1018
- if (getOwnPropertySymbols) {
1019
- symbols = getOwnPropertySymbols(from);
1020
- for (var i = 0; i < symbols.length; i++) {
1021
- if (propIsEnumerable.call(from, symbols[i])) {
1022
- to[symbols[i]] = from[symbols[i]];
1023
- }
1024
- }
1025
- }
1026
- }
1027
-
1028
- return to;
1029
- };
1030
- return objectAssign;
1031
- }
1032
-
1033
- /**
1034
- * Copyright (c) 2013-present, Facebook, Inc.
1035
- *
1036
- * This source code is licensed under the MIT license found in the
1037
- * LICENSE file in the root directory of this source tree.
1038
- */
1039
-
1040
- var ReactPropTypesSecret_1;
1041
- var hasRequiredReactPropTypesSecret;
1042
-
1043
- function requireReactPropTypesSecret () {
1044
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
1045
- hasRequiredReactPropTypesSecret = 1;
1046
-
1047
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1048
-
1049
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
1050
- return ReactPropTypesSecret_1;
1051
- }
1052
-
1053
- var has;
1054
- var hasRequiredHas;
1055
-
1056
- function requireHas () {
1057
- if (hasRequiredHas) return has;
1058
- hasRequiredHas = 1;
1059
- has = Function.call.bind(Object.prototype.hasOwnProperty);
1060
- return has;
1061
- }
1062
-
1063
- /**
1064
- * Copyright (c) 2013-present, Facebook, Inc.
1065
- *
1066
- * This source code is licensed under the MIT license found in the
1067
- * LICENSE file in the root directory of this source tree.
1068
- */
1069
-
1070
- var checkPropTypes_1;
1071
- var hasRequiredCheckPropTypes;
1072
-
1073
- function requireCheckPropTypes () {
1074
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
1075
- hasRequiredCheckPropTypes = 1;
1076
-
1077
- var printWarning = function() {};
1078
-
1079
- if (process.env.NODE_ENV !== 'production') {
1080
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1081
- var loggedTypeFailures = {};
1082
- var has = requireHas();
1083
-
1084
- printWarning = function(text) {
1085
- var message = 'Warning: ' + text;
1086
- if (typeof console !== 'undefined') {
1087
- console.error(message);
1088
- }
1089
- try {
1090
- // --- Welcome to debugging React ---
1091
- // This error was thrown as a convenience so that you can use this stack
1092
- // to find the callsite that caused this warning to fire.
1093
- throw new Error(message);
1094
- } catch (x) { /**/ }
1095
- };
1096
- }
1097
-
1098
- /**
1099
- * Assert that the values match with the type specs.
1100
- * Error messages are memorized and will only be shown once.
1101
- *
1102
- * @param {object} typeSpecs Map of name to a ReactPropType
1103
- * @param {object} values Runtime values that need to be type-checked
1104
- * @param {string} location e.g. "prop", "context", "child context"
1105
- * @param {string} componentName Name of the component for error messages.
1106
- * @param {?Function} getStack Returns the component stack.
1107
- * @private
1108
- */
1109
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1110
- if (process.env.NODE_ENV !== 'production') {
1111
- for (var typeSpecName in typeSpecs) {
1112
- if (has(typeSpecs, typeSpecName)) {
1113
- var error;
1114
- // Prop type validation may throw. In case they do, we don't want to
1115
- // fail the render phase where it didn't fail before. So we log it.
1116
- // After these have been cleaned up, we'll let them throw.
1117
- try {
1118
- // This is intentionally an invariant that gets caught. It's the same
1119
- // behavior as without this statement except with a better message.
1120
- if (typeof typeSpecs[typeSpecName] !== 'function') {
1121
- var err = Error(
1122
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1123
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1124
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1125
- );
1126
- err.name = 'Invariant Violation';
1127
- throw err;
1128
- }
1129
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1130
- } catch (ex) {
1131
- error = ex;
1132
- }
1133
- if (error && !(error instanceof Error)) {
1134
- printWarning(
1135
- (componentName || 'React class') + ': type specification of ' +
1136
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1137
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1138
- 'You may have forgotten to pass an argument to the type checker ' +
1139
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1140
- 'shape all require an argument).'
1141
- );
1142
- }
1143
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1144
- // Only monitor this failure once because there tends to be a lot of the
1145
- // same error.
1146
- loggedTypeFailures[error.message] = true;
1147
-
1148
- var stack = getStack ? getStack() : '';
1149
-
1150
- printWarning(
1151
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1152
- );
1153
- }
1154
- }
1155
- }
1156
- }
1157
- }
1158
-
1159
- /**
1160
- * Resets warning cache when testing.
1161
- *
1162
- * @private
1163
- */
1164
- checkPropTypes.resetWarningCache = function() {
1165
- if (process.env.NODE_ENV !== 'production') {
1166
- loggedTypeFailures = {};
1167
- }
1168
- };
1169
-
1170
- checkPropTypes_1 = checkPropTypes;
1171
- return checkPropTypes_1;
1172
- }
1173
-
1174
- /**
1175
- * Copyright (c) 2013-present, Facebook, Inc.
1176
- *
1177
- * This source code is licensed under the MIT license found in the
1178
- * LICENSE file in the root directory of this source tree.
1179
- */
1180
-
1181
- var factoryWithTypeCheckers;
1182
- var hasRequiredFactoryWithTypeCheckers;
1183
-
1184
- function requireFactoryWithTypeCheckers () {
1185
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
1186
- hasRequiredFactoryWithTypeCheckers = 1;
1187
-
1188
- var ReactIs = requireReactIs();
1189
- var assign = requireObjectAssign();
1190
-
1191
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1192
- var has = requireHas();
1193
- var checkPropTypes = requireCheckPropTypes();
1194
-
1195
- var printWarning = function() {};
1196
-
1197
- if (process.env.NODE_ENV !== 'production') {
1198
- printWarning = function(text) {
1199
- var message = 'Warning: ' + text;
1200
- if (typeof console !== 'undefined') {
1201
- console.error(message);
1202
- }
1203
- try {
1204
- // --- Welcome to debugging React ---
1205
- // This error was thrown as a convenience so that you can use this stack
1206
- // to find the callsite that caused this warning to fire.
1207
- throw new Error(message);
1208
- } catch (x) {}
1209
- };
1210
- }
1211
-
1212
- function emptyFunctionThatReturnsNull() {
1213
- return null;
1214
- }
1215
-
1216
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1217
- /* global Symbol */
1218
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1219
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1220
-
1221
- /**
1222
- * Returns the iterator method function contained on the iterable object.
1223
- *
1224
- * Be sure to invoke the function with the iterable as context:
1225
- *
1226
- * var iteratorFn = getIteratorFn(myIterable);
1227
- * if (iteratorFn) {
1228
- * var iterator = iteratorFn.call(myIterable);
1229
- * ...
1230
- * }
1231
- *
1232
- * @param {?object} maybeIterable
1233
- * @return {?function}
1234
- */
1235
- function getIteratorFn(maybeIterable) {
1236
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1237
- if (typeof iteratorFn === 'function') {
1238
- return iteratorFn;
1239
- }
1240
- }
1241
-
1242
- /**
1243
- * Collection of methods that allow declaration and validation of props that are
1244
- * supplied to React components. Example usage:
1245
- *
1246
- * var Props = require('ReactPropTypes');
1247
- * var MyArticle = React.createClass({
1248
- * propTypes: {
1249
- * // An optional string prop named "description".
1250
- * description: Props.string,
1251
- *
1252
- * // A required enum prop named "category".
1253
- * category: Props.oneOf(['News','Photos']).isRequired,
1254
- *
1255
- * // A prop named "dialog" that requires an instance of Dialog.
1256
- * dialog: Props.instanceOf(Dialog).isRequired
1257
- * },
1258
- * render: function() { ... }
1259
- * });
1260
- *
1261
- * A more formal specification of how these methods are used:
1262
- *
1263
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1264
- * decl := ReactPropTypes.{type}(.isRequired)?
1265
- *
1266
- * Each and every declaration produces a function with the same signature. This
1267
- * allows the creation of custom validation functions. For example:
1268
- *
1269
- * var MyLink = React.createClass({
1270
- * propTypes: {
1271
- * // An optional string or URI prop named "href".
1272
- * href: function(props, propName, componentName) {
1273
- * var propValue = props[propName];
1274
- * if (propValue != null && typeof propValue !== 'string' &&
1275
- * !(propValue instanceof URI)) {
1276
- * return new Error(
1277
- * 'Expected a string or an URI for ' + propName + ' in ' +
1278
- * componentName
1279
- * );
1280
- * }
1281
- * }
1282
- * },
1283
- * render: function() {...}
1284
- * });
1285
- *
1286
- * @internal
1287
- */
1288
-
1289
- var ANONYMOUS = '<<anonymous>>';
1290
-
1291
- // Important!
1292
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1293
- var ReactPropTypes = {
1294
- array: createPrimitiveTypeChecker('array'),
1295
- bigint: createPrimitiveTypeChecker('bigint'),
1296
- bool: createPrimitiveTypeChecker('boolean'),
1297
- func: createPrimitiveTypeChecker('function'),
1298
- number: createPrimitiveTypeChecker('number'),
1299
- object: createPrimitiveTypeChecker('object'),
1300
- string: createPrimitiveTypeChecker('string'),
1301
- symbol: createPrimitiveTypeChecker('symbol'),
1302
-
1303
- any: createAnyTypeChecker(),
1304
- arrayOf: createArrayOfTypeChecker,
1305
- element: createElementTypeChecker(),
1306
- elementType: createElementTypeTypeChecker(),
1307
- instanceOf: createInstanceTypeChecker,
1308
- node: createNodeChecker(),
1309
- objectOf: createObjectOfTypeChecker,
1310
- oneOf: createEnumTypeChecker,
1311
- oneOfType: createUnionTypeChecker,
1312
- shape: createShapeTypeChecker,
1313
- exact: createStrictShapeTypeChecker,
1314
- };
1315
-
1316
- /**
1317
- * inlined Object.is polyfill to avoid requiring consumers ship their own
1318
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1319
- */
1320
- /*eslint-disable no-self-compare*/
1321
- function is(x, y) {
1322
- // SameValue algorithm
1323
- if (x === y) {
1324
- // Steps 1-5, 7-10
1325
- // Steps 6.b-6.e: +0 != -0
1326
- return x !== 0 || 1 / x === 1 / y;
1327
- } else {
1328
- // Step 6.a: NaN == NaN
1329
- return x !== x && y !== y;
1330
- }
1331
- }
1332
- /*eslint-enable no-self-compare*/
1333
-
1334
- /**
1335
- * We use an Error-like object for backward compatibility as people may call
1336
- * PropTypes directly and inspect their output. However, we don't use real
1337
- * Errors anymore. We don't inspect their stack anyway, and creating them
1338
- * is prohibitively expensive if they are created too often, such as what
1339
- * happens in oneOfType() for any type before the one that matched.
1340
- */
1341
- function PropTypeError(message, data) {
1342
- this.message = message;
1343
- this.data = data && typeof data === 'object' ? data: {};
1344
- this.stack = '';
1345
- }
1346
- // Make `instanceof Error` still work for returned errors.
1347
- PropTypeError.prototype = Error.prototype;
1348
-
1349
- function createChainableTypeChecker(validate) {
1350
- if (process.env.NODE_ENV !== 'production') {
1351
- var manualPropTypeCallCache = {};
1352
- var manualPropTypeWarningCount = 0;
1353
- }
1354
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1355
- componentName = componentName || ANONYMOUS;
1356
- propFullName = propFullName || propName;
1357
-
1358
- if (secret !== ReactPropTypesSecret) {
1359
- if (throwOnDirectAccess) {
1360
- // New behavior only for users of `prop-types` package
1361
- var err = new Error(
1362
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1363
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
1364
- 'Read more at http://fb.me/use-check-prop-types'
1365
- );
1366
- err.name = 'Invariant Violation';
1367
- throw err;
1368
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1369
- // Old behavior for people using React.PropTypes
1370
- var cacheKey = componentName + ':' + propName;
1371
- if (
1372
- !manualPropTypeCallCache[cacheKey] &&
1373
- // Avoid spamming the console because they are often not actionable except for lib authors
1374
- manualPropTypeWarningCount < 3
1375
- ) {
1376
- printWarning(
1377
- 'You are manually calling a React.PropTypes validation ' +
1378
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1379
- 'and will throw in the standalone `prop-types` package. ' +
1380
- 'You may be seeing this warning due to a third-party PropTypes ' +
1381
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1382
- );
1383
- manualPropTypeCallCache[cacheKey] = true;
1384
- manualPropTypeWarningCount++;
1385
- }
1386
- }
1387
- }
1388
- if (props[propName] == null) {
1389
- if (isRequired) {
1390
- if (props[propName] === null) {
1391
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1392
- }
1393
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1394
- }
1395
- return null;
1396
- } else {
1397
- return validate(props, propName, componentName, location, propFullName);
1398
- }
1399
- }
1400
-
1401
- var chainedCheckType = checkType.bind(null, false);
1402
- chainedCheckType.isRequired = checkType.bind(null, true);
1403
-
1404
- return chainedCheckType;
1405
- }
1406
-
1407
- function createPrimitiveTypeChecker(expectedType) {
1408
- function validate(props, propName, componentName, location, propFullName, secret) {
1409
- var propValue = props[propName];
1410
- var propType = getPropType(propValue);
1411
- if (propType !== expectedType) {
1412
- // `propValue` being instance of, say, date/regexp, pass the 'object'
1413
- // check, but we can offer a more precise error message here rather than
1414
- // 'of type `object`'.
1415
- var preciseType = getPreciseType(propValue);
1416
-
1417
- return new PropTypeError(
1418
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1419
- {expectedType: expectedType}
1420
- );
1421
- }
1422
- return null;
1423
- }
1424
- return createChainableTypeChecker(validate);
1425
- }
1426
-
1427
- function createAnyTypeChecker() {
1428
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1429
- }
1430
-
1431
- function createArrayOfTypeChecker(typeChecker) {
1432
- function validate(props, propName, componentName, location, propFullName) {
1433
- if (typeof typeChecker !== 'function') {
1434
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1435
- }
1436
- var propValue = props[propName];
1437
- if (!Array.isArray(propValue)) {
1438
- var propType = getPropType(propValue);
1439
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1440
- }
1441
- for (var i = 0; i < propValue.length; i++) {
1442
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1443
- if (error instanceof Error) {
1444
- return error;
1445
- }
1446
- }
1447
- return null;
1448
- }
1449
- return createChainableTypeChecker(validate);
1450
- }
1451
-
1452
- function createElementTypeChecker() {
1453
- function validate(props, propName, componentName, location, propFullName) {
1454
- var propValue = props[propName];
1455
- if (!isValidElement(propValue)) {
1456
- var propType = getPropType(propValue);
1457
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1458
- }
1459
- return null;
1460
- }
1461
- return createChainableTypeChecker(validate);
1462
- }
1463
-
1464
- function createElementTypeTypeChecker() {
1465
- function validate(props, propName, componentName, location, propFullName) {
1466
- var propValue = props[propName];
1467
- if (!ReactIs.isValidElementType(propValue)) {
1468
- var propType = getPropType(propValue);
1469
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1470
- }
1471
- return null;
1472
- }
1473
- return createChainableTypeChecker(validate);
1474
- }
1475
-
1476
- function createInstanceTypeChecker(expectedClass) {
1477
- function validate(props, propName, componentName, location, propFullName) {
1478
- if (!(props[propName] instanceof expectedClass)) {
1479
- var expectedClassName = expectedClass.name || ANONYMOUS;
1480
- var actualClassName = getClassName(props[propName]);
1481
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1482
- }
1483
- return null;
1484
- }
1485
- return createChainableTypeChecker(validate);
1486
- }
1487
-
1488
- function createEnumTypeChecker(expectedValues) {
1489
- if (!Array.isArray(expectedValues)) {
1490
- if (process.env.NODE_ENV !== 'production') {
1491
- if (arguments.length > 1) {
1492
- printWarning(
1493
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1494
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1495
- );
1496
- } else {
1497
- printWarning('Invalid argument supplied to oneOf, expected an array.');
1498
- }
1499
- }
1500
- return emptyFunctionThatReturnsNull;
1501
- }
1502
-
1503
- function validate(props, propName, componentName, location, propFullName) {
1504
- var propValue = props[propName];
1505
- for (var i = 0; i < expectedValues.length; i++) {
1506
- if (is(propValue, expectedValues[i])) {
1507
- return null;
1508
- }
1509
- }
1510
-
1511
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1512
- var type = getPreciseType(value);
1513
- if (type === 'symbol') {
1514
- return String(value);
1515
- }
1516
- return value;
1517
- });
1518
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1519
- }
1520
- return createChainableTypeChecker(validate);
1521
- }
1522
-
1523
- function createObjectOfTypeChecker(typeChecker) {
1524
- function validate(props, propName, componentName, location, propFullName) {
1525
- if (typeof typeChecker !== 'function') {
1526
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1527
- }
1528
- var propValue = props[propName];
1529
- var propType = getPropType(propValue);
1530
- if (propType !== 'object') {
1531
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1532
- }
1533
- for (var key in propValue) {
1534
- if (has(propValue, key)) {
1535
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1536
- if (error instanceof Error) {
1537
- return error;
1538
- }
1539
- }
1540
- }
1541
- return null;
1542
- }
1543
- return createChainableTypeChecker(validate);
1544
- }
1545
-
1546
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1547
- if (!Array.isArray(arrayOfTypeCheckers)) {
1548
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1549
- return emptyFunctionThatReturnsNull;
1550
- }
1551
-
1552
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1553
- var checker = arrayOfTypeCheckers[i];
1554
- if (typeof checker !== 'function') {
1555
- printWarning(
1556
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1557
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1558
- );
1559
- return emptyFunctionThatReturnsNull;
1560
- }
1561
- }
1562
-
1563
- function validate(props, propName, componentName, location, propFullName) {
1564
- var expectedTypes = [];
1565
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1566
- var checker = arrayOfTypeCheckers[i];
1567
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1568
- if (checkerResult == null) {
1569
- return null;
1570
- }
1571
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1572
- expectedTypes.push(checkerResult.data.expectedType);
1573
- }
1574
- }
1575
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1576
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1577
- }
1578
- return createChainableTypeChecker(validate);
1579
- }
1580
-
1581
- function createNodeChecker() {
1582
- function validate(props, propName, componentName, location, propFullName) {
1583
- if (!isNode(props[propName])) {
1584
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1585
- }
1586
- return null;
1587
- }
1588
- return createChainableTypeChecker(validate);
1589
- }
1590
-
1591
- function invalidValidatorError(componentName, location, propFullName, key, type) {
1592
- return new PropTypeError(
1593
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1594
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1595
- );
1596
- }
1597
-
1598
- function createShapeTypeChecker(shapeTypes) {
1599
- function validate(props, propName, componentName, location, propFullName) {
1600
- var propValue = props[propName];
1601
- var propType = getPropType(propValue);
1602
- if (propType !== 'object') {
1603
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1604
- }
1605
- for (var key in shapeTypes) {
1606
- var checker = shapeTypes[key];
1607
- if (typeof checker !== 'function') {
1608
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1609
- }
1610
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1611
- if (error) {
1612
- return error;
1613
- }
1614
- }
1615
- return null;
1616
- }
1617
- return createChainableTypeChecker(validate);
1618
- }
1619
-
1620
- function createStrictShapeTypeChecker(shapeTypes) {
1621
- function validate(props, propName, componentName, location, propFullName) {
1622
- var propValue = props[propName];
1623
- var propType = getPropType(propValue);
1624
- if (propType !== 'object') {
1625
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1626
- }
1627
- // We need to check all keys in case some are required but missing from props.
1628
- var allKeys = assign({}, props[propName], shapeTypes);
1629
- for (var key in allKeys) {
1630
- var checker = shapeTypes[key];
1631
- if (has(shapeTypes, key) && typeof checker !== 'function') {
1632
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1633
- }
1634
- if (!checker) {
1635
- return new PropTypeError(
1636
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1637
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1638
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1639
- );
1640
- }
1641
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1642
- if (error) {
1643
- return error;
1644
- }
1645
- }
1646
- return null;
1647
- }
1648
-
1649
- return createChainableTypeChecker(validate);
1650
- }
1651
-
1652
- function isNode(propValue) {
1653
- switch (typeof propValue) {
1654
- case 'number':
1655
- case 'string':
1656
- case 'undefined':
1657
- return true;
1658
- case 'boolean':
1659
- return !propValue;
1660
- case 'object':
1661
- if (Array.isArray(propValue)) {
1662
- return propValue.every(isNode);
1663
- }
1664
- if (propValue === null || isValidElement(propValue)) {
1665
- return true;
1666
- }
1667
-
1668
- var iteratorFn = getIteratorFn(propValue);
1669
- if (iteratorFn) {
1670
- var iterator = iteratorFn.call(propValue);
1671
- var step;
1672
- if (iteratorFn !== propValue.entries) {
1673
- while (!(step = iterator.next()).done) {
1674
- if (!isNode(step.value)) {
1675
- return false;
1676
- }
1677
- }
1678
- } else {
1679
- // Iterator will provide entry [k,v] tuples rather than values.
1680
- while (!(step = iterator.next()).done) {
1681
- var entry = step.value;
1682
- if (entry) {
1683
- if (!isNode(entry[1])) {
1684
- return false;
1685
- }
1686
- }
1687
- }
1688
- }
1689
- } else {
1690
- return false;
1691
- }
1692
-
1693
- return true;
1694
- default:
1695
- return false;
1696
- }
1697
- }
1698
-
1699
- function isSymbol(propType, propValue) {
1700
- // Native Symbol.
1701
- if (propType === 'symbol') {
1702
- return true;
1703
- }
1704
-
1705
- // falsy value can't be a Symbol
1706
- if (!propValue) {
1707
- return false;
1708
- }
1709
-
1710
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1711
- if (propValue['@@toStringTag'] === 'Symbol') {
1712
- return true;
1713
- }
1714
-
1715
- // Fallback for non-spec compliant Symbols which are polyfilled.
1716
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1717
- return true;
1718
- }
1719
-
1720
- return false;
1721
- }
1722
-
1723
- // Equivalent of `typeof` but with special handling for array and regexp.
1724
- function getPropType(propValue) {
1725
- var propType = typeof propValue;
1726
- if (Array.isArray(propValue)) {
1727
- return 'array';
1728
- }
1729
- if (propValue instanceof RegExp) {
1730
- // Old webkits (at least until Android 4.0) return 'function' rather than
1731
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1732
- // passes PropTypes.object.
1733
- return 'object';
1734
- }
1735
- if (isSymbol(propType, propValue)) {
1736
- return 'symbol';
1737
- }
1738
- return propType;
1739
- }
1740
-
1741
- // This handles more types than `getPropType`. Only used for error messages.
1742
- // See `createPrimitiveTypeChecker`.
1743
- function getPreciseType(propValue) {
1744
- if (typeof propValue === 'undefined' || propValue === null) {
1745
- return '' + propValue;
1746
- }
1747
- var propType = getPropType(propValue);
1748
- if (propType === 'object') {
1749
- if (propValue instanceof Date) {
1750
- return 'date';
1751
- } else if (propValue instanceof RegExp) {
1752
- return 'regexp';
1753
- }
1754
- }
1755
- return propType;
1756
- }
1757
-
1758
- // Returns a string that is postfixed to a warning about an invalid type.
1759
- // For example, "undefined" or "of type array"
1760
- function getPostfixForTypeWarning(value) {
1761
- var type = getPreciseType(value);
1762
- switch (type) {
1763
- case 'array':
1764
- case 'object':
1765
- return 'an ' + type;
1766
- case 'boolean':
1767
- case 'date':
1768
- case 'regexp':
1769
- return 'a ' + type;
1770
- default:
1771
- return type;
1772
- }
1773
- }
1774
-
1775
- // Returns class name of the object, if any.
1776
- function getClassName(propValue) {
1777
- if (!propValue.constructor || !propValue.constructor.name) {
1778
- return ANONYMOUS;
1779
- }
1780
- return propValue.constructor.name;
1781
- }
1782
-
1783
- ReactPropTypes.checkPropTypes = checkPropTypes;
1784
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1785
- ReactPropTypes.PropTypes = ReactPropTypes;
1786
-
1787
- return ReactPropTypes;
1788
- };
1789
- return factoryWithTypeCheckers;
1790
- }
1791
-
1792
- /**
1793
- * Copyright (c) 2013-present, Facebook, Inc.
1794
- *
1795
- * This source code is licensed under the MIT license found in the
1796
- * LICENSE file in the root directory of this source tree.
1797
- */
1798
-
1799
- var factoryWithThrowingShims;
1800
- var hasRequiredFactoryWithThrowingShims;
1801
-
1802
- function requireFactoryWithThrowingShims () {
1803
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1804
- hasRequiredFactoryWithThrowingShims = 1;
1805
-
1806
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1807
-
1808
- function emptyFunction() {}
1809
- function emptyFunctionWithReset() {}
1810
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1811
-
1812
- factoryWithThrowingShims = function() {
1813
- function shim(props, propName, componentName, location, propFullName, secret) {
1814
- if (secret === ReactPropTypesSecret) {
1815
- // It is still safe when called from React.
1816
- return;
1817
- }
1818
- var err = new Error(
1819
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1820
- 'Use PropTypes.checkPropTypes() to call them. ' +
1821
- 'Read more at http://fb.me/use-check-prop-types'
1822
- );
1823
- err.name = 'Invariant Violation';
1824
- throw err;
1825
- } shim.isRequired = shim;
1826
- function getShim() {
1827
- return shim;
1828
- } // Important!
1829
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1830
- var ReactPropTypes = {
1831
- array: shim,
1832
- bigint: shim,
1833
- bool: shim,
1834
- func: shim,
1835
- number: shim,
1836
- object: shim,
1837
- string: shim,
1838
- symbol: shim,
1839
-
1840
- any: shim,
1841
- arrayOf: getShim,
1842
- element: shim,
1843
- elementType: shim,
1844
- instanceOf: getShim,
1845
- node: shim,
1846
- objectOf: getShim,
1847
- oneOf: getShim,
1848
- oneOfType: getShim,
1849
- shape: getShim,
1850
- exact: getShim,
1851
-
1852
- checkPropTypes: emptyFunctionWithReset,
1853
- resetWarningCache: emptyFunction
1854
- };
1855
-
1856
- ReactPropTypes.PropTypes = ReactPropTypes;
1857
-
1858
- return ReactPropTypes;
1859
- };
1860
- return factoryWithThrowingShims;
1861
- }
1862
-
1863
- /**
1864
- * Copyright (c) 2013-present, Facebook, Inc.
1865
- *
1866
- * This source code is licensed under the MIT license found in the
1867
- * LICENSE file in the root directory of this source tree.
1868
- */
1869
-
1870
- var hasRequiredPropTypes;
1871
-
1872
- function requirePropTypes () {
1873
- if (hasRequiredPropTypes) return propTypes$1.exports;
1874
- hasRequiredPropTypes = 1;
1875
- if (process.env.NODE_ENV !== 'production') {
1876
- var ReactIs = requireReactIs();
1877
-
1878
- // By explicitly using `prop-types` you are opting into new development behavior.
1879
- // http://fb.me/prop-types-in-prod
1880
- var throwOnDirectAccess = true;
1881
- propTypes$1.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1882
- } else {
1883
- // By explicitly using `prop-types` you are opting into new production behavior.
1884
- // http://fb.me/prop-types-in-prod
1885
- propTypes$1.exports = requireFactoryWithThrowingShims()();
1886
- }
1887
- return propTypes$1.exports;
1888
- }
1889
-
1890
- var propTypesExports = requirePropTypes();
1891
-
1892
- var propTypes = {
1893
- /** When to wrap children */
1894
- condition: propTypesExports.bool,
1895
- /** Wrapper element */
1896
- wrapper: propTypesExports.element
1897
- };
1898
- var ConditionalWrapper = function ConditionalWrapper(_ref) {
1899
- var condition = _ref.condition,
1900
- wrapper = _ref.wrapper,
1901
- children = _ref.children;
1902
- return condition ? /*#__PURE__*/cloneElement(wrapper, wrapper.props, children) : children;
1903
- };
1904
- ConditionalWrapper.propTypes = propTypes;
1905
-
1906
- var alertData = {
1907
- warning: "warning-important",
1908
- info: "info",
1909
- danger: "error-severe",
1910
- success: "checked"
1911
- };
1912
-
1913
- var CLASS_ROOT$6 = "alert";
1914
- var Alert = function Alert(_a) {
1915
- var className = _a.className,
1916
- _a$type = _a.type,
1917
- type = _a$type === void 0 ? "info" : _a$type,
1918
- title = _a.title,
1919
- renderTitle = _a.renderTitle,
1920
- description = _a.description,
1921
- _a$headingLevel = _a.headingLevel,
1922
- headingLevel = _a$headingLevel === void 0 ? 3 : _a$headingLevel,
1923
- actionButtons = _a.actionButtons,
1924
- isFullWidth = _a.isFullWidth,
1925
- isInverse = _a.isInverse,
1926
- onClose = _a.onClose,
1927
- other = __rest(_a, ["className", "type", "title", "renderTitle", "description", "headingLevel", "actionButtons", "isFullWidth", "isInverse", "onClose"]);
1928
- var HEADINGTAG = "h".concat(headingLevel);
1929
- var classes = cx(CLASS_ROOT$6, _defineProperty(_defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$6, "--").concat(type), type), "".concat(CLASS_ROOT$6, "--full-width"), isFullWidth), "".concat(CLASS_ROOT$6, "--inverse"), isInverse), className);
1930
- var alertTitle = renderTitle && renderTitle(Object.assign({
1931
- className: className,
1932
- type: type,
1933
- title: title,
1934
- renderTitle: renderTitle,
1935
- description: description,
1936
- headingLevel: headingLevel,
1937
- actionButtons: actionButtons,
1938
- isFullWidth: isFullWidth,
1939
- isInverse: isInverse,
1940
- onClose: onClose
1941
- }, other)) || title && /*#__PURE__*/React.createElement(HEADINGTAG, {
1942
- className: "".concat(CLASS_ROOT$6, "__title")
1943
- }, title);
1944
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", _objectSpread2(_objectSpread2({
1945
- className: classes
1946
- }, other), {}, {
1947
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
1948
- className: "".concat(CLASS_ROOT$6, "__icon"),
1949
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
1950
- name: alertData[type],
1951
- color: type,
1952
- size: "medium"
1953
- })
1954
- }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
1955
- className: "".concat(CLASS_ROOT$6, "__content"),
1956
- children: [alertTitle, description && /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
1957
- condition: typeof description === "string",
1958
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx("p", {}),
1959
- children: description
1960
- }), actionButtons && /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
1961
- condition: React.Children.count(actionButtons) > 1,
1962
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx(Buttons, {}),
1963
- children: React.Children.map(actionButtons, function (button) {
1964
- return button;
1965
- })
1966
- })]
1967
- }), onClose && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
1968
- className: "".concat(CLASS_ROOT$6, "__close"),
1969
- children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
1970
- onClick: onClose,
1971
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
1972
- name: "close",
1973
- size: "medium"
1974
- })
1975
- })
1976
- })]
1977
- }));
1978
- };
1979
- Alert.displayName = "Alert";
1980
-
1981
- var CLASS_ROOT$5 = "badge";
1982
- var Badge = function Badge(_a) {
1983
- var color = _a.color,
1984
- isDark = _a.isDark,
1985
- isRound = _a.isRound,
1986
- className = _a.className,
1987
- children = _a.children,
1988
- other = __rest(_a, ["color", "isDark", "isRound", "className", "children"]);
1989
- var classes = cx(CLASS_ROOT$5, className, _defineProperty(_defineProperty({
1990
- "badge--dark": isDark
1991
- }, "badge--".concat(color), color), "badge--round", isRound));
1992
- return /*#__PURE__*/jsxRuntimeExports.jsx("span", _objectSpread2(_objectSpread2({
1993
- className: classes
1994
- }, other), {}, {
1995
- children: children
1996
- }));
1997
- };
1998
- Badge.displayName = "Badge";
1999
-
2000
- var CLASS_ROOT$4 = "btn";
2001
- var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
2002
- var className = props.className,
2003
- children = props.children,
2004
- _props$htmlType = props.htmlType,
2005
- htmlType = _props$htmlType === void 0 ? "button" : _props$htmlType,
2006
- href = props.href,
2007
- isActive = props.isActive,
2008
- isDefault = props.isDefault,
2009
- isDisabled = props.isDisabled,
2010
- isInverse = props.isInverse,
2011
- size = props.size,
2012
- isSquare = props.isSquare,
2013
- type = props.type,
2014
- elemRef = props.elemRef,
2015
- other = __rest(props, ["className", "children", "htmlType", "href", "isActive", "isDefault", "isDisabled", "isInverse", "size", "isSquare", "type", "elemRef"]);
2016
- var classes = cx(CLASS_ROOT$4, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$4, "--square"), isSquare), "".concat(CLASS_ROOT$4, "--").concat(size), size), "".concat(CLASS_ROOT$4, "--").concat(type), type), "".concat(CLASS_ROOT$4, "--default"), isDefault), "".concat(CLASS_ROOT$4, "--inverse"), isInverse), "is-active", isActive), className);
2017
- if (href) {
2018
- // Anchor element
2019
- var anchorProps = other;
2020
- return /*#__PURE__*/jsxRuntimeExports.jsx("a", _objectSpread2(_objectSpread2({
2021
- href: href,
2022
- className: classes,
2023
- "aria-disabled": isDisabled ? "true" : undefined,
2024
- ref: elemRef || ref
2025
- }, anchorProps), {}, {
2026
- children: children
2027
- }));
2028
- } else {
2029
- // Button element
2030
- var buttonProps = other;
2031
- return /*#__PURE__*/jsxRuntimeExports.jsx("button", _objectSpread2(_objectSpread2({
2032
- type: htmlType,
2033
- className: classes,
2034
- disabled: isDisabled ? true : undefined,
2035
- "aria-disabled": isDisabled ? "true" : undefined,
2036
- ref: elemRef || ref
2037
- }, buttonProps), {}, {
2038
- children: children
2039
- }));
2040
- }
2041
- });
2042
- Button.displayName = "Button";
2043
-
2044
- var IconButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
2045
- var iconName = _a.iconName,
2046
- _a$iconPosition = _a.iconPosition,
2047
- iconPosition = _a$iconPosition === void 0 ? "left" : _a$iconPosition,
2048
- iconClassName = _a.iconClassName,
2049
- children = _a.children,
2050
- size = _a.size,
2051
- isSquare = _a.isSquare,
2052
- other = __rest(_a, ["iconName", "iconPosition", "iconClassName", "children", "size", "isSquare"]);
2053
- var IconComponent = function IconComponent(_a) {
2054
- var className = _a.className,
2055
- props = __rest(_a, ["className"]);
2056
- return /*#__PURE__*/jsxRuntimeExports.jsx(Icon, _objectSpread2({
2057
- name: iconName,
2058
- size: size !== null && size !== void 0 ? size : "medium",
2059
- className: cx(iconClassName, className)
2060
- }, props));
2061
- };
2062
- if (isSquare) {
2063
- return /*#__PURE__*/jsxRuntimeExports.jsxs(Button, _objectSpread2(_objectSpread2({
2064
- size: size,
2065
- isSquare: true
2066
- }, other), {}, {
2067
- ref: ref,
2068
- children: [/*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {}), /*#__PURE__*/jsxRuntimeExports.jsx("span", {
2069
- className: "visually-hidden",
2070
- children: children
2071
- })]
2072
- }));
2073
- }
2074
- return /*#__PURE__*/jsxRuntimeExports.jsxs(Button, _objectSpread2(_objectSpread2({
2075
- ref: ref,
2076
- size: size
2077
- }, other), {}, {
2078
- children: [iconPosition === "left" && /*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {
2079
- className: "btn__icon-left"
2080
- }), children, iconPosition === "right" && /*#__PURE__*/jsxRuntimeExports.jsx(IconComponent, {
2081
- className: "btn__icon-right"
2082
- })]
2083
- }));
2084
- });
2085
- IconButton.displayName = "IconButton";
2086
-
2087
- var ButtonPrimary = function ButtonPrimary(props) {
2088
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2089
- type: "primary"
2090
- }, props));
2091
- };
2092
- ButtonPrimary.displayName = "ButtonPrimary";
2093
- var ButtonFill = function ButtonFill(props) {
2094
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2095
- type: "fill"
2096
- }, props));
2097
- };
2098
- ButtonFill.displayName = "ButtonFill";
2099
- var ButtonGhost = function ButtonGhost(props) {
2100
- return /*#__PURE__*/jsxRuntimeExports.jsx(Button, _objectSpread2({
2101
- type: "ghost"
2102
- }, props));
2103
- };
2104
- ButtonGhost.displayName = "ButtonGhost";
2105
-
2106
- var idx = 0;
2107
- var uuid = function uuid() {
2108
- return idx += 1;
2109
- };
2110
- /**
2111
- * Generates a unique ID string with an optional name prefix
2112
- * @param name Optional prefix for the ID
2113
- * @returns A unique ID string
2114
- */
2115
- function generateId(name) {
2116
- return "id".concat('', "-").concat(uuid());
2117
- }
2118
-
2119
- /**
2120
- * A hook to create and manage an instance of a "static" class
2121
- * @param StaticClass The class to instantiate
2122
- * @param config Configuration options for the class
2123
- * @returns [ref callback, instance reference]
2124
- */
2125
- var useStatic = function useStatic(StaticClass) {
2126
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2127
- var instance = useRef(null);
2128
- var configRef = useRef(config);
2129
- useEffect(function () {
2130
- configRef.current = config !== null && config !== void 0 ? config : {};
2131
- }, [config]);
2132
- var ref = useCallback(function (node) {
2133
- var _a, _b;
2134
- // use latest config available
2135
- var currentConfig = configRef.current;
2136
- if (node) {
2137
- if (instance.current === null) {
2138
- instance.current = new StaticClass(node, currentConfig);
2139
- } else {
2140
- (_b = (_a = instance.current).update) === null || _b === void 0 ? void 0 : _b.call(_a, currentConfig);
2141
- }
2142
- }
2143
- }, [StaticClass]);
2144
- useEffect(function () {
2145
- return function () {
2146
- var _a, _b;
2147
- if (instance.current) {
2148
- (_b = (_a = instance.current).destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
2149
- instance.current = null;
2150
- }
2151
- };
2152
- }, []);
2153
- return [ref, instance];
2154
- };
2155
-
2156
- const not = {
2157
- inert: ':not([inert]):not([inert] *)',
2158
- negTabIndex: ':not([tabindex^="-"])',
2159
- disabled: ':not(:disabled)',
2160
- };
2161
-
2162
- var focusableSelectors = [
2163
- `a[href]${not.inert}${not.negTabIndex}`,
2164
- `area[href]${not.inert}${not.negTabIndex}`,
2165
- `input:not([type="hidden"]):not([type="radio"])${not.inert}${not.negTabIndex}${not.disabled}`,
2166
- `input[type="radio"]${not.inert}${not.negTabIndex}${not.disabled}`,
2167
- `select${not.inert}${not.negTabIndex}${not.disabled}`,
2168
- `textarea${not.inert}${not.negTabIndex}${not.disabled}`,
2169
- `button${not.inert}${not.negTabIndex}${not.disabled}`,
2170
- `details${not.inert} > summary:first-of-type${not.negTabIndex}`,
2171
- // Discard until Firefox supports `:has()`
2172
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
2173
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
2174
- `iframe${not.inert}${not.negTabIndex}`,
2175
- `audio[controls]${not.inert}${not.negTabIndex}`,
2176
- `video[controls]${not.inert}${not.negTabIndex}`,
2177
- `[contenteditable]${not.inert}${not.negTabIndex}`,
2178
- `[tabindex]${not.inert}${not.negTabIndex}`,
2179
- ];
2180
-
2181
- /**
2182
- * Set the focus to the first element with `autofocus` with the element or the
2183
- * element itself.
2184
- */
2185
- function focus(el) {
2186
- (el.querySelector('[autofocus]') || el).focus();
2187
- }
2188
- /**
2189
- * Get the first and last focusable elements within a given element.
2190
- */
2191
- function getFocusableEdges(el) {
2192
- // Check for a focusable element within the subtree of the given element.
2193
- const firstEl = findFocusableEl(el, true);
2194
- // Only if we find the first element do we need to look for the last one. If
2195
- // there’s no last element, we set `lastEl` as a reference to `firstEl` so
2196
- // that the returned array is still always of length 2.
2197
- const lastEl = firstEl ? findFocusableEl(el, false) || firstEl : null;
2198
- return [firstEl, lastEl];
2199
- }
2200
- /**
2201
- * Find the first focusable element inside the given element if `forward` is
2202
- * truthy or the last focusable element otherwise.
2203
- */
2204
- function findFocusableEl(el, forward) {
2205
- // If we’re walking forward, check if this element is focusable, and return it
2206
- // immediately if it is.
2207
- if (forward && isFocusable(el))
2208
- return el;
2209
- // We should only search the subtree of this element if it can have focusable
2210
- // children.
2211
- if (canHaveFocusableChildren(el)) {
2212
- // Start walking the DOM tree, looking for focusable elements.
2213
- // Case 1: If this element has a shadow root, search it recursively.
2214
- if (el.shadowRoot) {
2215
- // Descend into this subtree.
2216
- let next = getNextChildEl(el.shadowRoot, forward);
2217
- // Traverse the siblings, searching the subtree of each one for focusable
2218
- // elements.
2219
- while (next) {
2220
- const focusableEl = findFocusableEl(next, forward);
2221
- if (focusableEl)
2222
- return focusableEl;
2223
- next = getNextSiblingEl(next, forward);
2224
- }
2225
- }
2226
- // Case 2: If this element is a slot for a Custom Element, search its
2227
- // assigned elements recursively.
2228
- else if (el.localName === 'slot') {
2229
- const assignedElements = el.assignedElements({
2230
- flatten: true,
2231
- });
2232
- if (!forward)
2233
- assignedElements.reverse();
2234
- for (const assignedElement of assignedElements) {
2235
- const focusableEl = findFocusableEl(assignedElement, forward);
2236
- if (focusableEl)
2237
- return focusableEl;
2238
- }
2239
- }
2240
- // Case 3: this is a regular Light DOM element. Search its subtree.
2241
- else {
2242
- // Descend into this subtree.
2243
- let next = getNextChildEl(el, forward);
2244
- // Traverse siblings, searching the subtree of each one
2245
- // for focusable elements.
2246
- while (next) {
2247
- const focusableEl = findFocusableEl(next, forward);
2248
- if (focusableEl)
2249
- return focusableEl;
2250
- next = getNextSiblingEl(next, forward);
2251
- }
2252
- }
2253
- }
2254
- // If we’re walking backward, we want to check the element’s entire subtree
2255
- // before checking the element itself. If this element is focusable, return
2256
- // it.
2257
- if (!forward && isFocusable(el))
2258
- return el;
2259
- return null;
2260
- }
2261
- function getNextChildEl(el, forward) {
2262
- return forward ? el.firstElementChild : el.lastElementChild;
2263
- }
2264
- function getNextSiblingEl(el, forward) {
2265
- return forward ? el.nextElementSibling : el.previousElementSibling;
2266
- }
2267
- /**
2268
- * Determine if an element is hidden from the user.
2269
- */
2270
- const isHidden$1 = (el) => {
2271
- // Browsers hide all non-<summary> descendants of closed <details> elements
2272
- // from user interaction, but those non-<summary> elements may still match our
2273
- // focusable-selectors and may still have dimensions, so we need a special
2274
- // case to ignore them.
2275
- if (el.matches('details:not([open]) *') &&
2276
- !el.matches('details>summary:first-of-type'))
2277
- return true;
2278
- // If this element has no painted dimensions, it's hidden.
2279
- return !(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
2280
- };
2281
- /**
2282
- * Determine if an element is focusable and has user-visible painted dimensions.
2283
- */
2284
- const isFocusable = (el) => {
2285
- // A shadow host that delegates focus will never directly receive focus,
2286
- // even with `tabindex=0`. Consider our <fancy-button> custom element, which
2287
- // delegates focus to its shadow button:
2288
- //
2289
- // <fancy-button tabindex="0">
2290
- // #shadow-root
2291
- // <button><slot></slot></button>
2292
- // </fancy-button>
2293
- //
2294
- // The browser acts as as if there is only one focusable element – the shadow
2295
- // button. Our library should behave the same way.
2296
- if (el.shadowRoot?.delegatesFocus)
2297
- return false;
2298
- return el.matches(focusableSelectors.join(',')) && !isHidden$1(el);
2299
- };
2300
- /**
2301
- * Determine if an element can have focusable children. Useful for bailing out
2302
- * early when walking the DOM tree.
2303
- * @example
2304
- * This div is inert, so none of its children can be focused, even though they
2305
- * meet our criteria for what is focusable. Once we check the div, we can skip
2306
- * the rest of the subtree.
2307
- * ```html
2308
- * <div inert>
2309
- * <button>Button</button>
2310
- * <a href="#">Link</a>
2311
- * </div>
2312
- * ```
2313
- */
2314
- function canHaveFocusableChildren(el) {
2315
- // The browser will never send focus into a Shadow DOM if the host element
2316
- // has a negative tabindex. This applies to both slotted Light DOM Shadow DOM
2317
- // children
2318
- if (el.shadowRoot && el.getAttribute('tabindex') === '-1')
2319
- return false;
2320
- // Elemments matching this selector are either hidden entirely from the user,
2321
- // or are visible but unavailable for interaction. Their descentants can never
2322
- // receive focus.
2323
- return !el.matches(':disabled,[hidden],[inert]');
2324
- }
2325
- /**
2326
- * Get the active element, accounting for Shadow DOM subtrees.
2327
- * @author Cory LaViska
2328
- * @see: https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/
2329
- */
2330
- function getActiveEl(root = document) {
2331
- const activeEl = root.activeElement;
2332
- if (!activeEl)
2333
- return null;
2334
- // If there’s a shadow root, recursively find the active element within it.
2335
- // If the recursive call returns null, return the active element
2336
- // of the top-level Document.
2337
- if (activeEl.shadowRoot)
2338
- return getActiveEl(activeEl.shadowRoot) || document.activeElement;
2339
- // If not, we can just return the active element
2340
- return activeEl;
2341
- }
2342
- /**
2343
- * Trap the focus inside the given element
2344
- */
2345
- function trapTabKey(el, event) {
2346
- const [firstFocusableEl, lastFocusableEl] = getFocusableEdges(el);
2347
- // If there are no focusable children in the dialog, prevent the user from
2348
- // tabbing out of it
2349
- if (!firstFocusableEl)
2350
- return event.preventDefault();
2351
- const activeEl = getActiveEl();
2352
- // If the SHIFT key is pressed while tabbing (moving backwards) and the
2353
- // currently focused item is the first one, move the focus to the last
2354
- // focusable item from the dialog element
2355
- if (event.shiftKey && activeEl === firstFocusableEl) {
2356
- // @ts-ignore: we know that `lastFocusableEl` is not null here
2357
- lastFocusableEl.focus();
2358
- event.preventDefault();
2359
- }
2360
- // If the SHIFT key is not pressed (moving forwards) and the currently focused
2361
- // item is the last one, move the focus to the first focusable item from the
2362
- // dialog element
2363
- else if (!event.shiftKey && activeEl === lastFocusableEl) {
2364
- firstFocusableEl.focus();
2365
- event.preventDefault();
2366
- }
2367
- }
2368
- /**
2369
- * Find the closest element to the given element matching the given selector,
2370
- * accounting for Shadow DOM subtrees.
2371
- * @author Louis St-Amour
2372
- * @see: https://stackoverflow.com/a/56105394
2373
- */
2374
- function closest(selector, base) {
2375
- function from(el) {
2376
- if (!el || el === document || el === window)
2377
- return null;
2378
- // Reading the `assignedSlot` property from the element (as suggested by the
2379
- // aforementioned StackOverflow answer) is not enough, because it does not
2380
- // take into consideration elements nested deeply within a <slot>. For these
2381
- // elements, the `assignedSlot` property is `null` as it is only specified
2382
- // for top-level elements within a <slot>. To still find the closest <slot>,
2383
- // we walk up the tree looking for the `assignedSlot` property.
2384
- const slot = findAssignedSlot(el);
2385
- if (slot)
2386
- el = slot;
2387
- return (el.closest(selector) ||
2388
- from(el.getRootNode().host));
2389
- }
2390
- return from(base);
2391
- }
2392
- function findAssignedSlot(node) {
2393
- return (node.assignedSlot ||
2394
- (node.parentNode ? findAssignedSlot(node.parentNode) : null));
2395
- }
2396
-
2397
- const SCOPE = 'data-a11y-dialog';
2398
- class A11yDialog {
2399
- $el;
2400
- id;
2401
- previouslyFocused;
2402
- shown;
2403
- constructor(element) {
2404
- this.$el = element;
2405
- this.id = this.$el.getAttribute(SCOPE) || this.$el.id;
2406
- this.previouslyFocused = null;
2407
- this.shown = false;
2408
- this.maintainFocus = this.maintainFocus.bind(this);
2409
- this.bindKeypress = this.bindKeypress.bind(this);
2410
- this.handleTriggerClicks = this.handleTriggerClicks.bind(this);
2411
- this.show = this.show.bind(this);
2412
- this.hide = this.hide.bind(this);
2413
- this.$el.setAttribute('aria-hidden', 'true');
2414
- this.$el.setAttribute('aria-modal', 'true');
2415
- this.$el.setAttribute('tabindex', '-1');
2416
- if (!this.$el.hasAttribute('role')) {
2417
- this.$el.setAttribute('role', 'dialog');
2418
- }
2419
- document.addEventListener('click', this.handleTriggerClicks, true);
2420
- }
2421
- /**
2422
- * Destroy the current instance (after making sure the dialog has been hidden)
2423
- * and remove all associated listeners from dialog openers and closers
2424
- */
2425
- destroy() {
2426
- // Dispatch a `destroy` event
2427
- const destroyEvent = this.fire('destroy');
2428
- // If the event was prevented, do not continue with the normal behavior
2429
- if (destroyEvent.defaultPrevented)
2430
- return this;
2431
- // Hide the dialog to avoid destroying an open instance
2432
- this.hide();
2433
- // Remove the click event delegates for our openers and closers
2434
- document.removeEventListener('click', this.handleTriggerClicks, true);
2435
- // Clone and replace the dialog element to prevent memory leaks caused by
2436
- // event listeners that the author might not have cleaned up.
2437
- this.$el.replaceWith(this.$el.cloneNode(true));
2438
- return this;
2439
- }
2440
- /**
2441
- * Show the dialog element, trap the current focus within it, listen for some
2442
- * specific key presses and fire all registered callbacks for `show` event
2443
- */
2444
- show(event) {
2445
- // If the dialog is already open, abort
2446
- if (this.shown)
2447
- return this;
2448
- // Dispatch a `show` event
2449
- const showEvent = this.fire('show', event);
2450
- // If the event was prevented, do not continue with the normal behavior
2451
- if (showEvent.defaultPrevented)
2452
- return this;
2453
- // Keep a reference to the currently focused element to be able to restore
2454
- // it later
2455
- this.shown = true;
2456
- this.$el.removeAttribute('aria-hidden');
2457
- this.previouslyFocused = getActiveEl();
2458
- // Due to a long lasting bug in Safari, clicking an interactive element
2459
- // (like a <button>) does *not* move the focus to that element, which means
2460
- // `document.activeElement` is whatever element is currently focused (like
2461
- // an <input>), or the <body> element otherwise. We can work around that
2462
- // problem by checking whether the focused element is the <body>, and if it,
2463
- // store the click event target.
2464
- // See: https://bugs.webkit.org/show_bug.cgi?id=22261
2465
- if (this.previouslyFocused?.tagName === 'BODY' && event?.target) {
2466
- this.previouslyFocused = event.target;
2467
- }
2468
- // Set the focus to the dialog element
2469
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/583
2470
- if (event?.type === 'focus') {
2471
- this.maintainFocus();
2472
- }
2473
- else {
2474
- focus(this.$el);
2475
- }
2476
- // Bind a focus event listener to the body element to make sure the focus
2477
- // stays trapped inside the dialog while open, and start listening for some
2478
- // specific key presses (TAB and ESC)
2479
- document.body.addEventListener('focus', this.maintainFocus, true);
2480
- this.$el.addEventListener('keydown', this.bindKeypress, true);
2481
- return this;
2482
- }
2483
- /**
2484
- * Hide the dialog element, restore the focus to the previously active
2485
- * element, stop listening for some specific key presses and fire all
2486
- * registered callbacks for `hide` event
2487
- */
2488
- hide(event) {
2489
- // If the dialog is already closed, abort
2490
- if (!this.shown)
2491
- return this;
2492
- // Dispatch a `hide` event
2493
- const hideEvent = this.fire('hide', event);
2494
- // If the event was prevented, do not continue with the normal behavior
2495
- if (hideEvent.defaultPrevented)
2496
- return this;
2497
- this.shown = false;
2498
- this.$el.setAttribute('aria-hidden', 'true');
2499
- // Remove the focus event listener to the body element and stop listening
2500
- // for specific key presses
2501
- document.body.removeEventListener('focus', this.maintainFocus, true);
2502
- this.$el.removeEventListener('keydown', this.bindKeypress, true);
2503
- // Ensure the previously focused element (if any) has a `focus` method
2504
- // before attempting to call it to account for SVG elements
2505
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/108
2506
- this.previouslyFocused?.focus?.();
2507
- return this;
2508
- }
2509
- /**
2510
- * Register a new callback for the given event type
2511
- */
2512
- on(type, handler, options) {
2513
- this.$el.addEventListener(type, handler, options);
2514
- return this;
2515
- }
2516
- /**
2517
- * Unregister an existing callback for the given event type
2518
- */
2519
- off(type, handler, options) {
2520
- this.$el.removeEventListener(type, handler, options);
2521
- return this;
2522
- }
2523
- /**
2524
- * Dispatch and return a custom event from the DOM element associated with
2525
- * this dialog; this allows authors to listen for and respond to the events
2526
- * in their own code
2527
- */
2528
- fire(type, event) {
2529
- const customEvent = new CustomEvent(type, {
2530
- detail: event,
2531
- cancelable: true,
2532
- });
2533
- this.$el.dispatchEvent(customEvent);
2534
- return customEvent;
2535
- }
2536
- /**
2537
- * Add a delegated event listener for when elememts that open or close the
2538
- * dialog are clicked, and call `show` or `hide`, respectively
2539
- */
2540
- handleTriggerClicks(event) {
2541
- // We need to retrieve the click target while accounting for Shadow DOM.
2542
- // When within a web component, `event.target` is the shadow root (e.g.
2543
- // `<my-dialog>`), so we need to use `event.composedPath()` to get the click
2544
- // target
2545
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/582
2546
- const target = event.composedPath()[0];
2547
- const opener = closest(`[${SCOPE}-show="${this.id}"]`, target);
2548
- const explicitCloser = closest(`[${SCOPE}-hide="${this.id}"]`, target);
2549
- const implicitCloser = closest(`[${SCOPE}-hide]`, target) &&
2550
- closest('[aria-modal="true"]', target) === this.$el;
2551
- // We use `closest(..)` (instead of `matches(..)`) so that clicking an
2552
- // element nested within a dialog opener does cause the dialog to open, and
2553
- // we use our custom `closest(..)` function so that it can cross shadow
2554
- // boundaries
2555
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/712
2556
- if (opener)
2557
- this.show(event);
2558
- if (explicitCloser || implicitCloser)
2559
- this.hide(event);
2560
- }
2561
- /**
2562
- * Private event handler used when listening to some specific key presses
2563
- * (namely ESC and TAB)
2564
- */
2565
- bindKeypress(event) {
2566
- // This is an escape hatch in case there are nested open dialogs, so that
2567
- // only the top most dialog gets interacted with (`closest` is basically
2568
- // `Element.prototype.closest()` accounting for Shadow DOM subtrees)
2569
- if (closest('[aria-modal="true"]', getActiveEl()) !== this.$el) {
2570
- return;
2571
- }
2572
- let hasOpenPopover = false;
2573
- try {
2574
- hasOpenPopover = !!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open');
2575
- }
2576
- catch {
2577
- // Run that DOM query in a try/catch because not all browsers support the
2578
- // `:popover-open` selector, which would cause the whole expression to
2579
- // fail
2580
- // See: https://caniuse.com/mdn-css_selectors_popover-open
2581
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/578#discussion_r1343215149
2582
- }
2583
- // If the dialog is shown and the ESC key is pressed, prevent any further
2584
- // effects from the ESC key and hide the dialog, unless:
2585
- // - its role is `alertdialog`, which means it should be modal
2586
- // - or it contains an open popover, in which case ESC should close it
2587
- if (event.key === 'Escape' &&
2588
- this.$el.getAttribute('role') !== 'alertdialog' &&
2589
- !hasOpenPopover) {
2590
- event.preventDefault();
2591
- this.hide(event);
2592
- }
2593
- // If the dialog is shown and the TAB key is pressed, make sure the focus
2594
- // stays trapped within the dialog element
2595
- if (event.key === 'Tab') {
2596
- trapTabKey(this.$el, event);
2597
- }
2598
- }
2599
- /**
2600
- * If the dialog is shown and the focus is not within a dialog element (either
2601
- * this one or another one in case of nested dialogs) or an element with the
2602
- * ignore attribute, move it back to the dialog container
2603
- * See: https://github.com/KittyGiraudel/a11y-dialog/issues/177
2604
- */
2605
- maintainFocus() {
2606
- // We use `getActiveEl()` and not `event.target` here because the latter can
2607
- // be a shadow root. This can happen when having a focusable element after
2608
- // slotted content: tabbing out of it causes this focus listener to trigger
2609
- // with the shadow root as a target event. In such a case, the focus would
2610
- // be incorrectly moved to the dialog, which shouldn’t happen. Getting the
2611
- // active element (while accounting for Shadow DOM) avoids that problem.
2612
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/778
2613
- const target = getActiveEl();
2614
- if (!closest(`[aria-modal="true"], [${SCOPE}-ignore-focus-trap]`, target)) {
2615
- focus(this.$el);
2616
- }
2617
- }
2618
- }
2619
-
2620
- function instantiateDialogs() {
2621
- for (const el of document.querySelectorAll('[data-a11y-dialog]')) {
2622
- new A11yDialog(el);
2623
- }
2624
- }
2625
- if (typeof document !== 'undefined') {
2626
- if (document.readyState === 'loading') {
2627
- document.addEventListener('DOMContentLoaded', instantiateDialogs);
2628
- }
2629
- else {
2630
- instantiateDialogs();
2631
- }
2632
- }
2633
-
15
+ */function K(){return G||(G=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case m:return"Profiler";case f:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case g:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case b:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case w:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function i(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var i=(t=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),n(e)}}function r(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function a(){return Error("react-stack-top-frame")}function s(){var e=t(this.type);return O[e]||(O[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function o(e,n,r,a,o,d,p,h){var f,m=n.children;if(void 0!==m)if(a)if(T(m)){for(a=0;a<m.length;a++)l(m[a]);Object.freeze&&Object.freeze(m)}else console.error("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 l(m);if(N.call(n,"key")){m=t(e);var v=Object.keys(n).filter(function(e){return"key"!==e});a=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",D[m+a]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,m,v,m),D[m+a]=!0)}if(m=null,void 0!==r&&(i(r),m=""+r),function(e){if(N.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(i(n.key),m=""+n.key),"key"in n)for(var g in r={},n)"key"!==g&&(r[g]=n[g]);else r=n;return m&&function(e,t){function n(){c||(c=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,n,i,r,a,o,l){return n=a.ref,e={$$typeof:u,type:e,key:t,props:a,_owner:r},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:s}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,d,0,null===(f=k.A)?null:f.getOwner(),r,p,h)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===u&&e._store&&(e._store.validated=1)}var c,d=e,u=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),k=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,T=Array.isArray,C=console.createTask?console.createTask:function(){return null},O={},j=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,a)(),A=C(r(a)),D={};Y.Fragment=h,Y.jsx=function(e,t,n,i,a){var s=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!1,0,a,s?Error("react-stack-top-frame"):j,s?C(r(e)):A)},Y.jsxs=function(e,t,n,i,a){var s=1e4>k.recentlyCreatedOwnerStacks++;return o(e,t,n,!0,0,a,s?Error("react-stack-top-frame"):j,s?C(r(e)):A)}}()),Y}function X(){return W||(W=1,"production"===process.env.NODE_ENV?$.exports=function(){if(U)return q;U=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,i){var r=null;if(void 0!==i&&(r=""+i),void 0!==n.key&&(r=""+n.key),"key"in n)for(var a in i={},n)"key"!==a&&(i[a]=n[a]);else i=n;return n=i.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:i}}return q.Fragment=t,q.jsx=n,q.jsxs=n,q}():$.exports=K()),$.exports}var J=X(),Z="accordion",Q=function(e){var t=e.className,n=e.children,i=e.headingLevel,r=void 0===i?3:i,a=e.size,s=e.isEnclosed,o=E(e,["className","children","headingLevel","size","isEnclosed"]),l=y(V(z),1)[0],c=j(Z,v(v({},"".concat(Z,"--").concat(a),a),"".concat(Z,"--enclosed"),s),t);return J.jsx(R.Provider,{value:r,children:J.jsx("ul",b(b({className:c,ref:l,"data-accordion":"true"},o),{},{children:n}))})};Q.displayName="Accordion";var ee=e.createContext("/sprite.svg"),te="icon",ne=function(e){var t=e.className,n=e.alt,i=e.color,r=e.name,a=e.size,o=e.spritePath,l=void 0===o?"/sprite.svg":o,c=E(e,["className","alt","color","name","size","spritePath"]),d=s(ee),u=j(te,v(v({},"".concat(te,"--").concat(a),a),"".concat(te,"--").concat(i),i),t);return J.jsxs("svg",b(b({className:u,"aria-hidden":void 0!==n?void 0:"true",role:void 0!==n?"img":void 0},c),{},{children:[void 0!==n&&n.length>0&&J.jsx("title",{children:n}),J.jsx("use",{xlinkHref:"/sprite.svg"!==l||void 0===d?"".concat(l,"#").concat(r):"".concat(d,"#").concat(r)})]}))};ne.displayName="Icon";var ie="accordion",re=function(t){var n=t.className,i=t.title,r=t.id,a=t.isActive,s=E(t,["className","title","id","isActive"]),o=e.useContext(R),l="h".concat(o||3);return J.jsx(l,{className:j("".concat(ie,"__header"),n),children:J.jsxs("button",b(b({type:"button","aria-expanded":a,className:"".concat(ie,"__button"),"aria-controls":"".concat(r,"-section"),id:r,"data-accordion-toggle":!0},s),{},{children:[J.jsx("span",{className:"accordion__title",children:i}),J.jsx(ne,{className:"".concat(ie,"__icon"),name:"chevron-down",size:"medium"})]}))})};re.displayName="AccordionHeader";var ae=function(e){var t=e.id,n=e.isActive,i=e.title,r=e.renderHeader,a=e.children,s=e.className,o=E(e,["id","isActive","title","renderHeader","children","className"]),l=j("accordion__item",s),c=t||B();return J.jsxs("li",{className:l,children:[r?r(i,c,n||!1):J.jsx(re,b({id:c,isActive:n,title:i},o)),J.jsx("div",b(b({id:"".concat(c,"-section"),"aria-labelledby":c,className:j("accordion__body",{"is-active":n})},n?{}:{hidden:!0}),{},{children:a}))]})};ae.displayName="AccordionItem";var se="buttons",oe=function(e){var t=e.isStackedOnXs,n=e.children,i=e.className,r=E(e,["isStackedOnXs","children","className"]);return J.jsx("div",b(b({className:j(se,v({},"".concat(se,"--stack-on-xs"),t),i)},r),{},{children:n}))};oe.displayName="Buttons";var le=function(e){var t=e.condition,n=e.wrapper,i=e.children;return t?o(n,void 0,i):i};le.displayName="ConditionalWrapper";var ce={warning:"warning-important",info:"info",danger:"error-severe",success:"checked"},de="alert",ue=function(t){var n=t.className,i=t.type,r=void 0===i?"info":i,a=t.title,s=t.renderTitle,o=t.description,l=t.headingLevel,c=void 0===l?3:l,d=t.actionButtons,u=t.isFullWidth,p=t.colorScheme,h=t.onClose,f=E(t,["className","type","title","renderTitle","description","headingLevel","actionButtons","isFullWidth","colorScheme","onClose"]),m="h".concat(c),g=j(de,v(v(v(v({},"".concat(de,"--").concat(r),r),"".concat(de,"--full-width"),u),"is-dark","dark"===p),"is-light","light"===p),n),y=s&&s(Object.assign({className:n,type:r,title:a,renderTitle:s,description:o,headingLevel:c,actionButtons:d,isFullWidth:u,colorScheme:p,onClose:h},f))||a&&e.createElement(m,{className:"".concat(de,"__title")},a);return J.jsxs("div",b(b({className:g},f),{},{children:[J.jsx("div",{className:"".concat(de,"__icon"),children:J.jsx(ne,{name:ce[r],color:r,size:"medium"})}),J.jsxs("div",{className:"".concat(de,"__content"),children:[y,o&&J.jsx(le,{condition:"string"==typeof o,wrapper:J.jsx("p",{}),children:o}),d&&J.jsx(le,{condition:e.Children.count(d)>1,wrapper:J.jsx(oe,{}),children:e.Children.map(d,function(e){return e})})]}),h&&J.jsx("div",{className:"".concat(de,"__close"),children:J.jsx("button",{onClick:h,children:J.jsx(ne,{name:"close",size:"medium"})})})]}))};ue.displayName="Alert";var pe="tag",he=e.forwardRef(function(t,n){var i=t.color,r=t.size,a=t.isInverse,s=t.isDisabled,o=t.className,l=t.children,c=t.actionButton,d=E(t,["color","size","isInverse","isDisabled","className","children","actionButton"]),u=j(pe,o,v(v({"tag--inverse":a},"tag--".concat(i),i),"tag--".concat(r),r));if("onClick"in t&&t.onClick){var p=d,h=p.onClick,f=E(p,["onClick"]);return J.jsx("button",b(b({type:"button",className:u,onClick:h,disabled:!!s||void 0,"aria-disabled":s?"true":void 0,ref:n},f),{},{children:l}))}if("actionButton"in t&&c){var m=d;return J.jsxs("div",{ref:n,className:"".concat(pe,"__wrapper"),children:[J.jsx("span",b(b({className:u,"aria-disabled":s?"true":void 0},m),{},{children:l})),e.isValidElement(c)?e.cloneElement(c,{size:r,isDisabled:s}):c]})}var g=d;return J.jsxs("span",b(b({className:u,ref:n},g),{},{children:[l," ",c]}))});he.displayName="Tag";var fe="".concat(pe,"__action"),me=e.forwardRef(function(e,t){var n=e.className,i=e.onClick,r=e.isDisabled,a=e.iconName,s=e.ariaLabel,o=e.size,l=E(e,["className","onClick","isDisabled","iconName","ariaLabel","size"]),c=j(fe,v({},"".concat(fe,"--").concat(o),o),n);return J.jsx("button",b(b({type:"button",className:c,onClick:i,disabled:!!r||void 0,"aria-disabled":r?"true":void 0,"aria-label":s,ref:t},l),{},{children:J.jsx(ne,{size:"large"===o?"medium":"small",name:a})}))});me.displayName="TagButton";var ve="bar",ge=e.forwardRef(function(e,t){var n=e.align,i=e.canWrap,r=void 0===i||i,a=e.isVertical,s=e.space,o=e.tag,l=void 0===o?"div":o,c=e.className,d=e.children,u=E(e,["align","canWrap","isVertical","space","tag","className","children"]),p=j(ve,v(v(v(v({},"align-items-".concat(n),n),"".concat(ve,"--vertical"),a),"".concat(ve,"--nowrap"),!r),"".concat(ve,"--space-").concat(s),s),c);return J.jsx(l,b(b({className:p,ref:t},u),{},{children:d}))});ge.displayName="Bar";var be="bar__item",ye=e.forwardRef(function(e,t){var n=e.className,i=e.tag,r=void 0===i?"div":i,a=e.isFilling,s=e.canShrink,o=e.children,l=E(e,["className","tag","isFilling","canShrink","children"]),c=r,d=j(be,v(v({},"".concat(be,"--fill"),a),"".concat(be,"--shrinkable"),s),n);return J.jsx(c,b(b({className:d,ref:t},l),{},{children:o}))});ye.displayName="BarItem";var _e=e.forwardRef(function(e,t){var n=e.className,i=e.tag,r=void 0===i?"div":i,a=e.children,s=E(e,["className","tag","children"]),o=j("bar__break",n);return J.jsx(r,b(b({className:o,ref:t},s),{},{children:a}))});_e.displayName="BarBreak";var xe=function(t){var n=t.className,i=t.children,r=E(t,["className","children"]);return e.cloneElement(i,Object.assign(Object.assign(Object.assign({},"object"===w(i.props)&&null!==i.props?i.props:{}),r),{className:j(i.props&&i.props.className,n)}))},we=e.createContext({isIndicating:!1,isActive:!1,setIsActive:function(){},setIsIndicating:function(){}}),Se=function(e){var t=y(a(!1),2),n=t[0],i=t[1],r=y(a(!1),2),s=r[0],o=r[1];return J.jsx(we.Provider,{value:{isIndicating:n,setIsIndicating:i,isActive:s,setIsActive:o},children:e.children})},Ee=function(e){return J.jsx(Se,{children:J.jsx(xe,b(b({},e),{},{className:"block-action","data-block-action":!0}))})};Ee.displayName="BlockAction";var ke=function(e){var t=s(we),n=t.isActive,i=t.setIsActive,r=t.setIsIndicating;return J.jsx(xe,b(b({},e),{},{className:"block-action__control",onMouseEnter:function(){return r(!0)},onMouseLeave:function(){return r(!1)},onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},onClick:function(){return i(!n)}}))};ke.displayName="BlockActionControl";var Ne=function(e){var t=s(we),n=t.isActive,i=t.isIndicating;return J.jsx(xe,b(b({},e),{},{className:j("block-action__indicator",e.className,{"is-indicating":i,"is-active":n})}))};Ne.displayName="BlockActionIndicator";var Te=function(e){return J.jsx(xe,b(b({},e),{},{className:"block-action__override"}))};function Ce(e){return e?"".concat("".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-").concat(e)):""}function Oe(e,t,n){return Object.keys(t).map(function(i){switch(w(t[i])){case"boolean":return"".concat(e).concat("xs"!==i?"--".concat(i):"-").concat(Ce(n));case"string":case"number":return"".concat(e).concat("xs"!==i?"--".concat(i):"-").concat(Ce(t[i])).concat(Ce(n));default:return null}}).join(" ")}function je(e,t,n){return["boolean"==typeof t?"".concat(e).concat(Ce(n,"--")):null,null!==t&&"object"===w(t)?Oe(e,t,n):null,v({},"".concat(e,"--").concat(t).concat(Ce(n)),"string"==typeof t||"number"==typeof t)]}Te.displayName="BlockActionOverride";var Ae,De={exports:{}};var Le=(Ae||(Ae=1,De.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t){return e.slice(-1*t.length)===t}function r(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function a(e){return"number"==typeof e&&isFinite(e)}function s(e,t){return e=e.toString().split("e"),(+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(t)}function o(e,n,i,r,o,l,c,d,u,p,h,f){var m,v,g,b=f,y="",_="";return l&&(f=l(f)),!!a(f)&&(!1!==e&&0===parseFloat(f.toFixed(e))&&(f=0),f<0&&(m=!0,f=Math.abs(f)),!1!==e&&(f=s(f,e)),-1!==(f=f.toString()).indexOf(".")?(g=(v=f.split("."))[0],i&&(y=i+v[1])):g=f,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),m&&d&&(_+=d),r&&(_+=r),m&&u&&(_+=u),_+=g,_+=y,o&&(_+=o),p&&(_=p(_,b)),_)}function l(e,t,r,s,o,l,c,d,u,p,h,f){var m,v="";return h&&(f=h(f)),!(!f||"string"!=typeof f)&&(d&&n(f,d)&&(f=f.replace(d,""),m=!0),s&&n(f,s)&&(f=f.replace(s,"")),u&&n(f,u)&&(f=f.replace(u,""),m=!0),o&&i(f,o)&&(f=f.slice(0,-1*o.length)),t&&(f=f.split(t).join("")),r&&(f=f.replace(r,".")),m&&(v+="-"),""!==(v=(v+=f).replace(/[^0-9\.\-.]/g,""))&&(v=Number(v),c&&(v=c(v)),!!a(v)&&v))}function c(t){var n,i,a,s={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(a=t[i=e[n]]))"negative"!==i||s.negativeBefore?"mark"===i&&"."!==s.thousand?s[i]=".":s[i]=!1:s[i]="-";else if("decimals"===i){if(!(a>=0&&a<8))throw new Error(i);s[i]=a}else if("encoder"===i||"decoder"===i||"edit"===i||"undo"===i){if("function"!=typeof a)throw new Error(i);s[i]=a}else{if("string"!=typeof a)throw new Error(i);s[i]=a}return r(s,"mark","thousand"),r(s,"prefix","negative"),r(s,"prefix","negativeBefore"),s}function d(t,n,i){var r,a=[];for(r=0;r<e.length;r+=1)a.push(t[e[r]]);return a.push(i),n.apply("",a)}function u(e){if(!(this instanceof u))return new u(e);"object"==typeof e&&(e=c(e),this.to=function(t){return d(e,o,t)},this.from=function(t){return d(e,l,t)})}return u}()),De.exports),Me=k(Le);function Pe(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ie={decimals:2,mark:",",thousand:" ",suffix:" €"};function ze(e,t){return Me(b(b(b({},Ie),t),e%1==0?{decimals:0}:{})).to(e)}var Re="grid",Fe=e.forwardRef(function(e,t){var n=e.className,i=e.hAlign,r=e.vAlign,a=e.tag,s=void 0===a?"div":a,o=e.justifyHeight,l=e.rowGapSize,c=e.columnGapSize,d=E(e,["className","hAlign","vAlign","tag","justifyHeight","rowGapSize","columnGapSize"]),u=j.apply(void 0,[Re,v(v(v(v({},"align-items-".concat(r),r),"justify-content-".concat(i),i),"".concat(Re,"--justify-height"),o),"".concat(Re,"--column-gap-").concat(c),c)].concat(_(je("".concat(Re,"-row-gap"),l)),[n])),p=s;return J.jsx(p,b({className:u,ref:t},d))});Fe.displayName="Grid";var Be="grid__col",Ve=function(e){var t=e.className,n=e.align,i=e.tag,r=void 0===i?"div":i,a=e.size,s=E(e,["className","align","tag","size"]),o=je(Be,a),l=j.apply(void 0,[Be].concat(_(o.filter(Boolean)),[v({},"align-self-".concat(n),n),t])),c=r;return J.jsx(c,b({className:l},s))};Ve.displayName="GridCol";var He="btn",Ue=e.forwardRef(function(e,t){var n=e.className,i=e.children,r=e.htmlType,a=void 0===r?"button":r,s=e.href,o=e.isActive,l=e.isDefault,c=e.isDisabled,d=e.colorScheme,u=e.size,p=e.isSquare,h=e.type,f=e.elemRef,m=E(e,["className","children","htmlType","href","isActive","isDefault","isDisabled","colorScheme","size","isSquare","type","elemRef"]),g=j(He,v(v(v(v(v(v(v({},"".concat(He,"--square"),p),"".concat(He,"--").concat(u),u),"".concat(He,"--").concat(h),h),"".concat(He,"--default"),l),"is-dark","dark"===d),"is-light","light"===d),"is-active",o),n);if(s){var y=m;return J.jsx("a",b(b({href:s,className:g,"aria-disabled":c?"true":void 0,ref:f||t},y),{},{children:i}))}var _=m;return J.jsx("button",b(b({type:a,className:g,disabled:!!c||void 0,"aria-disabled":c?"true":void 0,ref:f||t},_),{},{children:i}))});Ue.displayName="Button";var $e=Object.assign(Object.assign({},{xs:"0px",sm:"480px",md:"768px",lg:"992px",xl:"1240px",xxl:"1380px"}),{xxxl:"1920px"}),qe=function(e){var t=e.className,n=e.src,i=e.alt,r=E(e,["className","src","alt"]),a=j("img",t);if("object"===w(n)){var s=Object.keys(n).sort(function(e,t){return parseInt($e[t])-parseInt($e[e])});return J.jsxs("picture",{className:a,children:[s.map(function(e){return"default"!==e&&J.jsx("source",{srcSet:n[e],media:"(min-width: ".concat($e[e],")")},e)}),J.jsx("img",b({src:n.default,alt:i},r))]})}return J.jsx("img",b({className:a,src:n,alt:i},r))};qe.displayName="Image";var Ge=l(function(e,t){var n=e.className,i=E(e,["className"]),r=j("container",n);return J.jsx("div",b({className:r,ref:t},i))});Ge.displayName="Container";var We="body-banner",Ye=function(e){var t=e.className,n=e.colorScheme,i=e.size,r=e.color,a=e.imageUrl,s=e.title,o=e.description,l=e.buttonText,c=j(We,{"is-dark":"dark"===n,"is-light":"light"===n,"is-small":"small"===i,"is-large":"large"===i,"is-gray":"gray"===r,"is-orange":"orange"===r},t);return J.jsx(Ge,{children:J.jsxs(Fe,{className:c,children:[J.jsxs(Ve,{size:{xs:12,md:"small"===i?12:6},className:"".concat(We,"__content"),children:["small"===i&&a&&J.jsx("div",{className:"".concat(We,"__image"),children:J.jsx(qe,{src:a||"",alt:"Body Banner"})}),J.jsxs("div",{className:"".concat(We,"__content-inner ").concat("large"===i?"is-large":""),children:[J.jsxs("div",{children:[J.jsx("h3",{className:"mb-small",children:s}),J.jsx("p",{className:"h6 mb-none fullwidth",children:o})]}),J.jsx("div",{className:"".concat(We,"__button ").concat("large"===i?"is-large":""),children:J.jsx(Ue,{size:"large",type:"fill",colorScheme:"light"===n?"light":"gray"!==r&&"orange"!==r?"dark":"light",className:"mb-none",children:l})})]})]}),"large"===i&&a&&J.jsx(Ve,{size:{xs:12,md:6},className:"".concat(We,"__image"),children:J.jsx(qe,{src:a||"",alt:"Body Banner",className:"is-large"})})]})})},Ke=function(e){var t=e.className,n=e.isCurrent,i=e.text,r=e.url,a=E(e,["className","isCurrent","text","url"]),s=j("osk-breadcrumbs__item",t);return r?J.jsx("li",{className:s,children:J.jsx("a",b(b(b({href:r,className:"osk-breadcrumbs__link"},n?{"aria-current":"page"}:{}),a),{},{children:i}))}):J.jsx("li",b(b({className:s},a),{},{children:i}))};Ke.displayName="BreadcrumbItem";var Xe="osk-breadcrumbs",Je=function(e){var t=e.className,n=e.label,i=e.items,r=e.colorScheme,a=E(e,["className","label","items","colorScheme"]),s=j(Xe,t,{"is-dark":"dark"===r,"is-light":"light"===r}),o=_(i).reverse().findIndex(function(e){return!!e.url}),l=-1===o?-1:i.length-1-o;return J.jsx("nav",b(b({"aria-label":n,className:s},a),{},{children:J.jsx("ol",{className:"".concat(Xe,"__container"),children:i.map(function(e,t){return c(Ke,b(b({},e),{},{key:e.text,isCurrent:!!e.url&&t===l}))})})}))};Je.displayName="Breadcrumbs";var Ze=e.forwardRef(function(e,t){var n=e.iconName,i=e.iconPosition,r=void 0===i?"left":i,a=e.iconClassName,s=e.children,o=e.size,l=e.isSquare,c=E(e,["iconName","iconPosition","iconClassName","children","size","isSquare"]),d=function(e){var t=e.className,i=E(e,["className"]);return J.jsx(ne,b({name:n,size:null!=o?o:"medium",className:j(a,t)},i))};return l?J.jsxs(Ue,b(b({size:o,isSquare:!0},c),{},{ref:t,children:[J.jsx(d,{}),J.jsx("span",{className:"visually-hidden",children:s})]})):J.jsxs(Ue,b(b({ref:t,size:o},c),{},{children:["left"===r&&J.jsx(d,{className:"btn__icon-left"}),s,"right"===r&&J.jsx(d,{className:"btn__icon-right"})]}))});Ze.displayName="IconButton";var Qe=function(e){return J.jsx(Ue,b({type:"primary"},e))};Qe.displayName="ButtonPrimary";var et=function(e){return J.jsx(Ue,b({type:"fill"},e))};et.displayName="ButtonFill";var tt=function(e){return J.jsx(Ue,b({type:"ghost"},e))};tt.displayName="ButtonGhost";var nt="carousel",it="".concat(nt,"__viewport-wrapper"),rt="".concat(nt,"__viewport"),at="".concat(nt,"__track"),st="".concat(nt,"__slide"),ot="".concat(nt,"__slide-next"),lt="".concat(nt,"__slide-prev"),ct="".concat(nt,"__prev"),dt="".concat(nt,"__next"),ut="".concat(nt,"__pagination"),pt="".concat(nt,"__pagination-item"),ht="".concat(nt,"__scrollbar"),ft="".concat(nt,"__scrollbar-horizontal"),mt="".concat(nt,"__scrollbar-drag"),vt="is-active",gt=".".concat(rt),bt=".".concat(at),yt=".".concat(ct),_t=".".concat(dt),xt=".".concat(ut),wt=".".concat(ht),St=".".concat(vt),Et=st,kt=function(e){var t=e.className,n=e.children,i=E(e,["className","children"]),r=j(Et,t);return J.jsx("div",b(b({className:r},i),{},{children:n}))};function Nt(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Tt(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Nt(t[n])&&Nt(e[n])&&Object.keys(t[n]).length>0&&Tt(e[n],t[n])})}kt.displayName="CarouselItem";const Ct={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ot(){const e="undefined"!=typeof document?document:{};return Tt(e,Ct),e}const jt={document:Ct,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function At(){const e="undefined"!=typeof window?window:{};return Tt(e,jt),e}function Dt(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function Lt(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Mt(){return Date.now()}function Pt(e,t){void 0===t&&(t="x");const n=At();let i,r,a;const s=function(e){const t=At();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix("none"===r?"":r)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function It(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function zt(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Rt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!zt(i)){const n=Object.keys(Object(i)).filter(e=>t.indexOf(e)<0);for(let t=0,r=n.length;t<r;t+=1){const r=n[t],a=Object.getOwnPropertyDescriptor(i,r);void 0!==a&&a.enumerable&&(It(e[r])&&It(i[r])?i[r].__swiper__?e[r]=i[r]:Rt(e[r],i[r]):!It(e[r])&&It(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:Rt(e[r],i[r])):e[r]=i[r])}}}return e}function Ft(e,t,n){e.style.setProperty(t,n)}function Bt(e){let{swiper:t,targetPosition:n,side:i}=e;const r=At(),a=-t.translate;let s,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=n>a?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{s=(new Date).getTime(),null===o&&(o=s);const e=Math.max(Math.min((s-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=a+c*(n-a);if(d(p,n)&&(p=n),t.wrapperEl.scrollTo({[i]:p}),d(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:p})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Vt(e,t){void 0===t&&(t="");const n=At(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function Ht(e){try{return void console.warn(e)}catch(e){}}function Ut(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Dt(t)),n}function $t(e){const t=At(),n=Ot(),i=e.getBoundingClientRect(),r=n.body,a=e.clientTop||r.clientTop||0,s=e.clientLeft||r.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+o-a,left:i.left+l-s}}function qt(e,t){return At().getComputedStyle(e,null).getPropertyValue(t)}function Gt(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Wt(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function Yt(e,t,n){const i=At();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function Kt(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Xt(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let Jt,Zt,Qt;function en(){return Jt||(Jt=function(){const e=At(),t=Ot();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Jt}function tn(e){return void 0===e&&(e={}),Zt||(Zt=function(e){let{userAgent:t}=void 0===e?{}:e;const n=en(),i=At(),r=i.navigator.platform,a=t||i.navigator.userAgent,s={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let d=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r;let f="MacIntel"===r;return!d&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(d=a.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!h&&(s.os="android",s.android=!0),(d||p||u)&&(s.os="ios",s.ios=!0),s}(e)),Zt}function nn(){return Qt||(Qt=function(){const e=At(),t=tn();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=i();return{isSafari:n||a,needPerspectiveFix:n,need3dFix:a||r&&t.ios,isWebView:r}}()),Qt}var rn={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];t.apply(i,a)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],n=a.slice(1,a.length),i=e):(t=a[0].events,n=a[0].data,i=a[0].context||e),n.unshift(i);return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(i,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(i,n)})}),e}};const an=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const sn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const on=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},ln=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},cn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,a=[n-t];return a.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{a.includes(t.column)&&ln(e,n)})}const a=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=a+t;i+=1){const t=(i%n+n)%n;(t<r||t>a)&&ln(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(a+t,n-1);i+=1)i!==r&&(i>a||i<r)&&ln(e,i)};var dn={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(qt(i,"padding-left")||0,10)-parseInt(qt(i,"padding-right")||0,10),n=n-parseInt(qt(i,"padding-top")||0,10)-parseInt(qt(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,size:a,rtlTranslate:s,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=Vt(r,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,b=e.slidesGrid.length;let y=n.spaceBetween,_=-m,x=0,w=0;if(void 0===a)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*a:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Ft(i,"--swiper-centered-offset-before",""),Ft(i,"--swiper-centered-offset-after",""));const S=n.grid&&n.grid.rows>1&&e.grid;let E;S?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const k="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<u;i+=1){let r;if(E=0,d[i]&&(r=d[i]),S&&e.grid.updateSlide(i,r,d),!d[i]||"none"!==qt(r,"display")){if("auto"===n.slidesPerView){k&&(d[i].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(r),s=r.style.transform,o=r.style.webkitTransform;if(s&&(r.style.transform="none"),o&&(r.style.webkitTransform="none"),n.roundLengths)E=e.isHorizontal()?Yt(r,"width"):Yt(r,"height");else{const e=t(a,"width"),n=t(a,"padding-left"),i=t(a,"padding-right"),s=t(a,"margin-left"),o=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+s+o;else{const{clientWidth:t,offsetWidth:a}=r;E=e+n+i+s+o+(a-t)}}s&&(r.style.transform=s),o&&(r.style.webkitTransform=o),n.roundLengths&&(E=Math.floor(E))}else E=(a-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),d[i]&&(d[i].style[e.getDirectionLabel("width")]=`${E}px`);d[i]&&(d[i].swiperSlideSize=E),f.push(E),n.centeredSlides?(_=_+E/2+x/2+y,0===x&&0!==i&&(_=_-a/2-y),0===i&&(_=_-a/2-y),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),w%n.slidesPerGroup===0&&p.push(_),h.push(_)):(n.roundLengths&&(_=Math.floor(_)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup===0&&p.push(_),h.push(_),_=_+E+y),e.virtualSize+=E+y,x=E,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+v,s&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),S&&e.grid.updateWrapperSize(E,p),!n.centeredSlides){const t=[];for(let i=0;i<p.length;i+=1){let r=p[i];n.roundLengths&&(r=Math.floor(r)),p[i]<=e.virtualSize-a&&t.push(r)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(l&&n.loop){const t=f[0]+y;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)p.push(p[p.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==y){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>a?e-a:0;p=p.map(e=>e<=0?-m:e>t?t+v:e)}if(n.centerInsufficientSlides){let e=0;f.forEach(t=>{e+=t+(y||0)}),e-=y;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<a){const n=(a-e-t)/2;p.forEach((e,t)=>{p[t]=e-n}),h.forEach((e,t)=>{h[t]=e+n})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ft(i,"--swiper-centered-offset-before",-p[0]+"px"),Ft(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(s(e))}else n.push(s(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:a}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;r&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),u=(s-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(s-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),an(l,m,n.slideVisibleClass),an(l,f,n.slideFullyVisibleClass),l.progress=r?-d:d,l.originalProgress=r?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:a,isEnd:s,progressLoop:o}=t;const l=a,c=s;if(0===i)r=0,a=!0,s=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;a=n||r<=0,s=o||r>=1,n&&(r=0),o&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],a=t.slidesGrid[i],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=r?(l-r)/s:(l+s-a)/s,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:a,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!s)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,a=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,o=e=>Vt(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(a)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else s?(l=t.find(e=>e.column===r),d=t.find(e=>e.column===r+1),c=t.find(e=>e.column===r-1)):l=t[r];l&&(s||(d=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{sn(e,e===l,n.slideActiveClass),sn(e,e===d,n.slideNextClass),sn(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:a,realIndex:s,snapIndex:o}=t;let l,c=e;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===a&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=d(c);else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:s,realIndex:p,previousIndex:a,activeIndex:c}),t.initialized&&cn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let a,s=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){s=!0,a=e;break}if(!r||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var un={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let a=Pt(r,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:a,progress:s}=n;let o,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();o=0===d?0:(e-n.minTranslate())/d,o!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const a=this,{params:s,wrapperEl:o}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,a.updateProgress(d),s.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return Bt({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),n&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),n&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function pn(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:a,previousIndex:s}=t;let o=i;o||(o=a>s?"next":a<s?"prev":"reset"),t.emit(`transition${r}`),n&&"reset"===o?t.emit(`slideResetTransition${r}`):n&&a!==s&&(t.emit(`slideChangeTransition${r}`),"next"===o?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`))}var hn={slideTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(!f&&!i&&!r||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const m=Math.min(a.params.slidesPerGroupSkip,s);let v=m+Math.floor((s-m)/a.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?s=e:t>=n&&t<i&&(s=e+1):t>=n&&(s=e)}if(a.initialized&&s!==u){if(!a.allowSlideNext&&(p?g>a.translate&&g>a.minTranslate():g<a.translate&&g<a.minTranslate()))return!1;if(!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(u||0)!==s)return!1}let b;s!==(d||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(g),b=s>u?"next":s<u?"prev":"reset";const y=a.virtual&&a.params.virtual.enabled;if(!(y&&r)&&(p&&-g===a.translate||!p&&g===a.translate))return a.updateActiveIndex(s),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(g),"reset"!==b&&(a.transitionStart(n,b),a.transitionEnd(n,b)),!1;if(o.cssMode){const e=a.isHorizontal(),n=p?g:-g;if(0===t)y&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=n})):h[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Bt({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=nn().isSafari;return y&&!r&&_&&a.isElement&&a.virtual.update(!1,!1,s),a.setTransition(t),a.setTranslate(g),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(n,b),0===t?a.transitionEnd(n,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const a=r.grid&&r.params.grid&&r.params.grid.rows>1;let s=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)s+=r.virtual.slidesBefore;else{let e;if(a){const t=s*r.params.grid.rows;e=r.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(s);const t=a?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n}=r.params;let o=r.params.slidesPerView;"auto"===o?o=r.slidesPerViewDynamic():(o=Math.ceil(parseFloat(r.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),i&&n&&"auto"!==r.params.slidesPerView&&!a&&(l=!1),l){const i=n?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(a){const e=s*r.params.grid.rows;s=r.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else s=r.getSlideIndexByData(s)}return requestAnimationFrame(()=>{r.slideTo(s,t,n,i)}),r},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:r,params:a,animating:s}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<a.slidesPerGroupSkip?1:o,c=i.virtual&&a.virtual.enabled;if(a.loop){if(s&&!c&&a.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return a.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:r,snapGrid:a,slidesGrid:s,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(o?i.translate:-i.translate),h=a.map(e=>u(e)),f=r.freeMode&&r.freeMode.enabled;let m=a[h.indexOf(p)-1];if(void 0===m&&(r.cssMode||f)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(m=f?a[e]:a[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=s.indexOf(m),v<0&&(v=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(v,e,t,n)}),!0):i.slideTo(v,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let a=r.activeIndex;const s=Math.min(r.params.slidesPerGroupSkip,a),o=s+Math.floor((a-s)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*i&&(a+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*i&&(a-=r.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,r.slidesGrid.length-1),r.slideTo(a,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,a=e.getSlideIndexWhenGrid(e.clickedIndex);const s=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):a>(o?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),a=e.getSlideIndex(Vt(n,`${s}[data-swiper-slide-index="${r}"]`)[0]),Lt(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};var fn={loopCreate:function(e,t){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{Vt(r,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},s=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||s)&&(()=>{const e=Vt(r,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const o=i.slidesPerGroup*(s?i.grid.rows:1),l=n.slides.length%o!==0,c=s&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?Ut("swiper-slide",[i.slideBlankClass]):Ut("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};if(l){if(i.loopAddBlankSlides){d(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()}else Ht("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(c){if(i.loopAddBlankSlides){d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()}else Ht("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();n.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:r,activeSlideIndex:a,initial:s,byController:o,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:p,slidesEl:h,params:f}=c,{centeredSlides:m,initialSlide:v}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=p,void c.emit("loopFix");let g=f.slidesPerView;"auto"===g?g=c.slidesPerViewDynamic():(g=Math.ceil(parseFloat(f.slidesPerView,10)),m&&g%2==0&&(g+=1));const b=f.slidesPerGroupAuto?g:f.slidesPerGroup;let y=m?Math.max(b,Math.ceil(g/2)):b;y%b!==0&&(y+=b-y%b),y+=f.loopAdditionalSlides,c.loopedSlides=y;const _=c.grid&&f.grid&&f.grid.rows>1;d.length<g+y||"cards"===c.params.effect&&d.length<g+2*y?Ht("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):_&&"row"===f.grid.fill&&Ht("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],w=[],S=_?Math.ceil(d.length/f.grid.rows):d.length,E=s&&S-v<g&&!m;let k=E?v:c.activeIndex;void 0===a?a=c.getSlideIndex(d.find(e=>e.classList.contains(f.slideActiveClass))):k=a;const N="next"===i||!i,T="prev"===i||!i;let C=0,O=0;const j=(_?d[a].column:a)+(m&&void 0===r?-g/2+.5:0);if(j<y){C=Math.max(y-j,b);for(let e=0;e<y-j;e+=1){const t=e-Math.floor(e/S)*S;if(_){const e=S-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&x.push(t)}else x.push(S-t-1)}}else if(j+g>S-y){O=Math.max(j-(S-2*y),b),E&&(O=Math.max(O,g-S+v+1));for(let e=0;e<O;e+=1){const t=e-Math.floor(e/S)*S;_?d.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&d.length<g+2*y&&(w.includes(a)&&w.splice(w.indexOf(a),1),x.includes(a)&&x.splice(x.indexOf(a),1)),T&&x.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),N&&w.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.append(d[e]),d[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():_&&(x.length>0&&T||w.length>0&&N)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),f.watchSlidesProgress&&c.updateSlidesOffset(),n)if(x.length>0&&T){if(void 0===t){const e=c.slidesGrid[k],t=c.slidesGrid[k+C]-e;l?c.setTranslate(c.translate-t):(c.slideTo(k+Math.ceil(C),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){const e=_?x.length/f.grid.rows:x.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&N)if(void 0===t){const e=c.slidesGrid[k],t=c.slidesGrid[k-O]-e;l?c.setTranslate(c.translate-t):(c.slideTo(k-O,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=_?w.length/f.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=u,c.allowSlideNext=p,c.controller&&c.controller.control&&!o){const e={slideRealIndex:t,direction:i,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function mn(e,t,n){const i=At(),{params:r}=e,a=r.edgeSwipeDetection,s=r.edgeSwipeThreshold;return!a||!(n<=s||n>=i.innerWidth-s)||"prevent"===a&&(t.preventDefault(),!0)}function vn(e){const t=this,n=Ot();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void mn(t,i,i.targetTouches[0].pageX);const{params:a,touches:s,enabled:o}=t;if(!o)return;if(!a.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let l=i.target;if("wrapper"===a.touchEventsTarget&&!function(e,t){const n=At();let i=t.contains(e);!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!a.noSwipingClass&&""!==a.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(a.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===Ot()||n===At())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(a.swipeHandler&&!l.closest(a.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;const h=s.currentX,f=s.currentY;if(!mn(t,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=f,r.touchStartTime=Mt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1);let m=!0;l.matches(r.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!v||l.isContentEditable||i.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function gn(e){const t=Ot(),n=this,i=n.touchEventsData,{params:r,touches:a,rtlTranslate:s,enabled:o}=n;if(!o)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return a.startX=d,void(a.startY=u);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(a,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=Mt()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(u<a.startY&&n.translate<=n.maxTranslate()||u>a.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(s&&(d>a.startX&&-n.translate<=n.maxTranslate()||d<a.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(d<a.startX&&n.translate<=n.maxTranslate()||d>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=d,a.currentY=u;const p=a.currentX-a.startX,h=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?i.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(f=Math.abs(f)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),a.diff=f,f*=r.touchRatio,s&&(f=-f,m=-m);const v=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!r.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(g&&b&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&v!==n.touchesDirection&&g&&b&&Math.abs(f)>=1)return Object.assign(a,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let y=!0,_=r.resistanceRatio;if(r.touchReleaseOnEdges&&(_=0),f>0?(g&&b&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(y=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**_))):f<0&&(g&&b&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(y=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**_))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function bn(e){const t=this,n=t.touchEventsData;let i,r=e;r.originalEvent&&(r=r.originalEvent);if("touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)){if(!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:a,touches:s,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c)return;if(!a.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=Mt(),u=d-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Mt(),Lt(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=a.followFinger?o?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;a.rewind&&(t.isBeginning?g=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const b=(p-l[f])/m,y=f<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(u>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?v:f+y):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-a.longSwipesRatio?t.slideTo(f+y):null!==g&&b<0&&Math.abs(b)>a.longSwipesRatio?t.slideTo(g):t.slideTo(f))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(f+y):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==v?v:f+y),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:f))}}function yn(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:a}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function _n(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function xn(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();r=0===a?0:(e.translate-e.minTranslate())/a,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function wn(e){const t=this;on(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Sn(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const En=(e,t)=>{const n=Ot(),{params:i,el:r,wrapperEl:a,device:s}=e,o=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&a[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",yn,!0):e[c]("observerUpdate",yn,!0),r[l]("load",e.onLoad,{capture:!0}))};const kn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Nn={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,a=i.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const s=Ot(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:s.querySelector(i.breakpointsBase),c=e.getBreakpoint(a,o,l);if(!c||e.currentBreakpoint===c)return;const d=(c in a?a[c]:void 0)||e.originalParams,u=kn(e,i),p=kn(e,d),h=e.params.grabCursor,f=d.grabCursor,m=i.enabled;u&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===d[t])return;const n=i[t]&&i[t].enabled,r=d[t]&&d[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const v=d.direction&&d.direction!==i.direction,g=i.loop&&(d.slidesPerView!==i.slidesPerView||v),b=i.loop;v&&n&&e.changeDirection(),Rt(e.params,d);const y=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&_?(e.loopCreate(t),e.updateSlides()):b&&!_&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=At(),a="window"===t?r.innerHeight:n.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:a,value:o}=s[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(i=a):o<=n.clientWidth&&(i=a)}return i||"max"}};var Tn={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:a}=e,s=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};var Cn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function On(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Rt(t,n)):Rt(t,n)):Rt(t,n)}}const jn={eventsEmitter:rn,update:dn,translate:un,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),pn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),pn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:hn,loop:fn,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=vn.bind(e),e.onTouchMove=gn.bind(e),e.onTouchEnd=bn.bind(e),e.onDocumentTouchStart=Sn.bind(e),t.cssMode&&(e.onScroll=xn.bind(e)),e.onClick=_n.bind(e),e.onLoad=wn.bind(e),En(e,"on")},detachEvents:function(){En(this,"off")}},breakpoints:Nn,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Tn},An={};class Dn{constructor(){let e,t;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=Rt({},t),e&&!t.el&&(t.el=e);const a=Ot();if(t.el&&"string"==typeof t.el&&a.querySelectorAll(t.el).length>1){const e=[];return a.querySelectorAll(t.el).forEach(n=>{const i=Rt({},t,{el:n});e.push(new Dn(i))}),e}const s=this;s.__swiper__=!0,s.support=en(),s.device=tn({userAgent:t.userAgent}),s.browser=nn(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const o={};s.modules.forEach(e=>{e({params:t,swiper:s,extendParams:On(t,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const l=Rt({},Cn,o);return s.params=Rt({},l,An,t),s.originalParams=Rt({},s.params),s.passedParams=Rt({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=Gt(Vt(t,`.${n.slideClass}, swiper-slide`)[0]);return Gt(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Vt(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:a,size:s,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[o]?Math.ceil(i[o].swiperSlideSize):0;for(let n=o+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>s&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=o+1;e<i.length;e+=1){(t?r[e]+a[e]-r[o]<s:r[e]-r[o]<s)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){r[o]-r[e]<s&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&on(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(i())}return Vt(n,i())[0]})();return!r&&t.params.createElements&&(r=Ut("div",t.params.wrapperClass),n.append(r),Vt(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===qt(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===qt(n,"direction")),wrongRTL:"-webkit-box"===qt(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?on(t,e):e.addEventListener("load",e=>{on(t,e.target)})}),cn(t),t.initialized=!0,cn(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:r,wrapperEl:a,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),a&&a.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Rt(An,e)}static get extendedDefaults(){return An}static get defaults(){return Cn}static installModule(e){Dn.prototype.__modules__||(Dn.prototype.__modules__=[]);const t=Dn.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Dn.installModule(e)),Dn):(Dn.installModule(e),Dn)}}function Ln(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=Ot(),s=At();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);const o=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,p=39===o,h=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||a.activeElement&&(a.activeElement.isContentEditable||a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||d||u||p||h||f)){let e=!1;if(Wt(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===Wt(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,r=i.clientWidth,a=i.clientHeight,o=s.innerWidth,l=s.innerHeight,c=$t(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+a],[c.left+r,c.top+a]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||p)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((d||p)&&!n||(c||u)&&n)&&t.slideNext(),((c||u)&&!n||(d||p)&&n)&&t.slidePrev()):((c||d||h||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(d||f)&&t.slideNext(),(c||h)&&t.slidePrev()),r("keyPress",o)}}function l(){t.keyboard.enabled||(a.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(a.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{t.params.keyboard.enabled&&l()}),i("destroy",()=>{t.keyboard.enabled&&c()}),Object.assign(t.keyboard,{enable:l,disable:c})}function Mn(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(r=>{if(!n[r]&&!0===n.auto){let a=Vt(e.el,`.${i[r]}`)[0];a||(a=Ut("div",i[r]),a.className=i[r],e.el.append(a)),n[r]=a,t[r]=a}}),n}function Pn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;function a(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function s(e,n){const i=t.params.navigation;(e=Kt(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))})}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=Mn(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=a(e.nextEl),i=a(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=Kt(n),i=Kt(i);const r=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function u(){let{nextEl:e,prevEl:n}=t.navigation;e=Kt(e),n=Kt(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",()=>{!1===t.params.navigation.enabled?p():(d(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{u()}),i("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=Kt(e),n=Kt(n),t.enabled?o():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),i("click",(e,n)=>{let{nextEl:i,prevEl:a}=t.navigation;i=Kt(i),a=Kt(a);const s=n.target;let o=a.includes(s)||i.includes(s);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find(e=>i.includes(e)||a.includes(e)))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...i,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:p,update:o,init:d,destroy:u})}function In(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function zn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a="swiper-pagination";let s;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function d(e){const n=e.target.closest(In(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=Gt(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(r=t.realIndex,a=i,s=t.slides.length,(a%=s)===1+(r%=s)?"next":a===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var r,a,s}function u(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,a,d=t.pagination.el;d=Kt(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,u,p;if(n.dynamicBullets&&(s=Yt(r[0],t.isHorizontal()?"width":"height"),d.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=s*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==a&&(o+=i-(a||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(i-o,0),u=l+(Math.min(r.length,n.dynamicMainBullets)-1),p=(u+l)/2),r.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)r.forEach(e=>{const r=Gt(e);r===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(r>=l&&r<=u&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===l&&c(e,"prev"),r===u&&c(e,"next"))});else{const e=r[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[l],t=r[u];for(let e=l;e<=u;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),a=(s*i-s)/2-p*s,o=e?"right":"left";r.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=`${a}px`})}}d.forEach((e,a)=>{if("fraction"===n.type&&(e.querySelectorAll(In(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),e.querySelectorAll(In(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(i+1)/p;let s=1,o=1;"horizontal"===r?s=a:o=a,e.querySelectorAll(In(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(Xt(e,n.renderCustom(t,i+1,p)),0===a&&r("paginationRender",e)):(0===a&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=Kt(i);let a="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?a+=e.renderBullet.call(t,n,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach(n=>{"custom"!==e.type&&Xt(n,a||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(In(e.bulletClass)))}),"custom"!==e.type&&r("paginationRender",i[0])}function h(){t.params.pagination=Mn(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find(e=>Wt(e,".swiper")[0]===t.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=Kt(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",d),t.enabled||n.classList.add(e.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=Kt(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=Kt(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.pagination.enabled?m():(h(),p(),u())}),i("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),i("snapIndexChange",()=>{u()}),i("snapGridLengthChange",()=>{p(),u()}),i("destroy",()=>{f()}),i("enable disable",()=>{let{el:e}=t.pagination;e&&(e=Kt(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{u()}),i("click",(e,n)=>{const i=n.target,a=Kt(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Kt(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Kt(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),h(),p(),u()},disable:m,render:p,update:u,init:h,destroy:f})}function Rn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=Ot();let s,o,l,c,d=!1,u=null,p=null;function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:i,el:r}=e,a=t.params.scrollbar,s=t.params.loop?t.progressLoop:t.progress;let c=o,d=(l-o)*s;n?(d=-d,d>0?(c=o-d,d=0):-d+o>l&&(c=l+d)):d<0?(c=o+d,d=0):d+o>l&&(c=l-d),t.isHorizontal()?(i.style.transform=`translate3d(${d}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${d}px, 0)`,i.style.height=`${c}px`),a.hide&&(clearTimeout(u),r.style.opacity=1,u=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:i}=e;n.style.width="",n.style.height="",l=t.isHorizontal()?i.offsetWidth:i.offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,i.style.display=c>=1?"none":"",t.params.scrollbar.hide&&(i.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function v(e){const{scrollbar:n,rtlTranslate:i}=t,{el:r}=n;let a;a=(m(e)-$t(r)[t.isHorizontal()?"left":"top"]-(null!==s?s:o/2))/(l-o),a=Math.max(Math.min(a,1),0),i&&(a=1-a);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function g(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:a}=t,{el:o,dragEl:l}=i;d=!0,s=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",l.style.transitionDuration="100ms",v(e),clearTimeout(p),o.style.transitionDuration="0ms",n.hide&&(o.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function b(e){const{scrollbar:n,wrapperEl:i}=t,{el:a,dragEl:s}=n;d&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,v(e),i.style.transitionDuration="0ms",a.style.transitionDuration="0ms",s.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function y(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:a}=t,{el:s}=i;d&&(d=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",a.style.transitionDuration=""),n.hide&&(clearTimeout(p),p=Lt(()=>{s.style.opacity=0,s.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function _(e){const{scrollbar:n,params:i}=t,r=n.el;if(!r)return;const s=r,o=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!s)return;const c="on"===e?"addEventListener":"removeEventListener";s[c]("pointerdown",g,o),a[c]("pointermove",b,o),a[c]("pointerup",y,l)}function x(){const{scrollbar:e,el:n}=t;t.params.scrollbar=Mn(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const i=t.params.scrollbar;if(!i.el)return;let r,s;if("string"==typeof i.el&&t.isElement&&(r=t.el.querySelector(i.el)),r||"string"!=typeof i.el)r||(r=i.el);else if(r=a.querySelectorAll(i.el),!r.length)return;t.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.querySelectorAll(i.el).length&&(r=n.querySelector(i.el)),r.length>0&&(r=r[0]),r.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass),r&&(s=r.querySelector(In(t.params.scrollbar.dragClass)),s||(s=Ut("div",t.params.scrollbar.dragClass),r.append(s))),Object.assign(e,{el:r,dragEl:s}),i.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&_("on"),r&&r.classList[t.enabled?"remove":"add"](...Dt(t.params.scrollbar.lockClass))}function w(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...Dt(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&_("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=Kt(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.scrollbar.enabled?S():(x(),f(),h())}),i("update resize observerUpdate lock unlock changeDirection",()=>{f()}),i("setTranslate",()=>{h()}),i("setTransition",(e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)}),i("enable disable",()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...Dt(t.params.scrollbar.lockClass))}),i("destroy",()=>{w()});const S=()=>{t.el.classList.add(...Dt(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Dt(t.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...Dt(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Dt(t.params.scrollbar.scrollbarDisabledClass)),x(),f(),h()},disable:S,updateSize:f,setTranslate:h,init:x,destroy:w})}function Fn(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,a,s=null,o=(new Date).getTime();function l(e){const t=s;0!==t.length&&Xt(t,e)}function c(e){(e=Kt(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=Kt(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=Kt(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function h(e,t){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function v(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(In(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=Kt(t.navigation.prevEl);Kt(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&i.matches(In(t.params.pagination.bulletClass))&&i.click()}}function g(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return g()&&t.params.pagination.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",v)),h(e,n),function(e,t){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},_=e=>{a&&a!==e.target&&!a.contains(e.target)&&(r=!0),t.a11y.clicked=!0},x=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},w=e=>{o=(new Date).getTime()},S=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;a=n;const i=t.slides.indexOf(n)===t.activeIndex,s=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{r||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(n)),0),r=!1)}))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach((i,r)=>{const a=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;h(i,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))})},k=()=>{const e=t.params.a11y;t.el.append(s);const n=t.el;e.containerRoleDescriptionMessage&&p(n,e.containerRoleDescriptionMessage),e.containerMessage&&h(n,e.containerMessage),e.containerRole&&u(n,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${a=16,"x".repeat(a).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var a;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=r,Kt(i).forEach(e=>{e.setAttribute("id",l)}),function(e,t){(e=Kt(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(i,o),E();let{nextEl:c,prevEl:d}=t.navigation?t.navigation:{};if(c=Kt(c),d=Kt(d),c&&c.forEach(t=>y(t,r,e.nextSlideMessage)),d&&d.forEach(t=>y(t,r,e.prevSlideMessage)),b()){Kt(t.pagination.el).forEach(e=>{e.addEventListener("keydown",v)})}Ot().addEventListener("visibilitychange",w),t.el.addEventListener("focus",S,!0),t.el.addEventListener("focus",S,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",x,!0)};i("beforeInit",()=>{s=Ut("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),i("afterInit",()=>{t.params.a11y.enabled&&k()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&E()}),i("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),d(n)):(m(n),c(n))),e&&(t.isEnd?(f(e),d(e)):(m(e),c(e)))}()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;g()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(u(n,"button"),h(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,Gt(n)+1)))),n.matches(In(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=Kt(e),n=Kt(n),e&&e.forEach(e=>e.removeEventListener("keydown",v)),n&&n.forEach(e=>e.removeEventListener("keydown",v)),b()&&Kt(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",v)});Ot().removeEventListener("visibilitychange",w),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",S,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",x,!0))}()})}function Bn(e){let t,n,{swiper:i,extendParams:r,on:a,emit:s,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,d,u,p,h,f,m,v=o&&o.autoplay?o.autoplay.delay:3e3,g=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),m||e.detail&&e.detail.bySwiperTouchMove||k())}const _=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(g=l,c=!1);const e=i.autoplay.paused?l:b+g-(new Date).getTime();i.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/v),n=requestAnimationFrame(()=>{_()})},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(n),_();let r=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,g=i.params.autoplay.delay;const a=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find(e=>e.classList.contains("swiper-slide-active")):i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&a>0&&void 0===e&&(r=a,v=a,g=a),l=r;const o=i.params.speed,c=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(o,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,o,!0,!0),s("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(o,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,o,!0,!0),s("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame(()=>{x()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{c()},r)):requestAnimationFrame(()=>{c()}),r},w=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),s("autoplayStart")},S=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),s("autoplayStop")},E=(e,n)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const r=()=>{s("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):k()};if(i.autoplay.paused=!0,n)return h&&(l=i.params.autoplay.delay),h=!1,void r();const a=l||i.params.autoplay.delay;l=a-((new Date).getTime()-b),i.isEnd&&l<0&&!i.params.loop||(l<0&&(l=0),r())},k=()=>{i.isEnd&&l<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(l)):x(),i.autoplay.paused=!1,s("autoplayResume"))},N=()=>{if(i.destroyed||!i.autoplay.running)return;const e=Ot();"hidden"===e.visibilityState&&(f=!0,E(!0)),"visible"===e.visibilityState&&k()},T=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,i.animating||i.autoplay.paused||E(!0))},C=e=>{"mouse"===e.pointerType&&(m=!1,i.autoplay.paused&&k())};a("init",()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",T),i.el.addEventListener("pointerleave",C)),Ot().addEventListener("visibilitychange",N),w())}),a("destroy",()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",T),i.el.removeEventListener("pointerleave",C)),Ot().removeEventListener("visibilitychange",N),i.autoplay.running&&S()}),a("_freeModeStaticRelease",()=>{(u||f)&&k()}),a("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?S():E(!0,!0)}),a("beforeTransitionStart",(e,t,n)=>{!i.destroyed&&i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?E(!0,!0):S())}),a("sliderFirstMove",()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?S():(d=!0,u=!1,f=!1,p=setTimeout(()=>{f=!0,u=!0,E(!0)},200)))}),a("touchEnd",()=>{if(!i.destroyed&&i.autoplay.running&&d){if(clearTimeout(p),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&i.params.cssMode&&k(),u=!1,d=!1}}),a("slideChange",()=>{!i.destroyed&&i.autoplay.running&&(h=!0)}),Object.assign(i.autoplay,{start:w,stop:S,pause:E,resume:k})}Object.keys(jn).forEach(e=>{Object.keys(jn[e]).forEach(t=>{Dn.prototype[t]=jn[e][t]})}),Dn.use([function(e){let{swiper:t,on:n,emit:i}=e;const r=At();let a=null,s=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver(e=>{s=r.requestAnimationFrame(()=>{const{width:n,height:i}=t;let r=n,a=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:s}=e;s&&s!==t.el||(r=i?i.width:(n[0]||n).inlineSize,a=i?i.height:(n[0]||n).blockSize)}),r===n&&a===i||o()})}),a.observe(t.el)):(r.addEventListener("resize",o),r.addEventListener("orientationchange",l))}),n("destroy",()=>{s&&r.cancelAnimationFrame(s),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",l)})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=[],s=At(),o=function(e,n){void 0===n&&(n={});const i=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const n=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)});i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),a.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=Wt(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}}),i("destroy",()=>{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);var Vn="top",Hn="bottom",Un="right",$n="left",qn="auto",Gn=[Vn,Hn,Un,$n],Wn="start",Yn="end",Kn="viewport",Xn="popper",Jn=Gn.reduce(function(e,t){return e.concat([t+"-"+Wn,t+"-"+Yn])},[]),Zn=[].concat(Gn,[qn]).reduce(function(e,t){return e.concat([t,t+"-"+Wn,t+"-"+Yn])},[]),Qn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ei(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){return e instanceof ti(e).Element||e instanceof Element}function ii(e){return e instanceof ti(e).HTMLElement||e instanceof HTMLElement}function ri(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ti(e).ShadowRoot||e instanceof ShadowRoot)}var ai={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ii(r)&&ei(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ii(i)&&ei(i)&&(Object.assign(i.style,a),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function si(e){return e.split("-")[0]}var oi=Math.max,li=Math.min,ci=Math.round;function di(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ui(){return!/^((?!chrome|android).)*safari/i.test(di())}function pi(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,a=1;t&&ii(e)&&(r=e.offsetWidth>0&&ci(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ci(i.height)/e.offsetHeight||1);var s=(ni(e)?ti(e):window).visualViewport,o=!ui()&&n,l=(i.left+(o&&s?s.offsetLeft:0))/r,c=(i.top+(o&&s?s.offsetTop:0))/a,d=i.width/r,u=i.height/a;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function hi(e){var t=pi(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function fi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ri(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function mi(e){return ti(e).getComputedStyle(e)}function vi(e){return["table","td","th"].indexOf(ei(e))>=0}function gi(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function bi(e){return"html"===ei(e)?e:e.assignedSlot||e.parentNode||(ri(e)?e.host:null)||gi(e)}function yi(e){return ii(e)&&"fixed"!==mi(e).position?e.offsetParent:null}function _i(e){for(var t=ti(e),n=yi(e);n&&vi(n)&&"static"===mi(n).position;)n=yi(n);return n&&("html"===ei(n)||"body"===ei(n)&&"static"===mi(n).position)?t:n||function(e){var t=/firefox/i.test(di());if(/Trident/i.test(di())&&ii(e)&&"fixed"===mi(e).position)return null;var n=bi(e);for(ri(n)&&(n=n.host);ii(n)&&["html","body"].indexOf(ei(n))<0;){var i=mi(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function xi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wi(e,t,n){return oi(e,li(t,n))}function Si(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ei(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ki={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=si(n.placement),l=xi(o),c=[$n,Un].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(e,t){return Si("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ei(e,Gn))}(r.padding,n),u=hi(a),p="y"===l?Vn:$n,h="y"===l?Hn:Un,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=_i(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=f/2-m/2,y=d[p],_=g-u[c]-d[h],x=g/2-u[c]/2+b,w=wi(y,x,_),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&fi(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ni(e){return e.split("-")[1]}var Ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ci(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,m=void 0===f?0:f,v="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var g=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=$n,_=Vn,x=window;if(c){var w=_i(n),S="clientHeight",E="clientWidth";if(w===ti(n)&&"static"!==mi(w=gi(n)).position&&"absolute"===o&&(S="scrollHeight",E="scrollWidth"),r===Vn||(r===$n||r===Un)&&a===Yn)_=Hn,m-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[S])-i.height,m*=l?1:-1;if(r===$n||(r===Vn||r===Hn)&&a===Yn)y=Un,h-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[E])-i.width,h*=l?1:-1}var k,N=Object.assign({position:o},c&&Ti),T=!0===d?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:ci(n*r)/r||0,y:ci(i*r)/r||0}}({x:h,y:m},ti(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},N,((k={})[_]=b?"0":"",k[y]=g?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k)):Object.assign({},N,((t={})[_]=b?m+"px":"",t[y]=g?h+"px":"",t.transform="",t))}var Oi={passive:!0};var ji={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(e){return e.replace(/left|right|bottom|top/g,function(e){return ji[e]})}var Di={start:"end",end:"start"};function Li(e){return e.replace(/start|end/g,function(e){return Di[e]})}function Mi(e){var t=ti(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pi(e){return pi(gi(e)).left+Mi(e).scrollLeft}function Ii(e){var t=mi(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function zi(e){return["html","body","#document"].indexOf(ei(e))>=0?e.ownerDocument.body:ii(e)&&Ii(e)?e:zi(bi(e))}function Ri(e,t){var n;void 0===t&&(t=[]);var i=zi(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=ti(i),s=r?[a].concat(a.visualViewport||[],Ii(i)?i:[]):i,o=t.concat(s);return r?o:o.concat(Ri(bi(s)))}function Fi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bi(e,t,n){return t===Kn?Fi(function(e,t){var n=ti(e),i=gi(e),r=n.visualViewport,a=i.clientWidth,s=i.clientHeight,o=0,l=0;if(r){a=r.width,s=r.height;var c=ui();(c||!c&&"fixed"===t)&&(o=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:o+Pi(e),y:l}}(e,n)):ni(t)?function(e,t){var n=pi(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Fi(function(e){var t,n=gi(e),i=Mi(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=oi(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=oi(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-i.scrollLeft+Pi(e),l=-i.scrollTop;return"rtl"===mi(r||n).direction&&(o+=oi(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}(gi(e)))}function Vi(e,t,n,i){var r="clippingParents"===t?function(e){var t=Ri(bi(e)),n=["absolute","fixed"].indexOf(mi(e).position)>=0&&ii(e)?_i(e):e;return ni(n)?t.filter(function(e){return ni(e)&&fi(e,n)&&"body"!==ei(e)}):[]}(e):[].concat(t),a=[].concat(r,[n]),s=a[0],o=a.reduce(function(t,n){var r=Bi(e,n,i);return t.top=oi(r.top,t.top),t.right=li(r.right,t.right),t.bottom=li(r.bottom,t.bottom),t.left=oi(r.left,t.left),t},Bi(e,s,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Hi(e){var t,n=e.reference,i=e.element,r=e.placement,a=r?si(r):null,s=r?Ni(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(a){case Vn:t={x:o,y:n.y-i.height};break;case Hn:t={x:o,y:n.y+n.height};break;case Un:t={x:n.x+n.width,y:l};break;case $n:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?xi(a):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Wn:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Yn:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Ui(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,a=n.strategy,s=void 0===a?e.strategy:a,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,d=void 0===c?Kn:c,u=n.elementContext,p=void 0===u?Xn:u,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,v=void 0===m?0:m,g=Si("number"!=typeof v?v:Ei(v,Gn)),b=p===Xn?"reference":Xn,y=e.rects.popper,_=e.elements[f?b:p],x=Vi(ni(_)?_:_.contextElement||gi(e.elements.popper),l,d,s),w=pi(e.elements.reference),S=Hi({reference:w,element:y,placement:r}),E=Fi(Object.assign({},y,S)),k=p===Xn?E:w,N={top:x.top-k.top+g.top,bottom:k.bottom-x.bottom+g.bottom,left:x.left-k.left+g.left,right:k.right-x.right+g.right},T=e.modifiersData.offset;if(p===Xn&&T){var C=T[r];Object.keys(N).forEach(function(e){var t=[Un,Hn].indexOf(e)>=0?1:-1,n=[Vn,Hn].indexOf(e)>=0?"y":"x";N[e]+=C[n]*t})}return N}var $i={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=void 0===r||r,s=n.altAxis,o=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,v=t.options.placement,g=si(v),b=l||(g===v||!f?[Ai(v)]:function(e){if(si(e)===qn)return[];var t=Ai(e);return[Li(e),t,Li(t)]}(v)),y=[v].concat(b).reduce(function(e,n){return e.concat(si(n)===qn?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Zn:l,d=Ni(i),u=d?o?Jn:Jn.filter(function(e){return Ni(e)===d}):Gn,p=u.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=u);var h=p.reduce(function(t,n){return t[n]=Ui(e,{placement:n,boundary:r,rootBoundary:a,padding:s})[si(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,x=t.rects.popper,w=new Map,S=!0,E=y[0],k=0;k<y.length;k++){var N=y[k],T=si(N),C=Ni(N)===Wn,O=[Vn,Hn].indexOf(T)>=0,j=O?"width":"height",A=Ui(t,{placement:N,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),D=O?C?Un:$n:C?Hn:Vn;_[j]>x[j]&&(D=Ai(D));var L=Ai(D),M=[];if(a&&M.push(A[T]<=0),o&&M.push(A[D]<=0,A[L]<=0),M.every(function(e){return e})){E=N,S=!1;break}w.set(N,M)}if(S)for(var P=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},I=f?3:1;I>0;I--){if("break"===P(I))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gi(e){return[Vn,Un,Hn,$n].some(function(t){return e[t]>=0})}var Wi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,s=Zn.reduce(function(e,n){return e[n]=function(e,t,n){var i=si(e),r=[$n,Vn].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[$n,Un].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}(n,t.rects,a),e},{}),o=s[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var Yi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=void 0===r||r,s=n.altAxis,o=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,v=Ui(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),g=si(t.placement),b=Ni(t.placement),y=!b,_=xi(g),x="x"===_?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,N="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(a){var O,j="y"===_?Vn:$n,A="y"===_?Hn:Un,D="y"===_?"height":"width",L=w[_],M=L+v[j],P=L-v[A],I=h?-E[D]/2:0,z=b===Wn?S[D]:E[D],R=b===Wn?-E[D]:-S[D],F=t.elements.arrow,B=h&&F?hi(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[j],U=V[A],$=wi(0,S[D],B[D]),q=y?S[D]/2-I-$-H-N.mainAxis:z-$-H-N.mainAxis,G=y?-S[D]/2+I+$+U+N.mainAxis:R+$+U+N.mainAxis,W=t.elements.arrow&&_i(t.elements.arrow),Y=W?"y"===_?W.clientTop||0:W.clientLeft||0:0,K=null!=(O=null==T?void 0:T[_])?O:0,X=L+G-K,J=wi(h?li(M,L+q-K-Y):M,L,h?oi(P,X):P);w[_]=J,C[_]=J-L}if(o){var Z,Q="x"===_?Vn:$n,ee="x"===_?Hn:Un,te=w[x],ne="y"===x?"height":"width",ie=te+v[Q],re=te-v[ee],ae=-1!==[Vn,$n].indexOf(g),se=null!=(Z=null==T?void 0:T[x])?Z:0,oe=ae?ie:te-S[ne]-E[ne]-se+N.altAxis,le=ae?te+S[ne]+E[ne]-se-N.altAxis:re,ce=h&&ae?function(e,t,n){var i=wi(e,t,n);return i>n?n:i}(oe,te,le):wi(h?oe:ie,te,h?le:re);w[x]=ce,C[x]=ce-te}t.modifiersData[i]=C}},requiresIfExists:["offset"]};function Ki(e,t,n){void 0===n&&(n=!1);var i,r,a=ii(t),s=ii(t)&&function(e){var t=e.getBoundingClientRect(),n=ci(t.width)/e.offsetWidth||1,i=ci(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=gi(t),l=pi(e,s,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&(("body"!==ei(t)||Ii(o))&&(c=(i=t)!==ti(i)&&ii(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Mi(i)),ii(t)?((d=pi(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=Pi(o))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Xi(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var Ji={placement:"bottom",modifiers:[],strategy:"absolute"};function Zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Qi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?Ji:r;return function(e,t,n){void 0===n&&(n=a);var r,s,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ji,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:o,setOptions:function(n){var r="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,r),o.scrollParents={reference:ni(e)?Ri(e):e.contextElement?Ri(e.contextElement):[],popper:Ri(t)};var s,c,p=function(e){var t=Xi(e);return Qn.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(i,o.options.modifiers),c=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return o.orderedModifiers=p.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:d,options:i}),s=function(){};l.push(a||s)}}),d.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(Zi(t,n)){o.rects={reference:Ki(t,_i(n),"fixed"===o.options.strategy),popper:hi(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var r=o.orderedModifiers[i],a=r.fn,s=r.options,l=void 0===s?{}:s,u=r.name;"function"==typeof a&&(o=a({state:o,options:l,name:u,instance:d})||o)}else o.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){d.forceUpdate(),e(o)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(r())})})),s}),destroy:function(){u(),c=!0}};if(!Zi(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var er=Qi({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,s=i.resize,o=void 0===s||s,l=ti(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,Oi)}),o&&l.addEventListener("resize",n.update,Oi),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Oi)}),o&&l.removeEventListener("resize",n.update,Oi)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Hi({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,s=void 0===a||a,o=n.roundOffsets,l=void 0===o||o,c={placement:si(t.placement),variation:Ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ci(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ci(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ai,Wi,$i,Yi,ki,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ui(t,{elementContext:"reference"}),o=Ui(t,{altBoundary:!0}),l=qi(s,i),c=qi(o,r,a),d=Gi(l),u=Gi(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function tr({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:r="hidden",displayValue:a="block"}){if("timeout"===n&&"number"!=typeof i)return void console.error("\n When calling transitionHiddenElement with waitMode set to timeout,\n you must pass in a number for timeoutDuration.\n ");window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const s=t=>{t.target===e&&(o(),e.removeEventListener("transitionend",s))},o=()=>{"display"===r?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",s),this.timeout&&clearTimeout(this.timeout),"display"===r?e.style.display=a:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",s):"timeout"===n?this.timeout=setTimeout(()=>{o()},i):o(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,r=[...e.classList].includes(t);return n||i||!r},timeout:null}}var nr={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:function(e){var t=e.placement;return t.includes("start")?[-10,0]:t.includes("end")?[10,0]:[0,0]}}}]}},ir=function(){return m(function e(t,n){var i;return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},nr),n),this.config.popperOptions=Object.assign(Object.assign({},nr.popperOptions),(null==n?void 0:n.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(_(nr.popperOptions.modifiers),_((null===(i=null==n?void 0:n.popperOptions)||void 0===i?void 0:i.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.element.ODS_Tooltip=this,this.init(),this},[{key:"wrapLastWordAndButton",value:function(){var e,t;if(this.element.hasAttribute("data-tooltip-keep-with-text")){var n=this.trigger.previousSibling;if(n&&n.nodeType===Node.TEXT_NODE){var i=((null===(e=n.textContent)||void 0===e?void 0:e.trim())||"").split(" "),r=i.pop(),a=i.join(" ");n.textContent=a+" ";var s=document.createElement("span");s.className="text-nowrap",s.innerHTML="".concat(r," ").concat(this.trigger.outerHTML),null===(t=this.trigger.parentNode)||void 0===t||t.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}else console.warn("Previous sibling is not a text node.")}}},{key:"init",value:function(){this.trigger=document.querySelector("[data-tooltip-trigger][aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.trigger||console.warn("tooltip trigger element is not defined and the tooltip cannot be attached. Please provide an element with [aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer?this.rootContainer.appendChild(this.element):console.warn("rootContainer element is not defined. Tooltips will be placed inside content which can affect positioning. Please provide rootContainer element (should be placed outside of main content, usually in end of <body /> tag)");var e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=er(this.trigger,this.element,this.config.popperOptions),this.transitioner=tr({element:this.element,visibleClass:"is-visible"}),this.trigger.addEventListener("mouseenter",this.handleVisibility),this.trigger.addEventListener("mouseleave",this.handleVisibility),this.trigger.addEventListener("focus",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}},{key:"handleVisibility",value:function(e){("mouseenter"!==e.type&&"focus"!==e.type||this.show(),"blur"===e.type&&this.hide(),"mouseleave"===e.type)&&(this.shouldClose(e)&&this.hide())}},{key:"shouldClose",value:function(e){var t=this,n=e.relatedreference||e.toElement||e.relatedTarget,i=function(e){var n=e.relatedreference||e.toElement||e.relatedTarget;t.element.removeEventListener("mouseleave",i),t.trigger.contains(n)||t.hide()};return!this.element.contains(n)||(this.element.addEventListener("mouseleave",i),!1)}},{key:"onKeydown",value:function(e){A.ESC.includes(e.key)&&this.hide()}},{key:"show",value:function(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.instance.forceUpdate(),document.addEventListener("keydown",this.onKeydown)}},{key:"hide",value:function(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),document.removeEventListener("keydown",this.onKeydown)}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("mouseenter",this.handleVisibility),this.trigger.removeEventListener("mouseleave",this.handleVisibility),this.trigger.removeEventListener("focus",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}}])}(),rr={navigation:{nextEl:_t,prevEl:yt},pagination:{el:xt,clickable:!0,bulletClass:pt,bulletActiveClass:vt,renderBullet:function(e,t){return'<button aria-label="Page '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},scrollbar:{el:wt,draggable:!0,enabled:!0,horizontalClass:ft,dragClass:mt},slidesPerView:1.2,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:at,slideClass:st,slideActiveClass:vt,slideNextClass:ot,slidePrevClass:lt},ar=function(){return m(function e(t,n){var i,r,a=this;return h(this,e),this.element=t,this.config=Object.assign(Object.assign(Object.assign({},rr),n),{scrollbar:Object.assign(Object.assign(Object.assign({},null!==(i=rr.scrollbar)&&void 0!==i?i:{}),null!==(r=null==n?void 0:n.scrollbar)&&void 0!==r?r:{}),{el:this.element.querySelector(wt)})}),this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(function(){a.init()}),this},[{key:"init",value:function(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.instance=new Dn(this.viewport,Object.assign(Object.assign({},this.config),{modules:[Pn,zn,Rn,Fn,Ln],on:{slideChange:this.handleSlideChange}}))}},{key:"getElements",value:function(){var e,t;this.viewport=this.element.querySelector(gt),this.track=this.viewport.querySelector(bt);var n=this.element.querySelector(xt);n&&!n.hasAttribute("role")&&n.setAttribute("role","tablist");var i={navigation:Object.assign(Object.assign({},null!==(e=this.config.navigation)&&void 0!==e?e:{}),{nextEl:this.element.querySelector(_t),prevEl:this.element.querySelector(yt)}),pagination:Object.assign(Object.assign({},null!==(t=this.config.pagination)&&void 0!==t?t:{}),{el:n,clickable:!0,bulletClass:"carousel__pagination-item",bulletActiveClass:vt})};this.config=Object.assign(Object.assign({},this.config),i)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=Object.assign(Object.assign({},this.config),t)}}},{key:"handleSlideChange",value:function(){var e=this.track.querySelector(St),t=this.track.querySelectorAll(".".concat(st,":not(").concat(St,")"));e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t)}},{key:"updateTooltipPosition",value:function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=ir.getInstance(n);i&&i.update()}}})}},{key:"hideAllTooltips",value:function(e){e.forEach(function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=ir.getInstance(n);i&&(i.hide(),e.blur())}}})})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy()}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}}])}(),sr=function(e){var t=e.className,n=e.swiperOptions,i=e.items,r=e.colorScheme,a=E(e,["className","swiperOptions","items","colorScheme"]),s=y(V(ar),1)[0],o=i.map(function(e,t){return J.jsx(kt,{children:e},t.toString())}),l=j(nt,t,{"is-dark":"dark"===r,"is-light":"light"===r}),c={prev:j(ct),next:j(dt),dots:j(ut,"show-md")};return J.jsxs("div",b(b(b({className:l,ref:s,"data-carousel":!0},n?{"data-swiper-options":JSON.stringify(n)}:{}),a),{},{children:[J.jsxs("div",{className:it,children:[J.jsx("div",{className:rt,children:J.jsx("div",{className:at,children:o})}),J.jsx("button",{type:"button","aria-label":"Naspäť",className:c.prev,children:J.jsx(ne,{size:"medium",name:"chevron-left"})}),J.jsx("button",{type:"button","aria-label":"Ďalej",className:c.next,children:J.jsx(ne,{size:"medium",name:"chevron-right"})})]}),J.jsx("div",{role:"tablist",className:c.dots}),J.jsx("div",{className:j(ht,"hide-md"),children:J.jsx("div",{className:mt})})]}))};sr.displayName="Carousel";var or="carousel-promotions",lr="".concat(or,"__viewport-wrapper"),cr="".concat(or,"__viewport"),dr="".concat(or,"__track"),ur="".concat(or,"__slide"),pr="".concat(or,"__next"),hr="".concat(or,"__pagination"),fr="".concat(or,"__pagination-item"),mr="".concat(or,"__pagination-svg"),vr="".concat(or,"__pagination-circle"),gr="".concat(or,"--slide-inverted"),br="is-autoplay",yr="is-active",_r=".".concat(cr),xr=".".concat(hr),wr={pagination:{el:xr,clickable:!0,bulletClass:fr,bulletActiveClass:yr,renderBullet:function(e,t){return'<button aria-label="Stránka '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:dr,slideClass:ur,slideActiveClass:yr,autoplay:!1},Sr=function(){function e(t,n){return h(this,e),this.interval=0,this.element=t,this.config=Object.assign(Object.assign({},wr),n),this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}return m(e,[{key:"init",value:function(){var e=this;this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));var t=this.isIntervalValid();t?(this.element.classList.add(br),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new Dn(this.viewport,Object.assign(Object.assign({},this.config),{modules:[Pn,zn,Fn,Ln,Bn],on:{slideChange:this.handleSlideChange,init:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()},update:function(){e.fixPaginationButtonType(),e.isAutoplayEnabled&&e.renderSvgDotsForAnimation()}}}));var n=this.element.querySelector(xr);n&&t&&(n.addEventListener("animationend",this.autoplayAnimationEnd),n.addEventListener("click",function(){e.stopAutoplay()}))}},{key:"stopAutoplay",value:function(){this.interval=0,this.element.classList.remove(br),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}},{key:"handleSlideChange",value:function(){(this.element.classList.remove(gr),this.instance&&void 0!==this.instance.activeIndex)&&(this.instance.activeIndex%2==1&&this.element.classList.add(gr))}},{key:"autoplayAnimationEnd",value:function(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}},{key:"isAutoplayEnabled",get:function(){return this.interval>0}},{key:"isIntervalValid",value:function(){var e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}},{key:"scrollToNextSlide",value:function(){if(this.instance&&this.instance.slides){var e=this.instance.slides.length;if(!(e<=0)){var t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}}}},{key:"getElements",value:function(){var e;this.viewport=this.element.querySelector(_r);var t=this.element.querySelector(xr);t&&!t.hasAttribute("role")&&t.setAttribute("role","tablist");var n={pagination:Object.assign(Object.assign({},null!==(e=this.config.pagination)&&void 0!==e?e:{}),{el:t,clickable:!0,bulletClass:fr,bulletActiveClass:yr})};this.config=Object.assign(Object.assign({},this.config),n)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=Object.assign(Object.assign({},this.config),t)}}},{key:"fixPaginationButtonType",value:function(){Array.from(this.element.querySelectorAll("".concat(xr," > *"))).forEach(function(e){return e.setAttribute("type","button")})}},{key:"renderSvgDotsForAnimation",value:function(){var t=Array.from(this.element.querySelectorAll("".concat(xr," > *"))),n=e.createSvgDot();n.querySelector("circle").style.animationDuration="".concat(this.interval,"ms"),t.forEach(function(e){e.innerHTML="",e.appendChild(n.cloneNode(!0))})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy()}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"createSvgDot",value:function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",mr),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);var n=document.createElementNS(e,"circle");return n.setAttribute("class",vr),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}},{key:"getInstance",value:function(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}])}(),Er=function(e){var t=e.className,n=e.swiperOptions,i=e.colorScheme,r=e.children,a=E(e,["className","swiperOptions","colorScheme","children"]),s=y(V(Sr),1)[0],o=j(or,t,{"is-light":"light"===i,"is-dark":"dark"===i}),l={next:j(pr,"hide-lg"),dots:j(hr)};return J.jsxs("div",b(b(b({className:o,ref:s,"data-carousel-promotions":!0},n?{"data-swiper-options":JSON.stringify(n)}:{}),a),{},{children:[J.jsx("div",{className:lr,children:J.jsx("div",{className:cr,children:J.jsx("div",{className:dr,children:r})})}),J.jsx("div",{role:"tablist",className:l.dots})]}))};Er.displayName="CarouselPromotions";var kr=e.createContext({headers:[],rows:[]}),Nr=function(e){var t=e.tag,n=void 0===t?"td":t,i=E(e,["tag"]),r=n;return J.jsx(r,b({},i))};Nr.displayName="TableCell";var Tr=function(){var t,n=e.useContext(kr),i=n.headers,r=n.expandableRows,a={none:"zoradiť vzostupne podľa",ascending:"zoradiť zostupne podľa",descending:"vypnúť zoradenie poďľa"};return J.jsx("thead",{children:J.jsxs("tr",{children:[i.map(function(e,t){var n=e.isSortable,i=e.sort,r=void 0===i?"none":i,s=e.label,o=e.cellProps,l=e.headCellProps;return J.jsxs(Nr,b(b(b(b({tag:"th"},o),l),n&&{"aria-sort":r}),{},{scope:"col",children:[s,n&&J.jsxs(J.Fragment,{children:[" ",J.jsx("button",{type:"button",className:"table__sort-button",children:J.jsxs("span",{className:"sr-only",children:[a[r]," ",s]})})]})]}),t.toString())}),(null==r?void 0:r.hasExpandableRows)&&J.jsx(Nr,{tag:"th",scope:"col",className:"table__cell--shrink",children:J.jsx("span",{className:"sr-only",children:null===(t=null==r?void 0:r.expandableRowsCaptions)||void 0===t?void 0:t.header})})]})})};Tr.displayName="TableHeader";var Cr=function(t){var n=t.row,i=e.useContext(kr),r=i.headers,a=i.expandableRows;return r.map(function(t,i,r){var s,o,l,c=t.key,d=t.cellProps,u=n[c],p="object"===w(u)&&null!==u,h=p&&"value"in u?u.value:u,f=p&&"value"in u?Object.entries(u).filter(function(e){return"value"!==y(e,1)[0]}).reduce(function(e,t){var n=y(t,2),i=n[0],r=n[1];return Object.assign(Object.assign({},e),v({},i,r))},{}):{},m=(null===(s=null==n?void 0:n.expand)||void 0===s?void 0:s.length)||0;return J.jsxs(e.Fragment,{children:[J.jsx(Nr,b(b(b({},d),f),{},{children:h||""})),i===r.length-1&&(null==a?void 0:a.hasExpandableRows)&&((null==n?void 0:n.expand)?J.jsx(Nr,{className:"align-right table__cell--shrink table__cell--expand",children:J.jsxs(Ue,{type:"ghost",htmlType:"button",size:"small",isSquare:!0,className:"mb-none","data-subrow-toggle":!0,"aria-expanded":n.isExpanded?"true":"false","aria-controls":null===(o=n.expand)||void 0===o?void 0:o.map(function(e){return e.id}).join(" "),children:[J.jsx("span",{className:"visually-hidden",children:"Zobraziť ".concat(m," súvisiac").concat(m>4?"ich":m>1?"e":"i"," riad").concat(m>4?"kov":m>1?"ky":"ok")}),J.jsx(ne,{name:"chevron-down",size:"large"})]})}):J.jsx(Nr,{className:"align-right table__cell--shrink",children:J.jsx("span",{className:"sr-only",children:null===(l=null==a?void 0:a.expandableRowsCaptions)||void 0===l?void 0:l.emptyRow})}))]},c)})};Cr.displayName="TableRow";var Or=function(){var t=e.useContext(kr).rows;return J.jsx("tbody",{children:t.map(function(t,n){var i;return J.jsxs(e.Fragment,{children:[J.jsx("tr",{children:J.jsx(Cr,{row:t})}),null===(i=null==t?void 0:t.expand)||void 0===i?void 0:i.map(function(e,n){var i=e.id,r=E(e,["id"]);return J.jsx("tr",{id:i,className:"table__subrow",hidden:!t.isExpanded||void 0,children:J.jsx(Cr,{row:r})},n.toString())})]},n.toString())})})};Or.displayName="TableRows";var jr=function(){var t=e.useContext(kr).footers;return t?J.jsx("tfoot",{children:t.map(function(e,t){return J.jsx("tr",{children:J.jsx(Cr,{row:e})},t.toString())})}):null};jr.displayName="TableFooter";var Ar={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},Dr=function(){return m(function e(t,n){var i=this;return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},Ar),n),this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(function(e){if(i.scrollableContainer){var t=i.scrollableContainer.getBoundingClientRect();e.forEach(function(e){var n,r;e.contentRect.width>t.width?null===(n=i.scrollableContainer)||void 0===n||n.setAttribute("tabindex","0"):null===(r=i.scrollableContainer)||void 0===r||r.removeAttribute("tabindex")})}}),this.init(),this},[{key:"addRole",value:function(e,t){Array.from(this.element.querySelectorAll(e)).forEach(function(e){e.setAttribute("role",t)})}},{key:"addARIA",value:function(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){console.log("Table.addARIA(): "+e)}}},{key:"onExpandClick",value:function(e){var t,n=e.currentTarget,i=null!==(t=n.getAttribute("aria-controls"))&&void 0!==t?t:"",r=this.element.querySelectorAll(i.split(" ").map(function(e){return"#".concat(e)}).join(","));P({element:n,attribute:"aria-expanded"}),r.forEach(function(e){P({element:e,attribute:"hidden"})})}},{key:"init",value:function(){var e=this;this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(function(t){t.addEventListener("click",e.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}},{key:"maybeInitScrollable",value:function(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}},{key:"destroy",value:function(){var e=this;this.expandButtons.forEach(function(t){t.removeEventListener("click",e.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Table?e.ODS_Table:null}}])}(),Lr="table",Mr=function(e){var t=e.className,n=e.caption,i=e.headers,r=e.rows,a=e.footers,s=e.isCompact,o=e.isStriped,l=e.isScrollable,c=e.colorScheme,u=e.expandableRowsCaptions,p=void 0===u?{header:"Rozšíriteľný",emptyRow:"Nerozšíriteľný riadok"}:u,h=E(e,["className","caption","headers","rows","footers","isCompact","isStriped","isScrollable","colorScheme","expandableRowsCaptions"]),f=y(V(Dr),1)[0],m=d(),g=j(Lr,v(v(v(v({},"".concat(Lr,"--striped"),o),"".concat(Lr,"--compact"),s),"is-dark","dark"===c),"is-light","light"===c),t),_="".concat(m,"-caption"),x={hasExpandableRows:r.some(function(e){return e&&e.expand&&e.expand.length>0}),expandableRowsCaptions:p},w={headers:i,footers:a,rows:r.map(function(e,t){return e&&e.expand?Object.assign(Object.assign({},e),{expand:e.expand.map(function(e,n){return Object.assign(Object.assign({},e),{id:"".concat(m,"-row-").concat(t,"-").concat(n)})})}):e}),expandableRows:x};return J.jsx(kr.Provider,{value:w,children:J.jsx(le,{condition:l||!1,wrapper:J.jsx("div",b({className:"".concat(Lr,"-scrollable"),role:"group"},n&&{"aria-labelledby":_})),children:J.jsxs("table",b(b({ref:f,className:g},h),{},{children:[n&&J.jsx("caption",b(b({},l&&{id:_}),{},{children:n})),J.jsx(Tr,{}),J.jsx(Or,{}),J.jsx(jr,{})]}))})})};Mr.displayName="Table";var Pr=function(e){var t,r,s,o,l,c=e.dialog,d=e.id,u=e.placement,p=e.tag,h=void 0===p?"span":p,f=e.className,m=e.renderTrigger,v=e.children,g=e.colorScheme,_=E(e,["dialog","id","placement","tag","className","renderTrigger","children","colorScheme"]),x=(r=y(a(t=d),2),s=r[0],o=r[1],l=n(t),i(function(){if(!t){H.current+=1;var e="id-".concat(H.current);l.current=e,o(e)}},[t]),s||l.current||t||"id-0"),w=j("tooltip",{"is-dark":"dark"===g,"is-light":"light"===g},f),S=h,k=y(V(ir,{removeDialogOnDestroy:!0}),1)[0],N={"data-tooltip-trigger":!0,"aria-describedby":x,"aria-owns":x,children:v};return J.jsxs(J.Fragment,{children:[m?m(N):J.jsx("button",b(b({type:"button"},N),{},{children:v})),J.jsxs(S,b(b({id:x,className:w,role:"tooltip",hidden:!0,ref:k,"data-tooltip":!0,"data-tooltip-placement":u},_),{},{children:[J.jsx(S,{className:"tooltip__arrow"}),J.jsx(S,{className:"tooltip__dialog",children:c})]}))]})};Pr.displayName="Tooltip";var Ir="info-tooltip",zr=function(e){var t=e.children,n=e.className,i=E(e,["children","className"]);return J.jsxs(Pr,b(b({dialog:t,renderTrigger:function(e){return J.jsx("button",b({type:"button",className:Ir},e))}},i),{},{children:[J.jsx(ne,{name:"assistance",color:"info",className:j("".concat(Ir,"__icon"),n)}),J.jsx("span",{className:"sr-only",children:"Info"})]}))};zr.displayName="InfoTooltip";var Rr=function(e){var t=e.price,n=e.discount,i=e.freeLabel,r=e.label,a=e.discountMonthsCount,s=!t&&!!n;return void 0!==t||void 0!==n?J.jsxs(J.Fragment,{children:[n&&t&&J.jsxs(J.Fragment,{children:[J.jsx("del",{className:"color-gray",children:ze(t)}),J.jsx("br",{})]}),J.jsxs(ge,{className:"bold justify-content-end mb-none",children:[J.jsx(ye,{className:"hide-sm",children:a&&s?"1. – ".concat(a,". mesiac"):r}),J.jsx(ye,{children:s?ze(-n):t-(null!=n?n:0)===0?i:ze(t-(null!=n?n:0))})]})]}):null},Fr=function(e){var t=e.name,n=e.tooltip;return void 0===t?null:J.jsxs(J.Fragment,{children:[J.jsx("span",{className:"bold",children:t}),n&&J.jsxs(J.Fragment,{children:[" ",J.jsx(zr,{className:"icon--small",children:n})]})]})};Fr.displayName="FooterNameColumn";var Br=function(e){var t=e.price,n=e.discount,i=void 0===n?0:n,r=e.label,a=e.size;return void 0===t?null:J.jsxs(J.Fragment,{children:[i>0&&J.jsx("del",{className:"color-gray",children:ze(t)}),J.jsxs("div",{children:[J.jsx("div",{className:j("color-orange mb-none",{h4:"large"!==a,h2:"large"===a}),children:ze(t-i)}),J.jsx("span",{className:j("color-orange mb-none",{h6:"large"!==a,h3:"large"===a}),children:r})]})]})};function Vr(e,t,n){return e.reduce(function(e,i){var r,a,s,o,l,c,d,u=null!==(r=null==i?void 0:i.monthsFree)&&void 0!==r?r:0,p=(null!==(s=null===(a=null==i?void 0:i.discount)||void 0===a?void 0:a.monthsCount)&&void 0!==s?s:0)+u||n;return u&&t<=u?e+=null!==(l=null===(o=null==i?void 0:i.price)||void 0===o?void 0:o.monthly)&&void 0!==l?l:0:p>0&&t<=p&&(e+=null!==(d=null===(c=null==i?void 0:i.discount)||void 0===c?void 0:c.monthly)&&void 0!==d?d:0),e},0)}function Hr(e,t){return e.reduce(function(e,n){var i,r,a,s;return e+=null!==(r=null===(i=null==n?void 0:n.price)||void 0===i?void 0:i[t])&&void 0!==r?r:0,e-=null!==(s=null===(a=null==n?void 0:n.discount)||void 0===a?void 0:a[t])&&void 0!==s?s:0},0)}Br.displayName="FooterPriceColumn";var Ur=function(e,t,n,i,r){if(e.find(function(e){var t;return(null==e?void 0:e.monthsFree)||(null===(t=null==e?void 0:e.discount)||void 0===t?void 0:t.monthsCount)})){var a=function(e,t){for(var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:24,a=[],s=function(e){return e.reduce(function(e,t){var n,i;return e+(null!==(i=null===(n=null==t?void 0:t.price)||void 0===n?void 0:n.monthly)&&void 0!==i?i:0)},0)}(e),o=function(e){return e.reduce(function(e,t){var n,i,r,a;return(e+=null!==(i=null===(n=null==t?void 0:t.price)||void 0===n?void 0:n.upfront)&&void 0!==i?i:0)-(null!==(a=null===(r=null==t?void 0:t.discount)||void 0===r?void 0:r.upfront)&&void 0!==a?a:0)},0)}(e),l=1;l<r;l++){var c={upfront:o>0&&1===l?o:void 0,monthly:s},d={monthly:Vr(e,l,r)},u=a.length-1;0!==a.length&&(null===(n=a[u].price)||void 0===n?void 0:n.upfront)===(null==c?void 0:c.upfront)&&(null===(i=a[u].discount)||void 0===i?void 0:i.monthly)===(null==d?void 0:d.monthly)||(a[u]&&(a[u].end=l-1),a=[].concat(_(a),[{start:l,end:r,price:c,discount:d}]))}return t&&(a.shift(),a[0]&&(a[0].start=1)),function(e){return e.map(function(t){var n=t.start,i=t.end,r=t.price,a=t.discount,s="";return e.length>1&&(s=n!==i?"".concat(n,". – ").concat(i,". mesiac"):"".concat(n,". mesiac")),{name:s,price:r,discount:a}})}(a)}(e,null==n?void 0:n.hideFirst);return a.map(function(e){var a=e.name,s=e.price,o=e.discount;return{col1:J.jsx(Fr,{name:a,tooltip:null==n?void 0:n.tooltip}),col2:s&&void 0!==s.upfront&&s.upfront>0&&"upfront"!==t&&J.jsx(Br,{price:s.upfront,discount:o&&o.upfront,label:i.upfront,size:r}),col3:J.jsx(Br,{price:s.monthly,discount:o&&o.monthly,label:i.monthly,size:r})}})}return[{col1:(null==n?void 0:n.name)&&J.jsx(Fr,{name:n.name,tooltip:n.tooltip}),col2:"upfront"!==t&&J.jsx(Br,{price:Hr(e,"upfront"),label:i.upfront,size:r}),col3:J.jsx(Br,{price:Hr(e,"monthly"),label:i.monthly,size:r})}]},$r="cart-table",qr={monthly:"mesačne",upfront:"vopred",product:"produkt",remove:"odstrániť",add:"Pridať",free:"zadarmo"},Gr=function(e){var t=e.items,n=void 0===t?[]:t,i=e.hideEmpty,r=void 0===i||i,a=e.isEditable,s=void 0!==a&&a,o=e.footer,l=e.labels,c=void 0===l?qr:l,d=e.size,u=r?[" hide"," hide"]:["",""];return r&&n.forEach(function(e){var t=e.price,n=void 0===t?{}:t,i=e.discount,r=void 0===i?{}:i;void 0===n.upfront&&void 0===r.upfront||(u[0]=""),void 0===n.monthly&&void 0===r.monthly||(u[1]="")}),J.jsx(Mr,{className:j($r,v({},"".concat($r,"--large"),d)),headers:[{key:"col1",cellProps:{className:"cart-table__product"},label:Pe(c.product)},{cellProps:{className:"align-right ".concat($r,"__price").concat(u[0])},key:"col2",label:Pe(c.upfront)},{cellProps:{className:"align-right ".concat($r,"__price").concat(u[1])},key:"col3",label:Pe(c.monthly)}].concat(_(s?[{cellProps:{className:"align-right"},key:"col4",label:""}]:[])),rows:n.map(function(e){return Object.assign({},function(e,t,n){var i=e.isSubitem,r=e.image,a=e.badge,s=e.name,o=e.tooltip,l=e.price,c=e.discount,d=e.description,u=e.icon,p=e.isMandatory,h=e.isOptional;return Object.assign(Object.assign({col1:J.jsxs(J.Fragment,{children:[J.jsxs(ge,{canWrap:!1,className:j("mb-none ",{"cart-table__subitem":i}),children:[i&&J.jsx(ye,{children:J.jsx(ne,{name:"add",size:"medium"})}),u&&J.jsx(ye,{children:J.jsx(ne,{name:u,size:"medium"})}),r&&J.jsx(ye,{children:J.jsx(qe,{src:r,alt:"",width:"24"})}),J.jsxs(ye,{isFilling:!0,children:[a&&J.jsx(he,{color:"warning",children:a}),J.jsx(ge,{space:"small",children:J.jsxs(ye,{canShrink:!0,className:j("bold",{"text-nowrap":o}),children:[J.jsx(le,{condition:!!o,wrapper:J.jsx("span",{className:"text-wrap",children:s}),children:s}),o&&" ",o&&J.jsx(zr,{className:"icon--small",placement:"right",children:o})]})}),d&&J.jsx("div",{children:"string"==typeof d?d:d.map(function(e){return J.jsx("p",{className:"mb-0",children:e},e)})})]}),!t||p||h?null:J.jsx(ye,{className:"hide-sm",children:J.jsx(Ze,{iconName:"trash",isSquare:!0,size:"small","aria-label":n.remove})}),h&&J.jsx(ye,{className:"hide-sm",children:J.jsx(Ze,{iconName:"add",isSquare:!0,size:"small","aria-label":n.add})})]}),!(null==l?void 0:l.monthly)&&(null==c?void 0:c.monthsCount)&&J.jsx("div",{children:J.jsx("p",{className:j("mb-none show-sm cart-table__discount--margin-top",{"cart-table__subitem":i,"cart-table__discount--padding-left":r||u||i}),children:"1. – ".concat(c.monthsCount,". mesiac")})})]}),col2:J.jsx(Rr,{discount:null==c?void 0:c.upfront,freeLabel:n.free,label:n.upfront,price:null==l?void 0:l.upfront}),col3:J.jsx(Rr,{discount:null==c?void 0:c.monthly,discountMonthsCount:null==c?void 0:c.monthsCount,freeLabel:n.free,label:n.monthly,price:null==l?void 0:l.monthly})},t&&!p&&!h&&{col4:J.jsx(Ze,{iconName:"trash",size:"small",className:"cart-table__button mb-none",children:J.jsx("span",{className:"show-md",children:n.remove})})}),h&&{col4:J.jsx(Ze,{iconName:"add",size:"small",className:"cart-table__button mb-none",children:J.jsx("span",{className:"show-md",children:n.add})})})}(e,s,c))}),footers:Ur(n,"true",null!=o?o:{},c,"large"===d?"large":void 0)})};Gr.displayName="CartTable";var Wr=e.forwardRef(function(e,t){var n=e.elemRef,i=e.className,r=e.icon,a=e.colorScheme,s=e.isDisabled,o=E(e,["elemRef","className","icon","colorScheme","isDisabled"]),l=j("controls",{"is-dark":"dark"===a,"is-light":"light"===a},i),c=o;return J.jsx("button",b(b({type:"button",className:l,disabled:!!s||void 0,"aria-disabled":s?"true":void 0,ref:n||t},c),{},{children:J.jsx(ne,{name:r})}))});Wr.displayName="Controls";var Yr="divider",Kr=function(e){var t=e.className,n=e.color,i=e.icon,r=e.content,a=e.thinLine,s=E(e,["className","color","icon","content","thinLine"]),o=j(Yr,v({},"".concat(Yr,"--").concat(n),n),t),l=j("".concat(Yr,"__line"),v({},"".concat(Yr,"__line--thin"),a)),c="".concat(Yr,"__content");return J.jsxs("div",b(b({className:o},s),{},{children:[J.jsx("div",{className:l}),(r||i)&&J.jsxs(J.Fragment,{children:[J.jsx("div",{className:c,children:null!=r?r:i&&J.jsx(ne,{name:i,size:"medium"})}),J.jsx("div",{className:l})]})]}))};Kr.displayName="Divider";var Xr={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},Jr=function(){return m(function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,e),t.ODS_Dropdown?t.ODS_Dropdown:(this.element=t,this.config=Object.assign(Object.assign({},Xr),i),this.config.popperOptions=Object.assign(Object.assign({},Xr.popperOptions),(null==i?void 0:i.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(_(Xr.popperOptions.modifiers||[]),_((null===(n=null==i?void 0:i.popperOptions)||void 0===n?void 0:n.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)},[{key:"init",value:function(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));var e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=er(this.trigger,this.element,this.config.popperOptions),this.transitioner=tr({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}},{key:"handleVisibility",value:function(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}},{key:"handleClick",value:function(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}},{key:"handleKeyPress",value:function(e){if(A.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){var t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"show",value:function(){var e=this;this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=function(){return e.update()}}},{key:"hide",value:function(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("click",this.handleVisibility),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}}])}(),Zr=function(e){var t=e.children,r=E(e,["children"]),a=n(null),s="string"==typeof r.iconName;return i(function(){if(a.current){var e=new M(a.current);return function(){e.destroy()}}},[]),s?J.jsx(Ze,b(b({ref:a},r),{},{children:t})):J.jsx(Ue,b(b({ref:a},r),{},{children:t}))},Qr=function(e){var t=e.className,n=e.id,i=E(e,["className","id"]);return J.jsx(Zr,b(b({"aria-expanded":!1,id:"btn-".concat(n),"data-toggle":JSON.stringify([{target:"self",attribute:"aria-expanded"}])},i),{},{className:j("".concat(ea,"__button mb-none"),t)}))};Qr.displayName="DropdownToggleButton";var ea="dropdown",ta={left:"bottom-start",center:"bottom",right:"bottom-end"},na=function(e){var t=e.button,n=e.className,i=e.hasFocusTrap,r=void 0!==i&&i,a=e.hasSpacing,s=void 0===a||a,o=e.children,l=e.id,c=e.isInteractive,d=void 0!==c&&c,u=e.placement,p=void 0===u?"left":u,h=E(e,["button","className","hasFocusTrap","hasSpacing","children","id","isInteractive","placement"]),f=y(V(Jr),1)[0],m=j("dropdown",v({},"".concat(ea,"-spacing"),s),n);return J.jsxs(J.Fragment,{children:[t&&J.jsx(Qr,b(b({},t),{},{id:l,className:t.className||""})),J.jsxs("div",b(b({ref:f,id:"dropdown-".concat(l),className:m,"data-dropdown":"","data-dropdown-placement":ta[p],"data-dropdown-interactive":d,"data-dropdown-focus-trap":r},h),{},{children:[r&&J.jsx(ge,{className:"mb-small justify-content-end",children:J.jsx(ye,{children:J.jsx(Ze,{iconName:"delete",isSquare:!0,size:"small",className:"".concat(ea,"__close"),"aria-label":"Zatvoriť",id:"close-btn-".concat(l),"data-toggle":JSON.stringify([{target:"#btn-".concat(l),action:"click"}])})})}),o]}))]})};na.displayName="Dropdown";var ia=function(e){var t=e.className,n=e.children,i=e.disabled,r=e.href,a=E(e,["className","children","disabled","href"]),s=j("dropdown__item",{disabled:i},t);return J.jsx("a",b(b({tabIndex:i?-1:0,href:r,className:s,"aria-disabled":i},a),{},{children:n}))};ia.displayName="DropdownItem";var ra=function(e){var t=e.className,n=E(e,["className"]),i=j("dropdown__divider",t);return J.jsx("div",b({className:i},n))};ra.displayName="DropdownDivider";var aa=function(){return m(function e(t){h(this,e),this.element=t,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()},[{key:"toggle",value:function(){console.log("Toggle event triggered");var e=this.element.querySelector("summary");if(e){var t=e.getAttribute("data-summary"),n=e.getAttribute("data-summary-opened");if(e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),n){var i="true"===e.getAttribute("aria-expanded")?n:t;i&&e.setAttribute("aria-label",i)}}}},{key:"init",value:function(){this.element.addEventListener("toggle",this.toggle)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){this.element.removeEventListener("toggle",this.toggle)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Expander?e.ODS_Expander:null}}])}(),sa="expander",oa=function(e){var t=e.className,n=e.children,i=e.summary,r=e.summaryOpened,a=e.renderSummary,s=e.renderSummaryOpened,o=e.colorScheme,l=void 0===o?"light":o,c=E(e,["className","children","summary","summaryOpened","renderSummary","renderSummaryOpened","colorScheme"]),d=y(V(aa),1)[0],p=j(sa,{"is-dark":"dark"===l,"is-light":"light"===l},t),h=u(function(){return a?a(e):i&&J.jsxs(J.Fragment,{children:[i," ",J.jsx(ne,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]})},[a,e,i]),f=u(function(){return s?s(e):r&&J.jsxs(J.Fragment,{children:[r," ",J.jsx(ne,{alt:"stav",name:"chevron-down","data-summary-icon":!0})]})},[s,e,r]);return J.jsxs("details",b(b({className:p,"data-expander":!0,ref:d},c),{},{children:[J.jsxs("summary",{"aria-expanded":"false","aria-label":i,"data-summary":i,"data-summary-opened":r,children:[J.jsx("div",{className:"".concat(sa,"__summary"),children:h}),f&&J.jsx("div",{className:"".concat(sa,"__summary--opened"),children:f})]}),J.jsx("div",{children:n})]}))};oa.displayName="Expander";var la={itemSelector:"[data-feature-accordion-item]",bodiesSelector:".accordion__body",buttonSelector:"[data-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},ca=function(){return m(function e(t,n){var i=this;return h(this,e),this.items=[],this.bodies=[],this.buttons=[],this.images=[],this.activeId=null,this.onClick=function(e){var t=e.currentTarget.closest(i.config.itemSelector),n=(null==t?void 0:t.getAttribute("id"))||null;i.setActive(n)},this.element=t,this.config=Object.assign(Object.assign({},la),n),this.element.ODS_FeatureAccordion=this,this.init(),this},[{key:"init",value:function(){var e=this;this.items=Array.from(this.element.querySelectorAll(this.config.itemSelector)),this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll(this.config.imageSelector));var t=this.items[0]||null,n=(null==t?void 0:t.getAttribute("id"))||null;this.setActive(n),this.buttons.forEach(function(t){t.addEventListener("click",e.onClick)})}},{key:"setActive",value:function(e){if(e){this.activeId=e;var t=this.buttons.find(function(t){return t.getAttribute("id")===e}),n=null==t?void 0:t.getAttribute("aria-controls");this.bodies.forEach(function(e){e.id===n?e.removeAttribute("hidden"):e.setAttribute("hidden","")}),this.buttons.forEach(function(t){var n=t.getAttribute("id")===e,i=t.closest(".feature-accordion__item");null==i||i.classList.toggle("is-active",n),P({element:t,attribute:"aria-expanded",value:n?"true":"false"})}),this.images.forEach(function(t){var n=t.getAttribute("data-feature-accordion-image-for");t.classList.toggle("hide",n!==e)})}}},{key:"destroy",value:function(){var e=this;this.buttons.forEach(function(t){t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}}])}(),da="feature-accordion",ua=function(t){var n=t.className,i=t.children,r=t.colorScheme,a=E(t,["className","children","colorScheme"]),s=y(V(ca),1)[0],o=j(da,{"is-dark":"dark"===r,"is-light":"light"===r,"is-white":"white"===r},n),l=u(function(){return e.Children.toArray(i)},[i]);return J.jsxs(Fe,b(b({className:o,"data-feature-accordion":!0,ref:s},a),{},{children:[J.jsx(Ve,{size:{xs:12,md:6},className:"".concat(da,"__accordion"),children:J.jsx(Q,{children:l.map(function(t){var n=t.props.id,i=t.props["data-image-url"]||t.props.imageUrl,r=t.props["data-image-alt"]||t.props.imageAlt;return i?e.cloneElement(t,{children:J.jsxs(J.Fragment,{children:[J.jsx("div",{className:"".concat(da,"__content"),children:t.props.children}),J.jsx("div",{className:j("".concat(da,"__preview"),"hide-md"),children:J.jsx(qe,{"data-feature-accordion-image":!0,"data-feature-accordion-image-for":n,src:i,alt:r,className:"".concat(da,"__image--mobile")},n)})]})}):null})})}),J.jsx(Ve,{size:{xs:12,md:6},className:j("".concat(da,"__preview"),"hide","show-md"),children:l.map(function(e){var t=e.props.id,n=e.props["data-image-url"]||e.props.imageUrl,i=e.props["data-image-alt"]||e.props.imageAlt;return n?J.jsx(qe,{"data-feature-accordion-image":!0,"data-feature-accordion-image-for":t,src:n,alt:i,className:"hide"},t):null})})]}))},pa=function(e){var t=e.imageUrl,n=e.imageAlt,i=e.className,r=e.defaultOpen,a=E(e,["imageUrl","imageAlt","className","defaultOpen"]);return J.jsx(ae,b({className:j("feature-accordion__item",i),"data-feature-accordion-item":!0,"data-image-url":t,"data-image-alt":n,isActive:r},a))};pa.displayName="FeatureAccordionItem";var ha="section",fa=function(e){var t=e.className,n=e.color,i=void 0===n?"white":n,r=e.spacing,a=e.tag,s=void 0===a?"div":a,o=e.children,l=E(e,["className","color","spacing","tag","children"]),c=j(ha,v(v({},"".concat(ha,"--").concat(r),r),"bg-".concat(i),"white"!==i),t);return J.jsx(s,b(b({className:c},l),{},{children:J.jsx(Ge,{children:o})}))};fa.displayName="Section";var ma=function(t){var n=t.className,i=t.children,r=t.colorScheme,a=t.isUnderline,s=t.isNormal,o=t.tag,l=void 0===o?"a":o,c=t.href,d=E(t,["className","children","colorScheme","isUnderline","isNormal","tag","href"]),u=j("link",{"is-dark":"dark"===r,"is-light":"light"===r,underline:a,normal:s},n);return"a"!==l||c||console.warn("Anchor element requires a valid address. Provide a valid, navigable address as the href value. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href"),e.createElement(l,Object.assign({href:c,className:u},d),i)};ma.displayName="Link";var va=(new Date).getFullYear(),ga={columns:[{title:"Eshop",links:[{label:"Telefóny",url:"/eshop/telefony"},{label:"Prenos císla",url:"/eshop/prenos-cisla"},{label:"Akciové ponuky v e-shope",url:"/eshop/akciove-ponuky"},{label:"Sledovanie objednávky",url:"/eshop/sledovanie-objednavky"},{label:"Ponuka Love",url:"/eshop/ponuka-love"},{label:"Pevny internet",url:"/eshop/pevny-internet"},{label:"Orange TV",url:"/eshop/orange-tv"},{label:"Predajná brozúra",url:"/eshop/predajna-brozura"}]},{title:"Služby",links:[{label:"Porovnanie paušálov",url:"/sluzby/porovnanie-pausalov"},{label:"Mobilný internet",url:"/sluzby/mobilny-internet"},{label:"Pevný internet",url:"/sluzby/pevny-internet"},{label:"Televízia",url:"/sluzby/televizia"},{label:"Prima Voľba",url:"/sluzby/prima-volba"},{label:"Roaming",url:"/sluzby/roaming"},{label:"Ostatné doplnkové služby",url:"/sluzby/doplnkove-sluzby"},{label:"Môj Orange",url:"/sluzby/moj-orange"}]},{title:"Pomoc a podpora",links:[{label:"Cenník",url:"/podpora/cennik"},{label:"Expertlinka",url:"/podpora/expertlinka"},{label:"Dobitie kreditu",url:"/podpora/dobitie-kreditu"},{label:"Reklamácie a riešenie sporov",url:"/podpora/reklamacie"},{label:"Elektronický záručný list",url:"/podpora/zarucny-list"},{label:"Nariadenie GDPR",url:"/podpora/gdpr"},{label:"Telemarketing",url:"/podpora/telemarketing"},{label:"Mapa pokrytia",url:"/podpora/mapa-pokrytia"}]},{title:"O nás",links:[{label:"Kariéra",url:"/sluzby/kariera"},{label:"Tlačové správy",url:"/sluzby/tlacove-spravy"},{label:"Predajne",url:"/sluzby/predajne"},{label:"Spoločenská zodpovednosť",url:"/sluzby/zodpovednost"},{label:"Bez nástrah online",url:"/sluzby/bez-nastrah-online"},{label:"Nadácia Orange",url:"/sluzby/nadacia-orange"},{label:"Orange pre developerov",url:"/sluzby/pre-developerov"},{label:"Informácie pre stavebníkov",url:"/sluzby/pre-stavebnikov"}]}],bottomLinks:[{label:"Kontakt",url:"/kontakt"},{label:"Nastavenia cookies",url:"/nastavenia-cookies"},{label:"Správa osobných údajov",url:"/sprava-osobnych-udajov"},{label:"Všeobecné podmienky",url:"/vseobecne-podmienky"},{label:"Informácie pre koncových užívateľov",url:"/informacie-pre-uzivatelov"}],copyright:"© 1997 - ".concat(va," Orange")},ba="footer",ya=function(e){var t,n=e.className,i=e.isInverse,r=e.data,a=void 0===r?ga:r,s=E(e,["className","isInverse","data"]),o=j(ba,v({},"".concat(ba,"--inverse"),i),n);return J.jsxs(fa,b(b({tag:"footer",className:o},s),{},{children:[J.jsx(qe,{src:"/logo.svg",alt:"logo",className:"mb-xlarge"}),J.jsx(Fe,{rowGapSize:"medium",children:a.columns.map(function(e,t){return J.jsxs(Ve,{size:{lg:3,md:4,sm:6,xs:12},children:[J.jsx("h5",{className:"mb-large",children:e.title}),J.jsx("ul",{className:"list-unstyled",children:e.links.map(function(e,n){return J.jsx("li",{className:"mb-small",children:J.jsx(ma,{className:"".concat(ba,"__link"),href:e.url,children:e.label})},"footer-link-".concat(t,"-").concat(n))})})]},"footer-column-".concat(t))})}),J.jsx("hr",{}),J.jsx("p",{className:"small",children:"Sledujte nás"}),J.jsx("hr",{}),J.jsxs(Fe,{className:"align-items-end",rowGapSize:"xlarge",children:[J.jsx(Ve,{size:{xs:12,md:9},children:J.jsx(ge,{className:"mb-none",space:"small",children:null===(t=a.bottomLinks)||void 0===t?void 0:t.map(function(e,t){return J.jsx(ye,{children:J.jsx(ma,{href:e.url,isNormal:!0,children:e.label})},"footer-bottom-link-".concat(t))})})}),J.jsx(Ve,{size:{xs:12,md:3},children:a.copyright})]})]}))};ya.displayName="Footer";var _a="card",xa=e.forwardRef(function(e,t){var n=e.className,i=e.color,r=void 0===i?"white":i,a=e.hasBorder,s=e.hasShadow,o=E(e,["className","color","hasBorder","hasShadow"]),l=j(_a,v(v(v({},"bg-".concat(r),"white"!==r),"".concat(_a,"--bordered"),a),"".concat(_a,"--shadow"),s),n);return J.jsx("div",b({className:l,ref:t},o))});xa.displayName="Card";var wa="card__section",Sa=e.forwardRef(function(e,t){var n=e.className,i=e.color,r=e.isFilling,a=e.space,s=E(e,["className","color","isFilling","space"]),o=j(wa,v(v(v({},"bg-".concat(i),i),"".concat(wa,"--fill"),r),"".concat(wa,"--space-small"),"small"===a),n);return J.jsx("div",b({className:o,ref:t},s))});Sa.displayName="CardSection";var Ea="card__product",ka=e.forwardRef(function(e,t){var n=e.className,i=e.children,r=e.image,a=e.space,s=E(e,["className","children","image","space"]),o=j("".concat(Ea,"-header"),v({},"".concat(Ea,"-header--space-small"),"small"===a),n),l="".concat(Ea,"-content");return J.jsxs("div",b(b({className:o,ref:t},s),{},{children:[J.jsx("div",{className:l,children:i}),r]}))});ka.displayName="CardProductHeader";var Na=function(e,t){var n=e;return"".concat(e/2*(t/100),", ").concat(n)},Ta=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.min(Math.max(e,t),n)},Ca="gauge",Oa=e.forwardRef(function(e,t){var n=e.children,i=e.className,r=e.percentage,a=void 0===r?0:r,s=E(e,["children","className","percentage"]),o=function(e){return Math.PI*(e+.22*e)*2}(100),l={r:100,cx:110,cy:110,strokeWidth:15,fill:"none",transform:"rotate(160, 110, 110)"};return J.jsxs("figure",b(b({ref:t,className:j("".concat(Ca),i)},s),{},{children:[J.jsxs("svg",{width:"220",height:"150",viewBox:"0 0 220 150",className:"".concat(Ca,"__dial"),children:[J.jsx("circle",b({className:"".concat(Ca,"__display"),strokeDasharray:Na(o,100)},l)),J.jsx("circle",b({className:"".concat(Ca,"__indicator"),strokeDasharray:Na(o,Ta(a))},l))]}),J.jsx("figcaption",{className:"".concat(Ca,"__text"),children:n})]}))});Oa.displayName="Gauge";var ja={cycleDuration:4e3,delay:5e3},Aa=function(){return m(function e(t,n){h(this,e),this.element=t,this.config=Object.assign(Object.assign({},ja),n),this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()},[{key:"initBody",value:function(){var e,t=this.element.getAttribute("data-loader-messages");this.messages=t?JSON.parse(t):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,null!==(e=this.config.cycleDuration)&&void 0!==e?e:ja.cycleDuration))}},{key:"init",value:function(){var e,t=this;this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(function(){t.element.parentNode&&t.element.parentNode instanceof HTMLElement&&t.element.parentNode.classList.remove("hide"),t.initBody()},null!==(e=this.config.delay)&&void 0!==e?e:ja.delay):this.initBody()}},{key:"destroy",value:function(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}},{key:"cycleMessages",value:function(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}])}(),Da="loader",La=function(e){var t=e.messages,n=e.size,i=void 0===n?"default":n,r=e.className,a=e.colour,s=void 0===a?"default":a,o=e.isDelayed,l=e.children,c=E(e,["messages","size","className","colour","isDelayed","children"]),d=y(V(Aa,{messages:t,isDelayed:o}),1)[0],u=j(Da,v(v(v({},"".concat(Da,"--").concat(i),"default"!==i),"".concat(Da,"--").concat(s),"default"!==s),"hide",o),r);return J.jsxs("div",b(b({className:u},c),{},{children:[J.jsx("div",{className:j("".concat(Da,"__body"),v({},"".concat(Da,"__body--inverse"),"default"!==s)),children:J.jsx("div",{className:j("".concat(Da,"__line"),v({},"".concat(Da,"__line--inverse"),"default"!==s))})}),t&&J.jsx("div",{"data-loader":!0,"data-loader-delayed":o,"data-loader-messages":JSON.stringify(t),className:"".concat(Da,"__messages"),ref:d,children:l})]}))};La.displayName="Loader";const Ma=":not([inert]):not([inert] *)",Pa=':not([tabindex^="-"])',Ia=":not(:disabled)";var za=[`a[href]${Ma}${Pa}`,`area[href]${Ma}${Pa}`,`input:not([type="hidden"]):not([type="radio"])${Ma}${Pa}${Ia}`,`input[type="radio"]${Ma}${Pa}${Ia}`,`select${Ma}${Pa}${Ia}`,`textarea${Ma}${Pa}${Ia}`,`button${Ma}${Pa}${Ia}`,`details${Ma} > summary:first-of-type${Pa}`,`iframe${Ma}${Pa}`,`audio[controls]${Ma}${Pa}`,`video[controls]${Ma}${Pa}`,`[contenteditable]${Ma}${Pa}`,`[tabindex]${Ma}${Pa}`];function Ra(e){(e.querySelector("[autofocus]")||e).focus()}function Fa(e,t){if(t&&Ha(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let n=Ba(e.shadowRoot,t);for(;n;){const e=Fa(n,t);if(e)return e;n=Va(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Fa(e,t);if(n)return n}}else{let n=Ba(e,t);for(;n;){const e=Fa(n,t);if(e)return e;n=Va(n,t)}}return!t&&Ha(e)?e:null}function Ba(e,t){return t?e.firstElementChild:e.lastElementChild}function Va(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Ha=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(za.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function Ua(e=document){const t=e.activeElement;return t?t.shadowRoot?Ua(t.shadowRoot)||document.activeElement:t:null}function $a(e,t){const[n,i]=function(e){const t=Fa(e,!0);return[t,t?Fa(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const r=Ua();t.shiftKey&&r===n?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(n.focus(),t.preventDefault())}function qa(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=Ga(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function Ga(e){return e.assignedSlot||(e.parentNode?Ga(e.parentNode):null)}const Wa="data-a11y-dialog";class Ya{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(Wa)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){if(this.shown)return this;return this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Ua(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Ra(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){if(!this.shown)return this;return this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=qa(`[${Wa}-show="${this.id}"]`,t),i=qa(`[${Wa}-hide="${this.id}"]`,t),r=qa(`[${Wa}-hide]`,t)&&qa('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||r)&&this.hide(e)}bindKeypress(e){if(qa('[aria-modal="true"]',Ua())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&$a(this.$el,e)}maintainFocus(){const e=Ua();qa(`[aria-modal="true"], [${Wa}-ignore-focus-trap]`,e)||Ra(this.$el)}}function Ka(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Ya(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",Ka):Ka());
2634
16
  /*!
2635
17
  * tabbable 6.2.0
2636
18
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2637
- */
2638
- // NOTE: separate `:not()` selectors has broader browser support than the newer
2639
- // `:not([inert], [inert] *)` (Feb 2023)
2640
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
2641
- // the entire query to fail, resulting in no nodes found, which will break a lot
2642
- // of things... so we have to rely on JS to identify nodes inside an inert container
2643
- var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
2644
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
2645
- var NoElement = typeof Element === 'undefined';
2646
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
2647
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
2648
- var _element$getRootNode;
2649
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
2650
- } : function (element) {
2651
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
2652
- };
2653
-
2654
- /**
2655
- * Determines if a node is inert or in an inert ancestor.
2656
- * @param {Element} [node]
2657
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
2658
- * see if any of them are inert. If false, only `node` itself is considered.
2659
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
2660
- * False if `node` is falsy.
2661
- */
2662
- var isInert = function isInert(node, lookUp) {
2663
- var _node$getAttribute;
2664
- if (lookUp === void 0) {
2665
- lookUp = true;
2666
- }
2667
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
2668
- // JS API property; we have to check the attribute, which can either be empty or 'true';
2669
- // if it's `null` (not specified) or 'false', it's an active element
2670
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
2671
- var inert = inertAtt === '' || inertAtt === 'true';
2672
-
2673
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
2674
- // if it weren't for `matches()` not being a function on shadow roots; the following
2675
- // code works for any kind of node
2676
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
2677
- // so it likely would not support `:is([inert] *)` either...
2678
- var result = inert || lookUp && node && isInert(node.parentNode); // recursive
2679
-
2680
- return result;
2681
- };
2682
-
2683
- /**
2684
- * Determines if a node's content is editable.
2685
- * @param {Element} [node]
2686
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
2687
- */
2688
- var isContentEditable = function isContentEditable(node) {
2689
- var _node$getAttribute2;
2690
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
2691
- // to use the attribute directly to check for this, which can either be empty or 'true';
2692
- // if it's `null` (not specified) or 'false', it's a non-editable element
2693
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
2694
- return attValue === '' || attValue === 'true';
2695
- };
2696
-
2697
- /**
2698
- * @private
2699
- * Determines if the node has an explicitly specified `tabindex` attribute.
2700
- * @param {HTMLElement} node
2701
- * @returns {boolean} True if so; false if not.
2702
- */
2703
- var hasTabIndex = function hasTabIndex(node) {
2704
- return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
2705
- };
2706
-
2707
- /**
2708
- * Determine the tab index of a given node.
2709
- * @param {HTMLElement} node
2710
- * @returns {number} Tab order (negative, 0, or positive number).
2711
- * @throws {Error} If `node` is falsy.
2712
- */
2713
- var getTabIndex = function getTabIndex(node) {
2714
- if (!node) {
2715
- throw new Error('No node provided');
2716
- }
2717
- if (node.tabIndex < 0) {
2718
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
2719
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
2720
- // yet they are still part of the regular tab order; in FF, they get a default
2721
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
2722
- // order, consider their tab index to be 0.
2723
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
2724
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
2725
- if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
2726
- return 0;
2727
- }
2728
- }
2729
- return node.tabIndex;
2730
- };
2731
- var isInput = function isInput(node) {
2732
- return node.tagName === 'INPUT';
2733
- };
2734
- var isHiddenInput = function isHiddenInput(node) {
2735
- return isInput(node) && node.type === 'hidden';
2736
- };
2737
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
2738
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
2739
- return child.tagName === 'SUMMARY';
2740
- });
2741
- return r;
2742
- };
2743
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
2744
- for (var i = 0; i < nodes.length; i++) {
2745
- if (nodes[i].checked && nodes[i].form === form) {
2746
- return nodes[i];
2747
- }
2748
- }
2749
- };
2750
- var isTabbableRadio = function isTabbableRadio(node) {
2751
- if (!node.name) {
2752
- return true;
2753
- }
2754
- var radioScope = node.form || getRootNode(node);
2755
- var queryRadios = function queryRadios(name) {
2756
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
2757
- };
2758
- var radioSet;
2759
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
2760
- radioSet = queryRadios(window.CSS.escape(node.name));
2761
- } else {
2762
- try {
2763
- radioSet = queryRadios(node.name);
2764
- } catch (err) {
2765
- // eslint-disable-next-line no-console
2766
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
2767
- return false;
2768
- }
2769
- }
2770
- var checked = getCheckedRadio(radioSet, node.form);
2771
- return !checked || checked === node;
2772
- };
2773
- var isRadio = function isRadio(node) {
2774
- return isInput(node) && node.type === 'radio';
2775
- };
2776
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
2777
- return isRadio(node) && !isTabbableRadio(node);
2778
- };
2779
-
2780
- // determines if a node is ultimately attached to the window's document
2781
- var isNodeAttached = function isNodeAttached(node) {
2782
- var _nodeRoot;
2783
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
2784
- // (but NOT _the_ document; see second 'If' comment below for more).
2785
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
2786
- // is attached, and the one we need to check if it's in the document or not (because the
2787
- // shadow, and all nodes it contains, is never considered in the document since shadows
2788
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
2789
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
2790
- // visibility, including all the nodes it contains). The host could be any normal node,
2791
- // or a custom element (i.e. web component). Either way, that's the one that is considered
2792
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
2793
- // tested).
2794
- // To further complicate things, we have to look all the way up until we find a shadow HOST
2795
- // that is attached (or find none) because the node might be in nested shadows...
2796
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
2797
- // document (per the docs) and while it's a Document-type object, that document does not
2798
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
2799
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
2800
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
2801
- // node is actually detached.
2802
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
2803
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
2804
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
2805
- // `ownerDocument` will be `null`, hence the optional chaining on it.
2806
- var nodeRoot = node && getRootNode(node);
2807
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
2808
-
2809
- // in some cases, a detached node will return itself as the root instead of a document or
2810
- // shadow root object, in which case, we shouldn't try to look further up the host chain
2811
- var attached = false;
2812
- if (nodeRoot && nodeRoot !== node) {
2813
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
2814
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
2815
- while (!attached && nodeRootHost) {
2816
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
2817
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
2818
- // which means we need to get the host's host and check if that parent host is contained
2819
- // in (i.e. attached to) the document
2820
- nodeRoot = getRootNode(nodeRootHost);
2821
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
2822
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
2823
- }
2824
- }
2825
- return attached;
2826
- };
2827
- var isZeroArea = function isZeroArea(node) {
2828
- var _node$getBoundingClie = node.getBoundingClientRect(),
2829
- width = _node$getBoundingClie.width,
2830
- height = _node$getBoundingClie.height;
2831
- return width === 0 && height === 0;
2832
- };
2833
- var isHidden = function isHidden(node, _ref) {
2834
- var displayCheck = _ref.displayCheck,
2835
- getShadowRoot = _ref.getShadowRoot;
2836
- // NOTE: visibility will be `undefined` if node is detached from the document
2837
- // (see notes about this further down), which means we will consider it visible
2838
- // (this is legacy behavior from a very long way back)
2839
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
2840
- // _visibility_ check, not a _display_ check
2841
- if (getComputedStyle(node).visibility === 'hidden') {
2842
- return true;
2843
- }
2844
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
2845
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
2846
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
2847
- return true;
2848
- }
2849
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
2850
- if (typeof getShadowRoot === 'function') {
2851
- // figure out if we should consider the node to be in an undisclosed shadow and use the
2852
- // 'non-zero-area' fallback
2853
- var originalNode = node;
2854
- while (node) {
2855
- var parentElement = node.parentElement;
2856
- var rootNode = getRootNode(node);
2857
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
2858
- ) {
2859
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
2860
- // fall back to a non-zero-area test
2861
- return isZeroArea(node);
2862
- } else if (node.assignedSlot) {
2863
- // iterate up slot
2864
- node = node.assignedSlot;
2865
- } else if (!parentElement && rootNode !== node.ownerDocument) {
2866
- // cross shadow boundary
2867
- node = rootNode.host;
2868
- } else {
2869
- // iterate up normal dom
2870
- node = parentElement;
2871
- }
2872
- }
2873
- node = originalNode;
2874
- }
2875
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
2876
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
2877
- // it might be a falsy value, which means shadow DOM support is disabled
2878
-
2879
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
2880
- // now we can just test to see if it would normally be visible or not, provided it's
2881
- // attached to the main document.
2882
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
2883
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
2884
-
2885
- if (isNodeAttached(node)) {
2886
- // this works wherever the node is: if there's at least one client rect, it's
2887
- // somehow displayed; it also covers the CSS 'display: contents' case where the
2888
- // node itself is hidden in place of its contents; and there's no need to search
2889
- // up the hierarchy either
2890
- return !node.getClientRects().length;
2891
- }
2892
-
2893
- // Else, the node isn't attached to the document, which means the `getClientRects()`
2894
- // API will __always__ return zero rects (this can happen, for example, if React
2895
- // is used to render nodes onto a detached tree, as confirmed in this thread:
2896
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
2897
- //
2898
- // It also means that even window.getComputedStyle(node).display will return `undefined`
2899
- // because styles are only computed for nodes that are in the document.
2900
- //
2901
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
2902
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
2903
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
2904
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
2905
- // considering __everything__ to be visible because of the innability to determine styles.
2906
- //
2907
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
2908
- // nodes as visible with the 'none' fallback.__
2909
- if (displayCheck !== 'legacy-full') {
2910
- return true; // hidden
2911
- }
2912
- // else, fallback to 'none' mode and consider the node visible
2913
- } else if (displayCheck === 'non-zero-area') {
2914
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
2915
- // whether it's displayed, and that a detached node will __always__ have a zero-area
2916
- // client rect, we don't special-case for whether the node is attached or not. In
2917
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
2918
- // times, and that includes attached or not.
2919
- return isZeroArea(node);
2920
- }
2921
-
2922
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
2923
- // it's visible
2924
- return false;
2925
- };
2926
-
2927
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
2928
- // unless they are in the _first_ <legend> element of the top-most disabled
2929
- // fieldset
2930
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
2931
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
2932
- var parentNode = node.parentElement;
2933
- // check if `node` is contained in a disabled <fieldset>
2934
- while (parentNode) {
2935
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
2936
- // look for the first <legend> among the children of the disabled <fieldset>
2937
- for (var i = 0; i < parentNode.children.length; i++) {
2938
- var child = parentNode.children.item(i);
2939
- // when the first <legend> (in document order) is found
2940
- if (child.tagName === 'LEGEND') {
2941
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
2942
- // return whether `node` is a descendant of its first <legend>
2943
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
2944
- }
2945
- }
2946
- // the disabled <fieldset> containing `node` has no <legend>
2947
- return true;
2948
- }
2949
- parentNode = parentNode.parentElement;
2950
- }
2951
- }
2952
-
2953
- // else, node's tabbable/focusable state should not be affected by a fieldset's
2954
- // enabled/disabled state
2955
- return false;
2956
- };
2957
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
2958
- if (node.disabled ||
2959
- // we must do an inert look up to filter out any elements inside an inert ancestor
2960
- // because we're limited in the type of selectors we can use in JSDom (see related
2961
- // note related to `candidateSelectors`)
2962
- isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
2963
- // For a details element with a summary, the summary element gets the focus
2964
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
2965
- return false;
2966
- }
2967
- return true;
2968
- };
2969
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
2970
- if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
2971
- return false;
2972
- }
2973
- return true;
2974
- };
2975
- var isTabbable = function isTabbable(node, options) {
2976
- options = options || {};
2977
- if (!node) {
2978
- throw new Error('No node provided');
2979
- }
2980
- if (matches.call(node, candidateSelector) === false) {
2981
- return false;
2982
- }
2983
- return isNodeMatchingSelectorTabbable(options, node);
2984
- };
2985
-
2986
- var defaultConfig$1 = function defaultConfig() {
2987
- return {
2988
- /** Class which indicates that modal is open */
2989
- classModalIsOpen: "is-active",
2990
- /** Class on body which indicates that modal is open */
2991
- classModalIsOpenBody: "has-modal",
2992
- /** Root of page content which should be hidden when modal is open */
2993
- root: "#root",
2994
- /** Move modal into this element selector (must be unique in DOM) */
2995
- modalsRoot: "#root-modals"
2996
- };
2997
- };
2998
- var Modal$1 = /*#__PURE__*/function () {
2999
- function Modal(element, config) {
3000
- _classCallCheck(this, Modal);
3001
- this.element = element;
3002
- this.config = Object.assign(Object.assign({}, defaultConfig$1()), config);
3003
- this.handleShow = this.handleShow.bind(this);
3004
- this.handleHide = this.handleHide.bind(this);
3005
- this.show = this.show.bind(this);
3006
- this.hide = this.hide.bind(this);
3007
- this.headerFirstItemSpacing = this.headerFirstItemSpacing.bind(this);
3008
- Modal.moveToModalRoot = Modal.moveToModalRoot.bind(this);
3009
- Modal.lockBody = Modal.lockBody.bind(this);
3010
- Modal.unlockBody = Modal.unlockBody.bind(this);
3011
- this.element.ODS_Modal = this;
3012
- this.init();
3013
- return this;
3014
- }
3015
- return _createClass(Modal, [{
3016
- key: "handleShow",
3017
- value: function handleShow(el) {
3018
- Modal.lockBody();
3019
- if (el) el.classList.add(this.config.classModalIsOpen);
3020
- // Long modals can have first focusabble element under the fold, so static content above the fold should be focused instead to prevent undesirable scrolling
3021
- var initialFocusEl = el.querySelector("[data-a11y-dialog-initial-focus]");
3022
- if (!initialFocusEl) {
3023
- return;
3024
- }
3025
- // set tabindex to -1 so element can't be focused via keyboard
3026
- if (!isTabbable(initialFocusEl)) {
3027
- initialFocusEl.setAttribute("tabindex", "-1");
3028
- }
3029
- initialFocusEl.focus();
3030
- }
3031
- }, {
3032
- key: "handleHide",
3033
- value: function handleHide(el) {
3034
- Modal.unlockBody();
3035
- if (el) el.classList.remove(this.config.classModalIsOpen);
3036
- }
3037
- }, {
3038
- key: "show",
3039
- value: function show() {
3040
- this.instance.show();
3041
- }
3042
- }, {
3043
- key: "hide",
3044
- value: function hide() {
3045
- this.instance.hide();
3046
- }
3047
- }, {
3048
- key: "headerFirstItemSpacing",
3049
- value: function headerFirstItemSpacing() {
3050
- /**
3051
- * Target the first element which is not .btn inside .modal__header and add margin-right 40px.
3052
- * css has its limitations and it is not possible with pseudo selectors
3053
- */
3054
- var modalHeader = this.element.querySelector(".modal__header");
3055
- if (modalHeader) {
3056
- var firstNonBtnElement = Array.from(modalHeader.children).find(function (child) {
3057
- return !child.classList.contains("btn");
3058
- });
3059
- if (firstNonBtnElement) {
3060
- firstNonBtnElement.style.marginRight = "40px";
3061
- }
3062
- }
3063
- }
3064
- }, {
3065
- key: "init",
3066
- value: function init() {
3067
- var _this = this;
3068
- if (this.config.modalsRoot) {
3069
- Modal.moveToModalRoot(this.element, document.querySelector(this.config.modalsRoot));
3070
- }
3071
- this.instance = new A11yDialog(this.element);
3072
- this.instance.on("show", function (event) {
3073
- var dialogEl = event.currentTarget;
3074
- _this.handleShow(dialogEl);
3075
- });
3076
- this.instance.on("hide", function (event) {
3077
- var dialogEl = event.currentTarget;
3078
- _this.handleHide(dialogEl);
3079
- });
3080
- this.headerFirstItemSpacing();
3081
- }
3082
- }, {
3083
- key: "destroy",
3084
- value: function destroy() {
3085
- this.instance.destroy();
3086
- this.element.ODS_Modal = this;
3087
- }
3088
- }, {
3089
- key: "update",
3090
- value: function update() {
3091
- this.destroy();
3092
- this.init();
3093
- }
3094
- }], [{
3095
- key: "getInstance",
3096
- value: function getInstance(el) {
3097
- if (!el) return null;
3098
- var modalEl = el;
3099
- return modalEl.ODS_Modal || null;
3100
- }
3101
- }, {
3102
- key: "moveToModalRoot",
3103
- value: function moveToModalRoot(el, container) {
3104
- var _a;
3105
- if (container) {
3106
- container.appendChild(el);
3107
- } else {
3108
- console.warn("`modalsRoot: ".concat((_a = this.config) === null || _a === void 0 ? void 0 : _a.modalsRoot, "` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"));
3109
- }
3110
- }
3111
- }, {
3112
- key: "lockBody",
3113
- value: function lockBody(className, root) {
3114
- var _a, _b;
3115
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
3116
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
3117
- var container = document.querySelector(actualRoot);
3118
- // store current scrollTop value
3119
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
3120
- document.body.setAttribute("data-lock-scrolltop", scrollTop.toString());
3121
- // add locking styles to body
3122
- document.body.style.height = "100%";
3123
- document.body.style.width = "100%";
3124
- document.body.style.overflow = "hidden";
3125
- document.body.style.position = "fixed";
3126
- // add locking styles to scrollTop
3127
- if (container) {
3128
- container.style.height = "100%";
3129
- container.style.width = "100%";
3130
- container.style.overflow = "hidden";
3131
- container.style.position = "fixed";
3132
- // scroll page-container to scrollTop position
3133
- container.scrollTop = scrollTop;
3134
- }
3135
- // add modal class
3136
- document.body.classList.add(actualClassName);
3137
- // attempt to scroll top fixed position
3138
- window.requestAnimationFrame(function () {
3139
- window.scrollTo(0, scrollTop);
3140
- });
3141
- }
3142
- }, {
3143
- key: "unlockBody",
3144
- value: function unlockBody(className, root) {
3145
- var _a, _b;
3146
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
3147
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
3148
- var container = document.querySelector(actualRoot);
3149
- var scrollTop = document.body.getAttribute("data-lock-scrolltop") || "0";
3150
- // remove locking styles from body
3151
- document.body.style.height = "";
3152
- document.body.style.width = "";
3153
- document.body.style.overflow = "";
3154
- document.body.style.position = "";
3155
- // add modal class
3156
- document.body.classList.remove(actualClassName);
3157
- // remove locking styles from page-container
3158
- if (container) {
3159
- container.style.height = "";
3160
- container.style.width = "";
3161
- container.style.overflow = "";
3162
- container.style.position = "";
3163
- }
3164
- // set scroll position back
3165
- window.requestAnimationFrame(function () {
3166
- window.scrollTo({
3167
- left: 0,
3168
- top: parseInt(scrollTop, 10),
3169
- behavior: "instant"
3170
- });
3171
- });
3172
- }
3173
- }]);
3174
- }();
3175
-
3176
- var ModalCloseButton = function ModalCloseButton(props) {
3177
- return /*#__PURE__*/jsxRuntimeExports.jsx(IconButton, _objectSpread2({
3178
- iconName: "delete",
3179
- type: "ghost",
3180
- isSquare: true,
3181
- size: "small",
3182
- className: "modal__close",
3183
- "data-a11y-dialog-hide": true,
3184
- "aria-label": "Zatvori\u0165"
3185
- }, props));
3186
- };
3187
- ModalCloseButton.displayName = "ModalCloseButton";
3188
-
3189
- var ModalTitle = function ModalTitle(_a) {
3190
- var size = _a.size,
3191
- className = _a.className,
3192
- children = _a.children,
3193
- other = __rest(_a, ["size", "className", "children"]);
3194
- return /*#__PURE__*/jsxRuntimeExports.jsx("h2", _objectSpread2(_objectSpread2({
3195
- className: cx(className, {
3196
- "display-3": size === "large",
3197
- h2: size === "small"
3198
- })
3199
- }, other), {}, {
3200
- children: children
3201
- }));
3202
- };
3203
- ModalTitle.displayName = "ModalTitle";
3204
-
3205
- var CLASS_ROOT$3 = "modal__body";
3206
- var ModalBody = function ModalBody(_a) {
3207
- var color = _a.color,
3208
- className = _a.className,
3209
- children = _a.children,
3210
- other = __rest(_a, ["color", "className", "children"]);
3211
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
3212
- className: cx(CLASS_ROOT$3, className, _defineProperty(_defineProperty({}, "bg-".concat(color), color), "".concat(CLASS_ROOT$3, "--colorful"), color))
3213
- }, other), {}, {
3214
- children: children
3215
- }));
3216
- };
3217
- ModalBody.displayName = "ModalBody";
3218
-
3219
- var CLASS_ROOT$2 = "modal";
3220
- var defaultProps = {
3221
- actions: [/*#__PURE__*/jsxRuntimeExports.jsx(Button, {
3222
- "data-a11y-dialog-hide": true,
3223
- children: "Zatvori\u0165"
3224
- }, "1")],
3225
- noInit: false
3226
- };
3227
- var Modal = function Modal(_a) {
3228
- var _a$actions = _a.actions,
3229
- actions = _a$actions === void 0 ? defaultProps.actions : _a$actions,
3230
- className = _a.className,
3231
- children = _a.children,
3232
- hasStickyFooter = _a.hasStickyFooter,
3233
- id = _a.id,
3234
- _a$noInit = _a.noInit,
3235
- noInit = _a$noInit === void 0 ? defaultProps.noInit : _a$noInit,
3236
- isActive = _a.isActive,
3237
- size = _a.size,
3238
- title = _a.title,
3239
- renderBody = _a.renderBody,
3240
- renderTitle = _a.renderTitle,
3241
- renderFooter = _a.renderFooter,
3242
- fullHeight = _a.fullHeight,
3243
- other = __rest(_a, ["actions", "className", "children", "hasStickyFooter", "id", "noInit", "isActive", "size", "title", "renderBody", "renderTitle", "renderFooter", "fullHeight"]);
3244
- var _useStatic = useStatic(Modal$1),
3245
- _useStatic2 = _slicedToArray(_useStatic, 2),
3246
- modalRef = _useStatic2[0],
3247
- instance = _useStatic2[1];
3248
- useEffect(function () {
3249
- if (isActive && instance && instance.current) {
3250
- instance.current.show();
3251
- }
3252
- }, [instance, isActive]);
3253
- var dialogClasses = cx("".concat(CLASS_ROOT$2, "__dialog"), _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$2, "__dialog--").concat(size), size), "".concat(CLASS_ROOT$2, "__dialog--full-height"), fullHeight), className);
3254
- var titleId = "".concat(id, "-title");
3255
- var dialogTitle = renderTitle ? renderTitle(id) : /*#__PURE__*/jsxRuntimeExports.jsx(ModalTitle, {
3256
- id: titleId,
3257
- size: size,
3258
- "data-a11y-dialog-initial-focus": true,
3259
- children: title
3260
- });
3261
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
3262
- id: id,
3263
- "data-modal": !noInit,
3264
- className: CLASS_ROOT$2,
3265
- ref: modalRef,
3266
- role: "dialog",
3267
- "aria-hidden": "true",
3268
- "aria-modal": "true",
3269
- "aria-labelledby": titleId,
3270
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
3271
- className: "modal__overlay",
3272
- tabIndex: -1,
3273
- "data-a11y-dialog-hide": true
3274
- }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", _objectSpread2(_objectSpread2({
3275
- className: dialogClasses,
3276
- role: "document"
3277
- }, other), {}, {
3278
- children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
3279
- className: "".concat(CLASS_ROOT$2, "__header"),
3280
- children: [/*#__PURE__*/jsxRuntimeExports.jsx(ModalCloseButton, {}), dialogTitle]
3281
- }), renderBody ? renderBody() : /*#__PURE__*/jsxRuntimeExports.jsx(ModalBody, {
3282
- children: children
3283
- }), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
3284
- className: cx("".concat(CLASS_ROOT$2, "__footer"), _defineProperty({}, "".concat(CLASS_ROOT$2, "__footer--sticky"), hasStickyFooter)),
3285
- children: renderFooter ? renderFooter() : /*#__PURE__*/jsxRuntimeExports.jsx(ConditionalWrapper, {
3286
- condition: actions.length > 1,
3287
- wrapper: /*#__PURE__*/jsxRuntimeExports.jsx(Buttons, {}),
3288
- children: actions.map(function (action) {
3289
- return action;
3290
- })
3291
- })
3292
- })]
3293
- }))]
3294
- });
3295
- };
3296
- Modal.displayName = "Modal";
3297
-
3298
- var CLASS_ROOT$1 = 'container';
3299
- var Container = function Container(_a) {
3300
- var className = _a.className,
3301
- other = __rest(_a, ["className"]);
3302
- var classes = cx(CLASS_ROOT$1, className);
3303
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2({
3304
- className: classes
3305
- }, other));
3306
- };
3307
- Container.displayName = 'Container';
3308
-
3309
- var CLASS_ROOT = "section";
3310
- var Section = function Section(_a) {
3311
- var className = _a.className,
3312
- _a$color = _a.color,
3313
- color = _a$color === void 0 ? "white" : _a$color,
3314
- spacing = _a.spacing,
3315
- _a$tag = _a.tag,
3316
- Tag = _a$tag === void 0 ? "div" : _a$tag,
3317
- children = _a.children,
3318
- other = __rest(_a, ["className", "color", "spacing", "tag", "children"]);
3319
- var classes = cx(CLASS_ROOT, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT, "--").concat(spacing), spacing), "bg-".concat(color), color !== "white"), className);
3320
- return /*#__PURE__*/jsxRuntimeExports.jsx(Tag, _objectSpread2(_objectSpread2({
3321
- className: classes
3322
- }, other), {}, {
3323
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Container, {
3324
- children: children
3325
- })
3326
- }));
3327
- };
3328
- Section.displayName = "Section";
3329
-
3330
- var CLASS_TABLIST_ITEM = "tab-list__item";
3331
- var CLASS_TABLIST_TAB = "tab-list__tab";
3332
- var Tab = function Tab(_a) {
3333
- var href = _a.href,
3334
- children = _a.children,
3335
- className = _a.className,
3336
- controls = _a.controls,
3337
- isDisabled = _a.isDisabled,
3338
- isActive = _a.isActive,
3339
- other = __rest(_a, ["href", "children", "className", "controls", "isDisabled", "isActive"]);
3340
- var tabClasses = cx(CLASS_TABLIST_TAB, className);
3341
- var tabindex = isActive ? 0 : -1;
3342
- var Tag = href ? "a" : "button";
3343
- return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
3344
- className: CLASS_TABLIST_ITEM,
3345
- role: "presentation",
3346
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Tag, _objectSpread2(_objectSpread2({
3347
- type: href ? undefined : "button",
3348
- role: href ? undefined : "tab",
3349
- href: href,
3350
- className: tabClasses,
3351
- "aria-selected": isActive,
3352
- "aria-controls": controls || undefined,
3353
- tabIndex: tabindex,
3354
- "aria-disabled": isDisabled
3355
- }, other), {}, {
3356
- children: children
3357
- }))
3358
- });
3359
- };
3360
- Tab.displayName = "Tab";
3361
-
3362
- // we use array to include old browser key names like IE11
3363
- // ie. navigation keys https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#navigation_keys
3364
- var keys = {
3365
- TAB: ['Tab'],
3366
- ARROWLEFT: ['Left', 'ArrowLeft'],
3367
- ARROWUP: ['Up', 'ArrowUp'],
3368
- ARROWRIGHT: ['Right', 'ArrowRight'],
3369
- ARROWDOWN: ['Down', 'ArrowDown']
3370
- };
3371
-
3372
- var RovingTabindex = /*#__PURE__*/function () {
3373
- function RovingTabindex(elems) {
3374
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
3375
- direction: 'horizontal'
3376
- };
3377
- _classCallCheck(this, RovingTabindex);
3378
- this.elems = elems;
3379
- this.config = config;
3380
- this.isActive = false;
3381
- this.onKeydown = this.onKeydown.bind(this);
3382
- }
3383
- return _createClass(RovingTabindex, [{
3384
- key: "init",
3385
- value: function init() {
3386
- document.addEventListener('keydown', this.onKeydown);
3387
- this.isActive = true;
3388
- }
3389
- }, {
3390
- key: "destroy",
3391
- value: function destroy() {
3392
- document.removeEventListener('keydown', this.onKeydown);
3393
- this.isActive = false;
3394
- }
3395
- }, {
3396
- key: "update",
3397
- value: function update(elems) {
3398
- this.elems = elems;
3399
- }
3400
- }, {
3401
- key: "onKeydown",
3402
- value: function onKeydown(e) {
3403
- var activeElemIndex = this.elems.indexOf(document.activeElement);
3404
- if ((keys.ARROWUP.includes(e.key) || keys.ARROWDOWN.includes(e.key)) && this.config.direction === 'horizontal') {
3405
- return;
3406
- }
3407
- if ((keys.ARROWLEFT.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) && this.config.direction === 'vertical') {
3408
- return;
3409
- }
3410
- if (keys.ARROWDOWN.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) {
3411
- e.preventDefault();
3412
- if (activeElemIndex >= 0 && activeElemIndex < this.elems.length - 1) {
3413
- this.elems[activeElemIndex + 1].focus();
3414
- } else {
3415
- this.elems[0].focus();
3416
- }
3417
- }
3418
- if (keys.ARROWUP.includes(e.key) || keys.ARROWLEFT.includes(e.key)) {
3419
- e.preventDefault();
3420
- if (activeElemIndex >= 1) {
3421
- this.elems[activeElemIndex - 1].focus();
3422
- } else {
3423
- this.elems[this.elems.length - 1].focus();
3424
- }
3425
- }
3426
- if (keys.TAB.includes(e.key)) {
3427
- this.destroy();
3428
- }
3429
- }
3430
- }]);
3431
- }();
3432
-
3433
- var defaultConfig = {
3434
- tabSelector: '[role="tab"]'
3435
- };
3436
- var Tabs$1 = /*#__PURE__*/function () {
3437
- function Tabs(element, config) {
3438
- _classCallCheck(this, Tabs);
3439
- this.isActive = function (el) {
3440
- return el ? !el.hasAttribute("hidden") : false;
3441
- };
3442
- this.isSelected = function (el) {
3443
- return el.getAttribute("aria-selected") === "true";
3444
- };
3445
- this.element = element;
3446
- this.config = Object.assign(Object.assign({}, defaultConfig), config);
3447
- this.tabs = [];
3448
- this.tabPanels = [];
3449
- this.activeTabIndex = null;
3450
- this.rovingTabindex = null;
3451
- this.handleClick = this.handleClick.bind(this);
3452
- this.handleTabFocus = this.handleTabFocus.bind(this);
3453
- this.element.ODS_Tabs = this;
3454
- this.init();
3455
- return this;
3456
- }
3457
- return _createClass(Tabs, [{
3458
- key: "init",
3459
- value: function init() {
3460
- var _this = this;
3461
- this.tabs = Array.from(this.element.querySelectorAll(this.config.tabSelector));
3462
- this.tabs.map(function (tab, index) {
3463
- var controlId = tab.getAttribute("aria-controls");
3464
- _this.tabPanels.push(controlId ? document.getElementById(controlId) : null);
3465
- tab.addEventListener("click", _this.handleClick);
3466
- tab.addEventListener("focus", _this.handleTabFocus);
3467
- if (_this.isSelected(tab)) {
3468
- _this.activeTabIndex = index;
3469
- }
3470
- return tab;
3471
- });
3472
- if (!this.rovingTabindex) {
3473
- this.rovingTabindex = new RovingTabindex(this.tabs, {
3474
- direction: "any"
3475
- });
3476
- } else {
3477
- this.rovingTabindex.update(this.tabs);
3478
- }
3479
- if (this.activeTabIndex !== null) {
3480
- this.toggleTabPanel(this.tabPanels[this.activeTabIndex], "on");
3481
- } else if (this.tabs.length > 0) {
3482
- this.activateNthTab(0);
3483
- }
3484
- }
3485
- }, {
3486
- key: "destroy",
3487
- value: function destroy() {
3488
- var _this2 = this;
3489
- this.tabs.map(function (tab) {
3490
- tab.removeEventListener("click", _this2.handleClick);
3491
- tab.removeEventListener("focus", _this2.handleTabFocus);
3492
- return tab;
3493
- });
3494
- this.tabs = [];
3495
- this.tabPanels = [];
3496
- if (this.rovingTabindex) {
3497
- this.rovingTabindex.destroy();
3498
- }
3499
- this.element.ODS_Tabs = null;
3500
- }
3501
- }, {
3502
- key: "update",
3503
- value: function update() {
3504
- this.destroy();
3505
- this.init();
3506
- }
3507
- }, {
3508
- key: "handleClick",
3509
- value: function handleClick(e) {
3510
- var _this3 = this;
3511
- var clickedTab = e.currentTarget;
3512
- if (clickedTab.hasAttribute("aria-disabled")) {
3513
- e.preventDefault();
3514
- return;
3515
- }
3516
- this.tabs.map(function (tab, i) {
3517
- if (tab === clickedTab) {
3518
- _this3.activeTabIndex = i;
3519
- return _this3.toggleTab(tab, "on");
3520
- }
3521
- return _this3.toggleTab(tab, "off");
3522
- });
3523
- this.tabPanels.map(function (tabPanel) {
3524
- if (tabPanel && tabPanel.getAttribute("id") === clickedTab.getAttribute("aria-controls")) {
3525
- return _this3.toggleTabPanel(tabPanel, "on");
3526
- }
3527
- return _this3.toggleTabPanel(tabPanel, "off");
3528
- });
3529
- }
3530
- }, {
3531
- key: "toggleTab",
3532
- value: function toggleTab(el, state) {
3533
- var isActive = this.isSelected(el);
3534
- if (state === "on" && !isActive) {
3535
- el.setAttribute("aria-selected", "true");
3536
- el.setAttribute("tabindex", "0");
3537
- }
3538
- if (state === "off" && isActive) {
3539
- el.setAttribute("aria-selected", "false");
3540
- el.setAttribute("tabindex", "-1");
3541
- }
3542
- }
3543
- }, {
3544
- key: "toggleTabPanel",
3545
- value: function toggleTabPanel(el, state) {
3546
- if (!el) return;
3547
- var isActive = this.isActive(el);
3548
- if (state === "on" && !isActive) {
3549
- el.removeAttribute("hidden");
3550
- }
3551
- if (state === "off" && isActive) {
3552
- el.setAttribute("hidden", "");
3553
- }
3554
- }
3555
- }, {
3556
- key: "activateNthTab",
3557
- value: function activateNthTab(index) {
3558
- var _this4 = this;
3559
- this.tabs.map(function (tab, i) {
3560
- if (i === index) {
3561
- _this4.activeTabIndex = i;
3562
- return _this4.toggleTab(tab, "on");
3563
- }
3564
- return _this4.toggleTab(tab, "off");
3565
- });
3566
- this.tabPanels.map(function (tabPanel, i) {
3567
- if (i === index) {
3568
- return _this4.toggleTabPanel(tabPanel, "on");
3569
- }
3570
- return _this4.toggleTabPanel(tabPanel, "off");
3571
- });
3572
- }
3573
- }, {
3574
- key: "handleTabFocus",
3575
- value: function handleTabFocus() {
3576
- if (this.rovingTabindex && !this.rovingTabindex.isActive) {
3577
- this.rovingTabindex.init();
3578
- }
3579
- }
3580
- }], [{
3581
- key: "getInstance",
3582
- value: function getInstance(el) {
3583
- return el && el.ODS_Tabs ? el.ODS_Tabs : null;
3584
- }
3585
- }]);
3586
- }();
3587
-
3588
- var Tabs = function Tabs(_a) {
3589
- var _a$activeTabIndex = _a.activeTabIndex,
3590
- activeTabIndex = _a$activeTabIndex === void 0 ? 0 : _a$activeTabIndex,
3591
- className = _a.className,
3592
- classesTabNav = _a.classesTabNav,
3593
- _a$colour = _a.colour,
3594
- colour = _a$colour === void 0 ? "default" : _a$colour,
3595
- isFullWidth = _a.isFullWidth,
3596
- isLink = _a.isLink,
3597
- hasEqualTabWidth = _a.hasEqualTabWidth,
3598
- _a$variant = _a.variant,
3599
- variant = _a$variant === void 0 ? "standard" : _a$variant,
3600
- children = _a.children,
3601
- other = __rest(_a, ["activeTabIndex", "className", "classesTabNav", "colour", "isFullWidth", "isLink", "hasEqualTabWidth", "variant", "children"]);
3602
- var CLASS_TABNAV = "tab-list";
3603
- var tabNavClasses = cx(CLASS_TABNAV, _defineProperty({}, "".concat(CLASS_TABNAV, "--equal"), hasEqualTabWidth), _defineProperty({}, "".concat(CLASS_TABNAV, "--fullwidth"), isFullWidth), _defineProperty({}, "".concat(CLASS_TABNAV, "--inverse"), colour === "inverse"), _defineProperty({}, "".concat(CLASS_TABNAV, "--light"), variant === "light"), classesTabNav, className);
3604
- var _useStatic = useStatic(Tabs$1),
3605
- _useStatic2 = _slicedToArray(_useStatic, 1),
3606
- tabListRef = _useStatic2[0];
3607
- function getTabs() {
3608
- return children.map(function (tabPanel, i) {
3609
- var isActive = i === activeTabIndex;
3610
- var _tabPanel$props = tabPanel.props,
3611
- renderTab = _tabPanel$props.renderTab,
3612
- id = _tabPanel$props.id,
3613
- isDisabled = _tabPanel$props.isDisabled,
3614
- tab = _tabPanel$props.tab,
3615
- href = _tabPanel$props.href;
3616
- if (!renderTab) {
3617
- return /*#__PURE__*/React.createElement(Tab, {
3618
- key: id,
3619
- controls: !href ? id : "",
3620
- href: href,
3621
- isDisabled: isDisabled,
3622
- isActive: isActive
3623
- }, tab);
3624
- }
3625
- var renderedTab = renderTab(tabPanel.props);
3626
- return /*#__PURE__*/React.cloneElement(renderedTab, {
3627
- key: id,
3628
- isActive: isActive
3629
- });
3630
- });
3631
- }
3632
- function getPanels() {
3633
- return children.map(function (tabPanel, i) {
3634
- var isActive = i === activeTabIndex;
3635
- var id = tabPanel.props.id;
3636
- return /*#__PURE__*/React.cloneElement(tabPanel, {
3637
- key: id,
3638
- isActive: isActive,
3639
- tab: undefined
3640
- });
3641
- });
3642
- }
3643
- return /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
3644
- children: [/*#__PURE__*/jsxRuntimeExports.jsxs("ul", _objectSpread2(_objectSpread2({
3645
- className: tabNavClasses,
3646
- role: isLink ? "navigation" : "tablist",
3647
- ref: tabListRef,
3648
- "data-tabs": isLink ? undefined : "true"
3649
- }, other), {}, {
3650
- children: [getTabs(), isFullWidth && /*#__PURE__*/jsxRuntimeExports.jsx("li", {
3651
- role: "presentation",
3652
- className: "tab-list__hr"
3653
- })]
3654
- })), !isLink ? getPanels() : null]
3655
- });
3656
- };
3657
- Tabs.displayName = "Tabs";
3658
-
3659
- var TabPanel = function TabPanel(_a) {
3660
- var children = _a.children,
3661
- isActive = _a.isActive,
3662
- id = _a.id,
3663
- href = _a.href,
3664
- other = __rest(_a, ["children", "isActive", "id", "href"]);
3665
- var currentId = id || generateId();
3666
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", _objectSpread2(_objectSpread2({
3667
- id: currentId,
3668
- role: href ? "" : "tabpanel",
3669
- tabIndex: 0,
3670
- hidden: !isActive
3671
- }, other), {}, {
3672
- children: children
3673
- }));
3674
- };
3675
- TabPanel.displayName = "TabPanel";
3676
-
3677
- export { Alert, Badge, Button, ButtonFill, ButtonGhost, ButtonPrimary, Buttons, Icon, IconButton, Modal, ModalBody, ModalCloseButton, ModalTitle, Section, Tab, TabPanel, Tabs };
19
+ */var Xa=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Ja="undefined"==typeof Element,Za=Ja?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qa=!Ja&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},es=function e(t,n){var i;void 0===n&&(n=!0);var r=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},ts=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex},ns=function(e){return"INPUT"===e.tagName},is=function(e){return function(e){return ns(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Qa(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},rs=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},as=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=Za.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Za.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return rs(e)}else{if("function"==typeof i){for(var a=e;e;){var s=e.parentElement,o=Qa(e);if(s&&!s.shadowRoot&&!0===i(s))return rs(e);e=e.assignedSlot?e.assignedSlot:s||o===e.ownerDocument?s:o.host}e=a}if(function(e){var t,n,i,r,a=e&&Qa(e),s=null===(t=a)||void 0===t?void 0:t.host,o=!1;if(a&&a!==e)for(o=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!o&&s;){var l,c,d;o=!(null===(c=s=null===(l=a=Qa(s))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(s))}return o}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ss=function(e,t){return!(t.disabled||es(t)||function(e){return ns(e)&&"hidden"===e.type}(t)||as(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Za.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},os=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Za.call(e,Xa)&&function(e,t){return!(is(t)||ts(t)<0||!ss(e,t))}(t,e)},ls=function(){function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},{classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals"}),n),this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),e.moveToModalRoot=e.moveToModalRoot.bind(this),e.lockBody=e.lockBody.bind(this),e.unlockBody=e.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}return m(e,[{key:"handleShow",value:function(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);var n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(os(n)||n.setAttribute("tabindex","-1"),n.focus())}},{key:"handleHide",value:function(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}},{key:"show",value:function(){this.instance.show()}},{key:"hide",value:function(){this.instance.hide()}},{key:"headerFirstItemSpacing",value:function(){var e=this.element.querySelector(".modal__header");if(e){var t=Array.from(e.children).find(function(e){return!e.classList.contains("btn")});t&&(t.style.marginRight="40px")}}},{key:"init",value:function(){var t=this;this.config.modalsRoot&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Ya(this.element),this.instance.on("show",function(e){var n=e.currentTarget;t.handleShow(n)}),this.instance.on("hide",function(e){var n=e.currentTarget;t.handleHide(n)}),this.headerFirstItemSpacing()}},{key:"destroy",value:function(){this.instance.destroy(),this.element.ODS_Modal=this}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Modal||null}},{key:"moveToModalRoot",value:function(e,t){var n;t?t.appendChild(e):console.warn("`modalsRoot: ".concat(null===(n=this.config)||void 0===n?void 0:n.modalsRoot,"` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"))}},{key:"lockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),a=t||(null===(i=this.config)||void 0===i?void 0:i.root),s=document.querySelector(a),o=document.documentElement.scrollTop||document.body.scrollTop;document.body.setAttribute("data-lock-scrolltop",o.toString()),document.body.style.height="100%",document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.position="fixed",s&&(s.style.height="100%",s.style.width="100%",s.style.overflow="hidden",s.style.position="fixed",s.scrollTop=o),document.body.classList.add(r),window.requestAnimationFrame(function(){window.scrollTo(0,o)})}},{key:"unlockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),a=t||(null===(i=this.config)||void 0===i?void 0:i.root),s=document.querySelector(a),o=document.body.getAttribute("data-lock-scrolltop")||"0";document.body.style.height="",document.body.style.width="",document.body.style.overflow="",document.body.style.position="",document.body.classList.remove(r),s&&(s.style.height="",s.style.width="",s.style.overflow="",s.style.position=""),window.requestAnimationFrame(function(){window.scrollTo({left:0,top:parseInt(o,10),behavior:"instant"})})}}])}(),cs=function(e){return J.jsx(Ze,b({iconName:"delete",type:"ghost",isSquare:!0,size:"small",className:"modal__close","data-a11y-dialog-hide":!0,"aria-label":"Zatvoriť"},e))};cs.displayName="ModalCloseButton";var ds=function(e){var t=e.size,n=e.className,i=e.children,r=E(e,["size","className","children"]);return J.jsx("h2",b(b({className:j(n,{"display-3":"large"===t,h2:"small"===t})},r),{},{children:i}))};ds.displayName="ModalTitle";var us="modal__body",ps=function(e){var t=e.color,n=e.className,i=e.children,r=E(e,["color","className","children"]);return J.jsx("div",b(b({className:j(us,n,v(v({},"bg-".concat(t),t),"".concat(us,"--colorful"),t))},r),{},{children:i}))};ps.displayName="ModalBody";var hs="modal",fs={actions:[J.jsx(Ue,{"data-a11y-dialog-hide":!0,children:"Zatvoriť"},"1")],noInit:!1},ms=function(e){var t=e.actions,n=void 0===t?fs.actions:t,r=e.className,a=e.children,s=e.hasStickyFooter,o=e.id,l=e.noInit,c=void 0===l?fs.noInit:l,d=e.isActive,u=e.size,p=e.title,h=e.renderBody,f=e.renderTitle,m=e.renderFooter,g=e.fullHeight,_=e.colorScheme,x=E(e,["actions","className","children","hasStickyFooter","id","noInit","isActive","size","title","renderBody","renderTitle","renderFooter","fullHeight","colorScheme"]),w=y(V(ls),2),S=w[0],k=w[1];i(function(){d&&k&&k.current&&k.current.show()},[k,d]);var N=j("".concat(hs,"__dialog"),v(v(v(v({},"".concat(hs,"__dialog--").concat(u),u),"".concat(hs,"__dialog--full-height"),g),"is-dark","dark"===_),"is-light","light"===_),r),T="".concat(o,"-title"),C=f?f(o):J.jsx(ds,{id:T,size:u,"data-a11y-dialog-initial-focus":!0,children:p});return J.jsxs("div",{id:o,"data-modal":!c,className:hs,ref:S,role:"dialog","aria-hidden":"true","aria-modal":"true","aria-labelledby":T,children:[J.jsx("div",{className:"modal__overlay",tabIndex:-1,"data-a11y-dialog-hide":!0}),J.jsxs("div",b(b({className:N,role:"document"},x),{},{children:[J.jsxs("div",{className:"".concat(hs,"__header"),children:[J.jsx(cs,{}),C]}),h?h():J.jsx(ps,{children:a}),J.jsx("div",{className:j("".concat(hs,"__footer"),v({},"".concat(hs,"__footer--sticky"),s)),children:m?m():J.jsx(le,{condition:n.length>1,wrapper:J.jsx(oe,{}),children:n.map(function(e){return e})})})]}))]})};ms.displayName="Modal";var vs="sticker",gs=function(e){var t=e.color,n=e.size,i=e.children,r=e.className,a=E(e,["color","size","children","className"]),s=j(vs,v(v({},"".concat(vs,"--").concat(t),t),"".concat(vs,"--").concat(n),n),r);return J.jsx("div",b(b({className:s},a),{},{children:i}))};gs.displayName="Sticker";var bs=function(e){var t=e.href,n=void 0===t?"#maincontent":t,i=e.className,r=E(e,["href","className"]),a=j("skip-link",i);return J.jsx("a",b(b({href:n,className:a},r),{},{children:"Preskočiť na hlavný obsah"}))};bs.displayName="SkipLink";var ys="list",_s=function(e){var t=e.color,n=e.isEnclosed,i=e.size,r=e.className,a=e.children,s=E(e,["color","isEnclosed","size","className","children"]),o=j(ys,v(v(v({},"".concat(ys,"--").concat(i),i),"".concat(ys,"--").concat(t),t),"".concat(ys,"--enclosed"),n),r);return J.jsx("ul",b(b({className:o},s),{},{children:a}))},xs=function(e){var t=e.href,n=e.className,i=e.children,r=E(e,["href","className","children"]),a=t?"a":"button",s="button"===a?"button":void 0,o=j("list__control",n);return J.jsxs(a,b(b({className:o,type:s,href:t},r),{},{children:[i,J.jsx(ne,{name:"chevron-right",size:"medium",className:"list__indicator"})]}))};xs.displayName="ListItemClickableControl";var ws=function(e){var t=e.controlProps,n=e.className,i=e.children,r=E(e,["controlProps","className","children"]),a=j("list__item",n);return J.jsx("li",b(b({className:a},r),{},{children:J.jsx(le,{condition:void 0!==t,wrapper:J.jsx(xs,b({},t)),children:i})}))};ws.displayName="ListItem";var Ss="orange",Es="progress",ks=function(e){var t=e.color,n=void 0===t?Ss:t,i=e.label,r=e.value,a=e.width,s=e.className,o=e.colorMode,l=E(e,["color","label","value","width","className","colorMode"]);return J.jsxs("div",b(b({className:j(Es,{"is-dark":"dark"===o,"is-light":"light"===o},s)},l),{},{children:[J.jsx("div",{className:"".concat(Es,"__label"),children:i}),J.jsx("div",{className:"".concat(Es,"__bar"),children:J.jsx("div",{className:j("".concat(Es,"__indicator"),v({},"".concat(Es,"__indicator--").concat(n),n!==Ss)),style:{width:"".concat(a?100*a:0,"%")}})}),J.jsx("div",{className:"".concat(Es,"__value"),children:r})]}))};ks.displayName="Progress";var Ns="pagination__link",Ts=function(e){var t=e.ariaLabel,n=e.className,i=e.hasIcon,r=e.href,a=e.isActive,s=e.isFirst,o=e.isLast,l=e.label,c=E(e,["ariaLabel","className","hasIcon","href","isActive","isFirst","isLast","label"]),d=j("pagination__item",n),u=j(Ns,"btn btn--square",v({},"".concat(Ns,"--active"),a));return J.jsx("li",b(b({className:d},c),{},{children:J.jsxs("a",{href:r,className:u,"aria-current":a?"page":void 0,"aria-label":t,children:[i&&s&&J.jsx(ne,{name:"chevron-start"}),!i&&l,i&&o&&J.jsx(ne,{name:"chevron-end"})]})}))};Ts.displayName="PaginationItem";var Cs=function(e){var t=e.className,n=E(e,["className"]),i=j("pagination__separator",t);return J.jsx("li",b(b({className:i},n),{},{children:"…"}))};Cs.displayName="PaginationSeparator";var Os=function(t){var n=t.className,i=t.label,r=t.isCompact,a=t.colorScheme,s=void 0===a?"light":a,o=t.items,l=E(t,["className","label","isCompact","colorScheme","items"]),c=j("pagination",{"is-dark":"dark"===s,"is-light":"light"===s},n),d=u(function(){return o.findIndex(function(e){return e.isActive})},[o]);return J.jsx("nav",{"aria-label":i,children:J.jsx("ul",b(b({className:c},l),{},{children:o.map(function(t,n){var i=function(e){var t=e.activeIndex,n=e.items,i=e.isCompact,r=e.index,a=0===r,s=1===r,o=r===t,l=r===n.length-2,c=r===n.length-1,d=t===r-1||t===r+1,u=r<t+Math.floor(2.5)&&r>t||r>t-Math.floor(2.5)&&r<t,p=r<4&&t<3,h=r>n.length-5&&t>n.length-4,f=!(u||p||h||a||o||c),m=s&&f||l&&f;return{isFirst:a,isHidden:f,isLast:c,isSecond:s,isSecondFromEnd:l,hasIcon:i&&!o&&(a||c)&&!d&&!(n.length<=5),showSeparator:m}}({activeIndex:d,items:o,isCompact:r||!1,index:n}),a=i.isFirst,s=i.isHidden,l=i.isLast,c=i.isSecond,u=i.isSecondFromEnd,p=i.hasIcon,h=i.showSeparator;return J.jsxs(e.Fragment,{children:[!r&&h&&c&&J.jsx(Cs,{}),J.jsx(Ts,b(b({},t),{},{ariaLabel:t.ariaLabel||t.label,isActive:t.isActive||!1,isFirst:a,isLast:l,className:j({hide:s}),hasIcon:p})),!r&&h&&u&&J.jsx(Cs,{})]},n.toString())})}))})};Os.displayName="Pagination";var js="promo-banner",As=function(e){var t=e.title,n=e.secondaryTitle,i=e.description,r=e.buttonText,a=e.image,s=e.colorScheme,o=e.className,l=j(js,{"is-light":"light"===s,"is-dark":"dark"===s},o);return J.jsx("div",{className:l,children:J.jsxs(Fe,{children:[J.jsxs(Ve,{size:{xs:12,md:a?6:8},className:"".concat(js,"__item"),children:[J.jsxs("h2",{className:"display-3 thin mb-medium",children:[J.jsx("span",{className:"".concat(n?"".concat(js,"__item-title"):""),children:t}),n&&J.jsx("span",{className:"color-orange ml-small",children:n})]}),J.jsx("p",{className:"mb-large ".concat(a?"show-lg":""),children:i}),J.jsx(Ue,{type:"fill",size:"large",children:r})]}),a&&J.jsx(Ve,{size:{xs:12,md:6},className:"".concat(js,"__image"),children:J.jsx(qe,{src:a,alt:"",className:"mb-none"})})]})})},Ds="promotion-card",Ls="".concat(Ds,"__section"),Ms="".concat(Ds,"__content"),Ps="".concat(Ds,"__image-wrapper"),Is="".concat(Ds,"__title"),zs=function(e){var t=e.colorScheme,n=void 0===t?"light":t,i=e.className,r=e.children,a=E(e,["colorScheme","className","children"]),s=j(Ds,i),o="dark"===n?"black":"white";return J.jsx(xa,b(b({className:s,color:o},a),{},{children:r}))};zs.displayName="PromotionCard";var Rs=function(e){var t=e.className,n=e.children,i=E(e,["className","children"]),r=j(Ms,t);return J.jsx("div",b(b({className:r},i),{},{children:n}))};Rs.displayName="PromotionCardContent";var Fs=function(e){var t=e.className,n=e.children,i=E(e,["className","children"]),r=j(Ps,t);return J.jsx("div",b(b({className:r},i),{},{children:n}))};Fs.displayName="PromotionCardImageWrapper";var Bs=function(e){var t=e.className,n=e.children,i=E(e,["className","children"]),r=j(Ls,t);return J.jsx(Sa,b(b({className:r},i),{},{children:n}))};Bs.displayName="PromotionCardSection";var Vs=function(t){var n=t.className,i=t.children,r=E(t,["className","children"]),a=j(Is,n);return e.cloneElement(i,Object.assign({className:a},r))};Vs.displayName="PromotionCardTitle";var Hs,Us={exports:{}};var $s=(Hs||(Hs=1,function(e){!function(t,n){e.exports=n()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),r=n(6),a=n(7),s=n(16),o=n(18),l="prototype",c=function(e,t,n){var d,u,p,h,f=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,b=e&c.B,y=m?i:v?i[t]||(i[t]={}):(i[t]||{})[l],_=m?r:r[t]||(r[t]={}),x=_[l]||(_[l]={});for(d in m&&(n=t),n)p=((u=!f&&y&&void 0!==y[d])?y:n)[d],h=b&&u?o(p,i):g&&"function"==typeof p?o(Function.call,p):p,y&&s(y,d,p,e&c.U),_[d]!=p&&a(_,d,h),g&&x[d]!=p&&(x[d]=p)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return o}),n.d(t,"createElement",function(){return o}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return M}),n.d(t,"render",function(){return P}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return r});var i=function(){},r={},a=[],s=[];function o(e,t){var n,o,l,c,d=s;for(c=arguments.length;2<c--;)a.push(arguments[c]);for(t&&null!=t.children&&(a.length||a.push(t.children),delete t.children);a.length;)if((o=a.pop())&&void 0!==o.pop)for(c=o.length;c--;)a.push(o[c]);else"boolean"==typeof o&&(o=null),(l="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(l=!1)),l&&n?d[d.length-1]+=o:d===s?d=[o]:d.push(o),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return o(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(r.debounceRendering||c)(f)}function f(){var e,t=p;for(p=[];e=t.pop();)e._dirty&&D(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||r)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var a in n)a in i||(e.style[a]="");for(var a in i)e.style[a]="number"==typeof i[a]&&!1===u.test(a)?i[a]+"px":i[a]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,s):e.removeEventListener(t,y,s),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var o=r&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?o?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(o?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var _=[],x=0,w=!1,S=!1;function E(){for(var e;e=_.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function k(e,t,n,i,r){var a=e,s=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(a=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(a,e),N(e,!0))),a.__preactattr_=!0,a;var o=t.nodeName;if("function"==typeof o)return function(e,t,n,i){for(var r=e&&e._component,a=r,s=e,o=r&&e._componentConstructor===t.nodeName,l=o,c=v(t);r&&!l&&(r=r._parentComponent);)l=r.constructor===t.nodeName;return r&&l&&(!i||r._component)?(A(r,c,3,n,i),e=r.base):(a&&!o&&(L(a),e=s=null),r=O(t.nodeName,c,n),e&&!r.nextBase&&(r.nextBase=e,s=null),A(r,c,1,n,i),e=r.base,s&&e!==s&&(s._component=null,N(s,!1))),e}(e,t,n,i);if(w="svg"===o||"foreignObject"!==o&&w,o=String(o),(!e||!m(e,o))&&(a=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(o,w),e)){for(;e.firstChild;)a.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(a,e),N(e,!0)}var l=a.firstChild,c=a.__preactattr_,d=t.children;if(null==c){c=a.__preactattr_={};for(var u=a.attributes,p=u.length;p--;)c[u[p].name]=u[p].value}return!S&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,r){var a,s,o,l,c,d,u,p,h=e.childNodes,f=[],v={},b=0,y=0,_=h.length,x=0,w=t?t.length:0;if(0!==_)for(var S=0;S<_;S++){var E=h[S],T=E.__preactattr_;null!=(C=w&&T?E._component?E._component.__key:T.key:null)?(b++,v[C]=E):(T||(void 0!==E.splitText?!r||E.nodeValue.trim():r))&&(f[x++]=E)}if(0!==w)for(S=0;S<w;S++){var C;if(c=null,null!=(C=(l=t[S]).key))b&&void 0!==v[C]&&(c=v[C],v[C]=void 0,b--);else if(y<x)for(a=y;a<x;a++)if(void 0!==f[a]&&(d=s=f[a],p=r,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&m(d,u.nodeName):p||d._componentConstructor===u.nodeName)){c=s,f[a]=void 0,a===x-1&&x--,a===y&&y++;break}c=k(c,l,n,i),o=h[S],c&&c!==e&&c!==o&&(null==o?e.appendChild(c):c===o.nextSibling?g(o):e.insertBefore(c,o))}if(b)for(var S in v)void 0!==v[S]&&N(v[S],!1);for(;y<=x;)void 0!==(c=f[x--])&&N(c,!1)}(a,d,n,i,S||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,w);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],w)}(a,t.attributes,c),w=s,a}function N(e,t){var n=e._component;n?L(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||g(e),T(e))}function T(e){for(e=e.lastChild;e;){var t=e.previousSibling;N(e,!0),e=t}}var C=[];function O(e,t,n){var i,r=C.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),M.call(i,t,n)):((i=new M(t,n)).constructor=e,i.render=j);r--;)if(C[r].constructor===e)return i.nextBase=C[r].nextBase,C.splice(r,1),i;return i}function j(e,t,n){return this.constructor(e,n)}function A(e,t,n,i,a){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||a?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?h(e):D(e,1,a)),e.__ref&&e.__ref(e))}function D(e,t,n,i){if(!e._disable){var a,s,o,c=e.props,d=e.state,u=e.context,p=e.prevProps||c,h=e.prevState||d,f=e.prevContext||u,m=e.base,g=e.nextBase,b=m||g,y=e._component,T=!1,C=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),m&&(e.props=p,e.state=h,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?T=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!T){a=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(C=e.getSnapshotBeforeUpdate(p,h));var j,M,P=a&&a.nodeName;if("function"==typeof P){var I=v(a);(s=y)&&s.constructor===P&&I.key==s.__key?A(s,I,1,u,!1):(j=s,e._component=s=O(P,I,u),s.nextBase=s.nextBase||g,s._parentComponent=e,A(s,I,0,u,!1),D(s,1,n,!0)),M=s.base}else o=b,(j=y)&&(o=e._component=null),(b||1===t)&&(o&&(o._component=null),M=function(e,t,n,i,r,a){x++||(w=null!=r&&void 0!==r.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,a);return r&&s.parentNode!==r&&r.appendChild(s),--x||(S=!1),s}(o,a,u,n||!m,b&&b.parentNode,!0));if(b&&M!==b&&s!==y){var z=b.parentNode;z&&M!==z&&(z.replaceChild(M,b),j||(b._component=null,N(b,!1)))}if(j&&L(j),(e.base=M)&&!i){for(var R=e,F=e;F=F._parentComponent;)(R=F).base=M;M._component=R,M._componentConstructor=R.constructor}}for(!m||n?_.unshift(e):T||(e.componentDidUpdate&&e.componentDidUpdate(p,h,C),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||i||E()}}function L(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?L(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),g(e.nextBase=t),C.push(e),T(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function P(e,t,n){return function(e,t,n,i,r,a){x++||(w=null!=r&&void 0!==r.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,a);return r&&s.parentNode!==r&&r.appendChild(s),--x||(S=!1,E()),s}(n,e,{},!1,t,!1)}l(M.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}});var I={h:o,createElement:o,cloneElement:d,Component:M,render:P,rerender:f,options:r};t.default=I},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),r=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),r=n(38),a=n(39),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),r=n(1).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var i=n(1),r=n(7),a=n(17),s=n(10)("src"),o="toString",l=Function[o],c=(""+l).split(o);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,o){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(a(n,s)||r(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:o?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,o,function(){return"function"==typeof this&&this[s]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),r=n(28);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(11),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),r=n(24),a=n(43);e.exports=function(e){return function(t,n,s){var o,l=i(t),c=r(l.length),d=a(s,c);if(e&&n!=n){for(;d<c;)if((o=l[d++])!=o)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),r=n(10);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(6),r=n(1),a="__core-js_shared__",s=r[a]||(r[a]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,r=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in r||n(3)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),r=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(18),r=n(11),a=n(29),s=n(24),o=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,p=5==e||u,h=t||o;return function(t,o,f){for(var m,v,g=a(t),b=r(g),y=i(o,f,3),_=s(b.length),x=0,w=n?h(t,_):l?h(t,0):void 0;x<_;x++)if((p||x in b)&&(v=y(m=b[x],x,g),e))if(n)w[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(d)return!1;return u?-1:c||d?d:w}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),r=n(10),a=n(1).Symbol,s="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=s&&a[e]||(s?a:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),r=n(23)(!1),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(13)(a)),"Array",{indexOf:function(e){return s?a.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function a(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=s(e.source)),(0,i.render)((0,i.createElement)(r.default,e),e.element)}var s=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};a.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=n.textContent||n.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var i=document.createElement("div");e.selectElement.parentNode.insertBefore(i,e.selectElement),a(Object.assign({},e,{element:i})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var o=a;t.default=o},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),r=n(45),a=n(46),s=n(29),o=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=s(e),l=arguments.length,c=1,d=r.f,u=a.f;c<l;)for(var p,h=o(arguments[c++]),f=d?i(h).concat(d(h)):i(h),m=f.length,v=0;v<m;)u.call(h,p=f[v++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(17),r=n(21),a=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,o=r(e),l=0,c=[];for(n in o)n!=s&&i(o,n)&&c.push(n);for(;t.length>l;)i(o,n=t[l++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),r=n(33),a=n(34)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),r=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),r=s(n(60)),a=s(n(61));function s(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,r=t.focused!==n;r&&!i&&this.elementReferences[n].focus();var a=-1===n,s=r&&null===t.focused;if(a&&s){var o=this.elementReferences[n];o.setSelectionRange(0,o.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,r=n.query,a=n.selected;this.props.confirmOnBlur?(t=e.query||r,this.props.onConfirm(i[a])):t=r,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,r=n.menuOpen,a=n.options,s=n.selected,o=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&o||!c&&!l){var u=r&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(a[s])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,r=t.options,a=t.query,s=t.selected,o=0<=n;if(d()&&!e.relatedTarget&&!o&&this.hasAutoselect()){var l=this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!o){var c=i&&d(),u=d()?a:this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,r=n.source,a=n.showAllValues,s=this.state.searchOnInteraction,o=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=s||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),a||!c&&d&&u?r(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:o&&n?0:-1,validChoiceMade:!1}})}):!c&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,r=t.options,a=this.props.minLength,s=!i&&n.length>=a&&0<r.length;s?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:s||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,r=n.options,a=n.selected;a!==r.length-1&&i&&this.handleOptionFocus(a+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,a=n.cssNamespace,s=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,p=n.displayMenu,h=n.enterKeyHint,f=n.id,m=n.minLength,v=n.name,g=n.placeholder,b=n.required,y=n.showAllValues,_=n.tNoResults,x=n.tStatusQueryTooShort,w=n.tStatusNoResults,S=n.tStatusSelectedOption,E=n.tStatusResults,k=n.tAssistiveHint,N=n.dropdownArrow,T=this.state,C=T.focused,O=T.hovered,j=T.menuOpen,A=T.options,D=T.query,L=T.selected,M=T.ariaHint,P=T.validChoiceMade,I=this.hasAutoselect(),z=-1===C,R=0===A.length,F=0!==D.length,B=D.length>=m,V=this.props.showNoOptionsFound&&z&&R&&F&&B,H=a+"__wrapper"+(l?" "+l:""),U=a+"__input",$=null!==C?" "+U+"--focused":"",q=this.props.showAllValues?" "+U+"--show-all-values":" "+U+"--default",G=a+"__dropdown-arrow-down",W=-1!==C&&null!==C,Y=a+"__menu",K=Y+"--"+p,X=Y+"--"+(j||V?"visible":"hidden"),J=a+"__option",Z=a+"__hint",Q=this.templateInputValue(A[L]),ee=Q&&0===Q.toLowerCase().indexOf(D.toLowerCase())&&I?D+Q.substr(D.length):"",te=f+"__assistiveHint",ne=M?{"aria-describedby":te}:null;return y&&"string"==typeof(e=N({className:G}))&&(e=(0,i.createElement)("div",{className:a+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:H,onKeyDown:this.handleKeyDown},(0,i.createElement)(r.default,{id:f,length:A.length,queryLength:D.length,minQueryLength:m,selectedOption:this.templateInputValue(A[L]),selectedOptionIndex:L,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:x,tNoResults:w,tSelectedOption:S,tResults:E}),ee&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:ee})),(0,i.createElement)("input",o({enterkeyhint:h||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":j?"true":"false","aria-activedescendant":!!W&&f+"__option--"+C,"aria-owns":f+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ne,{autoComplete:"off",className:""+U+$+q+(s?" "+s:""),id:f,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:g,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:b,value:D})),e,(0,i.createElement)("ul",{className:Y+" "+K+" "+X+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:f+"__listbox",role:"listbox"},A.map(function(e,n){var r=(-1===C?L===n:C===n)&&null===O?" "+J+"--focused":"",a=n%2?" "+J+"--odd":"",s=d()?"<span id="+f+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+A.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":C===n?"true":"false",className:""+J+r+a+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+s},id:f+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":A.length})}),V&&(0,i.createElement)("li",{className:J+(c?" "+c:"")+" "+J+"--no-results"},_())),(0,i.createElement)("span",{id:te,style:{display:"none"}},k()))},t}(i.Component);(t.default=u).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:a.default}},function(e,t,n){var i=n(9),r=n(53),a=n(28),s=n(26)("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=a.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][a[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[l]=i(e),n=new o,o[l]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(8),r=n(9),a=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){r(e);for(var n,s=a(t),o=s.length,l=0;l<o;)i.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),r=n(2),a=n(57),s=[].slice,o={};e.exports=Function.bind||function(e){var t=i(this),n=s.call(arguments,1),l=function(){var i=n.concat(s.call(arguments));return this instanceof l?function(e,t,n){if(!(t in o)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";o[t]=Function("F,a","return new F("+i.join(",")+")")}return o[t](e,n)}(t,i.length,i):a(t,i,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),r=n(16),a=n(4),s=n(12),o=n(34);e.exports=function(e,t,n){var l=o(e),c=n(s,l,""[e]),d=c[0],u=c[1];a(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),r=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,r=t.length,a=t.queryLength,s=t.minQueryLength,o=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,p=t.tResults,h=this.state,f=h.bump,m=h.debounced,v=h.silenced,g=a<s,b=0===r,y=o?u(o,r,l):"";return e=g?c(s):b?d():p(r,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!v&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},v||!m||f?"":e))},t}(i.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default})}(Us)),Us.exports),qs=k($s),Gs={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tAssistiveHint:function(){return"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."}},Ws=function(){return m(function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},Gs),n),this.onPageshow=this.onPageshow.bind(this),this.instance=null,this.element.ODS_Autocomplete=this,this.init(),this},[{key:"init",value:function(){var e=this.element.getAttribute("data-autocomplete-config"),t={};if(e)try{t=JSON.parse(e)}catch(e){}this.config=Object.assign(Object.assign({},this.config),t),"SELECT"===this.element.tagName?qs.enhanceSelectElement(Object.assign({selectElement:this.element},this.config)):qs(Object.assign({element:this.element},this.config)),window.addEventListener("pageshow",this.onPageshow)}},{key:"onPageshow",value:function(e){e.persisted&&window&&window.location.reload()}},{key:"destroy",value:function(){window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}}])}(),Ys="select",Ks={size:"default",width:"default",options:[]},Xs=function(e){var t=e.id,n=e.isDisabled,i=e.isInvalid,r=e.name,a=e.options,s=void 0===a?Ks.options:a,o=e.size,l=void 0===o?Ks.size:o,c=e.className,d=e.children,u=e.elemRef,p=e.width,h=void 0===p?Ks.width:p,f=E(e,["id","isDisabled","isInvalid","name","options","size","className","children","elemRef","width"]),m=j(Ys,c,v(v({"is-invalid":i},"".concat(Ys,"--").concat(l),l!==Ks.size),"".concat(Ys,"--").concat(h),h!==Ks.width)),g=t||B(),y=r||g;return J.jsxs("select",b(b({id:g,name:y,className:m,disabled:n,ref:u},f),{},{children:[s.map(function(e){var t="string"==typeof e?{value:e,text:e}:e,n=t.value,i=t.text,r=E(t,["value","text"]);return J.jsx("option",b(b({value:n},r),{},{children:i}),i)}),d]}))};Xs.displayName="Select";var Js=function(e){var t=e.className,n=e.options,i=void 0===n?[]:n,r=e.autocompleteConfig,a=e.placeholder,s=E(e,["className","options","autocompleteConfig","placeholder"]),o=y(V(Ws,r),1)[0];return J.jsx(Xs,b(b(b({className:j("autocomplete",t),"data-placeholder":a},i.length?{"data-autocomplete":!0}:{}),s),{},{elemRef:o,children:i&&i.map(function(e){return J.jsx("option",{label:"string"==typeof e&&0===e.length?" ":void 0,value:"string"==typeof e?e:e.value,children:"string"==typeof e?e:e.title},"string"==typeof e?e:e.value)})}))};Js.displayName="Autocomplete";var Zs,Qs,eo,to,no,io,ro,ao=Object.freeze({__proto__:null,Autocomplete:Js}),so="checkbox",oo="default",lo=function(e){var t=e.id,n=e.isChecked,i=e.isDisabled,r=e.isInvalid,a=e.isToggle,s=e.name,o=e.size,l=void 0===o?oo:o,c=e.className,d=E(e,["id","isChecked","isDisabled","isInvalid","isToggle","name","size","className"]),u=j(so,c,v(v({},"".concat(so,"--").concat(l),l!==oo),"is-invalid",r)),p=s||t,h=function(){return J.jsxs(J.Fragment,{children:[J.jsx("input",b({className:u,type:"checkbox",id:t,name:p,defaultChecked:n,disabled:i},d)),J.jsx("div",{className:"".concat(so,"-display")})]})};return a?J.jsx("div",{className:a?"checkbox--toggle":"",children:J.jsx(h,{})}):J.jsx(h,{})};lo.displayName="Checkbox";var co,uo,po,ho={},fo=[],mo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vo(e,t){for(var n in t)e[n]=t[n];return e}function go(e){var t=e.parentNode;t&&t.removeChild(e)}function bo(e,t,n){var i,r,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?Zs.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return yo(e,s,i,r,null)}function yo(e,t,n,i,r){var a={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++eo:r};return null==r&&null!=Qs.vnode&&Qs.vnode(a),a}function _o(e){return e.children}function xo(e,t){this.props=e,this.context=t}function wo(e,t){if(null==t)return e.__?wo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?wo(e):null}function So(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return So(e)}}function Eo(e){(!e.__d&&(e.__d=!0)&&to.push(e)&&!ko.__r++||io!==Qs.debounceRendering)&&((io=Qs.debounceRendering)||no)(ko)}function ko(){for(var e;ko.__r=to.length;)e=to.sort(function(e,t){return e.__v.__b-t.__v.__b}),to=[],e.some(function(e){var t,n,i,r,a,s;e.__d&&(a=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=vo({},r)).__v=r.__v+1,Mo(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[a]:null,n,null==a?wo(r):a,r.__h),Po(n,r),r.__e!=a&&So(r)))})}function No(e,t,n,i,r,a,s,o,l,c){var d,u,p,h,f,m,v,g=i&&i.__k||fo,b=g.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(h=n.__k[d]=null==(h=t[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?yo(null,h,null,null,h):Array.isArray(h)?yo(_o,{children:h},null,null,null):h.__b>0?yo(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=g[d])||p&&h.key==p.key&&h.type===p.type)g[d]=void 0;else for(u=0;u<b;u++){if((p=g[u])&&h.key==p.key&&h.type===p.type){g[u]=void 0;break}p=null}Mo(e,h,p=p||ho,r,a,s,o,l,c),f=h.__e,(u=h.ref)&&p.ref!=u&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(u,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=To(h,l,e):l=Oo(e,h,p,g,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=wo(p))}for(n.__e=m,d=b;d--;)null!=g[d]&&("function"==typeof n.type&&null!=g[d].__e&&g[d].__e==n.__d&&(n.__d=wo(i,d+1)),zo(g[d],g[d]));if(v)for(d=0;d<v.length;d++)Io(v[d],v[++d],v[++d])}function To(e,t,n){for(var i,r=e.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=e,t="function"==typeof i.type?To(i,t,n):Oo(n,i,i,r,i.__e,t));return t}function Co(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Co(e,t)}):t.push(e)),t}function Oo(e,t,n,i,r,a){var s,o,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=a||null==r.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(r),s=null;else{for(o=a,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==r)break e;e.insertBefore(r,a),s=a}return void 0!==s?s:r.nextSibling}function jo(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||mo.test(t)?n:n+"px"}function Ao(e,t,n,i,r){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||jo(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||jo(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?i||e.addEventListener(t,a?Lo:Do,a):e.removeEventListener(t,a?Lo:Do,a);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Do(e){this.l[e.type+!1](Qs.event?Qs.event(e):e)}function Lo(e){this.l[e.type+!0](Qs.event?Qs.event(e):e)}function Mo(e,t,n,i,r,a,s,o,l){var c,d,u,p,h,f,m,v,g,b,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,o=t.__e=n.__e,t.__h=null,a=[o]),(c=Qs.__b)&&c(t);try{e:if("function"==typeof _){if(v=t.props,g=(c=_.contextType)&&i[c.__c],b=c?g?g.props.value:c.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in _&&_.prototype.render?t.__c=d=new _(v,b):(t.__c=d=new xo(v,b),d.constructor=_,d.render=Ro),g&&g.sub(d),d.props=v,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=_.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=vo({},d.__s)),vo(d.__s,_.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,u)null==_.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==_.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,b)||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,h,f)})}d.context=b,d.props=v,d.state=d.__s,(c=Qs.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=vo(vo({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(p,h)),y=null!=c&&c.type===_o&&null==c.key?c.props.children:c,No(e,Array.isArray(y)?y:[y],t,n,i,r,a,s,o,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,a,s,o){var l,c,d,u=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=a)for(;f<a.length;f++)if((l=a[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),a=null,o=!1}if(null===h)u===p||o&&e.data===p||(e.data=p);else{if(a=a&&Zs.call(e.childNodes),c=(u=n.props||ho).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!o){if(null!=a)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,r){var a;for(a in n)"children"===a||"key"===a||a in t||Ao(e,a,null,n[a],i);for(a in t)r&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||Ao(e,a,t[a],n[a],i)}(e,p,u,r,o),d)t.__k=[];else if(f=t.props.children,No(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,a,s,a?a[0]:n.__k&&wo(n,0),o),null!=a)for(f=a.length;f--;)null!=a[f]&&go(a[f]);o||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==u.value)&&Ao(e,"value",f,u.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&Ao(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,r,a,s,l);(c=Qs.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=o,t.__h=!!l,a[a.indexOf(o)]=null),Qs.__e(e,t,n)}}function Po(e,t){Qs.__c&&Qs.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Qs.__e(e,t.__v)}})}function Io(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Qs.__e(e,n)}}function zo(e,t,n){var i,r;if(Qs.unmount&&Qs.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Io(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Qs.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&zo(i[r],t,"function"!=typeof e.type);n||null==e.__e||go(e.__e),e.__e=e.__d=void 0}function Ro(e,t,n){return this.constructor(e,n)}function Fo(e,t,n){var i,r;Qs.__&&Qs.__(e,t),i=!1?null:t.__k,r=[],Mo(t,e=t.__k=bo(_o,null,[e]),i||ho,ho,void 0!==t.ownerSVGElement,i?null:t.firstChild?Zs.call(t.childNodes):null,r,i?i.__e:t.firstChild,false),Po(r,e)}Zs=fo.slice,Qs={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},eo=0,xo.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vo({},this.state),"function"==typeof e&&(e=e(vo({},n),this.props)),e&&vo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Eo(this))},xo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Eo(this))},xo.prototype.render=_o,to=[],no="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ko.__r=0,ro=0;var Bo=0,Vo=[],Ho=Qs.__b,Uo=Qs.__r,$o=Qs.diffed,qo=Qs.__c,Go=Qs.unmount;function Wo(e,t){Qs.__h&&Qs.__h(uo,e,Bo||t),Bo=0;var n=uo.__H||(uo.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Yo(e){return Bo=1,function(e,t){var n=Wo(co++,2);return n.t=e,n.__c||(n.__=[il(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=uo),n.__}(il,e)}function Ko(e,t){var n=Wo(co++,3);!Qs.__s&&nl(n.__H,t)&&(n.__=e,n.__H=t,uo.__H.__h.push(n))}function Xo(e){return Bo=5,function(e,t){var n=Wo(co++,7);return nl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function Jo(e){var t=uo.context[e.__c],n=Wo(co++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(uo)),t.props.value):e.__}function Zo(){for(var e;e=Vo.shift();)if(e.__P)try{e.__H.__h.forEach(el),e.__H.__h.forEach(tl),e.__H.__h=[]}catch(t){e.__H.__h=[],Qs.__e(t,e.__v)}}Qs.__b=function(e){uo=null,Ho&&Ho(e)},Qs.__r=function(e){Uo&&Uo(e),co=0;var t=(uo=e.__c).__H;t&&(t.__h.forEach(el),t.__h.forEach(tl),t.__h=[])},Qs.diffed=function(e){$o&&$o(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Vo.push(t)&&po===Qs.requestAnimationFrame||((po=Qs.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Qo&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Qo&&(t=requestAnimationFrame(n))})(Zo)),uo=null},Qs.__c=function(e,t){t.some(function(e){try{e.__h.forEach(el),e.__h=e.__h.filter(function(e){return!e.__||tl(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Qs.__e(n,e.__v)}}),qo&&qo(e,t)},Qs.unmount=function(e){Go&&Go(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{el(e)}catch(e){t=e}}),t&&Qs.__e(t,n.__v))};var Qo="function"==typeof requestAnimationFrame;function el(e){var t=uo,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),uo=t}function tl(e){var t=uo;e.__c=e.__(),uo=t}function nl(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function il(e,t){return"function"==typeof t?t(e):t}function rl(e,t){for(var n in t)e[n]=t[n];return e}function al(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function sl(e){this.props=e}(sl.prototype=new xo).isPureReactComponent=!0,sl.prototype.shouldComponentUpdate=function(e,t){return al(this.props,e)||al(this.state,t)};var ol=Qs.__b;Qs.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ol&&ol(e)};var ll="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function cl(e){function t(t,n){var i=rl({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=ll,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var dl=Qs.__e;Qs.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);dl(e,t,n)};var ul=Qs.unmount;function pl(){this.__u=0,this.t=null,this.__b=null}function hl(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function fl(){this.u=null,this.o=null}Qs.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),ul&&ul(e)},(pl.prototype=new xo).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=hl(i.__v),a=!1,s=function(){a||(a=!0,n.__R=null,r?r(o):o())};n.__R=s;var o=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},pl.prototype.componentWillUnmount=function(){this.t=[]},pl.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=rl({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&bo(_o,null,e.fallback);return r&&(r.__h=null),[bo(_o,null,t.__e?null:e.children),r]};var ml=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(fl.prototype=new xo).__e=function(e){var t=this,n=hl(t.__v),i=t.o.get(e);return i[0]++,function(r){var a=function(){t.props.revealOrder?(i.push(r),ml(t,e,i)):r()};n?n(a):a()}},fl.prototype.render=function(e){this.u=null,this.o=new Map;var t=Co(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},fl.prototype.componentDidUpdate=fl.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ml(e,n,t)})};var vl="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,gl=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,bl="undefined"!=typeof document,yl=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};xo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(xo.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _l=Qs.event;function xl(){}function wl(){return this.cancelBubble}function Sl(){return this.defaultPrevented}Qs.event=function(e){return _l&&(e=_l(e)),e.persist=xl,e.isPropagationStopped=wl,e.isDefaultPrevented=Sl,e.nativeEvent=e};var El={configurable:!0,get:function(){return this.class}},kl=Qs.vnode;Qs.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var a in i={},n){var s=n[a];bl&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!yl(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():r&&gl.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),i[a]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Co(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Co(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(El.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",El))}e.$$typeof=vl,kl&&kl(e)};var Nl=Qs.__r;Qs.__r=function(e){Nl&&Nl(e),e.__c};var Tl={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function Cl(...e){return e.join(" ").trim()}var Ol={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function jl(e){return e instanceof Date&&!isNaN(e.valueOf())}function Al(e,t=1){const n=new Date(e),i=e.getDay(),r=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-r))}function Dl(e,t=1){const n=new Date(e),i=n.getDay(),r=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+r))}function Ll(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);i.setMonth(e.getMonth()+1,0);return function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(Al(n,t),Dl(i,t))}function Ml(e,t){return!(!jl(e)||!jl(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Pl(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var Il,zl,Rl,Fl=(Rl={__c:zl="__cC"+ro++,__:Il,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[zl]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Eo)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=Rl.Consumer.contextType=Rl,Bl=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:r,setView:a,handleKeyboardNavigation:s,focusedRef:o,view:l,disabledDayFn:c,locale:d}=Jo(Fl),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),p=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(Ll(l,e));return bo("table",{className:t.table},bo("thead",null,bo("tr",{className:t.tableHeaderRow},u.map(e=>bo("th",{scope:"col",className:t.tableHeaderCell},bo("span",{className:t.srOnly},e.name),bo("span",{"aria-hidden":"true"},e.shortname))))),bo("tbody",null,p.map(e=>bo("tr",{className:t.tableRow},e.map(e=>{const n=i&&Ml(e,i),u=Ml(e,l),p=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),h=(f=e,Ml(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,v=[t.dayButton,h,m],g=u?"0":"-1",b=e.toLocaleDateString(d),y=u?o:void 0;return bo("td",{role:"gridcell",className:t.tableCell},bo("button",{className:v.join(" "),type:"button",onClick:()=>{p||(r(e),a(e))},tabindex:g,onKeyUp:s,ref:y,"aria-disabled":p,"aria-label":b,"aria-selected":n},bo("span",{className:t.srOnly},b),bo("span",{"aria-hidden":"true"},e.getDate())))})))))},Vl=cl(({label:e,value:t,options:n,onChange:i,className:r,elemRef:a,...s},o)=>{const{classes:l}=Jo(Fl);return bo("label",null,bo("span",{className:"sr-only"},e),bo("select",{className:Cl(l.select,r),onChange:e=>i(e),ref:o,...s},n?.map(e=>bo("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Hl=Vl;function Ul(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var $l=cl((e,t)=>{const{l10n:n,min:i,max:r,view:a,setView:s,classes:o}=Jo(Fl),l=new Date(i).getFullYear(),c=new Date(r).getFullYear();return bo(Hl,{label:n.year,options:Ul(l,c),value:a.getFullYear(),className:o.yearSelect,onChange:e=>{const t=new Date(a);t.setFullYear(parseInt(e.target.value,10)),s(t)},ref:t,...e})}),ql=$l,Gl=()=>{const{l10n:e,view:t,setView:n,classes:i}=Jo(Fl);return bo(Hl,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},Wl=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Tl,l10n:i=Ol,selectedDay:r,firstDayOfWeek:a=1,locale:s={},disabledDayFn:o=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:p,id:h})=>{const[f,m]=Yo(r?new Date(r):new Date),[v,g]=Yo(r?new Date(r):void 0),[b,y]=Yo(!1),_=Xo(!0),x=Xo(),w=Xo(),S=Xo(),E=Xo(),k=Xo(),N=Xo();var T,C,O;Ko(()=>{l(v),y(!1)},[v]),Ko(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==N.current||(e.preventDefault(),E.current.focus()),!e.shiftKey||document.activeElement!==E.current&&document.activeElement!==k.current||(e.preventDefault(),N.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,N.current,E.current]),Ko(()=>{const e=e=>{!k.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,k.current]),T=()=>{b?k.current.focus():document.activeElement===x.current||_.current?_.current=!1:S.current.focus()},C=[b,E.current,S.current,x.current],O=Wo(co++,4),!Qs.__s&&nl(O.__H,C)&&(O.__=T,O.__H=C,uo.__h.push(O));const j=e=>Pl(e,e.getMonth()-1),A=e=>Pl(e,e.getMonth()+1),D=()=>{y(!b)},L=({type:e,children:t,...n})=>bo(e,n,t&&t.length&&t.map(e=>L(e)));return bo(Fl.Provider,{value:{firstDayOfWeek:a,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:v,setSelected:g,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=j(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=A(f)},Home:()=>{t=Al(f,a)},End:()=>{t=Dl(f,a)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{w.current.focus()},0))},focusedRef:w,disabledDayFn:o,locale:s}},bo("input",{id:`${h}-input`,type:"text",className:n.input,value:v&&v.toLocaleDateString(s),onChange:e=>(e=>{""===e.target.value&&g(void 0);const t=d(e.target.value);if(t)return m(t),g(t)})(e),ref:x}),bo("input",{type:"hidden",id:`${h}-value`,value:c(v),name:p}),bo("button",{type:"button","aria-controls":`${h}-dialog`,onClick:()=>D(),"aria-expanded":b,ref:S,className:n.toggleButton},u&&L(u),u?bo("span",{class:n.srOnly},i.openButton):i.openButton),bo("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:k,tabIndex:"-1"},bo("div",{className:"daypickr__content"},bo("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(s,{month:"long",year:"numeric"})),bo("div",{className:n.header},bo("div",{className:n.yearMonthWrapper},bo(ql,{ref:E}),bo(Gl,null)),bo("div",{className:n.pagination},bo("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(j(f))}},i.prevMonth),bo("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(A(f))}},i.nextMonth))),bo(Bl,null),bo("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>D(),ref:N},i.closeButton))))},Yl=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const r=({type:e,children:t,...n})=>bo(e,n,t&&t.length&&t.map(e=>r(e)));return bo(Fl.Provider,{value:{classes:t,l10n:n}},bo("input",{type:"text",disabled:!0,className:t.input}),bo("button",{type:"button",className:t.toggleButton,disabled:!0},e&&r(e),e?bo("span",{class:t.srOnly},n.openButton):n.openButton))};var Kl=function(e,t){return Fo(bo(Wl,{...t}),e),{destroy(){!function(e){!!e.__k&&Fo(null,e)}(e),Fo(bo(Yl,{...t}),e)}}},Xl={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:function(e){var t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}},Jl=function(){return m(function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},Xl),n),this.init(),this.element.ODS_DatePicker=this,this},[{key:"init",value:function(){var e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days"),n={};if(e)try{n=JSON.parse(e)}catch(e){n={}}this.config=Object.assign(Object.assign(Object.assign({},this.config),n),t&&{disabledDayFn:function(e){return!t.split(",").includes(function(e){return e&&e instanceof Date?"".concat(e.getFullYear(),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0")):""}(e))}});var i=this.element.getAttribute("data-datepicker-id")||void 0,r=this.element.getAttribute("data-datepicker-name")||i;this.instance=Kl(this.element,Object.assign({id:i,name:r},this.config))}},{key:"destroy",value:function(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}])}(),Zl=function(t){var n=t.dayPickrConfig,i=t.enabledDays,r=t.id,a=t.name,s=e.useRef(null);return e.useEffect(function(){s.current&&new Jl(s.current,Object.assign({},n))},[n]),J.jsx("div",{ref:s,"data-datepicker":!0,"data-enabled-days":i&&i.toString()||void 0,className:"datepicker control-group","data-datepicker-id":r,"data-datepicker-name":a})};Zl.displayName="DatePicker";var Ql=function(e){var t=e.htmlFor,n=e.className,i=e.children,r=E(e,["htmlFor","className","children"]);return J.jsx("label",b(b({htmlFor:t,className:j("label",n)},r),{},{children:i}))};Ql.displayName="Label";var ec=t(null),tc="form-field__label",nc=function(){var t,n=e.useContext(ec),i=null==n?void 0:n.control,r=null!==(t=null==n?void 0:n.controlId)&&void 0!==t?t:"",a=null==n?void 0:n.label,s=null==n?void 0:n.labelAfter;return J.jsx(J.Fragment,{children:s?J.jsxs("div",{className:tc,children:["range"!==(null==i?void 0:i.type)?J.jsx(Ql,{id:r?"".concat(r,"-label"):void 0,htmlFor:r,className:s?void 0:tc,children:a}):J.jsx("span",{id:r?"".concat(r,"-label"):void 0,className:j("label",v({},tc,!s)),children:a}),s&&J.jsxs(J.Fragment,{children:[" ",s]})]}):"range"!==(null==i?void 0:i.type)?J.jsx(Ql,{id:r?"".concat(r,"-label"):void 0,htmlFor:r,className:tc,children:a}):J.jsx("span",{id:r?"".concat(r,"-label"):void 0,className:j("label",v({},tc,!s)),children:a})})},ic=function(e){var t=e.id,n=e.children,i=e.placement,r=void 0===i?"right":i,a=E(e,["id","children","placement"]);return n?J.jsxs(J.Fragment,{children:[" ",J.jsx(zr,b(b({id:"".concat(t,"-tooltip"),className:"form-field__tooltip",placement:r},a),{},{children:n}))]}):null};ic.displayName="FormTooltip";var rc={info:"info",warning:"warning-important",error:"error-severe"},ac={info:"info",warning:"warning",error:"danger"},sc="message",oc=function(e){var t=e.className,n=e.children,i=e.type,r=void 0===i?"info":i,a=E(e,["className","children","type"]),s=j(sc,t);return J.jsxs("p",b(b({className:s},a),{},{children:[r&&J.jsx(ne,{name:rc[r],size:"medium",color:ac[r],className:"".concat(sc,"__icon")}),n]}))};oc.displayName="Message";var lc,cc=t(null),dc=function(t){var n,i=t.isMain,r=e.useContext(ec),a=e.useContext(cc),s=null!==(n=null!=r?r:a)&&void 0!==n?n:{},o=s.controlId,l=s.messages;return(void 0===l?[]:l).filter(function(e){return i===e.isMain}).map(function(e,t){return J.jsx(oc,{id:"".concat(o,"-message-").concat(t),type:e.type,children:e.text},t.toString())})},uc={exports:{}},pc={};function hc(){if(lc)return pc;return lc=1,pc._=function(e){return e&&e.__esModule?e:{default:e}},pc}function fc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mc,vc,gc,bc,yc,_c={},xc={};function wc(){return vc||(vc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});const n=hc()._(e),i=(mc||(mc=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=hc()._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="LoadableContext")}(xc)),xc);const r=[],a=[];let s=!1;function o(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}function l(e,t){let o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function d(){if(!l){const t=new c(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if("undefined"==typeof window&&r.push(d),!s&&"undefined"!=typeof window){const e=o.webpack&&"function"==typeof fc.resolveWeak?o.webpack():o.modules;e&&a.push(t=>{for(const n of e)if(t.includes(n))return d()})}function u(e,t){!function(){d();const e=n.default.useContext(i.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach(t=>{e(t)})}();const r=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{return r.loading||r.error?n.default.createElement(o.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?n.default.createElement((t=r.loaded)&&t.default?t.default:t,e):null;var t},[e,r])}return u.preload=()=>d(),u.displayName="LoadableComponent",n.default.forwardRef(u)}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return l(o,e)}function u(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{u(r).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{const n=()=>(s=!0,t());u(a,e).then(n,n)})),"undefined"!=typeof window&&(window.__NEXT_PRELOADREADY=d.preloadReady);const p=d}(_c)),_c}var Sc=yc?bc:(yc=1,gc||(gc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return o}});const n=hc(),i=X(),r=n._(wc()),a="undefined"==typeof window;function s(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){if(delete t.webpack,delete t.modules,!a)return e(t);const n=t.loading;return()=>(0,i.jsx)(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(e,t){let n=r.default,a={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;if(!r)return null;if("production"!==process.env.NODE_ENV){if(n)return null;if(t)return(0,i.jsxs)("p",{children:[t.message,(0,i.jsx)("br",{}),t.stack]})}return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e}),a={...a,...t};const l=a.loader;return a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr?n({...a,loader:()=>null!=l?l().then(s):Promise.resolve(s(()=>null))}):(delete a.webpack,delete a.modules,o(n,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(uc,uc.exports)),bc=uc.exports),Ec=k(Sc);
20
+ /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
21
+ const{entries:kc,setPrototypeOf:Nc,isFrozen:Tc,getPrototypeOf:Cc,getOwnPropertyDescriptor:Oc}=Object;let{freeze:jc,seal:Ac,create:Dc}=Object,{apply:Lc,construct:Mc}="undefined"!=typeof Reflect&&Reflect;jc||(jc=function(e){return e}),Ac||(Ac=function(e){return e}),Lc||(Lc=function(e,t,n){return e.apply(t,n)}),Mc||(Mc=function(e,t){return new e(...t)});const Pc=Xc(Array.prototype.forEach),Ic=Xc(Array.prototype.lastIndexOf),zc=Xc(Array.prototype.pop),Rc=Xc(Array.prototype.push),Fc=Xc(Array.prototype.splice),Bc=Xc(String.prototype.toLowerCase),Vc=Xc(String.prototype.toString),Hc=Xc(String.prototype.match),Uc=Xc(String.prototype.replace),$c=Xc(String.prototype.indexOf),qc=Xc(String.prototype.trim),Gc=Xc(Object.prototype.hasOwnProperty),Wc=Xc(RegExp.prototype.test),Yc=(Kc=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mc(Kc,t)});var Kc;function Xc(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Lc(e,t,i)}}function Jc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bc;Nc&&Nc(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(Tc(t)||(t[i]=e),r=e)}e[r]=!0}return e}function Zc(e){for(let t=0;t<e.length;t++){Gc(e,t)||(e[t]=null)}return e}function Qc(e){const t=Dc(null);for(const[n,i]of kc(e)){Gc(e,n)&&(Array.isArray(i)?t[n]=Zc(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Qc(i):t[n]=i)}return t}function ed(e,t){for(;null!==e;){const n=Oc(e,t);if(n){if(n.get)return Xc(n.get);if("function"==typeof n.value)return Xc(n.value)}e=Cc(e)}return function(){return null}}const td=jc(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nd=jc(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),id=jc(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rd=jc(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ad=jc(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sd=jc(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),od=jc(["#text"]),ld=jc(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cd=jc(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dd=jc(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ud=jc(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pd=Ac(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hd=Ac(/<%[\w\W]*|[\w\W]*%>/gm),fd=Ac(/\$\{[\w\W]*/gm),md=Ac(/^data-[\-\w.\u00B7-\uFFFF]+$/),vd=Ac(/^aria-[\-\w]+$/),gd=Ac(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bd=Ac(/^(?:\w+script|data):/i),yd=Ac(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_d=Ac(/^html$/i),xd=Ac(/^[a-z][.\w]*(-[.\w]+)+$/i);var wd=Object.freeze({__proto__:null,ARIA_ATTR:vd,ATTR_WHITESPACE:yd,CUSTOM_ELEMENT:xd,DATA_ATTR:md,DOCTYPE_NAME:_d,ERB_EXPR:hd,IS_ALLOWED_URI:gd,IS_SCRIPT_OR_DATA:bd,MUSTACHE_EXPR:pd,TMPLIT_EXPR:fd});const Sd=1,Ed=3,kd=7,Nd=8,Td=9,Cd=function(){return"undefined"==typeof window?null:window};var Od=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cd();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Td||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,a=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=t,m=c.prototype,v=ed(m,"cloneNode"),g=ed(m,"remove"),b=ed(m,"nextSibling"),y=ed(m,"childNodes"),_=ed(m,"parentNode");if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let x,w="";const{implementation:S,createNodeIterator:E,createDocumentFragment:k,getElementsByTagName:N}=i,{importNode:T}=r;let C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof kc&&"function"==typeof _&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:j,TMPLIT_EXPR:A,DATA_ATTR:D,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:I}=wd;let{IS_ALLOWED_URI:z}=wd,R=null;const F=Jc({},[...td,...nd,...id,...ad,...od]);let B=null;const V=Jc({},[...ld,...cd,...dd,...ud]);let H=Object.seal(Dc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,$=null,q=!0,G=!0,W=!1,Y=!0,K=!1,X=!0,J=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,ae=!0,se=!1,oe={},le=null;const ce=Jc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ue=Jc({},["audio","video","img","source","image","track"]);let pe=null;const he=Jc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let ge=ve,be=!1,ye=null;const _e=Jc({},[fe,me,ve],Vc);let xe=Jc({},["mi","mo","mn","ms","mtext"]),we=Jc({},["annotation-xml"]);const Se=Jc({},["title","style","font","a","script"]);let Ee=null;const ke=["application/xhtml+xml","text/html"];let Ne=null,Te=null;const Ce=i.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Qc(e),Ee=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ne="application/xhtml+xml"===Ee?Vc:Bc,R=Gc(e,"ALLOWED_TAGS")?Jc({},e.ALLOWED_TAGS,Ne):F,B=Gc(e,"ALLOWED_ATTR")?Jc({},e.ALLOWED_ATTR,Ne):V,ye=Gc(e,"ALLOWED_NAMESPACES")?Jc({},e.ALLOWED_NAMESPACES,Vc):_e,pe=Gc(e,"ADD_URI_SAFE_ATTR")?Jc(Qc(he),e.ADD_URI_SAFE_ATTR,Ne):he,de=Gc(e,"ADD_DATA_URI_TAGS")?Jc(Qc(ue),e.ADD_DATA_URI_TAGS,Ne):ue,le=Gc(e,"FORBID_CONTENTS")?Jc({},e.FORBID_CONTENTS,Ne):ce,U=Gc(e,"FORBID_TAGS")?Jc({},e.FORBID_TAGS,Ne):Qc({}),$=Gc(e,"FORBID_ATTR")?Jc({},e.FORBID_ATTR,Ne):Qc({}),oe=!!Gc(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,z=e.ALLOWED_URI_REGEXP||gd,ge=e.NAMESPACE||ve,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,we=e.HTML_INTEGRATION_POINTS||we,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(G=!1),te&&(ee=!0),oe&&(R=Jc({},od),B=[],!0===oe.html&&(Jc(R,td),Jc(B,ld)),!0===oe.svg&&(Jc(R,nd),Jc(B,cd),Jc(B,ud)),!0===oe.svgFilters&&(Jc(R,id),Jc(B,cd),Jc(B,ud)),!0===oe.mathMl&&(Jc(R,ad),Jc(B,dd),Jc(B,ud))),e.ADD_TAGS&&(R===F&&(R=Qc(R)),Jc(R,e.ADD_TAGS,Ne)),e.ADD_ATTR&&(B===V&&(B=Qc(B)),Jc(B,e.ADD_ATTR,Ne)),e.ADD_URI_SAFE_ATTR&&Jc(pe,e.ADD_URI_SAFE_ATTR,Ne),e.FORBID_CONTENTS&&(le===ce&&(le=Qc(le)),Jc(le,e.FORBID_CONTENTS,Ne)),ae&&(R["#text"]=!0),J&&Jc(R,["html","head","body"]),R.table&&(Jc(R,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Yc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Yc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,w=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(f,a)),null!==x&&"string"==typeof w&&(w=x.createHTML(""));jc&&jc(e),Te=e}},Ae=Jc({},[...nd,...id,...rd]),De=Jc({},[...ad,...sd]),Le=function(e){Rc(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){g(e)}},Me=function(e,t){try{Rc(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Rc(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Hc(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ee&&ge===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=x?x.createHTML(e):e;if(ge===ve)try{t=(new h).parseFromString(r,Ee)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(ge,"template",null);try{t.documentElement.innerHTML=be?w:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ge===ve?N.call(t,J?"html":"body")[0]:J?t.documentElement:a},Ie=function(e){return E.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ze=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Re=function(e){return"function"==typeof l&&e instanceof l};function Fe(e,t,i){Pc(e,e=>{e.call(n,t,i,Te)})}const Be=function(e){let t=null;if(Fe(C.beforeSanitizeElements,e,null),ze(e))return Le(e),!0;const i=Ne(e.nodeName);if(Fe(C.uponSanitizeElement,e,{tagName:i,allowedTags:R}),X&&e.hasChildNodes()&&!Re(e.firstElementChild)&&Wc(/<[/\w!]/g,e.innerHTML)&&Wc(/<[/\w!]/g,e.textContent))return Le(e),!0;if(e.nodeType===kd)return Le(e),!0;if(X&&e.nodeType===Nd&&Wc(/<[/\w]/g,e.data))return Le(e),!0;if(!R[i]||U[i]){if(!U[i]&&He(i)){if(H.tagNameCheck instanceof RegExp&&Wc(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}if(ae&&!le[i]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=Bc(e.tagName),i=Bc(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ve?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||xe[i]):Boolean(Ae[n]):e.namespaceURI===fe?t.namespaceURI===ve?"math"===n:t.namespaceURI===me?"math"===n&&we[i]:Boolean(De[n]):e.namespaceURI===ve?!(t.namespaceURI===me&&!we[i])&&!(t.namespaceURI===fe&&!xe[i])&&!De[n]&&(Se[n]||!Ae[n]):!("application/xhtml+xml"!==Ee||!ye[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Wc(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===Ed&&(t=e.textContent,Pc([O,j,A],e=>{t=Uc(t,e," ")}),e.textContent!==t&&(Rc(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(C.afterSanitizeElements,e,null),!1):(Le(e),!0)},Ve=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in Ce))return!1;if(G&&!$[t]&&Wc(D,t));else if(q&&Wc(L,t));else if(!B[t]||$[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&Wc(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Wc(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Wc(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(Wc(z,Uc(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==$c(n,"data:")||!de[e]){if(W&&!Wc(M,Uc(n,P,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Hc(e,I)},Ue=function(e){Fe(C.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||ze(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:s,namespaceURI:o,value:l}=a,c=Ne(s),d=l;let u="value"===s?d:qc(d);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Fe(C.uponSanitizeAttribute,e,i),u=i.attrValue,!re||"id"!==c&&"name"!==c||(Me(s,e),u="user-content-"+u),X&&Wc(/((--!?|])>)|<\/(style|title)/i,u)){Me(s,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Me(s,e);continue}if(!Y&&Wc(/\/>/i,u)){Me(s,e);continue}K&&Pc([O,j,A],e=>{u=Uc(u,e," ")});const p=Ne(e.nodeName);if(Ve(p,c,u)){if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(o);else switch(f.getAttributeType(p,c)){case"TrustedHTML":u=x.createHTML(u);break;case"TrustedScriptURL":u=x.createScriptURL(u)}if(u!==d)try{o?e.setAttributeNS(o,s,u):e.setAttribute(s,u),ze(e)?Le(e):zc(n.removed)}catch(t){Me(s,e)}}else Me(s,e)}Fe(C.afterSanitizeAttributes,e,null)},$e=function e(t){let n=null;const i=Ie(t);for(Fe(C.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Fe(C.uponSanitizeShadowNode,n,null),Be(n),Ue(n),n.content instanceof s&&e(n.content);Fe(C.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,o=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw Yc("toString is not a function");if("string"!=typeof(e=e.toString()))throw Yc("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||je(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Ne(e.nodeName);if(!R[t]||U[t])throw Yc("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Pe("\x3c!----\x3e"),a=i.ownerDocument.importNode(e,!0),a.nodeType===Sd&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!ee&&!K&&!J&&-1===e.indexOf("<"))return x&&ne?x.createHTML(e):e;if(i=Pe(e),!i)return ee?null:ne?w:""}i&&Q&&Le(i.firstChild);const d=Ie(se?e:i);for(;o=d.nextNode();)Be(o),Ue(o),o.content instanceof s&&$e(o.content);if(se)return e;if(ee){if(te)for(c=k.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(B.shadowroot||B.shadowrootmode)&&(c=T.call(r,c,!0)),c}let u=J?i.outerHTML:i.innerHTML;return J&&R["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Wc(_d,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),K&&Pc([O,j,A],e=>{u=Uc(u,e," ")}),x&&ne?x.createHTML(u):u},n.setConfig=function(){je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||je({});const i=Ne(e),r=Ne(t);return Ve(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&Rc(C[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ic(C[e],t);return-1===n?void 0:Fc(C[e],n,1)[0]}return zc(C[e])},n.removeHooks=function(e){C[e]=[]},n.removeAllHooks=function(){C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),jd={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:function(e,t){return"\n <li>".concat(e,'&nbsp;<button type="button" data-file-delete="').concat(t,'" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ').concat(e,"</span>\n </button>\n </li>\n ")}},Ad=function(){return m(function e(t,n){return h(this,e),this.element=t,this.config=Object.assign(Object.assign({},jd),n),this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this},[{key:"init",value:function(){var e=this;this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.preventDefaults,!1),document.body.addEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.addEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}},{key:"onInputChange",value:function(){var e,t=this;return!(!this.input||!this.results)&&(this.files=Array.from(null!==(e=this.input.files)&&void 0!==e?e:[]),!!this.files&&(this.results.innerHTML="",this.files.map(function(e,n){return t.config.fileTemplate(Od.sanitize(e.name,{ALLOWED_TAGS:[]}),n)}).forEach(function(e){t.results.appendChild(Od.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(function(e){return e.addEventListener("click",t.onRemoveButtonClick)})))}},{key:"onDrop",value:function(e){var t;this.input&&(this.input.files=(null===(t=null==e?void 0:e.dataTransfer)||void 0===t?void 0:t.files)||(new DataTransfer).files,this.onInputChange())}},{key:"onRemoveButtonClick",value:function(e){if(this.input){var t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(function(e){return t.items.add(e)}),this.input.files=t.files,this.onInputChange()}}},{key:"highlight",value:function(){this.element.classList.add(this.config.dragDropClassname)}},{key:"unhighlight",value:function(){this.element.classList.remove(this.config.dragDropClassname)}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"destroy",value:function(){var e=this;this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.preventDefaults,!1),document.body.removeEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.removeEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}},{key:"update",value:function(){this.destroy(),this.init()}}])}(),Dd="file-input",Ld="default",Md=function(e){var t=e.id,n=e.isDisabled,i=e.name,r=e.size,a=void 0===r?Ld:r,s=e.className,o=E(e,["id","isDisabled","name","size","className"]),l=y(V(Ad),1)[0],c=t||B(),d=j(Dd,v({},"".concat(Dd,"--").concat(a),a!==Ld),s);return J.jsxs("div",{className:d,"data-file-input":!0,ref:l,children:[J.jsx("input",b({className:"".concat(Dd,"__control"),id:c,name:i||t,disabled:n,type:"file"},o)),J.jsx("label",{size:a,htmlFor:c,"aria-hidden":"true",className:"".concat(Dd,"__button"),children:"Vybrať súbor"}),J.jsx("ul",{className:"".concat(Dd,"__files")})]})};Md.displayName="File";var Pd="text-input",Id="text",zd="default",Rd="default",Fd=e.forwardRef(function(e,t){var n=e.className,i=e.id,r=e.isDisabled,a=e.isInvalid,s=e.isValid,o=e.isReadonly,l=e.placeholder,c=e.size,d=void 0===c?zd:c,u=e.htmlType,p=void 0===u?Id:u,h=e.width,f=void 0===h?Rd:h,m=e.name,g=E(e,["className","id","isDisabled","isInvalid","isValid","isReadonly","placeholder","size","htmlType","width","name"]),y=j(Pd,v(v({"is-invalid":a,"is-valid":s},"".concat(Pd,"--").concat(d),d!==zd),"".concat(Pd,"--").concat(f),f!==Rd),n),_=m||i;return J.jsx("input",b({className:y,id:i,name:_,type:p,disabled:r,readOnly:o,placeholder:l,ref:t},g))});Fd.displayName="TextInput";var Bd="control-group__item",Vd="default",Hd=function(e){var t=e.size,n=void 0===t?Vd:t,i=e.className,r=e.children,a=E(e,["size","className","children"]),s=j(Bd,i,v({},"".concat(Bd,"--").concat(n),n!==Vd));return J.jsx("div",b(b({className:s},a),{},{children:r}))};Hd.displayName="GroupItem";var Ud=function(t){var n=t.control,i=t.addonPrefix,r=t.addonSuffix,a=t.size,s=t.className,o=E(t,["control","addonPrefix","addonSuffix","size","className"]),l=n.type,c=E(n,["type"]),d=function(e){return"select"===l?J.jsx(Xs,b({},e)):J.jsx(Fd,b({},e))},u=function(t){return e.Children.map(t,function(t){if("string"==typeof t||t&&"string"==typeof t.type)return J.jsx(Hd,{size:a,children:t});if(e.isValidElement(t)){var n=t.props&&"object"===w(t.props)&&"size"in t.props?{}:{size:a};return e.cloneElement(t,Object.assign(Object.assign({},t.props||{}),n))}return t})};return J.jsxs("div",b(b({className:j("control-group",s)},o),{},{children:[u(i),J.jsx(d,b(b({},c),{},{size:a})),u(r)]}))};Ud.displayName="ControlGroup";var $d,qd,Gd="radio",Wd="default",Yd=function(e){var t=e.id,n=e.isChecked,i=e.isDisabled,r=e.isInvalid,a=e.name,s=e.size,o=void 0===s?Wd:s,l=e.value,c=e.className,d=E(e,["id","isChecked","isDisabled","isInvalid","name","size","value","className"]),u=j(Gd,c,v(v({},"".concat(Gd,"--").concat(o),o!==Wd),"is-invalid",r)),p=l||t;return J.jsxs(J.Fragment,{children:[J.jsx("input",b({className:u,type:"radio",id:t,name:a,defaultChecked:n,disabled:i,value:p},d)),J.jsx("div",{className:"".concat(Gd,"-display")})]})};function Kd(e){return"object"==typeof e&&"function"==typeof e.to}function Xd(e){e.parentElement.removeChild(e)}function Jd(e){return null!=e}function Zd(e){e.preventDefault()}function Qd(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function eu(e,t,n){n>0&&(ru(e,t),setTimeout(function(){au(e,t)},n))}function tu(e){return Math.max(Math.min(e,100),0)}function nu(e){return Array.isArray(e)?e:[e]}function iu(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function ru(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function au(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function su(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function ou(e,t){return 100/(t-e)}function lu(e,t,n){return 100*t/(e[n+1]-e[n])}function cu(e,t){for(var n=1;e>=t[n];)n+=1;return n}function du(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=cu(n,e),r=e[i-1],a=e[i],s=t[i-1],o=t[i];return s+function(e,t){return lu(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,a],n)/ou(s,o)}function uu(e,t,n,i){if(100===i)return i;var r=cu(i,e),a=e[r-1],s=e[r];return n?i-a>(s-a)/2?s:a:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}Yd.displayName="Radio",function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}($d||($d={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(qd||(qd={}));var pu=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach(function(t){r.push([nu(e[t]),t])}),r.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=lu(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var a=1,s=t[r],o=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);s>0;)o=this.xPct[r+1+d]-this.xPct[r+d],t[r+d]*a+100-100*i>100?(l=o*i,a=(s-100*i)/t[r+d],i=1):(l=t[r+d]*o/100*a,a=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),s=t[r+d]*a;return e+c},e.prototype.toStepping=function(e){return e=du(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=cu(n,t),r=e[i-1],a=e[i],s=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,a],(n-s)*ou(s,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=uu(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=cu(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=cu(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(iu);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Qd(n="min"===e?0:"max"===e?100:parseFloat(e))||!Qd(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=lu([this.xVal[e],this.xVal[e+1]],t,0)/ou(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),hu={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},fu={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},mu=".__tooltips",vu=".__aria";function gu(e,t){if(!Qd(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function bu(e,t){if(!Qd(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function yu(e,t){if(!Qd(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function _u(e,t){if(!Qd(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function xu(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new pu(t,e.snap||!1,e.singleStep)}function wu(e,t){if(t=nu(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Su(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Eu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function ku(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Nu(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Tu(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Cu(e,t){if(!Qd(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Ou(e,t){if(!Qd(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ju(e,t){var n;if(!Qd(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Qd(t[0])&&!Qd(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Au(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function Du(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,a=t.indexOf("snap")>=0,s=t.indexOf("hover")>=0,o=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Cu(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(o&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||a,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:a,hover:s,unconstrained:o,invertConnects:l}}function Lu(e,t){if(!1!==t)if(!0===t||Kd(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=nu(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Kd(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function Mu(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function Pu(e,t){if(!Kd(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Iu(e,t){if(!function(e){return Kd(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function zu(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function Ru(e,t){e.documentElement=t}function Fu(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function Bu(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function Vu(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:hu,format:hu},n={step:{r:!1,t:gu},keyboardPageMultiplier:{r:!1,t:bu},keyboardMultiplier:{r:!1,t:yu},keyboardDefaultStep:{r:!1,t:_u},start:{r:!0,t:wu},connect:{r:!0,t:Nu},direction:{r:!0,t:Au},snap:{r:!1,t:Su},animate:{r:!1,t:Eu},animationDuration:{r:!1,t:ku},range:{r:!0,t:xu},orientation:{r:!1,t:Tu},margin:{r:!1,t:Cu},limit:{r:!1,t:Ou},padding:{r:!1,t:ju},behaviour:{r:!0,t:Du},ariaFormat:{r:!1,t:Pu},format:{r:!1,t:Iu},tooltips:{r:!1,t:Lu},keyboardSupport:{r:!0,t:zu},documentElement:{r:!1,t:Ru},cssPrefix:{r:!0,t:Fu},cssClasses:{r:!0,t:Bu},handleAttributes:{r:!1,t:Mu}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:fu,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(r){if(Jd(e[r])||void 0!==i[r])n[r].t(t,Jd(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")}),t.pips=e.pips;var r=document.createElement("div"),a=void 0!==r.style.msTransform,s=void 0!==r.style.transform;t.transformRule=s?"transform":a?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Hu(e,t,n){var i,r,a,s,o,l,c,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},u=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),p=e,h=t.spectrum,f=[],m=[],v=[],g=0,b={},y=!1,_=e.ownerDocument,x=t.documentElement||_.documentElement,w=_.body,S="rtl"===_.dir||1===t.ort?0:100;function E(e,t){var n=_.createElement("div");return t&&ru(n,t),e.appendChild(n),n}function k(e,n){var i=E(e,t.cssClasses.origin),r=E(i,t.cssClasses.handle);if(E(r,t.cssClasses.touchArea),r.setAttribute("data-handle",String(n)),t.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,n){if(C()||O(n))return!1;var i=["Left","Right"],r=["Down","Up"],a=["PageDown","PageUp"],s=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(r.reverse(),a.reverse());var o,l=e.key.replace("Arrow",""),c=l===a[0],d=l===a[1],u=l===r[0]||l===i[0]||c,p=l===r[1]||l===i[1]||d,v=l===s[0],g=l===s[1];if(!(u||p||v||g))return!0;if(e.preventDefault(),p||u){var b=u?0:1,y=oe(n)[b];if(null===y)return!1;!1===y&&(y=h.getDefaultStep(m[n],u,t.keyboardDefaultStep)),y*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,y=Math.max(y,1e-7),y*=u?-1:1,o=f[n]+y}else o=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return ne(n,h.toStepping(o),!0,!0),K("slide",n),K("update",n),K("change",n),K("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var a=t.handleAttributes[n];Object.keys(a).forEach(function(e){r.setAttribute(e,a[e])})}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?ru(r,t.cssClasses.handleLower):n===t.handles-1&&ru(r,t.cssClasses.handleUpper),i.handle=r,i}function N(e,n){return!!n&&E(e,t.cssClasses.connect)}function T(e,n){return!(!t.tooltips||!t.tooltips[n])&&E(e.firstChild,t.cssClasses.tooltip)}function C(){return p.hasAttribute("disabled")}function O(e){return a[e].hasAttribute("disabled")}function j(){l&&(Y("update"+mu),l.forEach(function(e){e&&Xd(e)}),l=null)}function A(){j(),l=a.map(T),W("update"+mu,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var r=e[n];!0!==t.tooltips[n]&&(r=t.tooltips[n].to(i[n])),l[n].innerHTML=r}})}function D(e,t){return e.map(function(e){return h.fromStepping(t?h.getStep(e):e)})}function L(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===$d.Range||e.mode===$d.Steps)return h.xVal;if(e.mode===$d.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),D(i,e.stepped)}return e.mode===$d.Positions?D(e.values,e.stepped):e.mode===$d.Values?e.stepped?e.values.map(function(e){return h.fromStepping(h.getStep(h.toStepping(e)))}):e.values:[]}(e),r={},a=h.xVal[0],s=h.xVal[h.xVal.length-1],o=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==a&&(i.unshift(a),o=!0),i[i.length-1]!==s&&(i.push(s),l=!0),i.forEach(function(n,a){var s,d,u,p,f,m,v,g,b,y,_=n,x=i[a+1],w=e.mode===$d.Steps;for(w&&(s=h.xNumSteps[a]),s||(s=x-_),void 0===x&&(x=_),s=Math.max(s,1e-7),d=_;d<=x;d=t(d,s)){for(g=(f=(p=h.toStepping(d))-c)/(e.density||1),y=f/(b=Math.round(g)),u=1;u<=b;u+=1)r[(m=c+u*y).toFixed(5)]=[h.fromStepping(m),0];v=i.indexOf(d)>-1?qd.LargeValue:w?qd.SmallValue:qd.NoValue,!a&&o&&d!==x&&(v=0),d===x&&l||(r[p.toFixed(5)]=[d,v]),c=p}}),r}function M(e,n,i){var r,a,s=_.createElement("div"),o=((r={})[qd.None]="",r[qd.NoValue]=t.cssClasses.valueNormal,r[qd.LargeValue]=t.cssClasses.valueLarge,r[qd.SmallValue]=t.cssClasses.valueSub,r),l=((a={})[qd.None]="",a[qd.NoValue]=t.cssClasses.markerNormal,a[qd.LargeValue]=t.cssClasses.markerLarge,a[qd.SmallValue]=t.cssClasses.markerSub,a),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,r=i?o:l;return n+" "+(i?c:d)[t.ort]+" "+r[e]}return ru(s,t.cssClasses.pips),ru(s,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r,a){if((a=n?n(r,a):a)!==qd.None){var o=E(s,!1);o.className=u(a,t.cssClasses.marker),o.style[t.style]=e+"%",a>qd.NoValue&&((o=E(s,!1)).className=u(a,t.cssClasses.value),o.setAttribute("data-value",String(r)),o.style[t.style]=e+"%",o.innerHTML=String(i.to(r)))}}(r,e[r][0],e[r][1])}),s}function P(){o&&(Xd(o),o=null)}function I(e){P();var t=L(e),n=e.filter,i=e.format||{to:function(e){return String(Math.round(e))}};return o=p.appendChild(M(t,n,i))}function z(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,r){var a=function(a){var s,o,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),a=0===e.type.indexOf("pointer"),s=0,o=0;0===e.type.indexOf("MSPointer")&&(a=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;s=c[0].pageX,o=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;s=d.pageX,o=d.pageY}}t=t||su(_),(r||a)&&(s=e.clientX+t.x,o=e.clientY+t.y);return e.pageOffset=t,e.points=[s,o],e.cursor=r||a,e}(a,r.pageOffset,r.target||n);return!!l&&(!(C()&&!r.doNotReject)&&(s=p,o=t.cssClasses.tap,!((s.classList?s.classList.contains(o):new RegExp("\\b"+o+"\\b").test(s.className))&&!r.doNotReject)&&(!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&((!r.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,r))))))},s=[];return e.split(" ").forEach(function(e){n.addEventListener(e,a,!!u&&{passive:!0}),s.push([e,a])}),s}function F(e){var n,r,a,s,o,l,c=100*(e-(n=i,r=t.ort,a=n.getBoundingClientRect(),s=n.ownerDocument,o=s.documentElement,l=su(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?a.top+l.y-o.clientTop:a.left+l.x-o.clientLeft))/z();return c=tu(c),t.dir?100-c:c}function B(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function V(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return H(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);Z(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function H(e,n){n.handle&&(au(n.handle,t.cssClasses.active),g-=1),n.listeners.forEach(function(e){x.removeEventListener(e[0],e[1])}),0===g&&(au(p,t.cssClasses.drag),te(),e.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",Zd))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){ne(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){K("update",e)})),n.handleNumbers.forEach(function(e){K("change",e),K("set",e),K("end",e)})}function U(e,n){if(!n.handleNumbers.some(O)){var i;if(1===n.handleNumbers.length)i=a[n.handleNumbers[0]].children[0],g+=1,ru(i,t.cssClasses.active);e.stopPropagation();var r=[],s=R(d.move,x,V,{target:e.target,handle:i,connect:n.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:z(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),o=R(d.end,x,H,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",x,B,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers});r.push.apply(r,s.concat(o,l)),e.cursor&&(w.style.cursor=getComputedStyle(e.target).cursor,a.length>1&&ru(p,t.cssClasses.drag),w.addEventListener("selectstart",Zd,!1)),n.handleNumbers.forEach(function(e){K("start",e)})}}function $(e){e.stopPropagation();var n=F(e.calcPoint),i=function(e){var t=100,n=!1;return a.forEach(function(i,r){if(!O(r)){var a=m[r],s=Math.abs(a-e);(s<t||s<=t&&e>a||100===s&&100===t)&&(n=r,t=s)}}),n}(n);!1!==i&&(t.events.snap||eu(p,t.cssClasses.tap,t.animationDuration),ne(i,n,!0,!0),te(),K("slide",i,!0),K("update",i,!0),t.events.snap?U(e,{handleNumbers:[i]}):(K("change",i,!0),K("set",i,!0)))}function q(e){var t=F(e.calcPoint),n=h.getStep(t),i=h.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(ce,i)})})}function G(e){e.fixed||a.forEach(function(e,t){R(d.start,e.children[0],U,{handleNumbers:[t]})}),e.tap&&R(d.start,i,$,{}),e.hover&&R(d.move,i,q,{hover:!0}),e.drag&&s.forEach(function(n,i){if(!1!==n&&0!==i&&i!==s.length-1){var r=a[i-1],o=a[i],l=[n],c=[r,o],u=[i-1,i];ru(n,t.cssClasses.draggable),e.fixed&&(l.push(r.children[0]),l.push(o.children[0])),e.dragAll&&(c=a,u=v),l.forEach(function(e){R(d.start,e,U,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&a.forEach(function(e,t){K("update",t)})}function Y(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===vu||e===mu}(r)&&n!==r||delete b[e]})}function K(e,n,i){Object.keys(b).forEach(function(r){var a=r.split(".")[0];e===a&&b[r].forEach(function(e){e.call(ce,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),ce)})})}function X(e,n,i,r,s,o,l){var c;return a.length>1&&!t.events.unconstrained&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),s&&n<a.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),a.length>1&&t.limit&&(r&&n>0&&(c=h.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),s&&n<a.length-1&&(c=h.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=h.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===a.length-1&&(c=h.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=h.getStep(i)),!((i=tu(i))===e[n]&&!o)&&i}function J(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function Z(e,n,i,r,a){var s=i.slice(),o=r[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,t){var i=X(s,e,s[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-s[e],s[e]=i)}):c=d=[!0];var u=!1;r.forEach(function(e,t){u=ne(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(r.forEach(function(e){K("update",e),K("slide",e)}),null!=a&&K("drag",o))}function Q(e,n){return t.dir?100-e-n:e}function ee(e,n){m[e]=n,f[e]=h.fromStepping(n);var i="translate("+J(Q(n,0)-S+"%","0")+")";if(a[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var r=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!r)return y=!y,Nu(t,t.connect.map(function(e){return!e})),void le()}ie(e),ie(e+1),y&&(ie(e-1),ie(e+2))}function te(){v.forEach(function(e){var t=m[e]>50?-1:1,n=3+(a.length+t*e);a[e].style.zIndex=String(n)})}function ne(e,t,n,i,r,a){return r||(t=X(m,e,t,n,i,!1,a)),!1!==t&&(ee(e,t),!0)}function ie(e){if(s[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,r=100;0!==e&&(i=n[e-1]),e!==s.length-1&&(r=n[e]);var a=r-i,o="translate("+J(Q(i,a)+"%","0")+")",l="scale("+J(a/100,"1")+")";s[e].style[t.transformRule]=o+" "+l}}function re(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=h.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ae(e,n,i){var r=nu(e),a=void 0===m[0];n=void 0===n||n,t.animate&&!a&&eu(p,t.cssClasses.tap,t.animationDuration),v.forEach(function(e){ne(e,re(r[e],e),!0,!1,i)});var s=1===v.length?0:1;if(a&&h.hasNoSize()&&(i=!0,m[0]=0,v.length>1)){var o=100/(v.length-1);v.forEach(function(e){m[e]=e*o})}for(;s<v.length;++s)v.forEach(function(e){ne(e,m[e],!0,!0,i)});te(),v.forEach(function(e){K("update",e),null!==r[e]&&n&&K("set",e)})}function se(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function oe(e){var n=m[e],i=h.getNearbySteps(n),r=f[e],a=i.thisStep.step,s=null;if(t.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==a&&r+a>i.stepAfter.startValue&&(a=i.stepAfter.startValue-r),s=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===n?a=null:0===n&&(s=null);var o=h.countStepDecimals();return null!==a&&!1!==a&&(a=Number(a.toFixed(o))),null!==s&&!1!==s&&(s=Number(s.toFixed(o))),[s,a]}function le(){for(;r.firstChild;)r.removeChild(r.firstChild);for(var e=0;e<=t.handles;e++)s[e]=N(r,t.connect[e]),ie(e);G({drag:t.events.drag,fixed:!0})}ru(c=p,t.cssClasses.target),0===t.dir?ru(c,t.cssClasses.ltr):ru(c,t.cssClasses.rtl),0===t.ort?ru(c,t.cssClasses.horizontal):ru(c,t.cssClasses.vertical),ru(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=E(c,t.cssClasses.base),function(e,n){r=E(n,t.cssClasses.connects),a=[],(s=[]).push(N(r,e[0]));for(var i=0;i<t.handles;i++)a.push(k(n,i)),v[i]=i,s.push(N(r,e[i+1]))}(t.connect,i),G(t.events),ae(t.start),t.pips&&I(t.pips),t.tooltips&&A(),Y("update"+vu),W("update"+vu,function(e,n,i,r,s){v.forEach(function(e){var n=a[e],r=X(m,e,0,!0,!0,!0),o=X(m,e,100,!0,!0,!0),l=s[e],c=String(t.ariaFormat.to(i[e]));r=h.fromStepping(r).toFixed(1),o=h.fromStepping(o).toFixed(1),l=h.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",r),n.children[0].setAttribute("aria-valuemax",o),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var ce={destroy:function(){for(Y(vu),Y(mu),Object.keys(t.cssClasses).forEach(function(e){au(p,t.cssClasses[e])});p.firstChild;)p.removeChild(p.firstChild);delete p.noUiSlider},steps:function(){return v.map(oe)},on:W,off:Y,get:se,set:ae,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<v.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ne(e,re(t,e),!0,!0,i),K("update",e),n&&K("set",e)},reset:function(e){ae(t.start,e)},disable:function(e){null!=e?(a[e].setAttribute("disabled",""),a[e].handle.removeAttribute("tabindex")):(p.setAttribute("disabled",""),a.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(a[e].removeAttribute("disabled"),a[e].handle.setAttribute("tabindex","0")):(p.removeAttribute("disabled"),a.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){Z(e,t,m,n)},options:n,updateOptions:function(e,i){var r=se(),a=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];a.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var s=Vu(n);a.forEach(function(n){void 0!==e[n]&&(t[n]=s[n])}),h=s.spectrum,t.margin=s.margin,t.limit=s.limit,t.padding=s.padding,t.pips?I(t.pips):P(),t.tooltips?A():j(),m=[],ae(Jd(e.start)?e.start:r,i),e.connect&&le()},target:p,removePips:P,removeTooltips:j,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return a},pips:I};return ce}var Uu={__spectrum:pu,cssClasses:fu,create:function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=Hu(e,Vu(t),t);return e.noUiSlider=n,n}},$u={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},qu=function(){return m(function e(t,n){var i=this;return h(this,e),this.handleSliderUpdate=function(e,t){var n=e[t];if(i.inputs[t]&&(i.inputs[t].value=n),i.outputs[t]){var r=i.outputs[t];r&&r.format?r.element.innerText=r.format.to(i.config.format.from(n)):r&&(r.element.innerText=n)}},this.element=t,this.config=Object.assign(Object.assign({},$u),n),this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this},[{key:"init",value:function(){var e,t=this,n=this.element.getAttribute("data-rangeslider-config"),i={};if(n)try{i=JSON.parse(n)}catch(e){}if(this.config=Object.assign(Object.assign({},this.config),i),this.config.format=Me(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,(null===(e=this.instance)||void 0===e?void 0:e.destroy)&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=Uu.create(this.element,this.config),this.inputs=Array.from(document.querySelectorAll("input[name^=".concat(this.element.getAttribute("id"),"-]"))),this.outputs=this.inputs.map(function(e){var t=document.getElementById("".concat(e.getAttribute("id"),"-output"));if(t){var n=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&n?Me(JSON.parse(n)):void 0}}return!1}),this.instance.on("update",function(e,n){t.handleSliderUpdate(e.map(String),n)})}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy(),this.init()}},{key:"destroy",value:function(){var e,t;null===(e=this.instance)||void 0===e||e.off("update"),null===(t=this.instance)||void 0===t||t.destroy(),this.element.ODS_RangeSlider=null}}],[{key:"getInstance",value:function(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}}])}(),Gu="range-slider",Wu=!0,Yu="default",Ku=function(e){var t=e.className,n=e.id,i=e.hasDataAttr,r=void 0===i?Wu:i,a=e.config,s=e.elementBefore,o=e.elementAfter,l=e.width,c=void 0===l?Yu:l,d=E(e,["className","id","hasDataAttr","config","elementBefore","elementAfter","width"]),u=y(V(qu),1)[0],p=null!=n?n:B(),h=j(Gu,v({},"".concat(Gu,"--").concat(c),c!==Yu),t);return J.jsxs(J.Fragment,{children:[s,J.jsx("div",b({id:p,className:h,ref:u,"data-rangeslider":r,"data-rangeslider-config":JSON.stringify(a)},d)),a.start.map(function(e,t){var n="".concat(p,"-").concat(t);return J.jsx("input",{type:"hidden",id:n,name:n},n)}),o]})};Ku.displayName="RangeSlider";var Xu="textarea",Ju="default",Zu="default",Qu=function(e){var t=e.children,n=e.className,i=e.id,r=e.isDisabled,a=e.isInvalid,s=e.isValid,o=e.isReadonly,l=e.placeholder,c=e.size,d=void 0===c?Ju:c,u=e.width,p=void 0===u?Zu:u,h=e.name,f=E(e,["children","className","id","isDisabled","isInvalid","isValid","isReadonly","placeholder","size","width","name"]),m=j(Xu,v(v({"is-invalid":a,"is-valid":s},"".concat(Xu,"--").concat(d),d!==Ju),"".concat(Xu,"--").concat(p),p!==Zu),n),g=h||i;return J.jsx("textarea",b(b({className:m,id:i,name:g,disabled:r,readOnly:o,placeholder:l},f),{},{children:t}))};Qu.displayName="TextArea";var ep={nonEditableInput:!1,min:1,max:999,defaultValue:1},tp=function(){return m(function e(t,n){h(this,e),this.element=t,this.config=Object.assign(Object.assign({},ep),n),this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()},[{key:"handleInputClick",value:function(){this.input&&this.input.select()}},{key:"handleButtonState",value:function(){var e,t,n,i,r=this.config,a=r.min,s=r.max,o=this.config.nonEditableInput?parseInt(null!==(i=null===(n=this.numberDisplay)||void 0===n?void 0:n.textContent)&&void 0!==i?i:"0",10):parseInt(null!==(t=null===(e=this.input)||void 0===e?void 0:e.value)&&void 0!==t?t:"0",10);this.add&&"number"==typeof s&&o>=s?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof a&&o<=a?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}},{key:"handleInputChange",value:function(e){var t=this.config,n=t.min,i=t.max,r=e.target;r&&(n&&Number(r.value)<=n&&(r.value=String(n)),i&&Number(r.value)>=i&&(r.value=String(i)))}},{key:"handleButtonClick",value:function(e){var t,n,i,r,a=this.config,s=a.min,o=a.max,l=e.target,c=this.config.nonEditableInput?parseInt(null!==(r=null===(i=this.numberDisplay)||void 0===i?void 0:i.textContent)&&void 0!==r?r:"0",10):parseInt(null!==(n=null===(t=this.input)||void 0===t?void 0:t.value)&&void 0!==n?n:"0",10);if(l.classList.contains("input-stepper__button--minus")){if(s&&c<=s){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c-=1}if(l.classList.contains("input-stepper__button--plus")){if(o&&c>=o){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(c):this.numberDisplay&&(this.numberDisplay.textContent=String(c)),this.handleButtonState()}},{key:"init",value:function(){var e=this.element.getAttribute("data-inputstepper"),t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch(e){t={}}this.config=Object.assign(Object.assign({},this.config),t),this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");var n=this.config.defaultValue;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}])}(),np="input-stepper",ip=function(e){var t=e.className,n=e.inputClassName,i=e.id,r=e.config,a=e.isDisabled,s=e.isInverse,o=e.nonEditableInput,l=void 0!==o&&o,c=E(e,["className","inputClassName","id","config","isDisabled","isInverse","nonEditableInput"]),d=y(V(tp,{nonEditableInput:l}),1)[0],u=c.name,p=void 0===u?i:u,h=E(c,["name"]),f=j("".concat(np,"__field"),n);return J.jsxs("div",b(b({className:j(np,t,v(v({},"".concat(np,"--inverse"),s),"".concat(np,"--disabled"),a)),ref:d,"data-inputstepper":!r||JSON.stringify(r)},h),{},{children:[J.jsx("button",{disabled:a,className:"".concat(np,"__button ").concat(np,"__button--minus"),"aria-label":"znížiť počet"}),l||(null==r?void 0:r.nonEditableInput)?J.jsx("p",{id:i,className:"".concat(np,"__number")}):J.jsx(Fd,{className:f,id:i,name:p,disabled:a,htmlType:"number",inputMode:"numeric"}),J.jsx("button",{disabled:a,className:"".concat(np,"__button ").concat(np,"__button--plus"),"aria-label":"zvýšiť počet"})]}))};ip.displayName="InputStepper";var rp=Ec(function(){return Promise.resolve().then(function(){return ao}).then(function(e){return{default:e.Autocomplete}})}),ap="form-field__control",sp=function(t){var n,i,r,a,s,o=t.className,l=e.useContext(ec),c=e.useContext(cc),d=null!==(n=null==l?void 0:l.controlId)&&void 0!==n?n:"",u=null!==(i=null==l?void 0:l.control)&&void 0!==i?i:{},p=null==l?void 0:l.isRadioCheck,h=null==l?void 0:l.hint,f=null!==(r=null==l?void 0:l.messages)&&void 0!==r?r:[],m=null==l?void 0:l.tooltip,g=null!==(a=null==c?void 0:c.messages)&&void 0!==a?a:[],y=u.type,x=u.control,w=u.renderControl,S=E(u,["type","control","renderControl"]),k=function(e,t,n,i){return[].concat(_(e?["".concat(i,"-hint")]:[]),_(t.map(function(e,t){return"".concat(i,"-message-").concat(t)})),_(n?["".concat(i,"-tooltip")]:[])).join(" ")}(h,f,m,d),N=p||"autocomplete"===y,T=function(e){switch(y){case"autocomplete":return J.jsx(rp,b({},e));case"checkbox":return J.jsx(lo,b({},e));case"datepicker":return J.jsx(Zl,b({},e));case"file":return J.jsx(Md,b({},e));case"group":return J.jsx(Ud,b({},e));case"radio":return J.jsx(Yd,b({},e));case"range":return J.jsx(Ku,b({},e));case"select":return J.jsx(Xs,b({},e));case"input-stepper":return J.jsx(ip,b({},e));case"textarea":return J.jsx(Qu,b({},e));default:return J.jsx(Fd,b({},e))}},C=S.isInvalid,O=S.isValid,A=null!=C?C:(g.some(function(e){return e.isMain})||f.some(function(e){return"error"===e.type}))&&!O,D=(s=Object.assign(Object.assign(Object.assign({id:d},k.length&&{"aria-describedby":k}),"file"===y&&{"aria-labelledby":"".concat(d,"-label")}),"text"===y?{isInvalid:A}:{}),"group"===y&&(s={control:Object.assign(Object.assign({type:y},x),s)}),Object.assign(Object.assign({},S),s));return w?w(D):J.jsx(le,{condition:N,wrapper:J.jsx("div",{className:j(ap,o)}),children:J.jsx(T,b(b({},D),{},{className:j(S.className,v({},"".concat(ap),!N))}))})},op=function(e){var t=e.className,n=e.children,i=E(e,["className","children"]);return n?J.jsx("p",b(b({className:j("hint",t)},i),{},{children:n})):null};op.displayName="Hint";var lp=function(t){var n,i=t.hideLabel,r=void 0!==i&&i,a=t.children,s=e.useContext(ec),o=null!==(n=null==s?void 0:s.controlId)&&void 0!==n?n:"",l=null==s?void 0:s.tooltip,c=null==s?void 0:s.hint;return J.jsxs("div",{className:"form-field__description",children:[r?null:J.jsxs(J.Fragment,{children:[J.jsx(nc,{}),J.jsx(ic,{id:o,children:l})]}),J.jsx(op,{id:"".concat(o,"-hint"),className:"form-field__hint",children:c}),a]})},cp="form-field",dp=function(e){var t,n=e.className,i=e.control,r=e.hint,a=e.label,s=e.labelAfter,o=e.messages,l=void 0===o?[]:o,c=e.tooltip,d=E(e,["className","control","hint","label","labelAfter","messages","tooltip"]),u=["radio","checkbox"].includes(null!==(t=null==i?void 0:i.type)&&void 0!==t?t:""),p="checkbox"===(null==i?void 0:i.type)&&(null==i?void 0:i.isToggle),h=j(cp,n,v({},"".concat(cp,"--radiocheck"),u)),f=function(e){var t,n=e.id,i=e.control;return null!==(t=null!=n?n:i&&i.id)&&void 0!==t?t:B()}(null!=i?i:{}),m={control:i,hint:r,label:a,labelAfter:s,messages:l,tooltip:c,controlId:f,isRadioCheck:u};return J.jsx("div",b(b({className:h},d),{},{children:J.jsx(ec.Provider,{value:m,children:u?p?J.jsx(J.Fragment,{children:J.jsxs(ge,{space:"small",children:[J.jsx(ye,{children:J.jsxs(ge,{canWrap:!1,children:[J.jsx(ye,{children:J.jsx(sp,{className:"mr-none"})}),J.jsxs(ye,{canShrink:!0,children:[J.jsx(nc,{}),J.jsx(ic,{id:f,children:c})]})]})}),J.jsx(_e,{}),J.jsx(ye,{className:"mt-none",children:J.jsx(lp,{hideLabel:!0,children:J.jsx(dc,{})})})]})}):J.jsxs(J.Fragment,{children:[J.jsx(sp,{}),J.jsx(lp,{children:J.jsx(dc,{})})]}):J.jsxs(J.Fragment,{children:[J.jsx(lp,{}),J.jsx(sp,{}),J.jsx(dc,{})]})})}))};dp.displayName="Field";var up=function(e){var t=e.legend,n=e.legendProps,i=e.description,r=e.className,a=e.children,s=e.messages,o=E(e,["legend","legendProps","description","className","children","messages"]),l=j("fieldset",r);return J.jsxs("fieldset",b(b({className:l},o),{},{children:[J.jsx("legend",b(b({},n),{},{children:t})),i,s?J.jsxs(cc.Provider,{value:{messages:s},children:[J.jsx(dc,{isMain:!0}),a,J.jsx(dc,{})]}):a]}))};up.displayName="Fieldset";var pp=function(e){var t=e.className,n=E(e,["className"]),i=j("skeleton",t);return J.jsx("span",b(b({className:i},n),{},{children:"‌"}))};pp.displayName="Skeleton";var hp="stepbar",fp=function(e){var t=e.showTitlesFrom,n=e.steps,i=e.label,r=void 0===i?"krok":i,a=e.colorScheme,s=e.className,o=E(e,["showTitlesFrom","steps","label","colorScheme","className"]),l=n.findIndex(function(e){return e.isCurrent}),c=function(e,n){var i="".concat(n+1,". ").concat(e.title);return n<l?J.jsx("a",{href:e.href,className:j("".concat(hp,"__link"),v({},"".concat(hp,"__title-").concat(t),t)),children:i}):J.jsx("span",{"aria-current":n===l?"step":void 0,className:t?"stepbar__title-".concat(t):"",children:i})};return J.jsx("nav",b(b({className:j(hp,v({"is-dark":"dark"===a,"is-light":"light"===a},"".concat(hp,"--wide-").concat(t),t),s),"aria-label":r},o),{},{children:J.jsx("ol",{className:"".concat(hp,"__list"),children:n.map(function(e,t){return J.jsx("li",{className:j("".concat(hp,"__item"),v({},"".concat(hp,"__item--current"),t===l)),children:c(e,t)},t.toString())})})}))};fp.displayName="Stepbar";var mp=function(e){var t=e.href,n=e.children,i=e.className,r=e.controls,a=e.isDisabled,s=e.isActive,o=E(e,["href","children","className","controls","isDisabled","isActive"]),l=j("tab-list__tab",i),c=s?0:-1,d=t?"a":"button";return J.jsx("li",{className:"tab-list__item",role:"presentation",children:J.jsx(d,b(b({type:t?void 0:"button",role:t?void 0:"tab",href:t,className:l,"aria-selected":s,"aria-controls":r||void 0,tabIndex:c,"aria-disabled":a},o),{},{children:n}))})};mp.displayName="Tab";var vp={tabSelector:'[role="tab"]'},gp=function(){return m(function e(t,n){return h(this,e),this.isActive=function(e){return!!e&&!e.hasAttribute("hidden")},this.isSelected=function(e){return"true"===e.getAttribute("aria-selected")},this.element=t,this.config=Object.assign(Object.assign({},vp),n),this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.element.ODS_Tabs=this,this.init(),this},[{key:"init",value:function(){var e=this;this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map(function(t,n){var i=t.getAttribute("aria-controls");return e.tabPanels.push(i?document.getElementById(i):null),t.addEventListener("click",e.handleClick),t.addEventListener("focus",e.handleTabFocus),e.isSelected(t)&&(e.activeTabIndex=n),t}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new D(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.toggleTabPanel(this.tabPanels[this.activeTabIndex],"on"):this.tabs.length>0&&this.activateNthTab(0)}},{key:"destroy",value:function(){var e=this;this.tabs.map(function(t){return t.removeEventListener("click",e.handleClick),t.removeEventListener("focus",e.handleTabFocus),t}),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"handleClick",value:function(e){var t=this,n=e.currentTarget;n.hasAttribute("aria-disabled")?e.preventDefault():(this.tabs.map(function(e,i){return e===n?(t.activeTabIndex=i,t.toggleTab(e,"on")):t.toggleTab(e,"off")}),this.tabPanels.map(function(e){return e&&e.getAttribute("id")===n.getAttribute("aria-controls")?t.toggleTabPanel(e,"on"):t.toggleTabPanel(e,"off")}))}},{key:"toggleTab",value:function(e,t){var n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}},{key:"toggleTabPanel",value:function(e,t){if(e){var n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}}},{key:"activateNthTab",value:function(e){var t=this;this.tabs.map(function(n,i){return i===e?(t.activeTabIndex=i,t.toggleTab(n,"on")):t.toggleTab(n,"off")}),this.tabPanels.map(function(n,i){return i===e?t.toggleTabPanel(n,"on"):t.toggleTabPanel(n,"off")})}},{key:"handleTabFocus",value:function(){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}}])}(),bp=function(t){var n=t.activeTabIndex,i=void 0===n?0:n,r=t.className,a=t.classesTabNav,s=t.isFullWidth,o=t.isLink,l=t.hasEqualTabWidth,c=t.variant,d=void 0===c?"standard":c,u=t.children,p=t.colorScheme,h=E(t,["activeTabIndex","className","classesTabNav","isFullWidth","isLink","hasEqualTabWidth","variant","children","colorScheme"]),f="tab-list",m=j(f,v({},"".concat(f,"--equal"),l),v({},"".concat(f,"--fullwidth"),s),v({},"".concat(f,"--light"),"light"===d),{"is-dark":"dark"===p},{"is-light":"light"===p},a,r),g=y(V(gp),1)[0];return J.jsxs(J.Fragment,{children:[J.jsxs("ul",b(b({className:m,role:o?"navigation":"tablist",ref:g,"data-tabs":o?void 0:"true"},h),{},{children:[u.map(function(t,n){var r=n===i,a=t.props,s=a.renderTab,o=a.id,l=a.isDisabled,c=a.tab,d=a.href;if(!s)return e.createElement(mp,{key:o,controls:d?"":o,href:d,isDisabled:l,isActive:r},c);var u=s(t.props);return e.cloneElement(u,{key:o,isActive:r})}),s&&J.jsx("li",{role:"presentation",className:"tab-list__hr"})]})),o?null:u.map(function(t,n){var r=n===i,a=t.props.id;return e.cloneElement(t,{key:a,isActive:r,tab:void 0})})]})};bp.displayName="Tabs";var yp=function(e){var t=e.children,n=e.isActive,i=e.id,r=e.href,a=E(e,["children","isActive","id","href"]),s=i||B();return J.jsx("div",b(b({id:s,role:r?"":"tabpanel",tabIndex:0,hidden:!n},a),{},{children:t}))};yp.displayName="TabPanel";var _p="tile",xp=function(e){var t=e.className,n=e.children,i=e.variant,r=e.backgroundImage,a=e.vAlign,s=e.hAlign,o=e.color,l=void 0===o?"default":o,c=e.space,d=E(e,["className","children","variant","backgroundImage","vAlign","hAlign","color","space"]),u=j(_p,v(v({},"".concat(_p,"--").concat(i),i),"tile--".concat(l),"default"!==l),t),p=j("".concat(_p,"__body"),a&&"justify-content-".concat(a),s&&"align-items-".concat(s),c&&"".concat(_p,"__body--space-").concat(c)),h="action"===i?{name:"chevron-right",size:"medium",color:"orange"}:null;return J.jsxs("div",b(b({className:u},d),{},{children:[J.jsxs("div",{className:p,children:[h&&J.jsx(ne,b({},h)),n]}),r&&J.jsx(qe,b(b({},r),{},{className:j("".concat(_p,"__bg"),r.className)}))]}))};xp.displayName="Tile";var wp="cover",Sp=function(e){var t=e.className,n=e.children,i=e.contentClass,r=e.bgPosition,a=void 0===r?"center":r,s=e.bgSrc,o=e.size,l=E(e,["className","children","contentClass","bgPosition","bgSrc","size"]),c=j(wp,v({},"".concat(wp,"--").concat(o),o),t),d=j("".concat(wp,"__content"),i),u=j("".concat(wp,"__image"),v({},"".concat(wp,"__image--").concat(a),"center"!==a));return J.jsxs("div",{className:c,children:[n&&J.jsx("div",{className:d,children:n}),J.jsx(qe,b({src:s,className:u,alt:""},l))]})};Sp.displayName="Cover";var Ep=function(e){var t=e.className,n=e.children,i=e.color,r=void 0===i?"default":i,a=e.isDiv,s=void 0!==a&&a,o=E(e,["className","children","color","isDiv"]),l=s?"div":"p",c=j("testimonial",v({},"testimonial--".concat(r),"orange"===r),t);return J.jsx(l,b(b({className:c},o),{},{children:n}))};Ep.displayName="Testimonial";var kp={medium:{title:"h2",description:"bold"},large:{title:"h1",description:"large bold"}},Np=function(e){var t=e.button,n=e.colorScheme,i=void 0===n?"white":n,r=e.description,a=e.hasGradientOverlay,s=e.image,o=e.hasFullwidthImage,l=e.price,c=e.sticker,d=e.title,u=e.textSize,p=void 0===u?"medium":u,h=!!s&&("src"in s&&!!s.src||"default"in s&&s.default&&1===Object.keys(s).length),f=j("hero",{"is-dark":"black"===i,"is-light":"white"===i,"is-gray":"gray"===i});return J.jsx("div",{className:f,children:J.jsx(Ge,{children:J.jsxs(Fe,{className:"justify-content-space-between",children:[J.jsxs(Ve,{size:{sm:10,md:9,lg:5},className:"hero__content",children:[J.jsx("h1",{className:kp[p].title,children:d}),r&&J.jsx("p",{className:j(kp[p].description,"hero__description"),children:r}),l&&J.jsxs("p",{className:"h2 hero__price",children:["string"==typeof l&&l,"object"===w(l)&&J.jsxs(J.Fragment,{children:[l.prefix,ze(l.amount),l.suffix]})]}),t&&J.jsx(Ue,b({type:"primary",colorScheme:"light"},t))]}),c&&J.jsx(Ve,{size:{md:3,lg:2},className:"hero__content show-md",children:J.jsx(gs,b(b({},c),{},{className:j("hero__sticker",c.className)}))}),s&&J.jsx("div",{className:"hero__image-wrapper",children:J.jsx(qe,{src:"src"in s?{default:s.src}:s,srcSet:"src"in s?s.srcSet:void 0,alt:"",className:j("hero__image",{"hero__image--fullwidth":o,"hero__image--single":h,"hero__image--gradient":a,"hero__image--gradient-halfwidth":a&&!o})})})]})})})};Np.displayName="Hero";var Tp="icon-list",Cp=function(e){var t=e.icon,n=e.children,i=e.tooltip,r=E(e,["icon","children","tooltip"]);return J.jsxs("li",b(b({},r),{},{children:[J.jsx(ne,{name:t,size:"medium",className:"".concat(Tp,"__icon")}),J.jsxs("div",{className:j("".concat(Tp,"__content"),{"text-nowrap":i}),children:[J.jsx(le,{condition:!!i,wrapper:J.jsx("span",{className:"".concat(Tp,"__content-text"),children:n}),children:n}),i&&" ",i&&J.jsx(zr,{className:"bold",placement:"right",children:i})]})]}))};Cp.displayName="IconListItem";var Op=function(e){var t=e.items,n=e.className,i=E(e,["items","className"]);return J.jsx("ul",b(b({className:j("icon-list",n)},i),{},{children:t.map(function(e,t){var n=e.content,i=E(e,["content"]);return J.jsx(Cp,b(b({},i),{},{children:n}),t.toString())})}))};Op.displayName="IconList";export{Q as Accordion,ae as AccordionItem,ue as Alert,Js as Autocomplete,ge as Bar,_e as BarBreak,ye as BarItem,Ee as BlockAction,ke as BlockActionControl,Ne as BlockActionIndicator,Te as BlockActionOverride,Ye as BodyBanner,Je as Breadcrumbs,Ue as Button,et as ButtonFill,tt as ButtonGhost,Qe as ButtonPrimary,oe as Buttons,xa as Card,ka as CardProductHeader,Sa as CardSection,sr as Carousel,Er as CarouselPromotions,Gr as CartTable,lo as Checkbox,Ge as Container,Wr as Controls,Sp as Cover,Kr as Divider,na as Dropdown,ra as DropdownDivider,ia as DropdownItem,Qr as DropdownToggleButton,oa as Expander,ua as FeatureAccordion,pa as FeatureAccordionItem,dp as Field,up as Fieldset,Md as File,ya as Footer,Oa as Gauge,Fe as Grid,Ve as GridCol,Ud as Group,Np as Hero,op as Hint,ne as Icon,Ze as IconButton,Op as IconList,qe as Image,zr as InfoTooltip,ip as InputStepper,Cp as Item,Ql as Label,ma as Link,_s as List,ws as ListItem,La as Loader,oc as Message,ms as Modal,ps as ModalBody,cs as ModalCloseButton,ds as ModalTitle,Os as Pagination,ks as Progress,As as PromoBanner,zs as PromotionCard,Rs as PromotionCardContent,Fs as PromotionCardImageWrapper,Bs as PromotionCardSection,Vs as PromotionCardTitle,Yd as Radio,Ku as RangeSlider,fa as Section,Xs as Select,pp as Skeleton,bs as SkipLink,fp as Stepbar,gs as Sticker,mp as Tab,yp as TabPanel,Mr as Table,bp as Tabs,he as Tag,me as TagButton,Ep as Testimonial,Qu as TextArea,Fd as TextInput,xp as Tile,Pr as Tooltip};
3678
22
  //# sourceMappingURL=index.js.map