@shohojdhara/atomix 0.3.2 → 0.3.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.
- package/README.md +39 -20
- package/dist/atomix.css +83 -115
- package/dist/atomix.min.css +3 -3
- package/dist/index.d.ts +7049 -7284
- package/dist/index.esm.js +3529 -4674
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3208 -4315
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/themes/applemix.css +16576 -0
- package/dist/themes/applemix.css.map +1 -0
- package/dist/themes/applemix.min.css +73 -0
- package/dist/themes/boomdevs.css +16007 -0
- package/dist/themes/boomdevs.css.map +1 -0
- package/dist/themes/boomdevs.min.css +406 -0
- package/dist/themes/esrar.css +18424 -0
- package/dist/themes/esrar.css.map +1 -0
- package/dist/themes/esrar.min.css +221 -0
- package/dist/themes/flashtrade.css +17596 -0
- package/dist/themes/flashtrade.css.map +1 -0
- package/dist/themes/flashtrade.min.css +196 -0
- package/dist/themes/mashroom.css +31082 -0
- package/dist/themes/mashroom.css.map +1 -0
- package/dist/themes/mashroom.min.css +450 -0
- package/dist/themes/shaj-default.css +17200 -0
- package/dist/themes/shaj-default.css.map +1 -0
- package/dist/themes/shaj-default.min.css +502 -0
- package/package.json +96 -17
- package/scripts/atomix-cli.js +1428 -0
- package/scripts/build-themes.js +208 -0
- package/scripts/cli/interactive-init.js +528 -0
- package/scripts/cli/migration-tools.js +603 -0
- package/scripts/cli/token-manager.js +519 -0
- package/scripts/sync-theme-config.js +309 -0
- package/src/components/List/ListGroup.tsx +1 -2
- package/src/components/Popover/Popover.tsx +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +49 -12
- package/src/components/Tooltip/Tooltip.tsx +32 -58
- package/src/lib/composables/useTooltip.ts +285 -0
- package/src/lib/constants/cssVariables.ts +390 -0
- package/src/lib/hooks/__tests__/useComponentCustomization.test.ts +151 -0
- package/src/lib/hooks/index.ts +19 -0
- package/src/lib/hooks/useComponentCustomization.ts +175 -0
- package/src/lib/index.ts +13 -1
- package/src/lib/patterns/__tests__/slots.test.ts +108 -0
- package/src/lib/patterns/index.ts +35 -0
- package/src/lib/patterns/slots.tsx +421 -0
- package/src/lib/theme/__tests__/ThemeBuilder.test.ts +223 -0
- package/src/lib/theme/builders/ThemeBuilder.ts +372 -0
- package/src/lib/theme/createTheme.ts +2 -134
- package/src/lib/theme/cssVariableMapper.ts +261 -0
- package/src/lib/theme/index.ts +33 -250
- package/src/lib/theme/runtime/ThemeApplicator.ts +252 -0
- package/src/lib/theme/themeUtils.ts +27 -5
- package/src/lib/theme/types.ts +59 -0
- package/src/lib/theme-tools.ts +185 -0
- package/src/lib/types/components.ts +194 -0
- package/src/lib/types/partProps.ts +426 -0
- package/src/lib/utils/__tests__/componentUtils.test.ts +144 -0
- package/src/lib/utils/componentUtils.ts +163 -0
- package/src/lib/utils/index.ts +17 -57
- package/src/styles/01-settings/_settings.colors.scss +10 -10
- package/src/styles/01-settings/_settings.tooltip.scss +1 -1
- package/src/styles/06-components/_components.tooltip.scss +31 -81
- package/src/themes/README.md +443 -0
- package/src/themes/THEME_CHECKLIST.md +74 -0
- package/src/themes/applemix/01-settings/_index.scss +24 -0
- package/src/themes/applemix/01-settings/_settings.animations.scss +0 -0
- package/src/themes/applemix/01-settings/_settings.background.scss +6 -0
- package/src/themes/applemix/01-settings/_settings.colors.scss +75 -0
- package/src/themes/applemix/01-settings/_settings.config.scss +15 -0
- package/src/themes/applemix/01-settings/_settings.typography.scss +30 -0
- package/src/themes/applemix/02-tools/_index.scss +4 -0
- package/src/themes/applemix/03-generic/_index.scss +7 -0
- package/src/themes/applemix/04-elements/_index.scss +7 -0
- package/src/themes/applemix/05-objects/_index.scss +7 -0
- package/src/themes/applemix/06-components/_index.scss +15 -0
- package/src/themes/applemix/99-utilities/_index.scss +7 -0
- package/src/themes/applemix/README.md +378 -0
- package/src/themes/applemix/index.scss +33 -0
- package/src/themes/boomdevs/01-settings/_index.scss +38 -0
- package/src/themes/boomdevs/01-settings/_settings.accordion.scss +12 -0
- package/src/themes/boomdevs/01-settings/_settings.animations.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.avatar.scss +9 -0
- package/src/themes/boomdevs/01-settings/_settings.badge.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.border-radius.scss +16 -0
- package/src/themes/boomdevs/01-settings/_settings.border.scss +10 -0
- package/src/themes/boomdevs/01-settings/_settings.box-shadow.scss +14 -0
- package/src/themes/boomdevs/01-settings/_settings.breadcrumb.scss +13 -0
- package/src/themes/boomdevs/01-settings/_settings.breakpoints.scss +15 -0
- package/src/themes/boomdevs/01-settings/_settings.button.scss +9 -0
- package/src/themes/boomdevs/01-settings/_settings.callout.scss +9 -0
- package/src/themes/boomdevs/01-settings/_settings.card.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.checkbox.scss +9 -0
- package/src/themes/boomdevs/01-settings/_settings.colors.scss +145 -0
- package/src/themes/boomdevs/01-settings/_settings.dropdown.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.grid.scss +16 -0
- package/src/themes/boomdevs/01-settings/_settings.input.scss +14 -0
- package/src/themes/boomdevs/01-settings/_settings.link.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.list.scss +10 -0
- package/src/themes/boomdevs/01-settings/_settings.modal.scss +16 -0
- package/src/themes/boomdevs/01-settings/_settings.navbar.scss +16 -0
- package/src/themes/boomdevs/01-settings/_settings.pagination.scss +13 -0
- package/src/themes/boomdevs/01-settings/_settings.progress.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.rating.scss +10 -0
- package/src/themes/boomdevs/01-settings/_settings.spacing.scss +33 -0
- package/src/themes/boomdevs/01-settings/_settings.spinner.scss +11 -0
- package/src/themes/boomdevs/01-settings/_settings.steps.scss +12 -0
- package/src/themes/boomdevs/01-settings/_settings.tabs.scss +12 -0
- package/src/themes/boomdevs/01-settings/_settings.todo.scss +15 -0
- package/src/themes/boomdevs/01-settings/_settings.toggle.scss +14 -0
- package/src/themes/boomdevs/01-settings/_settings.tooltip.scss +13 -0
- package/src/themes/boomdevs/01-settings/_settings.typography.scss +58 -0
- package/src/themes/boomdevs/01-settings/_settings.video-player.scss +12 -0
- package/src/themes/boomdevs/02-tools/_index.scss +7 -0
- package/src/themes/boomdevs/03-generic/_index.scss +7 -0
- package/src/themes/boomdevs/04-elements/_index.scss +7 -0
- package/src/themes/boomdevs/05-objects/_index.scss +7 -0
- package/src/themes/boomdevs/06-components/_components.button.scss +11 -0
- package/src/themes/boomdevs/06-components/_index.scss +11 -0
- package/src/themes/boomdevs/99-utilities/_index.scss +7 -0
- package/src/themes/boomdevs/index.scss +26 -0
- package/src/themes/esrar/01-settings/_index.scss +15 -0
- package/src/themes/esrar/01-settings/_settings.colors.scss +91 -0
- package/src/themes/esrar/02-tools/_index.scss +8 -0
- package/src/themes/esrar/02-tools/_tools.animations.scss +342 -0
- package/src/themes/esrar/06-components/_components.accordion.scss +49 -0
- package/src/themes/esrar/06-components/_components.avatar-group.scss +14 -0
- package/src/themes/esrar/06-components/_components.avatar.scss +61 -0
- package/src/themes/esrar/06-components/_components.badge.scss +117 -0
- package/src/themes/esrar/06-components/_components.breadcrumb.scss +65 -0
- package/src/themes/esrar/06-components/_components.btn-group.scss +19 -0
- package/src/themes/esrar/06-components/_components.button.scss +224 -0
- package/src/themes/esrar/06-components/_components.callout.scss +51 -0
- package/src/themes/esrar/06-components/_components.card.scss +134 -0
- package/src/themes/esrar/06-components/_components.chart.scss +24 -0
- package/src/themes/esrar/06-components/_components.checkbox-group.scss +26 -0
- package/src/themes/esrar/06-components/_components.checkbox.scss +71 -0
- package/src/themes/esrar/06-components/_components.color-mode-toggle.scss +29 -0
- package/src/themes/esrar/06-components/_components.countdown.scss +67 -0
- package/src/themes/esrar/06-components/_components.data-table.scss +22 -0
- package/src/themes/esrar/06-components/_components.datepicker.scss +20 -0
- package/src/themes/esrar/06-components/_components.dropdown.scss +272 -0
- package/src/themes/esrar/06-components/_components.edge-panel.scss +10 -0
- package/src/themes/esrar/06-components/_components.form-group.scss +15 -0
- package/src/themes/esrar/06-components/_components.form.scss +66 -0
- package/src/themes/esrar/06-components/_components.hero.scss +251 -0
- package/src/themes/esrar/06-components/_components.icon.scss +33 -0
- package/src/themes/esrar/06-components/_components.image-gallery.scss +29 -0
- package/src/themes/esrar/06-components/_components.input.scss +91 -0
- package/src/themes/esrar/06-components/_components.list-group.scss +26 -0
- package/src/themes/esrar/06-components/_components.modal.scss +148 -0
- package/src/themes/esrar/06-components/_components.notification.scss +80 -0
- package/src/themes/esrar/06-components/_components.pagination.scss +84 -0
- package/src/themes/esrar/06-components/_components.popover.scss +10 -0
- package/src/themes/esrar/06-components/_components.progress.scss +64 -0
- package/src/themes/esrar/06-components/_components.rating.scss +26 -0
- package/src/themes/esrar/06-components/_components.skeleton.scss +15 -0
- package/src/themes/esrar/06-components/_components.slider.scss +90 -0
- package/src/themes/esrar/06-components/_components.spinner.scss +71 -0
- package/src/themes/esrar/06-components/_components.steps.scss +76 -0
- package/src/themes/esrar/06-components/_components.tab.scss +58 -0
- package/src/themes/esrar/06-components/_components.tag.scss +21 -0
- package/src/themes/esrar/06-components/_components.timeline.scss +19 -0
- package/src/themes/esrar/06-components/_components.toast.scss +91 -0
- package/src/themes/esrar/06-components/_components.toggle.scss +74 -0
- package/src/themes/esrar/06-components/_components.tooltip.scss +45 -0
- package/src/themes/esrar/06-components/_components.upload.scss +102 -0
- package/src/themes/esrar/06-components/_index.scss +42 -0
- package/src/themes/esrar/index.scss +30 -0
- package/src/themes/flashtrade/01-settings/_index.scss +19 -0
- package/src/themes/flashtrade/01-settings/_settings.animations.scss +11 -0
- package/src/themes/flashtrade/01-settings/_settings.background.scss +9 -0
- package/src/themes/flashtrade/01-settings/_settings.colors.scss +79 -0
- package/src/themes/flashtrade/01-settings/_settings.config.scss +16 -0
- package/src/themes/flashtrade/01-settings/_settings.typography.scss +35 -0
- package/src/themes/flashtrade/02-tools/_index.scss +8 -0
- package/src/themes/flashtrade/03-generic/_index.scss +8 -0
- package/src/themes/flashtrade/04-elements/_index.scss +12 -0
- package/src/themes/flashtrade/05-objects/_index.scss +8 -0
- package/src/themes/flashtrade/06-components/_components.badge.scss +156 -0
- package/src/themes/flashtrade/06-components/_components.button.scss +135 -0
- package/src/themes/flashtrade/06-components/_components.card.scss +214 -0
- package/src/themes/flashtrade/06-components/_components.navbar.scss +227 -0
- package/src/themes/flashtrade/06-components/_index.scss +13 -0
- package/src/themes/flashtrade/99-utilities/_index.scss +9 -0
- package/src/themes/flashtrade/99-utilities/_utilities.trading.scss +187 -0
- package/src/themes/flashtrade/README.md +386 -0
- package/src/themes/flashtrade/demo.html +272 -0
- package/src/themes/flashtrade/index.scss +36 -0
- package/src/themes/mashroom/01-settings/_index.scss +69 -0
- package/src/themes/mashroom/01-settings/_settings.accordion.scss +32 -0
- package/src/themes/mashroom/01-settings/_settings.animations.scss +26 -0
- package/src/themes/mashroom/01-settings/_settings.avatar-group.scss +22 -0
- package/src/themes/mashroom/01-settings/_settings.avatar.scss +57 -0
- package/src/themes/mashroom/01-settings/_settings.badge.scss +19 -0
- package/src/themes/mashroom/01-settings/_settings.border-radius.scss +24 -0
- package/src/themes/mashroom/01-settings/_settings.border.scss +14 -0
- package/src/themes/mashroom/01-settings/_settings.box-shadow.scss +40 -0
- package/src/themes/mashroom/01-settings/_settings.breadcrumb.scss +0 -0
- package/src/themes/mashroom/01-settings/_settings.breakpoints.scss +17 -0
- package/src/themes/mashroom/01-settings/_settings.btn-group.scss +5 -0
- package/src/themes/mashroom/01-settings/_settings.button.scss +50 -0
- package/src/themes/mashroom/01-settings/_settings.callout.scss +81 -0
- package/src/themes/mashroom/01-settings/_settings.card.scss +52 -0
- package/src/themes/mashroom/01-settings/_settings.checkbox-group.scss +5 -0
- package/src/themes/mashroom/01-settings/_settings.checkbox.scss +23 -0
- package/src/themes/mashroom/01-settings/_settings.color-mode.scss +7 -0
- package/src/themes/mashroom/01-settings/_settings.colors.scss +180 -0
- package/src/themes/mashroom/01-settings/_settings.config.scss +4 -0
- package/src/themes/mashroom/01-settings/_settings.countdown.scss +20 -0
- package/src/themes/mashroom/01-settings/_settings.data-table.scss +56 -0
- package/src/themes/mashroom/01-settings/_settings.datepicker.scss +45 -0
- package/src/themes/mashroom/01-settings/_settings.design-tokens.scss +3 -0
- package/src/themes/mashroom/01-settings/_settings.dropdown.scss +45 -0
- package/src/themes/mashroom/01-settings/_settings.edge-panel.scss +24 -0
- package/src/themes/mashroom/01-settings/_settings.fonts.scss +8 -0
- package/src/themes/mashroom/01-settings/_settings.form-group.scss +14 -0
- package/src/themes/mashroom/01-settings/_settings.form.scss +6 -0
- package/src/themes/mashroom/01-settings/_settings.grid.scss +23 -0
- package/src/themes/mashroom/01-settings/_settings.hero.scss +41 -0
- package/src/themes/mashroom/01-settings/_settings.input.scss +51 -0
- package/src/themes/mashroom/01-settings/_settings.link.scss +13 -0
- package/src/themes/mashroom/01-settings/_settings.list-group.scss +16 -0
- package/src/themes/mashroom/01-settings/_settings.list.scss +13 -0
- package/src/themes/mashroom/01-settings/_settings.masonry-grid.scss +23 -0
- package/src/themes/mashroom/01-settings/_settings.menu.scss +50 -0
- package/src/themes/mashroom/01-settings/_settings.messages.scss +98 -0
- package/src/themes/mashroom/01-settings/_settings.modal.scss +41 -0
- package/src/themes/mashroom/01-settings/_settings.nav.scss +20 -0
- package/src/themes/mashroom/01-settings/_settings.navbar.scss +54 -0
- package/src/themes/mashroom/01-settings/_settings.pagination.scss +30 -0
- package/src/themes/mashroom/01-settings/_settings.photoviewer.scss +45 -0
- package/src/themes/mashroom/01-settings/_settings.popover.scss +20 -0
- package/src/themes/mashroom/01-settings/_settings.position.scss +9 -0
- package/src/themes/mashroom/01-settings/_settings.progress.scss +17 -0
- package/src/themes/mashroom/01-settings/_settings.rating.scss +11 -0
- package/src/themes/mashroom/01-settings/_settings.river.scss +50 -0
- package/src/themes/mashroom/01-settings/_settings.sectionintro.scss +31 -0
- package/src/themes/mashroom/01-settings/_settings.select.scss +47 -0
- package/src/themes/mashroom/01-settings/_settings.side-menu.scss +79 -0
- package/src/themes/mashroom/01-settings/_settings.skeleton.scss +24 -0
- package/src/themes/mashroom/01-settings/_settings.spacing.scss +66 -0
- package/src/themes/mashroom/01-settings/_settings.spinner.scss +34 -0
- package/src/themes/mashroom/01-settings/_settings.steps.scss +33 -0
- package/src/themes/mashroom/01-settings/_settings.tabs.scss +33 -0
- package/src/themes/mashroom/01-settings/_settings.testimonials.scss +24 -0
- package/src/themes/mashroom/01-settings/_settings.todo.scss +52 -0
- package/src/themes/mashroom/01-settings/_settings.toggle.scss +49 -0
- package/src/themes/mashroom/01-settings/_settings.tooltip.scss +20 -0
- package/src/themes/mashroom/01-settings/_settings.typography.scss +95 -0
- package/src/themes/mashroom/01-settings/_settings.upload.scss +96 -0
- package/src/themes/mashroom/01-settings/_settings.z-layers.scss +19 -0
- package/src/themes/mashroom/02-tools/_index.scss +8 -0
- package/src/themes/mashroom/02-tools/_tools.psychedelic-gradients.scss +78 -0
- package/src/themes/mashroom/02-tools/_tools.trippy-effects.scss +114 -0
- package/src/themes/mashroom/03-generic/_index.scss +6 -0
- package/src/themes/mashroom/04-elements/_index.scss +6 -0
- package/src/themes/mashroom/05-objects/_index.scss +6 -0
- package/src/themes/mashroom/06-components/_components.accordion.scss +187 -0
- package/src/themes/mashroom/06-components/_components.avatar-group.scss +276 -0
- package/src/themes/mashroom/06-components/_components.avatar.scss +114 -0
- package/src/themes/mashroom/06-components/_components.badge.scss +152 -0
- package/src/themes/mashroom/06-components/_components.breadcrumb.scss +162 -0
- package/src/themes/mashroom/06-components/_components.btn-group.scss +404 -0
- package/src/themes/mashroom/06-components/_components.button.scss +160 -0
- package/src/themes/mashroom/06-components/_components.callout.scss +140 -0
- package/src/themes/mashroom/06-components/_components.card.scss +225 -0
- package/src/themes/mashroom/06-components/_components.checkbox.scss +186 -0
- package/src/themes/mashroom/06-components/_components.color-mode-toggle.scss +308 -0
- package/src/themes/mashroom/06-components/_components.countdown.scss +402 -0
- package/src/themes/mashroom/06-components/_components.data-table.scss +354 -0
- package/src/themes/mashroom/06-components/_components.datepicker.scss +349 -0
- package/src/themes/mashroom/06-components/_components.dropdown.scss +334 -0
- package/src/themes/mashroom/06-components/_components.edge-panel.scss +413 -0
- package/src/themes/mashroom/06-components/_components.form-group.scss +433 -0
- package/src/themes/mashroom/06-components/_components.form.scss +358 -0
- package/src/themes/mashroom/06-components/_components.hero.scss +151 -0
- package/src/themes/mashroom/06-components/_components.input.scss +147 -0
- package/src/themes/mashroom/06-components/_components.list-group.scss +456 -0
- package/src/themes/mashroom/06-components/_components.list.scss +145 -0
- package/src/themes/mashroom/06-components/_components.menu.scss +497 -0
- package/src/themes/mashroom/06-components/_components.messages.scss +277 -0
- package/src/themes/mashroom/06-components/_components.modal.scss +264 -0
- package/src/themes/mashroom/06-components/_components.nav.scss +181 -0
- package/src/themes/mashroom/06-components/_components.navbar.scss +538 -0
- package/src/themes/mashroom/06-components/_components.pagination.scss +400 -0
- package/src/themes/mashroom/06-components/_components.photoviewer.scss +498 -0
- package/src/themes/mashroom/06-components/_components.popover.scss +383 -0
- package/src/themes/mashroom/06-components/_components.product-review.scss +408 -0
- package/src/themes/mashroom/06-components/_components.progress.scss +249 -0
- package/src/themes/mashroom/06-components/_components.rating.scss +300 -0
- package/src/themes/mashroom/06-components/_components.river.scss +570 -0
- package/src/themes/mashroom/06-components/_components.sectionintro.scss +546 -0
- package/src/themes/mashroom/06-components/_components.select.scss +455 -0
- package/src/themes/mashroom/06-components/_components.side-menu.scss +635 -0
- package/src/themes/mashroom/06-components/_components.skeleton.scss +447 -0
- package/src/themes/mashroom/06-components/_components.slider.scss +414 -0
- package/src/themes/mashroom/06-components/_components.spinner.scss +198 -0
- package/src/themes/mashroom/06-components/_components.steps.scss +350 -0
- package/src/themes/mashroom/06-components/_components.tabs.scss +269 -0
- package/src/themes/mashroom/06-components/_components.testimonials.scss +561 -0
- package/src/themes/mashroom/06-components/_components.toggle.scss +231 -0
- package/src/themes/mashroom/06-components/_components.tooltip.scss +167 -0
- package/src/themes/mashroom/06-components/_components.upload.scss +537 -0
- package/src/themes/mashroom/06-components/_components.video-player.scss +560 -0
- package/src/themes/mashroom/06-components/_index.scss +55 -0
- package/src/themes/mashroom/99-utilities/_index.scss +6 -0
- package/src/themes/mashroom/index.scss +26 -0
- package/src/themes/shaj-default/01-settings/_index.scss +69 -0
- package/src/themes/shaj-default/01-settings/_settings.accordion.scss +38 -0
- package/src/themes/shaj-default/01-settings/_settings.animations.scss +32 -0
- package/src/themes/shaj-default/01-settings/_settings.avatar-group.scss +28 -0
- package/src/themes/shaj-default/01-settings/_settings.avatar.scss +63 -0
- package/src/themes/shaj-default/01-settings/_settings.badge.scss +25 -0
- package/src/themes/shaj-default/01-settings/_settings.border-radius.scss +24 -0
- package/src/themes/shaj-default/01-settings/_settings.border.scss +20 -0
- package/src/themes/shaj-default/01-settings/_settings.box-shadow.scss +46 -0
- package/src/themes/shaj-default/01-settings/_settings.breadcrumb.scss +0 -0
- package/src/themes/shaj-default/01-settings/_settings.breakpoints.scss +23 -0
- package/src/themes/shaj-default/01-settings/_settings.btn-group.scss +11 -0
- package/src/themes/shaj-default/01-settings/_settings.button.scss +56 -0
- package/src/themes/shaj-default/01-settings/_settings.callout.scss +87 -0
- package/src/themes/shaj-default/01-settings/_settings.card.scss +52 -0
- package/src/themes/shaj-default/01-settings/_settings.checkbox-group.scss +11 -0
- package/src/themes/shaj-default/01-settings/_settings.checkbox.scss +29 -0
- package/src/themes/shaj-default/01-settings/_settings.color-mode.scss +13 -0
- package/src/themes/shaj-default/01-settings/_settings.colors.scss +91 -0
- package/src/themes/shaj-default/01-settings/_settings.config.scss +4 -0
- package/src/themes/shaj-default/01-settings/_settings.countdown.scss +26 -0
- package/src/themes/shaj-default/01-settings/_settings.data-table.scss +62 -0
- package/src/themes/shaj-default/01-settings/_settings.datepicker.scss +51 -0
- package/src/themes/shaj-default/01-settings/_settings.design-tokens.scss +9 -0
- package/src/themes/shaj-default/01-settings/_settings.dropdown.scss +51 -0
- package/src/themes/shaj-default/01-settings/_settings.edge-panel.scss +30 -0
- package/src/themes/shaj-default/01-settings/_settings.fonts.scss +13 -0
- package/src/themes/shaj-default/01-settings/_settings.form-group.scss +20 -0
- package/src/themes/shaj-default/01-settings/_settings.form.scss +12 -0
- package/src/themes/shaj-default/01-settings/_settings.grid.scss +29 -0
- package/src/themes/shaj-default/01-settings/_settings.hero.scss +47 -0
- package/src/themes/shaj-default/01-settings/_settings.input.scss +57 -0
- package/src/themes/shaj-default/01-settings/_settings.link.scss +19 -0
- package/src/themes/shaj-default/01-settings/_settings.list-group.scss +22 -0
- package/src/themes/shaj-default/01-settings/_settings.list.scss +19 -0
- package/src/themes/shaj-default/01-settings/_settings.masonry-grid.scss +29 -0
- package/src/themes/shaj-default/01-settings/_settings.menu.scss +56 -0
- package/src/themes/shaj-default/01-settings/_settings.messages.scss +104 -0
- package/src/themes/shaj-default/01-settings/_settings.modal.scss +47 -0
- package/src/themes/shaj-default/01-settings/_settings.nav.scss +26 -0
- package/src/themes/shaj-default/01-settings/_settings.navbar.scss +60 -0
- package/src/themes/shaj-default/01-settings/_settings.pagination.scss +36 -0
- package/src/themes/shaj-default/01-settings/_settings.photoviewer.scss +51 -0
- package/src/themes/shaj-default/01-settings/_settings.popover.scss +26 -0
- package/src/themes/shaj-default/01-settings/_settings.position.scss +15 -0
- package/src/themes/shaj-default/01-settings/_settings.progress.scss +23 -0
- package/src/themes/shaj-default/01-settings/_settings.rating.scss +17 -0
- package/src/themes/shaj-default/01-settings/_settings.river.scss +56 -0
- package/src/themes/shaj-default/01-settings/_settings.sectionintro.scss +37 -0
- package/src/themes/shaj-default/01-settings/_settings.select.scss +53 -0
- package/src/themes/shaj-default/01-settings/_settings.side-menu.scss +85 -0
- package/src/themes/shaj-default/01-settings/_settings.skeleton.scss +30 -0
- package/src/themes/shaj-default/01-settings/_settings.spacing.scss +72 -0
- package/src/themes/shaj-default/01-settings/_settings.spinner.scss +24 -0
- package/src/themes/shaj-default/01-settings/_settings.steps.scss +39 -0
- package/src/themes/shaj-default/01-settings/_settings.tabs.scss +39 -0
- package/src/themes/shaj-default/01-settings/_settings.testimonials.scss +30 -0
- package/src/themes/shaj-default/01-settings/_settings.todo.scss +58 -0
- package/src/themes/shaj-default/01-settings/_settings.toggle.scss +55 -0
- package/src/themes/shaj-default/01-settings/_settings.tooltip.scss +26 -0
- package/src/themes/shaj-default/01-settings/_settings.typography.scss +101 -0
- package/src/themes/shaj-default/01-settings/_settings.upload.scss +102 -0
- package/src/themes/shaj-default/01-settings/_settings.z-layers.scss +25 -0
- package/src/themes/shaj-default/02-tools/_index.scss +0 -0
- package/src/themes/shaj-default/03-generic/_generic.root.scss +0 -0
- package/src/themes/shaj-default/03-generic/_index.scss +2 -0
- package/src/themes/shaj-default/04-elements/_index.scss +0 -0
- package/src/themes/shaj-default/05-objects/_index.scss +0 -0
- package/src/themes/shaj-default/06-components/_components.button.scss +55 -0
- package/src/themes/shaj-default/06-components/_components.card.scss +57 -0
- package/src/themes/shaj-default/06-components/_components.input.scss +58 -0
- package/src/themes/shaj-default/06-components/_components.navbar.scss +99 -0
- package/src/themes/shaj-default/06-components/_components.tooltip.scss +0 -0
- package/src/themes/shaj-default/06-components/_index.scss +13 -0
- package/src/themes/shaj-default/99-utilities/_index.scss +0 -0
- package/src/themes/shaj-default/index.scss +25 -0
- package/src/themes/themes.config.js +219 -0
- package/theme.config.ts +360 -0
- package/src/lib/theme/studio/ThemeStudio.tsx +0 -312
- package/src/lib/theme/studio/index.ts +0 -8
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as r,useRef as i,useEffect as o,memo as s,forwardRef as l,useId as c,useMemo as d,useCallback as h,Children as u,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as S,Component as b}from"react";import*as E from"@phosphor-icons/react";import{Pause as v,Play as A,SkipBack as y,SkipForward as T,SpeakerX as N,SpeakerHigh as _,Gear as C,Download as L,Share as x,ArrowsIn as I,ArrowsOut as O}from"@phosphor-icons/react";import{createPortal as R}from"react-dom";import w from"classnames";const M={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},D={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},k={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},B={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},P={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},F={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},z={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},U={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},G={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},V={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},H={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},W={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},Y={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},K={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},j={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},$={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},Q={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},Z={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},q={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},X={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},J={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},ee={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},te={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},ne={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},ae={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},re={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},ie={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},oe={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},se={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},le={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},ce={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},de={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},he={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},ue={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},me={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},pe={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},ge={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},fe={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},Se={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},be=Se,Ee={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",SETTINGS_MENU_CLASS:"c-chart__settings-menu",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},ve={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},Ae={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}},ye={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:20,BLUR_AMOUNT:1,SATURATION:140,ABERRATION_INTENSITY:2.5,ELASTICITY:.05,CORNER_RADIUS:16,PADDING:"0 0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0},CONSTANTS:{ACTIVATION_ZONE:200,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200}}};function Te(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,s]=r(t.defaultOpen||!1),l=n?t.isOpen:a,[c,d]=r(l?"auto":"0px"),h=i(null),u=i(null),m=()=>{if(u.current&&h.current){const e=l?u.current.clientHeight+"px":"0px";h.current.style.setProperty(D.CSS_VARS.PANEL_HEIGHT,e),d(e)}};return o((()=>{m()}),[l]),o((()=>{const e=()=>{l&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]),{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:m,panelRef:h,contentRef:u,generateClassNames:(e="")=>`c-accordion ${l?D.CLASSES.IS_OPEN:""} ${t.disabled?D.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Ne}=ye,_e=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)},Ce=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Le=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Ne.MOUSE_INFLUENCE_DIVISOR;return Math.min(1.5,t)},xe=e=>"number"!=typeof e||isNaN(e)?Ne.MIN_BLUR:Math.max(Ne.MIN_BLUR,Math.min(50,e)),Ie=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Ne.MAX_SIZE&&e.height<=Ne.MAX_SIZE,Oe=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Ne.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Ne.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Ne.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Ne.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Ne.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const n=parseFloat(t);return isNaN(n)?Ne.DEFAULT_CORNER_RADIUS:Math.max(0,n)},Re=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?Oe(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=we(e.props.children);if(t>0&&t!==Ne.DEFAULT_CORNER_RADIUS)return t}return null},we=e=>{if(!e)return Ne.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=Re(n);if(null!==e)return e}}}catch(t){}return Ne.DEFAULT_CORNER_RADIUS},Me=(e,t,n,a,r)=>{switch(e){case"standard":default:return t;case"polar":return n;case"prominent":return a;case"shader":return r||t}},De=({id:n,displacementScale:a,aberrationIntensity:r,mode:i,shaderMapUrl:o,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",suppressHydrationWarning:!0,children:t("defs",{children:[t("radialGradient",{id:n+"-edge-mask",cx:"50%",cy:"50%",r:"50%",children:[e("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:Math.max(30,80-2*r)+"%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t("filter",{id:n,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[e("feImage",{id:"feimage",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:Me(i,"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgHB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bbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNt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UUUUUMbb3dTTRJJJJJJJIklmY0xjKKKKKKKG293U005JJJJJJJEkksaaaaoooooooobbb3U05JJJJJJJJEkksaaZRRRRRRRRQ223uppySSSSSSSSIQkNNMoooooooooptt7qackkkkkEEkiEksGmqKKLLKLKKKbbe6mnJJJBBBBJJKSSxpplFFFllllFFNtvdTTkkkggggkklJZjTTVFFFlllllFDbe6mnLkggggggkkSzGmUUUUWWWWWUUU291NOSSCCCCCCSRLMaaZRRRZZZZZRRTb3U5ckkEEEEEEkpLMaaaoossssssop0291OXJBBBBBBBBKSzGmMossssssssp0291OXJBBBzOZBBBKlZjTVFFllllllllOm3upy5cEEHM5kEEEqVmNNUUWWWWdCyyynTb1NOXLggg5nMggglSvGmUqLLOhZ0LLLKdNm6nLgggg5nMggglSsxpqlRZZ0Oh0OhZZTpt7qcuHBzOZzOZzOZBKleNNUUWWdDodDodCynQxmy5cEHM5n/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAABVXElEQVR4nO19aZasPKxkuE5toffS+1/YR/8AS6GQZAxZd3qvffJQtjEe5AgNQGaN//N/caZxAAAODFyZsnLcnZIGz47UiVVeNeWpWDlmJbhILW8rv7oaYBz4SpWS+ZJKuwofHMeVH8DXoFMjVHpmXFdJpR1zzRipWFUiVYJaIlVCLpynQO0fHRE7uQ5Vg/JUUQl8TfyeoAXGzJyVI1aemVGdSg24WXtEPKYLdWJ0lQ4HHOdnIKdjzLP04eGsZ+4csbeDelukY3XyfVqO6Ts6ciWdGtyIQKOfajAjlXVneAL1HCCYpzGy1O9xn4fDI/RLe6r6YhxkqKECes0BaZBwoFgHXZV4pVBrRufKg4U1LzHckwwSYSrQBy2ANh1RSkXLNWxvU7qcEQPUSM2XOqYjGQTQRQOB3UQVVwT8WauIvzBtsQZpcFlT2tiI9Y3RS25gmlM844DtdOSANkhHNC35KKbALj9AGYFanCrguAe1K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+hPuFaZxbYJmXXhnK6hB6FzmNisXRUVJWaygjyYvNBhdO+5xhCHWKWC0JEMcLngXCTFlXh2bHRHZtcviCv0LUzAU7rmBXZgdHqRmjzjwZYU1+iFnIzSv8x3uqfE6AJCeCw7QxOSGVS4O6Bxorv5XYca9laN3PBImlGAfG5/uqplYR3plzjBu5GYIfZZLCtbAL++LtUfeePa3YUC+BJF1ueewlg0OfG2if3HLv7ztYy06p1+BHpkgp6R/bhNQ14e2Tgm5JUotvXOq1gn0NPBKued71nTgrrq47u4DENe/at5CXyBuxYiSwu1pnB8sjED3QIDn0+Oer7plgp4t3Z5tDrTvAt2jP6G5gG/VRvtnPlg2Xj5AmUgMmSoI66Eqp4iDjM9R5Tdp0Hb0KN1duIZ+bmbFGy8oje5GgM6KSbFKvxcUQbwIAJSWPRPUI0qAfsoBeg6wg34beqRT0qDBU6Ea44gLxZ9H58oho4ojVM1s0IcbqGFBmyQ+KVq+Rn9zuTr9ff+q++PaWy9IGkSgG7aYe/ePqBamIBu6xruTznWI5egLDnwxGs4/Ye97bpQhKZJqv7/7GfkgF+rEBGfCVWZCTPnOjwxnPWcyxAqtLMZanXyfSv/Hz46iWQl6ryEc6KdaQ3440BkBh1qeRon4sTqGC2liNQdGdUra0xL+H/kMAsbYr+iHAAAAAElFTkSuQmCC",o),preserveAspectRatio:"xMidYMid slice"}),e("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),e("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:e("feFuncA",{type:"discrete",tableValues:`0 ${.05*r} 1`})}),e("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*("shader"===i?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),e("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.02*r),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),e("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.03*r),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),e("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),e("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),e("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),e("feGaussianBlur",{in:"RGB_COMBINED",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),e("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),e("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:e("feFuncA",{type:"table",tableValues:"1 0"})}),e("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),e("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})});De.displayName="GlassFilter";const ke=s(De,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),Be=new Map,Pe=l((({children:n,className:a="",style:s,displacementScale:l=25,blurAmount:h=.0625,saturation:u=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},globalMousePosition:g={x:0,y:0},onMouseEnter:f,onMouseLeave:S,onMouseDown:b,onMouseUp:E,active:v=!1,isHovered:A=!1,isActive:y=!1,overLight:T=!1,cornerRadius:N=0,padding:_="0 0",glassSize:C={width:0,height:0},onClick:L,mode:x="standard",effectiveDisableEffects:I=!1,effectiveReducedMotion:O=!1,shaderVariant:R="liquidGlass",enableLiquidBlur:w=!1,elasticity:M=0,contentRef:D},k)=>{const B=c(),[P,F]=r(""),z=i(null),U=i(null),G=i(null);o((()=>{"shader"===x?Promise.resolve().then((function(){return ot})).then((e=>{U.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):U.current=null}),[x]),o((()=>{if("shader"===x&&C&&Ie(C)&&U.current){const e=`${C.width}x${C.height}-${R}`,t=(e=>{const t=Be.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void F(t);G.current&&clearTimeout(G.current);const n=()=>{if(U.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:n}=U.current;z.current?.destroy();const a=n[R]||n.liquidGlass;z.current=new t({width:C.width,height:C.height,fragment:a});const r=()=>{const t=z.current?.updateShader()||"";((e,t)=>{if(Be.size>=15){const e=Array.from(Be.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&Be.delete(t[0])}Be.set(e,{url:t,timestamp:Date.now()}),"production"!==process.env.NODE_ENV&&Be.size})(e,t),F(t)};"undefined"!=typeof requestIdleCallback?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,0)}catch(t){F("")}else G.current=setTimeout(n,100)};G.current=setTimeout(n,300)}else F("");return()=>{G.current&&(clearTimeout(G.current),G.current=null);try{z.current?.destroy()}catch(e){}finally{z.current=null}}}),[x,C,R]);const[V,H]=r(null);o((()=>{if(!k||"function"==typeof k)return;const e=k.current;if(e)try{H(e.getBoundingClientRect())}catch(t){H(null)}}),[k,C]);const W=d((()=>{const e={baseBlur:h,edgeBlur:1.25*h,centerBlur:1.1*h,flowBlur:1.2*h};if(!w||!V||!g||"number"!=typeof g.x||"number"!=typeof g.y||isNaN(g.x)||isNaN(g.y))return e;try{const e=Ce(V),t=_e(g,e),n=Math.sqrt(V.width*V.width+V.height*V.height)/2,a=Math.min(t/n,1),r=Le(p),i=h+r*h*.4,o=i*(.8+.6*(1.5*a+.3*r)),s=i*(.3+.4*(.3*(1-a)+.2*r)),l=g.x-e.x,c=g.y-e.y,d=i*(.4+.6*(.5*Math.sin(Math.atan2(c,l)+r*Math.PI)+.5)),u=(A?1.2:1)*(y?1.4:1);return{baseBlur:xe(i*u),edgeBlur:xe(o*u),centerBlur:xe(s*u),flowBlur:xe(d*u)}}catch(t){return e}}),[w,h,g,p,A,y,V,s,C]),Y=d((()=>{try{const e=u+20*(W.baseBlur||0),t="number"!=typeof W.baseBlur||isNaN(W.baseBlur)?0:W.baseBlur,n="number"!=typeof W.edgeBlur||isNaN(W.edgeBlur)?0:W.edgeBlur,a="number"!=typeof W.centerBlur||isNaN(W.centerBlur)?0:W.centerBlur,r="number"!=typeof W.flowBlur||isNaN(W.flowBlur)?0:W.flowBlur,i=V?V.width*V.height:0;return!w||O||I||i>18e4?{backdropFilter:`blur(${xe(Math.max(t,.8*n,1.1*a,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}:{backdropFilter:`${[`blur(${t}px)`,`blur(${n}px)`,`blur(${a}px)`,`blur(${r}px)`].join(" ")} saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}}catch(e){return{backdropFilter:`blur(${h}px) saturate(${u}%) contrast(1.05) brightness(1.05)`}}}),[B,W,u,h,V,O,I,w]),K=d((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-width":""+C?.width,"--atomix-glass-container-height":""+C?.height,"--atomix-glass-container-padding":_||"0 0","--atomix-glass-container-radius":("number"!=typeof N||isNaN(N)?0:N)+"px","--atomix-glass-container-backdrop":Y?.backdropFilter||"none","--atomix-glass-container-shadow":T?[`inset 0 1px 0 rgba(255, 255, 255, ${.4+.002*e})`,`inset 0 -1px 0 rgba(0, 0, 0, ${.2+.001*Math.abs(t)})`,`inset 0 0 20px rgba(0, 0, 0, ${.08+.001*Math.abs(e+t)})`,`0 2px 12px rgba(0, 0, 0, ${.12+.002*Math.abs(t)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset","--atomix-glass-container-shadow-opacity":I?0:1,"--atomix-glass-container-bg":T?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none","--atomix-glass-container-text-shadow":T?"0px 2px 12px rgba(0, 0, 0, 0)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":T?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[C,_,N,Y,p,T,I]);return e("div",{ref:k,className:`${ye.CONTAINER_CLASS} ${a} ${v?ye.CLASSES.ACTIVE:""} ${T?ye.CLASSES.OVER_LIGHT:""}`,style:{...s,...K},onClick:L,children:t("div",{className:ye.INNER_CLASS,style:{padding:"var(--atomix-glass-container-padding)",boxShadow:"var(--atomix-glass-container-box-shadow)"},onMouseEnter:f,onMouseLeave:S,onMouseDown:b,onMouseUp:E,children:[t("div",{className:ye.FILTER_CLASS,children:[e(ke,{blurAmount:h,mode:x,id:B,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:P}),e("div",{className:ye.FILTER_OVERLAY_CLASS,suppressHydrationWarning:!0,style:{filter:`url(#${B})`,backdropFilter:"var(--atomix-glass-container-backdrop)",borderRadius:"var(--atomix-glass-container-radius)"}}),e("div",{className:ye.FILTER_SHADOW_CLASS,style:{boxShadow:"var(--atomix-glass-container-shadow)",opacity:"var(--atomix-glass-container-shadow-opacity)",background:"var(--atomix-glass-container-bg)",borderRadius:"var(--atomix-glass-container-radius)"}})]}),e("div",{ref:D,className:ye.CONTENT_CLASS,style:{position:"relative",textShadow:"var(--atomix-glass-container-text-shadow)",...M>0?{zIndex:100}:{}},children:n})]})})}));Pe.displayName="AtomixGlassContainer";const Fe=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},{CONSTANTS:ze}=ye,Ue=new WeakMap,Ge=(e,t,n,a)=>{e&&Ue.set(e,{result:n,timestamp:Date.now(),config:t,threshold:a})};function Ve({glassRef:e,contentRef:t,cornerRadius:n,globalMousePosition:a,mouseOffset:s,mouseContainer:l,overLight:c=ye.DEFAULTS.OVER_LIGHT,reducedMotion:u=!1,highContrast:m=!1,disableEffects:p=!1,elasticity:g=.05,onClick:f,debugCornerRadius:S=!1,debugOverLight:b=!1,enablePerformanceMonitoring:E=!1,children:v}){const[A,y]=r(!1),[T,N]=r(!1),[_,C]=r({width:270,height:69}),[L,x]=r({x:0,y:0}),[I,O]=r({x:0,y:0}),[R,w]=r(ze.DEFAULT_CORNER_RADIUS),[M,D]=r(!1),[k,B]=r(!1),[P,F]=r(!1),z=d((()=>Math.max(0,void 0!==n?n:R)),[n,R,S]),U=d((()=>u||M),[u,M]),G=d((()=>m||k),[m,k]),V=d((()=>p||U),[p,U]),H=d((()=>a||L),[a,L]),W=d((()=>s||I),[s,I]);o((()=>{const e=()=>{try{let e=null,n="default";if(t.current){const a=t.current.firstElementChild;if(a){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),n=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(n&&"0px"!==n&&"auto"!==n){const e=Oe(n);return e>0?e:null}return null}catch(t){return null}})(a);null!==t&&t>0&&(e=t,n="DOM element")}}if(null===e){const t=we(v);t>0&&t!==ze.DEFAULT_CORNER_RADIUS&&(e=t,n="React children")}null!==e&&e>0?w(e):process.env.NODE_ENV}catch(e){process.env.NODE_ENV}};e();const n=setTimeout(e,100);return()=>clearTimeout(n)}),[v,S,t]),o((()=>{if(("auto"===c||"object"==typeof c&&null!==c)&&e.current){const t=e.current,n=((e,t)=>{if(!e)return null;const n=Ue.get(e);return n&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const n=e,a=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const i of r){const e=n[i],t=a[i];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(n.config,t)?(n.timestamp=Date.now(),n.result):null})(t.parentElement,c);if(null!==n)return void F(n);const a=setTimeout((()=>{try{if(!t)return void F(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void F(!1);let n=0,a=0,r=!1,i=t.parentElement,o=0;const s=20,l=10;for(;i&&l>a&&s>o;){try{const e=window.getComputedStyle(i);if(!e){i=i.parentElement,o++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),i=Number(e[1]),o=Number(e[2]);if(!isNaN(t)&&!isNaN(i)&&!isNaN(o)&&isFinite(t)&&isFinite(i)&&isFinite(o)&&t>=0&&255>=t&&i>=0&&255>=i&&o>=0&&255>=o&&(t>10||i>10||o>10)){const e=(.299*t+.587*i+.114*o)/255;!isNaN(e)&&isFinite(e)&&(n+=e,a++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(n+=.5,a++,r=!0)}catch(e){process.env.NODE_ENV}if(!i)break;i=i.parentElement,o++}if(r&&a>0){const e=n/a;if(!isNaN(e)&&isFinite(e)){let n=.7;if("object"==typeof c&&null!==c){const e=c;if(void 0!==e.threshold){const t="number"==typeof e.threshold&&!isNaN(e.threshold)&&isFinite(e.threshold)?e.threshold:.7;n=Math.min(.9,Math.max(.1,t))}}const a=e>n;Ge(t.parentElement,c,a,n),F(a)}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;Ge(t.parentElement,c,e,n),F(e)}}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;Ge(t.parentElement,c,e,n),F(e)}}catch(n){process.env.NODE_ENV;const e=!1;if(t&&t.parentElement){const n="object"==typeof c&&null!==c&&c.threshold||.7;Ge(t.parentElement,c,e,n)}F(e)}}),150);return()=>clearTimeout(a)}if("boolean"==typeof c&&F(!1),"function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");D(e.matches),B(t.matches);const n=e=>{D(e.matches)},a=e=>{B(e.matches)};return e.addEventListener?(e.addEventListener("change",n),t.addEventListener("change",a)):e.addListener&&(e.addListener(n),t.addListener(a)),()=>{try{e.removeEventListener?(e.removeEventListener("change",n),t.removeEventListener("change",a)):e.removeListener&&(e.removeListener(n),t.removeListener(a))}catch(r){}}}catch(t){return}}),[c,e,b]);const Y=i(null),K=i(null),j=h((t=>{if(a&&s)return;if(V)return;const n=l?.current||e.current;if(!n)return;E&&performance.now();let r=Y.current;if(r&&0!==r.width&&0!==r.height||(r=n.getBoundingClientRect(),Y.current=r),0===r.width||0===r.height)return;const i=Ce(r),o={x:(t.x-i.x)/r.width*100,y:(t.y-i.y)/r.height*100};O(o),x(t),"production"!==process.env.NODE_ENV&&E&&performance.now()}),[l,e,a,s,V,E]);o((()=>{if(a&&s)return;if(V)return;const t=Fe.subscribe(j),n=l?.current||e.current;let r=null;return n&&"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{null!==K.current&&cancelAnimationFrame(K.current),K.current=requestAnimationFrame((()=>{const t=l?.current||e.current;t&&(Y.current=t.getBoundingClientRect()),K.current=null}))})),r.observe(n)),()=>{t(),null!==K.current&&(cancelAnimationFrame(K.current),K.current=null),r&&r.disconnect()}}),[j,l,e,a,s,V]);const $=h((()=>{if(!(H.x&&H.y&&e.current&&Ie(_)))return"scale(1)";const t=e.current.getBoundingClientRect(),n=Ce(t),a=H.x-n.x,r=H.y-n.y,i=Math.max(0,Math.abs(a)-_.width/2),o=Math.max(0,Math.abs(r)-_.height/2),s=_e({x:i,y:o},{x:0,y:0});if(s>ze.ACTIVATION_ZONE)return"scale(1)";const l=1-s/ze.ACTIVATION_ZONE,c=_e(H,n);if(0===c)return"scale(1)";const d=a/c,h=r/c,u=Math.min(c/300,1)*g*l,m=1+Math.abs(d)*u*.3-Math.abs(h)*u*.15,p=1+Math.abs(h)*u*.3-Math.abs(d)*u*.15;return`scaleX(${Math.max(.8,m)}) scaleY(${Math.max(.8,p)})`}),[H,g,_,e]),Q=h((()=>{if(!(H.x&&H.y&&e.current&&Ie(_)))return 0;const t=e.current.getBoundingClientRect(),n=Ce(t),a=Math.max(0,Math.abs(H.x-n.x)-_.width/2),r=Math.max(0,Math.abs(H.y-n.y)-_.height/2),i=_e({x:a,y:r},{x:0,y:0});return i>ze.ACTIVATION_ZONE?0:1-i/ze.ACTIVATION_ZONE}),[H,_,e]),Z=h((()=>{if(!e.current)return{x:0,y:0};const t=Q(),n=e.current.getBoundingClientRect(),a=Ce(n);return{x:(H.x-a.x)*g*.1*t,y:(H.y-a.y)*g*.1*t}}),[H,g,Q,e]),q=d((()=>V?{x:0,y:0}:Z()),[Z,V]),X=d((()=>V?"scale(1)":$()),[$,V]),J=d((()=>V?T&&f?"scale(0.98)":"scale(1)":`translate(${q.x}px, ${q.y}px) ${T&&f?"scale(0.96)":X}`),[q,T,f,X,V]);o((()=>{const t=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let n=null,a={width:0,height:0},r=z;const i=(i=!1)=>{null!==n&&cancelAnimationFrame(n),n=requestAnimationFrame((()=>{if(!t(e.current))return void(n=null);const o=e.current.getBoundingClientRect();if(0>=o.width||0>=o.height)return void(n=null);const s={width:Math.round(o.width),height:Math.round(o.height)},l=r!==z,c=Math.abs(s.width-a.width)>1||Math.abs(s.height-a.height)>1;var d;(i||l||c)&&Ie(d=s)&&d.width<=ze.MAX_SIZE&&d.height<=ze.MAX_SIZE&&(a=s,r=z,C(s)),n=null}))};let o=null;const s=()=>{o&&clearTimeout(o),o=setTimeout((()=>i(!1)),16)},l=setTimeout((()=>i(!0)),0);let c=null,d=null;if("undefined"!=typeof ResizeObserver&&t(e.current))try{c=new ResizeObserver((t=>{for(const n of t)if(n.target===e.current){e.current&&(Y.current=e.current.getBoundingClientRect()),d&&clearTimeout(d),d=setTimeout((()=>i(!1)),16);break}})),c.observe(e.current)}catch(h){}return window.addEventListener("resize",s,{passive:!0}),()=>{clearTimeout(l),null!==n&&cancelAnimationFrame(n),o&&clearTimeout(o),d&&clearTimeout(d),window.removeEventListener("resize",s),c?.disconnect()}}),[z,e]);const ee=h((()=>"boolean"==typeof c?c:("auto"===c||"object"==typeof c&&null!==c)&&P),[c,P]),te=h(((e,t,n,a)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?a:Math.min(n,Math.max(t,e))),[]),ne=d((()=>{const e=ee(),t=Le(W),n=A?1.4:1,a=T?1.6:1,r={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*n*a)):0,contrast:Math.min(1.8,Math.max(1,1.4+.3*t)),brightness:Math.min(1.2,Math.max(.7,.85+.15*t)),saturationBoost:Math.min(2,Math.max(1,1.3+.4*t)),shadowIntensity:Math.min(1.5,Math.max(.5,.9+.5*t)),borderOpacity:Math.min(1,Math.max(.3,.7+.3*t))};if("object"==typeof c&&null!==c){const e=c,i=te(e.threshold,.1,1,r.threshold),o=te(e.opacity,.1,1,r.opacity),s=te(e.contrast,.5,2.5,r.contrast),l=te(e.brightness,.5,2,r.brightness),d=te(e.saturationBoost,.5,3,r.saturationBoost),h={...r,threshold:i,opacity:o*n*a,contrast:s+.3*t,brightness:l+.15*t,saturationBoost:d+.4*t};return process.env.NODE_ENV,h}return process.env.NODE_ENV,r}),[c,ee,W,A,T,te,b]),ae=h((()=>y(!0)),[]),re=h((()=>y(!1)),[]),ie=h((()=>N(!0)),[]),oe=h((()=>N(!1)),[]),se=h((e=>{!f||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}),[f]),le=h((e=>{}),[]);return{isHovered:A,isActive:T,glassSize:_,dynamicCornerRadius:R,effectiveCornerRadius:z,effectiveReducedMotion:U,effectiveHighContrast:G,effectiveDisableEffects:V,detectedOverLight:P,globalMousePosition:H,mouseOffset:W,overLightConfig:ne,elasticTranslation:q,directionalScale:X,transformStyle:J,handleMouseEnter:ae,handleMouseLeave:re,handleMouseDown:ie,handleMouseUp:oe,handleMouseMove:le,handleKeyDown:se}}function He({children:a,displacementScale:r=ye.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s=ye.DEFAULTS.BLUR_AMOUNT,saturation:l=ye.DEFAULTS.SATURATION,aberrationIntensity:c=ye.DEFAULTS.ABERRATION_INTENSITY,elasticity:h=ye.DEFAULTS.ELASTICITY,cornerRadius:u,globalMousePosition:m,mouseOffset:p,mouseContainer:g=null,className:f="",padding:S=ye.DEFAULTS.PADDING,overLight:b=ye.DEFAULTS.OVER_LIGHT,style:E={},mode:v=ye.DEFAULTS.MODE,onClick:A,shaderVariant:y="liquidGlass","aria-label":T,"aria-describedby":N,role:_,tabIndex:C,reducedMotion:L=!1,highContrast:x=!1,disableEffects:I=!1,enableLiquidBlur:O=!1,enableBorderEffect:R=!0,enableOverLightLayers:w=ye.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,enablePerformanceMonitoring:M=!1,debugCornerRadius:D=!1,debugOverLight:k=!1}){const B=i(null),P=i(null),F=i(null),{isHovered:z,isActive:U,glassSize:G,effectiveCornerRadius:V,effectiveReducedMotion:H,effectiveHighContrast:W,effectiveDisableEffects:Y,overLightConfig:K,globalMousePosition:j,mouseOffset:$,transformStyle:Q,handleMouseEnter:Z,handleMouseLeave:q,handleMouseDown:X,handleMouseUp:J,handleKeyDown:ee}=Ve({glassRef:B,contentRef:P,cornerRadius:u,globalMousePosition:m,mouseOffset:p,mouseContainer:g,overLight:b,reducedMotion:L,highContrast:x,disableEffects:I,elasticity:h,onClick:A,debugCornerRadius:D,debugOverLight:k,enablePerformanceMonitoring:M,children:a}),te=K.isOverLight,ne=w&&te;o((()=>{if("undefined"!=typeof window&&B.current&&!F.current)try{const e=window.getComputedStyle(B.current),t=e.getPropertyValue("--atomix-opacity-50").trim(),n=e.getPropertyValue("--atomix-opacity-40").trim(),a=e.getPropertyValue("--atomix-opacity-80").trim(),r=e.getPropertyValue("--atomix-opacity-0").trim(),i=(e,t)=>{if(!e)return t;const n=parseFloat(e);return isNaN(n)?t:n};F.current={opacity50:i(t,.5),opacity40:i(n,.4),opacity80:i(a,.8),opacity0:i(r,0)}}catch(e){F.current={opacity50:.5,opacity40:.4,opacity80:.8,opacity0:0}}}),[]);const ae=d((()=>({...E,...0!==h&&!Y&&{transform:Q}})),[E,Q,Y,h]),re=d((()=>[ye.BASE_CLASS,H&&ye.BASE_CLASS+"--reduced-motion",W&&ye.BASE_CLASS+"--high-contrast",Y&&ye.BASE_CLASS+"--disabled-effects",f].filter(Boolean).join(" ")),[H,W,Y,f]),ie=ae.position,oe=ae.top,se=ae.left,le=d((()=>({position:ie||"absolute",top:oe||0,left:se||0})),[ie,oe,se]),ce=ae.width,de=ae.height,he=G.width,ue=G.height,me=d((()=>({width:"fixed"!==ie?"100%":ce||Math.max(he,0),height:"fixed"!==ie?"100%":de||Math.max(ue,0)})),[ie,ce,de,he,ue]),pe=$.x,ge=$.y,fe=ye.CONSTANTS.GRADIENT,Se=d((()=>{const e=pe,t=ge,n=fe.BASE_ANGLE+e*fe.ANGLE_MULTIPLIER,a=Math.max(fe.BORDER_STOP_1.MIN,fe.BORDER_STOP_1.BASE+t*fe.BORDER_STOP_1.MULTIPLIER),r=Math.min(fe.BORDER_STOP_2.MAX,fe.BORDER_STOP_2.BASE+t*fe.BORDER_STOP_2.MULTIPLIER),i=fe.BORDER_OPACITY.BASE_1+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_LOW,o=fe.BORDER_OPACITY.BASE_2+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_HIGH,s=fe.BORDER_OPACITY.BASE_3+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_LOW,l=fe.BORDER_OPACITY.BASE_4+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_HIGH,c=fe.CENTER_POSITION+e/fe.HOVER_POSITION.DIVISOR_1,d=fe.CENTER_POSITION+t/fe.HOVER_POSITION.DIVISOR_1,h=fe.CENTER_POSITION+e/fe.HOVER_POSITION.DIVISOR_2,u=fe.CENTER_POSITION+t/fe.HOVER_POSITION.DIVISOR_2,m=fe.CENTER_POSITION+e*fe.HOVER_POSITION.MULTIPLIER_3,p=fe.CENTER_POSITION+t*fe.HOVER_POSITION.MULTIPLIER_3,g=fe.CENTER_POSITION+e*fe.BASE_LAYER_MULTIPLIER,f=fe.CENTER_POSITION+t*fe.BASE_LAYER_MULTIPLIER;return{isOverLight:te,mx:e,my:t,borderGradientAngle:n,borderStop1:a,borderStop2:r,borderOpacity1:i,borderOpacity2:o,borderOpacity3:s,borderOpacity4:l,hover1X:c,hover1Y:d,hover2X:h,hover2Y:u,hover3X:m,hover3Y:p,baseX:g,baseY:f}}),[pe,ge,te]),be=K.opacity,Ee=d((()=>{const e=F.current?.opacity50??.5,t=F.current?.opacity40??.4,n=F.current?.opacity80??.8,a=F.current?.opacity0??0;return{hover1:z||U?e:a,hover2:U?e:a,hover3:z?t:U?n:a,base:te?be||t:a,over:te?1.1*(be||t):a}}),[z,U,te,be]),ve=Se.isOverLight,Ae=Se.mx,Te=Se.my,Ne=Se.borderGradientAngle,_e=Se.borderStop1,Ce=Se.borderStop2,Le=Se.borderOpacity1,xe=Se.borderOpacity2,Ie=Se.borderOpacity3,Oe=Se.borderOpacity4,Re=Se.hover1X,we=Se.hover1Y,Me=Se.hover2X,De=Se.hover2Y,ke=Se.hover3X,Be=Se.hover3Y,Fe=Se.baseX,ze=Se.baseY,Ue=le.position,Ge=le.top,He=le.left,We=me.width,Ye=me.height,Ke=ae.transform,je=Ee.hover1,$e=Ee.hover2,Qe=Ee.hover3,Ze=Ee.base,qe=Ee.over,Xe=d((()=>{const e="255, 255, 255",t="0, 0, 0";return{"--atomix-glass-radius":V+"px","--atomix-glass-transform":Ke||"none","--atomix-glass-position":Ue,"--atomix-glass-top":"fixed"!==Ge?Ge+"px":"0","--atomix-glass-left":"fixed"!==He?He+"px":"0","--atomix-glass-width":"fixed"!==ie?We:We+"px","--atomix-glass-height":"fixed"!==ie?Ye:Ye+"px","--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.09375rem)","--atomix-glass-blend-mode":ve?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${Ne}deg, rgba(${e}, 0) 0%, rgba(${e}, ${Le}) ${_e}%, rgba(${e}, ${xe}) ${Ce}%, rgba(${e}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${Ne}deg, rgba(${e}, 0) 0%, rgba(${e}, ${Ie}) ${_e}%, rgba(${e}, ${Oe}) ${Ce}%, rgba(${e}, 0) 100%)`,"--atomix-glass-hover-1-opacity":je,"--atomix-glass-hover-1-gradient":ve?`radial-gradient(circle at ${Re}% ${we}%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${t}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${Re}% ${we}%, rgba(${e}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${e}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":$e,"--atomix-glass-hover-2-gradient":ve?`radial-gradient(circle at ${Me}% ${De}%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${t}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${Me}% ${De}%, rgba(${e}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${e}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":Qe,"--atomix-glass-hover-3-gradient":ve?`radial-gradient(circle at ${ke}% ${Be}%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${t}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${t}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${ke}% ${Be}%, rgba(${e}, ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${e}, 0) ${ye.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":Ze,"--atomix-glass-base-gradient":ve?`linear-gradient(${ye.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${t}, ${ye.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+Ae*ye.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${ye.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+Te*ye.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${ye.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${ye.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+Math.abs(Ae)*ye.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${ye.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":qe,"--atomix-glass-overlay-gradient":ve?`radial-gradient(circle at ${Fe}% ${ze}%, rgba(${t}, ${ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+Math.abs(Ae)*ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+Math.abs(Te)*ye.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${ye.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`}}),[Ue,Ge,He,We,Ye,Ke,ie,V,H,ve,Ae,Te,Ne,_e,Ce,Le,xe,Ie,Oe,Re,we,Me,De,ke,Be,Fe,ze,je,$e,Qe,Ze,qe]);return t("div",{className:re,style:Xe,role:_||(A?"button":void 0),tabIndex:A?C??0:C,"aria-label":T,"aria-describedby":N,"aria-disabled":!(!A||!Y)||!A&&void 0,"aria-pressed":!(!A||!U)||!A&&void 0,onKeyDown:A?ee:void 0,children:[e(Pe,{ref:B,contentRef:P,className:f,style:ae,cornerRadius:V,displacementScale:Y?0:"shader"===v?r*ye.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:K.isOverLight?r*ye.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:r,blurAmount:Y?0:s,saturation:W?ye.CONSTANTS.SATURATION.HIGH_CONTRAST:K.isOverLight?l*K.saturationBoost:l,aberrationIntensity:Y?0:"shader"===v?c*ye.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:c,glassSize:G,padding:S,mouseOffset:Y?{x:0,y:0}:$,globalMousePosition:Y?{x:0,y:0}:j,onMouseEnter:Z,onMouseLeave:q,onMouseDown:X,onMouseUp:J,active:U,isHovered:z,isActive:U,overLight:K.isOverLight,onClick:A,mode:v,transform:ae.transform,effectiveDisableEffects:Y,effectiveReducedMotion:H,shaderVariant:y,elasticity:h,enableLiquidBlur:O,children:a}),!!A&&t(n,{children:[e("div",{className:ye.HOVER_1_CLASS}),e("div",{className:ye.HOVER_2_CLASS}),e("div",{className:ye.HOVER_3_CLASS})]}),e("div",{className:[ye.BACKGROUND_LAYER_CLASS,ye.BACKGROUND_LAYER_DARK_CLASS,te?ye.BACKGROUND_LAYER_OVER_LIGHT_CLASS:ye.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...le,height:me.height,width:me.width,borderRadius:V+"px",transform:ae.transform}}),e("div",{className:[ye.BACKGROUND_LAYER_CLASS,ye.BACKGROUND_LAYER_BLACK_CLASS,te?ye.BACKGROUND_LAYER_OVER_LIGHT_CLASS:ye.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...le,height:me.height,width:me.width,borderRadius:V+"px",transform:ae.transform}}),ne&&t(n,{children:[e("div",{className:ye.BASE_LAYER_CLASS}),e("div",{className:ye.OVERLAY_LAYER_CLASS}),e("div",{className:ye.OVERLAY_HIGHLIGHT_CLASS,style:{opacity:Ee.over*ye.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,background:`radial-gradient(circle at ${ye.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${ye.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${ye.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${ye.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}})]}),R&&t(n,{children:[e("span",{className:ye.BORDER_1_CLASS}),e("span",{className:ye.BORDER_2_CLASS})]})]})}const We=({title:n,children:a,defaultOpen:r=!1,isOpen:i,onOpenChange:o,disabled:s=!1,iconPosition:l="right",icon:d,className:h="",style:u,glass:m})=>{const p=c(),g="accordion-header-"+p,f="accordion-panel-"+p,{state:S,toggle:b,updatePanelHeight:E,panelRef:v,contentRef:A,generateClassNames:y,generateHeaderClassNames:T}=Te({defaultOpen:r,disabled:s,iconPosition:l,isOpen:i,onOpenChange:o}),N=e("i",{className:"c-accordion__icon","aria-hidden":"true",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),_=t("div",{className:y(h)+(m?" c-accordion--glass":""),style:u,children:[t("button",{id:g,className:T(),onClick:b,"aria-expanded":S.isOpen,"aria-controls":f,"aria-disabled":s,disabled:s,type:"button",children:[e("span",{className:"c-accordion__title",children:n}),d||N]}),e("div",{id:f,className:D.SELECTORS.PANEL.replace(".",""),ref:v,role:"region","aria-labelledby":g,children:e("div",{className:D.SELECTORS.BODY.replace(".",""),ref:A,children:a})})]});if(m){const t={displacementScale:20,elasticity:0},n=!0===m?t:{...t,...m};return e(He,{...n,children:_})}return _};We.displayName="Accordion";const Ye=({height:n=24,width:a=24,color:r="currentColor",...i})=>t("svg",{width:a,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]}),Ke=8e-4,je=4096,$e=(e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return 0;const a=Math.max(0,Math.min(1,(n-e)/(t-e)));return a*a*(3-2*a)},Qe=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(Math.abs(e),Math.abs(t));if(0===n)return 0;const a=e/n,r=t/n;return n*Math.sqrt(a*a+r*r)},Ze=(e,t,n,a,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r)return 0;const i=Math.abs(e)-n+r,o=Math.abs(t)-a+r;return Math.min(Math.max(i,o),0)+Qe(Math.max(i,0),Math.max(o,0))-r},qe=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),Xe=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),Je=(e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)?t:isNaN(t)?0:isNaN(n)?1:Math.max(t,Math.min(n,e)),et=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},tt=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),nt=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=et(r),s=et(i),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const n=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return n-Math.floor(n)},c=l(n,a),d=l(n+1,a),h=l(n,a+1),u=c+o*(d-c);return u+s*(h+o*(l(n+1,a+1)-h)-u)},at=(e,t,n=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(1,Math.min(8,Math.floor(n)));let r=0,i=.5,o=1;for(let s=0;a>s;s++)r+=i*nt(e*o,t*o),o*=2,i*=.5;return r},rt=(e,t,n,a=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(r))return{x:0,y:0};const i=Math.min(.02*n,.1);return{x:(e-a)*i,y:(t-r)*i}},it={liquidGlass:(e,t)=>{if(!Xe(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Ke,i=t&&Xe(t)?t.x-.5:0,o=t&&Xe(t)?t.y-.5:0,s=Qe(i,o),l=tt(1-Math.min(2*s,1)),c=at(12*(n+.5*i)+r,12*(a+.5*o)+.7*r,3)-.5,d=Ze(n,a,.4,.3,.35),h=$e(.8,0,d-.05),u=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Qe(e,t),r=Math.pow(Math.min(a,10),2)*n;return{x:e*(1+r),y:t*(1+r)}})(n,a,.4*.1),m=1.2*(u.x-n)*h,p=1.2*(u.y-a)*h,g=.018*Math.sin(8*(n+2*i)+2*r),f=.018*Math.cos(8*(a+2*o)+1.5*r),S=(.015*Math.sin(12*(n-i)+12*(a-o)+3*r)+.012*Math.cos(10*(n+i)-10*(a-o)-2*r))*l*s,b=(Math.sin(15*n+r)*Math.cos(15*a-r)*.008+Math.sin(20*n-.5*r)*Math.cos(20*a+.5*r)*.006)*h,E=.85*(g+f+.025*c),v=m+E+S+b,A=p+.8*E+.9*S+b,y=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Qe(e,t);if(0===a)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*a*n,y:Math.sin(r)*a*n}})(n,a,.015*h),T=$e(0,1,1.15*h),N=n+v+.5*y.x,_=a+A+.5*y.y;return qe(Je(N*T+.5,0,1),Je(_*T+.5,0,1))},appleFluid:(e,t)=>{if(!Xe(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Ke*.6,i=t&&Xe(t)?t.x-.5:0,o=t&&Xe(t)?t.y-.5:0,s=Qe(i,o),l=tt(1-Math.min(1.5*s,1)),c=at(10*(n+.3*i)+r,10*(a+.3*o),5)-.5,d=at(10*(n-.3*i),10*(a-.3*o)+.8*r,5)-.5,h=Ze(n,a,.42,.32,.38),u=$e(.85,-.1,h),m=Math.sin(6*n+2*r)*Math.cos(4*a-r)*.025,p=Math.cos(4*n-r)*Math.sin(6*a+2*r)*.025,g=Math.atan2(a-o,n-i),f=l*s*.08,S=Math.cos(g+r)*f,b=a+(.035*d+p+Math.sin(g+r)*f)*u;return qe(Je(n+(.035*c+m+S)*u+.5,0,1),Je(b+.5,0,1))},premiumGlass:(e,t)=>{if(!Xe(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Ke*.4,i=t&&Xe(t)?t.x-.5:0,o=t&&Xe(t)?t.y-.5:0,s=Qe(i,o),l=Qe(n,a),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(a,n);let h=0,u=0;for(let E=0;3>E;E++){const e=5*(E+1),t=r*(1+.3*E),i=.01/(E+1);h+=Math.sin(n*e+t)*i,u+=Math.cos(a*e-t)*i}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=at(8*n+r,8*a-r,2)-.5,f=Ze(n,a,.43,.33,.36),S=$e(.9,-.05,f),b=a+(p+u+.015*g)*S;return qe(Je(n+(m+h+.015*g)*S+.5,0,1),Je(b+.5,0,1))},liquidMetal:(e,t)=>{if(!Xe(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Ke*1.2,i=t&&Xe(t)?t.x-.5:0,o=t&&Xe(t)?t.y-.5:0,s=Math.sin(20*n+4*r)*Math.cos(15*a-3*r)*.02,l=Math.cos(15*n-2*r)*Math.sin(20*a+5*r)*.015,c=.025*at(25*n+2*r,25*a-2*r,4),d=Math.atan2(a-o,n-i),h=Qe(n-i,a-o),u=.02*Math.sin(15*h-6*r)*tt(1-Math.min(2*h,1)),m=Ze(n,a,.41,.31,.37),p=$e(.88,-.08,m),g=n+(s+c+Math.cos(d)*u)*p,f=a+(l+.8*c+Math.sin(d)*u)*p;return qe(Je(g+.5,0,1),Je(f+.5,0,1))},basiBasi:(e,t)=>{if(!Xe(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Ke*.5,i=t&&Xe(t)?t.x-.5:0,o=t&&Xe(t)?t.y-.5:0,s=Qe(i,o),l=tt(1-Math.min(1.2*s,1)),c=((e,t,n,a=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)?.5:.5*(Math.sin(8*e+2*n)*Math.cos(8*t-2*n)*.5+Math.sin(8*(e+.5)*1.3-2*n*.8)*Math.cos(8*(t-.3)*1.3+2*n*.8)*.3+Math.sin(8*(e-.3)*.7+2*n*1.2)*Math.cos(8*(t+.4)*.7-2*n*1.2)*.2+1)*a)(n,a,r,.8),d=.02*(c-.5),h=Math.atan2(a,n),u=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const a=Qe(e,t),r=Math.min(.025*a,1),i=.8*r,o=1*r,s=1.2*r;return{r:{x:Math.cos(n)*i,y:Math.sin(n)*i},g:{x:Math.cos(n)*o,y:Math.sin(n)*o},b:{x:Math.cos(n)*s,y:Math.sin(n)*s}}})(n,a,h),m=(u.r.x+u.g.x+u.b.x)/3,p=(u.r.y+u.g.y+u.b.y)/3;let g=0,f=0;for(let W=0;7>W;W++){const e=rt(n,a,(W+1)/7,i,o),t=at((n+e.x)*(8+2*W)+r*(.5+.1*W),(a+e.y)*(8+2*W)-r*(.5+.1*W),3)-.5,s=1/(W+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const S=((e,t,n,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(a)?.5:at(5*e+.5*a,5*t-.5*a,3)*Math.exp(-1)*.5+.5)(n,a,0,r),b=Math.cos(h)*S*.015,E=Math.sin(h)*S*.015,v=((e,t,n,a=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))return 0;const r=Math.max(1,Math.min(8,Math.floor(a)));let i=0,o=1,s=1;for(let l=0;r>l;l++)i+=Math.abs(nt(e*s+n,t*s-n))*o,s*=2,o*=.5;return i})(6*n,6*a,r,6),A=.012*Math.cos(v*Math.PI*2),y=.012*Math.sin(v*Math.PI*2),T=((e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)?.5:.5*(.7*at(40*e+.3*n,40*t-.3*n,6)+.3*at(80*e,80*t,4)))(n,a,r),N=.008*(T-.5),_=.008*(T-.5),C=Qe(n,a),L=.35*Math.pow(Math.min(C,1),1.8)*(1+l*s*.8),x=Math.cos(h)*L,I=Math.sin(h)*L,O=Math.atan2(a-o,n-i),R=Qe(n-i,a-o),w=l*Math.sin(10*R-3*r)*.025,M=Math.cos(O+2*r)*w,D=Math.sin(O+2*r)*w,k=Math.sin(10*n+5*i+2.5*r)*Math.cos(8*a-2*r)*.018,B=Math.cos(8*n-2*r)*Math.sin(10*a+5*o+2.5*r)*.018,P=(.012*Math.sin(15*Math.min(C,10)-4*r)+.008*Math.cos(20*Math.min(C,10)+3*r))*l,F=Math.cos(h)*P,z=Math.sin(h)*P,U=Ze(n,a,.44,.34,.39),G=$e(.92,-.12,U),V=$e(.85,.1,U),H=a+(1.2*I+.8*p+1.5*f+.9*E+1*y+.6*_+1.3*D+1.1*B+.7*z+.8*d)*G*V*.85;return qe(Je(n+(1.2*x+.8*m+1.5*g+.9*b+1*A+.6*N+1.3*M+1.1*k+.7*F+d)*G*V*.85+.5,0,1),Je(H+.5,0,1))}};var ot=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(je,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(je,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=je&&"number"==typeof e.height&&e.height>0&&e.height<=je&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,n=this.options.height*this.canvasDPI;let a=0;const r=[];for(let l=0;n>l;l++)for(let i=0;t>i;i++){const o={x:i/t,y:l/n},s=this.options.fragment(o,e);let c=s.x*t-i,d=s.y*n-l;const h=Math.min(2*Math.min(i/t,(t-i)/t),2*Math.min(l/n,(n-l)/n));c*=$e(0,.2,h),d*=$e(0,.2,h),a=Math.max(a,Math.abs(c),Math.abs(d)),r.push(c,d)}a=Math.max(a,1);const i=this.context.createImageData(t,n),o=i.data;let s=0;for(let e=0;n>e;e++)for(let i=0;t>i;i++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(i,e,t-i-1,n-e-1)/2),h=l*d/a+.5,u=c*d/a+.5,m=4*(e*t+i);o[m]=Je(255*h,0,255),o[m+1]=Je(255*u,0,255),o[m+2]=Je(255*u,0,255),o[m+3]=255}return this.context.putImageData(i,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},fragmentShaders:it});const st={xs:16,sm:20,md:24,lg:32,xl:40},lt=({name:t,size:n="md",weight:a="regular",color:r,className:i="",style:o,alt:s})=>{const l=E[t];return l?e("span",{className:`c-icon c-icon--${n} ${i}`,style:o,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof n?st[n]||24:n,weight:a,color:r,"aria-label":s})}):null};lt.displayName="Icon";const ct=({src:t,alt:n="Avatar",initials:a,icon:i,size:o="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:h,glass:u})=>{const[m,p]=r(!1),g=[de.CLASSES.BASE,"md"!==o&&"c-avatar--"+o,s&&de.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:h,children:t&&!m?e("img",{src:t,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",a?{className:"c-avatar__initials",children:a}:i?{className:"c-avatar__icon",children:i}:{className:"c-avatar__icon",children:e(lt,{name:"User",size:"xs"===o?"xs":"sm"===o?"sm":"md"})})})};ct.displayName="Avatar";const dt=({children:n,max:a,stacked:r=!1,className:i="",style:o,moreText:s})=>{const l=[he.CLASSES.BASE,r&&he.CLASSES.STACKED,i].filter(Boolean).join(" "),c=u.toArray(n).filter((e=>m(e)&&e.type===ct)),d=void 0!==a&&c.length>a,h=d?c.slice(0,a):c,g=c.length-(a||0),f=m(c[0])?c[0].props:null,S=f?.size||"md",b=f?.circle||!1,E=[de.CLASSES.BASE,he.CLASSES.MORE,"md"!==S&&"c-avatar--"+S,b&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:o,children:[h.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:E,children:s||"+"+g})]})};function ht(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:i=""}=e;return`${k.BASE_CLASS} ${n?`${k.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${k.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${i}`.trim()}}}dt.displayName="AvatarGroup";const ut=({label:n,variant:a="primary",size:r="md",disabled:o=!1,icon:s,className:l="",glass:c,style:d})=>{const{generateBadgeClass:h}=ht({variant:a,size:r,disabled:o}),u=i(null),m=h({variant:a,size:r,disabled:o,className:`${l} ${c?"c-badge--glass":""}`.trim()}),p=t("span",{className:m,"aria-disabled":o,ref:u,style:d,children:[s&&e("span",{className:k.ICON_CLASS,children:s}),e("span",{children:n})]});if(c){const t={displacementScale:20,cornerRadius:u.current?.getBoundingClientRect().width?u.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},n=!0===c?t:{...t,...c};return e(He,{...n,children:p})}return p};ut.displayName="Badge";const mt=l((({children:t,className:n="",type:a,...r},i)=>{let o="o-container";return a&&(o="o-container-"+a),e("div",{ref:i,className:`${o} ${n}`.trim(),...r,children:t})}));mt.displayName="Container";const pt=()=>({generateBlockClass:({spacing:e=ve.SPACING.DEFAULT,background:t="",fullWidth:n=!1,className:a=""})=>{const r=[ve.BASE_CLASS];if(e&&"none"!==e&&r.push(`${ve.SPACING_PREFIX}${e}`),t){const e=ve.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return n&&r.push(ve.CLASSES.FULL_WIDTH),a&&r.push(a),r.filter(Boolean).join(" ")}}),gt=l((({children:t,as:n="section",spacing:a="md",container:r={},fullWidth:i=!1,className:o="",style:s,background:l="",...c},d)=>{const{generateBlockClass:h}=pt(),u=h({spacing:a,background:l,fullWidth:i,className:o});return e(n,{ref:d,className:u,style:s,...c,children:i?t:e(mt,{type:r.type,className:r.className,children:t})})}));gt.displayName="Block";const ft=({items:a,divider:r,className:i="",ariaLabel:o="Breadcrumb",LinkComponent:s,style:l})=>{const c=[F.CLASSES.BASE,i].filter(Boolean).join(" ");return e("nav",{"aria-label":o,style:l,children:e("ol",{className:c,children:a.map(((r,i)=>{const o=i===a.length-1,l=[F.CLASSES.ITEM,r.active||o?F.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(n,{children:[r.icon&&e("span",{className:"c-breadcrumb__icon",children:r.icon}),r.label]}),d={href:r.href,className:F.CLASSES.LINK,onClick:r.onClick,style:r.style};return e("li",{className:l,style:r.style,children:r.href&&!r.active?e(s||"a",{...d,children:c}):e("span",{className:F.CLASSES.LINK,children:c})},i)}))})})};function St(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,loading:!1,fullWidth:!1,block:!1,active:!1,selected:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,rounded:i=t.rounded,iconOnly:o=!1,glass:s=t.glass,loading:l=t.loading,fullWidth:c=t.fullWidth,block:d=t.block,active:h=t.active,selected:u=t.selected,className:m=""}=e,p="md"===a?"":"c-btn--"+a,g=o?"c-btn--icon":"",f=i?"c-btn--rounded":"",S=r?"c-btn--disabled":"",b=s?"c-btn--glass":"",E=l?M.CLASSES.LOADING:"",v=c?M.CLASSES.FULL_WIDTH:"",A=d?M.CLASSES.BLOCK:"",y=h?M.CLASSES.ACTIVE:"",T=u?M.CLASSES.SELECTED:"";return[M.BASE_CLASS,"c-btn--"+n,p,g,f,S,b,E,v,A,y,T,m].filter(Boolean).join(" ")},handleClick:e=>n=>{t.disabled||t.loading||!e||e(n)}}}function bt(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:i=""}=e,o="c-spinner";return`${o} ${n?`${o}--${n}`:""} ${"md"!==a?`${o}--${a}`:""} ${r?o+"--fullscreen":""} ${i}`.trim()}}}ft.displayName="Breadcrumb";const Et=({size:t="md",variant:n="primary",fullscreen:a=!1,className:r="",style:i,glass:o})=>{const{generateSpinnerClass:s}=bt({size:t,variant:n,fullscreen:a}),l=s({size:t,variant:n,fullscreen:a,className:`${r} ${o?"c-spinner--glass":""}`.trim()}),c=e("div",{className:l,style:i,role:"status",children:e("span",{className:K.VISUALLY_HIDDEN,children:"Loading..."})});if(o){const t={displacementScale:20,blurAmount:1,cornerRadius:999,mode:"shader"},n=!0===o?t:{...t,...o};return e(He,{...n,children:c})}return c};Et.displayName="Spinner";const vt=a.memo(l((({label:a,children:r,onClick:i,variant:o="primary",size:s="md",disabled:l=!1,loading:c=!1,loadingText:u,icon:m,iconName:p,iconSize:g="sm",iconPosition:f="start",iconOnly:S=!1,rounded:b=!1,fullWidth:E=!1,block:v=!1,active:A=!1,selected:y=!1,type:T="button",className:N="",as:_="button",href:C,target:L,glass:x,onHover:I,onFocus:O,onBlur:R,ariaLabel:w,ariaDescribedBy:D,ariaExpanded:k,ariaControls:B,tabIndex:P,style:F,...z},U)=>{const G=l||c,V=!(!C||G),H=d((()=>c?null:p?e(lt,{name:p,size:g}):m),[m,p,g,c]),{generateButtonClass:W,handleClick:Y}=St({variant:o,size:s,disabled:G,rounded:b,glass:x,loading:c,fullWidth:E,block:v,active:A,selected:y}),K=d((()=>W({variant:o,size:s,disabled:G,rounded:b,iconOnly:S,glass:x,loading:c,fullWidth:E,block:v,active:A,selected:y,className:N})),[o,s,G,b,S,x,c,E,v,A,y,N,W]),j=h((e=>{G?e.preventDefault():i?.(e)}),[G,i]),$=h((e=>{G||I?.(e)}),[G,I]),Q=h((e=>{G||O?.(e)}),[G,O]),Z=h((e=>{G||R?.(e)}),[G,R]),q=d((()=>c&&u?u:a||r),[c,u,a,r]),X=d((()=>"sm"===s?"sm":"lg"===s?"md":"sm"),[s]),J=d((()=>{const a=H&&e("span",{className:M.ICON_CLASS,"aria-hidden":"true",children:H}),r=c&&e("span",{className:M.SPINNER_CLASS,"aria-hidden":"true",children:e(Et,{size:X,variant:"link"===o||"string"==typeof o&&o.startsWith("outline-")?"primary":"danger"===o?"error":o})}),i=!S&&q&&e("span",{className:M.LABEL_CLASS,children:q});return t(n,"end"===f?{children:[i,r,a]}:{children:[r,a,i]})}),[H,f,S,q,c,X,o]),ee=d((()=>({ref:U,className:K,type:"button"!==_||V?void 0:T,onClick:j,onMouseEnter:I?$:void 0,onFocus:O?Q:void 0,onBlur:R?Z:void 0,disabled:G&&"button"===_&&!V,"aria-disabled":G,"aria-busy":c,"aria-label":w||(S?a||r:void 0),"aria-describedby":D,"aria-expanded":k,"aria-controls":B,tabIndex:void 0!==P?P:G?-1:0,style:F,...z})),[U,K,_,T,j,$,Q,Z,G,c,w,S,a,r,D,k,B,P,F,z]);if(V){const{ref:t,...n}=ee,a={...n,type:void 0,disabled:void 0},r=e("a",{...a,ref:U,href:C,target:L,rel:"_blank"===L?"noopener noreferrer":void 0,children:J});if(x){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},n=!0===x?t:{...t,...x};return e(He,{...n,children:r})}return r}if(x){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},n=!0===x?t:{...t,...x};return e(He,{...n,children:e(_,{...ee,children:J})})}return e(_,{...ee,children:J})})));vt.displayName="Button";const At=({title:a,children:r,icon:i,variant:o="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,glass:h,className:u,style:m,...p})=>{const{generateCalloutClass:g,handleClose:f}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:r=t.toast,glass:i=t.glass,className:o=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${i?"c-callout--glass":""} ${o}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,oneLine:c,toast:d,glass:h,className:u,style:m}),S=()=>{const e={role:"region"};return d?(e.role="alert",e["aria-live"]="polite"):["warning","error"].includes(o)?(e.role="alert",e["aria-live"]="assertive"):["info","success"].includes(o)&&(e.role="status",e["aria-live"]="polite"),e},b=t(n,{children:[t("div",{className:"c-callout__content",children:[i&&e("div",{className:"c-callout__icon",children:i}),t("div",{className:"c-callout__message",children:[a&&e("div",{className:"c-callout__title",children:a}),r&&e("div",{className:"c-callout__text",children:r})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:f(s),"aria-label":"Close",children:e(lt,{name:"X",size:"md"})})]});if(h){const t={displacementScale:30,cornerRadius:8,elasticity:0},n=!0===h?t:{...t,...h};return e("div",{className:g({variant:o,oneLine:c,toast:d,glass:h,className:u}),...S(),...p,style:m,children:e(He,{...n,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:n.cornerRadius},children:b})})})}return e("div",{className:g({variant:o,oneLine:c,toast:d,glass:h,className:u}),...S(),...p,style:m,children:b})};At.displayName="Callout";const yt=a.memo(l((({size:a="md",variant:r="",appearance:i="filled",elevation:o="none",hoverable:s=!1,hoverElevation:l="md",row:c=!1,flat:u=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:S=!1,header:b,image:E,imageAlt:v="",title:A,text:y,actions:T,icon:N,footer:_,children:C,onClick:L,onHover:x,onFocus:I,href:O,target:R,glass:w,role:M,ariaLabel:D,ariaDescribedBy:k,tabIndex:B,className:P="",style:F,...z},U)=>{const G=!!(L||O||S),V=p||g,H=d((()=>[se.CLASSES.BASE,"sm"===a?se.CLASSES.SM:"","md"===a?se.CLASSES.MD:"","lg"===a?se.CLASSES.LG:"",r?"c-card--"+r:"","filled"===i?se.CLASSES.FILLED:"","outlined"===i?se.CLASSES.OUTLINED:"","ghost"===i?se.CLASSES.GHOST:"","elevated"===i?se.CLASSES.ELEVATED:"","none"===o?se.CLASSES.ELEVATION_NONE:"","sm"===o?se.CLASSES.ELEVATION_SM:"","md"===o?se.CLASSES.ELEVATION_MD:"","lg"===o?se.CLASSES.ELEVATION_LG:"","xl"===o?se.CLASSES.ELEVATION_XL:"",s?"c-card--hoverable":"",s&&l?"c-card--hover-elevation-"+l:"",c?se.CLASSES.ROW:"",u?se.CLASSES.FLAT:"",m?se.CLASSES.ACTIVE:"",p?se.CLASSES.DISABLED:"",g?se.CLASSES.LOADING:"",f?se.CLASSES.SELECTED:"",S||G?se.CLASSES.INTERACTIVE:"",w?se.CLASSES.GLASS:"",P].filter(Boolean).join(" ")),[a,r,i,o,s,l,c,u,m,p,g,f,S,G,w,P]),W=d((()=>M||(O?"link":G?"button":"article")),[M,O,G]),Y=h((e=>{V?e.preventDefault():L?.(e)}),[V,L]),K=h((e=>{V?e.preventDefault():!G||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L&&L(e))}),[V,G,L]),j=h((e=>{V||x?.(e)}),[V,x]),$=h((e=>{V||I?.(e)}),[V,I]),Q=d((()=>void 0!==B?B:V?-1:G?0:void 0),[B,V,G]),Z=d((()=>t(n,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(E||N||b)&&t("div",{className:se.SELECTORS.HEADER.substring(1),children:[b,E&&e("img",{src:E,alt:v,className:se.SELECTORS.IMAGE.substring(1),loading:"lazy"}),N&&e("div",{className:se.SELECTORS.ICON.substring(1),children:N})]}),t("div",{className:se.SELECTORS.BODY.substring(1),children:[A&&e("h3",{className:se.SELECTORS.TITLE.substring(1),children:A}),y&&e("p",{className:se.SELECTORS.TEXT.substring(1),children:y}),C]}),T&&e("div",{className:se.SELECTORS.ACTIONS.substring(1),children:T}),_&&e("div",{className:se.SELECTORS.FOOTER.substring(1),children:_})]})),[g,E,v,N,b,A,y,C,T,_]),q={className:H,style:F,role:W,"aria-label":D,"aria-describedby":k,"aria-disabled":!!V||void 0,tabIndex:Q,onClick:G?Y:void 0,onKeyDown:G?K:void 0,onMouseEnter:x?j:void 0,onFocus:I?$:void 0,...z};if(O&&!V){const t=e("a",{...q,ref:U,href:O,target:R,rel:"_blank"===R?"noopener noreferrer":void 0,children:Z});return w?e(He,{...!0===w?{}:w,elasticity:0,children:t}):t}const X=e("div",{...q,ref:U,children:Z});return w?e(He,{...!0===w?{}:w,elasticity:0,children:X}):X})));yt.displayName="Card";const Tt=l((({title:n,subtitle:a,action:r,icon:i,children:o,className:s="",...l},c)=>{const d=`${se.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[i&&e("div",{className:se.SELECTORS.ICON.substring(1),children:i}),(n||a)&&t("div",{children:[n&&e("h3",{className:se.SELECTORS.TITLE.substring(1),children:n}),a&&e("p",{className:se.SELECTORS.TEXT.substring(1),children:a})]}),r&&e("div",{className:se.SELECTORS.ACTIONS.substring(1),children:r}),o]})}));Tt.displayName="CardHeader";const Nt=l((({scrollable:t=!1,maxHeight:n,children:a,className:r="",style:i,...o},s)=>{const l=`${se.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...i,...t&&n?{maxHeight:"number"==typeof n?n+"px":n,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...o,children:a})}));Nt.displayName="CardBody";const _t=l((({align:t,children:n,className:a="",style:r,...i},o)=>{const s=`${se.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${a}`.trim();return e("div",{ref:o,className:s,style:r,...i,children:n})}));_t.displayName="CardFooter",yt.Header=Tt,yt.Body=Nt,yt.Footer=_t;const Ct=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=se.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:o="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=i(null),u=i(null),m=i(null),[p,g]=r(!1),[f,S]=r(!1),[b,E]=r(!1),[v,A]=r(!1),y=h((e=>{a&&"click"===o&&g((e=>!e)),c&&c(e)}),[a,o,c]),T=h((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===o&&g((e=>!e)),c&&c(e))}),[a,o,c]),N=h((()=>{A(!0),t&&S(!0),a&&"hover"===o&&g(!0)}),[t,a,o]),_=h((()=>{A(!1),t&&S(!1),a&&"hover"===o&&g(!1)}),[t,a,o]),C=h((()=>{E(!0)}),[]),L=h((()=>{E(!1)}),[]),x=h((()=>({className:[se.CLASSES.BASE,f?n:"",p?se.CLASSES.FLIPPED:"",b&&s?se.CLASSES.FOCUSED:"",l?se.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||a?0:-1,role:l?"button":void 0,onMouseEnter:N,onMouseLeave:_,onFocus:C,onBlur:L,onClick:y,onKeyDown:T})),[f,p,b,n,s,l,N,_,C,L,y,T,a]);return{cardRef:d,frontRef:u,backRef:m,isFlipped:p,isElevated:f,isFocused:b,isHovered:v,handleClick:y,handleKeyDown:T,handleMouseEnter:N,handleMouseLeave:_,handleFocus:C,handleBlur:L,getCardProps:x}},Lt=({elevationClass:t="is-elevated",className:n="",style:a,children:r,onClick:i,...o})=>{const{getCardProps:s}=Ct({elevationEffect:!0,elevationClass:t,clickable:!!i,onClick:i,focusEffect:!0}),l=s();return e("div",{className:`${n} ${l.className}`,ref:l.ref,style:a,tabIndex:l.tabIndex,role:l.role,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,onFocus:l.onFocus,onBlur:l.onBlur,onClick:l.onClick,onKeyDown:l.onKeyDown,children:e(yt,{...o,className:"",onClick:void 0,children:r})})};function xt(e){const[t,n]=r({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),a=i(null);o((()=>()=>{a.current&&cancelAnimationFrame(a.current)}),[]);const s=h(((e,t,a,r,i,o)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:i,clientY:o}})))}),[]),l=h((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),c=h(((e,t)=>{n((n=>{const a=n.selectedPoints.some((n=>n.datasetIndex===e&&n.pointIndex===t));return{...n,selectedPoints:a?n.selectedPoints.filter((n=>!(n.datasetIndex===e&&n.pointIndex===t))):[...n.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),d=h(((e,t,a)=>{n((n=>{const r=1-.001*e,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=i/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*o:n.panOffset.x,y:a?a-(a-n.panOffset.y)*o:n.panOffset.y};return{...n,zoomLevel:i,panOffset:s}}))}),[]),u=h(((e,t)=>{n((n=>({...n,panOffset:{x:n.panOffset.x+e,y:n.panOffset.y+t}})))}),[]),m=h(((e,t)=>{n((n=>({...n,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=h((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=h(((e,t)=>{n((n=>({...n,crosshair:{x:e,y:t}})))}),[]),f=h((()=>{n((e=>({...e,crosshair:null})))}),[]),S=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a={...n,touchState:{...n.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&n.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,i=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:r,y:i}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return a}))}),[]),b=h((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&n.isDragging&&n.dragStart&&n.panEnabled){const e=t[0].x-a.left,r=t[0].y-a.top,i=n.touchState.touches[0];let o,s;i?(o=e-(i.x-a.left),s=r-(i.y-a.top)):(o=e-n.dragStart.x,s=r-n.dragStart.y);const l=.6,c=o*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...n,panOffset:{x:n.panOffset.x+c,y:n.panOffset.y+d},touchState:{...n.touchState,touches:t}}:{...n,touchState:{...n.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&n.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(n.touchState.lastDistance>0){const r=e/n.touchState.lastDistance,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=(t[0].x+t[1].x)/2-a.left,s=(t[0].y+t[1].y)/2-a.top,l=i/n.zoomLevel,c={x:o-(o-n.panOffset.x)*l,y:s-(s-n.panOffset.y)*l};return{...n,zoomLevel:i,panOffset:c,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),E=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{if(0===t.length)return{...n,isDragging:!1,dragStart:null,touchState:{...n.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&n.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,i=t[0].y-a.top;return{...n,dragStart:{x:r,y:i},touchState:{...n.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),v=h((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),A=h((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),y=h((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),T=h(((e,t=Ee.DEFAULT_WIDTH,n=Ee.DEFAULT_HEIGHT,a={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;const i=e.flatMap((e=>e.data));if(0===i.length)return null;const o=Math.min(...i.map((e=>e.value))),s=Math.max(...i.map((e=>e.value))),l=s-o||1,c=t-a.left-a.right,d=n-a.top-a.bottom;return{xScale:(e,t=i.length)=>t>1?a.left+e/(t-1)*c:a.left+c/2,yScale:e=>a.top+d-(e-o)/l*d,minValue:o,maxValue:s,valueRange:l,innerWidth:c,innerHeight:d,width:t,height:n,padding:a}}),[]),N=h((e=>{if(0>=e)return[];const t=[];for(let n=0;e>n;n++){const e=n%Ee.DEFAULT_COLORS.length;t.push(Ee.DEFAULT_COLORS[e])}return t}),[]),_=i(null);return{interactionState:t,setInteractionState:n,handlePointHover:s,handlePointLeave:l,handlePointClick:c,handleZoom:d,handlePan:u,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:S,handleTouchMove:b,handleTouchEnd:E,handlePointerDown:v,handlePointerMove:A,handlePointerUp:y,calculateScales:T,getChartColors:N,svgRef:_}}Lt.displayName="ElevationCard";const It=s(l((({chartType:n="line",groups:a=[],enableDefaults:s=!0,defaults:l={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:d="md",position:u="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:f,onZoomIn:S,onZoomOut:b,onZoomReset:E,onPanToggle:v,onReset:A,onGridToggle:y,onLegendToggle:T,onTooltipsToggle:N,onAnimationsToggle:_,state:C={},className:L="",...x},I)=>{const[O,R]=r(!1),[w,M]=r(!1),D=i(null),k=i(null),B=i(null),P=i(null),F=a&&a.length>0?{refresh:l.refresh??!0,export:l.export??!0,fullscreen:l.fullscreen??!0,settings:l.settings??!0,zoom:a.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:a.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:a.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:l.grid??!0,legend:l.legend??!0,tooltips:l.tooltips??!0,animations:l.animations??!0}:l;o((()=>{const e=e=>{D.current&&!D.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&R(!1),k.current&&!k.current.contains(e.target)&&P.current&&!P.current.contains(e.target)&&M(!1)};if(O||w)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[O,w]),o((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&F.refresh&&m&&(e.preventDefault(),m()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&F.export&&p&&(e.preventDefault(),R(!O)),"F11"===e.key&&F.fullscreen&&g&&(e.preventDefault(),g(!C.isFullscreen))," "===e.key&&F.pan&&v&&(e.preventDefault(),v(!C.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!F.reset||(e.preventDefault(),E?.(),A?.()),"+"!==e.key&&"="!==e.key||F.zoom&&S&&(e.preventDefault(),S()),"-"!==e.key&&"_"!==e.key||F.zoom&&b&&(e.preventDefault(),b()),"Escape"===e.key&&(R(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[F,m,p,g,v,E,A,S,b,C,O]);const z=h((()=>{const e=[];return F.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:C.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),F.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>R(!O),disabled:C.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[F,m,p,C,O]),U=h((()=>{const e=[];return F.zoom&&(S||b)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>S?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>b?.(),tooltip:"Zoom out (-)",shortcut:"-"}),F.pan&&v&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>v?.(!C.panEnabled),active:C.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),F.reset&&(E||A)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{E?.(),A?.()},tooltip:"Reset view (R)",shortcut:"R"}),F.fullscreen&&g&&e.push({id:"fullscreen",label:C.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:C.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>g?.(!C.isFullscreen),variant:"success",tooltip:(C.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[F,S,b,v,E,A,g,C]),G=h((()=>{const e=[];return F.grid&&y&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>y(!C.showGrid),active:C.showGrid,tooltip:"Toggle grid lines"}),F.legend&&T&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>T(!C.showLegend),active:C.showLegend,tooltip:"Toggle legend"}),F.tooltips&&N&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>N(!C.showTooltips),active:C.showTooltips,tooltip:"Toggle tooltips"}),F.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!C.animationsEnabled),active:C.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[F,y,T,N,_,C]),V=h((()=>{const e=[];return F.settings&&f&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!w),active:w,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[F,f,w]),H=a&&a.length>0?a:s?[...z(),...U(),...G(),...V()]:[],W=n=>{const a="export"===n.id?B:"settings"===n.id?P:null;return t("button",{ref:a,className:`${Ee.ACTION_CLASS} ${n.variant?`${Ee.ACTION_CLASS}--${n.variant}`:""} ${n.active?"is-active":""}`,onClick:()=>{if(n.onClick)n.onClick();else if("export"===n.id&&p)R(!O);else if("settings"===n.id&&f)M(!w);else switch(n.id){case"zoom-in":S?.();break;case"zoom-out":b?.();break;case"pan":v?.(!C.panEnabled);break;case"reset":E?.(),A?.();break;case"fullscreen":g?.(!C.isFullscreen);break;case"refresh":m?.()}},disabled:n.disabled,title:n.tooltip,type:"button","aria-label":n.label,"aria-pressed":n.active?"true":"false","aria-expanded":"export"===n.id?O:"settings"===n.id?w:void 0,children:[e(lt,{name:n.icon,size:"sm"}),"lg"===d&&e("span",{className:Ee.ACTION_CLASS+"-label",children:n.label})]},n.id)},Y=`${Ee.TOOLBAR_CLASS} ${Ee.TOOLBAR_CLASS}--${d} ${Ee.TOOLBAR_CLASS}--${u} ${L}`.trim();return e("div",{ref:I,className:Y,...x,children:H.map(((a,r)=>t("div",{className:Ee.TOOLBAR_CLASS+"-group",children:[a.separator&&r>0&&e("div",{className:Ee.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===d&&e("span",{className:Ee.TOOLBAR_CLASS+"-group-label",children:a.label}),t("div",{className:Ee.TOOLBAR_CLASS+"-actions",children:[a.actions.map(W),a.actions.some((e=>"export"===e.id))&&(O&&p?t("div",{ref:D,className:""+Ee.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:Ee.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),c.map((t=>e("button",{className:""+Ee.EXPORT_OPTION_CLASS,onClick:()=>{p(t),R(!1)},disabled:C.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(w?t("div",{ref:k,className:""+Ee.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:Ee.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:Ee.SETTINGS_MENU_CLASS+"-content",children:[F.grid&&y&&e("div",{className:Ee.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ee.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showGrid??!1,onChange:e=>y(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),F.legend&&T&&e("div",{className:Ee.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ee.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showLegend??!1,onChange:e=>T(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),F.tooltips&&N&&e("div",{className:Ee.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ee.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showTooltips??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),F.animations&&_&&e("div",{className:Ee.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ee.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==C.zoomLevel&&t("div",{className:`${Ee.SETTINGS_MENU_CLASS}-item ${Ee.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:Ee.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(C.zoomLevel||1)),"%"]})]}),t("div",{className:`${Ee.SETTINGS_MENU_CLASS}-item ${Ee.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ee.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:Ee.SETTINGS_MENU_CLASS+"-value",children:n})]})]})]}):null)]})]},a.id)))})})));It.displayName="ChartToolbar";const Ot=g(null),Rt=s(l((({children:n,type:a="line",size:s="md",variant:l="primary",title:c,subtitle:u,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:S,onExport:b,onRefresh:E,showToolbar:v=!1,enableFullscreen:A=!1,enableExport:y=!1,enableRefresh:T=!1,exportFormats:N=["png","svg","csv"],datasets:_,config:C,toolbarConfig:L,customToolbarActions:x,customToolbarGroups:I,data:O,showLegend:R,interactive:w,fullscreen:M,onDataPointClick:D,onLegendItemClick:k,glass:B,...P},F)=>{const[z,U]=r(!1),[G,V]=r(!1),H=i(null),[W,Y]=r(1),[K,j]=r({x:0,y:0}),[$,Q]=r(!1),Z=h((e=>{U(e),S?.(e)}),[S]),q=h((()=>{Y((e=>Math.min(1.2*e,5)))}),[]),X=h((()=>{Y((e=>Math.max(e/1.2,.2)))}),[]),J=h((()=>{Y(1),j({x:0,y:0})}),[]),ee=h((e=>{Q(e)}),[]),te=h((()=>{Y(1),j({x:0,y:0}),Q(!1)}),[]),ne=d((()=>({onRefresh:E,onExport:b,onFullscreen:Z,onZoomIn:q,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te})),[E,b,Z,q,X,J,ee,te]),{state:ae,handlers:re,toolbarGroups:ie}=function(e,t={},n={}){const[a,i]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:s=!0,defaults:l={},exportFormats:c=["png","svg","csv"],customActions:u=[],customGroups:m=[]}=t,p=h((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};default:return t}}),[e]),g=d((()=>({...p(),...l})),[p,l]),f={onRefresh:h((()=>{i((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{i((e=>({...e,isRefreshing:!1})))}),1e3)}),[n.onRefresh]),onExport:h((async e=>{i((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{i((e=>({...e,isExporting:!1})))}}),[n.onExport]),onFullscreen:h((e=>{i((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)}),[n.onFullscreen]),onZoomIn:h((()=>{i((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()}),[n.onZoomIn]),onZoomOut:h((()=>{i((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()}),[n.onZoomOut]),onZoomReset:h((()=>{i((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()}),[n.onZoomReset]),onPanToggle:h((e=>{i((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)}),[n.onPanToggle]),onReset:h((()=>{i((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()}),[n.onReset]),onGridToggle:h((e=>{i((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)}),[n.onGridToggle]),onLegendToggle:h((e=>{i((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)}),[n.onLegendToggle]),onTooltipsToggle:h((e=>{i((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)}),[n.onTooltipsToggle]),onAnimationsToggle:h((e=>{i((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)}),[n.onAnimationsToggle]),onSettings:h((()=>{}),[])},S=h((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:a.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:a.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const n=[];g.zoom&&n.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&n.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!a.panEnabled),active:a.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&n.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&n.push({id:"fullscreen",label:a.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:a.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!a.isFullscreen),variant:"success",tooltip:(a.isFullscreen?"Exit":"Enter")+" fullscreen"}),n.length>0&&e.push({id:"view-actions",label:"View",actions:n,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!a.showGrid),active:a.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!a.showLegend),active:a.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!a.showTooltips),active:a.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!a.animationsEnabled),active:a.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.onSettings,tooltip:"Chart settings"}]}),e.push(...m),u.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...u)}}else e.push({id:"custom-actions",label:"Custom",actions:u});return e}),[e,g,a,f,u,m]);return o((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!a.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,a,f]),{state:a,setState:i,handlers:f,toolbarGroups:S(),config:{enableDefaults:s,defaults:g,exportFormats:c}}}(a,{enableDefaults:v,defaults:{refresh:T,export:y,fullscreen:A,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N},ne);xt(),o((()=>{Y(ae.zoomLevel)}),[ae.zoomLevel]),o((()=>{Q(ae.panEnabled)}),[ae.panEnabled]),o((()=>{ae.zoomLevel}),[W,ae.zoomLevel]);const oe=wt({type:a,size:s,variant:l,loading:m,error:p,className:g,interactive:w,panEnabled:$});h((()=>{re.onFullscreen(!ae.isFullscreen)}),[re,ae.isFullscreen]),h((async e=>{await re.onExport(e)}),[re]),h((()=>{re.onRefresh()}),[re]),o((()=>{U(ae.isFullscreen),V(ae.isExporting)}),[ae.isFullscreen,ae.isExporting]);const se=`${oe}${z?" "+Ee.CLASSES.FULLSCREEN:""}${B?" c-chart--glass":""}`,le=d((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,enableLiquidBlur:!1,enableBorderEffect:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=d((()=>B?!0===B?le:{...le,...B}:null),[B,le]),de=d((()=>ce?.cornerRadius||void 0),[ce?.cornerRadius]),he=d((()=>({zoomLevel:W,panOffset:K,panEnabled:$,onZoomIn:q,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:Y,setPanOffset:j,setPanEnabled:Q,toolbarState:{showTooltips:ae.showTooltips,showLegend:ae.showLegend,animationsEnabled:ae.animationsEnabled,showGrid:ae.showGrid}})),[W,K,$,q,X,J,ee,te,Q,ae.showTooltips,ae.showLegend,ae.animationsEnabled,ae.showGrid]),ue=t("div",{ref:H,className:se,"aria-label":f||a+" chart",role:"img",tabIndex:0,...P,children:[(c||u||v)&&t("div",{className:Ee.HEADER_CLASS+" u-d-flex u-justify-between u-align-items-start u-gap-4",children:[t("div",{className:Ee.HEADER_CONTENT_CLASS+" u-flex-1",children:[c&&e("h3",{className:Ee.TITLE_CLASS+" u-mb-1",children:c}),u&&e("p",{className:Ee.SUBTITLE_CLASS+" u-mb-0",children:u})]}),(()=>{if(!v)return null;const t=!ie||0===ie.length;return e(It,{chartType:a,groups:ie,defaults:{refresh:T,export:y,fullscreen:A,zoom:void 0!==ae.zoomLevel,pan:void 0!==ae.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N,state:{isFullscreen:ae.isFullscreen,isExporting:ae.isExporting,isRefreshing:ae.isRefreshing,zoomLevel:W,panEnabled:$,showGrid:ae.showGrid,showLegend:ae.showLegend,showTooltips:ae.showTooltips,animationsEnabled:ae.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:q,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:Ee.CONTENT_CLASS,children:[m&&t("div",{className:Ee.LOADING_CLASS,children:[e("div",{className:Ee.LOADING_SPINNER_CLASS}),e("span",{className:Ee.LOADING_TEXT_CLASS,children:ae.isExporting?"Exporting chart...":ae.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:Ee.ERROR_CLASS,children:[e("div",{className:Ee.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:Ee.ERROR_CONTENT_CLASS,children:[e("div",{className:Ee.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:Ee.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!n&&t("div",{className:Ee.EMPTY_CLASS,children:[e("div",{className:Ee.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:Ee.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:Ee.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&n&&e("div",{className:Ee.CANVAS_CLASS,children:n})]})]}),me=ce?e(He,{...ce,cornerRadius:de,style:{width:"100%",height:"100%",...ce.style},children:ue}):ue;return e(Ot.Provider,{value:he,children:e("div",{ref:F,style:{width:"100%",height:"100%"},children:me})})}))),wt=({type:e,size:t,variant:n,loading:a,error:r,className:i,interactive:o,panEnabled:s})=>{const l=[Ee.ROOT_CLASS];if(e){const t=e.toUpperCase(),n=Ee.CLASSES[t]||`${Ee.TYPE_PREFIX}${e}`;l.push(n)}if(t){const e=t.toUpperCase(),n=Ee.CLASSES[e]||`${Ee.SIZE_PREFIX}${t}`;l.push(n)}if(n){const e=n.toUpperCase(),t=Ee.CLASSES[e]||`${Ee.VARIANT_PREFIX}${n}`;l.push(t)}return(o||s)&&l.push(Ee.CLASSES.INTERACTIVE),a&&l.push(Ee.LOADING_STATE_CLASS),r&&l.push(Ee.ERROR_STATE_CLASS),i&&l.push(i),l.join(" ")};Rt.displayName="Chart";const Mt=s(l((({datasets:a=[],config:s,width:l=Ee.DEFAULT_WIDTH,height:c=Ee.DEFAULT_HEIGHT,onDataPointClick:u,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:S=!0,renderContent:b},E)=>{const v=f(Ot),{calculateScales:A,getChartColors:y}=xt(),{processedData:T,isProcessing:N}=function(e,t){const[n,a]=r(e),[i,s]=r(!1),{enableDecimation:l=!1,maxDataPoints:c=1e3,enableRealTime:d=!1,realTimeInterval:u=1e3}=t||{},m=h(((e,t)=>{if(!l||!e.length)return e;const n=e[0]?.data?.length||0;if(t>=n)return e;const a=Math.ceil(n/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%a==0))||[]})))}),[l]),p=h(((e,t)=>{const n=[];for(let a=0;a<e.length;a++)if(t-1>a)n.push(null);else{const r=e.slice(a-t+1,a+1).reduce(((e,t)=>e+t),0);n.push(r/t)}return n}),[]),g=h((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=e.reduce(((e,t,n)=>e+n),0),a=e.reduce(((e,t)=>e+t),0),r=(t*e.reduce(((e,t,n)=>e+n*t),0)-n*a)/(t*e.reduce(((e,t,n)=>e+n*n),0)-n*n),i=(a-r*n)/t;return e.map(((e,t)=>r*t+i))}),[]);return o((()=>{s(!0),(async()=>{let t=[...e];l&&c&&(t=m(t,c)),a(t),s(!1)})()}),[e,m,l,c]),o((()=>{if(!d)return;const e=setInterval((()=>{a((e=>[...e]))}),u);return()=>clearInterval(e)}),[d,u]),{processedData:n,isProcessing:i,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:a}}(a,{enableRealTime:p,enableDecimation:S,maxDataPoints:1e3}),{isOptimizing:_,memoizedScales:C}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:a=!0,debounceMs:s=100}=t||{},[l,c]=r(!1),u=i(null),m=d((()=>a?e.map((e=>{const t=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],n=t.length>0?t:[0];return{label:e.label,dataLength:e.data?.length||0,minValue:Math.min(...n),maxValue:Math.max(...n)}})):null),[e,a]),p=h((e=>{u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{e(),c(!1)}),s),c(!0)}),[s]),g=h(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const i=Math.floor(t/a),o=Math.min(i+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,i-1),end:o}}),[n,e]);return o((()=>()=>{u.current&&clearTimeout(u.current)}),[]),{isOptimizing:l,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(T,{enableVirtualization:!1,enableMemoization:S,debounceMs:100}),{announcement:L,focusedPoint:x}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:a=!0,announceDataChanges:i=!0}=t||{},[s,l]=r({datasetIndex:0,pointIndex:0}),[c,d]=r(""),u=h(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,i=(e[s.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),l((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),l((e=>({...e,pointIndex:Math.min(i,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),l((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),l((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),l((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),l((e=>({...e,pointIndex:i})));break;case"Enter":case" ":t.preventDefault(),a?.(s.datasetIndex,s.pointIndex)}}),[n,e,s]),m=h((e=>{a&&(d(e),setTimeout((()=>d("")),1e3))}),[a]);o((()=>{if(!i||!e.length)return;const t=e.reduce(((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,i,m]);const p=h((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const n=e.data?.length||0,a=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],r=a.length>0?Math.min(...a):0,i=a.length>0?Math.max(...a):0;return`Dataset ${t+1}: ${e.label}, ${n} points, range ${r} to ${i}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:s,announcement:c,handleKeyDown:u,announceData:m,getAccessibleDescription:p,setFocusedPoint:l}}(T,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=i({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[O,R]=r(null),w=i(null),M=i(null),[D,k]=r(!1),[B,P]=r({width:0,height:0});o((()=>{const e=M.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(P({width:Math.floor(t.width),height:Math.floor(t.height)}),k(!0))};t();const n=requestAnimationFrame((()=>{t()})),a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t.contentRect;e>0&&n>0&&(P({width:Math.floor(e),height:Math.floor(n)}),k(!0))}}));return a.observe(e),()=>{cancelAnimationFrame(n),a.disconnect()}}),[]),o((()=>{l===Ee.DEFAULT_WIDTH&&c===Ee.DEFAULT_HEIGHT||(P({width:l,height:c}),k(!0))}),[l,c]);const F=h(((e,t,n,a,r,i)=>{R({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),z=h((()=>{R(null)}),[]),U=i(null),G=h((e=>{m&&v&&v.panEnabled&&I.current.isDragging&&(U.current||(U.current=requestAnimationFrame((()=>{const t=w.current;if(!t)return void(U.current=null);const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top,i=a-I.current.dragStart.x,o=r-I.current.dragStart.y;v.setPanOffset({x:I.current.lastPan.x+i,y:I.current.lastPan.y+o}),U.current=null}))))}),[m,v]),V=h((e=>{if(!m||!v||!v.panEnabled)return;const t=w.current;if(!t)return;const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top;I.current.isDragging=!0,I.current.dragStart={x:a,y:r},I.current.lastPan={...v.panOffset}}),[m,v]),H=h((()=>{I.current.isDragging=!1}),[]),W=d((()=>({onDataPointClick:u,onPointHover:F,onPointLeave:z,onMouseMove:G,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[u,F,z,G,V,H]),Y=d((()=>({announcement:L,focusedPoint:x,getAccessibleDescription:()=>"Chart description"})),[L,x]),K=d((()=>v?`translate(${v.panOffset.x}px, ${v.panOffset.y}px) scale(${v.zoomLevel})`:""),[v?.panOffset.x,v?.panOffset.y,v?.zoomLevel]),j=d((()=>{if(!D||0===B.width||0===B.height)return null;const e=A(T,B.width,B.height,void 0,s);if(!e)return null;const t=y(T.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:T.map(((e,n)=>({...e,color:e.color||t[n]})))}}),[T,s,B.width,B.height,D,A,y]);if(o((()=>()=>{U.current&&cancelAnimationFrame(U.current)}),[]),o((()=>{const e=w.current;if(!e||!m||!v)return;const t=e=>{if(void 0===v.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,n=Math.max(.2,Math.min(5,v.zoomLevel+t));v.setZoomLevel(n)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,v]),_)return t("div",{className:`${Ee.CONTENT_CLASS} ${Ee.LOADING_CLASS}`,children:[e("div",{className:Ee.LOADING_SPINNER_CLASS}),e("span",{className:Ee.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!D||0===B.width||0===B.height)return e("div",{ref:M,className:Ee.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!j)return null;const $=B.width,Q=B.height;return t(n,{children:[e("div",{ref:M,className:Ee.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:w,width:$,height:Q,viewBox:`0 0 ${$} ${Q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:K,transformOrigin:"center center",willChange:v?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:G,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[j.datasets[0]?.data.map(((t,n)=>e("line",{x1:j.scales.xScale(n,j.datasets[0]?.data.length),y1:0,x2:j.scales.xScale(n,j.datasets[0]?.data.length),y2:Q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+n))),Array.from({length:5}).map(((t,n)=>{const a=j.scales.minValue+(j.scales.maxValue-j.scales.minValue)*(n/4);return e("line",{x1:0,y1:j.scales.yScale(a),x2:$,y2:j.scales.yScale(a),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+n)}))]}),b({scales:j.scales,colors:j.colors,datasets:j.datasets,interactionState:{hoveredIndex:O?.pointIndex??null,selectedIndex:null},handlers:W,accessibility:Y,hoveredPoint:O,toolbarState:v?{showTooltips:v.toolbarState?.showTooltips,showLegend:v.toolbarState?.showLegend,animationsEnabled:v.toolbarState?.animationsEnabled,showGrid:v.toolbarState?.showGrid}:void 0,config:s}),m&&v?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:Q/2,x2:$,y2:Q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:$/2,y1:0,x2:$/2,y2:Q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:L})]})})));Mt.displayName="ChartRenderer";const Dt=s(l((({type:t,datasets:n=[],config:a={},renderContent:r,interactive:i=!0,enableRealTime:o=!1,enableAccessibility:s=!0,enablePerformanceOptimization:l=!0,onDataPointClick:c,...d},u)=>{const m=h((e=>r(e)),[r]);return e(Rt,{ref:u,type:t,datasets:n,config:a,...d,children:e(Mt,{datasets:n,config:a,interactive:i,enableRealTime:o,enableAccessibility:s,enablePerformanceOptimization:l,onDataPointClick:c,renderContent:m})})})));Dt.displayName="BaseChart";const kt=s(l((({datasets:t=[],config:n={},chartType:a="line",particleEffects:r,onDataPointClick:s,...l},c)=>{const d=i(0),u=i(0),m=i([]),p=h((({scales:t,colors:n,datasets:i,handlers:s,hoveredPoint:l,toolbarState:c,config:h})=>{if(o((()=>{const e=t=>{u.current=t,d.current=requestAnimationFrame(e)};return d.current=requestAnimationFrame(e),()=>{d.current&&cancelAnimationFrame(d.current)}}),[]),!i.length)return null;const p=40,g=t.width-80,f=t.height-80,S=[];if(i.forEach(((t,r)=>{const i=t.color||n[r%n.length];if("bar"===a)t.data.forEach(((n,a)=>{const o=g/t.data.length*.8,l=p+a*(g/t.data.length)+(g/t.data.length-o)/2,c=n.value/100*f,d=p+f-c;S.push(e("rect",{x:l,y:d,width:o,height:c,fill:i,style:{transform:`scaleY(${.1*Math.sin(.01*u.current+.2*a)+.9})`,transformOrigin:"bottom"},onClick:()=>s.onDataPointClick?.(n,r,a)},`bar-${r}-${a}`))}));else{const n=t.data.map(((e,n)=>({x:p+n/(t.data.length-1)*g,y:p+f-e.value/100*f})));if(n.length>0){const o="M "+n.map((e=>`${e.x},${e.y}`)).join(" L ");if("area"===a){const t=`${o} L ${p+g},${p+f} L 40,${p+f} Z`;S.push(e("path",{d:t,fill:i,fillOpacity:"0.3",style:{transform:`translateY(${2*Math.sin(.01*u.current)}px)`}},"area-"+r))}S.push(e("path",{d:o,stroke:i,fill:"none",className:"c-chart__data-line",style:{transform:`translateY(${2*Math.sin(.01*u.current)}px)`}},"line-"+r)),n.forEach(((n,a)=>{S.push(e("circle",{cx:n.x,cy:n.y,r:"4",fill:i,style:{transform:`scale(${1+.2*Math.sin(.01*u.current+a)})`},onClick:()=>s.onDataPointClick?.(t.data[a],r,a)},`point-${r}-${a}`))}))}}})),r?.enabled)for(let a=0;a<r.count;a++){const t=m.current[a];t&&S.push(e("circle",{cx:t.x,cy:t.y,r:t.size,fill:t.color,style:{opacity:t.life}},"particle-"+a))}return e("g",{children:S})}),[a,r]);return e(Dt,{ref:c,type:"animated",datasets:t,config:n,renderContent:p,onDataPointClick:s,...l})})));kt.displayName="AnimatedChart";const Bt=s((({dataPoint:a,datasetLabel:s,datasetColor:l,position:c,visible:d,customRenderer:h})=>{const u=i(null),[m,p]=r(c);return o((()=>{if(!d||!u.current)return;const e=u.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;let a=c.x,r=c.y;a=a+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>n-16?c.y-e.height-12:c.y-e.height/2,a=Math.max(16,Math.min(a,t-e.width-16)),r=Math.max(16,Math.min(r,n-e.height-16)),p({x:a,y:r})}),[c,d]),d&&a?R(e("div",{ref:u,className:"c-chart__tooltip",style:{left:m.x+"px",top:m.y+"px",opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease, transform 0.2s ease",transform:"translateZ(0)",position:"fixed",zIndex:1e3,pointerEvents:"none"},children:h?h(a):t(n,{children:[e("div",{className:"c-chart__tooltip-title",children:a.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:a.value})]}),a.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(a.metadata).map((([n,a])=>t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[n,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:a+""})]},n)))})]})]})}),document.body):null}));Bt.displayName="ChartTooltip";const Pt=s(l((({datasets:a=[],config:r={},areaOptions:i={},onDataPointClick:o,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...i};return e(Dt,{ref:l,type:"area",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:d})=>{if(!i.length)return null;const h=l?.showTooltips??d?.showTooltips??!0;return t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],d=n.data||[];if(0===d.length)return null;const h=d.map(((e,t)=>({x:a.xScale(t,d.length),y:a.yScale(e.value)}))),u=`M ${h.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${h[h.length-1]?.x},${a.height} L ${h[0]?.x},${a.height} Z`;return t("g",{children:[e("path",{d:u,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,n)=>{const r=a.xScale(n,d.length),c=a.yScale(t.value),h=s?.datasetIndex===i&&s?.pointIndex===n;return e("circle",{cx:r,cy:c,r:h?6:4,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__area-point "+(h?"c-chart__area-point--hovered":""),onClick:()=>o.onDataPointClick?.(t,i,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,n,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+i)})),h&&s&&e(Bt,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));function Ft(e,t={}){const[n,a]=r(null),[i,o]=r(0),[s,l]=r(!1),c=h(((e,n,a,r={top:20,right:30,bottom:40,left:50},i=!1)=>{if(!e.length)return[];const o=n-r.left-r.right,s=a-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),h=Math.min(0,...d),u=Math.max(...d)-h,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let S,b,E,v;if(i){const e=s/l,n=e*(1-(t.groupPadding||.2));v=t.stacked?n:n/c,b=r.top+g*e+(e-n)/2,t.stacked||(b+=d*v*(1+(t.barPadding||.05))),S=r.left,E=(f-h)/u*o,t.stacked&&d>0?(S=r.left+(p[g]-h)/u*o,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=o/l,n=e*(1-(t.groupPadding||.2));if(E=t.stacked?n:n/c,S=r.left+g*e+(e-n)/2,t.stacked||(S+=d*E*(1+(t.barPadding||.05))),v=(f-h)/u*s,b=a-r.bottom-v,t.stacked&&d>0){const e=(p[g]-h)/u*s;b=a-r.bottom-e-v,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(i?E:v)<t.minBarHeight&&(i?E=t.minBarHeight:(v=t.minBarHeight,b=a-r.bottom-v)),t.maxBarWidth&&(i?v:E)>t.maxBarWidth)if(i)v=t.maxBarWidth,b=r.top+g*(s/l)+(s/l-v)/2;else{E=t.maxBarWidth;const e=(n-r.left-r.right)/l;S=r.left+g*e+(e-E)/2}m.push({x:Math.max(S,0),y:Math.max(b,0),width:Math.max(E,0),height:Math.max(v,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=h((()=>{if(!t.enableAnimations)return;l(!0),o(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);o(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):l(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),u=h(((e,t,n,r,i,o)=>{a({datasetIndex:e,pointIndex:t,chartX:n,chartY:r,clientX:i,clientY:o})}),[]),m=h((()=>{a(null)}),[]),p=h((e=>t.useGradients?e.map(((e,t)=>{const n=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:n,opacity:.8},{offset:"100%",color:n,opacity:.4}]}})):[]),[t.useGradients]),g=h((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]);return{hoveredBar:n,animationProgress:i,isAnimating:s,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:h(((e,n=!1)=>{const{x:a,y:r,width:i,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:a+i/2,y:r+o/2};case"outside":return{x:n?a+i+5:a+i/2,y:n?r+o/2:r-5}}}),[t.dataLabelPosition]),handleBarHover:u,handleBarLeave:m,startAnimation:d,formatValue:g,setHoveredBar:a,setAnimationProgress:o,setIsAnimating:l}}Pt.displayName="AreaChart";const zt=s(l((({datasets:a=[],config:r={},barOptions:i={},horizontal:o=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:h,handleBarLeave:u,hoveredBar:m,formatValue:p}=Ft(0,i);return e(Dt,{ref:c,type:"bar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:u})=>{if(!s.length)return null;const m=h?.showTooltips??u?.showTooltips??!0,g=d(s,a.width,a.height,a.padding,o);return t(n,{children:[g.map(((n,a)=>{const o=s[n.datasetIndex],d=o.data?.[n.pointIndex],h=o.color||r[n.datasetIndex],u=c?.datasetIndex===n.datasetIndex&&c?.pointIndex===n.pointIndex;return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:h,className:"c-chart__bar "+(u?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,n.datasetIndex,n.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(n.datasetIndex,n.pointIndex,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showValues&&e("text",{x:n.x+n.width/2,y:n.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(n.value)})]},"bar-"+a)})),m&&c&&e(Bt,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));zt.displayName="BarChart";const Ut=s(l((({bubbleData:a=[],config:r={},bubbleOptions:i={},onDataPointClick:o,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:h=.7,showLabels:u=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:S="Size",colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:E=!1}=i;return e(Dt,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:f,config:S})=>{if(!a.length)return null;const v=f?.showTooltips??S?.showTooltips??!0,A=a.map((e=>e.size)),y=Math.min(...A),T=Math.max(...A)-y||1,N=a.map(((n,a)=>{const i=c+(n.size-y)/T*(d-c),o=r.padding.left+n.x/100*r.innerWidth,f=r.padding.top+r.innerHeight-n.y/100*r.innerHeight;let S=n.color;if(!S)if(E){const e=Math.floor((b.length-1)*((n.size-y)/T));S=b[e]}else S=b[a%b.length];return t("g",{children:[e("circle",{cx:o,cy:f,r:i,fill:S,opacity:h,className:"c-chart__bubble "+(l?.pointIndex===a?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(n,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,o,f,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),u&&e("text",{x:o,y:f,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:n.label})]},"bubble-"+a)}));return t(n,{children:[N,v&&l&&l.pointIndex<a.length&&e(Bt,{dataPoint:a[l.pointIndex],datasetLabel:"Bubbles",datasetColor:a[l.pointIndex]?.color||b[l.pointIndex%b.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Ut.displayName="BubbleChart";const Gt=s(l((({candlestickData:a=[],config:r={},candlestickOptions:i={},onDataPointClick:o,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:h="var(--atomix-success-bg-subtle)",downColor:u="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:S=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:b="short",dateFormatter:E,showGrid:v=!0,gridColor:A="var(--atomix-brand-text-emphasis)",showTooltips:y=!0}=i;return e(Dt,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:a.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:o,datasets:s,handlers:l,hoveredPoint:b,toolbarState:E,config:y})=>{if(!a.length)return null;const T=E?.showTooltips??y?.showTooltips??i.showTooltips??!0,N=40,_=r.width-80,C=r.height-80,L=c?C*d:0,x=C-L,I=a.map((e=>e.high)),O=a.map((e=>e.low)),R=Math.min(...O),w=Math.max(...I),M=w-R||1,D=a.map((e=>e.volume||0)),k=Math.max(...D)||1,B=[];if(v){for(let n=0;5>=n;n++){const t=N+n/5*x;B.push(e("line",{x1:N,y1:t,x2:N+_,y2:t,stroke:A,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+n))}const t=Math.max(1,Math.floor(a.length/10));for(let n=0;n<a.length;n+=t){const t=N+n/(a.length-1)*_;B.push(e("line",{x1:t,y1:N,x2:t,y2:N+x,stroke:A,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const P=a.map(((n,r)=>{const i=n.close<n.open?u:h,o=N+r/(a.length-1)*_,s=N+(w-n.high)/M*x,c=N+(w-n.low)/M*x,d=N+(w-n.open)/M*x,g=N+(w-n.close)/M*x,f=Math.min(d,g),S=Math.abs(d-g),b=Math.max(1,_/a.length*.8);return t("g",{children:[e("line",{x1:o,y1:s,x2:o,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:o-b/2,y:f,width:b,height:S||1,fill:i,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,o,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(n,0,r)})]},"candle-"+r)})),F=[];if(c){const t=N+x+20;a.forEach(((n,r)=>{if(!n.volume)return;const i=n.close<n.open?u:h,o=N+r/(a.length-1)*_,s=n.volume/k*(L-20),l=Math.max(1,_/a.length*.6);F.push(e("rect",{x:o-l/2,y:t+L-s,width:l,height:s,fill:i,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const z=[];return g&&f.forEach(((t,n)=>{const r=((e,t)=>{const n=[];for(let a=0;a<e.length;a++){if(t-1>a){n.push(NaN);continue}const r=e.slice(a-t+1,a+1).reduce(((e,t)=>e+t.close),0);n.push(r/t)}return n})(a,t),i=S?.[n]||"var(--atomix-warning)",o=r.map(((e,t)=>isNaN(e)?null:{x:N+t/(a.length-1)*_,y:N+(w-e)/M*x})).filter(Boolean);if(o.length>1){const n="M "+o.map((e=>`${e.x},${e.y}`)).join(" L ");z.push(e("path",{d:n,stroke:i,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(n,{children:[B,P,F,z,T&&b&&a[b.pointIndex]&&e(Bt,{dataPoint:a[b.pointIndex],datasetLabel:"Candlestick",position:{x:b.clientX,y:b.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Gt.displayName="CandlestickChart";const Vt=s(l((({datasets:a=[],config:r={},pieOptions:i={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:o={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const h=a.length>0?a[0]:{label:"",data:[]},u=d((()=>{if(!h?.data?.length)return null;const e=h?.data?.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[h]);return e(Dt,{ref:c,type:"donut",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:d,config:m})=>{if(!u)return null;const p=a.width,g=a.height,f=Math.min(p,g)/2*.8,S=f*(o.innerRadiusRatio??.6),b=p/2,E=g/2,v=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],A=h?.color?[h.color]:h?.data?.map(((e,t)=>v[t%v.length]))||v,y=u.validDataPoints.reduce(((e,t)=>e+t.value),0),T=(i.padAngle||1)*Math.PI/180;let N=(i.startAngle||0)*Math.PI/180;const _=u.validDataPoints.map(((e,t)=>{const n=e.value/y*(2*Math.PI)-T,a=N,r=N+n,i=(a+r)/2,o=.75*f,s=b+Math.cos(i)*o,l=E+Math.sin(i)*o,c=b+S*Math.cos(a),d=E+S*Math.sin(a),h=n>Math.PI?1:0,u=[`M ${c} ${d}`,`L ${b+f*Math.cos(a)} ${E+f*Math.sin(a)}`,`A ${f} ${f} 0 ${h} 1 ${b+f*Math.cos(r)} ${E+f*Math.sin(r)}`,`L ${b+S*Math.cos(r)} ${E+S*Math.sin(r)}`,`A ${S} ${S} 0 ${h} 0 ${c} ${d}`,"Z"].join(" ");return N=r+T,{path:u,color:e.color||A[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/y*100}})),C=d?.showTooltips??m?.showTooltips??!0;return t(n,{children:[_.map(((n,a)=>{const r=c?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(n.dataPoint,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:n.dataPoint.label}),i.showPercentages&&t("text",{x:n.labelPosition.x,y:n.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[n.percentage.toFixed(1),"%"]})]},"slice-"+a)})),o.showTotal&&t("g",{children:[e("text",{x:b,y:E-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:o.centerLabel}),e("text",{x:b,y:E+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==o.centerValue?o.centerValue:y.toLocaleString()})]}),C&&c&&c.pointIndex<_.length&&_[c.pointIndex]&&e(Bt,{dataPoint:_[c.pointIndex].dataPoint,datasetLabel:h?.label,datasetColor:_[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));Vt.displayName="DonutChart";const Ht=s(l((({funnelData:a=[],config:r={},funnelOptions:i={},onDataPointClick:o,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:h=!0,showPercentages:u=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:S=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:b=!0,animate:E=!0,animationDuration:v=1e3,animationDelay:A=200,valueFormatter:y=e=>e.toLocaleString(),showConversionRates:T=!0,conversionRatePosition:N="between",proportional:_=!0,minSegmentRatio:C=.1}=i;return e(Dt,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!a.length)return null;const b=m?.showTooltips??g?.showTooltips??!0,L=r.width-120,x=r.height-120,I=Math.max(...a.map((e=>e.value))),O=a.map(((e,t)=>{const n=e.value/I*100,r=t>0&&a[t-1]?e.value/a[t-1].value*100:100;return{...e,percentage:n,conversionRate:r,index:t}})),R=[];if("vertical"===c){const n=(x-(a.length-1)*f)/a.length;O.forEach(((r,i)=>{const o=60+i*(n+f);let l;if(_){const e=Math.max(r.percentage/100,C);l=L*e}else{const e=Math.max(1-i/(a.length-1)*(1-p),C);l=L*e}const c=60+(L-l)/2;let m=r.color||S[i%S.length];const g=O[i+1];let b;if(g)if(_){const e=Math.max(g.percentage/100,C);b=L*e}else{const e=Math.max(1-(i+1)/(a.length-1)*(1-p),C);b=L*e}else b=l*p;const x=60+(L-b)/2,I=o+n,w=`\n M ${c} ${o}\n L ${c+l} ${o}\n L ${x+b} ${I}\n L ${x} ${I}\n Z\n `;R.push(t("g",{children:[e("path",{d:w,fill:m,className:"c-chart__funnel-segment",style:{transition:E?`all ${v}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${i*A}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,i)}),(d||h||u)&&t("text",{x:c+l/2,y:o+n/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,h&&e("tspan",{x:c+l/2,dy:"1.2em",children:y(r.value)}),u&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+i)),T&&g&&"between"===N&&R.push(t("text",{x:c+l/2,y:o+n+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+i))}))}return t(n,{children:[e("g",{children:R}),b&&l&&a[l.pointIndex]&&e(Bt,{dataPoint:a[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:a[l.pointIndex]?.color||i[l.pointIndex%i.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Ht.displayName="FunnelChart";const Wt=s(l((({value:n,min:a=0,max:r=100,config:i={},gaugeOptions:o={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:h=0,thickness:u=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:S=!0,showTicks:b=!0,majorTicks:E=5,minorTicks:v=4,colorZones:A=[],animate:y=!0,animationDuration:T=1e3,animationEasing:N="easeOutCubic",useGradient:_=!1,label:C="",labelPosition:L="bottom"}=o;return e(Dt,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:n}]}],config:i,renderContent:({scales:i,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:_,config:x})=>{const I=i.width,O=_?.animationsEnabled??x?.animate??y,R=i.height,w=I/2,M=R/2,D=Math.min(I,R)/2*.9,k=-d*Math.PI/180,B=-h*Math.PI/180,P=B-k,F=Math.min(Math.max(n,a),r),z=k+(F-a)/(r-a)*P,U=(e,t,n,a,r,i)=>{const o=n*(1-i),s=e+n*Math.cos(a),l=t+n*Math.sin(a),c=e+n*Math.cos(r),d=t+n*Math.sin(r),h=e+o*Math.cos(r),u=t+o*Math.sin(r),m=e+o*Math.cos(a),p=t+o*Math.sin(a),g=Math.abs(r-a)>Math.PI?1:0,f=r>a?1:0;return`M ${s} ${l} \n A ${n} ${n} 0 ${g} ${f} ${c} ${d}\n L ${h} ${u}\n A ${o} ${o} 0 ${g} ${1-f} ${m} ${p}\n Z`},G=[];for(const t of A){const n=k+(t.from-a)/(r-a)*P,i=k+(t.to-a)/(r-a)*P;G.push(e("path",{d:U(w,M,D,n,i,u),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(b){for(let t=0;E>=t;t++){const n=a+t/E*(r-a),i=k+t/E*P,o=.95*D,s=.05*D,l=w+o*Math.cos(i),c=M+o*Math.sin(i),d=w+(o-s)*Math.cos(i),h=M+(o-s)*Math.sin(i);if(V.push(e("line",{x1:l,y1:c,x2:d,y2:h,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+t)),S){const a=w+(o-s-10)*Math.cos(i),r=M+(o-s-10)*Math.sin(i);V.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:n},"label-"+t))}}for(let t=0;E*v>t;t++){const n=k+t/(E*v)*P,a=.95*D,r=.025*D,i=w+a*Math.cos(n),o=M+a*Math.sin(n),s=w+(a-r)*Math.cos(n),l=M+(a-r)*Math.sin(n);V.push(e("line",{x1:i,y1:o,x2:s,y2:l,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+t))}}const H=m?t("g",{children:[e("line",{x1:w,y1:M,x2:w+.8*D*Math.cos(z),y2:M+.8*D*Math.sin(z),stroke:p,strokeWidth:"3",strokeLinecap:"round"}),e("circle",{cx:w,cy:M,r:"8",fill:p})]}):null,W=g?e("text",{x:w,y:M+10,textAnchor:"middle",fontSize:"24",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(F)}):null,Y=C?e("text",{x:w,y:"top"===L?M-.7*D:M+.7*D,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:C}):null;return t("g",{children:[e("path",{d:U(w,M,D,k,B,u),fill:"var(--atomix-secondary-bg-subtle)"}),G,e("path",{d:U(w,M,D,k,z,u),fill:"var(--atomix-brand-bg-subtle)",style:{transition:O?`all ${T}ms ${N}`:"none"}}),V,H,W,Y]})},onDataPointClick:s,...l})})));Wt.displayName="GaugeChart";const Yt={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},Kt=s(l((({data:a=[],config:i={},colorScale:o={scheme:"viridis",steps:9},cellConfig:s={width:40,height:40,spacing:2,borderRadius:4,showLabels:!1},showColorLegend:l=!0,showGrid:c=!0,onDataPointClick:u,...m},p)=>{const[g,f]=r(null),S=d((()=>{if(!a.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(a.map((e=>e.x)))).sort(),t=Array.from(new Set(a.map((e=>e.y)))).sort(),n=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const n=a.find((n=>n.x===e&&n.y===t));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:e,yLabels:t}}),[a]),b=h((e=>{if(!S.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,n=o.min,r=o.max;if(void 0===n||void 0===r){const e=a.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===o.scheme&&o.colors)t=o.colors;else{const e=o.scheme;t=Yt[e]||Yt.viridis}const i=o.steps||t.length,s=r-n;return 0===s?t[0]:t[Math.floor(Math.min(Math.floor((e-n)/s*i),i-1)/i*(t.length-1))]}),[S,o,a]),E=[{label:"Heatmap Data",data:a.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(Dt,{ref:p,type:"heatmap",datasets:E,config:i,renderContent:({scales:a,colors:r,datasets:i,handlers:c,hoveredPoint:d,toolbarState:h,config:u})=>{const{matrix:m,xLabels:p,yLabels:E}=S,v=h?.showTooltips??u?.showTooltips??!0;if(!m.length)return null;const A=s.width||40,y=s.height||40,T=s.spacing||2,N=s.borderRadius||4;return p.length,E.length,t(n,{children:[t("g",{children:[e("defs",{children:l&&(()=>{const t=Yt[o.scheme]||Yt.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((n,a)=>e("stop",{offset:a/(t.length-1)*100+"%",stopColor:n},a)))}):null})()}),m.map(((n,a)=>n.map(((n,r)=>{if(!n)return null;const i=100+r*(A+T),o=50+a*(y+T),l=b(n.value),d=g===n;return t("g",{children:[e("rect",{x:i,y:o,width:A,height:y,rx:N,ry:N,fill:l,className:"c-chart__heatmap-cell "+(d?"c-chart__heatmap-cell--hovered":""),style:{transition:"all 0.2s ease",transform:d?"scale(1.05)":"scale(1)",transformOrigin:"center"},onClick:()=>{n&&c.onDataPointClick?.({...n,label:n.label||`${n.x}, ${n.y}`,value:n.value},a,r)},onMouseEnter:e=>{f(n)},onMouseLeave:()=>f(null)}),s.showLabels&&n.label&&e("text",{x:i+A/2,y:o+y/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:n.label})]},`cell-${a}-${r}`)})))),p.map(((t,n)=>{const a=100+n*(A+T)+A/2,r=50+m.length*(y+T)+20;return e("text",{x:a,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+n)})),E.map(((t,n)=>e("text",{x:80,y:50+n*(y+T)+y/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+n))),l&&t("g",{transform:"translate(600, 100)",children:[e("rect",{x:"0",y:"0",width:"20",height:"200",fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid"}),e("text",{x:"-10",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"25",y:"5",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"25",y:"200",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),v&&d&&i[d.datasetIndex]?.data?.[d.pointIndex]&&e(Bt,{dataPoint:i[d.datasetIndex].data[d.pointIndex],datasetLabel:i[d.datasetIndex]?.label,datasetColor:i[d.datasetIndex]?.color||r[d.datasetIndex%r.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})},onDataPointClick:u,...m})})));function jt(e,t={}){const[n,a]=r(1),[i,o]=r({x:0,y:0}),[s,l]=r(null),c=h(((e,t)=>{const n=[];for(let a=t-1;a<e.length;a++){const r=e.slice(a-t+1,a+1).reduce(((e,t)=>e+t.value),0)/t,i=e[a];i&&n.push({label:i.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return n}),[]),u=h((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=e.reduce(((e,t,n)=>e+n),0),a=e.reduce(((e,t)=>e+t.value),0),r=(t*e.reduce(((e,t,n)=>e+n*t.value),0)-n*a)/(t*e.reduce(((e,t,n)=>e+n*n),0)-n*n),i=(a-r*n)/t;return e.map(((e,t)=>({label:e.label,value:r*t+i,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=h(((e,t=.4)=>{if(2>e.length)return"";const n=e.map(((n,a)=>{if(0===a||a===e.length-1)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const r=e[a-1],i=e[a+1];if(!r||!i)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const o=i.x-r.x,s=i.y-r.y;return{cp1x:n.x-o*t,cp1y:n.y-s*t,cp2x:n.x+o*t,cp2y:n.y+s*t}})),a=e[0];if(!a)return"";let r=`M ${a.x},${a.y}`;for(let i=1;i<e.length;i++){const t=n[i-1],a=n[i],o=e[i];t&&a&&o&&(r+=` C ${t.cp2x},${t.cp2y} ${a.cp1x},${a.cp1y} ${o.x},${o.y}`)}return r}),[]),p=h(((e,r,i)=>{if(!t.enableZoom)return;const s=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));a(s);const l=s/n;o((e=>({x:r-(r-e.x)*l,y:i-(i-e.y)*l})))}),[n,t.enableZoom]),g=h(((e,n)=>{t.enablePan&&o((t=>({x:t.x+e,y:t.y+n})))}),[t.enablePan]),f=h((()=>{a(1),o({x:0,y:0})}),[]),S=h(((e,t,n,a,r,i)=>{l({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),b=h((()=>{l(null)}),[]),E=d((()=>e.map((e=>{const n={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(n.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(n.trendLine=u(e.data)),n}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,u]);return{zoomLevel:n,panOffset:i,hoveredPoint:s,processedDatasets:E,handleZoom:p,handlePan:g,resetView:f,handlePointHover:S,handlePointLeave:b,calculateMovingAverage:c,calculateTrendLine:u,generateSmoothPath:m,setZoomLevel:a,setPanOffset:o,setHoveredPoint:l}}Kt.displayName="HeatmapChart";const $t=s(l((({datasets:a=[],config:r={},lineOptions:i={},onDataPointClick:o,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...h},u)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...i},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:S,handlePointLeave:b,hoveredPoint:E}=jt(a,m);return e(Dt,{ref:u,type:"line",datasets:p,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:c})=>{if(!i.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],c=n.data?.length||0;if(0===c)return null;const d=n.data?.map(((e,t)=>({x:a.xScale(t,c),y:a.yScale(e.value)})))||[],h=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${h} L ${d[d.length-1]?.x||0},${a.yScale(0)} L ${d[0]?.x||0},${a.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:h,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&n.data?.map(((n,r)=>{const d=a.xScale(r,c),h=a.yScale(n.value),u=s?.datasetIndex===i&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:h,r:u?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__data-point "+(u?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,r,d,h,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,onClick:()=>o.onDataPointClick?.(n,i,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:h-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:n.value})]},"point-"+r)}))]},"dataset-"+i)})),d&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(Bt,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,interactive:!0,enableAccessibility:!0,...h})})));$t.displayName="LineChart";const Qt=s(l((({datasets:n=[],config:a={},yAxes:r=[],xAxes:i=[],multiAxisOptions:o={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:h="top",syncAxes:u=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:S=!1,areaOpacity:b=.3,showDataPoints:E=!0,pointRadius:v=4,spanGaps:A=!1}=o;return e(Dt,{ref:c,type:"line",datasets:n,config:a,renderContent:({scales:a,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:m})=>{if(!n.length)return null;const p=u?.showGrid??!0,g=60,f=a.width-120,A=a.height-120,y=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],T=i.length?i:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],N={};n.forEach(((e,t)=>{const n=e.yAxisId||y[0]?.id||"y-axis-1";N[n]||(N[n]=[]),N[n].push({...e,index:t})}));const _={};Object.entries(N).forEach((([e,t])=>{const n=t.flatMap((e=>e.data.map((e=>e.value)))),a=Math.min(...n),r=Math.max(...n),i=r-a||1;_[e]={min:a,max:r,scale:A/i}}));const C=[];if(p)for(let t=0;5>=t;t++){const n=g+t/5*A;C.push(e("line",{x1:g,y1:n,x2:g+f,y2:n,className:"c-chart__grid"},"grid-"+t))}if(n.forEach(((t,n)=>{const a=t.yAxisId||y[0]?.id||"y-axis-1",r=_[a],i=t.color||o[n%o.length],s=t.data.map(((e,n)=>({x:g+n/(t.data.length-1)*f,y:r?g+A-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),S&&c){const t=`${c} L ${g+f},${g+A} L 60,${g+A} Z`;C.push(e("path",{d:t,fill:i,fillOpacity:b},"area-"+n))}C.push(e("path",{d:c,stroke:i,fill:"none",className:"c-chart__data-line"},"line-"+n)),E&&s.forEach(((a,r)=>{const o=t.data[r];o&&C.push(e("circle",{cx:a.x,cy:a.y,r:v,fill:i,onClick:()=>l.onDataPointClick?.(o,n,r)},`point-${n}-${r}`))}))})),y.forEach((t=>{C.push(e("line",{x1:g,y1:g,x2:g,y2:g+A,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),T.forEach((t=>{C.push(e("line",{x1:g,y1:g+A,x2:g+f,y2:g+A,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===h?20:a.height-30;n.forEach(((a,i)=>{const s=a.color||o[i%o.length],l=g+i*f/n.length;C.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+i))}))}return e("g",{children:C})},onDataPointClick:s,...l})})));function Zt(e,t={}){const[n,a]=r(null),[i,o]=r(new Set),[s,l]=r(0),[c,u]=r(!1),m=d((()=>{const n=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return n.length?t.sortByValue?[...n].sort(((e,t)=>t.value-e.value)):n:[]}),[e,t.sortByValue]),p=d((()=>m.reduce(((e,t)=>e+t.value),0)),[m]),g=d((()=>{if(!m.length||0>=p)return[];const e=400,n=200,a=150,r=a*(t.innerRadius||0),i=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,h=o+d,u=o+d/2,m=e+a*Math.cos(o),g=n+a*Math.sin(o),f=e+a*Math.cos(h),S=n+a*Math.sin(h),b=d>Math.PI?1:0;let E;E=r>0?[`M ${m},${g}`,`A 150,150 0 ${b},1 ${f},${S}`,`L ${e+r*Math.cos(h)},${n+r*Math.sin(h)}`,`A ${r},${r} 0 ${b},0 ${e+r*Math.cos(o)},${n+r*Math.sin(o)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${b},1 ${f},${S}`,"Z"].join(" ");const v=(a+r)/2||105,A=e+v*Math.cos(u),y=n+v*Math.sin(u),T={dataPoint:t,index:l,startAngle:o,endAngle:h,midAngle:u,color:t.color||i[l%i.length],percentage:100*c,value:t.value,label:t.label,path:E,labelPosition:{x:A,y:y}};return o=h+s,T}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=h((()=>{if(!t.enableAnimations)return;u(!0),l(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);l(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):u(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),S=h(((e,t,n)=>{a(e)}),[]),b=h((()=>{a(null)}),[]),E=h((e=>{t.enableSelection&&o((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}),[t.enableSelection]),v=h((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const n=[];return!1!==t.showLabels&&n.push(e.label),t.showPercentages&&n.push(Math.round(e.percentage)+"%"),t.showValues&&n.push(e.value.toString()),n.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),A=h(((e,n)=>n&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),y=h((e=>i.has(e)),[i]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:n,selectedSlices:i,animationProgress:s,isAnimating:c,handleSliceHover:S,handleSliceLeave:b,handleSliceClick:E,startAnimation:f,formatLabel:v,getSliceTransform:A,isSliceSelected:y,setHoveredSlice:a,setSelectedSlices:o,setAnimationProgress:l,setIsAnimating:u}}Qt.displayName="MultiAxisChart";const qt=s(l((({datasets:a=[],config:r={},pieOptions:i={},onDataPointClick:o,...s},l)=>{const c=a[0]?.data||[],{slices:d,handleSliceHover:h,handleSliceLeave:u,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=Zt(c,i);return e(Dt,{ref:l,type:"pie",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:h,config:u})=>{if(!d.length)return null;const g=a.width,f=a.height,S=g/2,b=f/2,E=Math.min(g,f)/2*.8,v=d.map((e=>{const t=S+E*Math.cos(e.startAngle),n=b+E*Math.sin(e.startAngle),a=S+E*Math.cos(e.endAngle),r=b+E*Math.sin(e.endAngle),i=e.endAngle-e.startAngle,o=[`M ${S},${b}`,`L ${t},${n}`,`A ${E},${E} 0 ${i>Math.PI?1:0},1 ${a},${r}`,"Z"].join(" "),s=.7*E,l=S+s*Math.cos(e.midAngle),c=b+s*Math.sin(e.midAngle);return{...e,path:o,labelPosition:{x:l,y:c}}})),A=h?.showTooltips??u?.showTooltips??!0;return t(n,{children:[v.map(((n,a)=>{const r=l?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(a),s.onDataPointClick?.(n.dataPoint,0,a)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(n)})]},"slice-"+a)})),A&&l&&c[l.pointIndex]&&e(Bt,{dataPoint:c[l.pointIndex],datasetLabel:o[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));qt.displayName="PieChart";const Xt=s(l((({datasets:a=[],config:r={},radarOptions:i={},onDataPointClick:o,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:h=!0,fillArea:u=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:S=!1,scaleType:b="linear",scaleMin:E=0,scaleMax:v}=i;return e(Dt,{ref:l,type:"radar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:b})=>{if(!i.length)return null;const A=l?.showTooltips??b?.showTooltips??!0,y=a.width/2,T=a.height/2,N=.8*Math.min(y,T),_=i[0].data||[],C=2*Math.PI/_.length;let L=E,x=v;if(void 0===L||void 0===x){const e=i.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(E,...e)),void 0===x&&(x=Math.max(v||0,...e))}const I=x-L,O=[];if(d){for(let t=1;c>=t;t++){const n=N*t/c;O.push(e("circle",{cx:y,cy:T,r:n,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=y+N*Math.cos(n),r=T+N*Math.sin(n);O.push(e("line",{x1:y,y1:T,x2:a,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(h)for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=y+(N+20)*Math.cos(n),r=T+(N+20)*Math.sin(n);R.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:_[t]?.label},"label-"+t))}const w=i.map(((n,a)=>{const i=n.color||r[a%r.length],l=[];for(let e=0;e<n.data?.length;e++){const t=n.data[e]?.value||0,a=N*(I>0?(t-L)/I:0),r=e*C-Math.PI/2,i=y+a*Math.cos(r),o=T+a*Math.sin(r);l.push({x:i,y:o,value:t,point:n.data[e]})}if(0===l.length)return null;let c="";if(S&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)c+=` L ${l[e].x},${l[e].y}`;c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)c+=` L ${l[e].x},${l[e].y}`;c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[u&&e("path",{d:c,fill:i,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:i,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,n)=>{const r=s?.datasetIndex===a&&s?.pointIndex===n;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:i,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>o.onDataPointClick?.(t.point,a,n),onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();o.onPointHover(a,n,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:o.onPointLeave})},`point-${a}-${n}`)}))]},"dataset-"+a)}));return t(n,{children:[t("g",{children:[O,w,R]}),A&&s&&e(Bt,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Xt.displayName="RadarChart";const Jt=s(l((({datasets:a=[],config:r={},scatterOptions:i={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:o,...s},l)=>e(Dt,{ref:l,type:"scatter",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!o.length)return null;const h=c?.showTooltips??d?.showTooltips??!0,u=[];return o.forEach(((n,o)=>{const l=n.color||r[o%r.length];n.data?.forEach(((r,c)=>{const d=void 0!==r.x?a.padding.left+r.x/100*a.innerWidth:a.xScale(c,n.data?.length),h=void 0!==r.y?a.padding.top+a.innerHeight-r.y/100*a.innerHeight:a.yScale(r.value);u.push(t("g",{children:[e("circle",{cx:d,cy:h,r:r.size||i.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,o,c),onMouseEnter:e=>{if(i.enableHoverEffects){const t=Math.max(0,1.5*(r.size||i.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(o,c,d,h,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(i.enableHoverEffects){const t=Math.max(0,r.size||i.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),i.showLabels&&r.label&&e("text",{x:d,y:h-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${o}-${c}`))}))})),t(n,{children:[u,h&&l&&e(Bt,{dataPoint:o[l.datasetIndex]?.data?.[l.pointIndex],datasetLabel:o[l.datasetIndex]?.label,datasetColor:o[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s}))));Jt.displayName="ScatterChart";const en=s(l((({data:a=[],algorithm:i="squarified",colorConfig:o={scheme:"category"},labelConfig:s={showLabels:!0,minSize:1e3,fontSize:12,textColor:"white"},onDataPointClick:l,config:c={},...u},m)=>{const[p,g]=r(null),[f,S]=r(null);r({x:0,y:0}),d((()=>{if(!a.length)return null;const e=new Map;a.forEach((t=>e.set(t.id,t)));const t=[],n=new Set,r=e=>{if(n.has(e.id))return e;n.add(e.id);const t=a.filter((t=>t.parent===e.id));return t.length>0&&(e.children=t.map((e=>r(e))),e.value=e.children.reduce(((e,t)=>e+t.value),0)),e};return a.forEach((n=>{n.parent&&e.has(n.parent)||t.push(r(n))})),1===t.length?t[0]:{id:"root",label:"Root",value:t.reduce(((e,t)=>e+t.value),0),children:t}}),[a]);const b=h(((e,t,n)=>{if(e.color)return e.color;const{scheme:r,palette:i}=o,s=i||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return s[n%s.length];case"depth":const r=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return r[Math.min(t,r.length-1)];case"value":if(a.length>0){const t=Math.max(...a.map((e=>e.value))),n=Math.min(...a.map((e=>e.value))),r=(e.value-n)/(t-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return s[0]}}),[o,a]),E=h(((e,t,n,a,r)=>{if(0===e.length)return;const i=e.reduce(((e,t)=>e+t.value),0);if(1===e.length){const i=e[0];return void(i&&(i.x=t,i.y=n,i.width=a,i.height=r))}const o=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...o],d=t,h=n,u=a,m=r;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=l.reduce(((e,t)=>e+t.value),0),n=t/i;let a,r;m>u?(a=u,r=m*n):(a=u*n,r=m);let o=!1;if(c.length>0){const e=c[0];if(!e)break;const n=[...l,e],d=n.reduce(((e,t)=>e+t.value),0),h=d/i;let p,g;m>u?(p=u,g=m*h):(p=u*h,g=m),o=Math.max(...l.filter((e=>e)).map((e=>{const n=e.value/t;return s({width:m>u?a*n:a,height:m>u?r:r*n})})))>=Math.max(...n.filter((e=>e)).map((e=>{const t=e.value/d;return s({width:m>u?p*t:p,height:m>u?g:g*t})})))}if(!o){let e=d,n=h;l.forEach((i=>{const o=i.value/t;m>u?(i.x=e,i.y=n,i.width=u*o,i.height=r,e+=i.width):(i.x=e,i.y=n,i.width=a,i.height=m*o,n+=i.height)})),m>u?(h+=r,m-=r):(d+=a,u-=a),l=[]}}}),[]);return e(Dt,{ref:m,type:"treemap",datasets:[{label:"Treemap Data",data:a}],config:c,renderContent:({scales:r,colors:o,datasets:l,handlers:c,hoveredPoint:d})=>{if(!a.length)return null;const h=r.width-40,u=r.height-40,m=a.filter((e=>!e.children||0===e.children.length));if(!m.length)return null;const v=m.reduce(((e,t)=>e+t.value),0),A=m.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:b(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===i&&v>0)E(A,20,20,h,u);else{const e=Math.ceil(Math.sqrt(m.length)),t=Math.ceil(m.length/e),n=h/e,a=u/t;A.forEach(((t,r)=>{const i=r%e,o=Math.floor(r/e);t.x=20+i*n,t.y=20+o*a,t.width=n,t.height=a}))}return e(n,{children:A.map((n=>{const a=p===n,r=f===n,i=n.width*n.height,o=s.showLabels&&i>=(s.minSize||1e3);return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:n.color,className:`c-chart__treemap-node ${a?"c-chart__treemap-node--hovered":""} ${r?"c-chart__treemap-node--selected":""}`,onClick:()=>{S(n),c.onDataPointClick?.(n.originalData,0,0)},onMouseEnter:e=>{g(n);const t=e.currentTarget.getBoundingClientRect();c.onPointHover(0,0,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),o&&e("text",{x:n.x+n.width/2,y:n.y+n.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:s.fontSize,fill:s.textColor},children:n.label})]},n.id)}))})},onDataPointClick:l,interactive:!0,...u})})));en.displayName="TreemapChart";const tn=s(l((({waterfallData:t=[],config:n={},waterfallOptions:a={},onDataPointClick:r,...i},o)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:h="top",colors:u={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:S=1e3,animationDelay:b=100,valueFormatter:E=e=>e.toLocaleString(),showBaseline:v=!0,baselineColor:A="var(--atomix-gray-2)"}=a;return e(Dt,{ref:o,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:n,renderContent:({scales:n,colors:a,datasets:r,handlers:i,hoveredPoint:o,toolbarState:S,config:y})=>{if(!t.length)return null;const T=S?.animationsEnabled??y?.animate??f,N=60,_=n.width-120,C=n.height-120;let L=0;const x=t.map(((e,t)=>{const n="total"===e.type||"subtotal"===e.type?0:L;let a;return"total"===e.type||"subtotal"===e.type?(a=e.value,L=e.value):(a=L+e.value,L=a),{...e,startValue:n,endValue:a,cumulativeValue:L,index:t}})),I=x.flatMap((e=>[e.startValue,e.endValue])),O=Math.min(0,...I),R=Math.max(...I)-O,w=_/t.length*m,M=_/t.length,D=e=>N+e*M+M/2,k=e=>N+C-(e-O)/R*C,B=[];if(v){const t=k(0);B.push(e("line",{x1:N,y1:t,x2:n.width-N,y2:t,stroke:A,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(x.forEach(((t,n)=>{const a=D(n),r=Math.min(k(t.startValue),k(t.endValue)),o=Math.max(k(t.startValue),k(t.endValue)),m=o-r;let p=t.color;if(p||(p="total"===t.type?u.total:"subtotal"===t.type?u.subtotal:0>t.value?u.negative:u.positive),B.push(e("rect",{x:a-w/2,y:r,width:w,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(T?"c-chart__waterfall-bar--animated":""),style:{animationDelay:T?n*b+"ms":"0ms"},onClick:()=>i.onDataPointClick?.(t,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(0,n,a,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave},"bar-"+n)),d){let i=r,s=t.value;i="center"===h?r+m/2:"bottom"===h?o+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),B.push(e("text",{x:a,y:i,textAnchor:"middle",dominantBaseline:"center"===h?"middle":"auto",className:"c-chart__waterfall-value "+("center"===h?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:E(s)},"value-"+n))}if(s&&n<x.length-1){const r=x[n+1];if(r){const i=k(t.endValue),o=k(r.startValue),s=D(n+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";B.push(e("line",{x1:a+w/2,y1:i,x2:s-w/2,y2:o,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+n))}}}})),p){const t=x.map(((e,t)=>({x:D(t),y:k(e.cumulativeValue)}))),n="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");B.push(e("path",{d:n,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,n)=>{B.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+n))}))}return B.push(e("line",{x1:N,y1:n.height-N,x2:n.width-N,y2:n.height-N,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),B.push(e("line",{x1:N,y1:N,x2:N,y2:n.height-N,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),x.forEach(((t,a)=>{const r=N+a*M+M/2;B.push(e("text",{x:r,y:n.height-N+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${n.height-N+20})`,children:t.label},"x-label-"+a))})),e("g",{children:B})},onDataPointClick:r,...i})})));tn.displayName="WaterfallChart";const nn={sm:16,md:24,lg:32},an=({className:t="",style:n,value:a,defaultValue:i="light",onChange:s,lightIcon:l,darkIcon:c,size:d="md",disabled:u=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":S,showTooltip:b=!0})=>{const E=void 0!==a,[v,A]=r(i),y=E?a:v;o((()=>{if(!E&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void A(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&A("dark")}}),[E,g,f,m]),o((()=>{if("undefined"==typeof window)return;const e="dark"===y?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[y,p,g,m]),o((()=>{if(E||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)A(e.matches?"dark":"light");else try{localStorage.getItem(m)||A(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[E,f,g,m]);const T=h((()=>{if(u)return;const e="light"===y?"dark":"light";E||A(e),s?.(e)}),[u,y,E,s]),N=nn[d],_="light"===y?"dark":"light",C=S||`Switch to ${_} mode`,L=b?`Switch to ${_} mode`:void 0,x=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}),I=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${d} ${u?"c-color-mode-toggle--disabled":""} ${t}`,onClick:T,disabled:u,"aria-label":C,"aria-pressed":"dark"===y,title:L,style:n,children:"light"===y?l||x:c||I})};an.displayName="ColorModeToggle";const rn=l((({target:n,show:i=["days","hours","minutes","seconds"],separator:s=":",focused:l=!1,className:c="",style:d,onComplete:h},u)=>{const m="string"==typeof n?new Date(n):n,[p,g]=r((()=>new Date)),[f,S]=r(!1);o((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const b=m.getTime()-p.getTime(),{days:E,hours:v,minutes:A,seconds:y}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(b);o((()=>{b>0||f||(S(!0),h&&h())}),[b,f,h]);const T=[];return i.includes("days")&&T.push({label:"Days",value:E}),i.includes("hours")&&T.push({label:"Hours",value:v}),i.includes("minutes")&&T.push({label:"Minutes",value:A}),i.includes("seconds")&&T.push({label:"Seconds",value:y}),e("div",{ref:u,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:T.map(((n,r)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(n.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),r<T.length-1&&e("span",{className:"c-countdown__separator",children:s})]},n.label)))})}));function on({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:i=10,onSort:s,initialSortConfig:l}){const[c,u]=r(l||null),[m,p]=r(1),[g,f]=r(""),S=h((e=>{if(!n)return;let t="asc";c&&c.key===e&&"asc"===c.direction&&(t="desc");const a={key:e,direction:t};u(a),s&&s(a)}),[n,c,s]),b=h((t=>{1>t||t>Math.ceil(e.length/i)||p(t)}),[e.length,i]),E=h((e=>{f(e),p(1)}),[]),v=d((()=>{if(!g)return e;const n=g.toLowerCase();return e.filter((e=>t.some((t=>{const a=e[t.key];return null!=a&&(a+"").toLowerCase().includes(n)}))))}),[e,t,g]),A=d((()=>c&&n?[...v].sort(((e,t)=>{const n=e[c.key],a=t[c.key];return null==n?"asc"===c.direction?-1:1:null==a?"asc"===c.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===c.direction?n.localeCompare(a):a.localeCompare(n):"asc"===c.direction?n>a?1:-1:n>a?-1:1})):v),[v,c,n]),y=d((()=>{if(!a)return A;const e=(m-1)*i;return A.slice(e,e+i)}),[A,a,m,i]),T=d((()=>a?Math.max(1,Math.ceil(A.length/i)):1),[A.length,a,i]);return o((()=>{p(1)}),[e]),o((()=>{m>T&&p(Math.max(1,T))}),[m,T]),{displayData:y,sortConfig:c,currentPage:m,totalPages:T,handleSort:S,handlePageChange:b,handleSearch:E}}rn.displayName="Countdown";const sn="...",ln=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),cn=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=d((()=>{if(n+5>=t)return ln(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),i=a>2,o=t-2>r,s=t;if(!i&&o)return[...ln(1,3+2*n),sn,t];if(i&&!o){let e=ln(t-(3+2*n)+1,t);return[1,sn,...e]}if(i&&o){let e=ln(a,r);return[1,sn,...e,sn,s]}return[]}),[t,n,e]),i=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:sn}},dn=({type:t,onClick:n,disabled:a,label:r,iconName:i})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${a?"is-disabled":""}`,"aria-disabled":a,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:a,"aria-label":r,children:e(lt,{name:i,size:"sm","aria-hidden":"true"})})}),hn=({currentPage:n=te.currentPage,totalPages:a=te.totalPages,onPageChange:r,siblingCount:i=te.siblingCount,showFirstLastButtons:o=te.showFirstLastButtons,showPrevNextButtons:s=te.showPrevNextButtons,size:l=te.size,className:c="",style:d,ariaLabel:h="Pagination",glass:u})=>{const{paginationRange:m,goToPage:p,nextPage:g,prevPage:f,firstPage:S,lastPage:b}=cn({currentPage:n,totalPages:a,siblingCount:i,onPageChange:r});if(0===n||2>m.length)return null;const E=e("nav",{className:`c-pagination c-pagination--${l} ${c}`,style:d,"aria-label":h,children:t("ul",{className:"c-pagination__items",children:[o&&e(dn,{type:"first",onClick:S,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),s&&e(dn,{type:"prev",onClick:f,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,a)=>{if(t===sn)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const r=t===n;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>p(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),s&&e(dn,{type:"next",onClick:g,disabled:n===a,label:"Go to next page",iconName:"CaretRight"}),o&&e(dn,{type:"last",onClick:b,disabled:n===a,label:"Go to last page",iconName:"SkipForward"})]})});if(u){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===u?t:{...t,...u};return e(He,{...n,children:E})}return E};hn.displayName="Pagination";const un=({data:n,columns:a,className:r,style:o,sortable:s=!1,filterable:l=!1,paginated:c=!1,pageSize:d=10,striped:h=!1,bordered:u=!1,dense:m=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:f,onSort:S,...b})=>{const E=i(null),{displayData:v,sortConfig:A,currentPage:y,totalPages:T,handleSort:N,handlePageChange:_,handleSearch:C}=on({data:n,columns:a,sortable:s,paginated:c,pageSize:d,onSort:S}),L=[ee.base,h&&ee.striped,u&&ee.bordered,m&&ee.dense,p&&ee.loading,r].filter(Boolean).join(" ");return t("div",{className:ee.container,style:o,...b,children:[l?e("div",{className:ee.toolbar,children:e("div",{className:ee.search,children:e("input",{type:"text",placeholder:"Search...",className:ee.searchInput+" c-input",onChange:e=>C(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:ee.tableWrapper,children:t("table",{ref:E,className:L,children:[e("thead",{className:ee.header,children:e("tr",{children:a.map(((n,a)=>e("th",{className:`${ee.headerCell} ${!1!==n.sortable&&s?ee.sortable:""}`,onClick:()=>!1!==n.sortable&&s?N(n.key):null,"aria-sort":A?.key===n.key?"asc"===A.direction?"ascending":"descending":void 0,children:t("div",{className:ee.headerContent,children:[e("span",{children:n.title}),!1!==n.sortable&&s&&e("span",{className:ee.sortIcon,children:A?.key===n.key?"asc"===A.direction?e(lt,{name:"CaretUp",size:"sm"}):e(lt,{name:"CaretDown",size:"sm"}):null})]})},"header-"+a)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:a.length,className:ee.loadingCell,children:e("div",{className:ee.loadingIndicator,children:e(Et,{size:"md",variant:"primary"})})})})}):0===v.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:a.length,className:ee.emptyCell,children:g})})}):e("tbody",{children:v.map(((t,n)=>e("tr",{className:ee.row,onClick:f?()=>f(t):void 0,tabIndex:f?0:void 0,role:f?"button":void 0,children:a.map(((a,r)=>e("td",{className:ee.cell,children:a.render?a.render(t[a.key],t):t[a.key]},`cell-${n}-${r}`)))},"row-"+n)))})]})}),c&&T>1?e("div",{className:ee.pagination,children:e(hn,{currentPage:y,totalPages:T,onPageChange:_,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};function mn(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function pn(e,t){return new Date(e,t+1,0).getDate()}function gn(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function fn({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,inline:m=!1}={}){const[p,g]=r(m),[f,S]=r(e?gn(e,c):""),[b,E]=r(a&&s?`${gn(a,c)} - ${gn(s,c)}`:a?gn(a,c)+" - Select end date":""),[v,A]=r(e||a||new Date),[y,T]=r("days"),[N,_]=r(!a||a&&s?"start":"end"),C=i(null),L=i(null),x=new Date,I=v.getMonth(),O=v.getFullYear(),R=pn(O,I),w=new Date(O,I,1).getDay();o((()=>{"single"===n?S(e?gn(e,c):""):(E(a&&s?`${gn(a,c)} - ${gn(s,c)}`:a?gn(a,c)+" - Select end date":""),_(!a||a&&s?"start":"end"))}),[e,a,s,c,n]);const M=h((e=>{const r=new Date(O,I,e);if(!(d&&d>r||u&&r>u))if("single"===n)t&&t(r),S(gn(r,c)),m||g(!1);else if("start"===N)l&&l({startDate:r,endDate:null}),E(gn(r,c)+" - Select end date"),_("end");else{if(!a)return;a>r?(l&&l({startDate:r,endDate:a}),E(`${gn(r,c)} - ${gn(a,c)}`)):(l&&l({startDate:a,endDate:r}),E(`${gn(a,c)} - ${gn(r,c)}`)),m||g(!1),_("start")}}),[O,I,d,u,t,l,c,m,n,N,a]),D=h((()=>{A(new Date(O,I-1,1))}),[O,I]),k=h((()=>{A(new Date(O,I+1,1))}),[O,I]),B=h((()=>{A(new Date(O-1,I,1))}),[O,I]),P=h((()=>{A(new Date(O+1,I,1))}),[O,I]),F=h((()=>{T("months")}),[]),z=h((()=>{T("years")}),[]),U=h((e=>{A(new Date(O,e,1)),T("days")}),[O]),G=h((e=>{A(new Date(e,I,1)),T("months")}),[I]),V=h((()=>{const e=new Date;A(e),"single"===n?M(e.getDate()):A(new Date)}),[M,n]),H=h((()=>{"single"===n?(S(""),t&&t(null)):(E(""),_("start"),l&&l({startDate:null,endDate:null}))}),[t,l,n]),W=h((e=>{if("single"===n){S(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),A(n))}else{E(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),n=t[1]?.trim();if(!e||!n)return;const a=new Date(e);if(isNaN(a.getTime())||A(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||l&&l({startDate:t,endDate:a})}}}}),[t,l,n]),Y=h((()=>{m||g(!0)}),[m]),K=h((e=>{C.current&&!C.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!m?document.addEventListener("mousedown",K):document.removeEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)})),[p,K,m]);const j=h((()=>{const e=[],t=pn(0===I?O-1:O,0===I?11:I-1);for(let a=w-1;a>=0;a--)e.push({day:t-a,month:0===I?11:I-1,year:0===I?O-1:O,isCurrentMonth:!1});for(let a=1;R>=a;a++)e.push({day:a,month:I,year:O,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===I?0:I+1,year:11===I?O+1:O,isCurrentMonth:!1});return e}),[R,w,I,O]),$=h((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:mn(t)});return e}),[]),Q=h((()=>{const e=[],t=O-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[O]),Z=h(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),d,u)),[d,u]),q=h(((t,r,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===i;if(!a&&!s)return!1;if(a&&!s)return a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i;if(a&&s){const e=a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i,n=s.getFullYear()===t&&s.getMonth()===r&&s.getDate()===i;return e||n}return!1}),[e,n,a,s]),X=h(((e,t,r)=>{if("range"!==n||!a||!s)return!1;const i=new Date(e,t,r);return i>a&&s>i}),[n,a,s]),J=h(((e,t,n)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===n),[x]),ee=h((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:f,rangeInputValue:b,viewDate:v,viewMode:y,currentMonth:I,currentYear:O,selectionMode:n,rangeSelectionState:N,datePickerRef:C,inputRef:L,startDate:a,endDate:s,setIsOpen:g,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:k,handlePrevYear:B,handleNextYear:P,handleTodayClick:V,handleClear:H,handleInputChange:W,handleInputFocus:Y,switchToMonthView:F,switchToYearView:z,selectMonth:U,selectYear:G,generateDays:j,generateMonths:$,generateYears:Q,isDateSelectable:Z,isDateSelected:q,isDateInSelectedRange:X,isToday:J,getWeekNumber:ee}}un.displayName="DataTable";const Sn=l((({value:a,onChange:r,selectionMode:i="single",startDate:o,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:h,placeholder:u="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:b=!1,inline:E=!1,id:v,name:A,className:y="",placement:T="bottom-start",inputClassName:N="",size:_="md",style:C,glass:L,...x},I)=>{const{isOpen:O,inputValue:R,rangeInputValue:w,viewMode:M,currentMonth:D,currentYear:k,selectionMode:B,rangeSelectionState:P,datePickerRef:F,inputRef:z,startDate:U,endDate:G,setIsOpen:V,handleInputChange:H,handleInputFocus:W,handleClear:Y,handleDateSelect:K,handleTodayClick:j,handlePrevMonth:$,handleNextMonth:Q,handlePrevYear:Z,handleNextYear:q,switchToMonthView:X,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ne,generateMonths:ae,generateYears:re,isDateSelectable:ie,isDateSelected:oe,isDateInSelectedRange:se,isToday:le,getWeekNumber:ce}=fn({value:a,onChange:r,selectionMode:i,startDate:o,endDate:s,onRangeChange:l,minDate:d,maxDate:h,format:c,inline:E});S(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Y,focus:()=>z.current?.focus()})));const de=`c-datepicker ${y} ${E?"c-datepicker--inline":""}`.trim(),he=`c-datepicker__input c-input c-input--${_} ${N}`.trim(),ue=v||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===i?R:w,ge=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",fe=()=>{},Se=()=>{},be=()=>{},Ee=()=>t(n,{children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Z,"aria-label":"Previous year",children:e(lt,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:$,"aria-label":"Previous month",children:e(lt,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"aria-label":`${ge(D)} ${k}`,children:[ge(D)," ",k]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:Q,"aria-label":"Next month",children:e(lt,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:q,"aria-label":"Next year",children:e(lt,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Z,"aria-label":"Previous year",children:e(lt,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+k,children:k}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:q,"aria-label":"Next year",children:e(lt,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:fe,"aria-label":"Previous decade",children:e(lt,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:be,children:[re()[0]," - ",re()[re().length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:Se,"aria-label":"Next decade",children:e(lt,{name:"CaretDoubleRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(n,{children:[t("div",{className:"c-datepicker__weekdays"+(b?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[b&&e("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((t=>e("div",{className:"c-datepicker__weekday",role:"columnheader",children:t},t)))]}),e("div",{className:"c-datepicker__days"+(b?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],n=ne();for(let a=0;a<n.length;a++){const r=n[a];if(!r)continue;const i=new Date(r.year,r.month,r.day),o=ie(r.year,r.month,r.day),s=oe(r.year,r.month,r.day),l=le(r.year,r.month,r.day),c=se(r.year,r.month,r.day);if(b&&a%7==0){const n=ce(i);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:n},"weeknumber-"+Math.floor(a/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${o?"":"c-datepicker__day--disabled"}`,onClick:()=>o&&K(r.day),disabled:!o,tabIndex:r.isCurrentMonth?0:-1,"aria-label":i.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+a))}return t})()})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ae().map(((t,n)=>{const r=a&&a.getMonth()===t.month&&a.getFullYear()===k;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>ee(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:re().map(((t,n)=>{const r=a&&a.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>te(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===i&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===P?"start":"end"," date"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:j,"aria-label":"Go to today",children:"Today"}),!E&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t("div",{className:de,ref:F,style:C,...x,children:[!E&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ue,name:A,ref:z,type:"text",className:he,placeholder:"single"===i?u:"start"===P?"Select start date...":U?gn(U,c)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:W,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":me}),g&&pe&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:e(lt,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(lt,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(O||E)&&e(n,{children:e("div",L?{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${T} c-datepicker__calendar--glass`,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:e(He,{...!0===L?{displacementScale:20}:L,children:e("div",{className:"c-datepicker__glass-content",children:Ee()})})}:{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+T,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:Ee()})})]})}));Sn.displayName="DatePicker";const bn=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),En=({children:n,menu:a,placement:s="bottom-start",trigger:l="click",offset:c=pe.DEFAULTS.OFFSET,isOpen:d,onOpenChange:u,closeOnClickOutside:m=!0,closeOnEscape:p=!0,maxHeight:g,minWidth:f=pe.DEFAULTS.MIN_WIDTH,variant:S,className:b="",style:E,glass:v,...A})=>{const[y,T]=r(!1),N=void 0!==d,_=N?d:y,C=i(null),L=i(null),x=i(null),I=i("dropdown-"+Math.random().toString(36).substring(2,9)).current,O=h((e=>{N||T(e),u&&u(e)}),[N,u]),R=h((()=>O(!_)),[_,O]),w=h((()=>{O(!1),setTimeout((()=>{L.current?.focus()}),0)}),[O]);o((()=>{if(!_||!m)return;const e=e=>{C.current&&!C.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,m,w]),o((()=>{if(!_||!p)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,p,w]);const M=h((e=>{if(!x.current)return;const t=x.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),D=h((e=>{"click"===l&&(e.preventDefault(),e.stopPropagation(),R())}),[l,R]),k=h((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),w()):(e.preventDefault(),O(!0),"ArrowDown"===e.key&&x.current&&setTimeout((()=>{const e=x.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,O,w]),B=h((()=>{"hover"===l&&O(!0)}),[l,O]),P=["c-dropdown","click"===l?"c-dropdown--onclick":"",S?"c-dropdown--"+S:"",_?"is-open":"",v?"c-dropdown--glass":"",b].filter(Boolean).join(" "),F={};g&&(F.maxHeight=g),void 0!==f&&(F.minWidth="number"==typeof f?f+"px":f);const z=e("div",{className:"c-dropdown__menu-inner",style:F,children:e(bn.Provider,{value:{isOpen:_,close:w,id:I,trigger:l},children:e("ul",{className:"c-dropdown__menu "+(v?"c-dropdown__menu--glass":""),children:a})})});return t("div",{ref:C,className:P,style:E,onMouseEnter:"hover"===l?B:void 0,...A,children:[e("div",{ref:L,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":I,tabIndex:0,children:n}),e("div",{ref:x,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${_?"is-open":""} ${v?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:v?(()=>{const t={displacementScale:20,elasticity:0},n=!0===v?t:{...t,...v};return e(He,{...n,children:z})})():z})]})};function vn(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,glass:void 0,...e},[n,a]=r(t.isOpen||!1),s=i(null),l=i(null),c=h((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[a]=n+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=h((()=>{if("push"!==t.mode)return;const{position:e}=t;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[n]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),u=h(((e=!1)=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:n}=t;if("none"!==n)if(e){s.current.classList.add("is-fade-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),J.ANIMATION_DURATION)}else{s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),J.ANIMATION_DURATION)}e?(s.current.style.opacity="1",s.current.style.transform=""):s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=h(((e=!1)=>{if(s.current){const{position:n,mode:r}=t;if("none"!==r)if(e){s.current.classList.add("is-fade-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),J.ANIMATION_DURATION)}else{s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),J.ANIMATION_DURATION)}e?(s.current.style.opacity="0",s.current.style.transform=""):s.current.style.transform=n?J.TRANSFORM_VALUES[n]:"","push"===t.mode&&d(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===r?0:J.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=h((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&m()}),[m,t.closeOnEscape,n]),g=h((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return o((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[n,p,t.closeOnEscape]),o((()=>{if(s.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(s.current.style.transform=J.TRANSFORM_VALUES[e],t.glass&&(s.current.style.opacity="0"))}}),[t.mode,t.position,t.glass,n]),o((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?u(!!t.glass):m(!!t.glass))}),[t.isOpen,m,n,u,t.glass]),{isOpen:n,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:i}=e,o=J.CLASSES.BASE;return`${o} ${a?`${o}--${a}`:""} ${i??n?J.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:u,closePanel:m,handleBackdropClick:g}}En.displayName="Dropdown";const An=({title:a,children:r,position:o="start",mode:s="slide",isOpen:l=!1,onOpenChange:c,backdrop:d=!0,closeOnBackdropClick:h=!0,closeOnEscape:u=!0,className:m="",style:p,glass:g})=>{const{isOpen:f,containerRef:S,backdropRef:b,generateEdgePanelClass:E,closePanel:v,handleBackdropClick:A}=vn({position:o,mode:s,isOpen:l,onOpenChange:c,backdrop:d,closeOnBackdropClick:h,closeOnEscape:u,glass:g}),y=i(null),T=E({position:o,isOpen:l,className:g?m+" c-edge-panel--glass":m});if(!f&&!1===l)return null;const N={elasticity:0},_=!0===g?N:{...N,...g},C=t(n,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:a}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>v(),"aria-label":"Close panel",children:e(lt,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:r})]});return t("div",{className:T,"data-position":o,"data-mode":s,style:p,children:[d&&e("div",{ref:b,className:"c-edge-panel__backdrop",onClick:A}),e("div",{ref:S,className:"c-edge-panel__container",children:g?e(He,{..._,className:"c-edge-panel__glass-wrapper",style:{position:"fixed",width:y.current?.offsetWidth,height:y.current?.offsetHeight,top:S.current?.offsetTop,left:S.current?.offsetLeft,bottom:S.current?.style.bottom,right:S.current?.style.right},children:e("div",{ref:y,className:"c-edge-panel__glass-content",style:{borderRadius:S.current?.style.borderRadius},children:C})}):C})]})};function yn(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=i(null);return o((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:i=t.indeterminate,className:o=""}=e;let s="";return a?s="is-error":r&&(s="is-valid"),`c-checkbox ${s} ${n?"is-disabled":""} ${i?"c-checkbox--mixed":""} ${o}`.trim()},checkboxRef:n}}An.displayName="EdgePanel";const Tn=({label:n,checked:a=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:h,invalid:u=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:f,glass:S})=>{const{generateCheckboxClass:b,checkboxRef:E}=yn({indeterminate:p,disabled:s,invalid:u,valid:m}),v=b({className:`${i} ${S?"c-checkbox--glass":""}`.trim(),disabled:s,invalid:u,valid:m,indeterminate:p}),A=t("div",{className:v,style:o,children:[e("input",{ref:E,type:"checkbox",className:"c-checkbox__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:h,"aria-label":n?void 0:g,"aria-describedby":f,"aria-invalid":u}),n&&e("label",{className:"c-checkbox__label",htmlFor:c,children:n})]});if(S){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===S?t:{...t,...S};return e(He,{...n,children:A})}return A};function Nn(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,r=n?ae.CLASSES.DISABLED:"";return`${ae.CLASSES.BASE} ${r} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}Tn.displayName="Checkbox";const _n=({children:t,onSubmit:n,onReset:a,className:r="",style:i,disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:h="on"})=>{const{generateFormClass:u,handleSubmit:m,handleReset:p}=Nn({disabled:o}),g=u({className:r,disabled:o});return e("form",{id:s,className:g,style:i,onSubmit:m(n),onReset:p(a),method:l,encType:c,noValidate:d,autoComplete:h,children:t})};function Cn(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?re.CLASSES.SMALL:re.CLASSES.LARGE,l=r?re.CLASSES.INVALID:i?re.CLASSES.VALID:"",c=a?re.CLASSES.DISABLED:"";return`${re.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}_n.displayName="Form";const Ln=({children:n,label:a,helperText:r,htmlFor:i,className:o="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:h=!1,size:u="md"})=>{const{generateFormGroupClass:m}=Cn({size:u,disabled:l,invalid:d,valid:h}),p=m({className:o,disabled:l,invalid:d,valid:h,size:u});return t("div",{className:p,style:s,children:[a&&t("label",{className:"c-form-group__label",htmlFor:i,children:[a,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:n}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function xn(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?ie.CLASSES.SMALL:ie.CLASSES.LARGE,d=a?"c-input--"+a:"",h="textarea"===l?"c-input--textarea":"";let u="";i?u=ie.CLASSES.INVALID:o&&(u=ie.CLASSES.VALID);const m=r?ie.CLASSES.DISABLED:"";return`${ie.CLASSES.BASE} ${c} ${d} ${h} ${u} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:n=""}=t,{prefixIcon:a=!1,suffixIcon:r=!1,clearable:i=!1,showCounter:o=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[ie.ELEMENTS.WRAPPER];return a&&c.push(ie.CLASSES.PREFIX_ICON),(r||i||s)&&c.push(ie.CLASSES.SUFFIX_ICON),i&&c.push(ie.CLASSES.CLEARABLE),o&&c.push(ie.CLASSES.WITH_COUNTER),s&&c.push(ie.CLASSES.PASSWORD_TOGGLE),l&&c.push(ie.CLASSES.FULL_WIDTH),n&&c.push(n),c.filter(Boolean).join(" ")}}}Ln.displayName="FormGroup";const In=l((({type:t="text",value:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:h=!1,id:u,name:m,autoComplete:p,autoFocus:g=!1,size:f="md",variant:S,invalid:b=!1,valid:E=!1,maxLength:v,minLength:A,pattern:y,min:T,max:N,step:_,ariaLabel:C,ariaDescribedBy:L,glass:x},I)=>{const{generateInputClass:O}=xn({size:f,variant:S,disabled:c,invalid:b,valid:E}),R=O({className:`${s} ${x?"c-input--glass":""}`.trim(),size:f,variant:S,disabled:c,invalid:b,valid:E,type:t}),w=e("input",{ref:I,type:t,className:R,value:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,disabled:c,required:d,readOnly:h,id:u,name:m,autoComplete:p,autoFocus:g,maxLength:v,minLength:A,pattern:y,min:T,max:N,step:_,"aria-label":C,"aria-describedby":L,"aria-invalid":b,style:x?{...l}:l});if(x){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===x?t:{...t,...x};return e(He,{...n,children:w})}return w}));function On(e){const t=i(null),n=i(null),s=i(null),l={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},c=!!l.backgroundSlider,u=c&&l.backgroundSlider?function(e){const{slides:t,autoplay:n,loop:s=!0,transition:l="fade",transitionDuration:c=1e3}=e,[u,m]=r(0),[p,g]=r(!1),f=i(null),S=i(!1),b=d((()=>t.map((()=>a.createRef()))),[t.length]),E=d((()=>t.map((()=>a.createRef()))),[t.length]),v=h((e=>{if(e===u||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const n=E[e]?.current;n&&"video"===t[e].type&&!1!==(t[e].videoOptions||{}).autoplay&&n.play().catch((()=>{}));const a=E[u]?.current;a&&"video"===t[u].type&&a.pause(),setTimeout((()=>{g(!1)}),c)}),[u,p,t,E,c]),A=h((()=>{if(0===t.length)return;let e;e=s?(u+1)%t.length:Math.min(u+1,t.length-1),v(e)}),[u,t.length,s,v]),y=h((()=>{S.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),T=h((()=>{if(S.current&&n&&t.length>1){S.current=!1;const e="object"==typeof n?n.delay:3e3;f.current||(f.current=setInterval((()=>{S.current||p||A()}),e))}}),[n,t.length,A,p]);return o((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return"object"==typeof n&&n.pauseOnHover,f.current&&(clearInterval(f.current),f.current=null),S.current||(f.current=setInterval((()=>{S.current||p||A()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[n,t.length,A,p]),o((()=>{if(t.length>0&&"video"===t[u]?.type){const e=E[u]?.current;e&&!1!==(t[u].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[u,t,E]),o((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:u,isTransitioning:p,slideRefs:b,videoRefs:E,handleSlideTransition:v,pauseAutoplay:y,resumeAutoplay:T}}(l.backgroundSlider):void 0,m=!!c||!!l.backgroundImageSrc||!!l.videoBackground,p=!!l.imageSrc,g=p&&"center"!==l.alignment,f=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const a=()=>{const t=window.pageYOffset*n,a=e.querySelector(z.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};s.current=a,window.addEventListener("scroll",a),a()},S=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(z.SELECTORS.BG);t&&(t.style.transform=""),s.current&&(window.removeEventListener("scroll",s.current),s.current=null)};return o((()=>{const e=t.current;return e&&l.parallax&&m&&!c&&f(e,l.parallaxIntensity),()=>{e&&s.current&&S(e)}}),[l.parallax,l.parallaxIntensity,m,c]),{generateHeroClassNames:(e="")=>{const t=[z.SELECTORS.HERO.replace(".","")];return"center"===l.alignment?t.push(z.CLASSES.CENTER):"right"===l.alignment?t.push(z.CLASSES.RIGHT):"left"===l.alignment&&t.push(z.CLASSES.LEFT),l.fullViewportHeight&&t.push(z.CLASSES.FULL_VH),l.parallax&&t.push("c-hero--parallax"),l.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=l.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===l.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=l.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:m,hasForegroundImage:p,useGridLayout:g,heroRef:t,videoRef:n,applyParallaxEffect:f,removeParallaxEffect:S,backgroundSlider:u,hasBackgroundSlider:c}}function Rn(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[$.SELECTORS.RIVER.replace(".","")];return t.center&&n.push($.CLASSES.CENTER),t.breakout&&n.push($.CLASSES.BREAKOUT),t.reverse&&n.push($.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>$.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>$.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function wn(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=r(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:i=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${i}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function Mn(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function Dn(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:i=t.disabled,className:o=""}=e;return`c-nav__item ${n&&!a?Z.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?Z.CLASSES.ACTIVE:""} ${i?Z.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?Z.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function kn(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,i=a?Z.SELECTORS.MEGA_MENU.replace(".",""):Z.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===n?o=i+"--center":"end"===n&&(o=i+"--end"),`${i} ${o} ${r}`.trim()},isInFixedBottomNavbar:n,getIconClass:(e=!1)=>"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}function Bn(e){const t={collapsible:!0,collapsibleDesktop:!1,defaultCollapsedDesktop:!1,isOpen:!1,...e},[n,a]=r(void 0!==t.defaultCollapsedDesktop?!t.defaultCollapsedDesktop:t.isOpen||!1),s=i(null),l=i(null),c=i(null);o((()=>{void 0!==t.isOpen?a(t.isOpen):void 0!==t.defaultCollapsedDesktop&&a(!t.defaultCollapsedDesktop)}),[t.isOpen,t.defaultCollapsedDesktop]),o((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop,a=void 0!==t.isOpen?t.isOpen:n;if(e&&s.current&&l.current){const e=setTimeout((()=>{s.current&&l.current&&(s.current.style.height=a?l.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&s.current&&(s.current.style.height="auto")}),[]),o((()=>{const e=()=>{if(768>window.innerWidth?t.collapsible:t.collapsibleDesktop){if(s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}}else s.current&&(s.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t.collapsible,t.collapsibleDesktop,t.isOpen,t.onToggle,n]),o((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop;if(e&&s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}else!e&&s.current&&(s.current.style.height="auto")}),[t.isOpen,n,t.collapsible,t.collapsibleDesktop]);const d=()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!n;"function"==typeof t.onToggle?t.onToggle(e):a(e)},h=()=>void 0!==t.isOpen?t.isOpen:n;return{defaultProps:t,isOpenState:h(),wrapperRef:s,innerRef:l,sideMenuRef:c,generateSideMenuClass:e=>{const{className:t="",isOpen:n=!1}=e,a=n?q.CLASSES.IS_OPEN:"";return`${q.CLASSES.BASE} ${a} ${t}`.trim()},generateWrapperClass:()=>q.CLASSES.WRAPPER,handleToggle:d,handleDesktopCollapse:()=>{d()},getCurrentOpenState:h}}function Pn(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:n=t.disabled,className:a=""}=t,r=e?q.CLASSES.ACTIVE:"",i=n?q.CLASSES.DISABLED:"";return`${q.CLASSES.LINK} ${r} ${i} ${a}`.trim()},handleClick:e=>n=>{t.disabled?n.preventDefault():e&&e(n)}}}function Fn(e,t){return e.classList.contains(t)}In.displayName="Input";const zn={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function Un(e,t=16){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${zn[e]||""}"></path>\n </svg>`}function Gn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Vn(e){const t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return t?t[1]:null}function Hn(e){return/(?:youtube\.com|youtu\.be)/.test(e)}var Wn=Object.freeze({__proto__:null,addClass:function(e,t){Fn(e,t)||e.classList.add(t)},cn:function(...e){return w(...e)},createIconElement:function(e,t=16,n=""){const a=document.createElement("span");return a.className=n||"c-icon",a.style.display="inline-flex",a.style.alignItems="center",a.style.justifyContent="center",a.innerHTML=Un(e,t),a},createPhosphorIcon:Un,extractYouTubeId:Vn,generateUUID:Gn,getAvailableIcons:function(){return Object.keys(zn)},hasClass:Fn,isYouTubeUrl:Hn,removeClass:function(e,t){Fn(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,n){e.classList.toggle(t,n)}});function Yn(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=r(t.items||[]),[i,o]=r(""),s=e=>{if(!e.trim())return null;const t={id:Gn(),text:e.trim(),completed:!1};return a((e=>[...e,t])),o(""),t};return{items:n,inputText:i,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!i.trim())return;const n=s(i);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e,i="md"===n?"":"c-todo--"+n,o=r?"c-todo--disabled":"";return`${ne.CLASSES.BASE} ${i} ${o} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?ne.CLASSES.COMPLETED:"";return`${ne.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function Kn(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:i=""}=e;let o="";a?o=oe.CLASSES.INVALID:r&&(o=oe.CLASSES.VALID);const s=n?oe.CLASSES.DISABLED:"";return`${oe.CLASSES.BASE} ${o} ${s} ${i}`.trim()}}}function jn(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?le.CLASSES.SMALL:le.CLASSES.LARGE;let l="";r?l=le.CLASSES.INVALID:i&&(l=le.CLASSES.VALID);const c=a?le.CLASSES.DISABLED:"";return`${le.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function $n(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?ce.CLASSES.SMALL:ce.CLASSES.LARGE,c=a?"c-input--"+a:"";let d="";i?d=ce.CLASSES.INVALID:o&&(d=ce.CLASSES.VALID);const h=r?ce.CLASSES.DISABLED:"";return`${ce.CLASSES.BASE} ${l} ${c} ${d} ${h} ${s}`.trim()}}}function Qn(e){const{slides:t,slidesToShow:n=1,spaceBetween:a=0,loop:s=!1,initialSlide:l=0,direction:c="horizontal",speed:u=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,S=i(null),b=i(null),E=i(!1),v=i(null),[A,y]=r(!1),[T,N]=r(l),[_,C]=r(0),[L,x]=r(!1),[I,O]=r(0),[R,w]=r(!1),[M,D]=r(0),[k,B]=r(0),P=d((()=>0===I?0:(I-a*(n-1))/n),[I,a,n]),F=d((()=>s&&0!==t.length?[...t.map(((e,t)=>({...e,id:"set1-"+(e.id||t)}))),...t.map(((e,t)=>({...e,id:"set2-"+(e.id||t)}))),...t.map(((e,t)=>({...e,id:"set3-"+(e.id||t)})))]:t),[t,s]),z=t.length,U=d((()=>0===P?0:-_*P+k),[P,_,k]);o((()=>{if(!g)return v.current&&(clearInterval(v.current),v.current=null),void y(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:a=3e3,pauseOnMouseEnter:r=!1,disableOnInteraction:i=!1,reverseDirection:o=!1}=e;v.current&&clearInterval(v.current),v.current=setInterval((()=>{N((e=>{if(L)return e;let a;if(i&&v.current&&(clearInterval(v.current),v.current=null,y(!1)),a=s?(e+1)%t.length:Math.min(e+1,t.length-n),o){const n=s?0===e?t.length-1:e-1:Math.max(e-1,0);return C(s?t.length+n:n),x(!0),B(0),setTimeout((()=>{x(!1),f?.(n)}),u),n}return C(s?t.length+a:a),x(!0),B(0),setTimeout((()=>{x(!1),f?.(a),s&&a>=2*t.length&&(E.current=!0,C(t.length+a),setTimeout((()=>{E.current=!1}),0))}),u),a}))}),a),y(!0);let l=null;const c=()=>{v.current&&(clearInterval(v.current),v.current=null,y(!1))},d=()=>{v.current&&clearInterval(v.current),v.current=setInterval((()=>{N((e=>{if(L)return e;let a;return a=s?(e+1)%t.length:Math.min(e+1,t.length-n),C(s?t.length+a:a),x(!0),B(0),setTimeout((()=>{x(!1),f?.(a),s&&(a<2*t.length||(E.current=!0,C(t.length+a),setTimeout((()=>{E.current=!1}),0)))}),u),a}))}),a),y(!0)};return r&&S.current&&(l=S.current,l.addEventListener("mouseenter",c),l.addEventListener("mouseleave",d)),()=>{v.current&&(clearInterval(v.current),v.current=null),l&&(l.removeEventListener("mouseenter",c),l.removeEventListener("mouseleave",d)),y(!1)}}),[g,t.length,s,n,L,u,f,E]),o((()=>{C(s?t.length+l:l)}),[s,t.length,l]),o((()=>{const e=()=>{if(S.current){const e="horizontal"===c?S.current.offsetWidth:S.current.offsetHeight;O(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const G=h((()=>{if(!L)if(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,y(!1)),s){const e=(T+1)%t.length,n=_+1;N(e),C(n),x(!0),B(0),setTimeout((()=>{x(!1),f?.(e),n<2*t.length||(E.current=!0,C(t.length+e),setTimeout((()=>{E.current=!1}),0))}),u)}else{const e=Math.min(T+1,t.length-n);N(e),C(e),x(!0),B(0),setTimeout((()=>{x(!1),f?.(e)}),u)}}),[T,_,t.length,n,s,L,u,f,F.length,z,g]),V=h((()=>{if(!L)if(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,y(!1)),s){const e=0===T?t.length-1:T-1,n=_-1;N(e),C(n),x(!0),B(0),setTimeout((()=>{x(!1),f?.(e),n<t.length&&(E.current=!0,C(t.length+e),setTimeout((()=>{E.current=!1}),0))}),u)}else{const e=Math.max(T-1,0);N(e),C(e),x(!0),B(0),setTimeout((()=>{x(!1),f?.(e)}),u)}}),[T,_,t.length,s,L,u,f,F.length,z,g]),H=h((e=>{L||e===T||(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,y(!1)),x(!0),B(0),N(e),C(s?t.length+e:e),setTimeout((()=>{x(!1),f?.(e)}),u))}),[T,L,u,f,s,z,g]),W=h((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,y(!1));const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;D(t),w(!0),B(0)}),[m,c,g]),Y=h((e=>{if(!R||!m)return;const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,n=M-t;Math.abs(n)>10&&(e.preventDefault(),B(.5*-n))}),[R,M,m,c]),K=h((e=>{if(!R||!m)return;const t="horizontal"===c?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,n=M-t;w(!1),B(0),Math.abs(n)>p&&(n>0?G():V())}),[R,M,p,G,V,m,c]),j=s||T<t.length-n,$=s||T>0;return{activeIndex:T,realIndex:T,previousIndex:T,isBeginning:!s&&0===T,isEnd:!s&&T>=t.length-n,progress:t.length>0?T/(t.length-1):0,autoplayRunning:A,transitioning:L,touching:R,translate:U,slidesPerView:n,slidesCount:t.length,isLocked:!1,destroyed:!1,size:I,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:j,allowSlidePrev:$,allowTouchMove:m,animating:L,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:H,canSlideNext:j,canSlidePrev:$,containerRef:S,wrapperRef:b,handleTouchStart:W,handleTouchMove:Y,handleTouchEnd:K,allSlides:F,translateValue:U,slideWidth:P,currentSlidesToShow:n,loopedSlides:z,repositioningRef:E}}var Zn=Object.freeze({__proto__:null,DOTS:sn,useAccordion:Te,useAtomixGlass:Ve,useBadge:ht,useBarChart:Ft,useBlock:pt,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:F.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[F.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[F.CLASSES.ITEM,e.active||t?F.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}},useButton:St,useCard:Ct,useChartData:function(e){const t=d((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=d((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),n=Math.min(...e),a=Math.max(...e),r=e.reduce(((e,t)=>e+t),0);return{min:n,max:a,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}},useChartInteraction:function(){const[e,t]=r({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:h((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:h((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:h((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}},useChartScale:function(e,t=400,n=300){return d((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,i=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+i,width:t,height:n,padding:a};const o=e.map((e=>e.value)),s=Math.min(0,...o),l=Math.max(...o)-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+i-(e-s)/l*i,width:t,height:n,padding:a}}),[e,t,n])},useCheckbox:yn,useDataTable:on,useEdgePanel:vn,useForm:Nn,useFormGroup:Cn,useGlassContainer:function(e){const{glassSize:t={width:270,height:69},elasticity:n=.15,mouseContainer:a,globalMousePos:s,mouseOffset:l}=e,d=c(),u=i(null),[m,p]=r(!1),[g,f]=r(!1),[S,b]=r(t),[E,v]=r({x:0,y:0}),[A,y]=r({x:0,y:0}),T=s||E,N=l||A,_=h((e=>{const t=a?.current||u.current;if(!t)return;const n=t.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2;y({x:(e.clientX-r)/n.width*100,y:(e.clientY-i)/n.height*100}),v({x:e.clientX,y:e.clientY})}),[a]);o((()=>{if(s&&l)return;const e=a?.current||u.current;return e?(e.addEventListener("mousemove",_),()=>e.removeEventListener("mousemove",_)):void 0}),[_,a,s,l]);const C=h((()=>{if(!T.x||!T.y||!u.current)return"scale(1)";const e=u.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=S.width,i=S.height,o=T.x-t,s=T.y-a,l=Math.max(0,Math.abs(o)-r/2),c=Math.max(0,Math.abs(s)-i/2),d=Math.sqrt(l*l+c*c);if(d>200)return"scale(1)";const h=1-d/200,m=Math.sqrt(o*o+s*s);if(0===m)return"scale(1)";const p=o/m,g=s/m,f=Math.min(m/300,1)*n*h,b=1+Math.abs(p)*f*.3-Math.abs(g)*f*.15,E=1+Math.abs(g)*f*.3-Math.abs(p)*f*.15;return`scaleX(${Math.max(.8,b)}) scaleY(${Math.max(.8,E)})`}),[T,n,S]),L=h((()=>{if(!u.current)return{x:0,y:0};const e=u.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=S.width,i=S.height,o=Math.max(0,Math.abs(T.x-t)-r/2),s=Math.max(0,Math.abs(T.y-a)-i/2),l=Math.sqrt(o*o+s*s),c=l>200?0:1-l/200;return{x:(T.x-t)*n*.1*c,y:(T.y-a)*n*.1*c}}),[T,n,S]);o((()=>{const e=()=>{if(u.current){const e=u.current.getBoundingClientRect();b({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const x=h((()=>{p(!0)}),[]),I=h((()=>{p(!1)}),[]),O=h((()=>{f(!0)}),[]),R=h((()=>{f(!1)}),[]);return{filterId:d,glassRef:u,isHovered:m,isActive:g,currentGlassSize:S,globalMousePos:T,mouseOffset:N,calculateDirectionalScale:C,calculateElasticTranslation:L,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:O,handleMouseUp:R}},useHero:On,useInput:xn,useLineChart:jt,useModal:function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[i,s]=r(!1),l=void 0!==e,c=l?!!e:i;o((()=>{l&&s(!!e)}),[e,l]);const d=h((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}},useNav:Mn,useNavDropdown:kn,useNavItem:Dn,useNavbar:wn,usePagination:cn,usePieChart:Zt,useRadio:Kn,useRiver:Rn,useSelect:jn,useSideMenu:Bn,useSideMenuItem:Pn,useSlider:Qn,useSpinner:bt,useTextarea:$n,useTodo:Yn});const qn=({options:n=[],value:a,onChange:s,onBlur:l,onFocus:c,placeholder:d="Select an option",className:h="",style:u,disabled:m=!1,required:p=!1,id:g,name:f,size:S="md",invalid:b=!1,valid:E=!1,multiple:v=!1,ariaLabel:A,ariaDescribedBy:y,glass:T})=>{const{generateSelectClass:N}=jn({size:S,disabled:m,invalid:b,valid:E}),_=N({className:`${h} ${T?"c-select--glass":""}`.trim(),size:S,disabled:m,invalid:b,valid:E}),[C,L]=r(!1),[x,I]=r(d),O=i(null),R=i(null),w=i(null),M=i(null);o((()=>{if(a){const e=n.find((e=>e.value===a));e&&I(e.label)}else I(d)}),[a,n,d]),o((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&(L(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const D=t("div",{className:`${_} ${C?le.CLASSES.IS_OPEN:""}`,ref:O,style:u,"aria-expanded":C,children:[t("select",{ref:M,value:a,onChange:s,onBlur:l,onFocus:c,disabled:m,required:p,id:g,name:f,multiple:v,"aria-label":A,"aria-describedby":y,"aria-invalid":b,style:{display:"none"},children:[d&&e("option",{value:"",disabled:!0,children:d}),n.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:le.CLASSES.SELECTED,onClick:()=>{m||(!C&&w.current&&R.current?w.current.style.height=R.current.clientHeight+"px":w.current&&(w.current.style.height="0px"),L(!C))},"aria-disabled":m,children:x}),e("i",{className:`${le.CLASSES.ICON_CARET} ${le.CLASSES.TOGGLE_ICON}`}),e("div",{className:le.CLASSES.SELECT_BODY,ref:w,style:{height:0},children:e("div",{className:le.CLASSES.SELECT_PANEL,ref:R,children:e("ul",{className:le.CLASSES.SELECT_ITEMS,children:n.map(((n,r)=>e("li",{className:le.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&(e=>{if(I(e.label),L(!1),w.current&&(w.current.style.height="0px"),M.current&&(M.current.value=e.value),s){const t={target:{name:f,value:e.value}};s(t)}})(n),children:t("label",{htmlFor:"SelectItem"+r,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+r,className:"c-checkbox__input c-select__item-input",checked:a===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value)))})})})]});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===T?t:{...t,...T};return e(He,{...n,children:D})}return D};qn.displayName="Select";const Xn=({label:n,checked:a=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:h,invalid:u=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g,glass:f})=>{const{generateRadioClass:S}=Kn({disabled:s,invalid:u,valid:m}),b=S({className:`${i} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:u,valid:m}),E=t("div",{className:b,style:o,children:[e("input",{type:"radio",className:"c-radio__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:h,"aria-label":n?void 0:p,"aria-describedby":g,"aria-invalid":u}),n&&e("label",{className:"c-radio__label",htmlFor:c,children:n})]});if(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===f?t:{...t,...f};return e(He,{...n,children:E})}return E};Xn.displayName="Radio";const Jn=l((({value:t,onChange:n,onBlur:a,onFocus:r,placeholder:i,className:o="",style:s,disabled:l=!1,required:c=!1,readOnly:d=!1,id:h,name:u,rows:m=4,cols:p,maxLength:g,minLength:f,size:S="md",variant:b,invalid:E=!1,valid:v=!1,autoFocus:A=!1,ariaLabel:y,ariaDescribedBy:T,glass:N},_)=>{const{generateTextareaClass:C}=$n({size:S,variant:b,disabled:l,invalid:E,valid:v}),L=C({className:`${o} ${N?"c-input--glass":""}`.trim(),size:S,variant:b,disabled:l,invalid:E,valid:v}),x=e("textarea",{ref:_,className:L,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:i,disabled:l,required:c,readOnly:d,id:h,name:u,rows:m,cols:p,maxLength:g,minLength:f,autoFocus:A,"aria-label":y,"aria-describedby":T,"aria-invalid":E,style:N?{...s}:s});if(N){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},n=!0===N?t:{...t,...N};return e(He,{...n,children:x})}return x}));Jn.displayName="Textarea";const ea=l((({platform:n,url:a,icon:r,label:i,size:o="md",variant:s="default",disabled:l=!1,className:c="",...d},h)=>{const u=["c-footer__social-link","c-footer__social-link--"+n,"c-footer__social-link--"+o,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=i||"Follow us on "+(e=>({facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"}[e]||e))(n);return t("a",{ref:h,href:l?void 0:a,className:u,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||(t=>{const n={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"}[t];return e(lt,n?{name:n}:{name:"Link"})})(n)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));ea.displayName="FooterSocialLink";const ta=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,direction:o,wrap:s,...l},c)=>{const d=["o-grid"];return a&&d.push("u-justify-content-"+a),r&&d.push("u-align-items-"+r),i&&d.push("o-grid--no-gutters"),o&&d.push("u-flex-direction-"+o),s&&d.push("u-flex-wrap-"+s),n&&d.push(n),e("div",{ref:c,className:d.join(" "),...l,children:t})}));ta.displayName="Grid";const na=l((({children:t,className:n="",xs:a,sm:r,md:i,lg:o,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:h,offsetLg:u,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:S,align:b,...E},v)=>{const A=a||r||i||o||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],y=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?A.push("o-grid__col--auto"):A.push("o-grid__col--"+e):"auto"===e?A.push(`o-grid__col--${t}-auto`):A.push(`o-grid__col--${t}-${e}`)):A.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return y(a,"xs"),y(r,"sm"),y(i,"md"),y(o,"lg"),y(s,"xl"),y(l,"xxl"),c&&A.push("o-grid__offset--"+c),d&&A.push("o-grid__offset--sm-"+d),h&&A.push("o-grid__offset--md-"+h),u&&A.push("o-grid__offset--lg-"+u),m&&A.push("o-grid__offset--xl-"+m),p&&A.push("o-grid__offset--xxl-"+p),void 0!==g&&A.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&A.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),S&&A.push("u-flex-basis-"+S),b&&A.push("u-align-self-"+b),n&&A.push(n),e("div",{ref:v,className:A.join(" "),...E,children:t})}));na.displayName="GridCol";const aa=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,...o},s)=>{const l=["o-grid"];return a&&l.push("u-justify-content-"+a),r&&l.push("u-align-items-"+r),i&&l.push("o-grid--no-gutters"),n&&l.push(n),e("div",{ref:s,className:l.join(" "),...o,children:t})}));aa.displayName="Row";const ra=l((({brand:n,brandLogo:r,brandDescription:i,copyright:o,layout:s="columns",variant:l="primary",size:c="md",showNewsletter:d=!1,newsletterTitle:h="Stay Updated",newsletterDescription:u="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:m="Enter your email",newsletterButtonText:p="Subscribe",onNewsletterSubmit:g,socialLinks:f=[],showBackToTop:S=!1,backToTopText:b="Back to Top",onBackToTop:E,showDivider:v=!0,sticky:A=!1,children:y,className:T="",disabled:N=!1,glass:_,...C},L)=>{const{footerClass:x,containerClass:I,brandClass:O,sectionsClass:R,bottomClass:w,handleNewsletterSubmit:M,handleBackToTop:D,socialLinks:k}=function(e={}){const{layout:t=Ae.DEFAULTS.LAYOUT,variant:n=Ae.DEFAULTS.VARIANT,size:a=Ae.DEFAULTS.SIZE,sticky:r=Ae.DEFAULTS.STICKY,showNewsletter:i=Ae.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:o=Ae.DEFAULTS.SHOW_BACK_TO_TOP,socialLinks:s=[],onNewsletterSubmit:l,onBackToTop:c,className:d=""}=e;return{footerClass:[Ae.CLASSES.BASE,Ae.CLASSES[t.toUpperCase()]||Ae.CLASSES.COLUMNS,"c-footer--"+n,Ae.CLASSES[a.toUpperCase()]||Ae.CLASSES.MD,r&&Ae.CLASSES.STICKY,i&&"c-footer--with-newsletter",d].filter(Boolean).join(" "),containerClass:Ae.CLASSES.CONTAINER,brandClass:Ae.CLASSES.BRAND,sectionsClass:[Ae.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" "),bottomClass:Ae.CLASSES.BOTTOM,handleNewsletterSubmit:e=>{l&&l(e)},handleBackToTop:()=>{c?c():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:s,showNewsletter:i}}({layout:s,variant:l,size:c,sticky:A,showNewsletter:d,showBackToTop:S,socialLinks:f,onNewsletterSubmit:g,onBackToTop:E,className:T}),B=(()=>{switch(s){case"columns":default:return{brand:4,content:d?4:8,newsletter:d?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:d?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:d?9:0};case"wide":return{brand:3,content:6,newsletter:d?3:0}}})(),P=e=>{const t="columns"===s||"sidebar"===s||"wide"===s?B[e]:12;return"flexible"===s&&"auto"===B[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:t}},F=t("div",{className:I,children:[t(ta,{className:R,alignItems:"start",justifyContent:"centered"===s?"center":void 0,children:[(n||r||i)&&t(na,{...P("brand"),className:O,children:[r&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof r?e("img",{src:r,alt:"Brand Logo"}):r}),n&&e("div",{className:"c-footer__brand-name",children:"string"==typeof n?e("h3",{children:n}):n}),i&&e("div",{className:"c-footer__brand-description",children:i}),f.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:f.map(((t,n)=>e(ea,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:c},`${t.platform}-${n}`)))})]}),y&&e(na,{...P("content"),className:"c-footer__content",children:e(ta,{className:"c-footer__sections",alignItems:"centered"===s||"stacked"===s?"center":void 0,children:a.Children.map(y,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:d}):e))})}),d&&t(na,{...P("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:h}),u&&e("p",{className:"c-footer__newsletter-description",children:u}),e(_n,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&M(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(In,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:m,required:!0}),e(vt,{type:"submit",className:"c-footer__newsletter-button",children:p})]})})]})]}),(o||S)&&t("div",{className:w,children:[o&&e("div",{className:"c-footer__copyright",children:o}),S&&t(vt,{variant:"ghost",className:"c-footer__back-to-top",onClick:D,disabled:N,"aria-label":b,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:b})]})]})]});return e("footer",{ref:L,className:x+" c-footer "+(_?"c-footer--glass":""),...C,children:_?e(He,{..._,elasticity:0,children:e("div",{className:"c-footer__glass",children:F})}):F})}));ra.displayName="Footer";const ia=l((({children:t,className:n="",xs:s=1,sm:l,md:c,lg:d,xl:p,xxl:g,gap:f=16,animate:b=!0,imagesLoaded:E=!0,onLayoutComplete:v,onImageLoad:A,...y},T)=>{const[N,_]=r(s),[C,L]=r([]),[x,I]=r(!1),[O,R]=r(!1),w=i(null),M=i([]),D=i(0),k=i(0),B=i(new Map);o((()=>{R(!!E)}),[N,E]),S(T,(()=>w.current));const P=h((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===d?768>e||void 0===c?576>e||void 0===l?s:l:c:d:p:g}),[s,l,c,d,p,g]);o((()=>{const e=()=>_(P());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[P]);const[F,z]=r([]);o((()=>{const e=[];u.forEach(t,((t,n)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+n,element:t,position:null,ref:a.createRef()})})),z(e)}),[t]);const U=h((e=>{if(!B.current.get(e)){if(B.current.set(e,!0),D.current+=1,w.current&&E){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))})),A?.(D.current,k.current),D.current>=k.current&&k.current>0&&(I(!0),R(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),R(!1)}))})),v?.())}}),[A,v,E]),G=h((()=>{if(!E||!w.current)return;B.current.clear(),D.current=0;const e=w.current.querySelectorAll("img");return k.current=e.length,0===e.length?(I(!0),R(!1),void v?.()):(R(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)U(e);else{const n=()=>U(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[E,U,v]),V=h((()=>{if(!w.current||0===F.length)return;const e=(w.current.offsetWidth-f*(N-1))/N;M.current=Array(N).fill(0);const t=[];F.forEach(((n,a)=>{if(n.ref.current){const r=M.current.indexOf(Math.min(...M.current)),i=r*(e+f),o=M.current[r]??0,s=n.ref.current.offsetHeight;M.current[r]=o+s+f,t[a]={left:i,top:o,width:e,height:s}}})),L(t)}),[F,N,f]);o((()=>{if(!w.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(w.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),a.useLayoutEffect((()=>E?G():(V(),I(!0),void R(!1))),[F,N,V,E,G]),a.useEffect((()=>{const e=[];return F.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[F,V]);const H=M.current.length>0?Math.max(...M.current):0,W=["o-masonry-grid",n,b?"o-masonry-grid--animate":"",O?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:w,className:W,style:{position:"relative",width:"100%",height:H+"px",...y.style},...y,children:F.map(((t,n)=>{const a=C[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));ia.displayName="MasonryGrid";const oa=l((({children:t,className:n="",...a},r)=>{const i=["o-masonry-grid__item-inner"];return n&&i.push(n),e("div",{ref:r,className:i.join(" "),...a,children:t})}));oa.displayName="MasonryGridItem";var sa=Object.freeze({__proto__:null,Container:mt,Grid:ta,GridCol:na,MasonryGrid:ia,MasonryGridItem:oa,Row:aa});const la=l((({title:n,icon:r,collapsible:i=!1,defaultCollapsed:o=!1,showNewsletter:s=!1,children:l,className:c="",...d},h)=>{const[u,m]=a.useState(o),p=["c-footer__section",i&&"c-footer__section--collapsible",u&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(na,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:h,className:p,...d,children:[n&&e("div",{className:"c-footer__section-header",children:i?t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{i&&m(!u)},"aria-expanded":!u,"aria-controls":"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"),children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n}),e("span",{className:"c-footer__section-chevron",children:u?"▼":"▲"})]}):t("div",{className:"c-footer__section-header-content",children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n})]})}),e("div",{className:"c-footer__section-content",id:n?"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"):void 0,style:{display:i&&u?"none":"flex"},children:l})]})})}));la.displayName="FooterSection";const ca=l((({href:n,icon:a,external:r=!1,active:i=!1,disabled:o=!1,onClick:s,children:l,className:c="",LinkComponent:d,...h},u)=>{const m={className:["c-footer__link",i&&"c-footer__link--active",o&&"c-footer__link--disabled",c].filter(Boolean).join(" "),onClick:o?void 0:s,"aria-disabled":o,...r&&{target:"_blank",rel:"noopener noreferrer"},...h};return d?t(d,{ref:u,to:n,...m,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]}):t("a",{ref:u,href:o?void 0:n,...m,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}));ca.displayName="FooterLink";const da=({title:a,subtitle:r,text:i,imageSrc:o,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:h=!1,actions:u,imageColSize:m=7,contentColSize:p=5,contentWidth:g,className:f="",style:S,parallax:b=!1,parallaxIntensity:E=.5,videoBackground:v,children:A,glass:y,videoOptions:T={autoplay:!0,loop:!0,muted:!0},backgroundSlider:N})=>{const{generateHeroClassNames:_,generateImageColClass:C,generateContentColClass:L,hasBackgroundImage:x,hasForegroundImage:I,useGridLayout:O,heroRef:R,videoRef:w,backgroundSlider:M,hasBackgroundSlider:D}=On({alignment:l,imageColSize:m,contentColSize:p,imageSrc:o,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:h,contentWidth:g,parallax:b,parallaxIntensity:E,videoBackground:v,backgroundSlider:N}),k={...g?{"--atomix-hero-content-width":g}:{},...S},B=()=>{if(!v)return null;const{autoplay:n,loop:a,muted:r,posterUrl:i}=T;return t("video",{ref:w,className:"c-hero__video",autoPlay:n,loop:a,muted:r,playsInline:!0,poster:i,children:[e("source",{src:v,type:"video/"+(v.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},P=()=>{const n=t("div",{className:z.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:z.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:z.SELECTORS.TITLE.replace(".",""),children:a}),i&&e("p",{className:z.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:z.SELECTORS.ACTIONS.replace(".",""),children:u})]});return!1===y?n:y?e("div",!0===y?{className:z.SELECTORS.CONTENT.replace(".",""),children:e(He,{displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,cornerRadius:8,overLight:!1,mode:"standard",children:t("div",{className:"u-p-4",children:[r&&e("p",{className:z.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:z.SELECTORS.TITLE.replace(".",""),children:a}),i&&e("p",{className:z.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:z.SELECTORS.ACTIONS.replace(".",""),children:u})]})})}:{className:z.SELECTORS.CONTENT.replace(".",""),children:e(He,{...y,children:t("div",{className:"u-p-4",children:[r&&e("p",{className:z.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:z.SELECTORS.TITLE.replace(".",""),children:a}),i&&e("p",{className:z.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:z.SELECTORS.ACTIONS.replace(".",""),children:u})]})})}):n},F=()=>I?e("div","center"===l?{className:z.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:s,className:z.SELECTORS.IMAGE.replace(".","")})}:{className:C(),children:e("img",{src:o,alt:s,className:z.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:R,className:_(f),style:k,"data-parallax":b?"true":void 0,"data-parallax-intensity":b?E:void 0,children:[(()=>{if(D&&N&&M){const{slides:n,transition:a="fade",transitionDuration:r=1e3}=N,{currentIndex:i,slideRefs:o,videoRefs:s}=M;let l=z.CLASSES.SLIDER_FADE;return"slide"===a?l=z.CLASSES.SLIDER_SLIDE:"custom"===a&&(l=z.CLASSES.SLIDER_CUSTOM),t("div",{className:`${z.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{N.autoplay?.pauseOnHover&&M.pauseAutoplay()},onMouseLeave:()=>{N.autoplay?.pauseOnHover&&M.resumeAutoplay()},children:[n.map(((n,a)=>{const r=a===i,l=o[a],c=s[a];return e("div",{ref:l,className:`${z.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?z.CLASSES.SLIDER_ITEM_ACTIVE:""}`,children:"image"===n.type?e("img",{src:n.src,alt:n.alt||"Background slide",className:z.SELECTORS.BG_IMAGE.replace(".","")}):t("video",{ref:c,className:"c-hero__video",autoPlay:!1!==n.videoOptions?.autoplay,loop:!1!==n.videoOptions?.loop,muted:!1!==n.videoOptions?.muted,playsInline:!0,poster:n.videoOptions?.posterUrl,children:[e("source",{src:n.src,type:"video/"+(n.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},a)})),d&&e("div",{className:z.SELECTORS.OVERLAY.replace(".","")})]})}return x||v?t("div",{className:z.SELECTORS.BG.replace(".",""),children:[c&&e("img",{src:c,alt:"Background",className:z.SELECTORS.BG_IMAGE.replace(".","")}),B(),d&&e("div",{className:z.SELECTORS.OVERLAY.replace(".","")})]}):null})(),e("div",{className:z.SELECTORS.CONTAINER.replace(".","")+" o-container",children:A?e("div",{className:z.SELECTORS.GRID.replace(".",""),children:A}):O?e("div",{className:z.SELECTORS.GRID.replace(".","")+" o-grid",children:t(n,"left"===l?{children:[e("div",{className:L(),children:P()}),F()]}:{children:[F(),e("div",{className:L(),children:P()})]})}):t(n,{children:[P(),F()]})})]})};da.displayName="Hero";const ha=({children:t,variant:n="default",className:r="",style:i,...o})=>{const s=[B.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" ");return e(["number","text"].includes(n)?"ol":"ul",{className:s,style:i,...o,children:a.Children.map(t,(t=>(a.isValidElement(t),e("li",{className:"c-list__item",children:t}))))})};ha.displayName="List";const ua=({children:t,className:n="",style:r,variant:i="default"})=>{const o=w(P.BASE_CLASS,n),s=a.Children.toArray(t).filter((e=>a.isValidElement(e)&&e.type===ha));return e("div",{className:o,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??i})}))})};ua.displayName="ListGroup";const ma=({messages:a=[],otherAvatar:i,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:h="",style:u,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:S,handleInputChange:b,handleSubmit:E,handleKeyDown:v}=(({onSendMessage:e}={})=>{const[t,n]=r(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:c}),A=g||"messages-"+Math.random().toString(36).substr(2,9),y=A+"-input",T={displacementScale:150,cornerRadius:12,elasticity:0,aberrationIntensity:2},N=`${me.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${h}`,_=t(n,{children:[e("div",{className:me.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${me.CLASSES.CONTENT} ${n.isSelf?me.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(ct,{src:n.isSelf?o:i,size:"xl",circle:!0,className:me.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:me.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:me.CLASSES.NAME,children:s}),n.text&&t("div",{className:me.CLASSES.TEXT,children:[n.text,e("span",{className:me.CLASSES.TIME,"aria-label":"Sent at "+n.time,children:n.time})]}),n.image&&e("img",{className:me.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:me.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:me.CLASSES.FILE_ICON,children:e(lt,{name:"File","aria-hidden":"true"})}),t("div",{className:me.CLASSES.FILE_DETAILS,children:[e("div",{className:me.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:me.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:me.CLASSES.FORM,onSubmit:E,"aria-label":"Message input form",children:[t("div",{className:me.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:y,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:y,type:"text",className:me.CLASSES.INPUT,placeholder:d,value:S,onChange:b,onKeyDown:v,disabled:p,"aria-label":"Message input"}),t("div",{className:me.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:me.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(lt,{name:"PaperclipHorizontal","aria-hidden":"true",className:me.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:me.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(lt,{name:"Image","aria-hidden":"true",className:me.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:me.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(lt,{name:"Link","aria-hidden":"true",className:me.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:me.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(lt,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?T:{...T,...f};return e("div",{className:N,style:{"--atomix-messages-width":l,...u},id:A,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(He,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.cornerRadius},children:_})})})}return e("div",{className:N,style:{"--atomix-messages-width":l,...u},id:A,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:_})};ma.displayName="Messages";const pa=({children:n,isOpen:a=!1,onOpenChange:s,onClose:l,onOpen:c,title:d,subtitle:u,size:m="md",backdrop:p=!0,keyboard:g=!0,className:f="",style:S,closeButton:b=!0,footer:E,glass:v,...A})=>{const y=i(null),T=i(null),N=i(null),{isOpen:_,open:C,close:L}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[i,s]=r(!1),l=void 0!==e,c=l?!!e:i;o((()=>{l&&s(!!e)}),[e,l]);const d=h((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}}({isOpen:a,onOpenChange:s,onClose:l,onOpen:c});o((()=>{if(!g)return;const e=e=>{"Escape"===e.key&&_&&L()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,L,g]);const x=["c-modal",_?ue.CLASSES.IS_OPEN:"",m?"c-modal--"+m:"",v?"c-modal--glass":"",f].filter(Boolean).join(" "),I=t("div",{className:"c-modal__content",children:[(d||b)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[d&&e("h3",{className:"c-modal__title",children:d}),u&&e("p",{className:"c-modal__sub",children:u})]}),b&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:L,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:n}),E&&e("div",{className:"c-modal__footer",children:E})]});return t("div",{ref:y,className:x,style:{display:_?"block":"none",...S},role:"dialog","aria-modal":"true","aria-hidden":!_,...A,children:[e("div",{ref:N,className:"c-modal__backdrop",onClick:e=>{p&&e.target===e.currentTarget&&L()}}),e("div",{ref:T,className:"c-modal__dialog",children:v?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},n=!0===v?t:{...t,...v};return e(He,{...n,children:I})})():I})]})};pa.displayName="Modal";const ga=l((({children:t,alignment:n="start",variant:r="default",className:i="",disabled:o=!1,glass:s},l)=>{const{generateNavClass:c}=Mn({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:i}),h=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,cornerRadius:8,mode:"shader"},n=!0===s?t:{...t,...s};return e(He,{...n,children:h})}return h}));ga.displayName="Nav";const fa=l((({children:n,dropdown:s=!1,megaMenu:l=!1,active:c=!1,href:d,onClick:h,className:u="",disabled:m=!1,"aria-expanded":p,LinkComponent:g},f)=>{const{generateNavItemClass:S,generateNavLinkClass:b,handleClick:E}=Dn({dropdown:s,megaMenu:l,active:c,disabled:m}),[v,A]=r(!1),y=i(null);o((()=>{if(!s&&!l||!v)return;const e=e=>{y.current&&!y.current.contains(e.target)&&(768>window.innerWidth||A(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[s,l,v]),o((()=>{if(!s&&!l)return;const e=()=>{window.innerWidth>=768&&v&&A(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,l,v]);const T=S({dropdown:s,megaMenu:l,active:c,disabled:m,className:u})+(v?" is-active":""),N=b(c,m,s||l?"c-nav__dropdown-toggle":""),_=a.Children.toArray(n),C=void 0!==p?p:v,L={ref:y,href:d||"#",className:N,onClick:s||l?e=>{(s||l)&&(e.preventDefault(),A(!v))}:E(h),"aria-disabled":m,"aria-expanded":s||l?C:void 0,"aria-current":!c||s||l?void 0:"page"};return t("li",{ref:f,className:T,role:"menuitem","aria-haspopup":s||l,children:[e(g||"a",{...L,children:s||l?_[0]:n}),(s||l)&&_.length>1&&_[1]]})}));fa.displayName="NavItem";const Sa=l((({brand:n,children:a,variant:s,position:l="static",containerWidth:c,collapsible:d=!0,expanded:h,onToggle:u,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:S=!0,closeOnEscape:b=!0,ariaLabel:E="Main navigation",id:v,glass:A},y)=>{const{generateNavbarClass:T,generateContainerStyle:N,generateCollapseClass:_}=wn({position:l,collapsible:d,expanded:h,onToggle:u}),[C,L]=r(h||!1),x=i(null);o((()=>{void 0!==h&&L(h)}),[h]),o((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof u?h&&u(!1):L(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,h,u]);const I=T({position:l,variant:s,collapsible:d,className:m}),O=N(c),R=_(C),w=t("div",{className:"c-navbar__container",style:O,children:[n&&("string"==typeof n?e("a",{href:"/",className:"c-navbar__brand",children:n}):e("div",{className:"c-navbar__brand",children:n})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!C;"function"==typeof u?u(e):L(e)},"aria-expanded":C,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:R,ref:x,children:a})]});if(A){const t={displacementScale:30,blurAmount:2,cornerRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},n=!0===A?t:{...t,...A};return e(He,{...n,style:{..."fixed"===l&&{position:"fixed"},left:0,right:0,top:0,zIndex:1e3},children:e("nav",{ref:y,className:I+" c-navbar--glass","aria-label":E,id:v,style:p,children:w})})}return e("nav",{ref:y,className:I,"aria-label":E,id:v,style:p,children:w})}));function ba(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ea(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{ba(e,n),ba(t,n)}),[e,t])}Sa.displayName="Navbar";const va=l((({children:t,className:n=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+n).trim(),role:"list",children:a.Children.map(t,((t,n)=>a.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},n):t))})));va.displayName="SideMenuList";const Aa=l((({children:n,href:a,onClick:r,active:i=!1,disabled:o=!1,icon:s,className:l="",target:c,rel:d,LinkComponent:h},u)=>{const{LinkComponent:m}=Ta(),p=h??m,{generateSideMenuItemClass:g,handleClick:f}=Pn({active:i,disabled:o,className:l}),S=g();if(a){if(p){const l={ref:u,className:S,onClick:o?e=>{e.preventDefault()}:r,"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0,...o?{}:{href:a,to:a}};return t(p,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}const l={ref:u,href:o?void 0:a,className:S,onClick:f(r),"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}return t("button",{ref:u,type:"button",className:S,onClick:f(r),disabled:o,"aria-current":i?"page":void 0,tabIndex:o?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}));Aa.displayName="SideMenuItem";const ya=g({}),Ta=()=>f(ya),Na=l((({title:a,children:s,menuItems:l=[],isOpen:c,onToggle:d,collapsible:h=!0,collapsibleDesktop:u=!1,defaultCollapsedDesktop:m=!1,className:p="",style:g,disabled:f=!1,toggleIcon:S,id:b,glass:E,LinkComponent:v},A)=>{const{isOpenState:y,wrapperRef:T,innerRef:N,sideMenuRef:_,generateSideMenuClass:C,generateWrapperClass:L,handleToggle:x}=Bn({isOpen:c,onToggle:d,collapsible:h,collapsibleDesktop:u,defaultCollapsedDesktop:m,disabled:f}),[I,O]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[R,w]=r((()=>{const e={};return l?.forEach(((t,n)=>{e[n]=!0})),e})),M=i({}),D=i({}),k=i(l?.length??0);o((()=>{const e=()=>{O(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),o((()=>{const e=l?.length??0;k.current!==e&&(k.current=e,w((e=>{const t={};return l?.forEach(((n,a)=>{t[a]=e[a]??!0})),t})),Object.keys(M.current).forEach((t=>{const n=Number(t);e>n||(delete M.current[n],delete D.current[n])})))}),[l?.length]);const B=(e,t)=>{const n=M.current[e],a=D.current[e];n&&a&&(n.style.height=t?a.scrollHeight+"px":"0px")};o((()=>{if(!l?.length)return;const e=setTimeout((()=>{l.forEach(((e,t)=>{const n=R[t]??!0;B(t,n)}))}),0);return()=>clearTimeout(e)}),[l?.length]),o((()=>{if(!l?.length)return;const e=[];return Object.keys(R).forEach((t=>{const n=Number(t),a=R[n]??!0,r=requestAnimationFrame((()=>{B(n,a)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[R,l?.length]);const P=Ea(_,A),F=C({className:p,isOpen:y}),z=L(),U=e(lt,{name:"CaretRight",size:"xs"}),G=I&&h||!I&&u,V=a&&!G,H=t(n,{children:[a&&G&&t("div",{className:"c-side-menu__toggler",onClick:x,role:"button",tabIndex:f?-1:0,"aria-expanded":y,"aria-controls":b?b+"-content":void 0,"aria-disabled":f,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),x())},children:[e("span",{className:"c-side-menu__title",children:a}),e("span",{className:"c-side-menu__toggler-icon",children:S||U})]}),V&&e("h3",{className:"c-side-menu__title",children:a}),e("div",{ref:T,className:z,id:b?b+"-content":void 0,"aria-hidden":!!G&&!y,children:e(ya.Provider,{value:{LinkComponent:v},children:t("div",{ref:N,className:"c-side-menu__inner",children:[s,l?.map(((n,a)=>{const r=R[a]??!0,i=n.items&&n.items.length>0,o=i&&!f,s=()=>{o&&w((e=>({...e,[a]:!e[a]})))};return t("div",{className:"c-side-menu__item",children:[n.title&&t("div",{className:["c-side-menu__toggler",o&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:o?s:void 0,role:o?"button":void 0,tabIndex:o&&!f?0:void 0,"aria-expanded":o?r:void 0,"aria-disabled":f,onKeyDown:o?e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:n.title}),o&&e("span",{className:"c-side-menu__toggler-icon",children:n.toggleIcon||e(lt,{name:"CaretRight",size:"xs"})})]}),i&&e("div",{ref:e=>{M.current[a]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{D.current[a]=e},className:"c-side-menu__nested-inner",children:e(va,{children:n.items?.map(((t,n)=>e(Aa,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,LinkComponent:v,children:t.title},n)))})})})]},a)}))]})})})]});if(E){const t={displacementScale:70,blurAmount:2,cornerRadius:12,mode:"shader"},n=!0===E?t:{...t,...E};return e(He,{...n,children:e("div",{ref:P,className:F+" c-side-menu--glass",id:b,style:g,children:H})})}return e("div",{ref:P,className:F,id:b,style:g,children:H})}));Na.displayName="SideMenu";const _a=l((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu "+n,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})}))),Ca=l((({children:n,href:a="#",icon:r,active:i=!1,disabled:o=!1,onClick:s,className:l=""},c)=>e("li",{ref:c,className:`c-menu__item ${i?"is-active":""} ${o?"is-disabled":""} ${l}`,role:"menuitem",children:t("a",{href:a,className:"c-menu__link",onClick:e=>{o?e.preventDefault():s&&s()},"aria-disabled":o,"aria-current":i?"page":void 0,children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(lt,{name:La(r.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__icon",children:r})),n]})}))),La=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),xa=l((({className:t=""},n)=>e("li",{ref:n,className:"c-menu__divider "+t,role:"separator"}))),Ia=l((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu c-menu--mega "+n,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})}))),Oa=l((({title:n,icon:r,children:i,width:o="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${o} ${s}`,children:[(n||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(lt,{name:La(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),n&&e("div",{className:"c-menu__header-title",children:n})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(i,(t=>{if(a.isValidElement(t)){const n=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(t,{...n,disabled:!!l||n?.disabled})})}return null}))})]}))),Ra=l((({href:t,children:n,className:a="",disabled:r=!1,onClick:i},o)=>e("a",{ref:o,href:t,className:`c-menu__subitem-link ${r?"is-disabled":""} ${a}`,onClick:e=>{r?e.preventDefault():i&&i()},"aria-disabled":r,children:n}))),wa=l((({title:a,children:s,alignment:l="start",megaMenu:c=!1,className:d="",style:h,disabled:u=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=kn({alignment:l,megaMenu:c}),[f,S]=r(!1),b=i(null),E=p({alignment:l,megaMenu:c,className:d}),v=g(c);o((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!b.current||b.current.contains(e.target)||S(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),o((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&S(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const A=t(n,{children:[a,e(lt,{name:v,size:"sm",className:"c-nav__icon"})]}),y=e("div",{className:E,ref:b,"aria-hidden":!f,children:s});return t(fa,{dropdown:!c,megaMenu:c,disabled:u,className:f?"is-active":"",href:"#",onClick:()=>{u||S(!f)},"aria-expanded":f,style:h,children:[A,y]})}));wa.displayName="NavDropdown";const Ma=({currentIndex:n,imagesLength:a,onZoomOut:r,onResetZoom:i,onZoomIn:o,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:h,onDownload:u,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(ut,{label:`${n+1} / ${a}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(lt,{name:"Minus",size:"sm"})}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(lt,{name:"MagnifyingGlass",size:"sm"})}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(lt,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(lt,{name:"ArrowsClockwise",size:"sm"})}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(lt,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(lt,{name:"Share",size:"sm"})}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(lt,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(lt,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(lt,{name:"X",size:"sm"})})]})]}),Da=({show:a,onPrev:r,onNext:i,currentIndex:s,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(o((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&i(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,i,d]),a?t(n,{children:[e(vt,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===s,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(lt,{name:"CaretLeft",size:"md"})}),e(vt,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:i,disabled:s===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(lt,{name:"CaretRight",size:"md"})})]}):null),ka=({imageRef:t,containerRef:n,src:a,alt:s,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:h,isTransitioning:u=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:S,onTouchMove:b,onTouchEnd:E,onDoubleClick:v})=>{const A=i(null),y=n||A,[T,N]=r(!1);return o((()=>(N(!0),()=>N(!1))),[]),o((()=>{const e=y.current;if(!e)return;const t=t=>{T&&e&&f&&f(t)},n=t=>{T&&e&&S&&S(t)},a=t=>{T&&e&&b&&b(t)},r=t=>{T&&e&&E&&E(t)};return T&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[T,f,S,b,E,y]),e("div",{ref:y,className:"c-photo-viewer__image-container "+(u?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:u?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{T&&v&&v(e)},children:e("img",{ref:t,src:a,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${h}deg)`,transition:d?"none":u?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Ba=({images:n,currentIndex:a,goToImage:r})=>n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((n,i)=>{const o=n.thumbnail||n.src,s=i===a;return e(vt,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(i),"aria-label":`View image ${i+1}${n.title?": "+n.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:n.alt||"Thumbnail "+(i+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},i)}))})}):null,Pa=({show:n,image:a,onClose:r})=>n&&a?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(vt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(lt,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[a.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(lt,{name:"Calendar",size:14}),e("span",{children:a.date})]}),a.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(lt,{name:"User",size:14}),e("span",{children:a.author})]})]})}),a.tags&&a.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:a.tags.map(((t,n)=>e(ut,{label:t,variant:"secondary",size:"sm"},n)))})]})]})]}):null,Fa=({images:n,startIndex:a=0,className:s="",disabled:l=!1,enableKeyboardNavigation:c=!0,enableGestures:u=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:S,zoomLevel:b,imagePosition:E,isDragging:v,isFullscreen:A,rotationAngle:y,showInfo:T,imageRef:N,containerRef:_,isTransitioning:C,setZoomLevel:L,setImagePosition:x,setIsDragging:I,setIsFullscreen:O,setRotationAngle:R,setShowInfo:w,closeModal:M,goToPrevious:D,goToNext:k,setCurrentIndex:B,handleMouseDown:P,handleMouseMove:F,handleMouseUp:z,handleWheel:U,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:W,resetImageState:Y}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:s})=>{const[l,c]=r(t),[d,u]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[S,b]=r(!1),[E,v]=r(!1),[A,y]=r({}),[T,N]=r(!1),[_,C]=r(!1),[L,x]=r({velocity:0,timestamp:0}),I=i(null),O=i(null),R=i([]),w=i(null),M=i(null),D=i(0),k=i(null),B=h(((e,t)=>{if(!_||!I.current||!O.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=I.current,a=O.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,i=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),h=r/i;let u,m;o/s>h?(m=Math.min(.9*s,i),u=m*h):(u=Math.min(.9*o,r),m=u/h);const p=(u*d+m*c)*e,g=Math.max(0,((u*c+m*d)*e-o)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(o){return{minX:0,maxX:0,minY:0,maxY:0}}}),[_]),P=h(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(C(!0),0>t||t>=e.length?c(0):c(t),()=>C(!1))),[e,t]),o((()=>{d?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[d]),o((()=>{d&&y((e=>e[l]?e:{...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[d,l]),o((()=>{a&&a(l)}),[l,a]),o((()=>{const e=I.current,t=O.current,n=()=>{_&&e&&t&&y((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&_))return e&&t&&_?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[l,B,P,_]),o((()=>{const e=()=>{_&&I.current&&O.current&&y((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l,B,P,_]);const F=h((()=>{u(!0)}),[]),z=h((()=>{u(!1),s&&s()}),[s]),U=h((()=>{l>0&&(N(!0),setTimeout((()=>{c((e=>e-1)),N(!1)}),150))}),[l]),G=h((()=>{l<e.length-1&&(N(!0),setTimeout((()=>{c((e=>e+1)),N(!1)}),150))}),[l,e.length]),V=h((e=>{y((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),i=B(r,n.rotation),o=P(n.position,i);return{...t,[l]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[_,l,B,P]),H=h((e=>{y((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=P(a,n.bounds);return{...t,[l]:{...n,position:r}}}))}),[l,P]),W=h((e=>{y((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=B(n.zoomLevel,a),i=P(n.position,r);return{...t,[l]:{...n,rotation:a,bounds:r,position:i}}}))}),[_,l,B,P]),Y=h((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;if(t&&"function"==typeof t.getBoundingClientRect){if("undefined"!=typeof window&&window.location?.href?.includes("storybook"))try{const e=t.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(n){return}y((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&r,c=!e.ctrlKey&&!o&&r,d=!r;let h,u=!1;if(i)h=-.02*e.deltaY,u=!0;else if(s){if(1>=a.zoomLevel)return n;h=-.003*e.deltaY,u=!0}else c?(h=-.004*e.deltaY,u=!0):d?(h=-.006*e.deltaY,u=!0):(h=-.005*e.deltaY,u=!0);u&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-D.current;let g;D.current=m,i&&100>p&&(x({velocity:Math.abs(h)/p,timestamp:m}),k.current&&clearTimeout(k.current),k.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(h>0?1:-1);return y((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=B(n,t.rotation),i=P(t.position,r);return{...e,[l]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=t.getBoundingClientRect()}catch(T){return n}if(!g||0===g.width||0===g.height)return n;const f=g.width/2,S=g.height/2,b=e.clientX-g.left-f,E=e.clientY-g.top-S,v=a.zoomLevel,A=Math.max(.1,Math.min(5,v+h));if(A!==v){const e=A/v,t=B(A,a.rotation),r={x:a.position.x+b*(1-e)*.5,y:a.position.y+E*(1-e)*.5},i=P(r,t);return{...n,[l]:{...a,zoomLevel:A,bounds:t,position:i}}}return n}))}}),[_,l,B,P]),K=h((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&y((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return n}if(!r||0===r.width||0===r.height)return n;const i=r.width/2,o=r.height/2,s=e.clientX-r.left-i,c=e.clientY-r.top-o;let d,h={x:0,y:0};1.5>a.zoomLevel?(d=2,h={x:.5*-s,y:.5*-c}):3>a.zoomLevel?(d=4,h={x:.75*-s,y:.75*-c}):(d=1,h={x:0,y:0});const u=B(d,a.rotation),m=P(h,u);return{...n,[l]:{...a,zoomLevel:d,bounds:u,position:m}}}))}),[_,l,B,P]),j=h((e=>{y((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[l]),$=h((e=>{m&&y((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.min(1,1/n.zoomLevel),r=(e.clientX-g.x)*a,i=(e.clientY-g.y)*a,o=P({x:r,y:i},n.bounds);return{...t,[l]:{...n,position:o}}}))}),[m,g,l,P]),Q=h((()=>{p(!1)}),[]),Z=h((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),R.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),y((e=>{const n=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;w.current=Math.sqrt(t*t+a*a),M.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[n,l]),q=h((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),y((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,i=0,o=null;if(1===t.length&&m&&a.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/a.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=P(r,a.bounds);return{...n,[l]:{...a,position:e}}}}else if(2===t.length&&null!==w.current){const r=t[0],c=t[1];if(r&&c){const t=r.clientX-c.clientX,d=r.clientY-c.clientY,h=Math.sqrt(t*t+d*d);i=.005*(h-w.current),w.current=h,o={x:(r.clientX+c.clientX)/2,y:(r.clientY+c.clientY)/2};const u=a.zoomLevel,m=Math.max(.1,Math.min(5,u+i));if(m!==u&&M.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return n}if(!t||0===t.width||0===t.height)return n;const r=t.width/2,i=t.height/2,c=o.x-t.left-r,d=o.y-t.top-i,h=m/u,p=B(m,a.rotation),g={x:a.position.x+c*(1-h)*.5,y:a.position.y+d*(1-h)*.5},f=P(g,p);return M.current=o,{...n,[l]:{...a,zoomLevel:m,bounds:p,position:f}}}o&&(M.current=o)}}return n}))}),[_,n,m,g,l,P,B]),X=h((()=>{p(!1),w.current=null,M.current=null}),[]),J=A[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:l,isModalOpen:d,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:S,rotationAngle:J.rotation,showInfo:E,imageRef:I,containerRef:O,isTransitioning:T,setCurrentIndex:c,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:b,setRotationAngle:W,setShowInfo:v,openModal:F,closeModal:z,goToPrevious:U,goToNext:G,handleWheel:Y,handleMouseDown:j,handleMouseMove:$,handleMouseUp:Q,handleTouchStart:Z,handleTouchMove:q,handleTouchEnd:X,handleDoubleClick:K,resetImageState:()=>{y((e=>({...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:a,enableGestures:u,onImageChange:g,onClose:f||(()=>{})}),K=d((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),j=K[S],$=d((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,v?"c-photo-viewer--dragging":"",A?"c-photo-viewer--fullscreen":"",T?"c-photo-viewer--info-open":"",l?"is-disabled":"",s].filter(Boolean).join(" ")),[v,A,T,l,p,s]);return o((()=>{const e=()=>{O(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[O]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:$,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:M}),t("div",{className:"c-photo-viewer__container",children:[e(Ma,{currentIndex:S,imagesLength:n.length,onZoomOut:()=>L((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>L((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(A)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}O(!A)}},onClose:f||M,isFullscreen:A,zoomLevel:b,onRotate:()=>{R((e=>(e+90)%360))},onDownload:()=>{if(!j?.src)return;const e=document.createElement("a");e.href=j.src;const t=(j.title||"image-"+(S+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&j?.src)try{await navigator.share({title:j.title||"Shared Image",text:j.description||"Check out this image",url:j.src})}catch(e){}},showInfo:T,onToggleInfo:()=>w(!T),currentImage:j}),t("div",{className:"c-photo-viewer__content",children:[e(Da,{show:n.length>1,onPrev:D,onNext:k,currentIndex:S,imagesLength:n.length,enableKeyboardNav:c,onClose:f||M}),j?.src&&e(ka,{imageRef:N,containerRef:_,src:j.src,alt:j?.alt||"Image "+(S+1),zoomLevel:b,dragPosition:E,isDragging:v,rotationAngle:y,isTransitioning:C,onMouseDown:P,onMouseMove:F,onMouseUp:z,onWheel:U,onTouchStart:G,onTouchMove:V,onTouchEnd:H,onDoubleClick:W})]}),"none"!==p&&e(Ba,{images:K,currentIndex:S,goToImage:B}),e(Pa,{show:T,image:j,onClose:()=>w(!1)})]})]}):null};Fa.displayName="PhotoViewer";const za=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Ua=({content:n,position:a="top",trigger:s="click",className:l="",style:c,delay:d=0,offset:h=12,defaultOpen:u=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:f=!0,id:S,children:b,glass:E})=>{const{isOpen:v,setIsOpen:A,triggerRef:y,popoverRef:T,arrowRef:N,popoverId:_,currentPosition:C,updatePosition:L}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:s=!1,isOpen:l,onOpenChange:c,closeOnClickOutside:d=!0,closeOnEscape:h=!0,id:u})=>{const[m,p]=r(s),[g,f]=r("auto"===e?"top":e),S=i(null),b=i(null),E=i(null),v=i(null),A=u||"popover-"+Math.random().toString(36).slice(2,11),y=void 0!==l,T=y?l:m,N=e=>{y||p(e),c&&c(e)};o((()=>{if("hover"!==t||!S.current||!b.current)return;const e=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null),a>0?v.current=setTimeout((()=>{N(!0)}),a):N(!0)},n=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null),v.current=setTimeout((()=>{b.current?.matches(":hover")||N(!1)}),100)},r=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null)},i=()=>{N(!1)};return S.current.addEventListener("mouseenter",e),S.current.addEventListener("mouseleave",n),b.current.addEventListener("mouseenter",r),b.current.addEventListener("mouseleave",i),()=>{S.current&&(S.current.removeEventListener("mouseenter",e),S.current.removeEventListener("mouseleave",n)),b.current&&(b.current.removeEventListener("mouseenter",r),b.current.removeEventListener("mouseleave",i)),null!==v.current&&window.clearTimeout(v.current)}}),[t,a,T]);const _=t=>{if(!S.current||!b.current)return;const a=S.current.getBoundingClientRect(),r=b.current.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,s=50>a.top||a.bottom>o-50||50>a.left||a.right>i-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=o-a.bottom,d=a.left,h=i-a.right;let u="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:h},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),u=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&h>=r.width+n||"right"===e&&h<r.width+n&&d>=r.width+n)&&(u={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);f(u);let m=0,p=0;switch(u){case"top":m=a.top-r.height-n,p=a.left+a.width/2-r.width/2;break;case"bottom":m=a.bottom+n,p=a.left+a.width/2-r.width/2;break;case"left":m=a.top+a.height/2-r.height/2,p=a.left-r.width-n;break;case"right":m=a.top+a.height/2-r.height/2,p=a.right+n}0>p?p=5:p+r.width>i&&(p=i-r.width-5),0>m?m=5:m+r.height>o&&(m=o-r.height-5);const g=m+window.scrollY,E=p+window.scrollX;b.current.style.position="absolute",b.current.style.top=g+"px",b.current.style.left=E+"px"};return o((()=>{if(!T||!S.current||!b.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[T,e,n]),o((()=>{if(!T||!d)return;const e=e=>{b.current&&!b.current.contains(e.target)&&S.current&&!S.current.contains(e.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[T,d]),o((()=>{if(!T||!h)return;const e=e=>{"Escape"===e.key&&N(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[T,h]),o((()=>()=>{null!==v.current&&window.clearTimeout(v.current)}),[]),{isOpen:T,setIsOpen:N,triggerRef:S,popoverRef:b,arrowRef:E,popoverId:A,currentPosition:g,updatePosition:_}})({position:a,trigger:s,offset:h,delay:d,defaultOpen:u,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:f,id:S});return t(za.Provider,{value:{isOpen:v,setIsOpen:A,triggerRef:y,popoverId:_,triggerType:s},children:[b,"undefined"!=typeof document&&R(t("div",{ref:T,className:`c-popover c-popover--${C} ${v?G.CLASSES.IS_OPEN:""} ${E?"c-popover--glass":""} ${l}`,style:c,id:_,role:"tooltip","aria-hidden":!v,children:[E?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===E?t:{...t,...E};return e(He,{...a,style:c,children:e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})})})})():e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})}),e("div",{ref:N,className:"c-popover__arrow"})]}),document.body)]})};l((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:i,triggerRef:o,popoverId:s,triggerType:l}=a.useContext(za),c=t||l,d=a.Children.only(e),h={ref:n||o,"aria-describedby":s,"aria-expanded":r};return"click"===c?h.onClick=()=>{i(!r)}:"hover"===c&&(h.onMouseEnter=()=>{i(!0)},h.onMouseLeave=()=>{i(!1)}),a.cloneElement(d,h)})),Ua.displayName="Popover";const Ga=l((({value:n=0,defaultValue:a,maxValue:s=5,allowHalf:l=!1,readOnly:c=!1,size:d="md",color:u,onChange:m,className:p="",style:g,label:f,id:S,useVanillaJS:b=!1,glass:E,...v},A)=>{const y=i(null),T=i(null),{currentValue:N,hoverValue:_,focusedIndex:C,setHoverValue:L,setFocused:x,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:i})=>{const o=void 0!==i,[s,l]=r(e),[c,d]=r(null),[u,m]=r(null),p=o?e:s,g=h((e=>{a||d(e)}),[a]),f=h((()=>{a||d(null)}),[a]),S=h((e=>{a||(o||l(e),i?.(e))}),[a,i,o]),b=h(((e,r)=>{if(a)return;const s=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+s),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-s),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=r,e.preventDefault();break;default:return}c!==p&&(o||l(c),i?.(c))}),[p,t,n,a,i,o]);return{currentValue:p,hoverValue:c,focusedIndex:u,handleMouseEnter:g,handleMouseLeave:f,handleClick:S,handleKeyDown:b,setFocused:m,setHoverValue:d,isControlled:o}})({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,onChange:m}),O=h(((e,t)=>{if(!c)if(l){const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;L(Math.max(.5,r?t-.5:t))}else L(t)}),[c,l,L]),R=h(((e,t)=>{if(c||!l)return;const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;L(Math.max(.5,r?t-.5:t))}),[c,l,L]),w=h((()=>{c||L(null)}),[c,L]),M=h(((e,t)=>{if(c)return;let n=t;if(l){const a=e.currentTarget.getBoundingClientRect(),r=a.left+a.width/2;n=e.clientX<r?t-.5:t,n=Math.max(.5,n)}m?.(n)}),[c,m,l]);o((()=>{if(b&&"undefined"!=typeof window&&y.current)return()=>{T.current&&T.current.destroy()}}),[b,n,a,s,l,c,d,u,m]),o((()=>{b&&T.current&&T.current.updateOptions({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,size:d,color:u})}),[b,n,a,s,l,c,d,u]);const D=["c-rating","sm"===d?X.CLASSES.SMALL:"","lg"===d?X.CLASSES.LARGE:"",u?"c-rating--"+u:"",p].filter(Boolean).join(" ");if(b)return e("div",{className:D,ref:Ea(y,A),id:S,...v});const k=null!==_?_:N,B=e("div",{className:D,ref:Ea(y,A),id:S,style:g,"data-readonly":c?"true":"false",onMouseLeave:w,role:c?"img":"radiogroup","aria-label":f||`Rating: ${N} out of ${s} stars`,...v,children:(()=>{const n=[],a=l?Math.floor(2*k)/2:Math.round(k),r=S||"rating-"+Math.random().toString(36).substring(2,9);for(let i=1;s>=i;i++){const o=l&&i-.5===a,d=["c-rating__star",i>Math.floor(a)?"":X.CLASSES.FULL,o?X.CLASSES.HALF:"",u?"c-rating__star--"+u:"",C===i?"c-rating__star--focused":""].filter(Boolean).join(" "),h=`${r}-star-${i}`;n.push(e("div",{id:h,className:d,"data-value":i,role:c?"presentation":"button",tabIndex:c?-1:0,"aria-label":`${i} ${1===i?"star":"stars"}`,"aria-checked":a>=i,"aria-setsize":s,"aria-posinset":i,onClick:e=>M(e,i),onMouseEnter:e=>O(e,i),onMouseMove:e=>R(e,i),onFocus:()=>x(i),onBlur:()=>x(null),onKeyDown:e=>I(e,i),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${r}-${i})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${i}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},i))}return n})()});if(E){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===E?t:{...t,...E};return e(He,{...n,children:B})}return B}));Ga.displayName="Rating";const Va=({productName:n,productImage:a,initialRating:s=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:h,className:u="",style:m})=>{const[p,g]=r(s),[f,S]=r(""),[b,E]=r(!1),v=i(null),A=i(null);o((()=>{if("undefined"!=typeof window&&v.current)return()=>{A.current&&A.current.destroy()}}),[n,a,s,l,c,d,h]);const y=e=>{e.preventDefault(),h&&h(p,f),E(!0)},T=["c-product-review",u].filter(Boolean).join(" ");return b?e("div",{className:T,ref:v,style:m,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(vt,{variant:"secondary",label:"Write another review",onClick:()=>{E(!1),g(0),S("")}})]})}):t("div",{className:T,ref:v,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),a&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:a,alt:n,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:y,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(Ga,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",color:d}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:f,onChange:e=>S(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(vt,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>y(new Event("click"))})})]})]})};Va.displayName="ProductReview";const Ha=l((({value:t,variant:n="primary",size:a="md",className:r="",style:i,disabled:o=!1,ariaLabel:s=ge.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:h,progressClasses:u}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),i="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[i,t?`${i}--${t}`:"",n?`${i}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:t,variant:n,size:a,className:r}),m=e("div",{ref:c,className:u+(l?" c-progress--glass":""),style:{...h,...i},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":o,children:e("div",{className:ge.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(He,{...n,children:m})}return m})),Wa=({title:n,text:a,actions:r,imageSrc:i,imageAlt:o="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:h,showOverlay:u=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:S,generateVisualClass:b,hasBackgroundImage:E,hasForegroundImage:v,textContent:A}=Rn({title:n,text:a,imageSrc:i,imageAlt:o,center:s,breakout:l,reverse:c,backgroundImageSrc:h,showOverlay:u,contentWidth:m}),y={...m?{[$.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},T=()=>E?t("div",{className:$.SELECTORS.BG.replace(".",""),children:[e("img",{src:h,alt:"Background",className:$.SELECTORS.BG_IMAGE.replace(".","")}),u&&e("div",{className:$.SELECTORS.OVERLAY.replace(".","")})]}):null,N=()=>v?e("div",{className:b(),children:e("div",{className:$.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:o,className:$.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:y,children:[T(),e("div",{className:$.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:$.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:S(),children:[d.map(((t,n)=>e("div",{className:`${$.SELECTORS.CONTENT_COL.replace(".","")} ${$.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},n))),r&&e("div",{className:$.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]}):t("div",{className:f(p),style:y,children:[T(),e("div",{className:$.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:$.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:S(),children:[n&&e("h2",{className:$.SELECTORS.TITLE.replace(".",""),children:n}),A.map(((t,n)=>e("p",{className:$.SELECTORS.TEXT.replace(".",""),children:t},n))),r&&e("div",{className:$.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]})};Wa.displayName="River";const Ya=({title:n,label:a,text:r,actions:s,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:h,imageAlt:u="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const S=i(null),b=i(null);o((()=>{if("undefined"!=typeof window&&S.current)return()=>{b.current&&b.current.destroy()}}),[l,c,d,m,p]);const E=["c-sectionintro","center"===l?j.CLASSES.CENTER:"","sm"===m?j.CLASSES.SMALL:"","lg"===m?j.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:E,ref:S,style:f,children:t("div",{className:"c-sectionintro__container",children:[a&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),r&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),s&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:E,ref:S,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,a&&e("div",{className:"c-sectionintro__label",children:a}),e("h2",{className:"c-sectionintro__title",children:n}),r&&e("div",{className:"c-sectionintro__text",children:r}),s&&e("div",{className:"c-sectionintro__actions",children:s}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:h,alt:u,className:"c-sectionintro__image"})})]})};Ya.displayName="SectionIntro";const Ka=l(((n,a)=>{const{slides:r=[],height:i=300,width:o="100%",slidesToShow:s=1,spaceBetween:l=0,loop:c=!1,initialSlide:h=0,direction:u="horizontal",speed:m=300,allowTouchMove:p=!0,threshold:g=50,grabCursor:f=!0,autoplay:S,navigation:b,pagination:E,className:v,style:A,onSlideChange:y,...T}=n;if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:i,width:o,...A},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const N=Qn({slides:r,slidesToShow:s,spaceBetween:l,loop:c,initialSlide:h,direction:u,speed:m,allowTouchMove:p,threshold:g,autoplay:S,onSlideChange:y}),{containerRef:_,wrapperRef:C,allSlides:L,realIndex:x,translateValue:I,slideWidth:O,transitioning:R,touching:w,slideNext:M,slidePrev:D,goToSlide:k,canSlideNext:B,canSlidePrev:P,handleTouchStart:F,handleTouchMove:z,handleTouchEnd:U,loopedSlides:G}=N,V=d((()=>0===O?0:L.length*(O+l)-l),[L.length,O,l]),H=["c-slider","vertical"===u&&"c-slider--vertical",f&&"c-slider--grab-cursor",w&&"c-slider--grabbing",c&&"c-slider--loop",v].filter(Boolean).join(" ");return t("div",{ref:a||_,className:H,style:{height:"number"==typeof i?i+"px":i,width:"number"==typeof o?o+"px":o,overflow:"hidden",position:"relative",cursor:f&&!w?"grab":w?"grabbing":"default",...A},onTouchStart:F,onTouchMove:z,onTouchEnd:U,onMouseDown:F,onMouseMove:z,onMouseUp:U,onMouseLeave:U,children:[e("div",{ref:C,className:"c-slider__wrapper",style:{display:"flex",flexDirection:"vertical"===u?"column":"row",width:"horizontal"===u?V+"px":"100%",height:"vertical"===u?V+"px":"100%",transform:"horizontal"===u?`translateX(${I}px)`:`translateY(${I}px)`,transition:R&&!N.repositioningRef?.current?`transform ${m}ms ease-out`:"none",willChange:"transform"},children:L.map(((n,a)=>t("div",{className:["c-slider__slide",(c?a%r.length===x:a===x)&&"c-slider__slide--active",n.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===u?"100%":O+"px",height:"vertical"===u?O+"px":"100%",flexShrink:0,marginRight:"horizontal"===u&&a<L.length-1?l+"px":0,marginBottom:"vertical"===u&&a<L.length-1?l+"px":0},children:[n.video?e("video",{src:n.video.src,poster:n.video.poster,autoPlay:n.video.autoplay,loop:n.video.loop,muted:n.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):n.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${n.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:n.content}):n.image?e("img",{src:n.image,alt:n.alt||n.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.content,(n.title||n.description)&&t("div",{className:"c-slider__slide-content",children:[n.title&&e("h3",{children:n.title}),n.description&&e("p",{children:n.description})]})]},n.id||a)))}),b&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:D,disabled:!P,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:M,disabled:!B,"aria-label":"Next slide"})]}),E&&e("div",{className:"c-slider__pagination",children:r.map(((t,n)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(n===x?"c-slider__pagination-bullet--active":""),onClick:()=>k(n),"aria-label":"Go to slide "+(n+1)},n)))})]})}));Ka.displayName="Slider";const ja=({items:n,activeIndex:a=0,vertical:i=!1,onStepChange:s,className:l="",style:c,glass:d})=>{const[h,u]=r(a);o((()=>{h!==a&&u(a)}),[a]);const m=e("div",{className:`c-steps ${i?W.CLASSES.VERTICAL:""} ${l}`,style:c,role:"navigation","aria-label":"Steps",children:n.map(((n,a)=>t("div",{className:`c-steps__item ${a>h?"":W.CLASSES.ACTIVE} ${h>a?W.CLASSES.COMPLETED:""}`,"aria-current":a===h?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:n.number}),e("div",{className:"c-steps__text",children:n.text}),n.content&&e("div",{className:"c-steps__custom-content",children:n.content})]})]},"step-"+a)))});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===d?t:{...t,...d};return e(He,{...n,children:m})}return m};ja.displayName="Steps";const $a=({items:n,activeIndex:a=H.DEFAULTS.ACTIVE_INDEX,onTabChange:i,className:o="",style:s,glass:l})=>{const[c,d]=r(a),h=t("div",{className:"c-tabs js-atomix-tab "+o,style:s,children:[e("ul",{className:"c-tabs__nav",children:n.map(((t,n)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:"c-tabs__nav-btn "+(n===c?H.CLASSES.ACTIVE:""),onClick:()=>(e=>{d(e),i&&i(e)})(n),"data-tabindex":n,role:"tab","aria-selected":n===c,"aria-controls":"tab-panel-"+n,children:t.label})},"tab-nav-"+n)))}),e("div",{className:"c-tabs__panels",children:n.map(((t,n)=>e("div",{className:"c-tabs__panel "+(n===c?H.CLASSES.ACTIVE:""),"data-tabindex":n,id:"tab-panel-"+n,role:"tabpanel","aria-labelledby":"tab-nav-"+n,style:{height:n===c?"auto":"0px",opacity:n===c?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},"tab-panel-"+n)))})]});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(He,{...n,children:h})}return h};$a.displayName="Tabs";const Qa=({quote:n,author:a,size:r="",skeleton:s=!1,className:l="",style:c})=>{const d=i(null),h=i(null);o((()=>{if("undefined"!=typeof window&&d.current)return()=>{h.current&&h.current.destroy()}}),[r,s]);const u=["c-testimonial","sm"===r?Y.CLASSES.SMALL:"","lg"===r?Y.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",s?{className:u,ref:d,style:c,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:u,ref:d,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),a&&t("div",{className:"c-testimonial__author",children:[a.avatarSrc&&e("img",{src:a.avatarSrc,alt:a.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:a.name}),e("p",{className:"c-testimonial__author-role",children:a.role})]})]})]})};Qa.displayName="Testimonial";const Za=({items:n=[],title:a="Todo List",onAddTodo:i,onToggleTodo:s,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:h=!0,className:u="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:S,generateTodoClasses:b,generateItemClasses:E}=Yn({items:n,title:a,size:c,placeholder:d,showCompleted:h,disabled:p}),[v,A]=r(n);o((()=>{A(n)}),[n]);const y=h?v:v.filter((e=>!e.completed)),T=b({size:c,className:u,disabled:p});return t("div",{className:T,style:m,children:[a&&e("h2",{className:"c-todo__title",children:a}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Gn(),text:g.trim(),completed:!1};A((e=>[...e,t])),i&&i(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(lt,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===y.length?e("li",{className:"c-todo__empty",children:"No items to display"}):y.map((n=>e("li",{className:E(n),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:n.completed,onChange:()=>{return e=n.id,void(p||(A((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e)));var e},disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return e=n.id,void(p||(A((t=>t.filter((t=>t.id!==e)))),l&&l(e)));var e},disabled:p,"aria-label":`Delete "${n.text}"`,children:e(lt,{name:"Trash",size:"sm"})})]})},n.id)))})]})};Za.displayName="Todo";const qa=({initialOn:t=!1,onToggleOn:n,onToggleOff:a,disabled:i=!1,className:o="",style:s,glass:l})=>{const[c,d]=r(t),h=()=>{if(i)return;const e=!c;d(e),e?n&&n():a&&a()},u=e("div",{className:`c-toggle ${c?V.CLASSES.IS_ON:""} ${i?"is-disabled":""} ${o}`,style:s,onClick:h,onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())},role:"switch","aria-checked":c,tabIndex:i?-1:0,"aria-disabled":i,children:e("div",{className:"c-toggle__switch"})});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(He,{...n,children:u})}return u};qa.displayName="Toggle";const Xa=({content:n,children:o,position:s=U.DEFAULTS.POSITION,trigger:l=U.DEFAULTS.TRIGGER,className:c="",style:d,delay:h=U.DEFAULTS.DELAY,offset:u=U.DEFAULTS.OFFSET,glass:m})=>{const[p,g]=r(!1),f=i(null),S=a.useId(),b=()=>{f.current&&clearTimeout(f.current),h>0?f.current=setTimeout((()=>{g(!0)}),h):g(!0)},E=()=>{f.current&&clearTimeout(f.current),g(!1)},v={},A={"aria-describedby":p?S:void 0};return"hover"===l?(v.onMouseEnter=b,v.onMouseLeave=E,A.onFocus=b,A.onBlur=E):"click"===l&&(A.onClick=()=>{p?E():b()}),t("div",{className:"u-position-relative u-d-inline-block",style:d,...v,children:[e("div",{className:`${U.SELECTORS.TRIGGER.substring(1)}${c?" "+c:""}`,...A,children:o}),p&&e("div",{id:S,role:"tooltip",className:`c-tooltip ${U.SELECTORS.TOOLTIP.substring(1)} ${{top:"c-tooltip--top",bottom:"c-tooltip--bottom",left:"c-tooltip--left",right:"c-tooltip--right","top-left":"c-tooltip--top-left","top-right":"c-tooltip--top-right","bottom-left":"c-tooltip--bottom-left","bottom-right":"c-tooltip--bottom-right"}[s]||"c-tooltip--top"} ${m?"c-tooltip--glass":""}`,"data-tooltip-position":s,"data-tooltip-trigger":l,style:{"--atomix-tooltip-offset":u+"px"},children:(()=>{const a=t("div",{className:`c-tooltip__content ${U.SELECTORS.CONTENT.substring(1)} ${p&&"is-active"}`,children:[e("span",{className:U.SELECTORS.ARROW.substring(1)}),n]});if(m){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===m?t:{...t,...m};return e(He,{...n,children:a})}return a})()})]})};Xa.displayName="Tooltip";const Ja=({disabled:n=!1,size:a="md",maxSizeInMB:o=5,acceptedFileTypes:s=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:l=!1,title:c="Drag and Drop files here",supportedFilesText:d="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:h="Choose File",helperText:u=`Maximum size: ${o}MB`,icon:m=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:p,onFileUpload:g,onFileUploadComplete:f,onFileUploadError:S,className:b="",style:E})=>{const v=i(null),[A,y]=r("idle"),[T,N]=r(!1),[_,C]=r(null),[L,x]=r(0),[I,O]=r(null),[R,w]=r(null),[M,D]=r(null),k=i(0),B=()=>{v.current&&!n&&v.current.click()},P=e=>{if(!e.length)return;const t=(l?e:[e[0]]).filter((e=>void 0!==e&&F(e)));t.length&&p&&p(t),t.length&&(C(t[0]||null),t[0]&&z(t[0]))},F=e=>{const t=1024*o*1024;return e.size>t?(y("error"),w(`File too large. Maximum size is ${o}MB.`),!1):!(s?.length&&!s.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t}))&&(y("error"),w("File type not supported."),1))},z=e=>{y("loading"),x(0);let t=0;const n=setInterval((()=>{t+=5,100>t?(x(t),O(Math.ceil((100-t)/5)+" seconds left"),g&&g(e,t)):(clearInterval(n),y("success"),D("Upload successful"),f&&f(e))}),500)},U=["c-upload","md"!==a&&"c-upload--"+a,T&&Q.CLASSES.DRAGGING,n&&Q.CLASSES.DISABLED,"loading"===A&&"c-upload--loading","success"===A&&"c-upload--success","error"===A&&"c-upload--error",b].filter(Boolean).join(" ");return t("div",{className:U,style:E,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(k.current++,1===k.current&&N(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(k.current--,0===k.current&&N(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),n)return;if(k.current=0,N(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);P(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:n?-1:0,"aria-label":`${c}. ${d}. ${u}`,"aria-disabled":n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),B())},children:[e("input",{type:"file",ref:v,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);P(t)},disabled:n,accept:s.join(","),multiple:l,"aria-hidden":"true"}),e("div",{className:"c-upload__icon",children:m}),e("h3",{className:"c-upload__title",children:c}),e("p",{className:"c-upload__text",children:d}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:B,disabled:n,children:h}),e("p",{className:"c-upload__helper-text",children:u})]}),"idle"!==A&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":L},children:[_&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:_.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[L,"%"]}),e("div",{className:"c-upload__loader-time",children:I})]})]}),("loading"===A||"error"===A||"success"===A)&&t("div",{className:"c-upload__loader-control",children:[e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{type:"button",className:"c-upload__loader-close",onClick:()=>{y("idle"),C(null),x(0),O(null),w(null),D(null)},"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]})]})]})};Ja.displayName="Upload";const er=l((({src:a,type:s="video",youtubeId:l,poster:c,autoplay:d=!1,loop:u=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:S,aspectRatio:b="16:9",className:E="",onPlay:R,onPause:w,onEnded:M,onTimeUpdate:D,onVolumeChange:k,onFullscreenChange:B,onError:P,showDownload:F=!1,showShare:z=!1,showSettings:U=!0,playbackRates:G=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:W=!1,glass:Y=!1,glassOpacity:K=1,glassContent:j,style:$,...Q},Z)=>{const q=i(null),X=i(null),J=i(null),ee=i(null),[te,ne]=r(8),ae="youtube"===s||l||a&&Hn(a),re=l||(ae&&a?Vn(a):null),{isPlaying:ie,currentTime:oe,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:he,playbackRate:ue,currentQuality:me,showControls:pe,play:ge,pause:Se,togglePlay:be,seek:Ee,setVolume:ve,toggleMute:Ae,toggleFullscreen:ye,togglePictureInPicture:Te,setPlaybackRate:Ne,setQuality:_e,formatTime:Ce,getProgressPercentage:Le,getBufferedPercentage:xe}=function({videoRef:e,containerRef:t,onPlay:n,onPause:a,onEnded:s,onTimeUpdate:l,onVolumeChange:c,onFullscreenChange:d,onError:u,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[S,b]=r(0),[E,v]=r(0),[A,y]=r(1),[T,N]=r(!1),[_,C]=r(!1),[L,x]=r(!1),[I,O]=r(!1),[R,w]=r(0),[M,D]=r(1),[k,B]=r(p?.[0]||null),[P,F]=r(!0),z=i(null),U=h((()=>{z.current&&clearTimeout(z.current),F(!0),z.current=setTimeout((()=>{g&&F(!1)}),3e3)}),[g]),G=h((async()=>{if(e.current)try{await e.current.play(),f(!0),n?.()}catch(t){u?.(t),f(!1)}}),[e,n,u]),V=h((()=>{e.current&&(e.current.pause(),f(!1),a?.())}),[e,a]),H=h((()=>{g?V():G()}),[g,G,V]),W=h((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,E)))}),[e,E]),Y=h((t=>{const n=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=n,y(n),N(0===n),c?.(n))}),[e,c]),K=h((()=>{if(e.current){const t=!T;e.current.muted=t,N(t)}}),[e,T]),j=h((async()=>{if(t.current)try{_?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,_]),$=h((async()=>{if(e.current)try{L?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,L]),Q=h((t=>{e.current&&m.includes(t)&&(e.current.playbackRate=t,D(t))}),[e,m]),Z=h((t=>{if(e.current&&p){const n=e.current.currentTime,a=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=n,a&&e.current.play(),B(t))}}),[e,p]),q=h((e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${n}:${a.toString().padStart(2,"0")}`}),[]),X=h((()=>E>0?S/E*100:0),[S,E]),J=h((()=>E>0?R/E*100:0),[R,E]);o((()=>{const t=e.current;if(!t)return;const r=()=>O(!0),i=()=>O(!1),o=()=>{v(t.duration),y(t.volume),N(t.muted)},d=()=>{b(t.currentTime),l?.(t.currentTime)},h=()=>{t.buffered.length>0&&w(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),n?.()},p=()=>{f(!1),a?.()},g=()=>{f(!1),s?.()},S=()=>{y(t.volume),N(t.muted),c?.(t.volume)},E=e=>{O(!1),u?.(e)},A=()=>x(!0),T=()=>x(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",i),t.addEventListener("loadedmetadata",o),t.addEventListener("timeupdate",d),t.addEventListener("progress",h),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",S),t.addEventListener("error",E),t.addEventListener("enterpictureinpicture",A),t.addEventListener("leavepictureinpicture",T),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",i),t.removeEventListener("loadedmetadata",o),t.removeEventListener("timeupdate",d),t.removeEventListener("progress",h),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",S),t.removeEventListener("error",E),t.removeEventListener("enterpictureinpicture",A),t.removeEventListener("leavepictureinpicture",T)}}),[e,n,a,s,l,c,u]),o((()=>{const e=()=>{const e=!!document.fullscreenElement;C(e),d?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[d]);const ee=h((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),W(S-10);break;case"ArrowRight":e.preventDefault(),W(S+10);break;case"ArrowUp":e.preventDefault(),Y(Math.min(1,A+.1));break;case"ArrowDown":e.preventDefault(),Y(Math.max(0,A-.1));break;case"KeyM":e.preventDefault(),K();break;case"KeyF":e.preventDefault(),j()}}),[H,W,S,Y,A,K,j,t]);o((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=h((()=>U()),[U]),ne=h((()=>{z.current&&clearTimeout(z.current),g&&F(!1)}),[g]);return o((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ne),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ne),z.current&&clearTimeout(z.current)}}),[t,te,ne]),{isPlaying:g,currentTime:S,duration:E,volume:A,isMuted:T,isFullscreen:_,isPictureInPicture:L,isLoading:I,buffered:R,playbackRate:M,currentQuality:k,showControls:P,play:G,pause:V,togglePlay:H,seek:W,setVolume:Y,toggleMute:K,toggleFullscreen:j,togglePictureInPicture:$,setPlaybackRate:Q,setQuality:Z,formatTime:q,getProgressPercentage:X,getBufferedPercentage:J}}({videoRef:q,containerRef:X,onPlay:R,onPause:w,onEnded:M,onTimeUpdate:D,onVolumeChange:k,onFullscreenChange:B,onError:P,playbackRates:G,quality:H});!function({videoRef:e,canvasRef:t,enabled:n,blur:a=60,opacity:r=.6,scale:s=1.2}){const l=i(60);o((()=>{if(!n||!e.current||!t.current)return;const i=e.current,o=t.current,c=o.getContext("2d");if(!c)return;const d=()=>{if(!i||!o||!c)return;const e=i.getBoundingClientRect();o.width=e.width*s,o.height=e.height*s,c.filter=`blur(${a}px)`,c.globalAlpha=r;try{c.drawImage(i,0,0,o.width,o.height)}catch(t){}n&&(l.current=requestAnimationFrame(d))},h=()=>{n&&d()},u=()=>{l.current&&cancelAnimationFrame(l.current)};return i.addEventListener("play",h),i.addEventListener("pause",u),i.addEventListener("ended",u),i.paused||h(),()=>{i.removeEventListener("play",h),i.removeEventListener("pause",u),i.removeEventListener("ended",u),l.current&&cancelAnimationFrame(l.current)}}),[n,a,r,s,e,t])}({videoRef:q,canvasRef:J,enabled:W});const[Ie,Oe]=r(!1),[Re,we]=r("quality"),[Me,De]=r(V?.find((e=>e.default))?.srcLang||null),[ke,Be]=r({width:0,height:0}),Pe=h((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;Ee(n*se)}),[se,Ee]),Fe=h((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;ve(n)}),[ve]),ze=h((()=>{if(a){const e=document.createElement("a");e.href=a,e.download="video",e.click()}}),[a]),Ue=h((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Ge=h((e=>{const t=q.current;if(t){const n=t.textTracks;for(let e=0;e<n.length;e++){const t=n[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<n.length;t++){const a=n[t];if(a&&a.language===e){a.mode="showing";break}}De(e)}}),[q]);o((()=>{const e=q.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Ge(e.srcLang)}),100)},n=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Ge(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",n)}}}),[V,Ge,q]),o((()=>{const e=()=>{if(ae&&ee.current){const e=ee.current.getBoundingClientRect();Be({width:e.width,height:e.height})}else if(q.current){const e=q.current.getBoundingClientRect();Be({width:e.width,height:e.height})}},t=setTimeout(e,100),n=new ResizeObserver(e);if(ae&&ee.current){const a=ee.current;n.observe(a);const r=()=>e();return a.addEventListener("load",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("load",r)}}if(q.current){const a=q.current;n.observe(a);const r=()=>e();return a.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),n.disconnect(),window.removeEventListener("resize",e)}}),[ae,q,ee]);const Ve=h((()=>{X.current&&X.current.focus()}),[]);o((()=>{const e=()=>{if(!X.current)return;const e=window.getComputedStyle(X.current),t=e.borderRadius||e.borderTopLeftRadius,n=parseFloat(t);isNaN(n)||ne(n)};e();let t=null;return"undefined"!=typeof ResizeObserver&&X.current&&(t=new ResizeObserver(e),t.observe(X.current)),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t&&X.current&&(t.unobserve(X.current),t.disconnect())}}),[]);const We=h((e=>{switch(e.key){case" ":case"k":e.preventDefault(),be();break;case"ArrowLeft":e.preventDefault(),Ee(oe-10);break;case"ArrowRight":e.preventDefault(),Ee(oe+10);break;case"ArrowUp":e.preventDefault(),ve(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),ve(Math.max(0,le-.1));break;case"m":e.preventDefault(),Ae();break;case"f":e.preventDefault(),ye()}}),[be,oe,Ee,le,ve,Ae,ye]);return t("div",{ref:X,className:`${fe.CLASSES.BASE} ${ae?fe.CLASSES.YOUTUBE:""} ${W?fe.CLASSES.AMBIENT:""} ${Y?fe.CLASSES.GLASS:""} ${E}`,style:{width:f,height:S,aspectRatio:b?b.replace(":","/"):void 0,...$},tabIndex:0,onClick:Ve,onKeyDown:We,role:"application","aria-label":"Video player",...Q,children:[W&&e("canvas",{ref:J,className:fe.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ae&&re?e("iframe",{ref:ee,className:fe.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:d?"1":"0",loop:u?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...u&&{playlist:re}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{q&&q.current!==e&&(q.current=e),"function"==typeof Z?Z(e):Z&&Z.current!==e&&(Z.current=e)},className:fe.CLASSES.VIDEO,src:a,poster:c,autoPlay:d,loop:u,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),he&&e("div",{className:fe.CLASSES.LOADING,children:e("div",{className:fe.CLASSES.SPINNER})}),Y&&e("div",{className:fe.CLASSES.GLASS_OVERLAY,children:e(He,{..."boolean"==typeof Y?{}:Y,mouseContainer:X,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!j&&e("div",{style:{width:ke.width>0?ke.width+"px":"100%",height:ke.height>0?ke.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Y&&j&&e("div",{className:fe.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:j}),p&&!ae&&t("div",{className:`${fe.CLASSES.CONTROLS} ${pe?fe.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Y?3:"auto"},children:[e("div",{className:fe.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:fe.CLASSES.PROGRESS_BAR,onClick:Pe,children:[e("div",{className:fe.CLASSES.PROGRESS_BUFFERED,style:{width:xe()+"%"}}),e("div",{className:fe.CLASSES.PROGRESS_PLAYED,style:{width:Le()+"%"}}),e("div",{className:fe.CLASSES.PROGRESS_THUMB,style:{left:Le()+"%"}})]})}),t("div",{className:fe.CLASSES.CONTROLS_ROW,children:[t("div",{className:fe.CLASSES.CONTROLS_LEFT,children:[e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:be,"aria-label":ie?"Pause":"Play",children:e(ie?v:A,{size:20})}),e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:()=>Ee(oe-10),"aria-label":"Skip back 10 seconds",children:e(y,{size:20})}),e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:()=>Ee(oe+10),"aria-label":"Skip forward 10 seconds",children:e(T,{size:20})}),t("div",{className:fe.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:Ae,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?N:_,{size:20})}),e("div",{className:fe.CLASSES.VOLUME_SLIDER,children:e("div",{className:fe.CLASSES.VOLUME_BAR,onClick:Fe,children:e("div",{className:fe.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:fe.CLASSES.TIME_DISPLAY,children:[e("span",{children:Ce(oe)}),e("span",{children:"/"}),e("span",{children:Ce(se)})]})]}),t("div",{className:fe.CLASSES.CONTROLS_RIGHT,children:[U&&t("div",{className:fe.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:()=>Oe(!Ie),"aria-label":"Settings",children:e(C,{size:20})}),Ie&&t("div",{className:fe.CLASSES.SETTINGS_MENU,children:[t("div",{className:fe.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${fe.CLASSES.SETTINGS_TAB} ${"quality"===Re?fe.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("quality"),children:"Quality"}),e("button",{className:`${fe.CLASSES.SETTINGS_TAB} ${"speed"===Re?fe.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("speed"),children:"Speed"}),e("button",{className:`${fe.CLASSES.SETTINGS_TAB} ${"subtitles"===Re?fe.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("subtitles"),children:"Subtitles"})]}),t("div",{className:fe.CLASSES.SETTINGS_CONTENT,children:["quality"===Re&&H&&e("div",{className:fe.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${fe.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?fe.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>_e(t),children:t.label},t.label)))}),"speed"===Re&&e("div",{className:fe.CLASSES.SETTINGS_OPTIONS,children:G.map((e=>t("button",{className:`${fe.CLASSES.SETTINGS_OPTION} ${ue===e?fe.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ne(e),children:[e,"x"]},e)))}),"subtitles"===Re&&e("div",{className:fe.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(n,{children:[e("button",{className:`${fe.CLASSES.SETTINGS_OPTION} ${null===Me?fe.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(null),children:"Off"}),V.map((t=>e("button",{className:`${fe.CLASSES.SETTINGS_OPTION} ${Me===t.srcLang?fe.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:fe.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),F&&e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:ze,"aria-label":"Download video",children:e(L,{size:20})}),z&&e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Share video",children:e(x,{size:20})}),e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:Te,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:fe.CLASSES.CONTROL_BUTTON,onClick:ye,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?I:O,{size:20})})]})]})]})]})}));er.displayName="VideoPlayer";var tr=Object.freeze({__proto__:null,Accordion:We,AnimatedChart:kt,AreaChart:Pt,AtomixGlass:He,AtomixLogo:Ye,Avatar:ct,AvatarGroup:dt,Badge:ut,BarChart:zt,Block:gt,Breadcrumb:ft,BubbleChart:Ut,Button:vt,Callout:At,CandlestickChart:Gt,Card:yt,Chart:Rt,ChartRenderer:Mt,Checkbox:Tn,ColorModeToggle:an,Countdown:rn,DataTable:un,DatePicker:Sn,DonutChart:Vt,Dropdown:En,EdgePanel:An,ElevationCard:Lt,Footer:ra,FooterLink:ca,FooterSection:la,FooterSocialLink:ea,Form:_n,FormGroup:Ln,FunnelChart:Ht,GaugeChart:Wt,HeatmapChart:Kt,Hero:da,Icon:lt,Input:In,LineChart:$t,List:ha,ListGroup:ua,MegaMenu:Ia,MegaMenuColumn:Oa,MegaMenuLink:Ra,Menu:_a,MenuDivider:xa,MenuItem:Ca,Messages:ma,Modal:pa,MultiAxisChart:Qt,Nav:ga,NavDropdown:wa,NavItem:fa,Navbar:Sa,Pagination:hn,PhotoViewer:Fa,PieChart:qt,Popover:Ua,ProductReview:Va,Progress:Ha,RadarChart:Xt,Radio:Xn,Rating:Ga,River:Wa,ScatterChart:Jt,SectionIntro:Ya,Select:qn,SideMenu:Na,SideMenuItem:Aa,SideMenuList:va,Slider:Ka,Spinner:Et,Steps:ja,Tabs:$a,Testimonial:Qa,Textarea:Jn,Todo:Za,Toggle:qa,Tooltip:Xa,TreemapChart:en,Upload:Ja,VideoPlayer:er,WaterfallChart:tn}),nr=Object.freeze({__proto__:null}),ar=Object.freeze({__proto__:null,ACCORDION:D,ATOMIX_GLASS:ye,AVATAR:de,AVATAR_GROUP:he,BADGE:k,BLOCK:ve,BREADCRUMB:F,BUTTON:M,CALLOUT:{BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},CARD:se,CHART:Ee,CLASS_PREFIX:{COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},CODE_SNIPPET:{BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},COUNTDOWN:{SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},DATA_TABLE_CLASSES:ee,DATA_TABLE_SELECTORS:{TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},DATEPICKER:{SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},DROPDOWN:pe,EDGE_PANEL:J,FOOTER:Ae,FORM:ae,FORM_GROUP:re,GLASS_CONTAINER:{CLASSES:{BASE:"c-glass-container",GLASS:"c-glass-container__glass",WARP:"c-glass-container__warp",CONTENT:"c-glass-container__content",OVERLAY:"c-glass-container__overlay",OVERLAY_VISIBLE:"c-glass-container__overlay--visible",OVERLAY_HIDDEN:"c-glass-container__overlay--hidden",OVERLAY_BLEND:"c-glass-container__overlay-blend",BORDER:"c-glass-container__border",BORDER_OVERLAY:"c-glass-container__border-overlay",HOVER_EFFECT:"c-glass-container__hover-effect",ACTIVE_EFFECT:"c-glass-container__active-effect",INTERACTION_EFFECT:"c-glass-container__interaction-effect",ACTIVE:"c-glass-container--active",CLICKABLE:"c-glass-container--clickable"},DISPLACEMENT_MAPS:{STANDARD:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0iZ3JhZGllbnQiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzgwODA4MCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzgwODA4MCIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZGllbnQpIi8+PC9zdmc+",POLAR:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0icG9sYXIiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQwNDA0MCIvPjxzdG9wIG9mZnNldD0iNTAlIiBzdG9wLWNvbG9yPSIjODA4MDgwIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjNDA0MDQwIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwb2xhcikiLz48L3N2Zz4=",PROMINENT:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icHJvbWluZW50IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA0MDQwIi8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiNjMGMwYzAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0MDQwNDAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Byb21pbmVudCkiLz48L3N2Zz4="}},HERO:z,INPUT:ie,LIST:B,LIST_GROUP:P,MESSAGES:me,MODAL:ue,NAV:Z,NAVBAR:{SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},PAGINATION_DEFAULTS:te,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:G,PROGRESS:ge,RADIO:oe,RATING:X,RIVER:$,SECTION_INTRO:j,SELECT:le,SIDE_MENU:q,SIZES:["sm","md","lg"],SLIDER:be,SPINNER:K,STEPS:W,TAB:H,TESTIMONIAL:Y,TEXTAREA:ce,THEME_COLORS:["primary","secondary","success","info","warning","error","light","dark"],TODO:ne,TOGGLE:V,TOOLTIP:U,UPLOAD:Q,VIDEO_PLAYER:fe,sliderConstants:Se});const rr="atomix-theme",ir="data-theme",or="/themes",sr="atomix-js-theme-styles",lr={maxSize:50,ttl:0},cr={maxSize:10,ttl:0},dr="atomix-theme-",hr="theme.config.ts",ur={level:"production"===process.env.NODE_ENV?1:2,enableConsole:!0},mr={theme:"data-theme",colorMode:"data-atomix-color-mode"},pr={colorMode:"--storybook-color-mode"},gr="themes",fr={style:"expanded",sourceMap:!0,loadPaths:["src"]},Sr=()=>"undefined"!=typeof window&&"undefined"!=typeof document,br=()=>!Sr(),Er=e=>`${dr}${e}`,vr=(e,t)=>br()?Promise.resolve():new Promise(((n,a)=>{if(document.getElementById(t))return void n();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{n()},r.onerror=()=>{r.remove(),a(Error("Failed to load theme CSS: "+e))},document.head.appendChild(r)})),Ar=e=>{if(br())return;let t=document.getElementById(e);if(!t){const n=Er(e);t=document.getElementById(n)}t&&t.remove()},yr=(e,t)=>{br()||(document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))},Tr=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e),Nr=()=>({getItem:e=>{if(br())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!br())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!br())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(br())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}});function _r(e){const t=[],n=[];if(!e||"object"!=typeof e)return t.push("Configuration must be an object"),{valid:!1,errors:t,warnings:n};if(e.themes&&"object"==typeof e.themes){const a=function(e){const t=[],n=[];0===Object.keys(e).length&&n.push("No themes defined in configuration");for(const[i,o]of Object.entries(e))if(i&&"string"==typeof i)if(o&&"object"==typeof o)if(!o.type||"css"!==o.type&&"js"!==o.type)t.push(`Theme "${i}" must have type "css" or "js"`);else{if(o.name&&"string"==typeof o.name||t.push(`Theme "${i}" must have a "name" string`),"css"===o.type){const e=Cr();t.push(...e.errors),n.push(...e.warnings)}if("js"===o.type){const e=Lr(i,o);t.push(...e.errors),n.push(...e.warnings)}o.version&&(r=o.version,!/^\d+\.\d+\.\d+(-[\w.]+)?(\+[\w.]+)?$/.test(r))&&n.push(`Theme "${i}" has invalid version format: ${o.version}`),o.status&&!["stable","beta","experimental","deprecated"].includes(o.status)&&n.push(`Theme "${i}" has invalid status: ${o.status}`),o.color&&(a=o.color,!(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(a)||/^rgba?\(/.test(a)||/^hsla?\(/.test(a)||["black","white","red","green","blue","yellow","cyan","magenta","transparent","currentColor"].includes(a.toLowerCase())))&&n.push(`Theme "${i}" has invalid color format: ${o.color}`),o.a11y&&o.a11y.contrastTarget&&(1>o.a11y.contrastTarget||o.a11y.contrastTarget>21)&&n.push(`Theme "${i}" has invalid contrast target: ${o.a11y.contrastTarget}`)}else t.push(`Theme "${i}" must be an object`);else t.push("Invalid theme ID: "+i);var a,r;return{valid:0===t.length,errors:t,warnings:n}}(e.themes);t.push(...a.errors),n.push(...a.warnings)}else t.push('Configuration must have a "themes" object');if(e.build){const a=function(e){const t=[],n=[];return e.output&&"object"==typeof e.output?(e.output.directory&&"string"==typeof e.output.directory||t.push('Build output must have a "directory" string'),e.output.formats&&"object"==typeof e.output.formats||t.push('Build output must have a "formats" object')):t.push('Build config must have an "output" object'),e.sass&&"object"==typeof e.sass?e.sass.style&&!["expanded","compressed","compact","nested"].includes(e.sass.style)&&n.push("Invalid Sass style: "+e.sass.style):t.push('Build config must have a "sass" object'),{valid:0===t.length,errors:t,warnings:n}}(e.build);t.push(...a.errors),n.push(...a.warnings)}else n.push("No build configuration provided, using defaults");if(e.runtime){const a=function(e){const t=[];return e.basePath&&"string"!=typeof e.basePath&&t.push("Runtime basePath must be a string"),e.defaultTheme&&"string"!=typeof e.defaultTheme&&t.push("Runtime defaultTheme must be a string"),e.preload&&!Array.isArray(e.preload)&&t.push("Runtime preload must be an array"),e.storageKey&&"string"!=typeof e.storageKey&&t.push("Runtime storageKey must be a string"),{valid:0===t.length,errors:t,warnings:[]}}(e.runtime);t.push(...a.errors),n.push(...a.warnings)}else n.push("No runtime configuration provided, using defaults");if(e.integration){const a=function(e){const t=[];return e.classNames&&"object"==typeof e.classNames?(e.classNames.theme&&"string"==typeof e.classNames.theme||t.push('Integration classNames must have a "theme" string'),e.classNames.colorMode&&"string"==typeof e.classNames.colorMode||t.push('Integration classNames must have a "colorMode" string')):t.push('Integration config must have a "classNames" object'),{valid:0===t.length,errors:t,warnings:[]}}(e.integration);t.push(...a.errors),n.push(...a.warnings)}else n.push("No integration configuration provided, using defaults");if(e.dependencies){const a=function(e,t){const n=[],a=[];for(const[r,i]of Object.entries(e))if(t[r])if(Array.isArray(i))for(const e of i)t[e]||n.push(`Theme "${r}" depends on non-existent theme: ${e}`);else n.push(`Dependencies for "${r}" must be an array`);else a.push("Dependencies defined for non-existent theme: "+r);return{valid:0===n.length,errors:n,warnings:a}}(e.dependencies,e.themes||{});t.push(...a.errors),n.push(...a.warnings)}return{valid:0===t.length,errors:t,warnings:n}}function Cr(e,t){const n=[];return{valid:0===n.length,errors:n,warnings:[]}}function Lr(e,t){const n=[];return t.createTheme&&"function"==typeof t.createTheme||n.push(`JS theme "${e}" must have a "createTheme" function`),{valid:0===n.length,errors:n,warnings:[]}}var xr,Ir;!function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(xr||(xr={}));class Or extends Error{constructor(e,t=xr.UNKNOWN_ERROR,n){super(e),this.name="ThemeError",this.code=t,this.context=n,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,Or)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(Ir||(Ir={}));class Rr{constructor(e={}){this.config={level:e.level??("production"===process.env.NODE_ENV?Ir.WARN:Ir.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,n){if(this.config.level<Ir.ERROR)return;const a=t instanceof Or?t:new Or(e,xr.UNKNOWN_ERROR,n);this.config.enableConsole,this.config.onError?.(a,n)}warn(e,t){this.config.level<Ir.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<Ir.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<Ir.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let wr=null;function Mr(){return wr||(wr=new Rr),wr}let Dr=null;const kr=Mr();function Br(e={}){const{configPath:t=hr,validate:n=!0,env:a=("undefined"!=typeof process&&process.env&&"production"===process.env.NODE_ENV?"production":"development")}=e;if(Dr)return Dr;let r;try{if("undefined"!=typeof window)throw Error("Theme config loading not supported in browser environment");if("undefined"!=typeof window||"undefined"==typeof require)throw Error("Theme config loading not supported in browser environment");let e;try{try{e=require("../../../../theme.config")}catch{const n=require("path"),a=require("fs"),r=n.resolve(process.cwd(),t);if(!a.existsSync(r))throw Error("Config file not found: "+r);{const t=require.resolve(r);require.cache&&require.cache[t]&&delete require.cache[t],e=require(r)}}}catch(i){const e=i instanceof Error?i.message:i+"";throw new Or("Cannot load theme config: "+e,xr.CONFIG_LOAD_FAILED,{configPath:t,error:e})}const o=function(e,t){const n={...e};return"production"===t&&n.runtime&&(n.runtime={...n.runtime,useMinified:!0,lazy:!0}),"development"===t&&(n.runtime&&(n.runtime={...n.runtime,useMinified:!1,lazy:!1}),n.build&&(n.build={...n.build,sass:{...n.build.sass,sourceMap:!0}})),"test"===t&&n.runtime&&(n.runtime={...n.runtime,enablePersistence:!1,preload:[]}),n}(e.default||e,a);let s=null;n&&(s=_r(o)),r={...o,validated:n,errors:s?.errors,warnings:s?.warnings}}catch(o){const e=o instanceof Error?o.message:o+"";kr.warn("Failed to load theme config from "+t,{configPath:t,error:e}),r={themes:{},build:{output:{directory:gr,formats:{expanded:".css",compressed:".min.css"}},sass:{...fr,loadPaths:[...fr.loadPaths]}},runtime:{basePath:or,cdnPath:null,preload:[],lazy:!0,defaultTheme:"",storageKey:rr,dataAttribute:ir,enablePersistence:!0,useMinified:"production"===a},integration:{cssVariables:pr,classNames:mr},dependencies:{},validated:!1,errors:["Failed to load config: "+(o instanceof Error?o.message:o+"")],warnings:[]}}return Dr=r,r}function Pr(){Dr=null}class Fr{constructor(){this.entries=new Map,this.config=null,this.initialized=!1}async initialize(e){if(!this.initialized){if(e)this.config=e;else try{this.config=Br()}catch(t){this.config={themes:{},build:{output:{directory:"themes",formats:{expanded:".css",compressed:".min.css"}},sass:{style:"expanded",sourceMap:!0,loadPaths:["src"]}},runtime:{basePath:"",defaultTheme:void 0},integration:{cssVariables:{colorMode:"--color-mode"},classNames:{theme:"data-theme",colorMode:"data-color-mode"}},dependencies:{},validated:!1,errors:[],warnings:[]}}for(const[e,t]of Object.entries(this.config.themes))this.register(e,t);this.resolveDependencies(),this.initialized=!0}}register(e,t){const n={id:e,definition:t,loaded:!1,dependencies:[...this.config?.dependencies?.[e]||t.dependencies||[]],dependents:[]};this.entries.set(e,n)}get(e){return this.entries.get(e)}has(e){return this.entries.has(e)}getAllIds(){return Array.from(this.entries.keys())}getAllMetadata(){return Array.from(this.entries.values()).map((e=>({id:e.id,name:e.definition.name,type:e.definition.type,class:e.definition.class,description:e.definition.description,author:e.definition.author,version:e.definition.version,tags:e.definition.tags,supportsDarkMode:e.definition.supportsDarkMode,status:e.definition.status,a11y:e.definition.a11y,color:e.definition.color,features:e.definition.features,dependencies:e.dependencies})))}getDefinition(e){return this.entries.get(e)?.definition}getTheme(e){return this.entries.get(e)?.theme}setTheme(e,t){const n=this.entries.get(e);n&&(n.theme=t,n.loaded=!0)}getDependencies(e){return this.entries.get(e)?.dependencies||[]}getDependents(e){return this.entries.get(e)?.dependents||[]}resolveDependencyOrder(e){const t=[],n=new Set,a=new Set,r=e=>{if(a.has(e))throw Error("Circular dependency detected involving theme: "+e);if(n.has(e))return;a.add(e);const i=this.entries.get(e);if(i)for(const t of i.dependencies){if(!this.has(t))throw Error(`Theme "${e}" depends on non-existent theme: ${t}`);r(t)}a.delete(e),n.add(e),t.push(e)};return r(e),t}resolveDependencies(){for(const e of this.entries.values())for(const t of e.dependencies){const n=this.entries.get(t);n&&(n.dependents.includes(e.id)||n.dependents.push(e.id))}}validate(){const e=[];for(const n of this.entries.keys())try{this.resolveDependencyOrder(n)}catch(t){e.push(t instanceof Error?t.message:t+"")}for(const[n,a]of this.entries.entries())for(const t of a.dependencies)this.has(t)||e.push(`Theme "${n}" depends on non-existent theme: ${t}`);return{valid:0===e.length,errors:e}}clear(){this.entries.clear(),this.config=null,this.initialized=!1}}const zr={...lr,enabled:!0};class Ur{constructor(e={}){this.cache=new Map,this.accessOrder=[],this.config={...zr,...e}}getCSS(e){if(!this.config.enabled)return null;const t=this.cache.get(e);return t&&"css"===t.type?this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl?(this.cache.delete(e),this.removeFromAccessOrder(e),null):(this.updateAccessOrder(e),t):null}getJS(e){if(!this.config.enabled)return null;const t=this.cache.get(e);return t&&"js"===t.type?this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl?(this.cache.delete(e),this.removeFromAccessOrder(e),null):(this.updateAccessOrder(e),t):null}setCSS(e,t){if(!this.config.enabled)return;this.evictIfNeeded();const n=this.cache.get(e),a={type:"css",themeId:e,loaded:!1,loading:null,timestamp:Date.now(),...n,...t};this.cache.set(e,a),this.updateAccessOrder(e)}setJS(e,t){if(!this.config.enabled)return;this.evictIfNeeded();const n={type:"js",themeId:e,theme:t,loaded:!0,timestamp:Date.now()};this.cache.set(e,n),this.updateAccessOrder(e)}has(e){if(!this.config.enabled)return!1;const t=this.cache.get(e);return!(!t||this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl&&(this.cache.delete(e),this.removeFromAccessOrder(e),1))}delete(e){const t=this.cache.delete(e);return t&&this.removeFromAccessOrder(e),t}clear(){this.cache.clear(),this.accessOrder=[]}getStats(){let e=0,t=0;for(const n of this.cache.values())"css"===n.type?e++:t++;return{size:this.cache.size,maxSize:this.config.maxSize,cssThemes:e,jsThemes:t}}updateAccessOrder(e){this.removeFromAccessOrder(e),this.accessOrder.push(e)}removeFromAccessOrder(e){const t=this.accessOrder.indexOf(e);t>-1&&this.accessOrder.splice(t,1)}evictIfNeeded(){if(this.cache.size>=this.config.maxSize)for(;this.cache.size>=this.config.maxSize&&this.accessOrder.length>0;){const e=this.accessOrder.shift();e&&this.cache.delete(e)}}}function Gr(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function Vr(e,t,n){const a=e=>Math.round(Math.max(0,Math.min(255,e))).toString(16).padStart(2,"0");return`#${a(e??0)}${a(t??0)}${a(n??0)}`}function Hr(e){const t=Gr(e);if(!t)return 0;const{r:n,g:a,b:r}=t,[i,o,s]=[n??0,a??0,r??0].map((e=>{const t=e/255;return t>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92}));return.2126*(i??0)+.7152*(o??0)+.0722*(s??0)}function Wr(e,t){const n=Hr(e),a=Hr(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function Yr(e,t=.2){const n=Gr(e);if(!n)return e;const{r:a,g:r,b:i}=n,o=e=>Math.min(255,Math.round(e+(255-e)*t));return Vr(o(a),o(r),o(i))}function Kr(e,t=.2){const n=Gr(e);if(!n)return e;const{r:a,g:r,b:i}=n,o=e=>Math.max(0,Math.round(e*(1-t)));return Vr(o(a),o(r),o(i))}function jr(e,t){const n=Gr(e);if(!n)return e;const{r:a,g:r,b:i}=n;return`rgba(${a}, ${r}, ${i}, ${Math.max(0,Math.min(1,t))})`}function $r(e,t=.15){return Hr(e)>.5?Kr(e,t):Yr(e,t)}function Qr(e){return e&&"object"==typeof e&&!0===e.__isJSTheme}class Zr{validate(e,t){const n=[],a=[],r=[],i=this.validatePalette(e.palette,t);n.push(...i.errors),a.push(...i.warnings),r.push(...i.a11yIssues);const o=this.validateTypography(e.typography);n.push(...o.errors),a.push(...o.warnings);const s=this.validateSpacing(e.spacing);n.push(...s.errors),a.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);n.push(...l.errors),a.push(...l.warnings);const c=this.validateTransitions(e.transitions);n.push(...c.errors),a.push(...c.warnings);const d=this.validateZIndex(e.zIndex);n.push(...d.errors),a.push(...d.warnings);const h=this.validateBorderRadius(e.borderRadius);n.push(...h.errors),a.push(...h.warnings);const u=this.validateCustom(e.custom);return n.push(...u.errors),a.push(...u.warnings),{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validatePalette(e,t){const n=[],a=[],r=[],i=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.primary",value:e.primary.main};r.push(o),3>t?n.push(o.message):a.push(o.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.text.primary",value:e.text.primary};r.push(o),3>t?n.push(o.message):a.push(o.message)}}const o=["primary","secondary","error","warning","info","success"];for(const s of o){const t=e[s];t&&(this.isValidColor(t.main)||n.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validateTypography(e){const t=[],n=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&n.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(n){t.push("Spacing function error: "+(n instanceof Error?n.message:n+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],n=[];if(e.values){const a=["xs","sm","md","lg","xl"];for(const n of a)"number"!=typeof e.values[n]&&t.push(`Breakpoint ${n} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],a=r[e-1];if(null!=t&&null!=a&&a>=t){n.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}checkContrast(e,t){try{return Wr(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],n=[],a=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};if(e.duration){const a=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of a){const a=e.duration[r];void 0!==a&&("number"!=typeof a||0>a?t.push(`Transition duration ${r} must be a non-negative number`):a>1e4&&n.push(`Transition duration ${r} (${a}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const a=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const i of a){const a=e.easing[i];void 0!==a&&("string"!=typeof a?t.push(`Transition easing ${i} must be a string`):r.test(a)||n.push(`Transition easing ${i} may not be a valid CSS easing function: ${a}`))}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateZIndex(e){const t=[],n=[],a=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[i,o]of Object.entries(e))void 0!==o&&("number"!=typeof o?t.push(`Z-index ${i} must be a number, got ${typeof o}`):0>o?t.push(`Z-index ${i} must be non-negative, got ${o}`):o>1e4&&n.push(`Z-index ${i} (${o}) exceeds recommended maximum (10000)`));for(let i=0;i<r.length;i++)for(let e=i+1;e<r.length;e++){const[t,a]=r[i],[o,s]=r[e],l=Math.abs(a-s);10>l&&l>0&&n.push(`Z-index values ${t} (${a}) and ${o} (${s}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateBorderRadius(e){const t=[],n=[],a=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const i of r){const a=e[i];if(void 0!==a){let e;if("number"==typeof a)e=a;else{if("string"!=typeof a){t.push(`Border radius ${i} must be a number or string, got ${typeof a}`);continue}{const n=a.match(/^([\d.]+)(px|rem|em|%)?$/);if(!n){t.push(`Border radius ${i} has invalid format: ${a}`);continue}const[,r]=n;if(!r){t.push(`Border radius ${i} has invalid numeric value: ${a}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${i} must be non-negative, got ${e}`):e>1e3&&n.push(`Border radius ${i} (${a}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateCustom(e){const t=[],n=[],a=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:n,a11yIssues:a};const r=new WeakSet;let i=0;const o=(e,t="custom")=>{if(i>10)n.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))n.push("Circular reference detected in custom property path: "+t);else{r.add(e),i++;try{for(const[a,r]of Object.entries(e)){const e=`${t}.${a}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(a)||n.push(`Custom property name "${a}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||o(r,e)}}finally{i--,r.delete(e)}}};return o(e),{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}}function qr(e,t="",n={}){for(const a in e){if(!e.hasOwnProperty(a))continue;const r=e[a],i=t?`${t}-${a}`:a;if(r&&"object"==typeof r&&!Array.isArray(r)){if("function"==typeof r)continue;qr(r,i,n)}else"string"!=typeof r&&"number"!=typeof r||(n[i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=r+"")}return n}function Xr(e,t,n){const a={};if(!Gr(e))return a;for(let r=1;10>=r;r++){let i;i=6>r?Yr(e,(6-r)/5*.8):6===r?e:Kr(e,(r-6)/4*.6),a[`${t}-${n}-${r}`]=i}return a}function Jr(e,t){const n={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){n[`${t}-${a}`]=r.main;const e=Gr(r.main);if(e&&(n[`${t}-${a}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),r.dark&&(n[`${t}-${a}-hover`]=r.dark),n[`${t}-${a}-text-emphasis`]=$r(r.main,.15),n[`${t}-${a}-bg-subtle`]=jr(r.main,.1),n[`${t}-${a}-border-subtle`]=jr(r.main,.2),"light"!==a&&"dark"!==a){const e=Xr(r.main,t,a);Object.assign(n,e)}}})),e.text?.primary){const a=Xr(e.text.primary,t,"gray");Object.assign(n,a)}if(e.error&&"object"==typeof e.error&&e.error.main){const a=Xr(e.error.main,t,"red");Object.assign(n,a)}if(e.success&&"object"==typeof e.success&&e.success.main){const a=Xr(e.success.main,t,"green");Object.assign(n,a)}if(e.info&&"object"==typeof e.info&&e.info.main){const a=Xr(e.info.main,t,"blue");Object.assign(n,a)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const a=Xr(e.warning.main,t,"yellow");Object.assign(n,a)}if(e.background&&(n[t+"-body-bg"]=e.background.default,e.background.default&&(n[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(n[t+"-secondary-bg-subtle"]=e.background.paper,n[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(n[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(n[t+"-brand-bg-subtle"]=jr(e.primary.main,.1))),e.text&&(n[t+"-body-color"]=e.text.primary,e.text.primary&&(n[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(n[t+"-secondary-text-emphasis"]=e.text.secondary,n[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(n[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(n[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(n[t+"-brand-text-emphasis"]=e.primary.main,n[t+"-brand-border-subtle"]=jr(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(n[t+"-light-border-subtle"]=jr(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(n[t+"-dark-border-subtle"]=jr(e.dark.main,.2)),e.text&&(n[t+"-heading-color"]=e.text.primary),e.primary){n[t+"-link-color"]=e.primary.main;const a=Gr(e.primary.main);a&&(n[t+"-link-color-rgb"]=`${a.r}, ${a.g}, ${a.b}`),n[t+"-link-hover-color"]=e.primary.dark||Kr(e.primary.main,.1);const r=Gr(e.primary.dark||Kr(e.primary.main,.1));r&&(n[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),n[t+"-link-decoration"]="none"}if(e.text&&(n[t+"-border-color"]=jr(e.text.primary,.1),n[t+"-border-color-translucent"]=jr(e.text.primary,.15)),e.primary&&(n[t+"-focus-border-color"]=e.primary.main),e.success&&(n[t+"-form-valid-color"]=e.success.main,n[t+"-form-valid-border-color"]=jr(e.success.main,.3)),e.error&&(n[t+"-form-invalid-color"]=e.error.main,n[t+"-form-invalid-border-color"]=jr(e.error.main,.3)),e.warning?n[t+"-highlight-bg"]=jr(e.warning.main,.2):n[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(n[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){const e=Yr(r.main,.6),i=Yr(r.main,.3),o=r.main;n[`${t}-${a}-gradient`]=`linear-gradient(135deg, ${e}, ${i}, ${o})`}})),e.text?.primary){const a=Yr(e.text.primary,.8),r=Yr(e.text.primary,.6),i=Yr(e.text.primary,.4);n[t+"-gradient"]=`linear-gradient(135deg, ${a}, ${r}, ${i})`}return n}function ei(e,t){const n={};n[t+"-body-font-family"]=e.fontFamily,n[t+"-font-sans-serif"]=e.fontFamily,n[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const a=e.fontSize||16;n[t+"-root-font-size"]=a+"px";const r=e.fontSize;n[t+"-body-font-size"]=r+"px",n[t+"-body-font-weight"]=e.fontWeightRegular+"",n[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",n[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",n[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",n[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",n[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(n[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(n[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const i="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");n[t+"-body-line-height"]=i+"",n[t+"-line-height-base"]=i+"",n[t+"-line-height-sm"]="1.43",n[t+"-line-height-lg"]="1.56";const o=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,h=2*r;if(n[t+"-font-size-xs"]=o+"px",n[t+"-font-size-sm"]=s+"px",n[t+"-font-size-md"]=l+"px",n[t+"-font-size-lg"]=c+"px",n[t+"-font-size-xl"]=d+"px",n[t+"-font-size-2xl"]=h+"px","display1"in e){const a=e.display1;n[t+"-display-1"]="string"==typeof a?a:a+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((a=>{const r=e[a];r?.letterSpacing&&(n[`${t}-letter-spacing-${a}`]=r.letterSpacing+"")})),n}function ti(e,t){const n={};return e.md&&(n[t+"-box-shadow"]=e.md),e.xs&&(n[t+"-box-shadow-xs"]=e.xs),e.sm&&(n[t+"-box-shadow-sm"]=e.sm),e.lg&&(n[t+"-box-shadow-lg"]=e.lg),e.xl&&(n[t+"-box-shadow-xl"]=e.xl),e.inset?n[t+"-box-shadow-inset"]=e.inset:e.sm&&(n[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),n}function ni(e,t){const n={},a=e.duration.shortest||150,r=e.duration.standard||300,i=e.duration.complex||500,o=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return n[t+"-transition-duration-fast"]=a/1e3+"s",n[t+"-transition-duration-base"]=r/1e3+"s",n[t+"-transition-duration-slow"]=i/1e3+"s",n[t+"-transition-duration-slower"]="0.7s",n[t+"-easing-base"]=o,n[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",n[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",n[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",n[t+"-easing-ease-linear"]="linear",n[t+"-transition-fast"]=`all ${a/1e3}s ${o}`,n[t+"-transition-base"]=`all ${r/1e3}s ${o}`,n[t+"-transition-slow"]=`all ${i/1e3}s ${o}`,n}function ai(e,t){const n={};return n[t+"-z-n1"]="-1",n[t+"-z-0"]="0",n[t+"-z-1"]="1",n[t+"-z-2"]="2",n[t+"-z-3"]="3",n[t+"-z-4"]="4",n[t+"-z-5"]="5",e.mobileStepper&&(n[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(n[t+"-z-sticky"]=e.appBar+""),n[t+"-z-fixed"]="1030",e.modal&&(n[t+"-z-modal"]=e.modal+""),e.speedDial&&(n[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(n[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(n[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(n[t+"-z-snackbar"]=e.snackbar+""),n}function ri(e,t){const n={};return Object.entries(e.values).forEach((([a,r])=>{n[`${t}-breakpoint-${a}`]=`${r}${e.unit}`})),n}function ii(e,t){const n={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([a,r])=>{const i=e(r),o=i.match(/([\d.]+)px/);if(o&&o[1]){const e=parseFloat(o[1])/16;n[`${t}-spacing-${a}`]=e+"rem"}else n[`${t}-spacing-${a}`]=i})),n}function oi(e,t){const n={};return n[t+"-border-width"]="1px",n[t+"-border-style"]="solid",!n[t+"-border-color"]&&e.text&&(n[t+"-border-color"]=jr(e.text.primary,.1)),n}function si(e,t){const n={},a=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return n[t+"-border-radius"]=a(e.base,"0.5rem"),n[t+"-border-radius-sm"]=a(e.sm,"0.25rem"),n[t+"-border-radius-lg"]=a(e.lg,"0.625rem"),n[t+"-border-radius-xl"]=a(e.xl,"0.75rem"),n[t+"-border-radius-xxl"]=a(e.xxl,"1rem"),n[t+"-border-radius-2xl"]=a(e.xxl,"1rem"),n[t+"-border-radius-3xl"]=a(e["3xl"],"1.5rem"),n[t+"-border-radius-4xl"]=a(e["4xl"],"2rem"),n[t+"-border-radius-pill"]=a(e.pill,"50rem"),n}function li(e,t){const n={};return n[t+"-focus-ring-width"]="3px",n[t+"-focus-ring-offset"]="2px",n[t+"-focus-ring-opacity"]="0.25",n}function ci(e,t={}){const{selector:n=":root",inject:a=!1,styleId:r="atomix-theme-variables",prefix:i="atomix"}=t,o={};if(Object.assign(o,Jr(e.palette,i)),Object.assign(o,ei(e.typography,i)),Object.assign(o,ti(e.shadows,i)),Object.assign(o,ni(e.transitions,i)),Object.assign(o,ai(e.zIndex,i)),Object.assign(o,ri(e.breakpoints,i)),Object.assign(o,ii(e.spacing,i)),Object.assign(o,oi(e.palette,i)),Object.assign(o,si(e.borderRadius,i)),Object.assign(o,li(e.palette,i)),e.custom&&Object.keys(e.custom).length>0){const t=qr(e.custom,i+"-custom");Object.assign(o,t)}const s=`${n} {\n${Object.entries(o).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return a&&Sr()&&di(s,r),s}function di(e,t="atomix-theme-variables"){if(!Sr())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(n)),n.textContent=e}function hi(e="atomix-theme-variables"){if(!Sr())return;const t=document.getElementById(e);t&&t.remove()}class ui{constructor(e={}){this.currentTheme=null,this.activeTheme=null,this.loadedThemes=new Set,this.loadingThemes=new Map,this.failedThemes=new Set,this.changeListeners=[],this.loadListeners=[],this.errorListeners=[],this.revertListeners=[],this.logger=Mr(),this.registry=new Fr,this.cache=new Ur(e.cacheConfig),this.validator=new Zr,this.config={basePath:e.basePath||or,cdnPath:e.cdnPath??null,useMinified:e.useMinified??!1,dataAttribute:e.dataAttribute||ir,enableCache:e.enableCache??!0,cacheConfig:e.cacheConfig??cr,styleId:e.styleId||sr}}async initialize(){await this.registry.initialize()}getCurrentTheme(){return this.currentTheme}getActiveTheme(){return this.activeTheme}isThemeLoaded(e){return this.loadedThemes.has(e)}async setTheme(e,t={}){const{force:n=!1,preload:a=!1,removePrevious:r=!0,fallbackOnError:i=!0}=t;if("string"!=typeof e){if(Qr(e))return void await this.applyJSTheme(e,r);throw Error("Invalid theme object provided")}if(!this.registry.has(e)){const t=new Or(`Theme "${e}" not found in registry`,xr.THEME_NOT_FOUND,{themeId:e});if(this.failedThemes.add(e),this.emitError(t,e),i&&this.currentTheme)return void this.emitRevert({attemptedTheme:e,revertedToTheme:this.currentTheme,error:t,timestamp:Date.now()});throw t}if(!n&&this.failedThemes.has(e)){const t=new Or(`Theme "${e}" previously failed to load. Use force: true to retry.`,xr.THEME_LOAD_FAILED,{themeId:e,previouslyFailed:!0});if(this.emitError(t,e),i&&this.currentTheme)return;throw t}if(!n&&this.isThemeLoaded(e)&&!a)return void(this.currentTheme!==e&&await this.applyTheme(e,r));const o=this.loadingThemes.get(e);if(o)return await o,void(a||this.currentTheme===e||await this.applyTheme(e,r));const s=this.loadTheme(e,t);this.loadingThemes.set(e,s);try{await s,this.loadingThemes.delete(e),this.failedThemes.delete(e),a||await this.applyTheme(e,r)}catch(l){this.loadingThemes.delete(e);const t=l instanceof Error?l:Error(l+""),a=this.failedThemes.has(e);if(a&&!n||(this.failedThemes.add(e),a||this.emitError(t,e)),i&&this.currentTheme)return void(a||this.emitRevert({attemptedTheme:e,revertedToTheme:this.currentTheme,error:t,timestamp:Date.now()}));throw l}}async loadTheme(e,t){const n=this.registry.getDefinition(e);if(!n)throw Error("Theme definition not found: "+e);"css"===n.type?await this.loadCSSTheme(e,n,t):await this.loadJSTheme(e,n),this.loadedThemes.add(e),this.emitLoad(e)}async loadCSSTheme(e,t,n){if(this.config.enableCache){const t=this.cache.getCSS(e);if(t?.loaded)return}if(br())return;const a=n.customPath||"css"===t.type&&t.cssPath||`${this.config.basePath}/${e}${this.config.useMinified?".min":""}.css`,r=this.config.cdnPath||a;this.config.enableCache&&this.cache.setCSS(e,{loading:Promise.resolve(),loaded:!1});try{await vr(r,mi(e)),this.config.enableCache&&this.cache.setCSS(e,{loaded:!0,loading:null})}catch(i){throw this.config.enableCache&&this.cache.delete(e),i}}async loadJSTheme(e,t){if("js"!==t.type)return;if(this.config.enableCache){const t=this.cache.getJS(e);if(t)return void this.registry.setTheme(e,t.theme)}const n=t.createTheme();this.registry.get(e);const a=this.validator.validate(n,{...t,name:e});!a.valid&&a.errors.length>0&&this.logger.warn(`Theme validation errors for "${e}"`,{themeId:e,errors:a.errors,warnings:a.warnings}),this.config.enableCache&&this.cache.setJS(e,n),this.registry.setTheme(e,n)}async applyTheme(e,t){const n=this.currentTheme;t&&n&&n!==e&&await this.removeTheme(n);const a=this.registry.getDefinition(e);if(!a)throw Error("Theme definition not found: "+e);if("css"===a.type)await this.applyCSSTheme(e);else{const t=this.registry.getTheme(e);t&&await this.applyJSTheme(t,!1)}this.currentTheme=e,this.emitChange({previousTheme:n,currentTheme:e,themeObject:this.activeTheme,timestamp:Date.now(),source:"user"})}async applyCSSTheme(e){if(br())return;const t=this.registry.getDefinition(e),n=t?.class||e;yr(this.config.dataAttribute,n),this.activeTheme=null}async applyJSTheme(e,t){if(br())return;t&&hi(this.config.styleId),di(ci(e,{selector:":root",prefix:"atomix"}),this.config.styleId);const n=e.name||"js-theme";yr(this.config.dataAttribute,n),this.activeTheme=e,this.currentTheme=n}async removeTheme(e){const t=this.registry.getDefinition(e);t&&("css"===t.type?Sr()&&Ar(mi(e)):Sr()&&hi(this.config.styleId))}async preloadTheme(e){await this.setTheme(e,{preload:!0})}getRegistry(){return this.registry}getCache(){return this.cache}clearFailedThemes(){this.failedThemes.clear()}clearFailedTheme(e){this.failedThemes.delete(e)}hasFailedTheme(e){return this.failedThemes.has(e)}on(e,t){"change"===e?this.changeListeners.push(t):"load"===e?this.loadListeners.push(t):"error"===e?this.errorListeners.push(t):"revert"===e&&this.revertListeners.push(t)}off(e,t){"change"===e?this.changeListeners=this.changeListeners.filter((e=>e!==t)):"load"===e?this.loadListeners=this.loadListeners.filter((e=>e!==t)):"error"===e?this.errorListeners=this.errorListeners.filter((e=>e!==t)):"revert"===e&&(this.revertListeners=this.revertListeners.filter((e=>e!==t)))}emitChange(e){for(const n of this.changeListeners)try{n(e)}catch(t){this.logger.error("Error in theme change listener",t instanceof Error?t:Error(t+""),{event:e})}}emitLoad(e){for(const n of this.loadListeners)try{n(e)}catch(t){this.logger.error("Error in theme load listener",t instanceof Error?t:Error(t+""),{themeId:e})}}emitError(e,t){for(const a of this.errorListeners)try{a(e,t)}catch(n){this.logger.error("Error in theme error listener",n instanceof Error?n:Error(n+""),{themeId:t,originalError:e.message})}}emitRevert(e){for(const n of this.revertListeners)try{n(e)}catch(t){this.logger.error("Error in theme revert listener",t instanceof Error?t:Error(t+""),{event:e})}}}function mi(e){return"atomix-theme-"+e}const pi=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),gi={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class fi{constructor(e={}){this.listeners=new Set,this.config={...gi,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&pi.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){return"undefined"==typeof navigator?"en":((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-")[0].toLowerCase()}isRTLLocale(e){return pi.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,n=document.body;t.setAttribute("dir",e),n?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),n?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(n){Mr().error("Error in RTL direction change listener",n instanceof Error?n:Error(n+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function Si(e){return pi.has(e.toLowerCase())}const bi={basePath:or,cdnPath:null,lazy:!0,storageKey:rr,dataAttribute:ir,enablePersistence:!0,useMinified:!1,preload:[]};class Ei{constructor(e){this.currentTheme=null,this.activeTheme=null,this.eventListeners={themeChange:[],themeLoad:[],themeError:[]},this.initialized=!1,this.logger=Mr(),this.config={...bi,...e,themes:e.themes||{},defaultTheme:e.defaultTheme},this.storageAdapter=Nr();const t={basePath:this.config.basePath,cdnPath:this.config.cdnPath,useMinified:this.config.useMinified,dataAttribute:this.config.dataAttribute,enableCache:!0};this.engine=new ui(t),e.rtl&&(this.rtlManager=new fi(e.rtl)),this.engine.on("change",(e=>{this.currentTheme=e.currentTheme,this.activeTheme=e.themeObject||null,this.emitThemeChange(e)})),this.engine.on("load",(e=>{this.emitThemeLoad(e)})),this.engine.on("error",((e,t)=>{this.emitThemeError(e,t)})),this.initialize()}initialize(){this.initialized||br()||(this.engine.initialize().then((()=>{if(this.config.themes&&Object.keys(this.config.themes).length>0){const e=this.engine.getRegistry();for(const[t,n]of Object.entries(this.config.themes))e.has(t)||e.register(t,{type:"css",name:n.name,class:n.class||t,description:n.description,author:n.author,version:n.version,tags:n.tags,supportsDarkMode:n.supportsDarkMode,status:n.status,a11y:n.a11y,color:n.color,features:n.features,dependencies:n.dependencies})}const e=this.getDefaultTheme();if(e){const t="string"==typeof e?e:e.name||"";this.engine.getRegistry().has(t)?this.setTheme(e,{removePrevious:!1,fallbackOnError:!0}).catch((e=>{e instanceof Error&&!e.message.includes("previously failed")&&this.logger.warn(`Failed to load default theme "${t}"`,{themeId:t,error:e.message})})):this.logger.warn(`Default theme "${t}" not found in registry. Using built-in styles.`,{themeId:t})}})),this.initialized=!0)}getDefaultTheme(){if(this.config.enablePersistence&&this.storageAdapter.isAvailable()){const e=this.storageAdapter.getItem(this.config.storageKey);if(e)try{if(this.engine.getRegistry().has(e))return e}catch{}}return this.config.defaultTheme||null}async setTheme(e,t){if(await this.engine.setTheme(e,t),this.config.enablePersistence&&this.storageAdapter.isAvailable()){const t="string"==typeof e?e:e.name||"js-theme";this.storageAdapter.setItem(this.config.storageKey,t)}this.config.onThemeChange&&this.config.onThemeChange(e)}getTheme(){return this.currentTheme||("string"==typeof this.config.defaultTheme?this.config.defaultTheme:"")}getActiveTheme(){return this.activeTheme||this.engine.getActiveTheme()}getAvailableThemes(){return this.engine.getRegistry().getAllMetadata()}isThemeLoaded(e){return this.engine.isThemeLoaded(e)}async preloadTheme(e){await this.engine.preloadTheme(e)}on(e,t){"themeChange"===e?this.eventListeners.themeChange.push(t):"themeLoad"===e?this.eventListeners.themeLoad.push(t):"themeError"===e&&this.eventListeners.themeError.push(t)}off(e,t){"themeChange"===e?this.eventListeners.themeChange=this.eventListeners.themeChange.filter((e=>e!==t)):"themeLoad"===e?this.eventListeners.themeLoad=this.eventListeners.themeLoad.filter((e=>e!==t)):"themeError"===e&&(this.eventListeners.themeError=this.eventListeners.themeError.filter((e=>e!==t)))}emitThemeChange(e){for(const n of this.eventListeners.themeChange)try{n(e)}catch(t){this.logger.error("Error in theme change callback",t instanceof Error?t:Error(t+""),{event:e})}}emitThemeLoad(e){for(const n of this.eventListeners.themeLoad)try{n(e)}catch(t){this.logger.error("Error in theme load callback",t instanceof Error?t:Error(t+""),{themeName:e})}}emitThemeError(e,t){if(e instanceof Or||new Or(e.message,xr.THEME_LOAD_FAILED,{themeName:t,originalError:e.message}),this.config.onError)try{this.config.onError(e,t)}catch(n){this.logger.error("Error in onError callback",n instanceof Error?n:Error(n+""),{themeName:t})}for(const a of this.eventListeners.themeError)try{a(e,t)}catch(n){this.logger.error("Error in theme error callback",n instanceof Error?n:Error(n+""),{themeName:t})}}getEngine(){return this.engine}getRTLManager(){return this.rtlManager}setDirection(e){this.rtlManager?.setDirection(e)}getDirection(){return this.rtlManager?.getDirection()||"ltr"}destroy(){this.eventListeners={themeChange:[],themeLoad:[],themeError:[]},this.rtlManager?.destroy(),this.initialized=!1}}const vi=g(null);vi.displayName="ThemeContext";const Ai=({error:n,errorInfo:a})=>{const r=n instanceof Or,i=r?n.code:xr.UNKNOWN_ERROR,o=r?n.context:void 0;return t("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[e("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t("p",{children:[e("strong",{children:"Error:"})," ",n.message]}),r&&t("p",{children:[e("strong",{children:"Error Code:"})," ",i]}),o&&Object.keys(o).length>0&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(o,null,2)})]}),"development"===process.env.NODE_ENV&&a&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),e("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})},yi={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},Ti={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},Ni={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},_i={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},Ci={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},Li={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function xi(e,...t){if(!t.length)return e;const n=t.shift();if(Ii(e)&&Ii(n))for(const a in n){if(!n.hasOwnProperty(a))continue;const t=n[a];Ii(t)?(e[a]||Object.assign(e,{[a]:{}}),xi(e[a],t)):Object.assign(e,{[a]:t})}return xi(e,...t)}function Ii(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Oi(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&t[1]&&t[2]&&t[3]?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function Ri(e){return function(e){const t=Oi(e);if(!t)return 0;const{r:n,g:a,b:r}=t,[i,o,s]=[n??0,a??0,r??0].map((e=>{const t=e/255;return t>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92}));return.2126*(i??0)+.7152*(o??0)+.0722*(s??0)}(e)>.5?"#000000":"#FFFFFF"}function wi(e,t=.2){const n=Oi(e);if(!n)return e;const{r:a,g:r,b:i}=n,o=e=>Math.min(255,Math.round(e+(255-e)*t));return`#${o(a??0).toString(16).padStart(2,"0")}${o(r??0).toString(16).padStart(2,"0")}${o(i??0).toString(16).padStart(2,"0")}`}function Mi(e,t=.2){const n=Oi(e);if(!n)return e;const{r:a,g:r,b:i}=n,o=e=>Math.max(0,Math.round(e*(1-t)));return`#${o(a??0).toString(16).padStart(2,"0")}${o(r??0).toString(16).padStart(2,"0")}${o(i??0).toString(16).padStart(2,"0")}`}function Di(e){return"string"==typeof e?{main:e,light:wi(e),dark:Mi(e),contrastText:Ri(e)}:{main:e.main||"#000000",light:e.light||wi(e.main||"#000000"),dark:e.dark||Mi(e.main||"#000000"),contrastText:e.contrastText||Ri(e.main||"#000000")}}function ki(...e){const t=e.reduce(((e,t)=>xi(e,t)),{}),n={primary:Di(t.palette?.primary||yi.primary),secondary:Di(t.palette?.secondary||yi.secondary),error:Di(t.palette?.error||yi.error),warning:Di(t.palette?.warning||yi.warning),info:Di(t.palette?.info||yi.info),success:Di(t.palette?.success||yi.success),...t.palette?.light&&{light:Di(t.palette.light)},...t.palette?.dark&&{dark:Di(t.palette.dark)},background:{default:t.palette?.background?.default||yi.background.default,paper:t.palette?.background?.paper||yi.background.paper,subtle:t.palette?.background?.subtle||yi.background.subtle},text:{primary:t.palette?.text?.primary||yi.text.primary,secondary:t.palette?.text?.secondary||yi.text.secondary,disabled:t.palette?.text?.disabled||yi.text.disabled}},a=xi({...Ti},t.typography||{}),r=function(e=4){return"function"==typeof e?e:"number"==typeof e?(...t)=>0===t.length?"0px":t.map((t=>t*e+"px")).join(" "):Array.isArray(e)?(...t)=>0===t.length?"0px":t.map((t=>(e[t]||t)+"px")).join(" "):(...e)=>0===e.length?"0px":e.map((e=>4*e+"px")).join(" ")}(t.spacing),i=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},n=e?.unit||"px";return{values:t,unit:n,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${n})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${n})`,between:(e,a)=>{const r="number"==typeof e?e:t[e]??0,i="number"==typeof a?a:t[a]??0;return`@media (min-width:${r}${n}) and (max-width:${i-.05}${n})`}}}(t.breakpoints),o=xi({...Ni},t.shadows||{}),s=xi({..._i},t.transitions||{}),l=xi({...Ci},t.zIndex||{}),c=xi({...Li},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||n.primary.main,features:t.features,dependencies:t.dependencies,palette:n,typography:a,spacing:r,breakpoints:i,shadows:o,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function Bi(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function Pi(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...n]=e,a={...t};for(const r of n)if(r)for(const e in r){if(!r.hasOwnProperty(e))continue;const t=a[e],n=r[e];Bi(t)&&Bi(n)?a[e]=Pi(t,n):a[e]=n}return a}function Fi(...e){return Pi({},...e)}function zi(e){return{name:e.name,class:e.class,description:e.description,author:e.author,version:e.version,tags:e.tags,supportsDarkMode:e.supportsDarkMode,status:e.status,a11y:e.a11y,color:e.color,features:e.features,dependencies:e.dependencies,palette:{primary:e.palette.primary,secondary:e.palette.secondary,error:e.palette.error,warning:e.palette.warning,info:e.palette.info,success:e.palette.success,background:e.palette.background,text:e.palette.text},typography:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,fontWeightLight:e.typography.fontWeightLight,fontWeightRegular:e.typography.fontWeightRegular,fontWeightMedium:e.typography.fontWeightMedium,fontWeightSemiBold:e.typography.fontWeightSemiBold,fontWeightBold:e.typography.fontWeightBold,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,body1:e.typography.body1,body2:e.typography.body2},shadows:e.shadows,transitions:e.transitions,zIndex:e.zIndex,custom:e.custom}}class Ui{constructor(e={}){this.options={selector:e.selector||":root",prefix:e.prefix||"atomix",includeComments:e.includeComments??!0,minify:e.minify??!1,formatProperty:e.formatProperty}}generate(e){const t=this.extractVariables(e);return this.formatCSS(t)}extractVariables(e){const t=new Map;return this.extractPalette(e.palette,t),this.extractTypography(e.typography,t),this.extractSpacing(e.spacing,t),this.extractBreakpoints(e.breakpoints,t),this.extractShadows(e.shadows,t),this.extractTransitions(e.transitions,t),this.extractZIndex(e.zIndex,t),this.extractBorderRadius(e.borderRadius,t),this.extractCustom(e.custom,t),t}extractPalette(e,t){const n=["primary","secondary","error","warning","info","success"];for(const a of n){const n=e[a];n&&(t.set(`palette-${a}-main`,n.main),n.light&&t.set(`palette-${a}-light`,n.light),n.dark&&t.set(`palette-${a}-dark`,n.dark),n.contrastText&&t.set(`palette-${a}-contrast-text`,n.contrastText))}e.background&&(t.set("background-default",e.background.default),t.set("background-paper",e.background.paper),t.set("background-subtle",e.background.subtle)),e.text&&(t.set("text-primary",e.text.primary),t.set("text-secondary",e.text.secondary),t.set("text-disabled",e.text.disabled))}extractTypography(e,t){t.set("font-family",e.fontFamily),t.set("font-size",e.fontSize+"px"),e.fontWeightLight&&t.set("font-weight-light",e.fontWeightLight+""),e.fontWeightRegular&&t.set("font-weight-regular",e.fontWeightRegular+""),e.fontWeightMedium&&t.set("font-weight-medium",e.fontWeightMedium+""),e.fontWeightSemiBold&&t.set("font-weight-semibold",e.fontWeightSemiBold+""),e.fontWeightBold&&t.set("font-weight-bold",e.fontWeightBold+"");const n=["h1","h2","h3","h4","h5","h6"];for(const a of n){const n=e[a];n&&(n.fontSize&&t.set(`typography-${a}-font-size`,n.fontSize+""),n.fontWeight&&t.set(`typography-${a}-font-weight`,n.fontWeight+""),n.lineHeight&&t.set(`typography-${a}-line-height`,n.lineHeight+""))}e.body1&&(e.body1.fontSize&&t.set("typography-body1-font-size",e.body1.fontSize+""),e.body1.fontWeight&&t.set("typography-body1-font-weight",e.body1.fontWeight+""),e.body1.lineHeight&&t.set("typography-body1-line-height",e.body1.lineHeight+"")),e.body2&&(e.body2.fontSize&&t.set("typography-body2-font-size",e.body2.fontSize+""),e.body2.fontWeight&&t.set("typography-body2-font-weight",e.body2.fontWeight+""),e.body2.lineHeight&&t.set("typography-body2-line-height",e.body2.lineHeight+""))}extractSpacing(e,t){for(let n=0;12>=n;n++)try{const a=e(n);t.set("spacing-"+n,a)}catch{}}extractBreakpoints(e,t){const n=["xs","sm","md","lg","xl"];for(const a of n){const n=e.values[a];void 0!==n&&t.set("breakpoint-"+a,n+"px")}}extractShadows(e,t){const n=["xs","sm","md","lg","xl"];for(const a of n){const n=e[a];n&&t.set("shadow-"+a,n)}}extractTransitions(e,t){if(e.duration){const n=["shortest","shorter","short","standard","complex"];for(const a of n){const n=e.duration[a];void 0!==n&&t.set("transition-duration-"+a,n+"ms")}}if(e.easing){const n=["easeInOut","easeOut","easeIn","sharp"];for(const a of n){const n=e.easing[a];n&&t.set("transition-easing-"+a,n)}}}extractZIndex(e,t){const n=["mobileStepper","speedDial","appBar","drawer","modal","snackbar","tooltip"];for(const a of n){const n=e[a];void 0!==n&&t.set("z-index-"+a,n+"")}}extractBorderRadius(e,t){const n=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const a of n){const n=e[a];void 0!==n&&t.set("border-radius-"+a,n+"")}}extractCustom(e,t){for(const[n,a]of Object.entries(e))null!=a&&t.set("custom-"+n,a+"")}formatCSS(e){const{selector:t,prefix:n,includeComments:a,minify:r}=this.options,i=r?"":" ",o=r?"":"\n",s=r?"":" ";let l="";a&&!r&&(l+="/* Atomix Theme CSS Variables */"+o,l+=`/* Generated from theme configuration */${o}${o}`),l+=`${t}${s}{${o}`;for(const[c,d]of e.entries())l+=`${i}--${n}-${this.formatPropertyName(c)}:${s}${d};${o}`;return l+="}"+o,l}formatPropertyName(e){return this.options.formatProperty?this.options.formatProperty(e.split("-"),e):e}}class Gi{constructor(e={}){this.options={moduleName:e.moduleName||"Theme",includeComments:e.includeComments??!0,exportStyle:e.exportStyle||"named",includeAugmentation:e.includeAugmentation??!1}}generate(e){let t="";return this.options.includeComments&&(t+=this.generateHeader()),t+=this.generateImports(),t+=this.generateThemeInterface(e),this.options.includeAugmentation&&(t+=this.generateAugmentation()),t}generateHeader(){return`/**\n * Generated Theme Types\n * \n * Auto-generated TypeScript definitions for ${this.options.moduleName}\n * Do not edit this file directly.\n */\n\n`}generateImports(){return"import type { Theme as BaseTheme } from '@shohojdhara/atomix/theme';\n\n"}generateThemeInterface(e){let t="";return this.options.includeComments&&(t+=`/**\n * ${e.name||"Custom"} Theme Interface\n */\n`),t+=`export interface ${this.options.moduleName} extends BaseTheme {\n`,t+=` name: '${e.name}';\n`,e.class&&(t+=` class: '${e.class}';\n`),t+=this.generatePaletteTypes(e.palette),t+=this.generateTypographyTypes(e.typography),Object.keys(e.custom).length>0&&(t+=this.generateCustomTypes(e.custom)),t+="}\n\n","default"!==this.options.exportStyle&&"both"!==this.options.exportStyle||(t+=`declare const theme: ${this.options.moduleName};\n`,t+="export default theme;\n\n"),"named"!==this.options.exportStyle&&"both"!==this.options.exportStyle||(t+=`export type { ${this.options.moduleName} };\n`),t}generatePaletteTypes(e){let t=" palette: {\n";const n=["primary","secondary","error","warning","info","success"];for(const a of n){const n=e[a];n&&(t+=` ${a}: {\n`,t+=` main: '${n.main}';\n`,n.light&&(t+=` light: '${n.light}';\n`),n.dark&&(t+=` dark: '${n.dark}';\n`),n.contrastText&&(t+=` contrastText: '${n.contrastText}';\n`),t+=" };\n")}return e.background&&(t+=" background: {\n",t+=` default: '${e.background.default}';\n`,t+=` paper: '${e.background.paper}';\n`,t+=` subtle: '${e.background.subtle}';\n`,t+=" };\n"),e.text&&(t+=" text: {\n",t+=` primary: '${e.text.primary}';\n`,t+=` secondary: '${e.text.secondary}';\n`,t+=` disabled: '${e.text.disabled}';\n`,t+=" };\n"),t+=" };\n",t}generateTypographyTypes(e){let t=" typography: {\n";return t+=` fontFamily: '${e.fontFamily}';\n`,t+=` fontSize: ${e.fontSize};\n`,e.fontWeightLight&&(t+=` fontWeightLight: ${e.fontWeightLight};\n`),e.fontWeightRegular&&(t+=` fontWeightRegular: ${e.fontWeightRegular};\n`),e.fontWeightMedium&&(t+=` fontWeightMedium: ${e.fontWeightMedium};\n`),e.fontWeightSemiBold&&(t+=` fontWeightSemiBold: ${e.fontWeightSemiBold};\n`),e.fontWeightBold&&(t+=` fontWeightBold: ${e.fontWeightBold};\n`),t+=" };\n",t}generateCustomTypes(e){let t=" custom: {\n";for(const[n,a]of Object.entries(e))t+=` ${n}: ${"string"==typeof a?`'${a}'`:typeof a};\n`;return t+=" };\n",t}generateAugmentation(){return`\ndeclare module '@shohojdhara/atomix/theme' {\n interface ThemeCustomProperties {\n ${this.options.moduleName}: ${this.options.moduleName};\n }\n}\n`}}class Vi{constructor(e={}){this.options={includeExamples:e.includeExamples??!0,includeComments:e.includeComments??!0,format:e.format||"typescript",includeBuild:e.includeBuild??!0,includeRuntime:e.includeRuntime??!0}}generate(){let e="";return this.options.includeComments&&(e+=this.generateHeader()),"typescript"===this.options.format&&(e+=this.generateTypeScriptImports()),e+=this.generateConfigObject(),"typescript"===this.options.format&&(e+=this.generateTypeScriptExport()),e}generateHeader(){return this.options.format,"json"===this.options.format?"":"/**\n * Atomix Theme Configuration\n * \n * Configure themes, build settings, and runtime behavior\n */\n\n"}generateTypeScriptImports(){return"import type { ThemeConfig } from '@shohojdhara/atomix/theme/config';\nimport { createTheme } from '@shohojdhara/atomix/theme';\n\n"}generateConfigObject(){const e="typescript"===this.options.format,t="json"===this.options.format;let n="";return n+=e?"const config: ThemeConfig = {\n":t?"{\n":"const config = {\n",n+=" themes: {\n",this.options.includeExamples?n+=this.generateExampleThemes():this.options.includeComments&&!t&&(n+=" // Add your themes here\n"),n+=" },\n\n",this.options.includeBuild&&(n+=this.generateBuildConfig()),this.options.includeRuntime&&(n+=this.generateRuntimeConfig()),n+=this.generateIntegrationConfig(),n+="};\n\n",n}generateExampleThemes(){const e="json"===this.options.format;let t="";return this.options.includeComments&&!e&&(t+=" // CSS Theme Example\n"),t+=" 'my-theme': {\n type: 'css',\n name: 'My Theme',\n description: 'A custom theme for my application',\n author: 'Your Name',\n version: '1.0.0',\n tags: ['custom', 'light'],\n supportsDarkMode: true,\n status: 'stable',\n color: '#7AFFD7',\n },\n\n",this.options.includeComments&&!e&&(t+=" // JS Theme Example\n"),"typescript"===this.options.format&&(t+=" 'my-js-theme': {\n type: 'js',\n name: 'My JS Theme',\n description: 'A programmatically created theme',\n author: 'Your Name',\n version: '1.0.0',\n tags: ['custom', 'js'],\n status: 'experimental',\n createTheme: () => createTheme({\n name: 'My JS Theme',\n palette: {\n primary: { main: '#7AFFD7' },\n secondary: { main: '#FF5733' },\n },\n typography: {\n fontFamily: 'Inter, sans-serif',\n },\n }),\n },\n\n"),t}generateBuildConfig(){const e="json"===this.options.format;let t="";return this.options.includeComments&&!e&&(t+=" // Build configuration\n"),t+=" build: {\n output: {\n directory: 'themes',\n formats: {\n expanded: '.css',\n compressed: '.min.css',\n },\n },\n sass: {\n style: 'expanded',\n sourceMap: true,\n loadPaths: ['src'],\n },\n },\n\n",t}generateRuntimeConfig(){const e="json"===this.options.format;let t="";return this.options.includeComments&&!e&&(t+=" // Runtime configuration\n"),t+=" runtime: {\n basePath: '/themes',\n cdnPath: null,\n preload: ['my-theme'],\n lazy: true,\n defaultTheme: 'my-theme',\n storageKey: 'atomix-theme',\n dataAttribute: 'data-theme',\n enablePersistence: true,\n useMinified: process.env.NODE_ENV === 'production',\n },\n\n",t}generateIntegrationConfig(){const e="json"===this.options.format;let t="";return this.options.includeComments&&!e&&(t+=" // Integration configuration\n"),t+=" integration: {\n cssVariables: {\n colorMode: '--color-mode',\n },\n classNames: {\n theme: 'data-theme',\n colorMode: 'data-color-mode',\n },\n },\n\n",t}generateTypeScriptExport(){return"export default config;\n"}}function Hi(e={}){return new Vi(e).generate()}class Wi{constructor(){this.commands=new Map,this.registerDefaultCommands()}registerDefaultCommands(){this.register({name:"init",description:"Initialize theme configuration",options:{"--format":"Output format (typescript, javascript, json)","--examples":"Include example themes"},handler:this.handleInit.bind(this)}),this.register({name:"validate",description:"Validate theme configuration",handler:this.handleValidate.bind(this)}),this.register({name:"build",description:"Build theme CSS files",options:{"--output":"Output directory","--minify":"Minify output"},handler:this.handleBuild.bind(this)}),this.register({name:"types",description:"Generate TypeScript types",options:{"--output":"Output file","--module":"Module name"},handler:this.handleTypes.bind(this)}),this.register({name:"help",description:"Show help information",handler:this.handleHelp.bind(this)})}register(e){this.commands.set(e.name,e)}async run(e){const[t,...n]=e;if(!t)return void this.handleHelp([],{});const a=this.commands.get(t);a||process.exit(1);try{const{args:e,options:t}=this.parseArgs(n);await a.handler(e,t)}catch(r){process.exit(1)}}parseArgs(e){const t=[],n={};for(let a=0;a<e.length;a++){const r=e[a];if(r?.startsWith("--")){const t=r.slice(2),i=e[a+1];i&&!i.startsWith("--")?(n[t]=i,a++):n[t]=!0}else r&&t.push(r)}return{args:t,options:n}}handleInit(e,t){Hi({format:t.format||"typescript",includeExamples:!1!==t.examples,includeComments:!0})}handleValidate(e,t){try{const e=_r(Br());e.valid?e.warnings.length>0&&e.warnings.forEach((e=>{})):(e.errors.forEach((e=>{})),e.warnings.length>0&&e.warnings.forEach((e=>{})),process.exit(1))}catch(n){process.exit(1)}}handleBuild(e,t){try{Br()}catch(n){process.exit(1)}}handleTypes(e,t){try{Br(),t.module}catch(n){process.exit(1)}}handleHelp(e,t){for(const[n,a]of this.commands.entries())if(a.options)for(const[e,t]of Object.entries(a.options));}}function Yi(){return new Wi}const Ki={enabled:!0,trackPerformance:!0,trackErrors:!0,bufferSize:100,flushInterval:5e3};class ji{constructor(e={}){this.events=[],this.metrics=[],this.flushTimer=null,this.logger=Mr(),this.config={...Ki,...e},this.config.enabled&&this.startFlushTimer()}trackThemeLoad(e,t){if(!this.config.enabled)return;const n={type:"theme_load",timestamp:Date.now(),themeName:e,data:t?{loadTime:t}:void 0};this.addEvent(n),void 0!==t&&this.trackPerformance("theme_load_time",t,"ms")}trackThemeSwitch(e,t,n){if(!this.config.enabled)return;const a={type:"theme_switch",timestamp:Date.now(),themeName:t,data:{fromTheme:e,toTheme:t,...n?{switchTime:n}:{}}};this.addEvent(a),void 0!==n&&this.trackPerformance("theme_switch_time",n,"ms")}trackError(e,t){if(!this.config.enabled||!this.config.trackErrors)return;const n={type:"theme_error",timestamp:Date.now(),themeName:e,data:{error:t instanceof Error?t.message:t,stack:t instanceof Error?t.stack:void 0}};this.addEvent(n)}trackThemeRevert(e,t,n){if(!this.config.enabled||!this.config.trackErrors)return;const a={type:"theme_revert",timestamp:Date.now(),themeName:e,data:{attemptedTheme:e,revertedToTheme:t,error:n.message,stack:n.stack}};this.addEvent(a)}trackCSSLoad(e,t,n){if(!this.config.enabled)return;const a={type:"css_load",timestamp:Date.now(),themeName:e,data:{loadTime:t,...n?{size:n}:{}}};this.addEvent(a),this.trackPerformance("css_load_time",t,"ms"),void 0!==n&&this.trackPerformance("css_size",n,"bytes")}trackPerformance(e,t,n="ms"){if(!this.config.enabled||!this.config.trackPerformance)return;const a={name:e,value:t,unit:n,timestamp:Date.now()};if(this.metrics.push(a),this.metrics.length>this.config.bufferSize&&this.metrics.shift(),this.config.onPerformance)try{this.config.onPerformance(a)}catch(r){this.logger.error("Error in performance handler",r instanceof Error?r:Error(r+""),{metric:a})}}addEvent(e){if(this.events.push(e),this.events.length>this.config.bufferSize&&this.events.shift(),this.config.onEvent)try{this.config.onEvent(e)}catch(t){this.logger.error("Error in event handler",t instanceof Error?t:Error(t+""),{event:e})}}getEvents(){return[...this.events]}getMetrics(){return[...this.metrics]}getEventsByType(e){return this.events.filter((t=>t.type===e))}getMetricsByName(e){return this.metrics.filter((t=>t.name===e))}getAverageMetric(e){const t=this.getMetricsByName(e);return 0===t.length?null:t.reduce(((e,t)=>e+t.value),0)/t.length}clear(){this.events=[],this.metrics=[]}startFlushTimer(){this.flushTimer||(this.flushTimer=setInterval((()=>{}),this.config.flushInterval))}stopFlushTimer(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null)}enable(){this.config.enabled=!0,this.startFlushTimer()}disable(){this.config.enabled=!1,this.stopFlushTimer()}destroy(){this.stopFlushTimer(),this.clear()}}function $i(e){return new ji(e)}let Qi=null;class Zi{constructor(e){this.overrides={},this.theme=null,e&&(this.theme=e)}setTheme(e){this.theme=e}getThemeWithOverrides(){return this.theme?this.applyOverrides(this.theme):null}addOverride(e,t,n={}){const{merge:a=!0}=n;a&&this.overrides[e]?this.overrides[e]={...this.overrides[e],...t,styleOverrides:{...this.overrides[e].styleOverrides,...t.styleOverrides},defaultProps:{...this.overrides[e].defaultProps,...t.defaultProps},classOverrides:{...this.overrides[e].classOverrides,...t.classOverrides},cssVariableOverrides:{...this.overrides[e].cssVariableOverrides,...t.cssVariableOverrides}}:this.overrides[e]={component:e,...t}}removeOverride(e){delete this.overrides[e]}getOverride(e){return this.overrides[e]}getAllOverrides(){return{...this.overrides}}clearOverrides(){this.overrides={}}applyOverrides(e){return 0===Object.keys(this.overrides).length?e:ki({...e,custom:{...e.custom,componentOverrides:this.overrides}})}getComponentCSSVariables(e){const t=this.overrides[e];if(!t||!t.cssVariableOverrides)return{};const n={};for(const[a,r]of Object.entries(t.cssVariableOverrides))n[`--atomix-${e}-${a}`]=r;return n}getAllCSSVariables(){const e={};for(const t of Object.keys(this.overrides)){const n=this.getComponentCSSVariables(t);Object.assign(e,n)}return e}exportOverrides(){return JSON.stringify(this.overrides,null,2)}importOverrides(e,t={}){try{const n=JSON.parse(e),{merge:a=!1}=t;this.overrides=a?Pi(this.overrides,n):n}catch(n){throw Error("Failed to import overrides: "+(n instanceof Error?n.message:n+""))}}}class qi{constructor(e){this.config=null,this.baseTheme=null,e&&(this.baseTheme=e)}setBaseTheme(e){this.baseTheme=e}configure(e){this.config=e,this.applyWhiteLabel()}getWhiteLabeledTheme(){return this.baseTheme&&this.config?ki({...this.baseTheme,name:this.config.brand.name,...this.config.themeOverrides,palette:{...this.baseTheme.palette,...this.config.brand.primaryColor&&{primary:{...this.baseTheme.palette.primary,main:this.config.brand.primaryColor}},...this.config.brand.secondaryColor&&{secondary:{...this.baseTheme.palette.secondary,main:this.config.brand.secondaryColor}},...this.config.themeOverrides?.palette},typography:{...this.baseTheme.typography,...this.config.brand.fonts?.primary&&{fontFamily:this.config.brand.fonts.primary},...this.config.themeOverrides?.typography},custom:{...this.baseTheme.custom,whiteLabel:{brand:this.config.brand,componentOverrides:this.config.componentOverrides,cssVariableOverrides:this.config.cssVariableOverrides}}}):this.baseTheme}applyWhiteLabel(){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const{brand:e}=this.config;e.logo&&this.applyLogo(e.logo),e.favicon&&this.applyFavicon(e.favicon),e.metaTags&&this.applyMetaTags(e.metaTags),e.customCSS&&this.applyCustomCSS(e.customCSS),this.config.cssVariableOverrides&&this.applyCSSVariables(this.config.cssVariableOverrides)}applyLogo(e,t,n){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;let a=n||(t?document.querySelector(t):null);if(a||(a=document.querySelector("[data-whitelabel-logo]")),!a){a=document.createElement("img"),a.setAttribute("data-whitelabel-logo","true"),a.style.maxHeight="40px",a.style.maxWidth="200px";const e=t?document.querySelector(t):document.querySelector('header, [role="banner"], .navbar, .header');e?e.insertBefore(a,e.firstChild):document.body.insertBefore(a,document.body.firstChild)}a.src=e,a.alt=this.config?.brand.name||"Logo"}applyFavicon(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]').forEach((e=>e.remove()));const n=document.createElement("link");n.rel="icon",n.type="image/x-icon",n.href=e;const a=t?document.querySelector(t):document.head;a&&a.appendChild(n)}applyMetaTags(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const n=t?document.querySelector(t):document.head;if(n)for(const[a,r]of Object.entries(e)){let e=document.querySelector(`meta[name="${a}"]`);e||(e=document.createElement("meta"),e.name=a,n.appendChild(e)),e.content=r}}applyCustomCSS(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const n=t||"whitelabel-custom-css",a=document.getElementById(n);a&&a.remove();const r=document.createElement("style");r.id=n,r.textContent=e,document.head.appendChild(r)}applyCSSVariables(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;let n;if("string"==typeof t){const e=document.querySelector(t);if(!(e&&e instanceof HTMLElement))return;n=e}else n=t instanceof HTMLElement?t:document.documentElement;for(const[a,r]of Object.entries(e))n.style.setProperty(a.startsWith("--")?a:"--"+a,r)}removeWhiteLabel(){const e=document.querySelector("[data-whitelabel-logo]");e?.remove();const t=document.getElementById("whitelabel-custom-css");if(t?.remove(),this.config?.cssVariableOverrides){const e=document.documentElement;for(const t of Object.keys(this.config.cssVariableOverrides))e.style.removeProperty(t.startsWith("--")?t:"--"+t)}this.config=null}getConfig(){return this.config}exportConfig(){if(!this.config)throw Error("No white label configuration to export");return JSON.stringify(this.config,null,2)}importConfig(e){try{const t=JSON.parse(e);this.configure(t)}catch(t){throw Error("Failed to import white label configuration: "+(t instanceof Error?t.message:t+""))}}}var Xi=Object.freeze({__proto__:null,CSSGenerator:Ui,CSS_EXTENSIONS:{expanded:".css",compressed:".min.css"},ComponentOverrideManager:Zi,ConfigGenerator:Vi,DEFAULT_ANALYTICS_CONFIG:{enabled:!0,trackPerformance:!0,trackErrors:!0,bufferSize:100,flushInterval:5e3},DEFAULT_BASE_PATH:or,DEFAULT_BUILD_OUTPUT_DIR:gr,DEFAULT_CACHE_CONFIG:lr,DEFAULT_CONFIG_PATH:hr,DEFAULT_DATA_ATTRIBUTE:ir,DEFAULT_ENGINE_CACHE_CONFIG:cr,DEFAULT_INTEGRATION_CLASS_NAMES:mr,DEFAULT_INTEGRATION_CSS_VARIABLES:pr,DEFAULT_LOGGER_CONFIG:ur,DEFAULT_RTL_CONFIG:{enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1},DEFAULT_SASS_CONFIG:fr,DEFAULT_STORAGE_KEY:rr,DEFAULT_STYLE_ID:sr,DEFAULT_THEME_METADATA:{status:"stable",supportsDarkMode:!1},ENV_DEFAULTS:{development:{useMinified:!1,lazy:!1,enableSourceMaps:!0},production:{useMinified:!0,lazy:!0,enableSourceMaps:!1},test:{enablePersistence:!1,preload:[]}},get LogLevel(){return Ir},RTLManager:fi,RTL_LOCALES:["ar","he","fa","ur","yi","ku","sd"],THEME_LINK_ID_PREFIX:dr,ThemeAnalytics:ji,ThemeCLI:Wi,ThemeCache:Ur,ThemeContext:vi,ThemeEngine:ui,ThemeError:Or,ThemeErrorBoundary:class extends b{constructor(e){super(e),this.logger=Mr(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=e instanceof Or?e:new Or(e.message,xr.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",n,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):e(Ai,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}},get ThemeErrorCode(){return xr},ThemeInspector:({theme:n,showValidation:a=!0,showCSSVariables:i=!0,showStructure:o=!0,className:s,style:l})=>{const[c,h]=r("overview"),[u,m]=r(new Set(["palette"])),p=d((()=>a?(new Zr).validate(n):null),[n,a]),g=d((()=>i?ci(n,{selector:":root",prefix:"atomix"}):""),[n,i]),f=(n,a=0)=>null==n?e("span",{className:"value-null",children:"null"}):"string"==typeof n?t("span",{className:"value-string",children:['"',n,'"']}):"number"==typeof n?e("span",{className:"value-number",children:n}):"boolean"==typeof n?e("span",{className:"value-boolean",children:n+""}):"function"==typeof n?e("span",{className:"value-function",children:"function"}):Array.isArray(n)?t("div",{className:"value-array",children:["[",n.map(((e,r)=>t("div",{className:"array-item",children:[f(e,a+1),r<n.length-1&&","]},r))),"]"]}):"object"==typeof n?t("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(n).map((([e,n])=>t("div",{className:"object-property",children:[t("span",{className:"property-key",children:[e,":"]})," ",f(n,a+1)]},e))),"}"]}):e("span",{children:n+""});return t("div",{className:"atomix-theme-inspector "+(s||""),style:l,children:[t("div",{className:"inspector-tabs",children:[e("button",{className:"tab "+("overview"===c?"active":""),onClick:()=>h("overview"),children:"Overview"}),a&&t("button",{className:"tab "+("validation"===c?"active":""),onClick:()=>h("validation"),children:["Validation",p&&!p.valid&&e("span",{className:"tab-badge error",children:p.errors.length})]}),i&&e("button",{className:"tab "+("css"===c?"active":""),onClick:()=>h("css"),children:"CSS Variables"}),o&&e("button",{className:"tab "+("structure"===c?"active":""),onClick:()=>h("structure"),children:"Structure"})]}),t("div",{className:"inspector-content",children:["overview"===c&&t("div",{className:"inspector-overview",children:[t("div",{className:"theme-metadata",children:[e("h3",{children:"Theme Information"}),e("table",{children:t("tbody",{children:[t("tr",{children:[e("td",{children:e("strong",{children:"Name:"})}),e("td",{children:n.name})]}),n.description&&t("tr",{children:[e("td",{children:e("strong",{children:"Description:"})}),e("td",{children:n.description})]}),n.author&&t("tr",{children:[e("td",{children:e("strong",{children:"Author:"})}),e("td",{children:n.author})]}),n.version&&t("tr",{children:[e("td",{children:e("strong",{children:"Version:"})}),e("td",{children:n.version})]}),n.status&&t("tr",{children:[e("td",{children:e("strong",{children:"Status:"})}),e("td",{children:e("span",{className:"status-badge status-"+n.status,children:n.status})})]}),t("tr",{children:[e("td",{children:e("strong",{children:"Dark Mode:"})}),e("td",{children:n.supportsDarkMode?"Yes":"No"})]}),n.tags&&n.tags.length>0&&t("tr",{children:[e("td",{children:e("strong",{children:"Tags:"})}),e("td",{children:n.tags.map((t=>e("span",{className:"tag",children:t},t)))})]})]})})]}),t("div",{className:"theme-stats",children:[e("h3",{children:"Statistics"}),t("div",{className:"stats-grid",children:[t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.palette).length}),e("div",{className:"stat-label",children:"Palette Colors"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.typography).length}),e("div",{className:"stat-label",children:"Typography Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.shadows).length}),e("div",{className:"stat-label",children:"Shadow Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.custom).length}),e("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===c&&(p?t("div",{className:"inspector-validation",children:[e("div",{className:"validation-status "+(p.valid?"valid":"invalid"),children:p.valid?"✅ Theme is valid":"❌ Theme has issues"}),p.errors.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Errors"}),e("ul",{className:"validation-list error-list",children:p.errors.map(((t,n)=>e("li",{children:t},n)))})]}),p.warnings.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Warnings"}),e("ul",{className:"validation-list warning-list",children:p.warnings.map(((t,n)=>e("li",{children:t},n)))})]}),p.a11yIssues.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Accessibility Issues"}),e("ul",{className:"validation-list a11y-list",children:p.a11yIssues.map(((n,a)=>t("li",{className:"a11y-"+n.severity,children:[t("strong",{children:[n.type,":"]})," ",n.message,n.property&&e("code",{children:n.property})]},a)))})]})]}):null),"css"===c&&t("div",{className:"inspector-css",children:[t("div",{className:"css-header",children:[e("h3",{children:"Generated CSS Variables"}),e("button",{onClick:()=>navigator.clipboard?.writeText(g),className:"copy-button",children:"Copy to Clipboard"})]}),e("pre",{className:"css-code",children:e("code",{children:g})})]}),"structure"===c&&t("div",{className:"inspector-structure",children:[e("h3",{children:"Theme Structure"}),e("div",{className:"structure-tree",children:Object.entries(n).map((([n,a])=>{if("__isJSTheme"===n)return null;const r=u.has(n),i="object"==typeof a&&null!==a&&!Array.isArray(a);return t("div",{className:"structure-node",children:[t("div",{className:"structure-header",onClick:()=>i&&(e=>{const t=new Set(u);t.has(e)?t.delete(e):t.add(e),m(t)})(n),children:[i&&e("span",{className:"expand-icon "+(r?"expanded":""),children:"▶"}),e("span",{className:"property-name",children:n}),e("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),i&&r&&e("div",{className:"structure-children",children:f(a)}),!i&&e("div",{className:"structure-value",children:f(a)})]},n)}))})]})]}),e("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n "})]})},ThemeLogger:Rr,ThemeManager:Ei,ThemePreview:({theme:n,showDetails:a=!0,showPalette:i=!0,showTypography:s=!0,showSpacing:l=!1,children:c,className:d,style:h})=>{const[u,m]=r("");return o((()=>{const e=ci(n,{selector:":root",prefix:"atomix-preview"});m(e)}),[n]),t("div",{className:"atomix-theme-preview "+(d||""),style:h,children:[e("style",{children:u}),a&&t("div",{className:"theme-details",children:[e("h2",{children:n.name}),n.description&&e("p",{children:n.description}),n.author&&t("p",{children:[e("strong",{children:"Author:"})," ",n.author]}),n.version&&t("p",{children:[e("strong",{children:"Version:"})," ",n.version]}),n.status&&t("p",{children:[e("strong",{children:"Status:"})," ",n.status]}),n.tags&&n.tags.length>0&&t("p",{children:[e("strong",{children:"Tags:"})," ",n.tags.join(", ")]})]}),i&&t("div",{className:"theme-palette",children:[e("h3",{children:"Color Palette"}),e("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((a=>{const r=n.palette[a];return r&&"object"==typeof r&&"main"in r?t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:r.main}}),t("div",{className:"color-info",children:[e("strong",{children:a}),e("code",{children:r.main})]})]},a):null}))}),e("h4",{children:"Background"}),e("div",{className:"color-grid",children:Object.entries(n.palette.background).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))}),e("h4",{children:"Text"}),e("div",{className:"color-grid",children:Object.entries(n.palette.text).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))})]}),s&&t("div",{className:"theme-typography",children:[e("h3",{children:"Typography"}),t("div",{className:"typography-info",children:[t("p",{children:[e("strong",{children:"Font Family:"})," ",e("code",{children:n.typography.fontFamily})]}),t("p",{children:[e("strong",{children:"Base Font Size:"})," ",t("code",{children:[n.typography.fontSize,"px"]})]})]}),t("div",{className:"typography-samples",children:[e("h1",{style:{fontSize:n.typography.h1.fontSize,fontWeight:n.typography.h1.fontWeight,lineHeight:n.typography.h1.lineHeight},children:"Heading 1"}),e("h2",{style:{fontSize:n.typography.h2.fontSize,fontWeight:n.typography.h2.fontWeight,lineHeight:n.typography.h2.lineHeight},children:"Heading 2"}),e("h3",{style:{fontSize:n.typography.h3.fontSize,fontWeight:n.typography.h3.fontWeight,lineHeight:n.typography.h3.lineHeight},children:"Heading 3"}),e("p",{style:{fontSize:n.typography.body1.fontSize,fontWeight:n.typography.body1.fontWeight,lineHeight:n.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),e("p",{style:{fontSize:n.typography.body2.fontSize,fontWeight:n.typography.body2.fontWeight,lineHeight:n.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),l&&t("div",{className:"theme-spacing",children:[e("h3",{children:"Spacing"}),e("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((a=>t("div",{className:"spacing-item",children:[e("div",{className:"spacing-box",style:{width:n.spacing(a),height:n.spacing(a),backgroundColor:n.palette.primary.main}}),t("code",{children:[a," = ",n.spacing(a)]})]},a)))})]}),t("div",{className:"theme-components",children:[e("h3",{children:"Sample Components"}),t("div",{className:"component-group",children:[e("h4",{children:"Buttons"}),t("div",{className:"button-group",children:[e("button",{style:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,border:"none",padding:n.spacing(1,2),borderRadius:n.borderRadius.base,cursor:"pointer"},children:"Primary Button"}),e("button",{style:{backgroundColor:n.palette.secondary.main,color:n.palette.secondary.contrastText,border:"none",padding:n.spacing(1,2),borderRadius:n.borderRadius.base,cursor:"pointer"},children:"Secondary Button"}),e("button",{style:{backgroundColor:"transparent",color:n.palette.primary.main,border:"1px solid "+n.palette.primary.main,padding:n.spacing(1,2),borderRadius:n.borderRadius.base,cursor:"pointer"},children:"Outline Button"})]})]}),t("div",{className:"component-group",children:[e("h4",{children:"Card"}),t("div",{style:{backgroundColor:n.palette.background.paper,border:"1px solid "+n.palette.text.disabled,borderRadius:n.borderRadius.lg,padding:n.spacing(3),boxShadow:n.shadows.md,maxWidth:"300px"},children:[e("h5",{style:{margin:0,marginBottom:n.spacing(1)},children:"Card Title"}),e("p",{style:{margin:0,color:n.palette.text.secondary,fontSize:n.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),c&&t("div",{className:"theme-custom",children:[e("h3",{children:"Custom Components"}),c]}),e("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${n.typography.fontFamily};\n color: ${n.palette.text.primary};\n background-color: ${n.palette.background.default};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${n.palette.background.paper};\n border-radius: ${n.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${n.borderRadius.base};\n border: 1px solid ${n.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${n.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${n.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n h3 {\n color: ${n.palette.text.primary};\n border-bottom: 2px solid ${n.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${n.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})},ThemeProvider:({children:t,defaultTheme:n,themes:a={},basePath:s="/themes",cdnPath:l=null,preload:c=[],lazy:u=!0,storageKey:m="atomix-theme",dataAttribute:p="data-theme",enablePersistence:g=!0,useMinified:f=!1,onThemeChange:S,onError:b})=>{const E=i(S),v=i(b);o((()=>{E.current=S,v.current=b}),[S,b]);const A=h((e=>{E.current?.(e)}),[]),y=h(((e,t)=>{v.current?.(e,t)}),[]),T=i(a),N=d((()=>{const e=Object.keys(a),t=Object.keys(T.current);return e.length!==t.length||e.some((e=>a[e]!==T.current[e]))?(T.current=a,a):T.current}),[a]),_=d((()=>Mr()),[]),C=d((()=>{try{return new Ei({themes:N,defaultTheme:n,basePath:s,cdnPath:l,preload:c,lazy:u,storageKey:m,dataAttribute:p,enablePersistence:g,useMinified:f,onThemeChange:A,onError:y})}catch(k){return _.error("Failed to create ThemeManager",k instanceof Error?k:Error(k+""),{themes:Object.keys(N),defaultTheme:n}),new Ei({themes:{},defaultTheme:n,basePath:s,storageKey:m,enablePersistence:!1})}}),[N,n,s,l,c,u,m,p,g,f,A,y,_]),[L,x]=r((()=>"string"==typeof n?n:Qr(n)?n.name||"js-theme":"")),[I,O]=r((()=>Qr(n)?n:null)),[R,w]=r((()=>C.getAvailableThemes())),[M,D]=r(!1),[k,B]=r(null),P=i(),F=i(),z=i(),U=i(!1);o((()=>{let e=!0;P.current=()=>{e&&(x((e=>{const t=C.getTheme();return t===e?e:t})),O((e=>{const t=C.getActiveTheme();return t===e?e:t||e?t:e})),w((e=>{const t=C.getAvailableThemes();return t.length!==e.length||t.some(((t,n)=>t.name!==e[n]?.name||t.class!==e[n]?.class))?t:e})))},F.current=()=>{e&&(x((e=>{const t=C.getTheme();return t===e?e:t})),O((e=>{const t=C.getActiveTheme();return t===e?e:t||e?t:e})))},z.current=t=>{e&&(B(t),D(!1))};const t=()=>P.current?.(),n=()=>F.current?.(),a=e=>z.current?.(e);return U.current||(U.current=!0,x((e=>{const t=C.getTheme();return t!==e?t:e})),O((e=>{const t=C.getActiveTheme();return t!==e?t:e})),w((e=>{const t=C.getAvailableThemes();return t.length!==e.length||t.some(((t,n)=>t.name!==e[n]?.name||t.class!==e[n]?.class))?t:e}))),C.on("themeChange",t),C.on("themeLoad",n),C.on("themeError",a),()=>{e=!1,C.off("themeChange",t),C.off("themeLoad",n),C.off("themeError",a)}}),[C]),o((()=>()=>{C.destroy()}),[C]);const G=d((()=>({theme:L,activeTheme:I,setTheme:async(e,t)=>{D(!0),B(null);try{await C.setTheme(e,t)}catch(n){throw B(n instanceof Error?n:Error(n+"")),n}finally{D(!1)}},availableThemes:R,isLoading:M,error:k,isThemeLoaded:e=>C.isThemeLoaded(e),preloadTheme:async e=>{D(!0);try{await C.preloadTheme(e)}catch(t){B(t instanceof Error?t:Error(t+""))}finally{D(!1)}},themeManager:C})),[L,I,R,M,k,C]);return e(vi.Provider,{value:G,children:t})},ThemeRegistry:Fr,ThemeStudio:({initialTheme:n,onThemeChange:i,onSave:o,showPreview:s=!0,showCSS:l=!0,showCode:c=!1,className:u=""})=>{const m=d((()=>Mr()),[]),[p,g]=r((()=>n||{name:"Custom Theme",palette:{primary:{main:"#7AFFD7"},secondary:{main:"#FF5733"}}})),f=d((()=>{try{return ki(p)}catch(e){return m.error("Error creating theme",e instanceof Error?e:Error(e+""),{themeOptions:p}),ki({name:"Error Theme"})}}),[p,m]),S=d((()=>{try{return ci(f,{selector:":root",prefix:"atomix"})}catch(e){return m.error("Error generating CSS",e instanceof Error?e:Error(e+""),{theme:f.name}),""}}),[f,m]);a.useEffect((()=>{i?.(f)}),[f,i]);const b=h(((e,t,n)=>{g((a=>({...a,palette:{...a.palette,[e]:{..."object"==typeof a.palette?.[e]&&null!==a.palette[e]?a.palette[e]:"string"==typeof a.palette?.[e]?{main:a.palette[e]}:{},[t]:n}}})))}),[]),E=h(((e,t)=>{g((n=>({...n,typography:{...n.typography,[e]:t}})))}),[]),v=h((()=>{o?.(f)}),[f,o]);return t("div",{className:"theme-studio "+u,style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[t("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",borderBottom:"1px solid #e0e0e0"},children:[e("h2",{style:{margin:0},children:"Theme Studio"}),e("button",{onClick:v,style:{padding:"0.5rem 1rem",backgroundColor:f.palette.primary.main,color:f.palette.primary.contrastText,border:"none",borderRadius:"4px",cursor:"pointer"},children:"Save Theme"})]}),t("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",padding:"1rem"},children:[t("div",{style:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem"},children:[e("h3",{style:{marginTop:0},children:"Color Palette"}),["primary","secondary","error","warning","info","success"].map((n=>{const a=f.palette[n];return t("div",{style:{marginBottom:"1rem"},children:[e("label",{style:{display:"block",marginBottom:"0.5rem",fontWeight:"bold",textTransform:"capitalize"},children:n}),e("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:["main","light","dark"].map((r=>t("div",{style:{flex:"1",minWidth:"100px"},children:[e("label",{style:{display:"block",fontSize:"0.875rem",marginBottom:"0.25rem",textTransform:"capitalize"},children:r}),t("div",{style:{display:"flex",gap:"0.25rem",alignItems:"center"},children:[e("input",{type:"color",value:a[r]||"#000000",onChange:e=>b(n,r,e.target.value),style:{width:"40px",height:"32px",border:"1px solid #ccc",borderRadius:"4px",cursor:"pointer"}}),e("input",{type:"text",value:a[r]||"",onChange:e=>b(n,r,e.target.value),style:{flex:1,padding:"0.25rem",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"#000000"})]})]},r)))})]},n)}))]}),t("div",{style:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem"},children:[e("h3",{style:{marginTop:0},children:"Typography"}),t("div",{style:{marginBottom:"1rem"},children:[e("label",{style:{display:"block",marginBottom:"0.5rem",fontWeight:"bold"},children:"Font Family"}),e("input",{type:"text",value:f.typography.fontFamily,onChange:e=>E("fontFamily",e.target.value),style:{width:"100%",padding:"0.5rem",border:"1px solid #ccc",borderRadius:"4px"}})]}),t("div",{style:{marginBottom:"1rem"},children:[e("label",{style:{display:"block",marginBottom:"0.5rem",fontWeight:"bold"},children:"Base Font Size"}),e("input",{type:"number",value:f.typography.fontSize,onChange:e=>E("fontSize",Number(e.target.value)),style:{width:"100%",padding:"0.5rem",border:"1px solid #ccc",borderRadius:"4px"},min:"10",max:"24"})]})]})]}),s&&t("div",{style:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",margin:"1rem"},children:[e("h3",{style:{marginTop:0},children:"Preview"}),t("div",{style:{padding:"1rem",backgroundColor:f.palette.background.paper,color:f.palette.text.primary,borderRadius:"8px"},children:[e("h1",{style:{color:f.palette.primary.main,margin:"0 0 1rem 0"},children:"Heading 1"}),e("p",{style:{margin:"0 0 1rem 0"},children:"This is a preview of your theme. The colors, typography, and spacing will be applied throughout your application."}),t("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[e("button",{style:{padding:"0.5rem 1rem",backgroundColor:f.palette.primary.main,color:f.palette.primary.contrastText,border:"none",borderRadius:"4px",cursor:"pointer"},children:"Primary Button"}),e("button",{style:{padding:"0.5rem 1rem",backgroundColor:f.palette.secondary.main,color:f.palette.secondary.contrastText,border:"none",borderRadius:"4px",cursor:"pointer"},children:"Secondary Button"})]})]})]}),l&&t("div",{style:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",margin:"1rem"},children:[e("h3",{style:{marginTop:0},children:"Generated CSS"}),e("pre",{style:{backgroundColor:"#f5f5f5",padding:"1rem",borderRadius:"4px",overflow:"auto",maxHeight:"300px",fontSize:"0.875rem",fontFamily:"monospace"},children:S})]}),c&&t("div",{style:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",margin:"1rem"},children:[e("h3",{style:{marginTop:0},children:"Theme Code"}),e("pre",{style:{backgroundColor:"#f5f5f5",padding:"1rem",borderRadius:"4px",overflow:"auto",maxHeight:"300px",fontSize:"0.875rem",fontFamily:"monospace"},children:JSON.stringify(p,null,2)})]})]})},ThemeValidator:Zr,TypeGenerator:Gi,VALIDATION_THRESHOLDS:{MIN_CONTRAST_RATIO:4.5,CRITICAL_CONTRAST_RATIO:3,MIN_FONT_SIZE:12,MAX_TRANSITION_DURATION:1e4,MAX_Z_INDEX:1e4,MAX_BORDER_RADIUS:1e3,MAX_CUSTOM_PROPERTY_DEPTH:10},WhiteLabelManager:qi,alpha:jr,applyThemeAttributes:yr,breakpointBetween:function(e,t,n){return e.breakpoints.between(t,n)},breakpointDown:function(e,t){return e.breakpoints.down(t)},breakpointUp:function(e,t){return e.breakpoints.up(t)},buildThemePath:(e,t="/themes",n=!1,a=null)=>{if(!Tr(e))throw Error(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens.`);const r=`${e}${n?".min.css":".css"}`;return a?`${a.replace(/[<>"']/g,"")}/${r}`:`${t.replace(/\/$/,"").replace(/[<>"']/g,"")}/${r.replace(/^\//,"")}`},clearConfigCache:Pr,composeThemes:function(...e){const t=e.map((e=>e.__isJSTheme?zi(e):e));return ki(Fi(...t))},createCLI:Yi,createComponentOverride:function(e,t){return{component:e,...t}},createComponentOverrideManager:function(e){return new Zi(e)},createLocalStorageAdapter:Nr,createLogger:function(e){return new Rr(e)},createRTLManager:function(e){return new fi(e)},createSpacing:function(e=4){return(...t)=>0===t.length?"0px":t.map((t=>t*e+"px")).join(" ")},createTheme:ki,createThemeAnalytics:$i,createThemePreset:function(e,t){const n={minimal:{name:"Minimal",palette:{primary:{main:"#000000"},secondary:{main:"#FFFFFF"},background:{default:"#FFFFFF",paper:"#F5F5F5",subtle:"#FAFAFA"}},typography:{fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif'}},modern:{name:"Modern",palette:{primary:{main:"#7AFFD7"},secondary:{main:"#FF5733"},background:{default:"#FAFAFA",paper:"#FFFFFF",subtle:"#F5F5F5"}},typography:{fontFamily:'"Inter", "Roboto", sans-serif'}},classic:{name:"Classic",palette:{primary:{main:"#1976D2"},secondary:{main:"#DC004E"},background:{default:"#FFFFFF",paper:"#F5F5F5",subtle:"#EEEEEE"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'}},vibrant:{name:"Vibrant",palette:{primary:{main:"#FF6B6B"},secondary:{main:"#4ECDC4"},background:{default:"#FFF8F0",paper:"#FFFFFF",subtle:"#FFF0E0"}},typography:{fontFamily:'"Poppins", "Roboto", sans-serif'}}};return ki(Fi(n[e]??n.modern,t??{}))},createThemeVariants:function(e){return{light:ki({...e,name:(e.name||"Custom")+" Light",supportsDarkMode:!1}),dark:ki({...e,name:(e.name||"Custom")+" Dark",supportsDarkMode:!0,palette:{...e.palette,background:{default:"#121212",paper:"#1E1E1E",subtle:"#2A2A2A",...e.palette?.background},text:{primary:"rgba(255, 255, 255, 0.87)",secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.38)",...e.palette?.text}}})}},createTransition:function(e,t,n){const a=Array.isArray(t)?t:[t],r="number"==typeof n?.duration?n.duration:e.transitions.duration[n?.duration||"standard"],i="string"!=typeof n?.easing||n.easing.includes("(")?n?.easing||e.transitions.easing.easeInOut:e.transitions.easing[n.easing],o=n?.delay||0;return a.map((e=>`${e} ${r}ms ${i}${o?` ${o}ms`:""}`)).join(", ")},createWhiteLabelManager:function(e){return new qi(e)},darken:Kr,debounce:(e,t)=>{let n=null;return function(...a){null!==n&&clearTimeout(n),n=setTimeout((()=>{n=null,e(...a)}),t)}},deepMerge:Pi,emphasize:$r,extendTheme:function(e,t){return ki(Fi(e.__isJSTheme?zi(e):e,t))},generateCSS:function(e,t={}){return new Ui(t).generate(e)},generateCSSVariables:ci,generateConfigTemplate:Hi,generateSectionVariables:function(e,t,n={}){const{selector:a=":root",prefix:r="atomix"}=n;let i={};switch(t){case"palette":i=Jr(e.palette,r);break;case"typography":i=ei(e.typography,r);break;case"shadows":i=ti(e.shadows,r);break;case"transitions":i=ni(e.transitions,r);break;case"zIndex":i=ai(e.zIndex,r);break;case"breakpoints":i=ri(e.breakpoints,r);break;case"spacing":i=ii(e.spacing,r);break;case"borders":i=oi(e.palette,r);break;case"borderRadius":i=si(e.borderRadius,r);break;case"focusRing":i=li(e.palette,r)}return`${a} {\n${Object.entries(i).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`},generateTypes:function(e,t={}){return new Gi(t).generate(e)},getCachedConfig:function(){return Dr},getContrastRatio:Wr,getContrastText:function(e,t=3){const n=Wr("#FFFFFF",e),a=Wr("#000000",e);return t>n?t>a&&n>a?"#FFFFFF":"#000000":"#FFFFFF"},getCurrentThemeFromDOM:(e="data-theme")=>br()?null:document.body.getAttribute(e)||document.documentElement.getAttribute(e),getDirectionFromLocale:function(e){return Si(e)?"rtl":"ltr"},getGlobalAnalytics:function(){return Qi||(Qi=$i()),Qi},getLogger:Mr,getLuminance:Hr,getShadow:function(e,t){return e.shadows[t]||"none"},getSystemTheme:()=>br()?"light":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",getThemeLinkId:Er,getThemeValue:function(e,t,n){const a=t.split(".");let r=e;for(const i of a){if(!r||"object"!=typeof r||!(i in r))return n;r=r[i]}return r},getTransitionDuration:function(e,t){return e.transitions.duration[t]??300},getTransitionEasing:function(e,t){return e.transitions.easing[t]??"cubic-bezier(0.4, 0, 0.2, 1)"},getTypography:function(e,t){return e.typography[t]??{}},getZIndex:function(e,t){return e.zIndex[t]??0},hexToRgb:Gr,injectCSS:di,isBrowser:Sr,isJSTheme:Qr,isRTLLocale:Si,isServer:br,isThemeLoaded:e=>{if(br())return!1;const t=Er(e);return null!==document.getElementById(t)},isValidThemeName:Tr,lighten:Yr,loadThemeCSS:vr,loadThemeConfig:Br,mergeTheme:Fi,overrideTheme:function(e,t){const n=e.__isJSTheme?zi(e):e,a={};for(const[r,i]of Object.entries(t)){const e=r.split(".");let t=a;for(let a=0;a<e.length-1;a++){const n=e[a];if("string"!=typeof n||""===n)throw Error("Invalid override key in theme override: "+n);if("object"!=typeof t||null===t)throw Error("Cannot set override for path due to non-object path segment");n in t&&"object"==typeof t[n]&&null!==t[n]||(t[n]={}),t=t[n]}const n=e[e.length-1];"string"==typeof n&&(t[n]=i)}return ki(Pi(n,a))},pxToRem:function(e,t){return t/e.typography.fontSize+"rem"},reloadThemeConfig:function(e={}){return Pr(),Br(e)},remToPx:function(e,t){return t*e.typography.fontSize},removeAllThemeCSS:()=>{br()||document.querySelectorAll("link[data-atomix-theme]").forEach((e=>e.remove()))},removeInjectedCSS:hi,removeThemeAttributes:(e="data-theme")=>{br()||(document.body.removeAttribute(e),document.documentElement.removeAttribute(e))},removeThemeCSS:Ar,rgbToHex:Vr,rtlCSS:function(e,t,n="ltr"){return"rtl"===n?t:e},runCLI:function(){const e=Yi(),t=process.argv.slice(2);e.run(t)},setGlobalAnalytics:function(e){Qi=e},setLogger:function(e){wr=e},spacing:function(e,...t){return e.spacing(...t)},useTheme:function(){const e=f(vi);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTheme:e.activeTheme,setTheme:e.setTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}},validateConfig:_r,validateThemeMetadata:e=>{const t=[],n=[];if(!e||"object"!=typeof e)return t.push("Theme metadata must be an object"),{valid:!1,errors:t,warnings:n};const a=e;if(a.name&&"string"==typeof a.name||t.push("Theme must have a valid name"),a.description||n.push("Theme should have a description"),a.version||n.push("Theme should have a version"),a.author||n.push("Theme should have an author"),a.status){const e=["stable","beta","experimental","deprecated"];e.includes(a.status)||t.push(`Invalid status: ${a.status}. Must be one of: ${e.join(", ")}`)}return a.color&&"string"!=typeof a.color&&t.push("Theme color must be a string"),a.a11y&&("object"!=typeof a.a11y?t.push("Theme a11y must be an object"):(void 0!==a.a11y.contrastTarget&&("number"!=typeof a.a11y.contrastTarget||0>a.a11y.contrastTarget)&&t.push("Theme a11y.contrastTarget must be a positive number"),void 0!==a.a11y.modes&&(Array.isArray(a.a11y.modes)||t.push("Theme a11y.modes must be an array")))),{valid:0===t.length,errors:t,warnings:n}}});const Ji=Zn,eo=Wn,to=nr,no=ar,ao=Xi,ro={...tr,...sa,composables:Ji,utils:eo,constants:no,types:to};export{We as Accordion,kt as AnimatedChart,Pt as AreaChart,He as AtomixGlass,Ye as AtomixLogo,ct as Avatar,dt as AvatarGroup,ut as Badge,zt as BarChart,gt as Block,ft as Breadcrumb,Ut as BubbleChart,vt as Button,At as Callout,Gt as CandlestickChart,yt as Card,Rt as Chart,Mt as ChartRenderer,Tn as Checkbox,an as ColorModeToggle,mt as Container,rn as Countdown,un as DataTable,Sn as DatePicker,Vt as DonutChart,En as Dropdown,An as EdgePanel,Lt as ElevationCard,ra as Footer,ca as FooterLink,la as FooterSection,ea as FooterSocialLink,_n as Form,Ln as FormGroup,Ht as FunnelChart,Wt as GaugeChart,ta as Grid,na as GridCol,Kt as HeatmapChart,da as Hero,lt as Icon,In as Input,$t as LineChart,ha as List,ua as ListGroup,ia as MasonryGrid,oa as MasonryGridItem,Ia as MegaMenu,Oa as MegaMenuColumn,Ra as MegaMenuLink,_a as Menu,xa as MenuDivider,Ca as MenuItem,ma as Messages,pa as Modal,Qt as MultiAxisChart,ga as Nav,wa as NavDropdown,fa as NavItem,Sa as Navbar,hn as Pagination,Fa as PhotoViewer,qt as PieChart,Ua as Popover,Va as ProductReview,Ha as Progress,Xt as RadarChart,Xn as Radio,Ga as Rating,Wa as River,aa as Row,Jt as ScatterChart,Ya as SectionIntro,qn as Select,Na as SideMenu,Aa as SideMenuItem,va as SideMenuList,Ka as Slider,Et as Spinner,ja as Steps,$a as Tabs,Qa as Testimonial,Jn as Textarea,Za as Todo,qa as Toggle,Xa as Tooltip,en as TreemapChart,Ja as Upload,er as VideoPlayer,tn as WaterfallChart,Ji as composables,no as constants,ro as default,ao as theme,to as types,eo as utils};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import n,{useState as r,useRef as i,useEffect as o,memo as s,forwardRef as l,useId as c,useMemo as d,useCallback as h,Children as u,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as S}from"react";import*as b from"@phosphor-icons/react";import{Pause as E,Play as v,SkipBack as A,SkipForward as N,SpeakerX as T,SpeakerHigh as y,Gear as _,Download as C,Share as L,ArrowsIn as x,ArrowsOut as I}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";const R=["primary","secondary","success","info","warning","error","light","dark"],w=["sm","md","lg"],M={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},D={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},k={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},P={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},B={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},z={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},U={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},G={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},F={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},V={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},H={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},Y={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},W={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},K={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},j={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},Q={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},q={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},Z={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},$={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},X={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},J={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},ee={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},te={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},ae={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},ne={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},re={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},ie={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},oe={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},se={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},le={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},ce={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},de={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},he={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},ue={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},me={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},pe={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},ge={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},fe={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},Se={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},be={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Ee={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},ve={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},Ae={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},Ne={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},Te={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},ye={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},_e=ye,Ce={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",SETTINGS_MENU_CLASS:"c-chart__settings-menu",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},Le={BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},xe={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},Ie={CLASSES:{BASE:"c-glass-container",GLASS:"c-glass-container__glass",WARP:"c-glass-container__warp",CONTENT:"c-glass-container__content",OVERLAY:"c-glass-container__overlay",OVERLAY_VISIBLE:"c-glass-container__overlay--visible",OVERLAY_HIDDEN:"c-glass-container__overlay--hidden",OVERLAY_BLEND:"c-glass-container__overlay-blend",BORDER:"c-glass-container__border",BORDER_OVERLAY:"c-glass-container__border-overlay",HOVER_EFFECT:"c-glass-container__hover-effect",ACTIVE_EFFECT:"c-glass-container__active-effect",INTERACTION_EFFECT:"c-glass-container__interaction-effect",ACTIVE:"c-glass-container--active",CLICKABLE:"c-glass-container--clickable"},DISPLACEMENT_MAPS:{STANDARD:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0iZ3JhZGllbnQiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzgwODA4MCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3Rv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DQwNDAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Byb21pbmVudCkiLz48L3N2Zz4="}},Oe={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}},Re={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:20,BLUR_AMOUNT:1,SATURATION:140,ABERRATION_INTENSITY:2.5,ELASTICITY:.05,CORNER_RADIUS:16,PADDING:"0 0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0},CONSTANTS:{ACTIVATION_ZONE:200,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200}}};function we(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},a="boolean"==typeof t.isOpen,[n,s]=r(t.defaultOpen||!1),l=a?t.isOpen:n,[c,d]=r(l?"auto":"0px"),h=i(null),u=i(null),m=()=>{if(u.current&&h.current){const e=l?u.current.clientHeight+"px":"0px";h.current.style.setProperty(P.CSS_VARS.PANEL_HEIGHT,e),d(e)}};return o((()=>{m()}),[l]),o((()=>{const e=()=>{l&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]),{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(a?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:m,panelRef:h,contentRef:u,generateClassNames:(e="")=>`c-accordion ${l?P.CLASSES.IS_OPEN:""} ${t.disabled?P.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Me}=Re,De=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const a=e.x-t.x,n=e.y-t.y;return Math.sqrt(a*a+n*n)},ke=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Pe=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Me.MOUSE_INFLUENCE_DIVISOR;return Math.min(1.5,t)},Be=e=>"number"!=typeof e||isNaN(e)?Me.MIN_BLUR:Math.max(Me.MIN_BLUR,Math.min(50,e)),ze=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Me.MAX_SIZE&&e.height<=Me.MAX_SIZE,Ue=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Me.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Me.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Me.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Me.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Me.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const a=parseFloat(t);return isNaN(a)?Me.DEFAULT_CORNER_RADIUS:Math.max(0,a)},Ge=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?Ue(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=Fe(e.props.children);if(t>0&&t!==Me.DEFAULT_CORNER_RADIUS)return t}return null},Fe=e=>{if(!e)return Me.DEFAULT_CORNER_RADIUS;try{const t=n.Children.toArray(e);for(let e=0;e<t.length;e++){const a=t[e];if(n.isValidElement(a)){const e=Ge(a);if(null!==e)return e}}}catch(t){}return Me.DEFAULT_CORNER_RADIUS},Ve=(e,t,a,n,r)=>{switch(e){case"standard":default:return t;case"polar":return a;case"prominent":return n;case"shader":return r||t}},He=({id:a,displacementScale:n,aberrationIntensity:r,mode:i,shaderMapUrl:o,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",suppressHydrationWarning:!0,children:t("defs",{children:[t("radialGradient",{id:a+"-edge-mask",cx:"50%",cy:"50%",r:"50%",children:[e("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:Math.max(30,80-2*r)+"%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t("filter",{id:a,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[e("feImage",{id:"feimage",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:Ve(i,"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgHBwcHBwgLCAkJCQkICwsMDAwMDAsNDQ4ODQ0SEhISEhQUFBQUFBQUFBQBBQUFCAgIEAsLEBQODg4UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFP/CABEIAQABAAMBEQACEQEDEQH/xAAxAAEBAQEBAQAAAAAAAAAAAAADAgQIAQYBAQEBAQEBAQAAAAAAAAAAAAMCBAEACAf/2gAMAwEAAhADEAAAAPjPor6kOgOiKhKgKhKgOhKhOhKxKgKhOgKhKhKgKxOhKhOgKhKhKgKwKhKgKgKwG841nns9J/nn2KVCdCdCVAVCVCVAdCVCdiVAVidCVAVCVAdiVCVCdAVCVCVAVCVAVAViVZxsBrPPY6R/N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CViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx8BBwcHDQwNGBAQGBo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IZ+bmbFGy8oje5GgM6KSbFKvxcUQbwIAJSWPRPUI0qAfsoBeg6wg34beqRT0qDBU6Ea44gLxZ9H58oho4ojVM1s0IcbqGFBmyQ+KVq+Rn9zuTr9ff+q++PaWy9IGkSgG7aYe/ePqBamIBu6xruTznWI5egLDnwxGs4/Ye97bpQhKZJqv7/7GfkgF+rEBGfCVWZCTPnOjwxnPWcyxAqtLMZanXyfSv/Hz46iWQl6ryEc6KdaQ3440BkBh1qeRon4sTqGC2liNQdGdUra0xL+H/kMAsbYr+iHAAAAAElFTkSuQmCC",o),preserveAspectRatio:"xMidYMid slice"}),e("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),e("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:e("feFuncA",{type:"discrete",tableValues:`0 ${.05*r} 1`})}),e("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:n*("shader"===i?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),e("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:n*(("shader"===i?1:-1)-.02*r),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),e("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:n*(("shader"===i?1:-1)-.03*r),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),e("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),e("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),e("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),e("feGaussianBlur",{in:"RGB_COMBINED",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),e("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),e("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:e("feFuncA",{type:"table",tableValues:"1 0"})}),e("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),e("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})});He.displayName="GlassFilter";const Ye=s(He,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),We=new Map,Ke=l((({children:a,className:n="",style:s,displacementScale:l=25,blurAmount:h=.0625,saturation:u=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},globalMousePosition:g={x:0,y:0},onMouseEnter:f,onMouseLeave:S,onMouseDown:b,onMouseUp:E,active:v=!1,isHovered:A=!1,isActive:N=!1,overLight:T=!1,cornerRadius:y=0,padding:_="0 0",glassSize:C={width:0,height:0},onClick:L,mode:x="standard",effectiveDisableEffects:I=!1,effectiveReducedMotion:O=!1,shaderVariant:R="liquidGlass",enableLiquidBlur:w=!1,elasticity:M=0,contentRef:D},k)=>{const P=c(),[B,z]=r(""),U=i(null),G=i(null),F=i(null);o((()=>{"shader"===x?Promise.resolve().then((function(){return gt})).then((e=>{G.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):G.current=null}),[x]),o((()=>{if("shader"===x&&C&&ze(C)&&G.current){const e=`${C.width}x${C.height}-${R}`,t=(e=>{const t=We.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void z(t);F.current&&clearTimeout(F.current);const a=()=>{if(G.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:a}=G.current;U.current?.destroy();const n=a[R]||a.liquidGlass;U.current=new t({width:C.width,height:C.height,fragment:n});const r=()=>{const t=U.current?.updateShader()||"";((e,t)=>{if(We.size>=15){const e=Array.from(We.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&We.delete(t[0])}We.set(e,{url:t,timestamp:Date.now()}),"production"!==process.env.NODE_ENV&&We.size})(e,t),z(t)};"undefined"!=typeof requestIdleCallback?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,0)}catch(t){z("")}else F.current=setTimeout(a,100)};F.current=setTimeout(a,300)}else z("");return()=>{F.current&&(clearTimeout(F.current),F.current=null);try{U.current?.destroy()}catch(e){}finally{U.current=null}}}),[x,C,R]);const[V,H]=r(null);o((()=>{if(!k||"function"==typeof k)return;const e=k.current;if(e)try{H(e.getBoundingClientRect())}catch(t){H(null)}}),[k,C]);const Y=d((()=>{const e={baseBlur:h,edgeBlur:1.25*h,centerBlur:1.1*h,flowBlur:1.2*h};if(!w||!V||!g||"number"!=typeof g.x||"number"!=typeof g.y||isNaN(g.x)||isNaN(g.y))return e;try{const e=ke(V),t=De(g,e),a=Math.sqrt(V.width*V.width+V.height*V.height)/2,n=Math.min(t/a,1),r=Pe(p),i=h+r*h*.4,o=i*(.8+.6*(1.5*n+.3*r)),s=i*(.3+.4*(.3*(1-n)+.2*r)),l=g.x-e.x,c=g.y-e.y,d=i*(.4+.6*(.5*Math.sin(Math.atan2(c,l)+r*Math.PI)+.5)),u=(A?1.2:1)*(N?1.4:1);return{baseBlur:Be(i*u),edgeBlur:Be(o*u),centerBlur:Be(s*u),flowBlur:Be(d*u)}}catch(t){return e}}),[w,h,g,p,A,N,V,s,C]),W=d((()=>{try{const e=u+20*(Y.baseBlur||0),t="number"!=typeof Y.baseBlur||isNaN(Y.baseBlur)?0:Y.baseBlur,a="number"!=typeof Y.edgeBlur||isNaN(Y.edgeBlur)?0:Y.edgeBlur,n="number"!=typeof Y.centerBlur||isNaN(Y.centerBlur)?0:Y.centerBlur,r="number"!=typeof Y.flowBlur||isNaN(Y.flowBlur)?0:Y.flowBlur,i=V?V.width*V.height:0;return!w||O||I||i>18e4?{backdropFilter:`blur(${Be(Math.max(t,.8*a,1.1*n,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}:{backdropFilter:`${[`blur(${t}px)`,`blur(${a}px)`,`blur(${n}px)`,`blur(${r}px)`].join(" ")} saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}}catch(e){return{backdropFilter:`blur(${h}px) saturate(${u}%) contrast(1.05) brightness(1.05)`}}}),[P,Y,u,h,V,O,I,w]),K=d((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-width":""+C?.width,"--atomix-glass-container-height":""+C?.height,"--atomix-glass-container-padding":_||"0 0","--atomix-glass-container-radius":("number"!=typeof y||isNaN(y)?0:y)+"px","--atomix-glass-container-backdrop":W?.backdropFilter||"none","--atomix-glass-container-shadow":T?[`inset 0 1px 0 rgba(255, 255, 255, ${.4+.002*e})`,`inset 0 -1px 0 rgba(0, 0, 0, ${.2+.001*Math.abs(t)})`,`inset 0 0 20px rgba(0, 0, 0, ${.08+.001*Math.abs(e+t)})`,`0 2px 12px rgba(0, 0, 0, ${.12+.002*Math.abs(t)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset","--atomix-glass-container-shadow-opacity":I?0:1,"--atomix-glass-container-bg":T?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none","--atomix-glass-container-text-shadow":T?"0px 2px 12px rgba(0, 0, 0, 0)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":T?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[C,_,y,W,p,T,I]);return e("div",{ref:k,className:`${Re.CONTAINER_CLASS} ${n} ${v?Re.CLASSES.ACTIVE:""} ${T?Re.CLASSES.OVER_LIGHT:""}`,style:{...s,...K},onClick:L,children:t("div",{className:Re.INNER_CLASS,style:{padding:"var(--atomix-glass-container-padding)",boxShadow:"var(--atomix-glass-container-box-shadow)"},onMouseEnter:f,onMouseLeave:S,onMouseDown:b,onMouseUp:E,children:[t("div",{className:Re.FILTER_CLASS,children:[e(Ye,{blurAmount:h,mode:x,id:P,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:B}),e("div",{className:Re.FILTER_OVERLAY_CLASS,suppressHydrationWarning:!0,style:{filter:`url(#${P})`,backdropFilter:"var(--atomix-glass-container-backdrop)",borderRadius:"var(--atomix-glass-container-radius)"}}),e("div",{className:Re.FILTER_SHADOW_CLASS,style:{boxShadow:"var(--atomix-glass-container-shadow)",opacity:"var(--atomix-glass-container-shadow-opacity)",background:"var(--atomix-glass-container-bg)",borderRadius:"var(--atomix-glass-container-radius)"}})]}),e("div",{ref:D,className:Re.CONTENT_CLASS,style:{position:"relative",textShadow:"var(--atomix-glass-container-text-shadow)",...M>0?{zIndex:100}:{}},children:a})]})})}));Ke.displayName="AtomixGlassContainer";const je=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},{CONSTANTS:Qe}=Re,qe=new WeakMap,Ze=(e,t,a,n)=>{e&&qe.set(e,{result:a,timestamp:Date.now(),config:t,threshold:n})};function $e({glassRef:e,contentRef:t,cornerRadius:a,globalMousePosition:n,mouseOffset:s,mouseContainer:l,overLight:c=Re.DEFAULTS.OVER_LIGHT,reducedMotion:u=!1,highContrast:m=!1,disableEffects:p=!1,elasticity:g=.05,onClick:f,debugCornerRadius:S=!1,debugOverLight:b=!1,enablePerformanceMonitoring:E=!1,children:v}){const[A,N]=r(!1),[T,y]=r(!1),[_,C]=r({width:270,height:69}),[L,x]=r({x:0,y:0}),[I,O]=r({x:0,y:0}),[R,w]=r(Qe.DEFAULT_CORNER_RADIUS),[M,D]=r(!1),[k,P]=r(!1),[B,z]=r(!1),U=d((()=>Math.max(0,void 0!==a?a:R)),[a,R,S]),G=d((()=>u||M),[u,M]),F=d((()=>m||k),[m,k]),V=d((()=>p||G),[p,G]),H=d((()=>n||L),[n,L]),Y=d((()=>s||I),[s,I]);o((()=>{const e=()=>{try{let e=null,a="default";if(t.current){const n=t.current.firstElementChild;if(n){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),a=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(a&&"0px"!==a&&"auto"!==a){const e=Ue(a);return e>0?e:null}return null}catch(t){return null}})(n);null!==t&&t>0&&(e=t,a="DOM element")}}if(null===e){const t=Fe(v);t>0&&t!==Qe.DEFAULT_CORNER_RADIUS&&(e=t,a="React children")}null!==e&&e>0?w(e):process.env.NODE_ENV}catch(e){process.env.NODE_ENV}};e();const a=setTimeout(e,100);return()=>clearTimeout(a)}),[v,S,t]),o((()=>{if(("auto"===c||"object"==typeof c&&null!==c)&&e.current){const t=e.current,a=((e,t)=>{if(!e)return null;const a=qe.get(e);return a&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const a=e,n=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const i of r){const e=a[i],t=n[i];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(a.config,t)?(a.timestamp=Date.now(),a.result):null})(t.parentElement,c);if(null!==a)return void z(a);const n=setTimeout((()=>{try{if(!t)return void z(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void z(!1);let a=0,n=0,r=!1,i=t.parentElement,o=0;const s=20,l=10;for(;i&&l>n&&s>o;){try{const e=window.getComputedStyle(i);if(!e){i=i.parentElement,o++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),i=Number(e[1]),o=Number(e[2]);if(!isNaN(t)&&!isNaN(i)&&!isNaN(o)&&isFinite(t)&&isFinite(i)&&isFinite(o)&&t>=0&&255>=t&&i>=0&&255>=i&&o>=0&&255>=o&&(t>10||i>10||o>10)){const e=(.299*t+.587*i+.114*o)/255;!isNaN(e)&&isFinite(e)&&(a+=e,n++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(a+=.5,n++,r=!0)}catch(e){process.env.NODE_ENV}if(!i)break;i=i.parentElement,o++}if(r&&n>0){const e=a/n;if(!isNaN(e)&&isFinite(e)){let a=.7;if("object"==typeof c&&null!==c){const e=c;if(void 0!==e.threshold){const t="number"==typeof e.threshold&&!isNaN(e.threshold)&&isFinite(e.threshold)?e.threshold:.7;a=Math.min(.9,Math.max(.1,t))}}const n=e>a;Ze(t.parentElement,c,n,a),z(n)}else{const e=!1,a="object"==typeof c&&null!==c&&c.threshold||.7;Ze(t.parentElement,c,e,a),z(e)}}else{const e=!1,a="object"==typeof c&&null!==c&&c.threshold||.7;Ze(t.parentElement,c,e,a),z(e)}}catch(a){process.env.NODE_ENV;const e=!1;if(t&&t.parentElement){const a="object"==typeof c&&null!==c&&c.threshold||.7;Ze(t.parentElement,c,e,a)}z(e)}}),150);return()=>clearTimeout(n)}if("boolean"==typeof c&&z(!1),"function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");D(e.matches),P(t.matches);const a=e=>{D(e.matches)},n=e=>{P(e.matches)};return e.addEventListener?(e.addEventListener("change",a),t.addEventListener("change",n)):e.addListener&&(e.addListener(a),t.addListener(n)),()=>{try{e.removeEventListener?(e.removeEventListener("change",a),t.removeEventListener("change",n)):e.removeListener&&(e.removeListener(a),t.removeListener(n))}catch(r){}}}catch(t){return}}),[c,e,b]);const W=i(null),K=i(null),j=h((t=>{if(n&&s)return;if(V)return;const a=l?.current||e.current;if(!a)return;E&&performance.now();let r=W.current;if(r&&0!==r.width&&0!==r.height||(r=a.getBoundingClientRect(),W.current=r),0===r.width||0===r.height)return;const i=ke(r),o={x:(t.x-i.x)/r.width*100,y:(t.y-i.y)/r.height*100};O(o),x(t),"production"!==process.env.NODE_ENV&&E&&performance.now()}),[l,e,n,s,V,E]);o((()=>{if(n&&s)return;if(V)return;const t=je.subscribe(j),a=l?.current||e.current;let r=null;return a&&"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{null!==K.current&&cancelAnimationFrame(K.current),K.current=requestAnimationFrame((()=>{const t=l?.current||e.current;t&&(W.current=t.getBoundingClientRect()),K.current=null}))})),r.observe(a)),()=>{t(),null!==K.current&&(cancelAnimationFrame(K.current),K.current=null),r&&r.disconnect()}}),[j,l,e,n,s,V]);const Q=h((()=>{if(!(H.x&&H.y&&e.current&&ze(_)))return"scale(1)";const t=e.current.getBoundingClientRect(),a=ke(t),n=H.x-a.x,r=H.y-a.y,i=Math.max(0,Math.abs(n)-_.width/2),o=Math.max(0,Math.abs(r)-_.height/2),s=De({x:i,y:o},{x:0,y:0});if(s>Qe.ACTIVATION_ZONE)return"scale(1)";const l=1-s/Qe.ACTIVATION_ZONE,c=De(H,a);if(0===c)return"scale(1)";const d=n/c,h=r/c,u=Math.min(c/300,1)*g*l,m=1+Math.abs(d)*u*.3-Math.abs(h)*u*.15,p=1+Math.abs(h)*u*.3-Math.abs(d)*u*.15;return`scaleX(${Math.max(.8,m)}) scaleY(${Math.max(.8,p)})`}),[H,g,_,e]),q=h((()=>{if(!(H.x&&H.y&&e.current&&ze(_)))return 0;const t=e.current.getBoundingClientRect(),a=ke(t),n=Math.max(0,Math.abs(H.x-a.x)-_.width/2),r=Math.max(0,Math.abs(H.y-a.y)-_.height/2),i=De({x:n,y:r},{x:0,y:0});return i>Qe.ACTIVATION_ZONE?0:1-i/Qe.ACTIVATION_ZONE}),[H,_,e]),Z=h((()=>{if(!e.current)return{x:0,y:0};const t=q(),a=e.current.getBoundingClientRect(),n=ke(a);return{x:(H.x-n.x)*g*.1*t,y:(H.y-n.y)*g*.1*t}}),[H,g,q,e]),$=d((()=>V?{x:0,y:0}:Z()),[Z,V]),X=d((()=>V?"scale(1)":Q()),[Q,V]),J=d((()=>V?T&&f?"scale(0.98)":"scale(1)":`translate(${$.x}px, ${$.y}px) ${T&&f?"scale(0.96)":X}`),[$,T,f,X,V]);o((()=>{const t=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let a=null,n={width:0,height:0},r=U;const i=(i=!1)=>{null!==a&&cancelAnimationFrame(a),a=requestAnimationFrame((()=>{if(!t(e.current))return void(a=null);const o=e.current.getBoundingClientRect();if(0>=o.width||0>=o.height)return void(a=null);const s={width:Math.round(o.width),height:Math.round(o.height)},l=r!==U,c=Math.abs(s.width-n.width)>1||Math.abs(s.height-n.height)>1;var d;(i||l||c)&&ze(d=s)&&d.width<=Qe.MAX_SIZE&&d.height<=Qe.MAX_SIZE&&(n=s,r=U,C(s)),a=null}))};let o=null;const s=()=>{o&&clearTimeout(o),o=setTimeout((()=>i(!1)),16)},l=setTimeout((()=>i(!0)),0);let c=null,d=null;if("undefined"!=typeof ResizeObserver&&t(e.current))try{c=new ResizeObserver((t=>{for(const a of t)if(a.target===e.current){e.current&&(W.current=e.current.getBoundingClientRect()),d&&clearTimeout(d),d=setTimeout((()=>i(!1)),16);break}})),c.observe(e.current)}catch(h){}return window.addEventListener("resize",s,{passive:!0}),()=>{clearTimeout(l),null!==a&&cancelAnimationFrame(a),o&&clearTimeout(o),d&&clearTimeout(d),window.removeEventListener("resize",s),c?.disconnect()}}),[U,e]);const ee=h((()=>"boolean"==typeof c?c:("auto"===c||"object"==typeof c&&null!==c)&&B),[c,B]),te=h(((e,t,a,n)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?n:Math.min(a,Math.max(t,e))),[]),ae=d((()=>{const e=ee(),t=Pe(Y),a=A?1.4:1,n=T?1.6:1,r={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*a*n)):0,contrast:Math.min(1.8,Math.max(1,1.4+.3*t)),brightness:Math.min(1.2,Math.max(.7,.85+.15*t)),saturationBoost:Math.min(2,Math.max(1,1.3+.4*t)),shadowIntensity:Math.min(1.5,Math.max(.5,.9+.5*t)),borderOpacity:Math.min(1,Math.max(.3,.7+.3*t))};if("object"==typeof c&&null!==c){const e=c,i=te(e.threshold,.1,1,r.threshold),o=te(e.opacity,.1,1,r.opacity),s=te(e.contrast,.5,2.5,r.contrast),l=te(e.brightness,.5,2,r.brightness),d=te(e.saturationBoost,.5,3,r.saturationBoost),h={...r,threshold:i,opacity:o*a*n,contrast:s+.3*t,brightness:l+.15*t,saturationBoost:d+.4*t};return process.env.NODE_ENV,h}return process.env.NODE_ENV,r}),[c,ee,Y,A,T,te,b]),ne=h((()=>N(!0)),[]),re=h((()=>N(!1)),[]),ie=h((()=>y(!0)),[]),oe=h((()=>y(!1)),[]),se=h((e=>{!f||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}),[f]),le=h((e=>{}),[]);return{isHovered:A,isActive:T,glassSize:_,dynamicCornerRadius:R,effectiveCornerRadius:U,effectiveReducedMotion:G,effectiveHighContrast:F,effectiveDisableEffects:V,detectedOverLight:B,globalMousePosition:H,mouseOffset:Y,overLightConfig:ae,elasticTranslation:$,directionalScale:X,transformStyle:J,handleMouseEnter:ne,handleMouseLeave:re,handleMouseDown:ie,handleMouseUp:oe,handleMouseMove:le,handleKeyDown:se}}function Xe({children:n,displacementScale:r=Re.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s=Re.DEFAULTS.BLUR_AMOUNT,saturation:l=Re.DEFAULTS.SATURATION,aberrationIntensity:c=Re.DEFAULTS.ABERRATION_INTENSITY,elasticity:h=Re.DEFAULTS.ELASTICITY,cornerRadius:u,globalMousePosition:m,mouseOffset:p,mouseContainer:g=null,className:f="",padding:S=Re.DEFAULTS.PADDING,overLight:b=Re.DEFAULTS.OVER_LIGHT,style:E={},mode:v=Re.DEFAULTS.MODE,onClick:A,shaderVariant:N="liquidGlass","aria-label":T,"aria-describedby":y,role:_,tabIndex:C,reducedMotion:L=!1,highContrast:x=!1,disableEffects:I=!1,enableLiquidBlur:O=!1,enableBorderEffect:R=!0,enableOverLightLayers:w=Re.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,enablePerformanceMonitoring:M=!1,debugCornerRadius:D=!1,debugOverLight:k=!1}){const P=i(null),B=i(null),z=i(null),{isHovered:U,isActive:G,glassSize:F,effectiveCornerRadius:V,effectiveReducedMotion:H,effectiveHighContrast:Y,effectiveDisableEffects:W,overLightConfig:K,globalMousePosition:j,mouseOffset:Q,transformStyle:q,handleMouseEnter:Z,handleMouseLeave:$,handleMouseDown:X,handleMouseUp:J,handleKeyDown:ee}=$e({glassRef:P,contentRef:B,cornerRadius:u,globalMousePosition:m,mouseOffset:p,mouseContainer:g,overLight:b,reducedMotion:L,highContrast:x,disableEffects:I,elasticity:h,onClick:A,debugCornerRadius:D,debugOverLight:k,enablePerformanceMonitoring:M,children:n}),te=K.isOverLight,ae=w&&te;o((()=>{if("undefined"!=typeof window&&P.current&&!z.current)try{const e=window.getComputedStyle(P.current),t=e.getPropertyValue("--atomix-opacity-50").trim(),a=e.getPropertyValue("--atomix-opacity-40").trim(),n=e.getPropertyValue("--atomix-opacity-80").trim(),r=e.getPropertyValue("--atomix-opacity-0").trim(),i=(e,t)=>{if(!e)return t;const a=parseFloat(e);return isNaN(a)?t:a};z.current={opacity50:i(t,.5),opacity40:i(a,.4),opacity80:i(n,.8),opacity0:i(r,0)}}catch(e){z.current={opacity50:.5,opacity40:.4,opacity80:.8,opacity0:0}}}),[]);const ne=d((()=>({...E,...0!==h&&!W&&{transform:q}})),[E,q,W,h]),re=d((()=>[Re.BASE_CLASS,H&&Re.BASE_CLASS+"--reduced-motion",Y&&Re.BASE_CLASS+"--high-contrast",W&&Re.BASE_CLASS+"--disabled-effects",f].filter(Boolean).join(" ")),[H,Y,W,f]),ie=ne.position,oe=ne.top,se=ne.left,le=d((()=>({position:ie||"absolute",top:oe||0,left:se||0})),[ie,oe,se]),ce=ne.width,de=ne.height,he=F.width,ue=F.height,me=d((()=>({width:"fixed"!==ie?"100%":ce||Math.max(he,0),height:"fixed"!==ie?"100%":de||Math.max(ue,0)})),[ie,ce,de,he,ue]),pe=Q.x,ge=Q.y,fe=Re.CONSTANTS.GRADIENT,Se=d((()=>{const e=pe,t=ge,a=fe.BASE_ANGLE+e*fe.ANGLE_MULTIPLIER,n=Math.max(fe.BORDER_STOP_1.MIN,fe.BORDER_STOP_1.BASE+t*fe.BORDER_STOP_1.MULTIPLIER),r=Math.min(fe.BORDER_STOP_2.MAX,fe.BORDER_STOP_2.BASE+t*fe.BORDER_STOP_2.MULTIPLIER),i=fe.BORDER_OPACITY.BASE_1+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_LOW,o=fe.BORDER_OPACITY.BASE_2+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_HIGH,s=fe.BORDER_OPACITY.BASE_3+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_LOW,l=fe.BORDER_OPACITY.BASE_4+Math.abs(e)*fe.BORDER_OPACITY.MULTIPLIER_HIGH,c=fe.CENTER_POSITION+e/fe.HOVER_POSITION.DIVISOR_1,d=fe.CENTER_POSITION+t/fe.HOVER_POSITION.DIVISOR_1,h=fe.CENTER_POSITION+e/fe.HOVER_POSITION.DIVISOR_2,u=fe.CENTER_POSITION+t/fe.HOVER_POSITION.DIVISOR_2,m=fe.CENTER_POSITION+e*fe.HOVER_POSITION.MULTIPLIER_3,p=fe.CENTER_POSITION+t*fe.HOVER_POSITION.MULTIPLIER_3,g=fe.CENTER_POSITION+e*fe.BASE_LAYER_MULTIPLIER,f=fe.CENTER_POSITION+t*fe.BASE_LAYER_MULTIPLIER;return{isOverLight:te,mx:e,my:t,borderGradientAngle:a,borderStop1:n,borderStop2:r,borderOpacity1:i,borderOpacity2:o,borderOpacity3:s,borderOpacity4:l,hover1X:c,hover1Y:d,hover2X:h,hover2Y:u,hover3X:m,hover3Y:p,baseX:g,baseY:f}}),[pe,ge,te]),be=K.opacity,Ee=d((()=>{const e=z.current?.opacity50??.5,t=z.current?.opacity40??.4,a=z.current?.opacity80??.8,n=z.current?.opacity0??0;return{hover1:U||G?e:n,hover2:G?e:n,hover3:U?t:G?a:n,base:te?be||t:n,over:te?1.1*(be||t):n}}),[U,G,te,be]),ve=Se.isOverLight,Ae=Se.mx,Ne=Se.my,Te=Se.borderGradientAngle,ye=Se.borderStop1,_e=Se.borderStop2,Ce=Se.borderOpacity1,Le=Se.borderOpacity2,xe=Se.borderOpacity3,Ie=Se.borderOpacity4,Oe=Se.hover1X,we=Se.hover1Y,Me=Se.hover2X,De=Se.hover2Y,ke=Se.hover3X,Pe=Se.hover3Y,Be=Se.baseX,ze=Se.baseY,Ue=le.position,Ge=le.top,Fe=le.left,Ve=me.width,He=me.height,Ye=ne.transform,We=Ee.hover1,je=Ee.hover2,Qe=Ee.hover3,qe=Ee.base,Ze=Ee.over,Xe=d((()=>{const e="255, 255, 255",t="0, 0, 0";return{"--atomix-glass-radius":V+"px","--atomix-glass-transform":Ye||"none","--atomix-glass-position":Ue,"--atomix-glass-top":"fixed"!==Ge?Ge+"px":"0","--atomix-glass-left":"fixed"!==Fe?Fe+"px":"0","--atomix-glass-width":"fixed"!==ie?Ve:Ve+"px","--atomix-glass-height":"fixed"!==ie?He:He+"px","--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.09375rem)","--atomix-glass-blend-mode":ve?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${Te}deg, rgba(${e}, 0) 0%, rgba(${e}, ${Ce}) ${ye}%, rgba(${e}, ${Le}) ${_e}%, rgba(${e}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${Te}deg, rgba(${e}, 0) 0%, rgba(${e}, ${xe}) ${ye}%, rgba(${e}, ${Ie}) ${_e}%, rgba(${e}, 0) 100%)`,"--atomix-glass-hover-1-opacity":We,"--atomix-glass-hover-1-gradient":ve?`radial-gradient(circle at ${Oe}% ${we}%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${t}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${Oe}% ${we}%, rgba(${e}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${e}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":je,"--atomix-glass-hover-2-gradient":ve?`radial-gradient(circle at ${Me}% ${De}%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${t}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${Me}% ${De}%, rgba(${e}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${e}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":Qe,"--atomix-glass-hover-3-gradient":ve?`radial-gradient(circle at ${ke}% ${Pe}%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${t}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${t}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${ke}% ${Pe}%, rgba(${e}, ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${e}, 0) ${Re.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":qe,"--atomix-glass-base-gradient":ve?`linear-gradient(${Re.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${t}, ${Re.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+Ae*Re.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Re.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+Ne*Re.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${Re.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Re.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+Math.abs(Ae)*Re.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Re.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":Ze,"--atomix-glass-overlay-gradient":ve?`radial-gradient(circle at ${Be}% ${ze}%, rgba(${t}, ${Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+Math.abs(Ae)*Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+Math.abs(Ne)*Re.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Re.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`}}),[Ue,Ge,Fe,Ve,He,Ye,ie,V,H,ve,Ae,Ne,Te,ye,_e,Ce,Le,xe,Ie,Oe,we,Me,De,ke,Pe,Be,ze,We,je,Qe,qe,Ze]);return t("div",{className:re,style:Xe,role:_||(A?"button":void 0),tabIndex:A?C??0:C,"aria-label":T,"aria-describedby":y,"aria-disabled":!(!A||!W)||!A&&void 0,"aria-pressed":!(!A||!G)||!A&&void 0,onKeyDown:A?ee:void 0,children:[e(Ke,{ref:P,contentRef:B,className:f,style:ne,cornerRadius:V,displacementScale:W?0:"shader"===v?r*Re.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:K.isOverLight?r*Re.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:r,blurAmount:W?0:s,saturation:Y?Re.CONSTANTS.SATURATION.HIGH_CONTRAST:K.isOverLight?l*K.saturationBoost:l,aberrationIntensity:W?0:"shader"===v?c*Re.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:c,glassSize:F,padding:S,mouseOffset:W?{x:0,y:0}:Q,globalMousePosition:W?{x:0,y:0}:j,onMouseEnter:Z,onMouseLeave:$,onMouseDown:X,onMouseUp:J,active:G,isHovered:U,isActive:G,overLight:K.isOverLight,onClick:A,mode:v,transform:ne.transform,effectiveDisableEffects:W,effectiveReducedMotion:H,shaderVariant:N,elasticity:h,enableLiquidBlur:O,children:n}),!!A&&t(a,{children:[e("div",{className:Re.HOVER_1_CLASS}),e("div",{className:Re.HOVER_2_CLASS}),e("div",{className:Re.HOVER_3_CLASS})]}),e("div",{className:[Re.BACKGROUND_LAYER_CLASS,Re.BACKGROUND_LAYER_DARK_CLASS,te?Re.BACKGROUND_LAYER_OVER_LIGHT_CLASS:Re.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...le,height:me.height,width:me.width,borderRadius:V+"px",transform:ne.transform}}),e("div",{className:[Re.BACKGROUND_LAYER_CLASS,Re.BACKGROUND_LAYER_BLACK_CLASS,te?Re.BACKGROUND_LAYER_OVER_LIGHT_CLASS:Re.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...le,height:me.height,width:me.width,borderRadius:V+"px",transform:ne.transform}}),ae&&t(a,{children:[e("div",{className:Re.BASE_LAYER_CLASS}),e("div",{className:Re.OVERLAY_LAYER_CLASS}),e("div",{className:Re.OVERLAY_HIGHLIGHT_CLASS,style:{opacity:Ee.over*Re.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,background:`radial-gradient(circle at ${Re.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${Re.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${Re.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${Re.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}})]}),R&&t(a,{children:[e("span",{className:Re.BORDER_1_CLASS}),e("span",{className:Re.BORDER_2_CLASS})]})]})}const Je=({title:a,children:n,defaultOpen:r=!1,isOpen:i,onOpenChange:o,disabled:s=!1,iconPosition:l="right",icon:d,className:h="",style:u,glass:m})=>{const p=c(),g="accordion-header-"+p,f="accordion-panel-"+p,{state:S,toggle:b,updatePanelHeight:E,panelRef:v,contentRef:A,generateClassNames:N,generateHeaderClassNames:T}=we({defaultOpen:r,disabled:s,iconPosition:l,isOpen:i,onOpenChange:o}),y=e("i",{className:"c-accordion__icon","aria-hidden":"true",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),_=t("div",{className:N(h)+(m?" c-accordion--glass":""),style:u,children:[t("button",{id:g,className:T(),onClick:b,"aria-expanded":S.isOpen,"aria-controls":f,"aria-disabled":s,disabled:s,type:"button",children:[e("span",{className:"c-accordion__title",children:a}),d||y]}),e("div",{id:f,className:P.SELECTORS.PANEL.replace(".",""),ref:v,role:"region","aria-labelledby":g,children:e("div",{className:P.SELECTORS.BODY.replace(".",""),ref:A,children:n})})]});if(m){const t={displacementScale:20,elasticity:0},a=!0===m?t:{...t,...m};return e(Xe,{...a,children:_})}return _};Je.displayName="Accordion";const et=({height:a=24,width:n=24,color:r="currentColor",...i})=>t("svg",{width:n,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]}),tt=8e-4,at=4096,nt=(e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a)return 0;const n=Math.max(0,Math.min(1,(a-e)/(t-e)));return n*n*(3-2*n)},rt=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(Math.abs(e),Math.abs(t));if(0===a)return 0;const n=e/a,r=t/a;return a*Math.sqrt(n*n+r*r)},it=(e,t,a,n,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||"number"!=typeof r)return 0;const i=Math.abs(e)-a+r,o=Math.abs(t)-n+r;return Math.min(Math.max(i,o),0)+rt(Math.max(i,0),Math.max(o,0))-r},ot=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),st=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),lt=(e,t,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)?t:isNaN(t)?0:isNaN(a)?1:Math.max(t,Math.min(a,e)),ct=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},dt=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),ht=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=255&Math.floor(e),n=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=ct(r),s=ct(i),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const a=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return a-Math.floor(a)},c=l(a,n),d=l(a+1,n),h=l(a,n+1),u=c+o*(d-c);return u+s*(h+o*(l(a+1,n+1)-h)-u)},ut=(e,t,a=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(1,Math.min(8,Math.floor(a)));let r=0,i=.5,o=1;for(let s=0;n>s;s++)r+=i*ht(e*o,t*o),o*=2,i*=.5;return r},mt=(e,t,a,n=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n)||isNaN(r))return{x:0,y:0};const i=Math.min(.02*a,.1);return{x:(e-n)*i,y:(t-r)*i}},pt={liquidGlass:(e,t)=>{if(!st(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*tt,i=t&&st(t)?t.x-.5:0,o=t&&st(t)?t.y-.5:0,s=rt(i,o),l=dt(1-Math.min(2*s,1)),c=ut(12*(a+.5*i)+r,12*(n+.5*o)+.7*r,3)-.5,d=it(a,n,.4,.3,.35),h=nt(.8,0,d-.05),u=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(a))return{x:0,y:0};const n=rt(e,t),r=Math.pow(Math.min(n,10),2)*a;return{x:e*(1+r),y:t*(1+r)}})(a,n,.4*.1),m=1.2*(u.x-a)*h,p=1.2*(u.y-n)*h,g=.018*Math.sin(8*(a+2*i)+2*r),f=.018*Math.cos(8*(n+2*o)+1.5*r),S=(.015*Math.sin(12*(a-i)+12*(n-o)+3*r)+.012*Math.cos(10*(a+i)-10*(n-o)-2*r))*l*s,b=(Math.sin(15*a+r)*Math.cos(15*n-r)*.008+Math.sin(20*a-.5*r)*Math.cos(20*n+.5*r)*.006)*h,E=.85*(g+f+.025*c),v=m+E+S+b,A=p+.8*E+.9*S+b,N=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a))return{x:0,y:0};const n=rt(e,t);if(0===n)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*n*a,y:Math.sin(r)*n*a}})(a,n,.015*h),T=nt(0,1,1.15*h),y=a+v+.5*N.x,_=n+A+.5*N.y;return ot(lt(y*T+.5,0,1),lt(_*T+.5,0,1))},appleFluid:(e,t)=>{if(!st(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*tt*.6,i=t&&st(t)?t.x-.5:0,o=t&&st(t)?t.y-.5:0,s=rt(i,o),l=dt(1-Math.min(1.5*s,1)),c=ut(10*(a+.3*i)+r,10*(n+.3*o),5)-.5,d=ut(10*(a-.3*i),10*(n-.3*o)+.8*r,5)-.5,h=it(a,n,.42,.32,.38),u=nt(.85,-.1,h),m=Math.sin(6*a+2*r)*Math.cos(4*n-r)*.025,p=Math.cos(4*a-r)*Math.sin(6*n+2*r)*.025,g=Math.atan2(n-o,a-i),f=l*s*.08,S=Math.cos(g+r)*f,b=n+(.035*d+p+Math.sin(g+r)*f)*u;return ot(lt(a+(.035*c+m+S)*u+.5,0,1),lt(b+.5,0,1))},premiumGlass:(e,t)=>{if(!st(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*tt*.4,i=t&&st(t)?t.x-.5:0,o=t&&st(t)?t.y-.5:0,s=rt(i,o),l=rt(a,n),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(n,a);let h=0,u=0;for(let E=0;3>E;E++){const e=5*(E+1),t=r*(1+.3*E),i=.01/(E+1);h+=Math.sin(a*e+t)*i,u+=Math.cos(n*e-t)*i}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=ut(8*a+r,8*n-r,2)-.5,f=it(a,n,.43,.33,.36),S=nt(.9,-.05,f),b=n+(p+u+.015*g)*S;return ot(lt(a+(m+h+.015*g)*S+.5,0,1),lt(b+.5,0,1))},liquidMetal:(e,t)=>{if(!st(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*tt*1.2,i=t&&st(t)?t.x-.5:0,o=t&&st(t)?t.y-.5:0,s=Math.sin(20*a+4*r)*Math.cos(15*n-3*r)*.02,l=Math.cos(15*a-2*r)*Math.sin(20*n+5*r)*.015,c=.025*ut(25*a+2*r,25*n-2*r,4),d=Math.atan2(n-o,a-i),h=rt(a-i,n-o),u=.02*Math.sin(15*h-6*r)*dt(1-Math.min(2*h,1)),m=it(a,n,.41,.31,.37),p=nt(.88,-.08,m),g=a+(s+c+Math.cos(d)*u)*p,f=n+(l+.8*c+Math.sin(d)*u)*p;return ot(lt(g+.5,0,1),lt(f+.5,0,1))},basiBasi:(e,t)=>{if(!st(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,r=Date.now()*tt*.5,i=t&&st(t)?t.x-.5:0,o=t&&st(t)?t.y-.5:0,s=rt(i,o),l=dt(1-Math.min(1.2*s,1)),c=((e,t,a,n=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n)?.5:.5*(Math.sin(8*e+2*a)*Math.cos(8*t-2*a)*.5+Math.sin(8*(e+.5)*1.3-2*a*.8)*Math.cos(8*(t-.3)*1.3+2*a*.8)*.3+Math.sin(8*(e-.3)*.7+2*a*1.2)*Math.cos(8*(t+.4)*.7-2*a*1.2)*.2+1)*n)(a,n,r,.8),d=.02*(c-.5),h=Math.atan2(n,a),u=((e,t,a)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const n=rt(e,t),r=Math.min(.025*n,1),i=.8*r,o=1*r,s=1.2*r;return{r:{x:Math.cos(a)*i,y:Math.sin(a)*i},g:{x:Math.cos(a)*o,y:Math.sin(a)*o},b:{x:Math.cos(a)*s,y:Math.sin(a)*s}}})(a,n,h),m=(u.r.x+u.g.x+u.b.x)/3,p=(u.r.y+u.g.y+u.b.y)/3;let g=0,f=0;for(let Y=0;7>Y;Y++){const e=mt(a,n,(Y+1)/7,i,o),t=ut((a+e.x)*(8+2*Y)+r*(.5+.1*Y),(n+e.y)*(8+2*Y)-r*(.5+.1*Y),3)-.5,s=1/(Y+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const S=((e,t,a,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(n)?.5:ut(5*e+.5*n,5*t-.5*n,3)*Math.exp(-1)*.5+.5)(a,n,0,r),b=Math.cos(h)*S*.015,E=Math.sin(h)*S*.015,v=((e,t,a,n=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof a||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n))return 0;const r=Math.max(1,Math.min(8,Math.floor(n)));let i=0,o=1,s=1;for(let l=0;r>l;l++)i+=Math.abs(ht(e*s+a,t*s-a))*o,s*=2,o*=.5;return i})(6*a,6*n,r,6),A=.012*Math.cos(v*Math.PI*2),N=.012*Math.sin(v*Math.PI*2),T=((e,t,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(a)?.5:.5*(.7*ut(40*e+.3*a,40*t-.3*a,6)+.3*ut(80*e,80*t,4)))(a,n,r),y=.008*(T-.5),_=.008*(T-.5),C=rt(a,n),L=.35*Math.pow(Math.min(C,1),1.8)*(1+l*s*.8),x=Math.cos(h)*L,I=Math.sin(h)*L,O=Math.atan2(n-o,a-i),R=rt(a-i,n-o),w=l*Math.sin(10*R-3*r)*.025,M=Math.cos(O+2*r)*w,D=Math.sin(O+2*r)*w,k=Math.sin(10*a+5*i+2.5*r)*Math.cos(8*n-2*r)*.018,P=Math.cos(8*a-2*r)*Math.sin(10*n+5*o+2.5*r)*.018,B=(.012*Math.sin(15*Math.min(C,10)-4*r)+.008*Math.cos(20*Math.min(C,10)+3*r))*l,z=Math.cos(h)*B,U=Math.sin(h)*B,G=it(a,n,.44,.34,.39),F=nt(.92,-.12,G),V=nt(.85,.1,G),H=n+(1.2*I+.8*p+1.5*f+.9*E+1*N+.6*_+1.3*D+1.1*P+.7*U+.8*d)*F*V*.85;return ot(lt(a+(1.2*x+.8*m+1.5*g+.9*b+1*A+.6*y+1.3*M+1.1*k+.7*z+d)*F*V*.85+.5,0,1),lt(H+.5,0,1))}};var gt=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(at,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(at,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=at&&"number"==typeof e.height&&e.height>0&&e.height<=at&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,a=this.options.height*this.canvasDPI;let n=0;const r=[];for(let l=0;a>l;l++)for(let i=0;t>i;i++){const o={x:i/t,y:l/a},s=this.options.fragment(o,e);let c=s.x*t-i,d=s.y*a-l;const h=Math.min(2*Math.min(i/t,(t-i)/t),2*Math.min(l/a,(a-l)/a));c*=nt(0,.2,h),d*=nt(0,.2,h),n=Math.max(n,Math.abs(c),Math.abs(d)),r.push(c,d)}n=Math.max(n,1);const i=this.context.createImageData(t,a),o=i.data;let s=0;for(let e=0;a>e;e++)for(let i=0;t>i;i++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(i,e,t-i-1,a-e-1)/2),h=l*d/n+.5,u=c*d/n+.5,m=4*(e*t+i);o[m]=lt(255*h,0,255),o[m+1]=lt(255*u,0,255),o[m+2]=lt(255*u,0,255),o[m+3]=255}return this.context.putImageData(i,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},fragmentShaders:pt});const ft={xs:16,sm:20,md:24,lg:32,xl:40},St=({name:t,size:a="md",weight:n="regular",color:r,className:i="",style:o,alt:s})=>{const l=b[t];return l?e("span",{className:`c-icon c-icon--${a} ${i}`,style:o,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof a?ft[a]||24:a,weight:n,color:r,"aria-label":s})}):null};St.displayName="Icon";const bt=({src:t,alt:a="Avatar",initials:n,icon:i,size:o="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:h,glass:u})=>{const[m,p]=r(!1),g=[ge.CLASSES.BASE,"md"!==o&&"c-avatar--"+o,s&&ge.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:h,children:t&&!m?e("img",{src:t,alt:a,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",n?{className:"c-avatar__initials",children:n}:i?{className:"c-avatar__icon",children:i}:{className:"c-avatar__icon",children:e(St,{name:"User",size:"xs"===o?"xs":"sm"===o?"sm":"md"})})})};bt.displayName="Avatar";const Et=({children:a,max:n,stacked:r=!1,className:i="",style:o,moreText:s})=>{const l=[fe.CLASSES.BASE,r&&fe.CLASSES.STACKED,i].filter(Boolean).join(" "),c=u.toArray(a).filter((e=>m(e)&&e.type===bt)),d=void 0!==n&&c.length>n,h=d?c.slice(0,n):c,g=c.length-(n||0),f=m(c[0])?c[0].props:null,S=f?.size||"md",b=f?.circle||!1,E=[ge.CLASSES.BASE,fe.CLASSES.MORE,"md"!==S&&"c-avatar--"+S,b&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:o,children:[h.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:E,children:s||"+"+g})]})};function vt(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:r=t.disabled,className:i=""}=e;return`${B.BASE_CLASS} ${a?`${B.VARIANT_PREFIX}${a}`:""} ${"md"===n?"":`${B.SIZE_PREFIX}${n}`} ${r?"c-badge--disabled":""} ${i}`.trim()}}}Et.displayName="AvatarGroup";const At=({label:a,variant:n="primary",size:r="md",disabled:o=!1,icon:s,className:l="",glass:c,style:d})=>{const{generateBadgeClass:h}=vt({variant:n,size:r,disabled:o}),u=i(null),m=h({variant:n,size:r,disabled:o,className:`${l} ${c?"c-badge--glass":""}`.trim()}),p=t("span",{className:m,"aria-disabled":o,ref:u,style:d,children:[s&&e("span",{className:B.ICON_CLASS,children:s}),e("span",{children:a})]});if(c){const t={displacementScale:20,cornerRadius:u.current?.getBoundingClientRect().width?u.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},a=!0===c?t:{...t,...c};return e(Xe,{...a,children:p})}return p};At.displayName="Badge";const Nt=l((({children:t,className:a="",type:n,...r},i)=>{let o="o-container";return n&&(o="o-container-"+n),e("div",{ref:i,className:`${o} ${a}`.trim(),...r,children:t})}));Nt.displayName="Container";const Tt=()=>({generateBlockClass:({spacing:e=xe.SPACING.DEFAULT,background:t="",fullWidth:a=!1,className:n=""})=>{const r=[xe.BASE_CLASS];if(e&&"none"!==e&&r.push(`${xe.SPACING_PREFIX}${e}`),t){const e=xe.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return a&&r.push(xe.CLASSES.FULL_WIDTH),n&&r.push(n),r.filter(Boolean).join(" ")}}),yt=l((({children:t,as:a="section",spacing:n="md",container:r={},fullWidth:i=!1,className:o="",style:s,background:l="",...c},d)=>{const{generateBlockClass:h}=Tt(),u=h({spacing:n,background:l,fullWidth:i,className:o});return e(a,{ref:d,className:u,style:s,...c,children:i?t:e(Nt,{type:r.type,className:r.className,children:t})})}));yt.displayName="Block";const _t=({items:n,divider:r,className:i="",ariaLabel:o="Breadcrumb",LinkComponent:s,style:l})=>{const c=[G.CLASSES.BASE,i].filter(Boolean).join(" ");return e("nav",{"aria-label":o,style:l,children:e("ol",{className:c,children:n.map(((r,i)=>{const o=i===n.length-1,l=[G.CLASSES.ITEM,r.active||o?G.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(a,{children:[r.icon&&e("span",{className:"c-breadcrumb__icon",children:r.icon}),r.label]}),d={href:r.href,className:G.CLASSES.LINK,onClick:r.onClick,style:r.style};return e("li",{className:l,style:r.style,children:r.href&&!r.active?e(s||"a",{...d,children:c}):e("span",{className:G.CLASSES.LINK,children:c})},i)}))})})};function Ct(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,loading:!1,fullWidth:!1,block:!1,active:!1,selected:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:r=t.disabled,rounded:i=t.rounded,iconOnly:o=!1,glass:s=t.glass,loading:l=t.loading,fullWidth:c=t.fullWidth,block:d=t.block,active:h=t.active,selected:u=t.selected,className:m=""}=e,p="md"===n?"":"c-btn--"+n,g=o?"c-btn--icon":"",f=i?"c-btn--rounded":"",S=r?"c-btn--disabled":"",b=s?"c-btn--glass":"",E=l?D.CLASSES.LOADING:"",v=c?D.CLASSES.FULL_WIDTH:"",A=d?D.CLASSES.BLOCK:"",N=h?D.CLASSES.ACTIVE:"",T=u?D.CLASSES.SELECTED:"";return[D.BASE_CLASS,"c-btn--"+a,p,g,f,S,b,E,v,A,N,T,m].filter(Boolean).join(" ")},handleClick:e=>a=>{t.disabled||t.loading||!e||e(a)}}}function Lt(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:a=t.variant,size:n=t.size,fullscreen:r=t.fullscreen,className:i=""}=e,o="c-spinner";return`${o} ${a?`${o}--${a}`:""} ${"md"!==n?`${o}--${n}`:""} ${r?o+"--fullscreen":""} ${i}`.trim()}}}_t.displayName="Breadcrumb";const xt=({size:t="md",variant:a="primary",fullscreen:n=!1,className:r="",style:i,glass:o})=>{const{generateSpinnerClass:s}=Lt({size:t,variant:a,fullscreen:n}),l=s({size:t,variant:a,fullscreen:n,className:`${r} ${o?"c-spinner--glass":""}`.trim()}),c=e("div",{className:l,style:i,role:"status",children:e("span",{className:q.VISUALLY_HIDDEN,children:"Loading..."})});if(o){const t={displacementScale:20,blurAmount:1,cornerRadius:999,mode:"shader"},a=!0===o?t:{...t,...o};return e(Xe,{...a,children:c})}return c};xt.displayName="Spinner";const It=n.memo(l((({label:n,children:r,onClick:i,variant:o="primary",size:s="md",disabled:l=!1,loading:c=!1,loadingText:u,icon:m,iconName:p,iconSize:g="sm",iconPosition:f="start",iconOnly:S=!1,rounded:b=!1,fullWidth:E=!1,block:v=!1,active:A=!1,selected:N=!1,type:T="button",className:y="",as:_="button",href:C,target:L,glass:x,onHover:I,onFocus:O,onBlur:R,ariaLabel:w,ariaDescribedBy:M,ariaExpanded:k,ariaControls:P,tabIndex:B,style:z,...U},G)=>{const F=l||c,V=!(!C||F),H=d((()=>c?null:p?e(St,{name:p,size:g}):m),[m,p,g,c]),{generateButtonClass:Y,handleClick:W}=Ct({variant:o,size:s,disabled:F,rounded:b,glass:x,loading:c,fullWidth:E,block:v,active:A,selected:N}),K=d((()=>Y({variant:o,size:s,disabled:F,rounded:b,iconOnly:S,glass:x,loading:c,fullWidth:E,block:v,active:A,selected:N,className:y})),[o,s,F,b,S,x,c,E,v,A,N,y,Y]),j=h((e=>{F?e.preventDefault():i?.(e)}),[F,i]),Q=h((e=>{F||I?.(e)}),[F,I]),q=h((e=>{F||O?.(e)}),[F,O]),Z=h((e=>{F||R?.(e)}),[F,R]),$=d((()=>c&&u?u:n||r),[c,u,n,r]),X=d((()=>"sm"===s?"sm":"lg"===s?"md":"sm"),[s]),J=d((()=>{const n=H&&e("span",{className:D.ICON_CLASS,"aria-hidden":"true",children:H}),r=c&&e("span",{className:D.SPINNER_CLASS,"aria-hidden":"true",children:e(xt,{size:X,variant:"link"===o||"string"==typeof o&&o.startsWith("outline-")?"primary":"danger"===o?"error":o})}),i=!S&&$&&e("span",{className:D.LABEL_CLASS,children:$});return t(a,"end"===f?{children:[i,r,n]}:{children:[r,n,i]})}),[H,f,S,$,c,X,o]),ee=d((()=>({ref:G,className:K,type:"button"!==_||V?void 0:T,onClick:j,onMouseEnter:I?Q:void 0,onFocus:O?q:void 0,onBlur:R?Z:void 0,disabled:F&&"button"===_&&!V,"aria-disabled":F,"aria-busy":c,"aria-label":w||(S?n||r:void 0),"aria-describedby":M,"aria-expanded":k,"aria-controls":P,tabIndex:void 0!==B?B:F?-1:0,style:z,...U})),[G,K,_,T,j,Q,q,Z,F,c,w,S,n,r,M,k,P,B,z,U]);if(V){const{ref:t,...a}=ee,n={...a,type:void 0,disabled:void 0},r=e("a",{...n,ref:G,href:C,target:L,rel:"_blank"===L?"noopener noreferrer":void 0,children:J});if(x){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},a=!0===x?t:{...t,...x};return e(Xe,{...a,children:r})}return r}if(x){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},a=!0===x?t:{...t,...x};return e(Xe,{...a,children:e(_,{...ee,children:J})})}return e(_,{...ee,children:J})})));It.displayName="Button";const Ot=({title:n,children:r,icon:i,variant:o="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,glass:h,className:u,style:m,...p})=>{const{generateCalloutClass:g,handleClose:f}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:a=t.variant,oneLine:n=t.oneLine,toast:r=t.toast,glass:i=t.glass,className:o=""}=e;return`c-callout ${a?"c-callout--"+a:""} ${n?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${i?"c-callout--glass":""} ${o}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,oneLine:c,toast:d,glass:h,className:u,style:m}),S=()=>{const e={role:"region"};return d?(e.role="alert",e["aria-live"]="polite"):["warning","error"].includes(o)?(e.role="alert",e["aria-live"]="assertive"):["info","success"].includes(o)&&(e.role="status",e["aria-live"]="polite"),e},b=t(a,{children:[t("div",{className:"c-callout__content",children:[i&&e("div",{className:"c-callout__icon",children:i}),t("div",{className:"c-callout__message",children:[n&&e("div",{className:"c-callout__title",children:n}),r&&e("div",{className:"c-callout__text",children:r})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:f(s),"aria-label":"Close",children:e(St,{name:"X",size:"md"})})]});if(h){const t={displacementScale:30,cornerRadius:8,elasticity:0},a=!0===h?t:{...t,...h};return e("div",{className:g({variant:o,oneLine:c,toast:d,glass:h,className:u}),...S(),...p,style:m,children:e(Xe,{...a,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:a.cornerRadius},children:b})})})}return e("div",{className:g({variant:o,oneLine:c,toast:d,glass:h,className:u}),...S(),...p,style:m,children:b})};Ot.displayName="Callout";const Rt=n.memo(l((({size:n="md",variant:r="",appearance:i="filled",elevation:o="none",hoverable:s=!1,hoverElevation:l="md",row:c=!1,flat:u=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:S=!1,header:b,image:E,imageAlt:v="",title:A,text:N,actions:T,icon:y,footer:_,children:C,onClick:L,onHover:x,onFocus:I,href:O,target:R,glass:w,role:M,ariaLabel:D,ariaDescribedBy:k,tabIndex:P,className:B="",style:z,...U},G)=>{const F=!!(L||O||S),V=p||g,H=d((()=>[ue.CLASSES.BASE,"sm"===n?ue.CLASSES.SM:"","md"===n?ue.CLASSES.MD:"","lg"===n?ue.CLASSES.LG:"",r?"c-card--"+r:"","filled"===i?ue.CLASSES.FILLED:"","outlined"===i?ue.CLASSES.OUTLINED:"","ghost"===i?ue.CLASSES.GHOST:"","elevated"===i?ue.CLASSES.ELEVATED:"","none"===o?ue.CLASSES.ELEVATION_NONE:"","sm"===o?ue.CLASSES.ELEVATION_SM:"","md"===o?ue.CLASSES.ELEVATION_MD:"","lg"===o?ue.CLASSES.ELEVATION_LG:"","xl"===o?ue.CLASSES.ELEVATION_XL:"",s?"c-card--hoverable":"",s&&l?"c-card--hover-elevation-"+l:"",c?ue.CLASSES.ROW:"",u?ue.CLASSES.FLAT:"",m?ue.CLASSES.ACTIVE:"",p?ue.CLASSES.DISABLED:"",g?ue.CLASSES.LOADING:"",f?ue.CLASSES.SELECTED:"",S||F?ue.CLASSES.INTERACTIVE:"",w?ue.CLASSES.GLASS:"",B].filter(Boolean).join(" ")),[n,r,i,o,s,l,c,u,m,p,g,f,S,F,w,B]),Y=d((()=>M||(O?"link":F?"button":"article")),[M,O,F]),W=h((e=>{V?e.preventDefault():L?.(e)}),[V,L]),K=h((e=>{V?e.preventDefault():!F||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L&&L(e))}),[V,F,L]),j=h((e=>{V||x?.(e)}),[V,x]),Q=h((e=>{V||I?.(e)}),[V,I]),q=d((()=>void 0!==P?P:V?-1:F?0:void 0),[P,V,F]),Z=d((()=>t(a,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(E||y||b)&&t("div",{className:ue.SELECTORS.HEADER.substring(1),children:[b,E&&e("img",{src:E,alt:v,className:ue.SELECTORS.IMAGE.substring(1),loading:"lazy"}),y&&e("div",{className:ue.SELECTORS.ICON.substring(1),children:y})]}),t("div",{className:ue.SELECTORS.BODY.substring(1),children:[A&&e("h3",{className:ue.SELECTORS.TITLE.substring(1),children:A}),N&&e("p",{className:ue.SELECTORS.TEXT.substring(1),children:N}),C]}),T&&e("div",{className:ue.SELECTORS.ACTIONS.substring(1),children:T}),_&&e("div",{className:ue.SELECTORS.FOOTER.substring(1),children:_})]})),[g,E,v,y,b,A,N,C,T,_]),$={className:H,style:z,role:Y,"aria-label":D,"aria-describedby":k,"aria-disabled":!!V||void 0,tabIndex:q,onClick:F?W:void 0,onKeyDown:F?K:void 0,onMouseEnter:x?j:void 0,onFocus:I?Q:void 0,...U};if(O&&!V){const t=e("a",{...$,ref:G,href:O,target:R,rel:"_blank"===R?"noopener noreferrer":void 0,children:Z});return w?e(Xe,{...!0===w?{}:w,elasticity:0,children:t}):t}const X=e("div",{...$,ref:G,children:Z});return w?e(Xe,{...!0===w?{}:w,elasticity:0,children:X}):X})));Rt.displayName="Card";const wt=l((({title:a,subtitle:n,action:r,icon:i,children:o,className:s="",...l},c)=>{const d=`${ue.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[i&&e("div",{className:ue.SELECTORS.ICON.substring(1),children:i}),(a||n)&&t("div",{children:[a&&e("h3",{className:ue.SELECTORS.TITLE.substring(1),children:a}),n&&e("p",{className:ue.SELECTORS.TEXT.substring(1),children:n})]}),r&&e("div",{className:ue.SELECTORS.ACTIONS.substring(1),children:r}),o]})}));wt.displayName="CardHeader";const Mt=l((({scrollable:t=!1,maxHeight:a,children:n,className:r="",style:i,...o},s)=>{const l=`${ue.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...i,...t&&a?{maxHeight:"number"==typeof a?a+"px":a,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...o,children:n})}));Mt.displayName="CardBody";const Dt=l((({align:t,children:a,className:n="",style:r,...i},o)=>{const s=`${ue.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${n}`.trim();return e("div",{ref:o,className:s,style:r,...i,children:a})}));Dt.displayName="CardFooter",Rt.Header=wt,Rt.Body=Mt,Rt.Footer=Dt;const kt=(e={})=>{const{elevationEffect:t=!1,elevationClass:a=ue.CLASSES.ACTIVE,flipEffect:n=!1,flipTrigger:o="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=i(null),u=i(null),m=i(null),[p,g]=r(!1),[f,S]=r(!1),[b,E]=r(!1),[v,A]=r(!1),N=h((e=>{n&&"click"===o&&g((e=>!e)),c&&c(e)}),[n,o,c]),T=h((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n&&"click"===o&&g((e=>!e)),c&&c(e))}),[n,o,c]),y=h((()=>{A(!0),t&&S(!0),n&&"hover"===o&&g(!0)}),[t,n,o]),_=h((()=>{A(!1),t&&S(!1),n&&"hover"===o&&g(!1)}),[t,n,o]),C=h((()=>{E(!0)}),[]),L=h((()=>{E(!1)}),[]),x=h((()=>({className:[ue.CLASSES.BASE,f?a:"",p?ue.CLASSES.FLIPPED:"",b&&s?ue.CLASSES.FOCUSED:"",l?ue.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||n?0:-1,role:l?"button":void 0,onMouseEnter:y,onMouseLeave:_,onFocus:C,onBlur:L,onClick:N,onKeyDown:T})),[f,p,b,a,s,l,y,_,C,L,N,T,n]);return{cardRef:d,frontRef:u,backRef:m,isFlipped:p,isElevated:f,isFocused:b,isHovered:v,handleClick:N,handleKeyDown:T,handleMouseEnter:y,handleMouseLeave:_,handleFocus:C,handleBlur:L,getCardProps:x}},Pt=({elevationClass:t="is-elevated",className:a="",style:n,children:r,onClick:i,...o})=>{const{getCardProps:s}=kt({elevationEffect:!0,elevationClass:t,clickable:!!i,onClick:i,focusEffect:!0}),l=s();return e("div",{className:`${a} ${l.className}`,ref:l.ref,style:n,tabIndex:l.tabIndex,role:l.role,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,onFocus:l.onFocus,onBlur:l.onBlur,onClick:l.onClick,onKeyDown:l.onKeyDown,children:e(Rt,{...o,className:"",onClick:void 0,children:r})})};function Bt(e){const[t,a]=r({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),n=i(null);o((()=>()=>{n.current&&cancelAnimationFrame(n.current)}),[]);const s=h(((e,t,n,r,i,o)=>{a((a=>({...a,hoveredPoint:{datasetIndex:e,pointIndex:t,x:n,y:r,clientX:i,clientY:o}})))}),[]),l=h((()=>{a((e=>({...e,hoveredPoint:null})))}),[]),c=h(((e,t)=>{a((a=>{const n=a.selectedPoints.some((a=>a.datasetIndex===e&&a.pointIndex===t));return{...a,selectedPoints:n?a.selectedPoints.filter((a=>!(a.datasetIndex===e&&a.pointIndex===t))):[...a.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),d=h(((e,t,n)=>{a((a=>{const r=1-.001*e,i=Math.max(.1,Math.min(10,a.zoomLevel*r)),o=i/a.zoomLevel,s={x:t?t-(t-a.panOffset.x)*o:a.panOffset.x,y:n?n-(n-a.panOffset.y)*o:a.panOffset.y};return{...a,zoomLevel:i,panOffset:s}}))}),[]),u=h(((e,t)=>{a((a=>({...a,panOffset:{x:a.panOffset.x+e,y:a.panOffset.y+t}})))}),[]),m=h(((e,t)=>{a((a=>({...a,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=h((()=>{a((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=h(((e,t)=>{a((a=>({...a,crosshair:{x:e,y:t}})))}),[]),f=h((()=>{a((e=>({...e,crosshair:null})))}),[]),S=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n={...a,touchState:{...a.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&a.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,i=t[0].y-a.top;return{...n,isDragging:!0,dragStart:{x:r,y:i}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return n}))}),[]),b=h((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&a.isDragging&&a.dragStart&&a.panEnabled){const e=t[0].x-n.left,r=t[0].y-n.top,i=a.touchState.touches[0];let o,s;i?(o=e-(i.x-n.left),s=r-(i.y-n.top)):(o=e-a.dragStart.x,s=r-a.dragStart.y);const l=.6,c=o*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...a,panOffset:{x:a.panOffset.x+c,y:a.panOffset.y+d},touchState:{...a.touchState,touches:t}}:{...a,touchState:{...a.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&a.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(a.touchState.lastDistance>0){const r=e/a.touchState.lastDistance,i=Math.max(.1,Math.min(10,a.zoomLevel*r)),o=(t[0].x+t[1].x)/2-n.left,s=(t[0].y+t[1].y)/2-n.top,l=i/a.zoomLevel,c={x:o-(o-a.panOffset.x)*l,y:s-(s-a.panOffset.y)*l};return{...a,zoomLevel:i,panOffset:c,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),E=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{if(0===t.length)return{...a,isDragging:!1,dragStart:null,touchState:{...a.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&a.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,i=t[0].y-n.top;return{...a,dragStart:{x:r,y:i},touchState:{...a.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),v=h((e=>{"pen"===e.pointerType&&a((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),A=h((e=>{"pen"===e.pointerType&&a((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),N=h((e=>{"pen"===e.pointerType&&a((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),T=h(((e,t=Ce.DEFAULT_WIDTH,a=Ce.DEFAULT_HEIGHT,n={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;const i=e.flatMap((e=>e.data));if(0===i.length)return null;const o=Math.min(...i.map((e=>e.value))),s=Math.max(...i.map((e=>e.value))),l=s-o||1,c=t-n.left-n.right,d=a-n.top-n.bottom;return{xScale:(e,t=i.length)=>t>1?n.left+e/(t-1)*c:n.left+c/2,yScale:e=>n.top+d-(e-o)/l*d,minValue:o,maxValue:s,valueRange:l,innerWidth:c,innerHeight:d,width:t,height:a,padding:n}}),[]),y=h((e=>{if(0>=e)return[];const t=[];for(let a=0;e>a;a++){const e=a%Ce.DEFAULT_COLORS.length;t.push(Ce.DEFAULT_COLORS[e])}return t}),[]),_=i(null);return{interactionState:t,setInteractionState:a,handlePointHover:s,handlePointLeave:l,handlePointClick:c,handleZoom:d,handlePan:u,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:S,handleTouchMove:b,handleTouchEnd:E,handlePointerDown:v,handlePointerMove:A,handlePointerUp:N,calculateScales:T,getChartColors:y,svgRef:_}}Pt.displayName="ElevationCard";const zt=s(l((({chartType:a="line",groups:n=[],enableDefaults:s=!0,defaults:l={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:d="md",position:u="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:f,onZoomIn:S,onZoomOut:b,onZoomReset:E,onPanToggle:v,onReset:A,onGridToggle:N,onLegendToggle:T,onTooltipsToggle:y,onAnimationsToggle:_,state:C={},className:L="",...x},I)=>{const[O,R]=r(!1),[w,M]=r(!1),D=i(null),k=i(null),P=i(null),B=i(null),z=n&&n.length>0?{refresh:l.refresh??!0,export:l.export??!0,fullscreen:l.fullscreen??!0,settings:l.settings??!0,zoom:n.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:n.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:n.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:l.grid??!0,legend:l.legend??!0,tooltips:l.tooltips??!0,animations:l.animations??!0}:l;o((()=>{const e=e=>{D.current&&!D.current.contains(e.target)&&P.current&&!P.current.contains(e.target)&&R(!1),k.current&&!k.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&M(!1)};if(O||w)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[O,w]),o((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&z.refresh&&m&&(e.preventDefault(),m()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&z.export&&p&&(e.preventDefault(),R(!O)),"F11"===e.key&&z.fullscreen&&g&&(e.preventDefault(),g(!C.isFullscreen))," "===e.key&&z.pan&&v&&(e.preventDefault(),v(!C.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!z.reset||(e.preventDefault(),E?.(),A?.()),"+"!==e.key&&"="!==e.key||z.zoom&&S&&(e.preventDefault(),S()),"-"!==e.key&&"_"!==e.key||z.zoom&&b&&(e.preventDefault(),b()),"Escape"===e.key&&(R(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[z,m,p,g,v,E,A,S,b,C,O]);const U=h((()=>{const e=[];return z.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:C.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),z.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>R(!O),disabled:C.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[z,m,p,C,O]),G=h((()=>{const e=[];return z.zoom&&(S||b)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>S?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>b?.(),tooltip:"Zoom out (-)",shortcut:"-"}),z.pan&&v&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>v?.(!C.panEnabled),active:C.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),z.reset&&(E||A)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{E?.(),A?.()},tooltip:"Reset view (R)",shortcut:"R"}),z.fullscreen&&g&&e.push({id:"fullscreen",label:C.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:C.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>g?.(!C.isFullscreen),variant:"success",tooltip:(C.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[z,S,b,v,E,A,g,C]),F=h((()=>{const e=[];return z.grid&&N&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>N(!C.showGrid),active:C.showGrid,tooltip:"Toggle grid lines"}),z.legend&&T&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>T(!C.showLegend),active:C.showLegend,tooltip:"Toggle legend"}),z.tooltips&&y&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>y(!C.showTooltips),active:C.showTooltips,tooltip:"Toggle tooltips"}),z.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!C.animationsEnabled),active:C.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[z,N,T,y,_,C]),V=h((()=>{const e=[];return z.settings&&f&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!w),active:w,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[z,f,w]),H=n&&n.length>0?n:s?[...U(),...G(),...F(),...V()]:[],Y=a=>{const n="export"===a.id?P:"settings"===a.id?B:null;return t("button",{ref:n,className:`${Ce.ACTION_CLASS} ${a.variant?`${Ce.ACTION_CLASS}--${a.variant}`:""} ${a.active?"is-active":""}`,onClick:()=>{if(a.onClick)a.onClick();else if("export"===a.id&&p)R(!O);else if("settings"===a.id&&f)M(!w);else switch(a.id){case"zoom-in":S?.();break;case"zoom-out":b?.();break;case"pan":v?.(!C.panEnabled);break;case"reset":E?.(),A?.();break;case"fullscreen":g?.(!C.isFullscreen);break;case"refresh":m?.()}},disabled:a.disabled,title:a.tooltip,type:"button","aria-label":a.label,"aria-pressed":a.active?"true":"false","aria-expanded":"export"===a.id?O:"settings"===a.id?w:void 0,children:[e(St,{name:a.icon,size:"sm"}),"lg"===d&&e("span",{className:Ce.ACTION_CLASS+"-label",children:a.label})]},a.id)},W=`${Ce.TOOLBAR_CLASS} ${Ce.TOOLBAR_CLASS}--${d} ${Ce.TOOLBAR_CLASS}--${u} ${L}`.trim();return e("div",{ref:I,className:W,...x,children:H.map(((n,r)=>t("div",{className:Ce.TOOLBAR_CLASS+"-group",children:[n.separator&&r>0&&e("div",{className:Ce.TOOLBAR_CLASS+"-separator"}),n.label&&"lg"===d&&e("span",{className:Ce.TOOLBAR_CLASS+"-group-label",children:n.label}),t("div",{className:Ce.TOOLBAR_CLASS+"-actions",children:[n.actions.map(Y),n.actions.some((e=>"export"===e.id))&&(O&&p?t("div",{ref:D,className:""+Ce.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:Ce.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),c.map((t=>e("button",{className:""+Ce.EXPORT_OPTION_CLASS,onClick:()=>{p(t),R(!1)},disabled:C.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),n.actions.some((e=>"settings"===e.id))&&(w?t("div",{ref:k,className:""+Ce.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:Ce.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:Ce.SETTINGS_MENU_CLASS+"-content",children:[z.grid&&N&&e("div",{className:Ce.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ce.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showGrid??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),z.legend&&T&&e("div",{className:Ce.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ce.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showLegend??!1,onChange:e=>T(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),z.tooltips&&y&&e("div",{className:Ce.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ce.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showTooltips??!1,onChange:e=>y(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),z.animations&&_&&e("div",{className:Ce.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ce.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==C.zoomLevel&&t("div",{className:`${Ce.SETTINGS_MENU_CLASS}-item ${Ce.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:Ce.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(C.zoomLevel||1)),"%"]})]}),t("div",{className:`${Ce.SETTINGS_MENU_CLASS}-item ${Ce.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ce.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:Ce.SETTINGS_MENU_CLASS+"-value",children:a})]})]})]}):null)]})]},n.id)))})})));zt.displayName="ChartToolbar";const Ut=g(null),Gt=s(l((({children:a,type:n="line",size:s="md",variant:l="primary",title:c,subtitle:u,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:S,onExport:b,onRefresh:E,showToolbar:v=!1,enableFullscreen:A=!1,enableExport:N=!1,enableRefresh:T=!1,exportFormats:y=["png","svg","csv"],datasets:_,config:C,toolbarConfig:L,customToolbarActions:x,customToolbarGroups:I,data:O,showLegend:R,interactive:w,fullscreen:M,onDataPointClick:D,onLegendItemClick:k,glass:P,...B},z)=>{const[U,G]=r(!1),[F,V]=r(!1),H=i(null),[Y,W]=r(1),[K,j]=r({x:0,y:0}),[Q,q]=r(!1),Z=h((e=>{G(e),S?.(e)}),[S]),$=h((()=>{W((e=>Math.min(1.2*e,5)))}),[]),X=h((()=>{W((e=>Math.max(e/1.2,.2)))}),[]),J=h((()=>{W(1),j({x:0,y:0})}),[]),ee=h((e=>{q(e)}),[]),te=h((()=>{W(1),j({x:0,y:0}),q(!1)}),[]),ae=d((()=>({onRefresh:E,onExport:b,onFullscreen:Z,onZoomIn:$,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te})),[E,b,Z,$,X,J,ee,te]),{state:ne,handlers:re,toolbarGroups:ie}=function(e,t={},a={}){const[n,i]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:s=!0,defaults:l={},exportFormats:c=["png","svg","csv"],customActions:u=[],customGroups:m=[]}=t,p=h((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};default:return t}}),[e]),g=d((()=>({...p(),...l})),[p,l]),f={onRefresh:h((()=>{i((e=>({...e,isRefreshing:!0}))),a.onRefresh?.(),setTimeout((()=>{i((e=>({...e,isRefreshing:!1})))}),1e3)}),[a.onRefresh]),onExport:h((async e=>{i((e=>({...e,isExporting:!0})));try{await(a.onExport?.(e))}finally{i((e=>({...e,isExporting:!1})))}}),[a.onExport]),onFullscreen:h((e=>{i((t=>({...t,isFullscreen:e}))),a.onFullscreen?.(e)}),[a.onFullscreen]),onZoomIn:h((()=>{i((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),a.onZoomIn?.()}),[a.onZoomIn]),onZoomOut:h((()=>{i((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),a.onZoomOut?.()}),[a.onZoomOut]),onZoomReset:h((()=>{i((e=>({...e,zoomLevel:1}))),a.onZoomReset?.()}),[a.onZoomReset]),onPanToggle:h((e=>{i((t=>({...t,panEnabled:e}))),a.onPanToggle?.(e)}),[a.onPanToggle]),onReset:h((()=>{i((e=>({...e,zoomLevel:1,panEnabled:!1}))),a.onReset?.()}),[a.onReset]),onGridToggle:h((e=>{i((t=>({...t,showGrid:e}))),a.onGridToggle?.(e)}),[a.onGridToggle]),onLegendToggle:h((e=>{i((t=>({...t,showLegend:e}))),a.onLegendToggle?.(e)}),[a.onLegendToggle]),onTooltipsToggle:h((e=>{i((t=>({...t,showTooltips:e}))),a.onTooltipsToggle?.(e)}),[a.onTooltipsToggle]),onAnimationsToggle:h((e=>{i((t=>({...t,animationsEnabled:e}))),a.onAnimationsToggle?.(e)}),[a.onAnimationsToggle]),onSettings:h((()=>{}),[])},S=h((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:n.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:n.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const a=[];g.zoom&&a.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&a.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!n.panEnabled),active:n.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&a.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&a.push({id:"fullscreen",label:n.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:n.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!n.isFullscreen),variant:"success",tooltip:(n.isFullscreen?"Exit":"Enter")+" fullscreen"}),a.length>0&&e.push({id:"view-actions",label:"View",actions:a,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!n.showGrid),active:n.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!n.showLegend),active:n.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!n.showTooltips),active:n.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!n.animationsEnabled),active:n.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.onSettings,tooltip:"Chart settings"}]}),e.push(...m),u.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...u)}}else e.push({id:"custom-actions",label:"Custom",actions:u});return e}),[e,g,n,f,u,m]);return o((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!n.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!n.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!n.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,n,f]),{state:n,setState:i,handlers:f,toolbarGroups:S(),config:{enableDefaults:s,defaults:g,exportFormats:c}}}(n,{enableDefaults:v,defaults:{refresh:T,export:N,fullscreen:A,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:y},ae);Bt(),o((()=>{W(ne.zoomLevel)}),[ne.zoomLevel]),o((()=>{q(ne.panEnabled)}),[ne.panEnabled]),o((()=>{ne.zoomLevel}),[Y,ne.zoomLevel]);const oe=Ft({type:n,size:s,variant:l,loading:m,error:p,className:g,interactive:w,panEnabled:Q});h((()=>{re.onFullscreen(!ne.isFullscreen)}),[re,ne.isFullscreen]),h((async e=>{await re.onExport(e)}),[re]),h((()=>{re.onRefresh()}),[re]),o((()=>{G(ne.isFullscreen),V(ne.isExporting)}),[ne.isFullscreen,ne.isExporting]);const se=`${oe}${U?" "+Ce.CLASSES.FULLSCREEN:""}${P?" c-chart--glass":""}`,le=d((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,enableLiquidBlur:!1,enableBorderEffect:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=d((()=>P?!0===P?le:{...le,...P}:null),[P,le]),de=d((()=>ce?.cornerRadius||void 0),[ce?.cornerRadius]),he=d((()=>({zoomLevel:Y,panOffset:K,panEnabled:Q,onZoomIn:$,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:W,setPanOffset:j,setPanEnabled:q,toolbarState:{showTooltips:ne.showTooltips,showLegend:ne.showLegend,animationsEnabled:ne.animationsEnabled,showGrid:ne.showGrid}})),[Y,K,Q,$,X,J,ee,te,q,ne.showTooltips,ne.showLegend,ne.animationsEnabled,ne.showGrid]),ue=t("div",{ref:H,className:se,"aria-label":f||n+" chart",role:"img",tabIndex:0,...B,children:[(c||u||v)&&t("div",{className:Ce.HEADER_CLASS+" u-d-flex u-justify-between u-align-items-start u-gap-4",children:[t("div",{className:Ce.HEADER_CONTENT_CLASS+" u-flex-1",children:[c&&e("h3",{className:Ce.TITLE_CLASS+" u-mb-1",children:c}),u&&e("p",{className:Ce.SUBTITLE_CLASS+" u-mb-0",children:u})]}),(()=>{if(!v)return null;const t=!ie||0===ie.length;return e(zt,{chartType:n,groups:ie,defaults:{refresh:T,export:N,fullscreen:A,zoom:void 0!==ne.zoomLevel,pan:void 0!==ne.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:y,state:{isFullscreen:ne.isFullscreen,isExporting:ne.isExporting,isRefreshing:ne.isRefreshing,zoomLevel:Y,panEnabled:Q,showGrid:ne.showGrid,showLegend:ne.showLegend,showTooltips:ne.showTooltips,animationsEnabled:ne.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:$,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:Ce.CONTENT_CLASS,children:[m&&t("div",{className:Ce.LOADING_CLASS,children:[e("div",{className:Ce.LOADING_SPINNER_CLASS}),e("span",{className:Ce.LOADING_TEXT_CLASS,children:ne.isExporting?"Exporting chart...":ne.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:Ce.ERROR_CLASS,children:[e("div",{className:Ce.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:Ce.ERROR_CONTENT_CLASS,children:[e("div",{className:Ce.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:Ce.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!a&&t("div",{className:Ce.EMPTY_CLASS,children:[e("div",{className:Ce.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:Ce.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:Ce.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&a&&e("div",{className:Ce.CANVAS_CLASS,children:a})]})]}),me=ce?e(Xe,{...ce,cornerRadius:de,style:{width:"100%",height:"100%",...ce.style},children:ue}):ue;return e(Ut.Provider,{value:he,children:e("div",{ref:z,style:{width:"100%",height:"100%"},children:me})})}))),Ft=({type:e,size:t,variant:a,loading:n,error:r,className:i,interactive:o,panEnabled:s})=>{const l=[Ce.ROOT_CLASS];if(e){const t=e.toUpperCase(),a=Ce.CLASSES[t]||`${Ce.TYPE_PREFIX}${e}`;l.push(a)}if(t){const e=t.toUpperCase(),a=Ce.CLASSES[e]||`${Ce.SIZE_PREFIX}${t}`;l.push(a)}if(a){const e=a.toUpperCase(),t=Ce.CLASSES[e]||`${Ce.VARIANT_PREFIX}${a}`;l.push(t)}return(o||s)&&l.push(Ce.CLASSES.INTERACTIVE),n&&l.push(Ce.LOADING_STATE_CLASS),r&&l.push(Ce.ERROR_STATE_CLASS),i&&l.push(i),l.join(" ")};Gt.displayName="Chart";const Vt=s(l((({datasets:n=[],config:s,width:l=Ce.DEFAULT_WIDTH,height:c=Ce.DEFAULT_HEIGHT,onDataPointClick:u,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:S=!0,renderContent:b},E)=>{const v=f(Ut),{calculateScales:A,getChartColors:N}=Bt(),{processedData:T,isProcessing:y}=function(e,t){const[a,n]=r(e),[i,s]=r(!1),{enableDecimation:l=!1,maxDataPoints:c=1e3,enableRealTime:d=!1,realTimeInterval:u=1e3}=t||{},m=h(((e,t)=>{if(!l||!e.length)return e;const a=e[0]?.data?.length||0;if(t>=a)return e;const n=Math.ceil(a/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%n==0))||[]})))}),[l]),p=h(((e,t)=>{const a=[];for(let n=0;n<e.length;n++)if(t-1>n)a.push(null);else{const r=e.slice(n-t+1,n+1).reduce(((e,t)=>e+t),0);a.push(r/t)}return a}),[]),g=h((e=>{const t=e.length;if(2>t)return e.map((()=>null));const a=e.reduce(((e,t,a)=>e+a),0),n=e.reduce(((e,t)=>e+t),0),r=(t*e.reduce(((e,t,a)=>e+a*t),0)-a*n)/(t*e.reduce(((e,t,a)=>e+a*a),0)-a*a),i=(n-r*a)/t;return e.map(((e,t)=>r*t+i))}),[]);return o((()=>{s(!0),(async()=>{let t=[...e];l&&c&&(t=m(t,c)),n(t),s(!1)})()}),[e,m,l,c]),o((()=>{if(!d)return;const e=setInterval((()=>{n((e=>[...e]))}),u);return()=>clearInterval(e)}),[d,u]),{processedData:a,isProcessing:i,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:n}}(n,{enableRealTime:p,enableDecimation:S,maxDataPoints:1e3}),{isOptimizing:_,memoizedScales:C}=function(e,t){const{enableVirtualization:a=!1,enableMemoization:n=!0,debounceMs:s=100}=t||{},[l,c]=r(!1),u=i(null),m=d((()=>n?e.map((e=>{const t=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],a=t.length>0?t:[0];return{label:e.label,dataLength:e.data?.length||0,minValue:Math.min(...a),maxValue:Math.max(...a)}})):null),[e,n]),p=h((e=>{u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{e(),c(!1)}),s),c(!0)}),[s]),g=h(((t,n,r)=>{if(!a)return{start:0,end:e[0]?.data?.length||0};const i=Math.floor(t/n),o=Math.min(i+Math.ceil(r/n)+1,e[0]?.data?.length||0);return{start:Math.max(0,i-1),end:o}}),[a,e]);return o((()=>()=>{u.current&&clearTimeout(u.current)}),[]),{isOptimizing:l,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(T,{enableVirtualization:!1,enableMemoization:S,debounceMs:100}),{announcement:L,focusedPoint:x}=function(e,t){const{enableKeyboardNavigation:a=!0,enableScreenReader:n=!0,announceDataChanges:i=!0}=t||{},[s,l]=r({datasetIndex:0,pointIndex:0}),[c,d]=r(""),u=h(((t,n)=>{if(!a||!e.length)return;const r=e.length-1,i=(e[s.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),l((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),l((e=>({...e,pointIndex:Math.min(i,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),l((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),l((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),l((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),l((e=>({...e,pointIndex:i})));break;case"Enter":case" ":t.preventDefault(),n?.(s.datasetIndex,s.pointIndex)}}),[a,e,s]),m=h((e=>{n&&(d(e),setTimeout((()=>d("")),1e3))}),[n]);o((()=>{if(!i||!e.length)return;const t=e.reduce(((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,i,m]);const p=h((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const a=e.data?.length||0,n=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],r=n.length>0?Math.min(...n):0,i=n.length>0?Math.max(...n):0;return`Dataset ${t+1}: ${e.label}, ${a} points, range ${r} to ${i}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:s,announcement:c,handleKeyDown:u,announceData:m,getAccessibleDescription:p,setFocusedPoint:l}}(T,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=i({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[O,R]=r(null),w=i(null),M=i(null),[D,k]=r(!1),[P,B]=r({width:0,height:0});o((()=>{const e=M.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(B({width:Math.floor(t.width),height:Math.floor(t.height)}),k(!0))};t();const a=requestAnimationFrame((()=>{t()})),n=new ResizeObserver((e=>{for(const t of e){const{width:e,height:a}=t.contentRect;e>0&&a>0&&(B({width:Math.floor(e),height:Math.floor(a)}),k(!0))}}));return n.observe(e),()=>{cancelAnimationFrame(a),n.disconnect()}}),[]),o((()=>{l===Ce.DEFAULT_WIDTH&&c===Ce.DEFAULT_HEIGHT||(B({width:l,height:c}),k(!0))}),[l,c]);const z=h(((e,t,a,n,r,i)=>{R({datasetIndex:e,pointIndex:t,x:a,y:n,clientX:r,clientY:i})}),[]),U=h((()=>{R(null)}),[]),G=i(null),F=h((e=>{m&&v&&v.panEnabled&&I.current.isDragging&&(G.current||(G.current=requestAnimationFrame((()=>{const t=w.current;if(!t)return void(G.current=null);const a=t.getBoundingClientRect(),n=e.clientX-a.left,r=e.clientY-a.top,i=n-I.current.dragStart.x,o=r-I.current.dragStart.y;v.setPanOffset({x:I.current.lastPan.x+i,y:I.current.lastPan.y+o}),G.current=null}))))}),[m,v]),V=h((e=>{if(!m||!v||!v.panEnabled)return;const t=w.current;if(!t)return;const a=t.getBoundingClientRect(),n=e.clientX-a.left,r=e.clientY-a.top;I.current.isDragging=!0,I.current.dragStart={x:n,y:r},I.current.lastPan={...v.panOffset}}),[m,v]),H=h((()=>{I.current.isDragging=!1}),[]),Y=d((()=>({onDataPointClick:u,onPointHover:z,onPointLeave:U,onMouseMove:F,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[u,z,U,F,V,H]),W=d((()=>({announcement:L,focusedPoint:x,getAccessibleDescription:()=>"Chart description"})),[L,x]),K=d((()=>v?`translate(${v.panOffset.x}px, ${v.panOffset.y}px) scale(${v.zoomLevel})`:""),[v?.panOffset.x,v?.panOffset.y,v?.zoomLevel]),j=d((()=>{if(!D||0===P.width||0===P.height)return null;const e=A(T,P.width,P.height,void 0,s);if(!e)return null;const t=N(T.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:T.map(((e,a)=>({...e,color:e.color||t[a]})))}}),[T,s,P.width,P.height,D,A,N]);if(o((()=>()=>{G.current&&cancelAnimationFrame(G.current)}),[]),o((()=>{const e=w.current;if(!e||!m||!v)return;const t=e=>{if(void 0===v.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,a=Math.max(.2,Math.min(5,v.zoomLevel+t));v.setZoomLevel(a)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,v]),_)return t("div",{className:`${Ce.CONTENT_CLASS} ${Ce.LOADING_CLASS}`,children:[e("div",{className:Ce.LOADING_SPINNER_CLASS}),e("span",{className:Ce.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!D||0===P.width||0===P.height)return e("div",{ref:M,className:Ce.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!j)return null;const Q=P.width,q=P.height;return t(a,{children:[e("div",{ref:M,className:Ce.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:w,width:Q,height:q,viewBox:`0 0 ${Q} ${q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:K,transformOrigin:"center center",willChange:v?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:F,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[j.datasets[0]?.data.map(((t,a)=>e("line",{x1:j.scales.xScale(a,j.datasets[0]?.data.length),y1:0,x2:j.scales.xScale(a,j.datasets[0]?.data.length),y2:q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+a))),Array.from({length:5}).map(((t,a)=>{const n=j.scales.minValue+(j.scales.maxValue-j.scales.minValue)*(a/4);return e("line",{x1:0,y1:j.scales.yScale(n),x2:Q,y2:j.scales.yScale(n),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+a)}))]}),b({scales:j.scales,colors:j.colors,datasets:j.datasets,interactionState:{hoveredIndex:O?.pointIndex??null,selectedIndex:null},handlers:Y,accessibility:W,hoveredPoint:O,toolbarState:v?{showTooltips:v.toolbarState?.showTooltips,showLegend:v.toolbarState?.showLegend,animationsEnabled:v.toolbarState?.animationsEnabled,showGrid:v.toolbarState?.showGrid}:void 0,config:s}),m&&v?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:q/2,x2:Q,y2:q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:Q/2,y1:0,x2:Q/2,y2:q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:L})]})})));Vt.displayName="ChartRenderer";const Ht=s(l((({type:t,datasets:a=[],config:n={},renderContent:r,interactive:i=!0,enableRealTime:o=!1,enableAccessibility:s=!0,enablePerformanceOptimization:l=!0,onDataPointClick:c,...d},u)=>{const m=h((e=>r(e)),[r]);return e(Gt,{ref:u,type:t,datasets:a,config:n,...d,children:e(Vt,{datasets:a,config:n,interactive:i,enableRealTime:o,enableAccessibility:s,enablePerformanceOptimization:l,onDataPointClick:c,renderContent:m})})})));Ht.displayName="BaseChart";const Yt=s(l((({datasets:t=[],config:a={},chartType:n="line",particleEffects:r,onDataPointClick:s,...l},c)=>{const d=i(0),u=i(0),m=i([]),p=h((({scales:t,colors:a,datasets:i,handlers:s,hoveredPoint:l,toolbarState:c,config:h})=>{if(o((()=>{const e=t=>{u.current=t,d.current=requestAnimationFrame(e)};return d.current=requestAnimationFrame(e),()=>{d.current&&cancelAnimationFrame(d.current)}}),[]),!i.length)return null;const p=40,g=t.width-80,f=t.height-80,S=[];if(i.forEach(((t,r)=>{const i=t.color||a[r%a.length];if("bar"===n)t.data.forEach(((a,n)=>{const o=g/t.data.length*.8,l=p+n*(g/t.data.length)+(g/t.data.length-o)/2,c=a.value/100*f,d=p+f-c;S.push(e("rect",{x:l,y:d,width:o,height:c,fill:i,style:{transform:`scaleY(${.1*Math.sin(.01*u.current+.2*n)+.9})`,transformOrigin:"bottom"},onClick:()=>s.onDataPointClick?.(a,r,n)},`bar-${r}-${n}`))}));else{const a=t.data.map(((e,a)=>({x:p+a/(t.data.length-1)*g,y:p+f-e.value/100*f})));if(a.length>0){const o="M "+a.map((e=>`${e.x},${e.y}`)).join(" L ");if("area"===n){const t=`${o} L ${p+g},${p+f} L 40,${p+f} Z`;S.push(e("path",{d:t,fill:i,fillOpacity:"0.3",style:{transform:`translateY(${2*Math.sin(.01*u.current)}px)`}},"area-"+r))}S.push(e("path",{d:o,stroke:i,fill:"none",className:"c-chart__data-line",style:{transform:`translateY(${2*Math.sin(.01*u.current)}px)`}},"line-"+r)),a.forEach(((a,n)=>{S.push(e("circle",{cx:a.x,cy:a.y,r:"4",fill:i,style:{transform:`scale(${1+.2*Math.sin(.01*u.current+n)})`},onClick:()=>s.onDataPointClick?.(t.data[n],r,n)},`point-${r}-${n}`))}))}}})),r?.enabled)for(let n=0;n<r.count;n++){const t=m.current[n];t&&S.push(e("circle",{cx:t.x,cy:t.y,r:t.size,fill:t.color,style:{opacity:t.life}},"particle-"+n))}return e("g",{children:S})}),[n,r]);return e(Ht,{ref:c,type:"animated",datasets:t,config:a,renderContent:p,onDataPointClick:s,...l})})));Yt.displayName="AnimatedChart";const Wt=s((({dataPoint:n,datasetLabel:s,datasetColor:l,position:c,visible:d,customRenderer:h})=>{const u=i(null),[m,p]=r(c);return o((()=>{if(!d||!u.current)return;const e=u.current.getBoundingClientRect(),t=window.innerWidth,a=window.innerHeight;let n=c.x,r=c.y;n=n+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>a-16?c.y-e.height-12:c.y-e.height/2,n=Math.max(16,Math.min(n,t-e.width-16)),r=Math.max(16,Math.min(r,a-e.height-16)),p({x:n,y:r})}),[c,d]),d&&n?O(e("div",{ref:u,className:"c-chart__tooltip",style:{left:m.x+"px",top:m.y+"px",opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease, transform 0.2s ease",transform:"translateZ(0)",position:"fixed",zIndex:1e3,pointerEvents:"none"},children:h?h(n):t(a,{children:[e("div",{className:"c-chart__tooltip-title",children:n.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:n.value})]}),n.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(n.metadata).map((([a,n])=>t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[a,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:n+""})]},a)))})]})]})}),document.body):null}));Wt.displayName="ChartTooltip";const Kt=s(l((({datasets:n=[],config:r={},areaOptions:i={},onDataPointClick:o,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...i};return e(Ht,{ref:l,type:"area",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:d})=>{if(!i.length)return null;const h=l?.showTooltips??d?.showTooltips??!0;return t(a,{children:[i.map(((a,i)=>{const l=a.color||r[i],d=a.data||[];if(0===d.length)return null;const h=d.map(((e,t)=>({x:n.xScale(t,d.length),y:n.yScale(e.value)}))),u=`M ${h.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${h[h.length-1]?.x},${n.height} L ${h[0]?.x},${n.height} Z`;return t("g",{children:[e("path",{d:u,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,a)=>{const r=n.xScale(a,d.length),c=n.yScale(t.value),h=s?.datasetIndex===i&&s?.pointIndex===a;return e("circle",{cx:r,cy:c,r:h?6:4,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__area-point "+(h?"c-chart__area-point--hovered":""),onClick:()=>o.onDataPointClick?.(t,i,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,a,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,style:{cursor:"pointer"}},"point-"+a)}))]},"dataset-"+i)})),h&&s&&e(Wt,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));function jt(e,t={}){const[a,n]=r(null),[i,o]=r(0),[s,l]=r(!1),c=h(((e,a,n,r={top:20,right:30,bottom:40,left:50},i=!1)=>{if(!e.length)return[];const o=a-r.left-r.right,s=n-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),h=Math.min(0,...d),u=Math.max(...d)-h,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let S,b,E,v;if(i){const e=s/l,a=e*(1-(t.groupPadding||.2));v=t.stacked?a:a/c,b=r.top+g*e+(e-a)/2,t.stacked||(b+=d*v*(1+(t.barPadding||.05))),S=r.left,E=(f-h)/u*o,t.stacked&&d>0?(S=r.left+(p[g]-h)/u*o,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=o/l,a=e*(1-(t.groupPadding||.2));if(E=t.stacked?a:a/c,S=r.left+g*e+(e-a)/2,t.stacked||(S+=d*E*(1+(t.barPadding||.05))),v=(f-h)/u*s,b=n-r.bottom-v,t.stacked&&d>0){const e=(p[g]-h)/u*s;b=n-r.bottom-e-v,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(i?E:v)<t.minBarHeight&&(i?E=t.minBarHeight:(v=t.minBarHeight,b=n-r.bottom-v)),t.maxBarWidth&&(i?v:E)>t.maxBarWidth)if(i)v=t.maxBarWidth,b=r.top+g*(s/l)+(s/l-v)/2;else{E=t.maxBarWidth;const e=(a-r.left-r.right)/l;S=r.left+g*e+(e-E)/2}m.push({x:Math.max(S,0),y:Math.max(b,0),width:Math.max(E,0),height:Math.max(v,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=h((()=>{if(!t.enableAnimations)return;l(!0),o(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,r=Math.min(t/e,1);o(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(n):l(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),u=h(((e,t,a,r,i,o)=>{n({datasetIndex:e,pointIndex:t,chartX:a,chartY:r,clientX:i,clientY:o})}),[]),m=h((()=>{n(null)}),[]),p=h((e=>t.useGradients?e.map(((e,t)=>{const a=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:a,opacity:.8},{offset:"100%",color:a,opacity:.4}]}})):[]),[t.useGradients]),g=h((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]);return{hoveredBar:a,animationProgress:i,isAnimating:s,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:h(((e,a=!1)=>{const{x:n,y:r,width:i,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:n+i/2,y:r+o/2};case"outside":return{x:a?n+i+5:n+i/2,y:a?r+o/2:r-5}}}),[t.dataLabelPosition]),handleBarHover:u,handleBarLeave:m,startAnimation:d,formatValue:g,setHoveredBar:n,setAnimationProgress:o,setIsAnimating:l}}Kt.displayName="AreaChart";const Qt=s(l((({datasets:n=[],config:r={},barOptions:i={},horizontal:o=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:h,handleBarLeave:u,hoveredBar:m,formatValue:p}=jt(0,i);return e(Ht,{ref:c,type:"bar",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:u})=>{if(!s.length)return null;const m=h?.showTooltips??u?.showTooltips??!0,g=d(s,n.width,n.height,n.padding,o);return t(a,{children:[g.map(((a,n)=>{const o=s[a.datasetIndex],d=o.data?.[a.pointIndex],h=o.color||r[a.datasetIndex],u=c?.datasetIndex===a.datasetIndex&&c?.pointIndex===a.pointIndex;return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:h,className:"c-chart__bar "+(u?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,a.datasetIndex,a.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(a.datasetIndex,a.pointIndex,a.x,a.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showValues&&e("text",{x:a.x+a.width/2,y:a.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(a.value)})]},"bar-"+n)})),m&&c&&e(Wt,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));Qt.displayName="BarChart";const qt=s(l((({bubbleData:n=[],config:r={},bubbleOptions:i={},onDataPointClick:o,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:h=.7,showLabels:u=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:S="Size",colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:E=!1}=i;return e(Ht,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:n}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:f,config:S})=>{if(!n.length)return null;const v=f?.showTooltips??S?.showTooltips??!0,A=n.map((e=>e.size)),N=Math.min(...A),T=Math.max(...A)-N||1,y=n.map(((a,n)=>{const i=c+(a.size-N)/T*(d-c),o=r.padding.left+a.x/100*r.innerWidth,f=r.padding.top+r.innerHeight-a.y/100*r.innerHeight;let S=a.color;if(!S)if(E){const e=Math.floor((b.length-1)*((a.size-N)/T));S=b[e]}else S=b[n%b.length];return t("g",{children:[e("circle",{cx:o,cy:f,r:i,fill:S,opacity:h,className:"c-chart__bubble "+(l?.pointIndex===n?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(a,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,n,o,f,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),u&&e("text",{x:o,y:f,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:a.label})]},"bubble-"+n)}));return t(a,{children:[y,v&&l&&l.pointIndex<n.length&&e(Wt,{dataPoint:n[l.pointIndex],datasetLabel:"Bubbles",datasetColor:n[l.pointIndex]?.color||b[l.pointIndex%b.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));qt.displayName="BubbleChart";const Zt=s(l((({candlestickData:n=[],config:r={},candlestickOptions:i={},onDataPointClick:o,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:h="var(--atomix-success-bg-subtle)",downColor:u="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:S=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:b="short",dateFormatter:E,showGrid:v=!0,gridColor:A="var(--atomix-brand-text-emphasis)",showTooltips:N=!0}=i;return e(Ht,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:n.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:o,datasets:s,handlers:l,hoveredPoint:b,toolbarState:E,config:N})=>{if(!n.length)return null;const T=E?.showTooltips??N?.showTooltips??i.showTooltips??!0,y=40,_=r.width-80,C=r.height-80,L=c?C*d:0,x=C-L,I=n.map((e=>e.high)),O=n.map((e=>e.low)),R=Math.min(...O),w=Math.max(...I),M=w-R||1,D=n.map((e=>e.volume||0)),k=Math.max(...D)||1,P=[];if(v){for(let a=0;5>=a;a++){const t=y+a/5*x;P.push(e("line",{x1:y,y1:t,x2:y+_,y2:t,stroke:A,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+a))}const t=Math.max(1,Math.floor(n.length/10));for(let a=0;a<n.length;a+=t){const t=y+a/(n.length-1)*_;P.push(e("line",{x1:t,y1:y,x2:t,y2:y+x,stroke:A,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+a))}}const B=n.map(((a,r)=>{const i=a.close<a.open?u:h,o=y+r/(n.length-1)*_,s=y+(w-a.high)/M*x,c=y+(w-a.low)/M*x,d=y+(w-a.open)/M*x,g=y+(w-a.close)/M*x,f=Math.min(d,g),S=Math.abs(d-g),b=Math.max(1,_/n.length*.8);return t("g",{children:[e("line",{x1:o,y1:s,x2:o,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:o-b/2,y:f,width:b,height:S||1,fill:i,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,o,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(a,0,r)})]},"candle-"+r)})),z=[];if(c){const t=y+x+20;n.forEach(((a,r)=>{if(!a.volume)return;const i=a.close<a.open?u:h,o=y+r/(n.length-1)*_,s=a.volume/k*(L-20),l=Math.max(1,_/n.length*.6);z.push(e("rect",{x:o-l/2,y:t+L-s,width:l,height:s,fill:i,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const U=[];return g&&f.forEach(((t,a)=>{const r=((e,t)=>{const a=[];for(let n=0;n<e.length;n++){if(t-1>n){a.push(NaN);continue}const r=e.slice(n-t+1,n+1).reduce(((e,t)=>e+t.close),0);a.push(r/t)}return a})(n,t),i=S?.[a]||"var(--atomix-warning)",o=r.map(((e,t)=>isNaN(e)?null:{x:y+t/(n.length-1)*_,y:y+(w-e)/M*x})).filter(Boolean);if(o.length>1){const a="M "+o.map((e=>`${e.x},${e.y}`)).join(" L ");U.push(e("path",{d:a,stroke:i,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(a,{children:[P,B,z,U,T&&b&&n[b.pointIndex]&&e(Wt,{dataPoint:n[b.pointIndex],datasetLabel:"Candlestick",position:{x:b.clientX,y:b.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Zt.displayName="CandlestickChart";const $t=s(l((({datasets:n=[],config:r={},pieOptions:i={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:o={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const h=n.length>0?n[0]:{label:"",data:[]},u=d((()=>{if(!h?.data?.length)return null;const e=h?.data?.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[h]);return e(Ht,{ref:c,type:"donut",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:d,config:m})=>{if(!u)return null;const p=n.width,g=n.height,f=Math.min(p,g)/2*.8,S=f*(o.innerRadiusRatio??.6),b=p/2,E=g/2,v=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],A=h?.color?[h.color]:h?.data?.map(((e,t)=>v[t%v.length]))||v,N=u.validDataPoints.reduce(((e,t)=>e+t.value),0),T=(i.padAngle||1)*Math.PI/180;let y=(i.startAngle||0)*Math.PI/180;const _=u.validDataPoints.map(((e,t)=>{const a=e.value/N*(2*Math.PI)-T,n=y,r=y+a,i=(n+r)/2,o=.75*f,s=b+Math.cos(i)*o,l=E+Math.sin(i)*o,c=b+S*Math.cos(n),d=E+S*Math.sin(n),h=a>Math.PI?1:0,u=[`M ${c} ${d}`,`L ${b+f*Math.cos(n)} ${E+f*Math.sin(n)}`,`A ${f} ${f} 0 ${h} 1 ${b+f*Math.cos(r)} ${E+f*Math.sin(r)}`,`L ${b+S*Math.cos(r)} ${E+S*Math.sin(r)}`,`A ${S} ${S} 0 ${h} 0 ${c} ${d}`,"Z"].join(" ");return y=r+T,{path:u,color:e.color||A[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/N*100}})),C=d?.showTooltips??m?.showTooltips??!0;return t(a,{children:[_.map(((a,n)=>{const r=c?.pointIndex===n;return t("g",{children:[e("path",{d:a.path,fill:a.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(a.dataPoint,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,n,a.labelPosition.x,a.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showLabels&&e("text",{x:a.labelPosition.x,y:a.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:a.dataPoint.label}),i.showPercentages&&t("text",{x:a.labelPosition.x,y:a.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[a.percentage.toFixed(1),"%"]})]},"slice-"+n)})),o.showTotal&&t("g",{children:[e("text",{x:b,y:E-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:o.centerLabel}),e("text",{x:b,y:E+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==o.centerValue?o.centerValue:N.toLocaleString()})]}),C&&c&&c.pointIndex<_.length&&_[c.pointIndex]&&e(Wt,{dataPoint:_[c.pointIndex].dataPoint,datasetLabel:h?.label,datasetColor:_[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));$t.displayName="DonutChart";const Xt=s(l((({funnelData:n=[],config:r={},funnelOptions:i={},onDataPointClick:o,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:h=!0,showPercentages:u=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:S=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:b=!0,animate:E=!0,animationDuration:v=1e3,animationDelay:A=200,valueFormatter:N=e=>e.toLocaleString(),showConversionRates:T=!0,conversionRatePosition:y="between",proportional:_=!0,minSegmentRatio:C=.1}=i;return e(Ht,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:n}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!n.length)return null;const b=m?.showTooltips??g?.showTooltips??!0,L=r.width-120,x=r.height-120,I=Math.max(...n.map((e=>e.value))),O=n.map(((e,t)=>{const a=e.value/I*100,r=t>0&&n[t-1]?e.value/n[t-1].value*100:100;return{...e,percentage:a,conversionRate:r,index:t}})),R=[];if("vertical"===c){const a=(x-(n.length-1)*f)/n.length;O.forEach(((r,i)=>{const o=60+i*(a+f);let l;if(_){const e=Math.max(r.percentage/100,C);l=L*e}else{const e=Math.max(1-i/(n.length-1)*(1-p),C);l=L*e}const c=60+(L-l)/2;let m=r.color||S[i%S.length];const g=O[i+1];let b;if(g)if(_){const e=Math.max(g.percentage/100,C);b=L*e}else{const e=Math.max(1-(i+1)/(n.length-1)*(1-p),C);b=L*e}else b=l*p;const x=60+(L-b)/2,I=o+a,w=`\n M ${c} ${o}\n L ${c+l} ${o}\n L ${x+b} ${I}\n L ${x} ${I}\n Z\n `;R.push(t("g",{children:[e("path",{d:w,fill:m,className:"c-chart__funnel-segment",style:{transition:E?`all ${v}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${i*A}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,i)}),(d||h||u)&&t("text",{x:c+l/2,y:o+a/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,h&&e("tspan",{x:c+l/2,dy:"1.2em",children:N(r.value)}),u&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+i)),T&&g&&"between"===y&&R.push(t("text",{x:c+l/2,y:o+a+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+i))}))}return t(a,{children:[e("g",{children:R}),b&&l&&n[l.pointIndex]&&e(Wt,{dataPoint:n[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:n[l.pointIndex]?.color||i[l.pointIndex%i.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Xt.displayName="FunnelChart";const Jt=s(l((({value:a,min:n=0,max:r=100,config:i={},gaugeOptions:o={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:h=0,thickness:u=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:S=!0,showTicks:b=!0,majorTicks:E=5,minorTicks:v=4,colorZones:A=[],animate:N=!0,animationDuration:T=1e3,animationEasing:y="easeOutCubic",useGradient:_=!1,label:C="",labelPosition:L="bottom"}=o;return e(Ht,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:a}]}],config:i,renderContent:({scales:i,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:_,config:x})=>{const I=i.width,O=_?.animationsEnabled??x?.animate??N,R=i.height,w=I/2,M=R/2,D=Math.min(I,R)/2*.9,k=-d*Math.PI/180,P=-h*Math.PI/180,B=P-k,z=Math.min(Math.max(a,n),r),U=k+(z-n)/(r-n)*B,G=(e,t,a,n,r,i)=>{const o=a*(1-i),s=e+a*Math.cos(n),l=t+a*Math.sin(n),c=e+a*Math.cos(r),d=t+a*Math.sin(r),h=e+o*Math.cos(r),u=t+o*Math.sin(r),m=e+o*Math.cos(n),p=t+o*Math.sin(n),g=Math.abs(r-n)>Math.PI?1:0,f=r>n?1:0;return`M ${s} ${l} \n A ${a} ${a} 0 ${g} ${f} ${c} ${d}\n L ${h} ${u}\n A ${o} ${o} 0 ${g} ${1-f} ${m} ${p}\n Z`},F=[];for(const t of A){const a=k+(t.from-n)/(r-n)*B,i=k+(t.to-n)/(r-n)*B;F.push(e("path",{d:G(w,M,D,a,i,u),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(b){for(let t=0;E>=t;t++){const a=n+t/E*(r-n),i=k+t/E*B,o=.95*D,s=.05*D,l=w+o*Math.cos(i),c=M+o*Math.sin(i),d=w+(o-s)*Math.cos(i),h=M+(o-s)*Math.sin(i);if(V.push(e("line",{x1:l,y1:c,x2:d,y2:h,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+t)),S){const n=w+(o-s-10)*Math.cos(i),r=M+(o-s-10)*Math.sin(i);V.push(e("text",{x:n,y:r,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:a},"label-"+t))}}for(let t=0;E*v>t;t++){const a=k+t/(E*v)*B,n=.95*D,r=.025*D,i=w+n*Math.cos(a),o=M+n*Math.sin(a),s=w+(n-r)*Math.cos(a),l=M+(n-r)*Math.sin(a);V.push(e("line",{x1:i,y1:o,x2:s,y2:l,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+t))}}const H=m?t("g",{children:[e("line",{x1:w,y1:M,x2:w+.8*D*Math.cos(U),y2:M+.8*D*Math.sin(U),stroke:p,strokeWidth:"3",strokeLinecap:"round"}),e("circle",{cx:w,cy:M,r:"8",fill:p})]}):null,Y=g?e("text",{x:w,y:M+10,textAnchor:"middle",fontSize:"24",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(z)}):null,W=C?e("text",{x:w,y:"top"===L?M-.7*D:M+.7*D,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:C}):null;return t("g",{children:[e("path",{d:G(w,M,D,k,P,u),fill:"var(--atomix-secondary-bg-subtle)"}),F,e("path",{d:G(w,M,D,k,U,u),fill:"var(--atomix-brand-bg-subtle)",style:{transition:O?`all ${T}ms ${y}`:"none"}}),V,H,Y,W]})},onDataPointClick:s,...l})})));Jt.displayName="GaugeChart";const ea={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},ta=s(l((({data:n=[],config:i={},colorScale:o={scheme:"viridis",steps:9},cellConfig:s={width:40,height:40,spacing:2,borderRadius:4,showLabels:!1},showColorLegend:l=!0,showGrid:c=!0,onDataPointClick:u,...m},p)=>{const[g,f]=r(null),S=d((()=>{if(!n.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(n.map((e=>e.x)))).sort(),t=Array.from(new Set(n.map((e=>e.y)))).sort(),a=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const a=n.find((a=>a.x===e&&a.y===t));r.push(a||null)})),a.push(r)})),{matrix:a,xLabels:e,yLabels:t}}),[n]),b=h((e=>{if(!S.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,a=o.min,r=o.max;if(void 0===a||void 0===r){const e=n.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===a&&(a=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===o.scheme&&o.colors)t=o.colors;else{const e=o.scheme;t=ea[e]||ea.viridis}const i=o.steps||t.length,s=r-a;return 0===s?t[0]:t[Math.floor(Math.min(Math.floor((e-a)/s*i),i-1)/i*(t.length-1))]}),[S,o,n]),E=[{label:"Heatmap Data",data:n.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(Ht,{ref:p,type:"heatmap",datasets:E,config:i,renderContent:({scales:n,colors:r,datasets:i,handlers:c,hoveredPoint:d,toolbarState:h,config:u})=>{const{matrix:m,xLabels:p,yLabels:E}=S,v=h?.showTooltips??u?.showTooltips??!0;if(!m.length)return null;const A=s.width||40,N=s.height||40,T=s.spacing||2,y=s.borderRadius||4;return p.length,E.length,t(a,{children:[t("g",{children:[e("defs",{children:l&&(()=>{const t=ea[o.scheme]||ea.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((a,n)=>e("stop",{offset:n/(t.length-1)*100+"%",stopColor:a},n)))}):null})()}),m.map(((a,n)=>a.map(((a,r)=>{if(!a)return null;const i=100+r*(A+T),o=50+n*(N+T),l=b(a.value),d=g===a;return t("g",{children:[e("rect",{x:i,y:o,width:A,height:N,rx:y,ry:y,fill:l,className:"c-chart__heatmap-cell "+(d?"c-chart__heatmap-cell--hovered":""),style:{transition:"all 0.2s ease",transform:d?"scale(1.05)":"scale(1)",transformOrigin:"center"},onClick:()=>{a&&c.onDataPointClick?.({...a,label:a.label||`${a.x}, ${a.y}`,value:a.value},n,r)},onMouseEnter:e=>{f(a)},onMouseLeave:()=>f(null)}),s.showLabels&&a.label&&e("text",{x:i+A/2,y:o+N/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:a.label})]},`cell-${n}-${r}`)})))),p.map(((t,a)=>{const n=100+a*(A+T)+A/2,r=50+m.length*(N+T)+20;return e("text",{x:n,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+a)})),E.map(((t,a)=>e("text",{x:80,y:50+a*(N+T)+N/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+a))),l&&t("g",{transform:"translate(600, 100)",children:[e("rect",{x:"0",y:"0",width:"20",height:"200",fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid"}),e("text",{x:"-10",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"25",y:"5",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"25",y:"200",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),v&&d&&i[d.datasetIndex]?.data?.[d.pointIndex]&&e(Wt,{dataPoint:i[d.datasetIndex].data[d.pointIndex],datasetLabel:i[d.datasetIndex]?.label,datasetColor:i[d.datasetIndex]?.color||r[d.datasetIndex%r.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})},onDataPointClick:u,...m})})));function aa(e,t={}){const[a,n]=r(1),[i,o]=r({x:0,y:0}),[s,l]=r(null),c=h(((e,t)=>{const a=[];for(let n=t-1;n<e.length;n++){const r=e.slice(n-t+1,n+1).reduce(((e,t)=>e+t.value),0)/t,i=e[n];i&&a.push({label:i.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),u=h((e=>{const t=e.length;if(2>t)return e.map((()=>null));const a=e.reduce(((e,t,a)=>e+a),0),n=e.reduce(((e,t)=>e+t.value),0),r=(t*e.reduce(((e,t,a)=>e+a*t.value),0)-a*n)/(t*e.reduce(((e,t,a)=>e+a*a),0)-a*a),i=(n-r*a)/t;return e.map(((e,t)=>({label:e.label,value:r*t+i,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=h(((e,t=.4)=>{if(2>e.length)return"";const a=e.map(((a,n)=>{if(0===n||n===e.length-1)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const r=e[n-1],i=e[n+1];if(!r||!i)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const o=i.x-r.x,s=i.y-r.y;return{cp1x:a.x-o*t,cp1y:a.y-s*t,cp2x:a.x+o*t,cp2y:a.y+s*t}})),n=e[0];if(!n)return"";let r=`M ${n.x},${n.y}`;for(let i=1;i<e.length;i++){const t=a[i-1],n=a[i],o=e[i];t&&n&&o&&(r+=` C ${t.cp2x},${t.cp2y} ${n.cp1x},${n.cp1y} ${o.x},${o.y}`)}return r}),[]),p=h(((e,r,i)=>{if(!t.enableZoom)return;const s=Math.max(.1,Math.min(10,a*(e>0?.9:1.1)));n(s);const l=s/a;o((e=>({x:r-(r-e.x)*l,y:i-(i-e.y)*l})))}),[a,t.enableZoom]),g=h(((e,a)=>{t.enablePan&&o((t=>({x:t.x+e,y:t.y+a})))}),[t.enablePan]),f=h((()=>{n(1),o({x:0,y:0})}),[]),S=h(((e,t,a,n,r,i)=>{l({datasetIndex:e,pointIndex:t,x:a,y:n,clientX:r,clientY:i})}),[]),b=h((()=>{l(null)}),[]),E=d((()=>e.map((e=>{const a={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(a.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(a.trendLine=u(e.data)),a}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,u]);return{zoomLevel:a,panOffset:i,hoveredPoint:s,processedDatasets:E,handleZoom:p,handlePan:g,resetView:f,handlePointHover:S,handlePointLeave:b,calculateMovingAverage:c,calculateTrendLine:u,generateSmoothPath:m,setZoomLevel:n,setPanOffset:o,setHoveredPoint:l}}ta.displayName="HeatmapChart";const na=s(l((({datasets:n=[],config:r={},lineOptions:i={},onDataPointClick:o,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...h},u)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...i},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:S,handlePointLeave:b,hoveredPoint:E}=aa(n,m);return e(Ht,{ref:u,type:"line",datasets:p,config:r,renderContent:({scales:n,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:c})=>{if(!i.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(a,{children:[i.map(((a,i)=>{const l=a.color||r[i],c=a.data?.length||0;if(0===c)return null;const d=a.data?.map(((e,t)=>({x:n.xScale(t,c),y:n.yScale(e.value)})))||[],h=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${h} L ${d[d.length-1]?.x||0},${n.yScale(0)} L ${d[0]?.x||0},${n.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:h,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&a.data?.map(((a,r)=>{const d=n.xScale(r,c),h=n.yScale(a.value),u=s?.datasetIndex===i&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:h,r:u?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__data-point "+(u?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,r,d,h,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,onClick:()=>o.onDataPointClick?.(a,i,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:h-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:a.value})]},"point-"+r)}))]},"dataset-"+i)})),d&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(Wt,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,interactive:!0,enableAccessibility:!0,...h})})));na.displayName="LineChart";const ra=s(l((({datasets:a=[],config:n={},yAxes:r=[],xAxes:i=[],multiAxisOptions:o={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:h="top",syncAxes:u=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:S=!1,areaOpacity:b=.3,showDataPoints:E=!0,pointRadius:v=4,spanGaps:A=!1}=o;return e(Ht,{ref:c,type:"line",datasets:a,config:n,renderContent:({scales:n,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:m})=>{if(!a.length)return null;const p=u?.showGrid??!0,g=60,f=n.width-120,A=n.height-120,N=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],T=i.length?i:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],y={};a.forEach(((e,t)=>{const a=e.yAxisId||N[0]?.id||"y-axis-1";y[a]||(y[a]=[]),y[a].push({...e,index:t})}));const _={};Object.entries(y).forEach((([e,t])=>{const a=t.flatMap((e=>e.data.map((e=>e.value)))),n=Math.min(...a),r=Math.max(...a),i=r-n||1;_[e]={min:n,max:r,scale:A/i}}));const C=[];if(p)for(let t=0;5>=t;t++){const a=g+t/5*A;C.push(e("line",{x1:g,y1:a,x2:g+f,y2:a,className:"c-chart__grid"},"grid-"+t))}if(a.forEach(((t,a)=>{const n=t.yAxisId||N[0]?.id||"y-axis-1",r=_[n],i=t.color||o[a%o.length],s=t.data.map(((e,a)=>({x:g+a/(t.data.length-1)*f,y:r?g+A-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),S&&c){const t=`${c} L ${g+f},${g+A} L 60,${g+A} Z`;C.push(e("path",{d:t,fill:i,fillOpacity:b},"area-"+a))}C.push(e("path",{d:c,stroke:i,fill:"none",className:"c-chart__data-line"},"line-"+a)),E&&s.forEach(((n,r)=>{const o=t.data[r];o&&C.push(e("circle",{cx:n.x,cy:n.y,r:v,fill:i,onClick:()=>l.onDataPointClick?.(o,a,r)},`point-${a}-${r}`))}))})),N.forEach((t=>{C.push(e("line",{x1:g,y1:g,x2:g,y2:g+A,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),T.forEach((t=>{C.push(e("line",{x1:g,y1:g+A,x2:g+f,y2:g+A,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===h?20:n.height-30;a.forEach(((n,i)=>{const s=n.color||o[i%o.length],l=g+i*f/a.length;C.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:n.label})]},"legend-"+i))}))}return e("g",{children:C})},onDataPointClick:s,...l})})));function ia(e,t={}){const[a,n]=r(null),[i,o]=r(new Set),[s,l]=r(0),[c,u]=r(!1),m=d((()=>{const a=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return a.length?t.sortByValue?[...a].sort(((e,t)=>t.value-e.value)):a:[]}),[e,t.sortByValue]),p=d((()=>m.reduce(((e,t)=>e+t.value),0)),[m]),g=d((()=>{if(!m.length||0>=p)return[];const e=400,a=200,n=150,r=n*(t.innerRadius||0),i=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,h=o+d,u=o+d/2,m=e+n*Math.cos(o),g=a+n*Math.sin(o),f=e+n*Math.cos(h),S=a+n*Math.sin(h),b=d>Math.PI?1:0;let E;E=r>0?[`M ${m},${g}`,`A 150,150 0 ${b},1 ${f},${S}`,`L ${e+r*Math.cos(h)},${a+r*Math.sin(h)}`,`A ${r},${r} 0 ${b},0 ${e+r*Math.cos(o)},${a+r*Math.sin(o)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${b},1 ${f},${S}`,"Z"].join(" ");const v=(n+r)/2||105,A=e+v*Math.cos(u),N=a+v*Math.sin(u),T={dataPoint:t,index:l,startAngle:o,endAngle:h,midAngle:u,color:t.color||i[l%i.length],percentage:100*c,value:t.value,label:t.label,path:E,labelPosition:{x:A,y:N}};return o=h+s,T}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=h((()=>{if(!t.enableAnimations)return;u(!0),l(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,r=Math.min(t/e,1);l(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(n):u(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),S=h(((e,t,a)=>{n(e)}),[]),b=h((()=>{n(null)}),[]),E=h((e=>{t.enableSelection&&o((t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a}))}),[t.enableSelection]),v=h((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const a=[];return!1!==t.showLabels&&a.push(e.label),t.showPercentages&&a.push(Math.round(e.percentage)+"%"),t.showValues&&a.push(e.value.toString()),a.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),A=h(((e,a)=>a&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),N=h((e=>i.has(e)),[i]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:a,selectedSlices:i,animationProgress:s,isAnimating:c,handleSliceHover:S,handleSliceLeave:b,handleSliceClick:E,startAnimation:f,formatLabel:v,getSliceTransform:A,isSliceSelected:N,setHoveredSlice:n,setSelectedSlices:o,setAnimationProgress:l,setIsAnimating:u}}ra.displayName="MultiAxisChart";const oa=s(l((({datasets:n=[],config:r={},pieOptions:i={},onDataPointClick:o,...s},l)=>{const c=n[0]?.data||[],{slices:d,handleSliceHover:h,handleSliceLeave:u,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=ia(c,i);return e(Ht,{ref:l,type:"pie",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:h,config:u})=>{if(!d.length)return null;const g=n.width,f=n.height,S=g/2,b=f/2,E=Math.min(g,f)/2*.8,v=d.map((e=>{const t=S+E*Math.cos(e.startAngle),a=b+E*Math.sin(e.startAngle),n=S+E*Math.cos(e.endAngle),r=b+E*Math.sin(e.endAngle),i=e.endAngle-e.startAngle,o=[`M ${S},${b}`,`L ${t},${a}`,`A ${E},${E} 0 ${i>Math.PI?1:0},1 ${n},${r}`,"Z"].join(" "),s=.7*E,l=S+s*Math.cos(e.midAngle),c=b+s*Math.sin(e.midAngle);return{...e,path:o,labelPosition:{x:l,y:c}}})),A=h?.showTooltips??u?.showTooltips??!0;return t(a,{children:[v.map(((a,n)=>{const r=l?.pointIndex===n;return t("g",{children:[e("path",{d:a.path,fill:a.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(n),s.onDataPointClick?.(a.dataPoint,0,n)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,n,a.labelPosition.x,a.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),i.showLabels&&e("text",{x:a.labelPosition.x,y:a.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(a)})]},"slice-"+n)})),A&&l&&c[l.pointIndex]&&e(Wt,{dataPoint:c[l.pointIndex],datasetLabel:o[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));oa.displayName="PieChart";const sa=s(l((({datasets:n=[],config:r={},radarOptions:i={},onDataPointClick:o,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:h=!0,fillArea:u=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:S=!1,scaleType:b="linear",scaleMin:E=0,scaleMax:v}=i;return e(Ht,{ref:l,type:"radar",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:b})=>{if(!i.length)return null;const A=l?.showTooltips??b?.showTooltips??!0,N=n.width/2,T=n.height/2,y=.8*Math.min(N,T),_=i[0].data||[],C=2*Math.PI/_.length;let L=E,x=v;if(void 0===L||void 0===x){const e=i.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(E,...e)),void 0===x&&(x=Math.max(v||0,...e))}const I=x-L,O=[];if(d){for(let t=1;c>=t;t++){const a=y*t/c;O.push(e("circle",{cx:N,cy:T,r:a,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<_.length;t++){const a=t*C-Math.PI/2,n=N+y*Math.cos(a),r=T+y*Math.sin(a);O.push(e("line",{x1:N,y1:T,x2:n,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(h)for(let t=0;t<_.length;t++){const a=t*C-Math.PI/2,n=N+(y+20)*Math.cos(a),r=T+(y+20)*Math.sin(a);R.push(e("text",{x:n,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:_[t]?.label},"label-"+t))}const w=i.map(((a,n)=>{const i=a.color||r[n%r.length],l=[];for(let e=0;e<a.data?.length;e++){const t=a.data[e]?.value||0,n=y*(I>0?(t-L)/I:0),r=e*C-Math.PI/2,i=N+n*Math.cos(r),o=T+n*Math.sin(r);l.push({x:i,y:o,value:t,point:a.data[e]})}if(0===l.length)return null;let c="";if(S&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)c+=` L ${l[e].x},${l[e].y}`;c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)c+=` L ${l[e].x},${l[e].y}`;c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[u&&e("path",{d:c,fill:i,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:i,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,a)=>{const r=s?.datasetIndex===n&&s?.pointIndex===a;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:i,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>o.onDataPointClick?.(t.point,n,a),onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();o.onPointHover(n,a,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:o.onPointLeave})},`point-${n}-${a}`)}))]},"dataset-"+n)}));return t(a,{children:[t("g",{children:[O,w,R]}),A&&s&&e(Wt,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));sa.displayName="RadarChart";const la=s(l((({datasets:n=[],config:r={},scatterOptions:i={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:o,...s},l)=>e(Ht,{ref:l,type:"scatter",datasets:n,config:r,renderContent:({scales:n,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!o.length)return null;const h=c?.showTooltips??d?.showTooltips??!0,u=[];return o.forEach(((a,o)=>{const l=a.color||r[o%r.length];a.data?.forEach(((r,c)=>{const d=void 0!==r.x?n.padding.left+r.x/100*n.innerWidth:n.xScale(c,a.data?.length),h=void 0!==r.y?n.padding.top+n.innerHeight-r.y/100*n.innerHeight:n.yScale(r.value);u.push(t("g",{children:[e("circle",{cx:d,cy:h,r:r.size||i.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,o,c),onMouseEnter:e=>{if(i.enableHoverEffects){const t=Math.max(0,1.5*(r.size||i.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(o,c,d,h,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(i.enableHoverEffects){const t=Math.max(0,r.size||i.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),i.showLabels&&r.label&&e("text",{x:d,y:h-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${o}-${c}`))}))})),t(a,{children:[u,h&&l&&e(Wt,{dataPoint:o[l.datasetIndex]?.data?.[l.pointIndex],datasetLabel:o[l.datasetIndex]?.label,datasetColor:o[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s}))));la.displayName="ScatterChart";const ca=s(l((({data:n=[],algorithm:i="squarified",colorConfig:o={scheme:"category"},labelConfig:s={showLabels:!0,minSize:1e3,fontSize:12,textColor:"white"},onDataPointClick:l,config:c={},...u},m)=>{const[p,g]=r(null),[f,S]=r(null);r({x:0,y:0}),d((()=>{if(!n.length)return null;const e=new Map;n.forEach((t=>e.set(t.id,t)));const t=[],a=new Set,r=e=>{if(a.has(e.id))return e;a.add(e.id);const t=n.filter((t=>t.parent===e.id));return t.length>0&&(e.children=t.map((e=>r(e))),e.value=e.children.reduce(((e,t)=>e+t.value),0)),e};return n.forEach((a=>{a.parent&&e.has(a.parent)||t.push(r(a))})),1===t.length?t[0]:{id:"root",label:"Root",value:t.reduce(((e,t)=>e+t.value),0),children:t}}),[n]);const b=h(((e,t,a)=>{if(e.color)return e.color;const{scheme:r,palette:i}=o,s=i||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return s[a%s.length];case"depth":const r=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return r[Math.min(t,r.length-1)];case"value":if(n.length>0){const t=Math.max(...n.map((e=>e.value))),a=Math.min(...n.map((e=>e.value))),r=(e.value-a)/(t-a);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return s[0]}}),[o,n]),E=h(((e,t,a,n,r)=>{if(0===e.length)return;const i=e.reduce(((e,t)=>e+t.value),0);if(1===e.length){const i=e[0];return void(i&&(i.x=t,i.y=a,i.width=n,i.height=r))}const o=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...o],d=t,h=a,u=n,m=r;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=l.reduce(((e,t)=>e+t.value),0),a=t/i;let n,r;m>u?(n=u,r=m*a):(n=u*a,r=m);let o=!1;if(c.length>0){const e=c[0];if(!e)break;const a=[...l,e],d=a.reduce(((e,t)=>e+t.value),0),h=d/i;let p,g;m>u?(p=u,g=m*h):(p=u*h,g=m),o=Math.max(...l.filter((e=>e)).map((e=>{const a=e.value/t;return s({width:m>u?n*a:n,height:m>u?r:r*a})})))>=Math.max(...a.filter((e=>e)).map((e=>{const t=e.value/d;return s({width:m>u?p*t:p,height:m>u?g:g*t})})))}if(!o){let e=d,a=h;l.forEach((i=>{const o=i.value/t;m>u?(i.x=e,i.y=a,i.width=u*o,i.height=r,e+=i.width):(i.x=e,i.y=a,i.width=n,i.height=m*o,a+=i.height)})),m>u?(h+=r,m-=r):(d+=n,u-=n),l=[]}}}),[]);return e(Ht,{ref:m,type:"treemap",datasets:[{label:"Treemap Data",data:n}],config:c,renderContent:({scales:r,colors:o,datasets:l,handlers:c,hoveredPoint:d})=>{if(!n.length)return null;const h=r.width-40,u=r.height-40,m=n.filter((e=>!e.children||0===e.children.length));if(!m.length)return null;const v=m.reduce(((e,t)=>e+t.value),0),A=m.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:b(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===i&&v>0)E(A,20,20,h,u);else{const e=Math.ceil(Math.sqrt(m.length)),t=Math.ceil(m.length/e),a=h/e,n=u/t;A.forEach(((t,r)=>{const i=r%e,o=Math.floor(r/e);t.x=20+i*a,t.y=20+o*n,t.width=a,t.height=n}))}return e(a,{children:A.map((a=>{const n=p===a,r=f===a,i=a.width*a.height,o=s.showLabels&&i>=(s.minSize||1e3);return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:a.color,className:`c-chart__treemap-node ${n?"c-chart__treemap-node--hovered":""} ${r?"c-chart__treemap-node--selected":""}`,onClick:()=>{S(a),c.onDataPointClick?.(a.originalData,0,0)},onMouseEnter:e=>{g(a);const t=e.currentTarget.getBoundingClientRect();c.onPointHover(0,0,a.x,a.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),o&&e("text",{x:a.x+a.width/2,y:a.y+a.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:s.fontSize,fill:s.textColor},children:a.label})]},a.id)}))})},onDataPointClick:l,interactive:!0,...u})})));ca.displayName="TreemapChart";const da=s(l((({waterfallData:t=[],config:a={},waterfallOptions:n={},onDataPointClick:r,...i},o)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:h="top",colors:u={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:S=1e3,animationDelay:b=100,valueFormatter:E=e=>e.toLocaleString(),showBaseline:v=!0,baselineColor:A="var(--atomix-gray-2)"}=n;return e(Ht,{ref:o,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:a,renderContent:({scales:a,colors:n,datasets:r,handlers:i,hoveredPoint:o,toolbarState:S,config:N})=>{if(!t.length)return null;const T=S?.animationsEnabled??N?.animate??f,y=60,_=a.width-120,C=a.height-120;let L=0;const x=t.map(((e,t)=>{const a="total"===e.type||"subtotal"===e.type?0:L;let n;return"total"===e.type||"subtotal"===e.type?(n=e.value,L=e.value):(n=L+e.value,L=n),{...e,startValue:a,endValue:n,cumulativeValue:L,index:t}})),I=x.flatMap((e=>[e.startValue,e.endValue])),O=Math.min(0,...I),R=Math.max(...I)-O,w=_/t.length*m,M=_/t.length,D=e=>y+e*M+M/2,k=e=>y+C-(e-O)/R*C,P=[];if(v){const t=k(0);P.push(e("line",{x1:y,y1:t,x2:a.width-y,y2:t,stroke:A,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(x.forEach(((t,a)=>{const n=D(a),r=Math.min(k(t.startValue),k(t.endValue)),o=Math.max(k(t.startValue),k(t.endValue)),m=o-r;let p=t.color;if(p||(p="total"===t.type?u.total:"subtotal"===t.type?u.subtotal:0>t.value?u.negative:u.positive),P.push(e("rect",{x:n-w/2,y:r,width:w,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(T?"c-chart__waterfall-bar--animated":""),style:{animationDelay:T?a*b+"ms":"0ms"},onClick:()=>i.onDataPointClick?.(t,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(0,a,n,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave},"bar-"+a)),d){let i=r,s=t.value;i="center"===h?r+m/2:"bottom"===h?o+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),P.push(e("text",{x:n,y:i,textAnchor:"middle",dominantBaseline:"center"===h?"middle":"auto",className:"c-chart__waterfall-value "+("center"===h?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:E(s)},"value-"+a))}if(s&&a<x.length-1){const r=x[a+1];if(r){const i=k(t.endValue),o=k(r.startValue),s=D(a+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";P.push(e("line",{x1:n+w/2,y1:i,x2:s-w/2,y2:o,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+a))}}}})),p){const t=x.map(((e,t)=>({x:D(t),y:k(e.cumulativeValue)}))),a="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");P.push(e("path",{d:a,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,a)=>{P.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+a))}))}return P.push(e("line",{x1:y,y1:a.height-y,x2:a.width-y,y2:a.height-y,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),P.push(e("line",{x1:y,y1:y,x2:y,y2:a.height-y,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),x.forEach(((t,n)=>{const r=y+n*M+M/2;P.push(e("text",{x:r,y:a.height-y+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${a.height-y+20})`,children:t.label},"x-label-"+n))})),e("g",{children:P})},onDataPointClick:r,...i})})));da.displayName="WaterfallChart";const ha={sm:16,md:24,lg:32},ua=({className:t="",style:a,value:n,defaultValue:i="light",onChange:s,lightIcon:l,darkIcon:c,size:d="md",disabled:u=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":S,showTooltip:b=!0})=>{const E=void 0!==n,[v,A]=r(i),N=E?n:v;o((()=>{if(!E&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void A(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&A("dark")}}),[E,g,f,m]),o((()=>{if("undefined"==typeof window)return;const e="dark"===N?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[N,p,g,m]),o((()=>{if(E||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)A(e.matches?"dark":"light");else try{localStorage.getItem(m)||A(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[E,f,g,m]);const T=h((()=>{if(u)return;const e="light"===N?"dark":"light";E||A(e),s?.(e)}),[u,N,E,s]),y=ha[d],_="light"===N?"dark":"light",C=S||`Switch to ${_} mode`,L=b?`Switch to ${_} mode`:void 0,x=e("svg",{viewBox:"0 0 24 24",width:y,height:y,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}),I=e("svg",{viewBox:"0 0 24 24",width:y,height:y,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${d} ${u?"c-color-mode-toggle--disabled":""} ${t}`,onClick:T,disabled:u,"aria-label":C,"aria-pressed":"dark"===N,title:L,style:a,children:"light"===N?l||x:c||I})};ua.displayName="ColorModeToggle";const ma=l((({target:a,show:i=["days","hours","minutes","seconds"],separator:s=":",focused:l=!1,className:c="",style:d,onComplete:h},u)=>{const m="string"==typeof a?new Date(a):a,[p,g]=r((()=>new Date)),[f,S]=r(!1);o((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const b=m.getTime()-p.getTime(),{days:E,hours:v,minutes:A,seconds:N}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(b);o((()=>{b>0||f||(S(!0),h&&h())}),[b,f,h]);const T=[];return i.includes("days")&&T.push({label:"Days",value:E}),i.includes("hours")&&T.push({label:"Hours",value:v}),i.includes("minutes")&&T.push({label:"Minutes",value:A}),i.includes("seconds")&&T.push({label:"Seconds",value:N}),e("div",{ref:u,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:T.map(((a,r)=>t(n.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(a.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:a.label})]}),r<T.length-1&&e("span",{className:"c-countdown__separator",children:s})]},a.label)))})}));function pa({data:e=[],columns:t=[],sortable:a=!1,paginated:n=!1,pageSize:i=10,onSort:s,initialSortConfig:l}){const[c,u]=r(l||null),[m,p]=r(1),[g,f]=r(""),S=h((e=>{if(!a)return;let t="asc";c&&c.key===e&&"asc"===c.direction&&(t="desc");const n={key:e,direction:t};u(n),s&&s(n)}),[a,c,s]),b=h((t=>{1>t||t>Math.ceil(e.length/i)||p(t)}),[e.length,i]),E=h((e=>{f(e),p(1)}),[]),v=d((()=>{if(!g)return e;const a=g.toLowerCase();return e.filter((e=>t.some((t=>{const n=e[t.key];return null!=n&&(n+"").toLowerCase().includes(a)}))))}),[e,t,g]),A=d((()=>c&&a?[...v].sort(((e,t)=>{const a=e[c.key],n=t[c.key];return null==a?"asc"===c.direction?-1:1:null==n?"asc"===c.direction?1:-1:"string"==typeof a&&"string"==typeof n?"asc"===c.direction?a.localeCompare(n):n.localeCompare(a):"asc"===c.direction?a>n?1:-1:a>n?-1:1})):v),[v,c,a]),N=d((()=>{if(!n)return A;const e=(m-1)*i;return A.slice(e,e+i)}),[A,n,m,i]),T=d((()=>n?Math.max(1,Math.ceil(A.length/i)):1),[A.length,n,i]);return o((()=>{p(1)}),[e]),o((()=>{m>T&&p(Math.max(1,T))}),[m,T]),{displayData:N,sortConfig:c,currentPage:m,totalPages:T,handleSort:S,handlePageChange:b,handleSearch:E}}ma.displayName="Countdown";const ga="...",fa=(e,t)=>Array.from({length:t-e+1},((t,a)=>a+e)),Sa=({currentPage:e,totalPages:t,siblingCount:a=1,onPageChange:n})=>{const r=d((()=>{if(a+5>=t)return fa(1,t);const n=Math.max(e-a,1),r=Math.min(e+a,t),i=n>2,o=t-2>r,s=t;if(!i&&o)return[...fa(1,3+2*a),ga,t];if(i&&!o){let e=fa(t-(3+2*a)+1,t);return[1,ga,...e]}if(i&&o){let e=fa(n,r);return[1,ga,...e,ga,s]}return[]}),[t,a,e]),i=a=>{1>a||a>t||a===e||n(a)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:ga}},ba=({type:t,onClick:a,disabled:n,label:r,iconName:i})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${n?"is-disabled":""}`,"aria-disabled":n,children:e("button",{type:"button",className:"c-pagination__link",onClick:a,disabled:n,"aria-label":r,children:e(St,{name:i,size:"sm","aria-hidden":"true"})})}),Ea=({currentPage:a=oe.currentPage,totalPages:n=oe.totalPages,onPageChange:r,siblingCount:i=oe.siblingCount,showFirstLastButtons:o=oe.showFirstLastButtons,showPrevNextButtons:s=oe.showPrevNextButtons,size:l=oe.size,className:c="",style:d,ariaLabel:h="Pagination",glass:u})=>{const{paginationRange:m,goToPage:p,nextPage:g,prevPage:f,firstPage:S,lastPage:b}=Sa({currentPage:a,totalPages:n,siblingCount:i,onPageChange:r});if(0===a||2>m.length)return null;const E=e("nav",{className:`c-pagination c-pagination--${l} ${c}`,style:d,"aria-label":h,children:t("ul",{className:"c-pagination__items",children:[o&&e(ba,{type:"first",onClick:S,disabled:1===a,label:"Go to first page",iconName:"SkipBack"}),s&&e(ba,{type:"prev",onClick:f,disabled:1===a,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,n)=>{if(t===ga)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+n);const r=t===a;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>p(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),s&&e(ba,{type:"next",onClick:g,disabled:a===n,label:"Go to next page",iconName:"CaretRight"}),o&&e(ba,{type:"last",onClick:b,disabled:a===n,label:"Go to last page",iconName:"SkipForward"})]})});if(u){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===u?t:{...t,...u};return e(Xe,{...a,children:E})}return E};Ea.displayName="Pagination";const va=({data:a,columns:n,className:r,style:o,sortable:s=!1,filterable:l=!1,paginated:c=!1,pageSize:d=10,striped:h=!1,bordered:u=!1,dense:m=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:f,onSort:S,...b})=>{const E=i(null),{displayData:v,sortConfig:A,currentPage:N,totalPages:T,handleSort:y,handlePageChange:_,handleSearch:C}=pa({data:a,columns:n,sortable:s,paginated:c,pageSize:d,onSort:S}),L=[re.base,h&&re.striped,u&&re.bordered,m&&re.dense,p&&re.loading,r].filter(Boolean).join(" ");return t("div",{className:re.container,style:o,...b,children:[l?e("div",{className:re.toolbar,children:e("div",{className:re.search,children:e("input",{type:"text",placeholder:"Search...",className:re.searchInput+" c-input",onChange:e=>C(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:re.tableWrapper,children:t("table",{ref:E,className:L,children:[e("thead",{className:re.header,children:e("tr",{children:n.map(((a,n)=>e("th",{className:`${re.headerCell} ${!1!==a.sortable&&s?re.sortable:""}`,onClick:()=>!1!==a.sortable&&s?y(a.key):null,"aria-sort":A?.key===a.key?"asc"===A.direction?"ascending":"descending":void 0,children:t("div",{className:re.headerContent,children:[e("span",{children:a.title}),!1!==a.sortable&&s&&e("span",{className:re.sortIcon,children:A?.key===a.key?"asc"===A.direction?e(St,{name:"CaretUp",size:"sm"}):e(St,{name:"CaretDown",size:"sm"}):null})]})},"header-"+n)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:n.length,className:re.loadingCell,children:e("div",{className:re.loadingIndicator,children:e(xt,{size:"md",variant:"primary"})})})})}):0===v.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:n.length,className:re.emptyCell,children:g})})}):e("tbody",{children:v.map(((t,a)=>e("tr",{className:re.row,onClick:f?()=>f(t):void 0,tabIndex:f?0:void 0,role:f?"button":void 0,children:n.map(((n,r)=>e("td",{className:re.cell,children:n.render?n.render(t[n.key],t):t[n.key]},`cell-${a}-${r}`)))},"row-"+a)))})]})}),c&&T>1?e("div",{className:re.pagination,children:e(Ea,{currentPage:N,totalPages:T,onPageChange:_,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};function Aa(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Na(e,t){return new Date(e,t+1,0).getDate()}function Ta(e,t){if(!e)return"";const a=e.getDate(),n=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",n.toString().padStart(2,"0")).replace("M",n.toString()).replace("dd",a.toString().padStart(2,"0")).replace("d",a.toString())}function ya({value:e,onChange:t,selectionMode:a="single",startDate:n,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,inline:m=!1}={}){const[p,g]=r(m),[f,S]=r(e?Ta(e,c):""),[b,E]=r(n&&s?`${Ta(n,c)} - ${Ta(s,c)}`:n?Ta(n,c)+" - Select end date":""),[v,A]=r(e||n||new Date),[N,T]=r("days"),[y,_]=r(!n||n&&s?"start":"end"),C=i(null),L=i(null),x=new Date,I=v.getMonth(),O=v.getFullYear(),R=Na(O,I),w=new Date(O,I,1).getDay();o((()=>{"single"===a?S(e?Ta(e,c):""):(E(n&&s?`${Ta(n,c)} - ${Ta(s,c)}`:n?Ta(n,c)+" - Select end date":""),_(!n||n&&s?"start":"end"))}),[e,n,s,c,a]);const M=h((e=>{const r=new Date(O,I,e);if(!(d&&d>r||u&&r>u))if("single"===a)t&&t(r),S(Ta(r,c)),m||g(!1);else if("start"===y)l&&l({startDate:r,endDate:null}),E(Ta(r,c)+" - Select end date"),_("end");else{if(!n)return;n>r?(l&&l({startDate:r,endDate:n}),E(`${Ta(r,c)} - ${Ta(n,c)}`)):(l&&l({startDate:n,endDate:r}),E(`${Ta(n,c)} - ${Ta(r,c)}`)),m||g(!1),_("start")}}),[O,I,d,u,t,l,c,m,a,y,n]),D=h((()=>{A(new Date(O,I-1,1))}),[O,I]),k=h((()=>{A(new Date(O,I+1,1))}),[O,I]),P=h((()=>{A(new Date(O-1,I,1))}),[O,I]),B=h((()=>{A(new Date(O+1,I,1))}),[O,I]),z=h((()=>{T("months")}),[]),U=h((()=>{T("years")}),[]),G=h((e=>{A(new Date(O,e,1)),T("days")}),[O]),F=h((e=>{A(new Date(e,I,1)),T("months")}),[I]),V=h((()=>{const e=new Date;A(e),"single"===a?M(e.getDate()):A(new Date)}),[M,a]),H=h((()=>{"single"===a?(S(""),t&&t(null)):(E(""),_("start"),l&&l({startDate:null,endDate:null}))}),[t,l,a]),Y=h((e=>{if("single"===a){S(e.target.value);const a=new Date(e.target.value);isNaN(a.getTime())||(t&&t(a),A(a))}else{E(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),a=t[1]?.trim();if(!e||!a)return;const n=new Date(e);if(isNaN(n.getTime())||A(n),e&&a){const t=new Date(e),n=new Date(a);isNaN(t.getTime())||isNaN(n.getTime())||l&&l({startDate:t,endDate:n})}}}}),[t,l,a]),W=h((()=>{m||g(!0)}),[m]),K=h((e=>{C.current&&!C.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!m?document.addEventListener("mousedown",K):document.removeEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)})),[p,K,m]);const j=h((()=>{const e=[],t=Na(0===I?O-1:O,0===I?11:I-1);for(let n=w-1;n>=0;n--)e.push({day:t-n,month:0===I?11:I-1,year:0===I?O-1:O,isCurrentMonth:!1});for(let n=1;R>=n;n++)e.push({day:n,month:I,year:O,isCurrentMonth:!0});const a=42-e.length;for(let n=1;a>=n;n++)e.push({day:n,month:11===I?0:I+1,year:11===I?O+1:O,isCurrentMonth:!1});return e}),[R,w,I,O]),Q=h((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:Aa(t)});return e}),[]),q=h((()=>{const e=[],t=O-6;for(let a=0;12>a;a++)e.push(t+a);return e}),[O]),Z=h(((e,t,a)=>function(e,t,a){return!(!e||t&&t>e||a&&e>a)}(new Date(e,t,a),d,u)),[d,u]),$=h(((t,r,i)=>{if("single"===a)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===i;if(!n&&!s)return!1;if(n&&!s)return n.getFullYear()===t&&n.getMonth()===r&&n.getDate()===i;if(n&&s){const e=n.getFullYear()===t&&n.getMonth()===r&&n.getDate()===i,a=s.getFullYear()===t&&s.getMonth()===r&&s.getDate()===i;return e||a}return!1}),[e,a,n,s]),X=h(((e,t,r)=>{if("range"!==a||!n||!s)return!1;const i=new Date(e,t,r);return i>n&&s>i}),[a,n,s]),J=h(((e,t,a)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===a),[x]),ee=h((e=>{const t=new Date(e.valueOf()),a=(e.getDay()+6)%7;t.setDate(t.getDate()-a+3);const n=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:f,rangeInputValue:b,viewDate:v,viewMode:N,currentMonth:I,currentYear:O,selectionMode:a,rangeSelectionState:y,datePickerRef:C,inputRef:L,startDate:n,endDate:s,setIsOpen:g,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:k,handlePrevYear:P,handleNextYear:B,handleTodayClick:V,handleClear:H,handleInputChange:Y,handleInputFocus:W,switchToMonthView:z,switchToYearView:U,selectMonth:G,selectYear:F,generateDays:j,generateMonths:Q,generateYears:q,isDateSelectable:Z,isDateSelected:$,isDateInSelectedRange:X,isToday:J,getWeekNumber:ee}}va.displayName="DataTable";const _a=l((({value:n,onChange:r,selectionMode:i="single",startDate:o,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:h,placeholder:u="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:b=!1,inline:E=!1,id:v,name:A,className:N="",placement:T="bottom-start",inputClassName:y="",size:_="md",style:C,glass:L,...x},I)=>{const{isOpen:O,inputValue:R,rangeInputValue:w,viewMode:M,currentMonth:D,currentYear:k,selectionMode:P,rangeSelectionState:B,datePickerRef:z,inputRef:U,startDate:G,endDate:F,setIsOpen:V,handleInputChange:H,handleInputFocus:Y,handleClear:W,handleDateSelect:K,handleTodayClick:j,handlePrevMonth:Q,handleNextMonth:q,handlePrevYear:Z,handleNextYear:$,switchToMonthView:X,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ae,generateMonths:ne,generateYears:re,isDateSelectable:ie,isDateSelected:oe,isDateInSelectedRange:se,isToday:le,getWeekNumber:ce}=ya({value:n,onChange:r,selectionMode:i,startDate:o,endDate:s,onRangeChange:l,minDate:d,maxDate:h,format:c,inline:E});S(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:W,focus:()=>U.current?.focus()})));const de=`c-datepicker ${N} ${E?"c-datepicker--inline":""}`.trim(),he=`c-datepicker__input c-input c-input--${_} ${y}`.trim(),ue=v||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===i?R:w,ge=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",fe=()=>{},Se=()=>{},be=()=>{},Ee=()=>t(a,{children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Z,"aria-label":"Previous year",children:e(St,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:Q,"aria-label":"Previous month",children:e(St,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"aria-label":`${ge(D)} ${k}`,children:[ge(D)," ",k]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:q,"aria-label":"Next month",children:e(St,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:$,"aria-label":"Next year",children:e(St,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Z,"aria-label":"Previous year",children:e(St,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+k,children:k}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:$,"aria-label":"Next year",children:e(St,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:fe,"aria-label":"Previous decade",children:e(St,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:be,children:[re()[0]," - ",re()[re().length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:Se,"aria-label":"Next decade",children:e(St,{name:"CaretDoubleRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(a,{children:[t("div",{className:"c-datepicker__weekdays"+(b?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[b&&e("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((t=>e("div",{className:"c-datepicker__weekday",role:"columnheader",children:t},t)))]}),e("div",{className:"c-datepicker__days"+(b?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],a=ae();for(let n=0;n<a.length;n++){const r=a[n];if(!r)continue;const i=new Date(r.year,r.month,r.day),o=ie(r.year,r.month,r.day),s=oe(r.year,r.month,r.day),l=le(r.year,r.month,r.day),c=se(r.year,r.month,r.day);if(b&&n%7==0){const a=ce(i);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:a},"weeknumber-"+Math.floor(n/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${o?"":"c-datepicker__day--disabled"}`,onClick:()=>o&&K(r.day),disabled:!o,tabIndex:r.isCurrentMonth?0:-1,"aria-label":i.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+n))}return t})()})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,a)=>{const r=n&&n.getMonth()===t.month&&n.getFullYear()===k;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>ee(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+a)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:re().map(((t,a)=>{const r=n&&n.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>te(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+a)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===i&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===B?"start":"end"," date"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:j,"aria-label":"Go to today",children:"Today"}),!E&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t("div",{className:de,ref:z,style:C,...x,children:[!E&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ue,name:A,ref:U,type:"text",className:he,placeholder:"single"===i?u:"start"===B?"Select start date...":G?Ta(G,c)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:Y,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":me}),g&&pe&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:W,"aria-label":"Clear date",children:e(St,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(St,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(O||E)&&e(a,{children:e("div",L?{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${T} c-datepicker__calendar--glass`,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:e(Xe,{...!0===L?{displacementScale:20}:L,children:e("div",{className:"c-datepicker__glass-content",children:Ee()})})}:{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+T,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:Ee()})})]})}));_a.displayName="DatePicker";const Ca=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),La=({children:a,menu:n,placement:s="bottom-start",trigger:l="click",offset:c=Ee.DEFAULTS.OFFSET,isOpen:d,onOpenChange:u,closeOnClickOutside:m=!0,closeOnEscape:p=!0,maxHeight:g,minWidth:f=Ee.DEFAULTS.MIN_WIDTH,variant:S,className:b="",style:E,glass:v,...A})=>{const[N,T]=r(!1),y=void 0!==d,_=y?d:N,C=i(null),L=i(null),x=i(null),I=i("dropdown-"+Math.random().toString(36).substring(2,9)).current,O=h((e=>{y||T(e),u&&u(e)}),[y,u]),R=h((()=>O(!_)),[_,O]),w=h((()=>{O(!1),setTimeout((()=>{L.current?.focus()}),0)}),[O]);o((()=>{if(!_||!m)return;const e=e=>{C.current&&!C.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,m,w]),o((()=>{if(!_||!p)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,p,w]);const M=h((e=>{if(!x.current)return;const t=x.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const a=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),a<t.length-1?t[a+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),a>0?t[a-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),D=h((e=>{"click"===l&&(e.preventDefault(),e.stopPropagation(),R())}),[l,R]),k=h((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),w()):(e.preventDefault(),O(!0),"ArrowDown"===e.key&&x.current&&setTimeout((()=>{const e=x.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,O,w]),P=h((()=>{"hover"===l&&O(!0)}),[l,O]),B=["c-dropdown","click"===l?"c-dropdown--onclick":"",S?"c-dropdown--"+S:"",_?"is-open":"",v?"c-dropdown--glass":"",b].filter(Boolean).join(" "),z={};g&&(z.maxHeight=g),void 0!==f&&(z.minWidth="number"==typeof f?f+"px":f);const U=e("div",{className:"c-dropdown__menu-inner",style:z,children:e(Ca.Provider,{value:{isOpen:_,close:w,id:I,trigger:l},children:e("ul",{className:"c-dropdown__menu "+(v?"c-dropdown__menu--glass":""),children:n})})});return t("div",{ref:C,className:B,style:E,onMouseEnter:"hover"===l?P:void 0,...A,children:[e("div",{ref:L,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":I,tabIndex:0,children:a}),e("div",{ref:x,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${_?"is-open":""} ${v?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:v?(()=>{const t={displacementScale:20,elasticity:0},a=!0===v?t:{...t,...v};return e(Xe,{...a,children:U})})():U})]})};function xa(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,glass:void 0,...e},[a,n]=r(t.isOpen||!1),s=i(null),l=i(null),c=h((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,a="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[n]=a+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=h((()=>{if("push"!==t.mode)return;const{position:e}=t;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[a]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),u=h(((e=!1)=>{if(n(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:a}=t;if("none"!==a)if(e){s.current.classList.add("is-fade-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),ne.ANIMATION_DURATION)}else{s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),ne.ANIMATION_DURATION)}e?(s.current.style.opacity="1",s.current.style.transform=""):s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=h(((e=!1)=>{if(s.current){const{position:a,mode:r}=t;if("none"!==r)if(e){s.current.classList.add("is-fade-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),ne.ANIMATION_DURATION)}else{s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),ne.ANIMATION_DURATION)}e?(s.current.style.opacity="0",s.current.style.transform=""):s.current.style.transform=a?ne.TRANSFORM_VALUES[a]:"","push"===t.mode&&d(),setTimeout((()=>{n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===r?0:ne.ANIMATION_DURATION)}else n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=h((e=>{t.closeOnEscape&&"Escape"===e.key&&a&&m()}),[m,t.closeOnEscape,a]),g=h((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return o((()=>(a&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[a,p,t.closeOnEscape]),o((()=>{if(s.current){const{position:e,mode:n}=t;a||"slide"!==n&&"push"!==n||!e||(s.current.style.transform=ne.TRANSFORM_VALUES[e],t.glass&&(s.current.style.opacity="0"))}}),[t.mode,t.position,t.glass,a]),o((()=>{void 0!==t.isOpen&&t.isOpen!==a&&(t.isOpen?u(!!t.glass):m(!!t.glass))}),[t.isOpen,m,a,u,t.glass]),{isOpen:a,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:n=t.position,className:r="",isOpen:i}=e,o=ne.CLASSES.BASE;return`${o} ${n?`${o}--${n}`:""} ${i??a?ne.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:u,closePanel:m,handleBackdropClick:g}}La.displayName="Dropdown";const Ia=({title:n,children:r,position:o="start",mode:s="slide",isOpen:l=!1,onOpenChange:c,backdrop:d=!0,closeOnBackdropClick:h=!0,closeOnEscape:u=!0,className:m="",style:p,glass:g})=>{const{isOpen:f,containerRef:S,backdropRef:b,generateEdgePanelClass:E,closePanel:v,handleBackdropClick:A}=xa({position:o,mode:s,isOpen:l,onOpenChange:c,backdrop:d,closeOnBackdropClick:h,closeOnEscape:u,glass:g}),N=i(null),T=E({position:o,isOpen:l,className:g?m+" c-edge-panel--glass":m});if(!f&&!1===l)return null;const y={elasticity:0},_=!0===g?y:{...y,...g},C=t(a,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:n}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>v(),"aria-label":"Close panel",children:e(St,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:r})]});return t("div",{className:T,"data-position":o,"data-mode":s,style:p,children:[d&&e("div",{ref:b,className:"c-edge-panel__backdrop",onClick:A}),e("div",{ref:S,className:"c-edge-panel__container",children:g?e(Xe,{..._,className:"c-edge-panel__glass-wrapper",style:{position:"fixed",width:N.current?.offsetWidth,height:N.current?.offsetHeight,top:S.current?.offsetTop,left:S.current?.offsetLeft,bottom:S.current?.style.bottom,right:S.current?.style.right},children:e("div",{ref:N,className:"c-edge-panel__glass-content",style:{borderRadius:S.current?.style.borderRadius},children:C})}):C})]})};function Oa(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},a=i(null);return o((()=>{a.current&&(a.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:r=t.valid,indeterminate:i=t.indeterminate,className:o=""}=e;let s="";return n?s="is-error":r&&(s="is-valid"),`c-checkbox ${s} ${a?"is-disabled":""} ${i?"c-checkbox--mixed":""} ${o}`.trim()},checkboxRef:a}}Ia.displayName="EdgePanel";const Ra=({label:a,checked:n=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:h,invalid:u=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:f,glass:S})=>{const{generateCheckboxClass:b,checkboxRef:E}=Oa({indeterminate:p,disabled:s,invalid:u,valid:m}),v=b({className:`${i} ${S?"c-checkbox--glass":""}`.trim(),disabled:s,invalid:u,valid:m,indeterminate:p}),A=t("div",{className:v,style:o,children:[e("input",{ref:E,type:"checkbox",className:"c-checkbox__input",checked:n,onChange:r,disabled:s,required:l,id:c,name:d,value:h,"aria-label":a?void 0:g,"aria-describedby":f,"aria-invalid":u}),a&&e("label",{className:"c-checkbox__label",htmlFor:c,children:a})]});if(S){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},a=!0===S?t:{...t,...S};return e(Xe,{...a,children:A})}return A};function wa(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e,r=a?le.CLASSES.DISABLED:"";return`${le.CLASSES.BASE} ${r} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}Ra.displayName="Checkbox";const Ma=({children:t,onSubmit:a,onReset:n,className:r="",style:i,disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:h="on"})=>{const{generateFormClass:u,handleSubmit:m,handleReset:p}=wa({disabled:o}),g=u({className:r,disabled:o});return e("form",{id:s,className:g,style:i,onSubmit:m(a),onReset:p(n),method:l,encType:c,noValidate:d,autoComplete:h,children:t})};function Da(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===a?"":"sm"===a?ce.CLASSES.SMALL:ce.CLASSES.LARGE,l=r?ce.CLASSES.INVALID:i?ce.CLASSES.VALID:"",c=n?ce.CLASSES.DISABLED:"";return`${ce.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}Ma.displayName="Form";const ka=({children:a,label:n,helperText:r,htmlFor:i,className:o="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:h=!1,size:u="md"})=>{const{generateFormGroupClass:m}=Da({size:u,disabled:l,invalid:d,valid:h}),p=m({className:o,disabled:l,invalid:d,valid:h,size:u});return t("div",{className:p,style:s,children:[n&&t("label",{className:"c-form-group__label",htmlFor:i,children:[n,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:a}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function Pa(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===a?"":"sm"===a?de.CLASSES.SMALL:de.CLASSES.LARGE,d=n?"c-input--"+n:"",h="textarea"===l?"c-input--textarea":"";let u="";i?u=de.CLASSES.INVALID:o&&(u=de.CLASSES.VALID);const m=r?de.CLASSES.DISABLED:"";return`${de.CLASSES.BASE} ${c} ${d} ${h} ${u} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:a=""}=t,{prefixIcon:n=!1,suffixIcon:r=!1,clearable:i=!1,showCounter:o=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[de.ELEMENTS.WRAPPER];return n&&c.push(de.CLASSES.PREFIX_ICON),(r||i||s)&&c.push(de.CLASSES.SUFFIX_ICON),i&&c.push(de.CLASSES.CLEARABLE),o&&c.push(de.CLASSES.WITH_COUNTER),s&&c.push(de.CLASSES.PASSWORD_TOGGLE),l&&c.push(de.CLASSES.FULL_WIDTH),a&&c.push(a),c.filter(Boolean).join(" ")}}}ka.displayName="FormGroup";const Ba=l((({type:t="text",value:a,onChange:n,onBlur:r,onFocus:i,placeholder:o,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:h=!1,id:u,name:m,autoComplete:p,autoFocus:g=!1,size:f="md",variant:S,invalid:b=!1,valid:E=!1,maxLength:v,minLength:A,pattern:N,min:T,max:y,step:_,ariaLabel:C,ariaDescribedBy:L,glass:x},I)=>{const{generateInputClass:O}=Pa({size:f,variant:S,disabled:c,invalid:b,valid:E}),R=O({className:`${s} ${x?"c-input--glass":""}`.trim(),size:f,variant:S,disabled:c,invalid:b,valid:E,type:t}),w=e("input",{ref:I,type:t,className:R,value:a,onChange:n,onBlur:r,onFocus:i,placeholder:o,disabled:c,required:d,readOnly:h,id:u,name:m,autoComplete:p,autoFocus:g,maxLength:v,minLength:A,pattern:N,min:T,max:y,step:_,"aria-label":C,"aria-describedby":L,"aria-invalid":b,style:x?{...l}:l});if(x){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},a=!0===x?t:{...t,...x};return e(Xe,{...a,children:w})}return w}));function za(e){const t=i(null),a=i(null),s=i(null),l={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},c=!!l.backgroundSlider,u=c&&l.backgroundSlider?function(e){const{slides:t,autoplay:a,loop:s=!0,transition:l="fade",transitionDuration:c=1e3}=e,[u,m]=r(0),[p,g]=r(!1),f=i(null),S=i(!1),b=d((()=>t.map((()=>n.createRef()))),[t.length]),E=d((()=>t.map((()=>n.createRef()))),[t.length]),v=h((e=>{if(e===u||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const a=E[e]?.current;a&&"video"===t[e].type&&!1!==(t[e].videoOptions||{}).autoplay&&a.play().catch((()=>{}));const n=E[u]?.current;n&&"video"===t[u].type&&n.pause(),setTimeout((()=>{g(!1)}),c)}),[u,p,t,E,c]),A=h((()=>{if(0===t.length)return;let e;e=s?(u+1)%t.length:Math.min(u+1,t.length-1),v(e)}),[u,t.length,s,v]),N=h((()=>{S.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),T=h((()=>{if(S.current&&a&&t.length>1){S.current=!1;const e="object"==typeof a?a.delay:3e3;f.current||(f.current=setInterval((()=>{S.current||p||A()}),e))}}),[a,t.length,A,p]);return o((()=>{if(!a||1>=t.length)return;const e="object"==typeof a?a.delay:3e3;return"object"==typeof a&&a.pauseOnHover,f.current&&(clearInterval(f.current),f.current=null),S.current||(f.current=setInterval((()=>{S.current||p||A()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[a,t.length,A,p]),o((()=>{if(t.length>0&&"video"===t[u]?.type){const e=E[u]?.current;e&&!1!==(t[u].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[u,t,E]),o((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:u,isTransitioning:p,slideRefs:b,videoRefs:E,handleSlideTransition:v,pauseAutoplay:N,resumeAutoplay:T}}(l.backgroundSlider):void 0,m=!!c||!!l.backgroundImageSrc||!!l.videoBackground,p=!!l.imageSrc,g=p&&"center"!==l.alignment,f=(e,t=.5)=>{if(!e)return;const a=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const n=()=>{const t=window.pageYOffset*a,n=e.querySelector(V.SELECTORS.BG);n&&(n.style.transform=`translateY(${t}px)`)};s.current=n,window.addEventListener("scroll",n),n()},S=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(V.SELECTORS.BG);t&&(t.style.transform=""),s.current&&(window.removeEventListener("scroll",s.current),s.current=null)};return o((()=>{const e=t.current;return e&&l.parallax&&m&&!c&&f(e,l.parallaxIntensity),()=>{e&&s.current&&S(e)}}),[l.parallax,l.parallaxIntensity,m,c]),{generateHeroClassNames:(e="")=>{const t=[V.SELECTORS.HERO.replace(".","")];return"center"===l.alignment?t.push(V.CLASSES.CENTER):"right"===l.alignment?t.push(V.CLASSES.RIGHT):"left"===l.alignment&&t.push(V.CLASSES.LEFT),l.fullViewportHeight&&t.push(V.CLASSES.FULL_VH),l.parallax&&t.push("c-hero--parallax"),l.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=l.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===l.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=l.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:m,hasForegroundImage:p,useGridLayout:g,heroRef:t,videoRef:a,applyParallaxEffect:f,removeParallaxEffect:S,backgroundSlider:u,hasBackgroundSlider:c}}function Ua(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const a=[$.SELECTORS.RIVER.replace(".","")];return t.center&&a.push($.CLASSES.CENTER),t.breakout&&a.push($.CLASSES.BREAKOUT),t.reverse&&a.push($.CLASSES.REVERSE),e&&a.push(e),a.join(" ")},generateContentClass:()=>$.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>$.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function Ga(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[a,n]=r(t.expanded||!1);return{defaultProps:t,isExpanded:a,setIsExpanded:n,generateNavbarClass:e=>{const{position:a=t.position,variant:n,collapsible:r=t.collapsible,className:i=""}=e;return`c-navbar ${"static"!==a?"c-navbar--"+a:""} ${n?"c-navbar--"+n:""} ${r?"c-navbar--collapsible":""} ${i}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!a;n(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:a}}function Fa(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:a=t.alignment,variant:n=t.variant,className:r=""}=e;return`c-nav ${"start"!==a?"c-nav--"+a:""} ${"default"!==n?"c-nav--"+n:""} ${r}`.trim()}}}function Va(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:a=t.dropdown,megaMenu:n=t.megaMenu,active:r=t.active,disabled:i=t.disabled,className:o=""}=e;return`c-nav__item ${a&&!n?ee.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${r?ee.CLASSES.ACTIVE:""} ${i?ee.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:(e=!1,t=!1,a="")=>`c-nav__link ${e?ee.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${a}`.trim(),handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function Ha(e){const t={alignment:"start",megaMenu:!1,...e},a=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:a=t.alignment,megaMenu:n=t.megaMenu,className:r=""}=e,i=n?ee.SELECTORS.MEGA_MENU.replace(".",""):ee.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===a?o=i+"--center":"end"===a&&(o=i+"--end"),`${i} ${o} ${r}`.trim()},isInFixedBottomNavbar:a,getIconClass:(e=!1)=>"c-nav__icon "+(a()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>a()?"CaretUp":"CaretDown"}}function Ya(e){const t={collapsible:!0,collapsibleDesktop:!1,defaultCollapsedDesktop:!1,isOpen:!1,...e},[a,n]=r(void 0!==t.defaultCollapsedDesktop?!t.defaultCollapsedDesktop:t.isOpen||!1),s=i(null),l=i(null),c=i(null);o((()=>{void 0!==t.isOpen?n(t.isOpen):void 0!==t.defaultCollapsedDesktop&&n(!t.defaultCollapsedDesktop)}),[t.isOpen,t.defaultCollapsedDesktop]),o((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop,n=void 0!==t.isOpen?t.isOpen:a;if(e&&s.current&&l.current){const e=setTimeout((()=>{s.current&&l.current&&(s.current.style.height=n?l.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&s.current&&(s.current.style.height="auto")}),[]),o((()=>{const e=()=>{if(768>window.innerWidth?t.collapsible:t.collapsibleDesktop){if(s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:a;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}}else s.current&&(s.current.style.height="auto")},n=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(n),window.removeEventListener("resize",e)}}),[t.collapsible,t.collapsibleDesktop,t.isOpen,t.onToggle,a]),o((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop;if(e&&s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:a;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}else!e&&s.current&&(s.current.style.height="auto")}),[t.isOpen,a,t.collapsible,t.collapsibleDesktop]);const d=()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!a;"function"==typeof t.onToggle?t.onToggle(e):n(e)},h=()=>void 0!==t.isOpen?t.isOpen:a;return{defaultProps:t,isOpenState:h(),wrapperRef:s,innerRef:l,sideMenuRef:c,generateSideMenuClass:e=>{const{className:t="",isOpen:a=!1}=e,n=a?te.CLASSES.IS_OPEN:"";return`${te.CLASSES.BASE} ${n} ${t}`.trim()},generateWrapperClass:()=>te.CLASSES.WRAPPER,handleToggle:d,handleDesktopCollapse:()=>{d()},getCurrentOpenState:h}}function Wa(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:a=t.disabled,className:n=""}=t,r=e?te.CLASSES.ACTIVE:"",i=a?te.CLASSES.DISABLED:"";return`${te.CLASSES.LINK} ${r} ${i} ${n}`.trim()},handleClick:e=>a=>{t.disabled?a.preventDefault():e&&e(a)}}}function Ka(e,t,a={}){const{prefix:n="atomix",separator:r="-",includeComponent:i=!0}=a,o=[n];return i&&o.push(e),o.push(t),"--"+o.join(r)}function ja(e,t={}){const a={},{component:n,properties:r,parts:i,states:o,variants:s}=e;return Object.entries(r).forEach((([e,r])=>{const i=Ka(n,e,t);a[i]=r+""})),i&&Object.entries(i).forEach((([e,r])=>{Object.entries(r).forEach((([r,i])=>{const o=Ka(n,`${e}-${r}`,t);a[o]=i+""}))})),o&&Object.entries(o).forEach((([e,r])=>{Object.entries(r).forEach((([r,i])=>{const o=Ka(n,`${e}-${r}`,t);a[o]=i+""}))})),s&&Object.entries(s).forEach((([e,r])=>{Object.entries(r).forEach((([r,i])=>{const o=Ka(n,`${e}-${r}`,t);a[o]=i+""}))})),a}function Qa(e,t={}){const a={},{prefix:n="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const i=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);a[`--${n}${r}${i}`]=t+""})),a}function qa(e,t=document.documentElement){Object.entries(e).forEach((([e,a])=>{t.style.setProperty(e,a+"")}))}function Za(e,t=document.documentElement){e.forEach((e=>{t.style.removeProperty(e)}))}function $a(e,t=document.documentElement){return getComputedStyle(t).getPropertyValue(e).trim()||null}function Xa(e){return Object.entries(e).reduce(((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{})}function Ja(...e){return e.reduce(((e,t)=>(t&&Object.assign(e,t),e)),{})}function en(e){return/^--[a-z0-9-]+$/.test(e)}function tn(e,t="atomix"){const a=RegExp(`^--${t}-([a-z0-9]+)-`),n=e.match(a);return n?n[1]??null:null}function an(...e){return e.filter(Boolean).join(" ")}function nn(e,t){return e?{...Xa(e),...t}:t||{}}function rn(e,t){const{className:a,style:n,cssVars:r,parts:i}=t,o=r?Xa(r):{};return{...e,className:an(e.className,a),style:{...o,...e.style,...n}}}function on(e,t){return e?.[t]}function sn(e,t,a){return{...a,className:an(e,t?.className),style:{...t?.style,...a?.style}}}function ln(e){return!!(e.parts||e.cssVars||e.slots)}function cn(e,t){return"development"!==process.env.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function dn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function hn(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function un(e){if(!hn(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const a of t){const t=e.match(a);if(t&&t[1])return t[1]}return null}Ba.displayName="Input";var mn=Object.freeze({__proto__:null,applyPartStyles:function(e,t){return t?{...e,className:an(e.className,t.className),style:{...e.style,...t.style}}:e},createCSSVarStyle:nn,createDebugAttrs:cn,createPartProps:sn,extractYouTubeId:un,generateUUID:dn,getPartStyles:on,hasCustomization:ln,isYouTubeUrl:hn,mergeClassNames:an,mergeComponentProps:rn});function pn(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[a,n]=r(t.items||[]),[i,o]=r(""),s=e=>{if(!e.trim())return null;const t={id:dn(),text:e.trim(),completed:!1};return n((e=>[...e,t])),o(""),t};return{items:a,inputText:i,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return n((a=>a.map((a=>a.id===e?(t={...a,completed:!a.completed},t):a)))),t},deleteTodo:e=>{const t=a.length;return n((t=>t.filter((t=>t.id!==e)))),a.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!i.trim())return;const a=s(i);a&&t&&t(a.text)},generateTodoClasses:e=>{const{size:a=t.size,className:n="",disabled:r=!1}=e,i="md"===a?"":"c-todo--"+a,o=r?"c-todo--disabled":"";return`${se.CLASSES.BASE} ${i} ${o} ${n}`.trim()},generateItemClasses:e=>{const t=e.completed?se.CLASSES.COMPLETED:"";return`${se.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?a:a.filter((e=>!e.completed))}}function gn(e){const{glassSize:t={width:270,height:69},elasticity:a=.15,mouseContainer:n,globalMousePos:s,mouseOffset:l}=e,d=c(),u=i(null),[m,p]=r(!1),[g,f]=r(!1),[S,b]=r(t),[E,v]=r({x:0,y:0}),[A,N]=r({x:0,y:0}),T=s||E,y=l||A,_=h((e=>{const t=n?.current||u.current;if(!t)return;const a=t.getBoundingClientRect(),r=a.left+a.width/2,i=a.top+a.height/2;N({x:(e.clientX-r)/a.width*100,y:(e.clientY-i)/a.height*100}),v({x:e.clientX,y:e.clientY})}),[n]);o((()=>{if(s&&l)return;const e=n?.current||u.current;return e?(e.addEventListener("mousemove",_),()=>e.removeEventListener("mousemove",_)):void 0}),[_,n,s,l]);const C=h((()=>{if(!T.x||!T.y||!u.current)return"scale(1)";const e=u.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2,r=S.width,i=S.height,o=T.x-t,s=T.y-n,l=Math.max(0,Math.abs(o)-r/2),c=Math.max(0,Math.abs(s)-i/2),d=Math.sqrt(l*l+c*c);if(d>200)return"scale(1)";const h=1-d/200,m=Math.sqrt(o*o+s*s);if(0===m)return"scale(1)";const p=o/m,g=s/m,f=Math.min(m/300,1)*a*h,b=1+Math.abs(p)*f*.3-Math.abs(g)*f*.15,E=1+Math.abs(g)*f*.3-Math.abs(p)*f*.15;return`scaleX(${Math.max(.8,b)}) scaleY(${Math.max(.8,E)})`}),[T,a,S]),L=h((()=>{if(!u.current)return{x:0,y:0};const e=u.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2,r=S.width,i=S.height,o=Math.max(0,Math.abs(T.x-t)-r/2),s=Math.max(0,Math.abs(T.y-n)-i/2),l=Math.sqrt(o*o+s*s),c=l>200?0:1-l/200;return{x:(T.x-t)*a*.1*c,y:(T.y-n)*a*.1*c}}),[T,a,S]);o((()=>{const e=()=>{if(u.current){const e=u.current.getBoundingClientRect();b({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const x=h((()=>{p(!0)}),[]),I=h((()=>{p(!1)}),[]),O=h((()=>{f(!0)}),[]),R=h((()=>{f(!1)}),[]);return{filterId:d,glassRef:u,isHovered:m,isActive:g,currentGlassSize:S,globalMousePos:T,mouseOffset:y,calculateDirectionalScale:C,calculateElasticTranslation:L,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:O,handleMouseUp:R}}function fn(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:r=t.valid,className:i=""}=e;let o="";n?o=he.CLASSES.INVALID:r&&(o=he.CLASSES.VALID);const s=a?he.CLASSES.DISABLED:"";return`${he.CLASSES.BASE} ${o} ${s} ${i}`.trim()}}}function Sn(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===a?"":"sm"===a?me.CLASSES.SMALL:me.CLASSES.LARGE;let l="";r?l=me.CLASSES.INVALID:i&&(l=me.CLASSES.VALID);const c=n?me.CLASSES.DISABLED:"";return`${me.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function bn(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===a?"":"sm"===a?pe.CLASSES.SMALL:pe.CLASSES.LARGE,c=n?"c-input--"+n:"";let d="";i?d=pe.CLASSES.INVALID:o&&(d=pe.CLASSES.VALID);const h=r?pe.CLASSES.DISABLED:"";return`${pe.CLASSES.BASE} ${l} ${c} ${d} ${h} ${s}`.trim()}}}function En(e){return{defaultOptions:{items:[],divider:G.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[G.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[G.CLASSES.ITEM,e.active||t?G.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}function vn({isOpen:e,onOpenChange:t,onOpen:a,onClose:n}={}){const[i,s]=r(!1),l=void 0!==e,c=l?!!e:i;o((()=>{l&&s(!!e)}),[e,l]);const d=h((e=>{l||s(e),t&&t(e),e&&a?a():!e&&n&&n()}),[l,t,a,n]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}}function An(e){const{slides:t,slidesToShow:a=1,spaceBetween:n=0,loop:s=!1,initialSlide:l=0,direction:c="horizontal",speed:u=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,S=i(null),b=i(null),E=i(!1),v=i(null),[A,N]=r(!1),[T,y]=r(l),[_,C]=r(0),[L,x]=r(!1),[I,O]=r(0),[R,w]=r(!1),[M,D]=r(0),[k,P]=r(0),B=d((()=>0===I?0:(I-n*(a-1))/a),[I,n,a]),z=d((()=>s&&0!==t.length?[...t.map(((e,t)=>({...e,id:"set1-"+(e.id||t)}))),...t.map(((e,t)=>({...e,id:"set2-"+(e.id||t)}))),...t.map(((e,t)=>({...e,id:"set3-"+(e.id||t)})))]:t),[t,s]),U=t.length,G=d((()=>0===B?0:-_*B+k),[B,_,k]);o((()=>{if(!g)return v.current&&(clearInterval(v.current),v.current=null),void N(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:n=3e3,pauseOnMouseEnter:r=!1,disableOnInteraction:i=!1,reverseDirection:o=!1}=e;v.current&&clearInterval(v.current),v.current=setInterval((()=>{y((e=>{if(L)return e;let n;if(i&&v.current&&(clearInterval(v.current),v.current=null,N(!1)),n=s?(e+1)%t.length:Math.min(e+1,t.length-a),o){const a=s?0===e?t.length-1:e-1:Math.max(e-1,0);return C(s?t.length+a:a),x(!0),P(0),setTimeout((()=>{x(!1),f?.(a)}),u),a}return C(s?t.length+n:n),x(!0),P(0),setTimeout((()=>{x(!1),f?.(n),s&&n>=2*t.length&&(E.current=!0,C(t.length+n),setTimeout((()=>{E.current=!1}),0))}),u),n}))}),n),N(!0);let l=null;const c=()=>{v.current&&(clearInterval(v.current),v.current=null,N(!1))},d=()=>{v.current&&clearInterval(v.current),v.current=setInterval((()=>{y((e=>{if(L)return e;let n;return n=s?(e+1)%t.length:Math.min(e+1,t.length-a),C(s?t.length+n:n),x(!0),P(0),setTimeout((()=>{x(!1),f?.(n),s&&(n<2*t.length||(E.current=!0,C(t.length+n),setTimeout((()=>{E.current=!1}),0)))}),u),n}))}),n),N(!0)};return r&&S.current&&(l=S.current,l.addEventListener("mouseenter",c),l.addEventListener("mouseleave",d)),()=>{v.current&&(clearInterval(v.current),v.current=null),l&&(l.removeEventListener("mouseenter",c),l.removeEventListener("mouseleave",d)),N(!1)}}),[g,t.length,s,a,L,u,f,E]),o((()=>{C(s?t.length+l:l)}),[s,t.length,l]),o((()=>{const e=()=>{if(S.current){const e="horizontal"===c?S.current.offsetWidth:S.current.offsetHeight;O(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const F=h((()=>{if(!L)if(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,N(!1)),s){const e=(T+1)%t.length,a=_+1;y(e),C(a),x(!0),P(0),setTimeout((()=>{x(!1),f?.(e),a<2*t.length||(E.current=!0,C(t.length+e),setTimeout((()=>{E.current=!1}),0))}),u)}else{const e=Math.min(T+1,t.length-a);y(e),C(e),x(!0),P(0),setTimeout((()=>{x(!1),f?.(e)}),u)}}),[T,_,t.length,a,s,L,u,f,z.length,U,g]),V=h((()=>{if(!L)if(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,N(!1)),s){const e=0===T?t.length-1:T-1,a=_-1;y(e),C(a),x(!0),P(0),setTimeout((()=>{x(!1),f?.(e),a<t.length&&(E.current=!0,C(t.length+e),setTimeout((()=>{E.current=!1}),0))}),u)}else{const e=Math.max(T-1,0);y(e),C(e),x(!0),P(0),setTimeout((()=>{x(!1),f?.(e)}),u)}}),[T,_,t.length,s,L,u,f,z.length,U,g]),H=h((e=>{L||e===T||(g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,N(!1)),x(!0),P(0),y(e),C(s?t.length+e:e),setTimeout((()=>{x(!1),f?.(e)}),u))}),[T,L,u,f,s,U,g]),Y=h((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&v.current&&(clearInterval(v.current),v.current=null,N(!1));const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;D(t),w(!0),P(0)}),[m,c,g]),W=h((e=>{if(!R||!m)return;const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,a=M-t;Math.abs(a)>10&&(e.preventDefault(),P(.5*-a))}),[R,M,m,c]),K=h((e=>{if(!R||!m)return;const t="horizontal"===c?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,a=M-t;w(!1),P(0),Math.abs(a)>p&&(a>0?F():V())}),[R,M,p,F,V,m,c]),j=s||T<t.length-a,Q=s||T>0;return{activeIndex:T,realIndex:T,previousIndex:T,isBeginning:!s&&0===T,isEnd:!s&&T>=t.length-a,progress:t.length>0?T/(t.length-1):0,autoplayRunning:A,transitioning:L,touching:R,translate:G,slidesPerView:a,slidesCount:t.length,isLocked:!1,destroyed:!1,size:I,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:j,allowSlidePrev:Q,allowTouchMove:m,animating:L,enabled:!0,initialized:!0,slideNext:F,slidePrev:V,goToSlide:H,canSlideNext:j,canSlidePrev:Q,containerRef:S,wrapperRef:b,handleTouchStart:Y,handleTouchMove:W,handleTouchEnd:K,allSlides:z,translateValue:G,slideWidth:B,currentSlidesToShow:a,loopedSlides:U,repositioningRef:E}}function Nn(e){const t=d((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),a=d((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),a=Math.min(...e),n=Math.max(...e),r=e.reduce(((e,t)=>e+t),0);return{min:a,max:n,total:r,average:r/e.length}}),[t]);return{data:t,stats:a,isEmpty:0===t.length}}function Tn(e,t=400,a=300){return d((()=>{const n={top:20,right:20,bottom:40,left:40},r=t-n.left-n.right,i=a-n.top-n.bottom;if(!e.length)return{xScale:()=>n.left,yScale:()=>n.top+i,width:t,height:a,padding:n};const o=e.map((e=>e.value)),s=Math.min(0,...o),l=Math.max(...o)-s||1;return{xScale:t=>n.left+t/Math.max(e.length-1,1)*r,yScale:e=>n.top+i-(e-s)/l*i,width:t,height:a,padding:n}}),[e,t,a])}function yn(){const[e,t]=r({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:h((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:h((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:h((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var _n=Object.freeze({__proto__:null,DOTS:ga,useAccordion:we,useAtomixGlass:$e,useBadge:vt,useBarChart:jt,useBlock:Tt,useBreadcrumb:En,useButton:Ct,useCard:kt,useChartData:Nn,useChartInteraction:yn,useChartScale:Tn,useCheckbox:Oa,useDataTable:pa,useEdgePanel:xa,useForm:wa,useFormGroup:Da,useGlassContainer:gn,useHero:za,useInput:Pa,useLineChart:aa,useModal:vn,useNav:Fa,useNavDropdown:Ha,useNavItem:Va,useNavbar:Ga,usePagination:Sa,usePieChart:ia,useRadio:fn,useRiver:Ua,useSelect:Sn,useSideMenu:Ya,useSideMenuItem:Wa,useSlider:An,useSpinner:Lt,useTextarea:bn,useTodo:pn});const Cn=({options:a=[],value:n,onChange:s,onBlur:l,onFocus:c,placeholder:d="Select an option",className:h="",style:u,disabled:m=!1,required:p=!1,id:g,name:f,size:S="md",invalid:b=!1,valid:E=!1,multiple:v=!1,ariaLabel:A,ariaDescribedBy:N,glass:T})=>{const{generateSelectClass:y}=Sn({size:S,disabled:m,invalid:b,valid:E}),_=y({className:`${h} ${T?"c-select--glass":""}`.trim(),size:S,disabled:m,invalid:b,valid:E}),[C,L]=r(!1),[x,I]=r(d),O=i(null),R=i(null),w=i(null),M=i(null);o((()=>{if(n){const e=a.find((e=>e.value===n));e&&I(e.label)}else I(d)}),[n,a,d]),o((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&(L(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const D=t("div",{className:`${_} ${C?me.CLASSES.IS_OPEN:""}`,ref:O,style:u,"aria-expanded":C,children:[t("select",{ref:M,value:n,onChange:s,onBlur:l,onFocus:c,disabled:m,required:p,id:g,name:f,multiple:v,"aria-label":A,"aria-describedby":N,"aria-invalid":b,style:{display:"none"},children:[d&&e("option",{value:"",disabled:!0,children:d}),a.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:me.CLASSES.SELECTED,onClick:()=>{m||(!C&&w.current&&R.current?w.current.style.height=R.current.clientHeight+"px":w.current&&(w.current.style.height="0px"),L(!C))},"aria-disabled":m,children:x}),e("i",{className:`${me.CLASSES.ICON_CARET} ${me.CLASSES.TOGGLE_ICON}`}),e("div",{className:me.CLASSES.SELECT_BODY,ref:w,style:{height:0},children:e("div",{className:me.CLASSES.SELECT_PANEL,ref:R,children:e("ul",{className:me.CLASSES.SELECT_ITEMS,children:a.map(((a,r)=>e("li",{className:me.CLASSES.SELECT_ITEM,"data-value":a.value,onClick:()=>!a.disabled&&(e=>{if(I(e.label),L(!1),w.current&&(w.current.style.height="0px"),M.current&&(M.current.value=e.value),s){const t={target:{name:f,value:e.value}};s(t)}})(a),children:t("label",{htmlFor:"SelectItem"+r,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+r,className:"c-checkbox__input c-select__item-input",checked:n===a.value,readOnly:!0,disabled:a.disabled}),e("div",{className:"c-select__item-label",children:a.label})]})},a.value)))})})})]});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},a=!0===T?t:{...t,...T};return e(Xe,{...a,children:D})}return D};Cn.displayName="Select";const Ln=({label:a,checked:n=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:h,invalid:u=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g,glass:f})=>{const{generateRadioClass:S}=fn({disabled:s,invalid:u,valid:m}),b=S({className:`${i} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:u,valid:m}),E=t("div",{className:b,style:o,children:[e("input",{type:"radio",className:"c-radio__input",checked:n,onChange:r,disabled:s,required:l,id:c,name:d,value:h,"aria-label":a?void 0:p,"aria-describedby":g,"aria-invalid":u}),a&&e("label",{className:"c-radio__label",htmlFor:c,children:a})]});if(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},a=!0===f?t:{...t,...f};return e(Xe,{...a,children:E})}return E};Ln.displayName="Radio";const xn=l((({value:t,onChange:a,onBlur:n,onFocus:r,placeholder:i,className:o="",style:s,disabled:l=!1,required:c=!1,readOnly:d=!1,id:h,name:u,rows:m=4,cols:p,maxLength:g,minLength:f,size:S="md",variant:b,invalid:E=!1,valid:v=!1,autoFocus:A=!1,ariaLabel:N,ariaDescribedBy:T,glass:y},_)=>{const{generateTextareaClass:C}=bn({size:S,variant:b,disabled:l,invalid:E,valid:v}),L=C({className:`${o} ${y?"c-input--glass":""}`.trim(),size:S,variant:b,disabled:l,invalid:E,valid:v}),x=e("textarea",{ref:_,className:L,value:t,onChange:a,onBlur:n,onFocus:r,placeholder:i,disabled:l,required:c,readOnly:d,id:h,name:u,rows:m,cols:p,maxLength:g,minLength:f,autoFocus:A,"aria-label":N,"aria-describedby":T,"aria-invalid":E,style:y?{...s}:s});if(y){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},a=!0===y?t:{...t,...y};return e(Xe,{...a,children:x})}return x}));xn.displayName="Textarea";const In=l((({platform:a,url:n,icon:r,label:i,size:o="md",variant:s="default",disabled:l=!1,className:c="",...d},h)=>{const u=["c-footer__social-link","c-footer__social-link--"+a,"c-footer__social-link--"+o,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=i||"Follow us on "+(e=>({facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"}[e]||e))(a);return t("a",{ref:h,href:l?void 0:n,className:u,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||(t=>{const a={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"}[t];return e(St,a?{name:a}:{name:"Link"})})(a)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));In.displayName="FooterSocialLink";const On=l((({children:t,className:a="",justifyContent:n,alignItems:r,noGutters:i,direction:o,wrap:s,...l},c)=>{const d=["o-grid"];return n&&d.push("u-justify-content-"+n),r&&d.push("u-align-items-"+r),i&&d.push("o-grid--no-gutters"),o&&d.push("u-flex-direction-"+o),s&&d.push("u-flex-wrap-"+s),a&&d.push(a),e("div",{ref:c,className:d.join(" "),...l,children:t})}));On.displayName="Grid";const Rn=l((({children:t,className:a="",xs:n,sm:r,md:i,lg:o,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:h,offsetLg:u,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:S,align:b,...E},v)=>{const A=n||r||i||o||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],N=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?A.push("o-grid__col--auto"):A.push("o-grid__col--"+e):"auto"===e?A.push(`o-grid__col--${t}-auto`):A.push(`o-grid__col--${t}-${e}`)):A.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return N(n,"xs"),N(r,"sm"),N(i,"md"),N(o,"lg"),N(s,"xl"),N(l,"xxl"),c&&A.push("o-grid__offset--"+c),d&&A.push("o-grid__offset--sm-"+d),h&&A.push("o-grid__offset--md-"+h),u&&A.push("o-grid__offset--lg-"+u),m&&A.push("o-grid__offset--xl-"+m),p&&A.push("o-grid__offset--xxl-"+p),void 0!==g&&A.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&A.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),S&&A.push("u-flex-basis-"+S),b&&A.push("u-align-self-"+b),a&&A.push(a),e("div",{ref:v,className:A.join(" "),...E,children:t})}));Rn.displayName="GridCol";const wn=l((({children:t,className:a="",justifyContent:n,alignItems:r,noGutters:i,...o},s)=>{const l=["o-grid"];return n&&l.push("u-justify-content-"+n),r&&l.push("u-align-items-"+r),i&&l.push("o-grid--no-gutters"),a&&l.push(a),e("div",{ref:s,className:l.join(" "),...o,children:t})}));wn.displayName="Row";const Mn=l((({brand:a,brandLogo:r,brandDescription:i,copyright:o,layout:s="columns",variant:l="primary",size:c="md",showNewsletter:d=!1,newsletterTitle:h="Stay Updated",newsletterDescription:u="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:m="Enter your email",newsletterButtonText:p="Subscribe",onNewsletterSubmit:g,socialLinks:f=[],showBackToTop:S=!1,backToTopText:b="Back to Top",onBackToTop:E,showDivider:v=!0,sticky:A=!1,children:N,className:T="",disabled:y=!1,glass:_,...C},L)=>{const{footerClass:x,containerClass:I,brandClass:O,sectionsClass:R,bottomClass:w,handleNewsletterSubmit:M,handleBackToTop:D,socialLinks:k}=function(e={}){const{layout:t=Oe.DEFAULTS.LAYOUT,variant:a=Oe.DEFAULTS.VARIANT,size:n=Oe.DEFAULTS.SIZE,sticky:r=Oe.DEFAULTS.STICKY,showNewsletter:i=Oe.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:o=Oe.DEFAULTS.SHOW_BACK_TO_TOP,socialLinks:s=[],onNewsletterSubmit:l,onBackToTop:c,className:d=""}=e;return{footerClass:[Oe.CLASSES.BASE,Oe.CLASSES[t.toUpperCase()]||Oe.CLASSES.COLUMNS,"c-footer--"+a,Oe.CLASSES[n.toUpperCase()]||Oe.CLASSES.MD,r&&Oe.CLASSES.STICKY,i&&"c-footer--with-newsletter",d].filter(Boolean).join(" "),containerClass:Oe.CLASSES.CONTAINER,brandClass:Oe.CLASSES.BRAND,sectionsClass:[Oe.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" "),bottomClass:Oe.CLASSES.BOTTOM,handleNewsletterSubmit:e=>{l&&l(e)},handleBackToTop:()=>{c?c():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:s,showNewsletter:i}}({layout:s,variant:l,size:c,sticky:A,showNewsletter:d,showBackToTop:S,socialLinks:f,onNewsletterSubmit:g,onBackToTop:E,className:T}),P=(()=>{switch(s){case"columns":default:return{brand:4,content:d?4:8,newsletter:d?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:d?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:d?9:0};case"wide":return{brand:3,content:6,newsletter:d?3:0}}})(),B=e=>{const t="columns"===s||"sidebar"===s||"wide"===s?P[e]:12;return"flexible"===s&&"auto"===P[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:t}},z=t("div",{className:I,children:[t(On,{className:R,alignItems:"start",justifyContent:"centered"===s?"center":void 0,children:[(a||r||i)&&t(Rn,{...B("brand"),className:O,children:[r&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof r?e("img",{src:r,alt:"Brand Logo"}):r}),a&&e("div",{className:"c-footer__brand-name",children:"string"==typeof a?e("h3",{children:a}):a}),i&&e("div",{className:"c-footer__brand-description",children:i}),f.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:f.map(((t,a)=>e(In,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:c},`${t.platform}-${a}`)))})]}),N&&e(Rn,{...B("content"),className:"c-footer__content",children:e(On,{className:"c-footer__sections",alignItems:"centered"===s||"stacked"===s?"center":void 0,children:n.Children.map(N,(e=>n.isValidElement(e)?n.cloneElement(e,{showNewsletter:d}):e))})}),d&&t(Rn,{...B("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:h}),u&&e("p",{className:"c-footer__newsletter-description",children:u}),e(Ma,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&M(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(Ba,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:m,required:!0}),e(It,{type:"submit",className:"c-footer__newsletter-button",children:p})]})})]})]}),(o||S)&&t("div",{className:w,children:[o&&e("div",{className:"c-footer__copyright",children:o}),S&&t(It,{variant:"ghost",className:"c-footer__back-to-top",onClick:D,disabled:y,"aria-label":b,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:b})]})]})]});return e("footer",{ref:L,className:x+" c-footer "+(_?"c-footer--glass":""),...C,children:_?e(Xe,{..._,elasticity:0,children:e("div",{className:"c-footer__glass",children:z})}):z})}));Mn.displayName="Footer";const Dn=l((({children:t,className:a="",xs:s=1,sm:l,md:c,lg:d,xl:p,xxl:g,gap:f=16,animate:b=!0,imagesLoaded:E=!0,onLayoutComplete:v,onImageLoad:A,...N},T)=>{const[y,_]=r(s),[C,L]=r([]),[x,I]=r(!1),[O,R]=r(!1),w=i(null),M=i([]),D=i(0),k=i(0),P=i(new Map);o((()=>{R(!!E)}),[y,E]),S(T,(()=>w.current));const B=h((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===d?768>e||void 0===c?576>e||void 0===l?s:l:c:d:p:g}),[s,l,c,d,p,g]);o((()=>{const e=()=>_(B());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[B]);const[z,U]=r([]);o((()=>{const e=[];u.forEach(t,((t,a)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+a,element:t,position:null,ref:n.createRef()})})),U(e)}),[t]);const G=h((e=>{if(!P.current.get(e)){if(P.current.set(e,!0),D.current+=1,w.current&&E){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))})),A?.(D.current,k.current),D.current>=k.current&&k.current>0&&(I(!0),R(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),R(!1)}))})),v?.())}}),[A,v,E]),F=h((()=>{if(!E||!w.current)return;P.current.clear(),D.current=0;const e=w.current.querySelectorAll("img");return k.current=e.length,0===e.length?(I(!0),R(!1),void v?.()):(R(!0),e.forEach((e=>{const t=e,a=e.closest(".o-masonry-grid > div");if(a&&a.classList.add("o-masonry-grid__item-loading"),e.complete)G(e);else{const a=()=>G(e);e.addEventListener("load",a),e.addEventListener("error",a),t._masonryLoadHandler=a}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[E,G,v]),V=h((()=>{if(!w.current||0===z.length)return;const e=(w.current.offsetWidth-f*(y-1))/y;M.current=Array(y).fill(0);const t=[];z.forEach(((a,n)=>{if(a.ref.current){const r=M.current.indexOf(Math.min(...M.current)),i=r*(e+f),o=M.current[r]??0,s=a.ref.current.offsetHeight;M.current[r]=o+s+f,t[n]={left:i,top:o,width:e,height:s}}})),L(t)}),[z,y,f]);o((()=>{if(!w.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(w.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),n.useLayoutEffect((()=>E?F():(V(),I(!0),void R(!1))),[z,y,V,E,F]),n.useEffect((()=>{const e=[];return z.forEach((t=>{if(t.ref.current){const a=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect()))}}),[z,V]);const H=M.current.length>0?Math.max(...M.current):0,Y=["o-masonry-grid",a,b?"o-masonry-grid--animate":"",O?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:w,className:Y,style:{position:"relative",width:"100%",height:H+"px",...N.style},...N,children:z.map(((t,a)=>{const n=C[a];return e("div",n?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:n.left+"px",top:n.top+"px",width:n.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));Dn.displayName="MasonryGrid";const kn=l((({children:t,className:a="",...n},r)=>{const i=["o-masonry-grid__item-inner"];return a&&i.push(a),e("div",{ref:r,className:i.join(" "),...n,children:t})}));kn.displayName="MasonryGridItem";var Pn=Object.freeze({__proto__:null,Container:Nt,Grid:On,GridCol:Rn,MasonryGrid:Dn,MasonryGridItem:kn,Row:wn});const Bn=l((({title:a,icon:r,collapsible:i=!1,defaultCollapsed:o=!1,showNewsletter:s=!1,children:l,className:c="",...d},h)=>{const[u,m]=n.useState(o),p=["c-footer__section",i&&"c-footer__section--collapsible",u&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(Rn,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:h,className:p,...d,children:[a&&e("div",{className:"c-footer__section-header",children:i?t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{i&&m(!u)},"aria-expanded":!u,"aria-controls":"footer-section-"+a.toString().toLowerCase().replace(/\s+/g,"-"),children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:a}),e("span",{className:"c-footer__section-chevron",children:u?"▼":"▲"})]}):t("div",{className:"c-footer__section-header-content",children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:a})]})}),e("div",{className:"c-footer__section-content",id:a?"footer-section-"+a.toString().toLowerCase().replace(/\s+/g,"-"):void 0,style:{display:i&&u?"none":"flex"},children:l})]})})}));Bn.displayName="FooterSection";const zn=l((({href:a,icon:n,external:r=!1,active:i=!1,disabled:o=!1,onClick:s,children:l,className:c="",LinkComponent:d,...h},u)=>{const m={className:["c-footer__link",i&&"c-footer__link--active",o&&"c-footer__link--disabled",c].filter(Boolean).join(" "),onClick:o?void 0:s,"aria-disabled":o,...r&&{target:"_blank",rel:"noopener noreferrer"},...h};return d?t(d,{ref:u,to:a,...m,children:[n&&e("span",{className:"c-footer__link-icon",children:n}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]}):t("a",{ref:u,href:o?void 0:a,...m,children:[n&&e("span",{className:"c-footer__link-icon",children:n}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}));zn.displayName="FooterLink";const Un=({title:n,subtitle:r,text:i,imageSrc:o,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:h=!1,actions:u,imageColSize:m=7,contentColSize:p=5,contentWidth:g,className:f="",style:S,parallax:b=!1,parallaxIntensity:E=.5,videoBackground:v,children:A,glass:N,videoOptions:T={autoplay:!0,loop:!0,muted:!0},backgroundSlider:y})=>{const{generateHeroClassNames:_,generateImageColClass:C,generateContentColClass:L,hasBackgroundImage:x,hasForegroundImage:I,useGridLayout:O,heroRef:R,videoRef:w,backgroundSlider:M,hasBackgroundSlider:D}=za({alignment:l,imageColSize:m,contentColSize:p,imageSrc:o,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:h,contentWidth:g,parallax:b,parallaxIntensity:E,videoBackground:v,backgroundSlider:y}),k={...g?{"--atomix-hero-content-width":g}:{},...S},P=()=>{if(!v)return null;const{autoplay:a,loop:n,muted:r,posterUrl:i}=T;return t("video",{ref:w,className:"c-hero__video",autoPlay:a,loop:n,muted:r,playsInline:!0,poster:i,children:[e("source",{src:v,type:"video/"+(v.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},B=()=>{const a=t("div",{className:V.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:V.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:V.SELECTORS.TITLE.replace(".",""),children:n}),i&&e("p",{className:V.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:V.SELECTORS.ACTIONS.replace(".",""),children:u})]});return!1===N?a:N?e("div",!0===N?{className:V.SELECTORS.CONTENT.replace(".",""),children:e(Xe,{displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,cornerRadius:8,overLight:!1,mode:"standard",children:t("div",{className:"u-p-4",children:[r&&e("p",{className:V.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:V.SELECTORS.TITLE.replace(".",""),children:n}),i&&e("p",{className:V.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:V.SELECTORS.ACTIONS.replace(".",""),children:u})]})})}:{className:V.SELECTORS.CONTENT.replace(".",""),children:e(Xe,{...N,children:t("div",{className:"u-p-4",children:[r&&e("p",{className:V.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:V.SELECTORS.TITLE.replace(".",""),children:n}),i&&e("p",{className:V.SELECTORS.TEXT.replace(".",""),children:i}),u&&e("div",{className:V.SELECTORS.ACTIONS.replace(".",""),children:u})]})})}):a},z=()=>I?e("div","center"===l?{className:V.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:s,className:V.SELECTORS.IMAGE.replace(".","")})}:{className:C(),children:e("img",{src:o,alt:s,className:V.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:R,className:_(f),style:k,"data-parallax":b?"true":void 0,"data-parallax-intensity":b?E:void 0,children:[(()=>{if(D&&y&&M){const{slides:a,transition:n="fade",transitionDuration:r=1e3}=y,{currentIndex:i,slideRefs:o,videoRefs:s}=M;let l=V.CLASSES.SLIDER_FADE;return"slide"===n?l=V.CLASSES.SLIDER_SLIDE:"custom"===n&&(l=V.CLASSES.SLIDER_CUSTOM),t("div",{className:`${V.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{y.autoplay?.pauseOnHover&&M.pauseAutoplay()},onMouseLeave:()=>{y.autoplay?.pauseOnHover&&M.resumeAutoplay()},children:[a.map(((a,n)=>{const r=n===i,l=o[n],c=s[n];return e("div",{ref:l,className:`${V.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?V.CLASSES.SLIDER_ITEM_ACTIVE:""}`,children:"image"===a.type?e("img",{src:a.src,alt:a.alt||"Background slide",className:V.SELECTORS.BG_IMAGE.replace(".","")}):t("video",{ref:c,className:"c-hero__video",autoPlay:!1!==a.videoOptions?.autoplay,loop:!1!==a.videoOptions?.loop,muted:!1!==a.videoOptions?.muted,playsInline:!0,poster:a.videoOptions?.posterUrl,children:[e("source",{src:a.src,type:"video/"+(a.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},n)})),d&&e("div",{className:V.SELECTORS.OVERLAY.replace(".","")})]})}return x||v?t("div",{className:V.SELECTORS.BG.replace(".",""),children:[c&&e("img",{src:c,alt:"Background",className:V.SELECTORS.BG_IMAGE.replace(".","")}),P(),d&&e("div",{className:V.SELECTORS.OVERLAY.replace(".","")})]}):null})(),e("div",{className:V.SELECTORS.CONTAINER.replace(".","")+" o-container",children:A?e("div",{className:V.SELECTORS.GRID.replace(".",""),children:A}):O?e("div",{className:V.SELECTORS.GRID.replace(".","")+" o-grid",children:t(a,"left"===l?{children:[e("div",{className:L(),children:B()}),z()]}:{children:[z(),e("div",{className:L(),children:B()})]})}):t(a,{children:[B(),z()]})})]})};Un.displayName="Hero";const Gn=({children:t,variant:a="default",className:r="",style:i,...o})=>{const s=[z.BASE_CLASS,"default"!==a&&"c-list--"+a,r].filter(Boolean).join(" ");return e(["number","text"].includes(a)?"ol":"ul",{className:s,style:i,...o,children:n.Children.map(t,(t=>(n.isValidElement(t),e("li",{className:"c-list__item",children:t}))))})};Gn.displayName="List";const Fn=({children:t,className:a="",style:r,variant:i="default"})=>{const o=[U.BASE_CLASS,a].filter(Boolean).join(" "),s=n.Children.toArray(t).filter((e=>n.isValidElement(e)&&e.type===Gn));return e("div",{className:o,style:r,children:s.map(((e,t)=>{const a=e.props;return n.cloneElement(e,{key:t,variant:a?.variant??i})}))})};Fn.displayName="ListGroup";const Vn=({messages:n=[],otherAvatar:i,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:h="",style:u,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:S,handleInputChange:b,handleSubmit:E,handleKeyDown:v}=(({onSendMessage:e}={})=>{const[t,a]=r(""),n=n=>{n.preventDefault(),t.trim()&&e&&(e(t.trim()),a(""))};return{inputValue:t,setInputValue:a,handleInputChange:e=>{a(e.target.value)},handleSubmit:n,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),n(e))}}})({onSendMessage:c}),A=g||"messages-"+Math.random().toString(36).substr(2,9),N=A+"-input",T={displacementScale:150,cornerRadius:12,elasticity:0,aberrationIntensity:2},y=`${be.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${h}`,_=t(a,{children:[e("div",{className:be.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:n.map((a=>t("div",{className:`${be.CLASSES.CONTENT} ${a.isSelf?be.CLASSES.CONTENT_SELF:""}`,"aria-label":`${a.isSelf?"You":s||"Other person"} sent a message at ${a.time}`,children:[e(bt,{src:a.isSelf?o:i,size:"xl",circle:!0,className:be.CLASSES.AVATAR,alt:a.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:be.CLASSES.ITEMS,children:[!a.isSelf&&s&&e("div",{className:be.CLASSES.NAME,children:s}),a.text&&t("div",{className:be.CLASSES.TEXT,children:[a.text,e("span",{className:be.CLASSES.TIME,"aria-label":"Sent at "+a.time,children:a.time})]}),a.image&&e("img",{className:be.CLASSES.IMAGE,src:a.image,alt:"Message attachment",loading:"lazy"}),a.file&&t("div",{className:be.CLASSES.FILE,"aria-label":`File attachment: ${a.file.name}, size: ${a.file.size}`,children:[e("span",{className:be.CLASSES.FILE_ICON,children:e(St,{name:"File","aria-hidden":"true"})}),t("div",{className:be.CLASSES.FILE_DETAILS,children:[e("div",{className:be.CLASSES.FILE_NAME,children:a.file.name}),e("div",{className:be.CLASSES.FILE_SIZE,children:a.file.size})]})]})]})]},a.id)))}),t("form",{className:be.CLASSES.FORM,onSubmit:E,"aria-label":"Message input form",children:[t("div",{className:be.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:N,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:N,type:"text",className:be.CLASSES.INPUT,placeholder:d,value:S,onChange:b,onKeyDown:v,disabled:p,"aria-label":"Message input"}),t("div",{className:be.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:be.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(St,{name:"PaperclipHorizontal","aria-hidden":"true",className:be.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:be.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(St,{name:"Image","aria-hidden":"true",className:be.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:be.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(St,{name:"Link","aria-hidden":"true",className:be.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:be.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(St,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?T:{...T,...f};return e("div",{className:y,style:{"--atomix-messages-width":l,...u},id:A,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(Xe,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.cornerRadius},children:_})})})}return e("div",{className:y,style:{"--atomix-messages-width":l,...u},id:A,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:_})};Vn.displayName="Messages";const Hn=({children:a,isOpen:n=!1,onOpenChange:s,onClose:l,onOpen:c,title:d,subtitle:u,size:m="md",backdrop:p=!0,keyboard:g=!0,className:f="",style:S,closeButton:b=!0,footer:E,glass:v,...A})=>{const N=i(null),T=i(null),y=i(null),{isOpen:_,open:C,close:L}=function({isOpen:e,onOpenChange:t,onOpen:a,onClose:n}={}){const[i,s]=r(!1),l=void 0!==e,c=l?!!e:i;o((()=>{l&&s(!!e)}),[e,l]);const d=h((e=>{l||s(e),t&&t(e),e&&a?a():!e&&n&&n()}),[l,t,a,n]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}}({isOpen:n,onOpenChange:s,onClose:l,onOpen:c});o((()=>{if(!g)return;const e=e=>{"Escape"===e.key&&_&&L()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,L,g]);const x=["c-modal",_?Se.CLASSES.IS_OPEN:"",m?"c-modal--"+m:"",v?"c-modal--glass":"",f].filter(Boolean).join(" "),I=t("div",{className:"c-modal__content",children:[(d||b)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[d&&e("h3",{className:"c-modal__title",children:d}),u&&e("p",{className:"c-modal__sub",children:u})]}),b&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:L,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:a}),E&&e("div",{className:"c-modal__footer",children:E})]});return t("div",{ref:N,className:x,style:{display:_?"block":"none",...S},role:"dialog","aria-modal":"true","aria-hidden":!_,...A,children:[e("div",{ref:y,className:"c-modal__backdrop",onClick:e=>{p&&e.target===e.currentTarget&&L()}}),e("div",{ref:T,className:"c-modal__dialog",children:v?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},a=!0===v?t:{...t,...v};return e(Xe,{...a,children:I})})():I})]})};Hn.displayName="Modal";const Yn=l((({children:t,alignment:a="start",variant:r="default",className:i="",disabled:o=!1,glass:s},l)=>{const{generateNavClass:c}=Fa({alignment:a,variant:r}),d=c({alignment:a,variant:r,className:i}),h=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:n.Children.map(t,(e=>{if(n.isValidElement(e)){const t=e.props;return n.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,cornerRadius:8,mode:"shader"},a=!0===s?t:{...t,...s};return e(Xe,{...a,children:h})}return h}));Yn.displayName="Nav";const Wn=l((({children:a,dropdown:s=!1,megaMenu:l=!1,active:c=!1,href:d,onClick:h,className:u="",disabled:m=!1,"aria-expanded":p,LinkComponent:g},f)=>{const{generateNavItemClass:S,generateNavLinkClass:b,handleClick:E}=Va({dropdown:s,megaMenu:l,active:c,disabled:m}),[v,A]=r(!1),N=i(null);o((()=>{if(!s&&!l||!v)return;const e=e=>{N.current&&!N.current.contains(e.target)&&(768>window.innerWidth||A(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[s,l,v]),o((()=>{if(!s&&!l)return;const e=()=>{window.innerWidth>=768&&v&&A(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,l,v]);const T=S({dropdown:s,megaMenu:l,active:c,disabled:m,className:u})+(v?" is-active":""),y=b(c,m,s||l?"c-nav__dropdown-toggle":""),_=n.Children.toArray(a),C=void 0!==p?p:v,L={ref:N,href:d||"#",className:y,onClick:s||l?e=>{(s||l)&&(e.preventDefault(),A(!v))}:E(h),"aria-disabled":m,"aria-expanded":s||l?C:void 0,"aria-current":!c||s||l?void 0:"page"};return t("li",{ref:f,className:T,role:"menuitem","aria-haspopup":s||l,children:[e(g||"a",{...L,children:s||l?_[0]:a}),(s||l)&&_.length>1&&_[1]]})}));Wn.displayName="NavItem";const Kn=l((({brand:a,children:n,variant:s,position:l="static",containerWidth:c,collapsible:d=!0,expanded:h,onToggle:u,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:S=!0,closeOnEscape:b=!0,ariaLabel:E="Main navigation",id:v,glass:A},N)=>{const{generateNavbarClass:T,generateContainerStyle:y,generateCollapseClass:_}=Ga({position:l,collapsible:d,expanded:h,onToggle:u}),[C,L]=r(h||!1),x=i(null);o((()=>{void 0!==h&&L(h)}),[h]),o((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof u?h&&u(!1):L(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,h,u]);const I=T({position:l,variant:s,collapsible:d,className:m}),O=y(c),R=_(C),w=t("div",{className:"c-navbar__container",style:O,children:[a&&("string"==typeof a?e("a",{href:"/",className:"c-navbar__brand",children:a}):e("div",{className:"c-navbar__brand",children:a})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!C;"function"==typeof u?u(e):L(e)},"aria-expanded":C,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:R,ref:x,children:n})]});if(A){const t={displacementScale:30,blurAmount:2,cornerRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},a=!0===A?t:{...t,...A};return e(Xe,{...a,style:{..."fixed"===l&&{position:"fixed"},left:0,right:0,top:0,zIndex:1e3},children:e("nav",{ref:N,className:I+" c-navbar--glass","aria-label":E,id:v,style:p,children:w})})}return e("nav",{ref:N,className:I,"aria-label":E,id:v,style:p,children:w})}));function jn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Qn(e,t){return n.useMemo((()=>null==e&&null==t?null:a=>{jn(e,a),jn(t,a)}),[e,t])}Kn.displayName="Navbar";const qn=l((({children:t,className:a=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+a).trim(),role:"list",children:n.Children.map(t,((t,a)=>n.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},a):t))})));qn.displayName="SideMenuList";const Zn=l((({children:a,href:n,onClick:r,active:i=!1,disabled:o=!1,icon:s,className:l="",target:c,rel:d,LinkComponent:h},u)=>{const{LinkComponent:m}=Xn(),p=h??m,{generateSideMenuItemClass:g,handleClick:f}=Wa({active:i,disabled:o,className:l}),S=g();if(n){if(p){const l={ref:u,className:S,onClick:o?e=>{e.preventDefault()}:r,"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0,...o?{}:{href:n,to:n}};return t(p,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:a})]})}const l={ref:u,href:o?void 0:n,className:S,onClick:f(r),"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:a})]})}return t("button",{ref:u,type:"button",className:S,onClick:f(r),disabled:o,"aria-current":i?"page":void 0,tabIndex:o?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:a})]})}));Zn.displayName="SideMenuItem";const $n=g({}),Xn=()=>f($n),Jn=l((({title:n,children:s,menuItems:l=[],isOpen:c,onToggle:d,collapsible:h=!0,collapsibleDesktop:u=!1,defaultCollapsedDesktop:m=!1,className:p="",style:g,disabled:f=!1,toggleIcon:S,id:b,glass:E,LinkComponent:v},A)=>{const{isOpenState:N,wrapperRef:T,innerRef:y,sideMenuRef:_,generateSideMenuClass:C,generateWrapperClass:L,handleToggle:x}=Ya({isOpen:c,onToggle:d,collapsible:h,collapsibleDesktop:u,defaultCollapsedDesktop:m,disabled:f}),[I,O]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[R,w]=r((()=>{const e={};return l?.forEach(((t,a)=>{e[a]=!0})),e})),M=i({}),D=i({}),k=i(l?.length??0);o((()=>{const e=()=>{O(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),o((()=>{const e=l?.length??0;k.current!==e&&(k.current=e,w((e=>{const t={};return l?.forEach(((a,n)=>{t[n]=e[n]??!0})),t})),Object.keys(M.current).forEach((t=>{const a=Number(t);e>a||(delete M.current[a],delete D.current[a])})))}),[l?.length]);const P=(e,t)=>{const a=M.current[e],n=D.current[e];a&&n&&(a.style.height=t?n.scrollHeight+"px":"0px")};o((()=>{if(!l?.length)return;const e=setTimeout((()=>{l.forEach(((e,t)=>{const a=R[t]??!0;P(t,a)}))}),0);return()=>clearTimeout(e)}),[l?.length]),o((()=>{if(!l?.length)return;const e=[];return Object.keys(R).forEach((t=>{const a=Number(t),n=R[a]??!0,r=requestAnimationFrame((()=>{P(a,n)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[R,l?.length]);const B=Qn(_,A),z=C({className:p,isOpen:N}),U=L(),G=e(St,{name:"CaretRight",size:"xs"}),F=I&&h||!I&&u,V=n&&!F,H=t(a,{children:[n&&F&&t("div",{className:"c-side-menu__toggler",onClick:x,role:"button",tabIndex:f?-1:0,"aria-expanded":N,"aria-controls":b?b+"-content":void 0,"aria-disabled":f,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),x())},children:[e("span",{className:"c-side-menu__title",children:n}),e("span",{className:"c-side-menu__toggler-icon",children:S||G})]}),V&&e("h3",{className:"c-side-menu__title",children:n}),e("div",{ref:T,className:U,id:b?b+"-content":void 0,"aria-hidden":!!F&&!N,children:e($n.Provider,{value:{LinkComponent:v},children:t("div",{ref:y,className:"c-side-menu__inner",children:[s,l?.map(((a,n)=>{const r=R[n]??!0,i=a.items&&a.items.length>0,o=i&&!f,s=()=>{o&&w((e=>({...e,[n]:!e[n]})))};return t("div",{className:"c-side-menu__item",children:[a.title&&t("div",{className:["c-side-menu__toggler",o&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:o?s:void 0,role:o?"button":void 0,tabIndex:o&&!f?0:void 0,"aria-expanded":o?r:void 0,"aria-disabled":f,onKeyDown:o?e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:a.title}),o&&e("span",{className:"c-side-menu__toggler-icon",children:a.toggleIcon||e(St,{name:"CaretRight",size:"xs"})})]}),i&&e("div",{ref:e=>{M.current[n]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{D.current[n]=e},className:"c-side-menu__nested-inner",children:e(qn,{children:a.items?.map(((t,a)=>e(Zn,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,LinkComponent:v,children:t.title},a)))})})})]},n)}))]})})})]});if(E){const t={displacementScale:70,blurAmount:2,cornerRadius:12,mode:"shader"},a=!0===E?t:{...t,...E};return e(Xe,{...a,children:e("div",{ref:B,className:z+" c-side-menu--glass",id:b,style:g,children:H})})}return e("div",{ref:B,className:z,id:b,style:g,children:H})}));Jn.displayName="SideMenu";const er=l((({children:t,className:a="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu "+a,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:n.Children.map(t,(e=>{if(n.isValidElement(e)){const t=e.props;return n.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})}))),tr=l((({children:a,href:n="#",icon:r,active:i=!1,disabled:o=!1,onClick:s,className:l=""},c)=>e("li",{ref:c,className:`c-menu__item ${i?"is-active":""} ${o?"is-disabled":""} ${l}`,role:"menuitem",children:t("a",{href:n,className:"c-menu__link",onClick:e=>{o?e.preventDefault():s&&s()},"aria-disabled":o,"aria-current":i?"page":void 0,children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(St,{name:ar(r.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__icon",children:r})),a]})}))),ar=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),nr=l((({className:t=""},a)=>e("li",{ref:a,className:"c-menu__divider "+t,role:"separator"}))),rr=l((({children:t,className:a="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu c-menu--mega "+a,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:n.Children.map(t,(e=>{if(n.isValidElement(e)){const t=e.props;return n.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})}))),ir=l((({title:a,icon:r,children:i,width:o="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${o} ${s}`,children:[(a||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(St,{name:ar(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),a&&e("div",{className:"c-menu__header-title",children:a})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:n.Children.map(i,(t=>{if(n.isValidElement(t)){const a=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:n.cloneElement(t,{...a,disabled:!!l||a?.disabled})})}return null}))})]}))),or=l((({href:t,children:a,className:n="",disabled:r=!1,onClick:i},o)=>e("a",{ref:o,href:t,className:`c-menu__subitem-link ${r?"is-disabled":""} ${n}`,onClick:e=>{r?e.preventDefault():i&&i()},"aria-disabled":r,children:a}))),sr=l((({title:n,children:s,alignment:l="start",megaMenu:c=!1,className:d="",style:h,disabled:u=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=Ha({alignment:l,megaMenu:c}),[f,S]=r(!1),b=i(null),E=p({alignment:l,megaMenu:c,className:d}),v=g(c);o((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!b.current||b.current.contains(e.target)||S(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),o((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&S(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const A=t(a,{children:[n,e(St,{name:v,size:"sm",className:"c-nav__icon"})]}),N=e("div",{className:E,ref:b,"aria-hidden":!f,children:s});return t(Wn,{dropdown:!c,megaMenu:c,disabled:u,className:f?"is-active":"",href:"#",onClick:()=>{u||S(!f)},"aria-expanded":f,style:h,children:[A,N]})}));sr.displayName="NavDropdown";const lr=({currentIndex:a,imagesLength:n,onZoomOut:r,onResetZoom:i,onZoomIn:o,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:h,onDownload:u,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(At,{label:`${a+1} / ${n}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(St,{name:"Minus",size:"sm"})}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(St,{name:"MagnifyingGlass",size:"sm"})}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(St,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(St,{name:"ArrowsClockwise",size:"sm"})}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(St,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(St,{name:"Share",size:"sm"})}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(St,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(St,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(St,{name:"X",size:"sm"})})]})]}),cr=({show:n,onPrev:r,onNext:i,currentIndex:s,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(o((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&i(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,i,d]),n?t(a,{children:[e(It,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===s,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(St,{name:"CaretLeft",size:"md"})}),e(It,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:i,disabled:s===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(St,{name:"CaretRight",size:"md"})})]}):null),dr=({imageRef:t,containerRef:a,src:n,alt:s,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:h,isTransitioning:u=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:S,onTouchMove:b,onTouchEnd:E,onDoubleClick:v})=>{const A=i(null),N=a||A,[T,y]=r(!1);return o((()=>(y(!0),()=>y(!1))),[]),o((()=>{const e=N.current;if(!e)return;const t=t=>{T&&e&&f&&f(t)},a=t=>{T&&e&&S&&S(t)},n=t=>{T&&e&&b&&b(t)},r=t=>{T&&e&&E&&E(t)};return T&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",a,{passive:!1}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",r)}}),[T,f,S,b,E,N]),e("div",{ref:N,className:"c-photo-viewer__image-container "+(u?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:u?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{T&&v&&v(e)},children:e("img",{ref:t,src:n,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${h}deg)`,transition:d?"none":u?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},hr=({images:a,currentIndex:n,goToImage:r})=>a.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:a.map(((a,i)=>{const o=a.thumbnail||a.src,s=i===n;return e(It,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(i),"aria-label":`View image ${i+1}${a.title?": "+a.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:a.alt||"Thumbnail "+(i+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},i)}))})}):null,ur=({show:a,image:n,onClose:r})=>a&&n?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(It,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(St,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[n.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:n.title})}),n.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:n.description})}),(n.date||n.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[n.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(St,{name:"Calendar",size:14}),e("span",{children:n.date})]}),n.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(St,{name:"User",size:14}),e("span",{children:n.author})]})]})}),n.tags&&n.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:n.tags.map(((t,a)=>e(At,{label:t,variant:"secondary",size:"sm"},a)))})]})]})]}):null,mr=({images:a,startIndex:n=0,className:s="",disabled:l=!1,enableKeyboardNavigation:c=!0,enableGestures:u=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:S,zoomLevel:b,imagePosition:E,isDragging:v,isFullscreen:A,rotationAngle:N,showInfo:T,imageRef:y,containerRef:_,isTransitioning:C,setZoomLevel:L,setImagePosition:x,setIsDragging:I,setIsFullscreen:O,setRotationAngle:R,setShowInfo:w,closeModal:M,goToPrevious:D,goToNext:k,setCurrentIndex:P,handleMouseDown:B,handleMouseMove:z,handleMouseUp:U,handleWheel:G,handleTouchStart:F,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:Y,resetImageState:W}=(({images:e,startIndex:t=0,enableGestures:a=!0,onImageChange:n,onClose:s})=>{const[l,c]=r(t),[d,u]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[S,b]=r(!1),[E,v]=r(!1),[A,N]=r({}),[T,y]=r(!1),[_,C]=r(!1),[L,x]=r({velocity:0,timestamp:0}),I=i(null),O=i(null),R=i([]),w=i(null),M=i(null),D=i(0),k=i(null),P=h(((e,t)=>{if(!_||!I.current||!O.current)return{minX:0,maxX:0,minY:0,maxY:0};const a=I.current,n=O.current;if(!a.naturalWidth&&!a.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=a.naturalWidth||a.width||800,i=a.naturalHeight||a.height||600;try{const a=n.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=a.width,s=a.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),h=r/i;let u,m;o/s>h?(m=Math.min(.9*s,i),u=m*h):(u=Math.min(.9*o,r),m=u/h);const p=(u*d+m*c)*e,g=Math.max(0,((u*c+m*d)*e-o)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(o){return{minX:0,maxX:0,minY:0,maxY:0}}}),[_]),B=h(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(C(!0),0>t||t>=e.length?c(0):c(t),()=>C(!1))),[e,t]),o((()=>{d?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[d]),o((()=>{d&&N((e=>e[l]?e:{...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[d,l]),o((()=>{n&&n(l)}),[l,n]),o((()=>{const e=I.current,t=O.current,a=()=>{_&&e&&t&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=P(t.zoomLevel,t.rotation),n=B(t.position,a);return{...e,[l]:{...t,bounds:a,position:n}}}))};if(!(e&&t&&e.complete&&_))return e&&t&&_?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[l,P,B,_]),o((()=>{const e=()=>{_&&I.current&&O.current&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=P(t.zoomLevel,t.rotation),n=B(t.position,a);return{...e,[l]:{...t,bounds:a,position:n}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l,P,B,_]);const z=h((()=>{u(!0)}),[]),U=h((()=>{u(!1),s&&s()}),[s]),G=h((()=>{l>0&&(y(!0),setTimeout((()=>{c((e=>e-1)),y(!1)}),150))}),[l]),F=h((()=>{l<e.length-1&&(y(!0),setTimeout((()=>{c((e=>e+1)),y(!1)}),150))}),[l,e.length]),V=h((e=>{N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.zoomLevel):e,r=Math.max(.1,Math.min(5,n)),i=P(r,a.rotation),o=B(a.position,i);return{...t,[l]:{...a,zoomLevel:r,bounds:i,position:o}}}))}),[_,l,P,B]),H=h((e=>{N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.position):e,r=B(n,a.bounds);return{...t,[l]:{...a,position:r}}}))}),[l,B]),Y=h((e=>{N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=(("function"==typeof e?e(a.rotation):e)%360+360)%360,r=P(a.zoomLevel,n),i=B(a.position,r);return{...t,[l]:{...a,rotation:n,bounds:r,position:i}}}))}),[_,l,P,B]),W=h((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;if(t&&"function"==typeof t.getBoundingClientRect){if("undefined"!=typeof window&&window.location?.href?.includes("storybook"))try{const e=t.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}N((a=>{const n=a[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&r,c=!e.ctrlKey&&!o&&r,d=!r;let h,u=!1;if(i)h=-.02*e.deltaY,u=!0;else if(s){if(1>=n.zoomLevel)return a;h=-.003*e.deltaY,u=!0}else c?(h=-.004*e.deltaY,u=!0):d?(h=-.006*e.deltaY,u=!0):(h=-.005*e.deltaY,u=!0);u&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-D.current;let g;D.current=m,i&&100>p&&(x({velocity:Math.abs(h)/p,timestamp:m}),k.current&&clearTimeout(k.current),k.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const a=.95*t.velocity,n=a*(h>0?1:-1);return N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.max(.1,Math.min(5,t.zoomLevel+n));if(a===t.zoomLevel)return e;const r=P(a,t.rotation),i=B(t.position,r);return{...e,[l]:{...t,zoomLevel:a,bounds:r,position:i}}})),.001>a||requestAnimationFrame(e),{velocity:a,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=t.getBoundingClientRect()}catch(T){return a}if(!g||0===g.width||0===g.height)return a;const f=g.width/2,S=g.height/2,b=e.clientX-g.left-f,E=e.clientY-g.top-S,v=n.zoomLevel,A=Math.max(.1,Math.min(5,v+h));if(A!==v){const e=A/v,t=P(A,n.rotation),r={x:n.position.x+b*(1-e)*.5,y:n.position.y+E*(1-e)*.5},i=B(r,t);return{...a,[l]:{...n,zoomLevel:A,bounds:t,position:i}}}return a}))}}),[_,l,P,B]),K=h((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&N((a=>{const n=a[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return a}if(!r||0===r.width||0===r.height)return a;const i=r.width/2,o=r.height/2,s=e.clientX-r.left-i,c=e.clientY-r.top-o;let d,h={x:0,y:0};1.5>n.zoomLevel?(d=2,h={x:.5*-s,y:.5*-c}):3>n.zoomLevel?(d=4,h={x:.75*-s,y:.75*-c}):(d=1,h={x:0,y:0});const u=P(d,n.rotation),m=B(h,u);return{...a,[l]:{...n,zoomLevel:d,bounds:u,position:m}}}))}),[_,l,P,B]),j=h((e=>{N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return a.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-a.position.x,y:e.clientY-a.position.y})),t}))}),[l]),Q=h((e=>{m&&N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.min(1,1/a.zoomLevel),r=(e.clientX-g.x)*n,i=(e.clientY-g.y)*n,o=B({x:r,y:i},a.bounds);return{...t,[l]:{...a,position:o}}}))}),[m,g,l,B]),q=h((()=>{p(!1)}),[]),Z=h((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),R.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),N((e=>{const a=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&a.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-a.position.x,y:e.clientY-a.position.y})}else if(2===t.length){const e=t[0],a=t[1];if(e&&a){const t=e.clientX-a.clientX,n=e.clientY-a.clientY;w.current=Math.sqrt(t*t+n*n),M.current={x:(e.clientX+a.clientX)/2,y:(e.clientY+a.clientY)/2}}}return e}))}),[a,l]),$=h((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),N((a=>{const n=a[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};n.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,i=0,o=null;if(1===t.length&&m&&n.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/n.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=B(r,n.bounds);return{...a,[l]:{...n,position:e}}}}else if(2===t.length&&null!==w.current){const r=t[0],c=t[1];if(r&&c){const t=r.clientX-c.clientX,d=r.clientY-c.clientY,h=Math.sqrt(t*t+d*d);i=.005*(h-w.current),w.current=h,o={x:(r.clientX+c.clientX)/2,y:(r.clientY+c.clientY)/2};const u=n.zoomLevel,m=Math.max(.1,Math.min(5,u+i));if(m!==u&&M.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return a}if(!t||0===t.width||0===t.height)return a;const r=t.width/2,i=t.height/2,c=o.x-t.left-r,d=o.y-t.top-i,h=m/u,p=P(m,n.rotation),g={x:n.position.x+c*(1-h)*.5,y:n.position.y+d*(1-h)*.5},f=B(g,p);return M.current=o,{...a,[l]:{...n,zoomLevel:m,bounds:p,position:f}}}o&&(M.current=o)}}return a}))}),[_,a,m,g,l,B,P]),X=h((()=>{p(!1),w.current=null,M.current=null}),[]),J=A[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:l,isModalOpen:d,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:S,rotationAngle:J.rotation,showInfo:E,imageRef:I,containerRef:O,isTransitioning:T,setCurrentIndex:c,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:b,setRotationAngle:Y,setShowInfo:v,openModal:z,closeModal:U,goToPrevious:G,goToNext:F,handleWheel:W,handleMouseDown:j,handleMouseMove:Q,handleMouseUp:q,handleTouchStart:Z,handleTouchMove:$,handleTouchEnd:X,handleDoubleClick:K,resetImageState:()=>{N((e=>({...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:a,startIndex:n,enableGestures:u,onImageChange:g,onClose:f||(()=>{})}),K=d((()=>a.map((e=>"string"==typeof e?{src:e}:e))),[a]),j=K[S],Q=d((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,v?"c-photo-viewer--dragging":"",A?"c-photo-viewer--fullscreen":"",T?"c-photo-viewer--info-open":"",l?"is-disabled":"",s].filter(Boolean).join(" ")),[v,A,T,l,p,s]);return o((()=>{const e=()=>{O(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[O]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),a.length?t("div",{className:Q,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:M}),t("div",{className:"c-photo-viewer__container",children:[e(lr,{currentIndex:S,imagesLength:a.length,onZoomOut:()=>L((e=>Math.max(e-.25,.1))),onResetZoom:()=>{W()},onZoomIn:()=>L((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(A)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}O(!A)}},onClose:f||M,isFullscreen:A,zoomLevel:b,onRotate:()=>{R((e=>(e+90)%360))},onDownload:()=>{if(!j?.src)return;const e=document.createElement("a");e.href=j.src;const t=(j.title||"image-"+(S+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&j?.src)try{await navigator.share({title:j.title||"Shared Image",text:j.description||"Check out this image",url:j.src})}catch(e){}},showInfo:T,onToggleInfo:()=>w(!T),currentImage:j}),t("div",{className:"c-photo-viewer__content",children:[e(cr,{show:a.length>1,onPrev:D,onNext:k,currentIndex:S,imagesLength:a.length,enableKeyboardNav:c,onClose:f||M}),j?.src&&e(dr,{imageRef:y,containerRef:_,src:j.src,alt:j?.alt||"Image "+(S+1),zoomLevel:b,dragPosition:E,isDragging:v,rotationAngle:N,isTransitioning:C,onMouseDown:B,onMouseMove:z,onMouseUp:U,onWheel:G,onTouchStart:F,onTouchMove:V,onTouchEnd:H,onDoubleClick:Y})]}),"none"!==p&&e(hr,{images:K,currentIndex:S,goToImage:P}),e(ur,{show:T,image:j,onClose:()=>w(!1)})]})]}):null};mr.displayName="PhotoViewer";const pr=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),gr=({content:a,position:n="top",trigger:s="click",className:l="",style:c,delay:d=0,offset:h=12,defaultOpen:u=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:f=!0,id:S,children:b,glass:E})=>{const{isOpen:v,setIsOpen:A,triggerRef:N,popoverRef:T,arrowRef:y,popoverId:_,currentPosition:C,updatePosition:L}=(({position:e="top",trigger:t="click",offset:a=12,delay:n=0,defaultOpen:s=!1,isOpen:l,onOpenChange:c,closeOnClickOutside:d=!0,closeOnEscape:h=!0,id:u})=>{const[m,p]=r(s),[g,f]=r("auto"===e?"top":e),S=i(null),b=i(null),E=i(null),v=i(null),A=u||"popover-"+Math.random().toString(36).slice(2,11),N=void 0!==l,T=N?l:m,y=e=>{N||p(e),c&&c(e)};o((()=>{if("hover"!==t||!S.current||!b.current)return;const e=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null),n>0?v.current=setTimeout((()=>{y(!0)}),n):y(!0)},a=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null),v.current=setTimeout((()=>{b.current?.matches(":hover")||y(!1)}),100)},r=()=>{null!==v.current&&(clearTimeout(v.current),v.current=null)},i=()=>{y(!1)};return S.current.addEventListener("mouseenter",e),S.current.addEventListener("mouseleave",a),b.current.addEventListener("mouseenter",r),b.current.addEventListener("mouseleave",i),()=>{S.current&&(S.current.removeEventListener("mouseenter",e),S.current.removeEventListener("mouseleave",a)),b.current&&(b.current.removeEventListener("mouseenter",r),b.current.removeEventListener("mouseleave",i)),null!==v.current&&window.clearTimeout(v.current)}}),[t,n,T]);const _=t=>{if(!S.current||!b.current)return;const n=S.current.getBoundingClientRect(),r=b.current.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,s=50>n.top||n.bottom>o-50||50>n.left||n.right>i-50;if("scroll"===t?.type&&!s)return;const l=n.top,c=o-n.bottom,d=n.left,h=i-n.right;let u="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:h},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),u=e[0]?.position}else("top"===e&&l<r.height+a&&c>=r.height+a||"bottom"===e&&c<r.height+a&&l>=r.height+a||"left"===e&&d<r.width+a&&h>=r.width+a||"right"===e&&h<r.width+a&&d>=r.width+a)&&(u={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);f(u);let m=0,p=0;switch(u){case"top":m=n.top-r.height-a,p=n.left+n.width/2-r.width/2;break;case"bottom":m=n.bottom+a,p=n.left+n.width/2-r.width/2;break;case"left":m=n.top+n.height/2-r.height/2,p=n.left-r.width-a;break;case"right":m=n.top+n.height/2-r.height/2,p=n.right+a}0>p?p=5:p+r.width>i&&(p=i-r.width-5),0>m?m=5:m+r.height>o&&(m=o-r.height-5);const g=m+window.scrollY,E=p+window.scrollX;b.current.style.position="absolute",b.current.style.top=g+"px",b.current.style.left=E+"px"};return o((()=>{if(!T||!S.current||!b.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[T,e,a]),o((()=>{if(!T||!d)return;const e=e=>{b.current&&!b.current.contains(e.target)&&S.current&&!S.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[T,d]),o((()=>{if(!T||!h)return;const e=e=>{"Escape"===e.key&&y(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[T,h]),o((()=>()=>{null!==v.current&&window.clearTimeout(v.current)}),[]),{isOpen:T,setIsOpen:y,triggerRef:S,popoverRef:b,arrowRef:E,popoverId:A,currentPosition:g,updatePosition:_}})({position:n,trigger:s,offset:h,delay:d,defaultOpen:u,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:f,id:S});return t(pr.Provider,{value:{isOpen:v,setIsOpen:A,triggerRef:N,popoverId:_,triggerType:s},children:[b,"undefined"!=typeof document&&O(t("div",{ref:T,className:`c-popover c-popover--${C} ${v?Y.CLASSES.IS_OPEN:""} ${E?"c-popover--glass":""} ${l}`,style:c,id:_,role:"tooltip","aria-hidden":!v,children:[E?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===E?t:{...t,...E};return e(Xe,{...n,style:c,children:e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:a})})})})():e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:a})}),e("div",{ref:y,className:"c-popover__arrow"})]}),document.body)]})};l((({children:e,trigger:t},a)=>{const{isOpen:r,setIsOpen:i,triggerRef:o,popoverId:s,triggerType:l}=n.useContext(pr),c=t||l,d=n.Children.only(e),h={ref:a||o,"aria-describedby":s,"aria-expanded":r};return"click"===c?h.onClick=()=>{i(!r)}:"hover"===c&&(h.onMouseEnter=()=>{i(!0)},h.onMouseLeave=()=>{i(!1)}),n.cloneElement(d,h)})),gr.displayName="Popover";const fr=l((({value:a=0,defaultValue:n,maxValue:s=5,allowHalf:l=!1,readOnly:c=!1,size:d="md",color:u,onChange:m,className:p="",style:g,label:f,id:S,useVanillaJS:b=!1,glass:E,...v},A)=>{const N=i(null),T=i(null),{currentValue:y,hoverValue:_,focusedIndex:C,setHoverValue:L,setFocused:x,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:a=!1,readOnly:n=!1,onChange:i})=>{const o=void 0!==i,[s,l]=r(e),[c,d]=r(null),[u,m]=r(null),p=o?e:s,g=h((e=>{n||d(e)}),[n]),f=h((()=>{n||d(null)}),[n]),S=h((e=>{n||(o||l(e),i?.(e))}),[n,i,o]),b=h(((e,r)=>{if(n)return;const s=a?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+s),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-s),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=r,e.preventDefault();break;default:return}c!==p&&(o||l(c),i?.(c))}),[p,t,a,n,i,o]);return{currentValue:p,hoverValue:c,focusedIndex:u,handleMouseEnter:g,handleMouseLeave:f,handleClick:S,handleKeyDown:b,setFocused:m,setHoverValue:d,isControlled:o}})({value:void 0!==a?a:n,maxValue:s,allowHalf:l,readOnly:c,onChange:m}),O=h(((e,t)=>{if(!c)if(l){const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,r=e.clientX<n;L(Math.max(.5,r?t-.5:t))}else L(t)}),[c,l,L]),R=h(((e,t)=>{if(c||!l)return;const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,r=e.clientX<n;L(Math.max(.5,r?t-.5:t))}),[c,l,L]),w=h((()=>{c||L(null)}),[c,L]),M=h(((e,t)=>{if(c)return;let a=t;if(l){const n=e.currentTarget.getBoundingClientRect(),r=n.left+n.width/2;a=e.clientX<r?t-.5:t,a=Math.max(.5,a)}m?.(a)}),[c,m,l]);o((()=>{if(b&&"undefined"!=typeof window&&N.current)return()=>{T.current&&T.current.destroy()}}),[b,a,n,s,l,c,d,u,m]),o((()=>{b&&T.current&&T.current.updateOptions({value:void 0!==a?a:n,maxValue:s,allowHalf:l,readOnly:c,size:d,color:u})}),[b,a,n,s,l,c,d,u]);const D=["c-rating","sm"===d?ae.CLASSES.SMALL:"","lg"===d?ae.CLASSES.LARGE:"",u?"c-rating--"+u:"",p].filter(Boolean).join(" ");if(b)return e("div",{className:D,ref:Qn(N,A),id:S,...v});const k=null!==_?_:y,P=e("div",{className:D,ref:Qn(N,A),id:S,style:g,"data-readonly":c?"true":"false",onMouseLeave:w,role:c?"img":"radiogroup","aria-label":f||`Rating: ${y} out of ${s} stars`,...v,children:(()=>{const a=[],n=l?Math.floor(2*k)/2:Math.round(k),r=S||"rating-"+Math.random().toString(36).substring(2,9);for(let i=1;s>=i;i++){const o=l&&i-.5===n,d=["c-rating__star",i>Math.floor(n)?"":ae.CLASSES.FULL,o?ae.CLASSES.HALF:"",u?"c-rating__star--"+u:"",C===i?"c-rating__star--focused":""].filter(Boolean).join(" "),h=`${r}-star-${i}`;a.push(e("div",{id:h,className:d,"data-value":i,role:c?"presentation":"button",tabIndex:c?-1:0,"aria-label":`${i} ${1===i?"star":"stars"}`,"aria-checked":n>=i,"aria-setsize":s,"aria-posinset":i,onClick:e=>M(e,i),onMouseEnter:e=>O(e,i),onMouseMove:e=>R(e,i),onFocus:()=>x(i),onBlur:()=>x(null),onKeyDown:e=>I(e,i),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${r}-${i})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${i}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},i))}return a})()});if(E){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===E?t:{...t,...E};return e(Xe,{...a,children:P})}return P}));fr.displayName="Rating";const Sr=({productName:a,productImage:n,initialRating:s=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:h,className:u="",style:m})=>{const[p,g]=r(s),[f,S]=r(""),[b,E]=r(!1),v=i(null),A=i(null);o((()=>{if("undefined"!=typeof window&&v.current)return()=>{A.current&&A.current.destroy()}}),[a,n,s,l,c,d,h]);const N=e=>{e.preventDefault(),h&&h(p,f),E(!0)},T=["c-product-review",u].filter(Boolean).join(" ");return b?e("div",{className:T,ref:v,style:m,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(It,{variant:"secondary",label:"Write another review",onClick:()=>{E(!1),g(0),S("")}})]})}):t("div",{className:T,ref:v,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",a]}),n&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:n,alt:a,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:N,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(fr,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",color:d}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:f,onChange:e=>S(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(It,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};Sr.displayName="ProductReview";const br=l((({value:t,variant:a="primary",size:n="md",className:r="",style:i,disabled:o=!1,ariaLabel:s=ve.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:h,progressClasses:u}=(({value:e,variant:t="primary",size:a="md",className:n=""})=>{const r=Math.min(Math.max(e,0),100),i="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[i,t?`${i}--${t}`:"",a?`${i}--${a}`:"",n||""].filter(Boolean).join(" ")}})({value:t,variant:a,size:n,className:r}),m=e("div",{ref:c,className:u+(l?" c-progress--glass":""),style:{...h,...i},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":o,children:e("div",{className:ve.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,cornerRadius:8,mode:"shader"},a=!0===l?t:{...t,...l};return e(Xe,{...a,children:m})}return m})),Er=({title:a,text:n,actions:r,imageSrc:i,imageAlt:o="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:h,showOverlay:u=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:S,generateVisualClass:b,hasBackgroundImage:E,hasForegroundImage:v,textContent:A}=Ua({title:a,text:n,imageSrc:i,imageAlt:o,center:s,breakout:l,reverse:c,backgroundImageSrc:h,showOverlay:u,contentWidth:m}),N={...m?{[$.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},T=()=>E?t("div",{className:$.SELECTORS.BG.replace(".",""),children:[e("img",{src:h,alt:"Background",className:$.SELECTORS.BG_IMAGE.replace(".","")}),u&&e("div",{className:$.SELECTORS.OVERLAY.replace(".","")})]}):null,y=()=>v?e("div",{className:b(),children:e("div",{className:$.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:o,className:$.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:N,children:[T(),e("div",{className:$.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:$.SELECTORS.ROW.replace(".",""),children:[!c&&y(),t("div",{className:S(),children:[d.map(((t,a)=>e("div",{className:`${$.SELECTORS.CONTENT_COL.replace(".","")} ${$.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},a))),r&&e("div",{className:$.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&y()]})})]}):t("div",{className:f(p),style:N,children:[T(),e("div",{className:$.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:$.SELECTORS.ROW.replace(".",""),children:[!c&&y(),t("div",{className:S(),children:[a&&e("h2",{className:$.SELECTORS.TITLE.replace(".",""),children:a}),A.map(((t,a)=>e("p",{className:$.SELECTORS.TEXT.replace(".",""),children:t},a))),r&&e("div",{className:$.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&y()]})})]})};Er.displayName="River";const vr=({title:a,label:n,text:r,actions:s,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:h,imageAlt:u="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const S=i(null),b=i(null);o((()=>{if("undefined"!=typeof window&&S.current)return()=>{b.current&&b.current.destroy()}}),[l,c,d,m,p]);const E=["c-sectionintro","center"===l?Z.CLASSES.CENTER:"","sm"===m?Z.CLASSES.SMALL:"","lg"===m?Z.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:E,ref:S,style:f,children:t("div",{className:"c-sectionintro__container",children:[n&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),r&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),s&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:E,ref:S,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,n&&e("div",{className:"c-sectionintro__label",children:n}),e("h2",{className:"c-sectionintro__title",children:a}),r&&e("div",{className:"c-sectionintro__text",children:r}),s&&e("div",{className:"c-sectionintro__actions",children:s}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:h,alt:u,className:"c-sectionintro__image"})})]})};vr.displayName="SectionIntro";const Ar=l(((a,n)=>{const{slides:r=[],height:i=300,width:o="100%",slidesToShow:s=1,spaceBetween:l=0,loop:c=!1,initialSlide:h=0,direction:u="horizontal",speed:m=300,allowTouchMove:p=!0,threshold:g=50,grabCursor:f=!0,autoplay:S,navigation:b,pagination:E,className:v,style:A,onSlideChange:N,...T}=a;if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:i,width:o,...A},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const y=An({slides:r,slidesToShow:s,spaceBetween:l,loop:c,initialSlide:h,direction:u,speed:m,allowTouchMove:p,threshold:g,autoplay:S,onSlideChange:N}),{containerRef:_,wrapperRef:C,allSlides:L,realIndex:x,translateValue:I,slideWidth:O,transitioning:R,touching:w,slideNext:M,slidePrev:D,goToSlide:k,canSlideNext:P,canSlidePrev:B,handleTouchStart:z,handleTouchMove:U,handleTouchEnd:G,loopedSlides:F}=y,V=d((()=>0===O?0:L.length*(O+l)-l),[L.length,O,l]),H=["c-slider","vertical"===u&&"c-slider--vertical",f&&"c-slider--grab-cursor",w&&"c-slider--grabbing",c&&"c-slider--loop",v].filter(Boolean).join(" ");return t("div",{ref:n||_,className:H,style:{height:"number"==typeof i?i+"px":i,width:"number"==typeof o?o+"px":o,overflow:"hidden",position:"relative",cursor:f&&!w?"grab":w?"grabbing":"default",...A},onTouchStart:z,onTouchMove:U,onTouchEnd:G,onMouseDown:z,onMouseMove:U,onMouseUp:G,onMouseLeave:G,children:[e("div",{ref:C,className:"c-slider__wrapper",style:{display:"flex",flexDirection:"vertical"===u?"column":"row",width:"horizontal"===u?V+"px":"100%",height:"vertical"===u?V+"px":"100%",transform:"horizontal"===u?`translateX(${I}px)`:`translateY(${I}px)`,transition:R&&!y.repositioningRef?.current?`transform ${m}ms ease-out`:"none",willChange:"transform"},children:L.map(((a,n)=>t("div",{className:["c-slider__slide",(c?n%r.length===x:n===x)&&"c-slider__slide--active",a.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===u?"100%":O+"px",height:"vertical"===u?O+"px":"100%",flexShrink:0,marginRight:"horizontal"===u&&n<L.length-1?l+"px":0,marginBottom:"vertical"===u&&n<L.length-1?l+"px":0},children:[a.video?e("video",{src:a.video.src,poster:a.video.poster,autoPlay:a.video.autoplay,loop:a.video.loop,muted:a.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${a.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:a.content}):a.image?e("img",{src:a.image,alt:a.alt||a.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):a.content,(a.title||a.description)&&t("div",{className:"c-slider__slide-content",children:[a.title&&e("h3",{children:a.title}),a.description&&e("p",{children:a.description})]})]},a.id||n)))}),b&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:D,disabled:!B,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:M,disabled:!P,"aria-label":"Next slide"})]}),E&&e("div",{className:"c-slider__pagination",children:r.map(((t,a)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(a===x?"c-slider__pagination-bullet--active":""),onClick:()=>k(a),"aria-label":"Go to slide "+(a+1)},a)))})]})}));Ar.displayName="Slider";const Nr=({items:a,activeIndex:n=0,vertical:i=!1,onStepChange:s,className:l="",style:c,glass:d})=>{const[h,u]=r(n);o((()=>{h!==n&&u(n)}),[n]);const m=e("div",{className:`c-steps ${i?j.CLASSES.VERTICAL:""} ${l}`,style:c,role:"navigation","aria-label":"Steps",children:a.map(((a,n)=>t("div",{className:`c-steps__item ${n>h?"":j.CLASSES.ACTIVE} ${h>n?j.CLASSES.COMPLETED:""}`,"aria-current":n===h?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:a.number}),e("div",{className:"c-steps__text",children:a.text}),a.content&&e("div",{className:"c-steps__custom-content",children:a.content})]})]},"step-"+n)))});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===d?t:{...t,...d};return e(Xe,{...a,children:m})}return m};Nr.displayName="Steps";const Tr=({items:a,activeIndex:n=K.DEFAULTS.ACTIVE_INDEX,onTabChange:i,className:o="",style:s,glass:l})=>{const[c,d]=r(n),h=t("div",{className:"c-tabs js-atomix-tab "+o,style:s,children:[e("ul",{className:"c-tabs__nav",children:a.map(((t,a)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:"c-tabs__nav-btn "+(a===c?K.CLASSES.ACTIVE:""),onClick:()=>(e=>{d(e),i&&i(e)})(a),"data-tabindex":a,role:"tab","aria-selected":a===c,"aria-controls":"tab-panel-"+a,children:t.label})},"tab-nav-"+a)))}),e("div",{className:"c-tabs__panels",children:a.map(((t,a)=>e("div",{className:"c-tabs__panel "+(a===c?K.CLASSES.ACTIVE:""),"data-tabindex":a,id:"tab-panel-"+a,role:"tabpanel","aria-labelledby":"tab-nav-"+a,style:{height:a===c?"auto":"0px",opacity:a===c?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},"tab-panel-"+a)))})]});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===l?t:{...t,...l};return e(Xe,{...a,children:h})}return h};Tr.displayName="Tabs";const yr=({quote:a,author:n,size:r="",skeleton:s=!1,className:l="",style:c})=>{const d=i(null),h=i(null);o((()=>{if("undefined"!=typeof window&&d.current)return()=>{h.current&&h.current.destroy()}}),[r,s]);const u=["c-testimonial","sm"===r?Q.CLASSES.SMALL:"","lg"===r?Q.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",s?{className:u,ref:d,style:c,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:u,ref:d,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:a}),n&&t("div",{className:"c-testimonial__author",children:[n.avatarSrc&&e("img",{src:n.avatarSrc,alt:n.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:n.name}),e("p",{className:"c-testimonial__author-role",children:n.role})]})]})]})};yr.displayName="Testimonial";const _r=({items:a=[],title:n="Todo List",onAddTodo:i,onToggleTodo:s,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:h=!0,className:u="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:S,generateTodoClasses:b,generateItemClasses:E}=pn({items:a,title:n,size:c,placeholder:d,showCompleted:h,disabled:p}),[v,A]=r(a);o((()=>{A(a)}),[a]);const N=h?v:v.filter((e=>!e.completed)),T=b({size:c,className:u,disabled:p});return t("div",{className:T,style:m,children:[n&&e("h2",{className:"c-todo__title",children:n}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:dn(),text:g.trim(),completed:!1};A((e=>[...e,t])),i&&i(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(St,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===N.length?e("li",{className:"c-todo__empty",children:"No items to display"}):N.map((a=>e("li",{className:E(a),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:a.completed,onChange:()=>{return e=a.id,void(p||(A((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e)));var e},disabled:p,"aria-label":`Mark "${a.text}" as ${a.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:a.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return e=a.id,void(p||(A((t=>t.filter((t=>t.id!==e)))),l&&l(e)));var e},disabled:p,"aria-label":`Delete "${a.text}"`,children:e(St,{name:"Trash",size:"sm"})})]})},a.id)))})]})};_r.displayName="Todo";const Cr=({initialOn:t=!1,onToggleOn:a,onToggleOff:n,disabled:i=!1,className:o="",style:s,glass:l})=>{const[c,d]=r(t),h=()=>{if(i)return;const e=!c;d(e),e?a&&a():n&&n()},u=e("div",{className:`c-toggle ${c?W.CLASSES.IS_ON:""} ${i?"is-disabled":""} ${o}`,style:s,onClick:h,onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())},role:"switch","aria-checked":c,tabIndex:i?-1:0,"aria-disabled":i,children:e("div",{className:"c-toggle__switch"})});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===l?t:{...t,...l};return e(Xe,{...a,children:u})}return u};Cr.displayName="Toggle";const Lr=({content:a,children:n,position:s=H.DEFAULTS.POSITION,trigger:l=H.DEFAULTS.TRIGGER,className:c="",style:d,delay:u=H.DEFAULTS.DELAY,offset:m=H.DEFAULTS.OFFSET,glass:p})=>{const{isVisible:g,isPositioned:f,tooltipId:S,triggerRef:b,tooltipRef:E,tooltipStyle:v,arrowStyle:A,triggerProps:N,wrapperProps:T}=(({position:e="top",trigger:t="hover",offset:a=10,delay:n=200})=>{const[s,l]=r(!1),[c,d]=r(!1),[u,m]=r({}),[p,g]=r({}),f=i(null),S=i(null),b=i(null),E="tooltip-"+Math.random().toString(36).slice(2,11),v=h((()=>{f.current&&clearTimeout(f.current),n>0?f.current=setTimeout((()=>{l(!0)}),n):l(!0)}),[n]),A=h((()=>{f.current&&clearTimeout(f.current),l(!1),d(!1)}),[]),N=h((()=>{s?A():v()}),[s,v,A]),T=h((()=>{if(!S.current||!b.current)return;const t=S.current.getBoundingClientRect(),n=b.current.getBoundingClientRect(),r=S.current.parentElement;if(!r)return;const i=r.getBoundingClientRect(),o=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const a=t.match(/([\d.]+)rem/);if(a?.[1])return 16*parseFloat(a[1]);const n=t.match(/([\d.]+)px/);return n?.[1]?parseFloat(n[1]):8})(b.current),s=((e,t,a,n,r,i)=>{const o=a.width||0,s=a.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},h={};switch(e){case"top":d.top=t.top-n.top-s-r+"px",d.left=t.left-n.left+l/2-o/2+"px",h.bottom=i/-2+"px",h.left=o/2-i/2+"px";break;case"bottom":d.top=t.bottom-n.top+r+"px",d.left=t.left-n.left+l/2-o/2+"px",h.top=i/-2+"px",h.left=o/2-i/2+"px";break;case"left":d.right=n.right-t.left+r+"px",d.top=t.top-n.top+c/2-s/2+"px",h.right=i/-2+"px",h.top=s/2-i/2+"px";break;case"right":d.left=t.right-n.left+r+"px",d.top=t.top-n.top+c/2-s/2+"px",h.left=i/-2+"px",h.top=s/2-i/2+"px";break;case"top-left":d.bottom=n.bottom-t.top+r+"px",d.left=t.left-n.left+"px",h.bottom=i/-2+"px",h.left=i+"px";break;case"top-right":d.bottom=n.bottom-t.top+r+"px",d.right=n.right-t.right+"px",h.bottom=i/-2+"px",h.right=i+"px";break;case"bottom-left":d.top=t.bottom-n.top+r+"px",d.left=t.left-n.left+"px",h.top=i/-2+"px",h.left=i+"px";break;case"bottom-right":d.top=t.bottom-n.top+r+"px",d.right=n.right-t.right+"px",h.top=i/-2+"px",h.right=i+"px"}return{tooltip:d,arrow:h}})(e,t,n,i,a,o);m(s.tooltip),g(s.arrow),d(!0)}),[e,a]);o((()=>{if(!s||!S.current||!b.current)return;const e=requestAnimationFrame((()=>{T()})),t=()=>{T()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[s,T]);const y={"aria-describedby":s?E:void 0},_={};return"hover"===t?(_.onMouseEnter=v,_.onMouseLeave=A,y.onFocus=v,y.onBlur=A):"click"===t&&(y.onClick=N),{isVisible:s,isPositioned:c,tooltipId:E,triggerRef:S,tooltipRef:b,tooltipStyle:u,arrowStyle:p,showTooltip:v,hideTooltip:A,toggleTooltip:N,triggerProps:y,wrapperProps:_}})({position:s,trigger:l,offset:m,delay:u});return t("div",{className:"u-position-relative u-d-inline-block",style:d,...T,children:[e("div",{ref:b,className:`${H.SELECTORS.TRIGGER.substring(1)}${c?" "+c:""}`,...N,children:n}),g&&e("div",{ref:E,id:S,role:"tooltip",className:`c-tooltip ${H.SELECTORS.TOOLTIP.substring(1)} ${{top:"c-tooltip--top",bottom:"c-tooltip--bottom",left:"c-tooltip--left",right:"c-tooltip--right","top-left":"c-tooltip--top-left","top-right":"c-tooltip--top-right","bottom-left":"c-tooltip--bottom-left","bottom-right":"c-tooltip--bottom-right"}[s]||"c-tooltip--top"} ${p?"c-tooltip--glass":""}`,"data-tooltip-position":s,"data-tooltip-trigger":l,style:{...v,...f?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const n=t("div",{className:`c-tooltip__content ${H.SELECTORS.CONTENT.substring(1)} ${g&&f&&"is-active"}`,children:[e("span",{className:H.SELECTORS.ARROW.substring(1),style:A}),a]});if(p){const t={displacementScale:100,blurAmount:3},a=!0===p?t:{...t,...p};return e(Xe,{...a,children:n})}return n})()})]})};Lr.displayName="Tooltip";const xr=({disabled:a=!1,size:n="md",maxSizeInMB:o=5,acceptedFileTypes:s=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:l=!1,title:c="Drag and Drop files here",supportedFilesText:d="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:h="Choose File",helperText:u=`Maximum size: ${o}MB`,icon:m=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:p,onFileUpload:g,onFileUploadComplete:f,onFileUploadError:S,className:b="",style:E})=>{const v=i(null),[A,N]=r("idle"),[T,y]=r(!1),[_,C]=r(null),[L,x]=r(0),[I,O]=r(null),[R,w]=r(null),[M,D]=r(null),k=i(0),P=()=>{v.current&&!a&&v.current.click()},B=e=>{if(!e.length)return;const t=(l?e:[e[0]]).filter((e=>void 0!==e&&z(e)));t.length&&p&&p(t),t.length&&(C(t[0]||null),t[0]&&U(t[0]))},z=e=>{const t=1024*o*1024;return e.size>t?(N("error"),w(`File too large. Maximum size is ${o}MB.`),!1):!(s?.length&&!s.some((t=>{if(t.endsWith("/*")){const a=t.split("/")[0];return e.type.startsWith(a+"/")}return e.type===t}))&&(N("error"),w("File type not supported."),1))},U=e=>{N("loading"),x(0);let t=0;const a=setInterval((()=>{t+=5,100>t?(x(t),O(Math.ceil((100-t)/5)+" seconds left"),g&&g(e,t)):(clearInterval(a),N("success"),D("Upload successful"),f&&f(e))}),500)},G=["c-upload","md"!==n&&"c-upload--"+n,T&&X.CLASSES.DRAGGING,a&&X.CLASSES.DISABLED,"loading"===A&&"c-upload--loading","success"===A&&"c-upload--success","error"===A&&"c-upload--error",b].filter(Boolean).join(" ");return t("div",{className:G,style:E,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),a||(k.current++,1===k.current&&y(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),a||(k.current--,0===k.current&&y(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),a)return;if(k.current=0,y(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);B(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:a?-1:0,"aria-label":`${c}. ${d}. ${u}`,"aria-disabled":a,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||a||(e.preventDefault(),P())},children:[e("input",{type:"file",ref:v,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);B(t)},disabled:a,accept:s.join(","),multiple:l,"aria-hidden":"true"}),e("div",{className:"c-upload__icon",children:m}),e("h3",{className:"c-upload__title",children:c}),e("p",{className:"c-upload__text",children:d}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:P,disabled:a,children:h}),e("p",{className:"c-upload__helper-text",children:u})]}),"idle"!==A&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":L},children:[_&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:_.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[L,"%"]}),e("div",{className:"c-upload__loader-time",children:I})]})]}),("loading"===A||"error"===A||"success"===A)&&t("div",{className:"c-upload__loader-control",children:[e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{type:"button",className:"c-upload__loader-close",onClick:()=>{N("idle"),C(null),x(0),O(null),w(null),D(null)},"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]})]})]})};xr.displayName="Upload";const Ir=l((({src:n,type:s="video",youtubeId:l,poster:c,autoplay:d=!1,loop:u=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:S,aspectRatio:b="16:9",className:O="",onPlay:R,onPause:w,onEnded:M,onTimeUpdate:D,onVolumeChange:k,onFullscreenChange:P,onError:B,showDownload:z=!1,showShare:U=!1,showSettings:G=!0,playbackRates:F=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:Y=!1,glass:W=!1,glassOpacity:K=1,glassContent:j,style:Q,...q},Z)=>{const $=i(null),X=i(null),J=i(null),ee=i(null),[te,ae]=r(8),ne="youtube"===s||l||n&&hn(n),re=l||(ne&&n?un(n):null),{isPlaying:ie,currentTime:oe,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:he,playbackRate:ue,currentQuality:me,showControls:pe,play:ge,pause:fe,togglePlay:Se,seek:be,setVolume:Ee,toggleMute:ve,toggleFullscreen:Ae,togglePictureInPicture:Te,setPlaybackRate:ye,setQuality:_e,formatTime:Ce,getProgressPercentage:Le,getBufferedPercentage:xe}=function({videoRef:e,containerRef:t,onPlay:a,onPause:n,onEnded:s,onTimeUpdate:l,onVolumeChange:c,onFullscreenChange:d,onError:u,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[S,b]=r(0),[E,v]=r(0),[A,N]=r(1),[T,y]=r(!1),[_,C]=r(!1),[L,x]=r(!1),[I,O]=r(!1),[R,w]=r(0),[M,D]=r(1),[k,P]=r(p?.[0]||null),[B,z]=r(!0),U=i(null),G=h((()=>{U.current&&clearTimeout(U.current),z(!0),U.current=setTimeout((()=>{g&&z(!1)}),3e3)}),[g]),F=h((async()=>{if(e.current)try{await e.current.play(),f(!0),a?.()}catch(t){u?.(t),f(!1)}}),[e,a,u]),V=h((()=>{e.current&&(e.current.pause(),f(!1),n?.())}),[e,n]),H=h((()=>{g?V():F()}),[g,F,V]),Y=h((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,E)))}),[e,E]),W=h((t=>{const a=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=a,N(a),y(0===a),c?.(a))}),[e,c]),K=h((()=>{if(e.current){const t=!T;e.current.muted=t,y(t)}}),[e,T]),j=h((async()=>{if(t.current)try{_?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,_]),Q=h((async()=>{if(e.current)try{L?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,L]),q=h((t=>{e.current&&m.includes(t)&&(e.current.playbackRate=t,D(t))}),[e,m]),Z=h((t=>{if(e.current&&p){const a=e.current.currentTime,n=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=a,n&&e.current.play(),P(t))}}),[e,p]),$=h((e=>{const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}),[]),X=h((()=>E>0?S/E*100:0),[S,E]),J=h((()=>E>0?R/E*100:0),[R,E]);o((()=>{const t=e.current;if(!t)return;const r=()=>O(!0),i=()=>O(!1),o=()=>{v(t.duration),N(t.volume),y(t.muted)},d=()=>{b(t.currentTime),l?.(t.currentTime)},h=()=>{t.buffered.length>0&&w(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),a?.()},p=()=>{f(!1),n?.()},g=()=>{f(!1),s?.()},S=()=>{N(t.volume),y(t.muted),c?.(t.volume)},E=e=>{O(!1),u?.(e)},A=()=>x(!0),T=()=>x(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",i),t.addEventListener("loadedmetadata",o),t.addEventListener("timeupdate",d),t.addEventListener("progress",h),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",S),t.addEventListener("error",E),t.addEventListener("enterpictureinpicture",A),t.addEventListener("leavepictureinpicture",T),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",i),t.removeEventListener("loadedmetadata",o),t.removeEventListener("timeupdate",d),t.removeEventListener("progress",h),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",S),t.removeEventListener("error",E),t.removeEventListener("enterpictureinpicture",A),t.removeEventListener("leavepictureinpicture",T)}}),[e,a,n,s,l,c,u]),o((()=>{const e=()=>{const e=!!document.fullscreenElement;C(e),d?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[d]);const ee=h((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),Y(S-10);break;case"ArrowRight":e.preventDefault(),Y(S+10);break;case"ArrowUp":e.preventDefault(),W(Math.min(1,A+.1));break;case"ArrowDown":e.preventDefault(),W(Math.max(0,A-.1));break;case"KeyM":e.preventDefault(),K();break;case"KeyF":e.preventDefault(),j()}}),[H,Y,S,W,A,K,j,t]);o((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=h((()=>G()),[G]),ae=h((()=>{U.current&&clearTimeout(U.current),g&&z(!1)}),[g]);return o((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ae),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ae),U.current&&clearTimeout(U.current)}}),[t,te,ae]),{isPlaying:g,currentTime:S,duration:E,volume:A,isMuted:T,isFullscreen:_,isPictureInPicture:L,isLoading:I,buffered:R,playbackRate:M,currentQuality:k,showControls:B,play:F,pause:V,togglePlay:H,seek:Y,setVolume:W,toggleMute:K,toggleFullscreen:j,togglePictureInPicture:Q,setPlaybackRate:q,setQuality:Z,formatTime:$,getProgressPercentage:X,getBufferedPercentage:J}}({videoRef:$,containerRef:X,onPlay:R,onPause:w,onEnded:M,onTimeUpdate:D,onVolumeChange:k,onFullscreenChange:P,onError:B,playbackRates:F,quality:H});!function({videoRef:e,canvasRef:t,enabled:a,blur:n=60,opacity:r=.6,scale:s=1.2}){const l=i(60);o((()=>{if(!a||!e.current||!t.current)return;const i=e.current,o=t.current,c=o.getContext("2d");if(!c)return;const d=()=>{if(!i||!o||!c)return;const e=i.getBoundingClientRect();o.width=e.width*s,o.height=e.height*s,c.filter=`blur(${n}px)`,c.globalAlpha=r;try{c.drawImage(i,0,0,o.width,o.height)}catch(t){}a&&(l.current=requestAnimationFrame(d))},h=()=>{a&&d()},u=()=>{l.current&&cancelAnimationFrame(l.current)};return i.addEventListener("play",h),i.addEventListener("pause",u),i.addEventListener("ended",u),i.paused||h(),()=>{i.removeEventListener("play",h),i.removeEventListener("pause",u),i.removeEventListener("ended",u),l.current&&cancelAnimationFrame(l.current)}}),[a,n,r,s,e,t])}({videoRef:$,canvasRef:J,enabled:Y});const[Ie,Oe]=r(!1),[Re,we]=r("quality"),[Me,De]=r(V?.find((e=>e.default))?.srcLang||null),[ke,Pe]=r({width:0,height:0}),Be=h((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;be(a*se)}),[se,be]),ze=h((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;Ee(a)}),[Ee]),Ue=h((()=>{if(n){const e=document.createElement("a");e.href=n,e.download="video",e.click()}}),[n]),Ge=h((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Fe=h((e=>{const t=$.current;if(t){const a=t.textTracks;for(let e=0;e<a.length;e++){const t=a[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<a.length;t++){const n=a[t];if(n&&n.language===e){n.mode="showing";break}}De(e)}}),[$]);o((()=>{const e=$.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Fe(e.srcLang)}),100)},a=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Fe(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",a),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",a)}}}),[V,Fe,$]),o((()=>{const e=()=>{if(ne&&ee.current){const e=ee.current.getBoundingClientRect();Pe({width:e.width,height:e.height})}else if($.current){const e=$.current.getBoundingClientRect();Pe({width:e.width,height:e.height})}},t=setTimeout(e,100),a=new ResizeObserver(e);if(ne&&ee.current){const n=ee.current;a.observe(n);const r=()=>e();return n.addEventListener("load",r),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("load",r)}}if($.current){const n=$.current;a.observe(n);const r=()=>e();return n.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),a.disconnect(),window.removeEventListener("resize",e)}}),[ne,$,ee]);const Ve=h((()=>{X.current&&X.current.focus()}),[]);o((()=>{const e=()=>{if(!X.current)return;const e=window.getComputedStyle(X.current),t=e.borderRadius||e.borderTopLeftRadius,a=parseFloat(t);isNaN(a)||ae(a)};e();let t=null;return"undefined"!=typeof ResizeObserver&&X.current&&(t=new ResizeObserver(e),t.observe(X.current)),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t&&X.current&&(t.unobserve(X.current),t.disconnect())}}),[]);const He=h((e=>{switch(e.key){case" ":case"k":e.preventDefault(),Se();break;case"ArrowLeft":e.preventDefault(),be(oe-10);break;case"ArrowRight":e.preventDefault(),be(oe+10);break;case"ArrowUp":e.preventDefault(),Ee(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),Ee(Math.max(0,le-.1));break;case"m":e.preventDefault(),ve();break;case"f":e.preventDefault(),Ae()}}),[Se,oe,be,le,Ee,ve,Ae]);return t("div",{ref:X,className:`${Ne.CLASSES.BASE} ${ne?Ne.CLASSES.YOUTUBE:""} ${Y?Ne.CLASSES.AMBIENT:""} ${W?Ne.CLASSES.GLASS:""} ${O}`,style:{width:f,height:S,aspectRatio:b?b.replace(":","/"):void 0,...Q},tabIndex:0,onClick:Ve,onKeyDown:He,role:"application","aria-label":"Video player",...q,children:[Y&&e("canvas",{ref:J,className:Ne.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ne&&re?e("iframe",{ref:ee,className:Ne.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:d?"1":"0",loop:u?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...u&&{playlist:re}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{$&&$.current!==e&&($.current=e),"function"==typeof Z?Z(e):Z&&Z.current!==e&&(Z.current=e)},className:Ne.CLASSES.VIDEO,src:n,poster:c,autoPlay:d,loop:u,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),he&&e("div",{className:Ne.CLASSES.LOADING,children:e("div",{className:Ne.CLASSES.SPINNER})}),W&&e("div",{className:Ne.CLASSES.GLASS_OVERLAY,children:e(Xe,{..."boolean"==typeof W?{}:W,mouseContainer:X,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!j&&e("div",{style:{width:ke.width>0?ke.width+"px":"100%",height:ke.height>0?ke.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),W&&j&&e("div",{className:Ne.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:j}),p&&!ne&&t("div",{className:`${Ne.CLASSES.CONTROLS} ${pe?Ne.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:W?3:"auto"},children:[e("div",{className:Ne.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:Ne.CLASSES.PROGRESS_BAR,onClick:Be,children:[e("div",{className:Ne.CLASSES.PROGRESS_BUFFERED,style:{width:xe()+"%"}}),e("div",{className:Ne.CLASSES.PROGRESS_PLAYED,style:{width:Le()+"%"}}),e("div",{className:Ne.CLASSES.PROGRESS_THUMB,style:{left:Le()+"%"}})]})}),t("div",{className:Ne.CLASSES.CONTROLS_ROW,children:[t("div",{className:Ne.CLASSES.CONTROLS_LEFT,children:[e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:Se,"aria-label":ie?"Pause":"Play",children:e(ie?E:v,{size:20})}),e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:()=>be(oe-10),"aria-label":"Skip back 10 seconds",children:e(A,{size:20})}),e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:()=>be(oe+10),"aria-label":"Skip forward 10 seconds",children:e(N,{size:20})}),t("div",{className:Ne.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:ve,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?T:y,{size:20})}),e("div",{className:Ne.CLASSES.VOLUME_SLIDER,children:e("div",{className:Ne.CLASSES.VOLUME_BAR,onClick:ze,children:e("div",{className:Ne.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:Ne.CLASSES.TIME_DISPLAY,children:[e("span",{children:Ce(oe)}),e("span",{children:"/"}),e("span",{children:Ce(se)})]})]}),t("div",{className:Ne.CLASSES.CONTROLS_RIGHT,children:[G&&t("div",{className:Ne.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:()=>Oe(!Ie),"aria-label":"Settings",children:e(_,{size:20})}),Ie&&t("div",{className:Ne.CLASSES.SETTINGS_MENU,children:[t("div",{className:Ne.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${Ne.CLASSES.SETTINGS_TAB} ${"quality"===Re?Ne.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("quality"),children:"Quality"}),e("button",{className:`${Ne.CLASSES.SETTINGS_TAB} ${"speed"===Re?Ne.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("speed"),children:"Speed"}),e("button",{className:`${Ne.CLASSES.SETTINGS_TAB} ${"subtitles"===Re?Ne.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>we("subtitles"),children:"Subtitles"})]}),t("div",{className:Ne.CLASSES.SETTINGS_CONTENT,children:["quality"===Re&&H&&e("div",{className:Ne.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${Ne.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?Ne.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>_e(t),children:t.label},t.label)))}),"speed"===Re&&e("div",{className:Ne.CLASSES.SETTINGS_OPTIONS,children:F.map((e=>t("button",{className:`${Ne.CLASSES.SETTINGS_OPTION} ${ue===e?Ne.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>ye(e),children:[e,"x"]},e)))}),"subtitles"===Re&&e("div",{className:Ne.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(a,{children:[e("button",{className:`${Ne.CLASSES.SETTINGS_OPTION} ${null===Me?Ne.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(null),children:"Off"}),V.map((t=>e("button",{className:`${Ne.CLASSES.SETTINGS_OPTION} ${Me===t.srcLang?Ne.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:Ne.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),z&&e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Download video",children:e(C,{size:20})}),U&&e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:Ge,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:Te,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:Ne.CLASSES.CONTROL_BUTTON,onClick:Ae,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?x:I,{size:20})})]})]})]})]})}));Ir.displayName="VideoPlayer";var Or=Object.freeze({__proto__:null,Accordion:Je,AnimatedChart:Yt,AreaChart:Kt,AtomixGlass:Xe,AtomixLogo:et,Avatar:bt,AvatarGroup:Et,Badge:At,BarChart:Qt,Block:yt,Breadcrumb:_t,BubbleChart:qt,Button:It,Callout:Ot,CandlestickChart:Zt,Card:Rt,Chart:Gt,ChartRenderer:Vt,Checkbox:Ra,ColorModeToggle:ua,Countdown:ma,DataTable:va,DatePicker:_a,DonutChart:$t,Dropdown:La,EdgePanel:Ia,ElevationCard:Pt,Footer:Mn,FooterLink:zn,FooterSection:Bn,FooterSocialLink:In,Form:Ma,FormGroup:ka,FunnelChart:Xt,GaugeChart:Jt,HeatmapChart:ta,Hero:Un,Icon:St,Input:Ba,LineChart:na,List:Gn,ListGroup:Fn,MegaMenu:rr,MegaMenuColumn:ir,MegaMenuLink:or,Menu:er,MenuDivider:nr,MenuItem:tr,Messages:Vn,Modal:Hn,MultiAxisChart:ra,Nav:Yn,NavDropdown:sr,NavItem:Wn,Navbar:Kn,Pagination:Ea,PhotoViewer:mr,PieChart:oa,Popover:gr,ProductReview:Sr,Progress:br,RadarChart:sa,Radio:Ln,Rating:fr,River:Er,ScatterChart:la,SectionIntro:vr,Select:Cn,SideMenu:Jn,SideMenuItem:Zn,SideMenuList:qn,Slider:Ar,Spinner:xt,Steps:Nr,Tabs:Tr,Testimonial:yr,Textarea:xn,Todo:_r,Toggle:Cr,Tooltip:Lr,TreemapChart:ca,Upload:xr,VideoPlayer:Ir,WaterfallChart:da}),Rr=Object.freeze({__proto__:null}),wr=Object.freeze({__proto__:null,ACCORDION:P,ATOMIX_GLASS:Re,AVATAR:ge,AVATAR_GROUP:fe,BADGE:B,BLOCK:xe,BREADCRUMB:G,BUTTON:D,CALLOUT:k,CARD:ue,CHART:Ce,CLASS_PREFIX:M,CODE_SNIPPET:Le,COUNTDOWN:F,DATA_TABLE_CLASSES:re,DATA_TABLE_SELECTORS:ie,DATEPICKER:Ae,DROPDOWN:Ee,EDGE_PANEL:ne,FOOTER:Oe,FORM:le,FORM_GROUP:ce,GLASS_CONTAINER:Ie,HERO:V,INPUT:de,LIST:z,LIST_GROUP:U,MESSAGES:be,MODAL:Se,NAV:ee,NAVBAR:J,PAGINATION_DEFAULTS:oe,PHOTOVIEWER:Te,POPOVER:Y,PROGRESS:ve,RADIO:he,RATING:ae,RIVER:$,SECTION_INTRO:Z,SELECT:me,SIDE_MENU:te,SIZES:w,SLIDER:_e,SPINNER:q,STEPS:j,TAB:K,TESTIMONIAL:Q,TEXTAREA:pe,THEME_COLORS:R,TODO:se,TOGGLE:W,TOOLTIP:H,UPLOAD:X,VIDEO_PLAYER:Ne,sliderConstants:ye});const Mr="atomix-theme",Dr="data-theme",kr="/themes",Pr={maxSize:10,ttl:0},Br="theme.config.ts";process.env.NODE_ENV;const zr={theme:"data-theme",colorMode:"data-atomix-color-mode"},Ur={colorMode:"--storybook-color-mode"},Gr={style:"expanded",sourceMap:!0,loadPaths:["src"]},Fr=()=>"undefined"!=typeof window&&"undefined"!=typeof document,Vr=()=>!Fr(),Hr=(e,t)=>{Vr()||(document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))};function Yr(e,t){const a=[];return{valid:0===a.length,errors:a,warnings:[]}}function Wr(e,t){const a=[];return t.createTheme&&"function"==typeof t.createTheme||a.push(`JS theme "${e}" must have a "createTheme" function`),{valid:0===a.length,errors:a,warnings:[]}}var Kr,jr;!function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(Kr||(Kr={}));class Qr extends Error{constructor(e,t=Kr.UNKNOWN_ERROR,a){super(e),this.name="ThemeError",this.code=t,this.context=a,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,Qr)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(jr||(jr={}));class qr{constructor(e={}){this.config={level:e.level??("production"===process.env.NODE_ENV?jr.WARN:jr.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,a){if(this.config.level<jr.ERROR)return;const n=t instanceof Qr?t:new Qr(e,Kr.UNKNOWN_ERROR,a);this.config.enableConsole,this.config.onError?.(n,a)}warn(e,t){this.config.level<jr.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<jr.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<jr.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let Zr=null;function $r(){return Zr||(Zr=new qr),Zr}let Xr=null;const Jr=$r();class ei{constructor(){this.entries=new Map,this.config=null,this.initialized=!1}async initialize(e){if(!this.initialized){if(e)this.config=e;else try{this.config=function(e={}){const{configPath:t=Br,validate:a=!0,env:n=("undefined"!=typeof process&&process.env&&"production"===process.env.NODE_ENV?"production":"development")}=e;if(Xr)return Xr;let r;try{if("undefined"!=typeof window)throw Error("Theme config loading not supported in browser environment");if("undefined"!=typeof window||"undefined"==typeof require)throw Error("Theme config loading not supported in browser environment");let e;try{try{e=require("../../../../theme.config")}catch{const a=require("path"),n=require("fs"),r=a.resolve(process.cwd(),t);if(!n.existsSync(r))throw Error("Config file not found: "+r);{const t=require.resolve(r);require.cache&&require.cache[t]&&delete require.cache[t],e=require(r)}}}catch(i){const e=i instanceof Error?i.message:i+"";throw new Qr("Cannot load theme config: "+e,Kr.CONFIG_LOAD_FAILED,{configPath:t,error:e})}const o=function(e,t){const a={...e};return"production"===t&&a.runtime&&(a.runtime={...a.runtime,useMinified:!0,lazy:!0}),"development"===t&&(a.runtime&&(a.runtime={...a.runtime,useMinified:!1,lazy:!1}),a.build&&(a.build={...a.build,sass:{...a.build.sass,sourceMap:!0}})),"test"===t&&a.runtime&&(a.runtime={...a.runtime,enablePersistence:!1,preload:[]}),a}(e.default||e,n);let s=null;a&&(s=function(e){const t=[],a=[];if(!e||"object"!=typeof e)return t.push("Configuration must be an object"),{valid:!1,errors:t,warnings:a};if(e.themes&&"object"==typeof e.themes){const n=function(e){const t=[],a=[];0===Object.keys(e).length&&a.push("No themes defined in configuration");for(const[i,o]of Object.entries(e))if(i&&"string"==typeof i)if(o&&"object"==typeof o)if(!o.type||"css"!==o.type&&"js"!==o.type)t.push(`Theme "${i}" must have type "css" or "js"`);else{if(o.name&&"string"==typeof o.name||t.push(`Theme "${i}" must have a "name" string`),"css"===o.type){const e=Yr();t.push(...e.errors),a.push(...e.warnings)}if("js"===o.type){const e=Wr(i,o);t.push(...e.errors),a.push(...e.warnings)}o.version&&(r=o.version,!/^\d+\.\d+\.\d+(-[\w.]+)?(\+[\w.]+)?$/.test(r))&&a.push(`Theme "${i}" has invalid version format: ${o.version}`),o.status&&!["stable","beta","experimental","deprecated"].includes(o.status)&&a.push(`Theme "${i}" has invalid status: ${o.status}`),o.color&&(n=o.color,!(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(n)||/^rgba?\(/.test(n)||/^hsla?\(/.test(n)||["black","white","red","green","blue","yellow","cyan","magenta","transparent","currentColor"].includes(n.toLowerCase())))&&a.push(`Theme "${i}" has invalid color format: ${o.color}`),o.a11y&&o.a11y.contrastTarget&&(1>o.a11y.contrastTarget||o.a11y.contrastTarget>21)&&a.push(`Theme "${i}" has invalid contrast target: ${o.a11y.contrastTarget}`)}else t.push(`Theme "${i}" must be an object`);else t.push("Invalid theme ID: "+i);var n,r;return{valid:0===t.length,errors:t,warnings:a}}(e.themes);t.push(...n.errors),a.push(...n.warnings)}else t.push('Configuration must have a "themes" object');if(e.build){const n=function(e){const t=[],a=[];return e.output&&"object"==typeof e.output?(e.output.directory&&"string"==typeof e.output.directory||t.push('Build output must have a "directory" string'),e.output.formats&&"object"==typeof e.output.formats||t.push('Build output must have a "formats" object')):t.push('Build config must have an "output" object'),e.sass&&"object"==typeof e.sass?e.sass.style&&!["expanded","compressed","compact","nested"].includes(e.sass.style)&&a.push("Invalid Sass style: "+e.sass.style):t.push('Build config must have a "sass" object'),{valid:0===t.length,errors:t,warnings:a}}(e.build);t.push(...n.errors),a.push(...n.warnings)}else a.push("No build configuration provided, using defaults");if(e.runtime){const n=function(e){const t=[];return e.basePath&&"string"!=typeof e.basePath&&t.push("Runtime basePath must be a string"),e.defaultTheme&&"string"!=typeof e.defaultTheme&&t.push("Runtime defaultTheme must be a string"),e.preload&&!Array.isArray(e.preload)&&t.push("Runtime preload must be an array"),e.storageKey&&"string"!=typeof e.storageKey&&t.push("Runtime storageKey must be a string"),{valid:0===t.length,errors:t,warnings:[]}}(e.runtime);t.push(...n.errors),a.push(...n.warnings)}else a.push("No runtime configuration provided, using defaults");if(e.integration){const n=function(e){const t=[];return e.classNames&&"object"==typeof e.classNames?(e.classNames.theme&&"string"==typeof e.classNames.theme||t.push('Integration classNames must have a "theme" string'),e.classNames.colorMode&&"string"==typeof e.classNames.colorMode||t.push('Integration classNames must have a "colorMode" string')):t.push('Integration config must have a "classNames" object'),{valid:0===t.length,errors:t,warnings:[]}}(e.integration);t.push(...n.errors),a.push(...n.warnings)}else a.push("No integration configuration provided, using defaults");if(e.dependencies){const n=function(e,t){const a=[],n=[];for(const[r,i]of Object.entries(e))if(t[r])if(Array.isArray(i))for(const e of i)t[e]||a.push(`Theme "${r}" depends on non-existent theme: ${e}`);else a.push(`Dependencies for "${r}" must be an array`);else n.push("Dependencies defined for non-existent theme: "+r);return{valid:0===a.length,errors:a,warnings:n}}(e.dependencies,e.themes||{});t.push(...n.errors),a.push(...n.warnings)}return{valid:0===t.length,errors:t,warnings:a}}(o)),r={...o,validated:a,errors:s?.errors,warnings:s?.warnings}}catch(o){const e=o instanceof Error?o.message:o+"";Jr.warn("Failed to load theme config from "+t,{configPath:t,error:e}),r={themes:{},build:{output:{directory:"themes",formats:{expanded:".css",compressed:".min.css"}},sass:{...Gr,loadPaths:[...Gr.loadPaths]}},runtime:{basePath:kr,cdnPath:null,preload:[],lazy:!0,defaultTheme:"",storageKey:Mr,dataAttribute:Dr,enablePersistence:!0,useMinified:"production"===n},integration:{cssVariables:Ur,classNames:zr},dependencies:{},validated:!1,errors:["Failed to load config: "+(o instanceof Error?o.message:o+"")],warnings:[]}}return Xr=r,r}()}catch(t){this.config={themes:{},build:{output:{directory:"themes",formats:{expanded:".css",compressed:".min.css"}},sass:{style:"expanded",sourceMap:!0,loadPaths:["src"]}},runtime:{basePath:"",defaultTheme:void 0},integration:{cssVariables:{colorMode:"--color-mode"},classNames:{theme:"data-theme",colorMode:"data-color-mode"}},dependencies:{},validated:!1,errors:[],warnings:[]}}for(const[e,t]of Object.entries(this.config.themes))this.register(e,t);this.resolveDependencies(),this.initialized=!0}}register(e,t){const a={id:e,definition:t,loaded:!1,dependencies:[...this.config?.dependencies?.[e]||t.dependencies||[]],dependents:[]};this.entries.set(e,a)}get(e){return this.entries.get(e)}has(e){return this.entries.has(e)}getAllIds(){return Array.from(this.entries.keys())}getAllMetadata(){return Array.from(this.entries.values()).map((e=>({id:e.id,name:e.definition.name,type:e.definition.type,class:e.definition.class,description:e.definition.description,author:e.definition.author,version:e.definition.version,tags:e.definition.tags,supportsDarkMode:e.definition.supportsDarkMode,status:e.definition.status,a11y:e.definition.a11y,color:e.definition.color,features:e.definition.features,dependencies:e.dependencies})))}getDefinition(e){return this.entries.get(e)?.definition}getTheme(e){return this.entries.get(e)?.theme}setTheme(e,t){const a=this.entries.get(e);a&&(a.theme=t,a.loaded=!0)}getDependencies(e){return this.entries.get(e)?.dependencies||[]}getDependents(e){return this.entries.get(e)?.dependents||[]}resolveDependencyOrder(e){const t=[],a=new Set,n=new Set,r=e=>{if(n.has(e))throw Error("Circular dependency detected involving theme: "+e);if(a.has(e))return;n.add(e);const i=this.entries.get(e);if(i)for(const t of i.dependencies){if(!this.has(t))throw Error(`Theme "${e}" depends on non-existent theme: ${t}`);r(t)}n.delete(e),a.add(e),t.push(e)};return r(e),t}resolveDependencies(){for(const e of this.entries.values())for(const t of e.dependencies){const a=this.entries.get(t);a&&(a.dependents.includes(e.id)||a.dependents.push(e.id))}}validate(){const e=[];for(const a of this.entries.keys())try{this.resolveDependencyOrder(a)}catch(t){e.push(t instanceof Error?t.message:t+"")}for(const[a,n]of this.entries.entries())for(const t of n.dependencies)this.has(t)||e.push(`Theme "${a}" depends on non-existent theme: ${t}`);return{valid:0===e.length,errors:e}}clear(){this.entries.clear(),this.config=null,this.initialized=!1}}const ti={maxSize:50,ttl:0,enabled:!0};class ai{constructor(e={}){this.cache=new Map,this.accessOrder=[],this.config={...ti,...e}}getCSS(e){if(!this.config.enabled)return null;const t=this.cache.get(e);return t&&"css"===t.type?this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl?(this.cache.delete(e),this.removeFromAccessOrder(e),null):(this.updateAccessOrder(e),t):null}getJS(e){if(!this.config.enabled)return null;const t=this.cache.get(e);return t&&"js"===t.type?this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl?(this.cache.delete(e),this.removeFromAccessOrder(e),null):(this.updateAccessOrder(e),t):null}setCSS(e,t){if(!this.config.enabled)return;this.evictIfNeeded();const a=this.cache.get(e),n={type:"css",themeId:e,loaded:!1,loading:null,timestamp:Date.now(),...a,...t};this.cache.set(e,n),this.updateAccessOrder(e)}setJS(e,t){if(!this.config.enabled)return;this.evictIfNeeded();const a={type:"js",themeId:e,theme:t,loaded:!0,timestamp:Date.now()};this.cache.set(e,a),this.updateAccessOrder(e)}has(e){if(!this.config.enabled)return!1;const t=this.cache.get(e);return!(!t||this.config.ttl>0&&Date.now()-t.timestamp>this.config.ttl&&(this.cache.delete(e),this.removeFromAccessOrder(e),1))}delete(e){const t=this.cache.delete(e);return t&&this.removeFromAccessOrder(e),t}clear(){this.cache.clear(),this.accessOrder=[]}getStats(){let e=0,t=0;for(const a of this.cache.values())"css"===a.type?e++:t++;return{size:this.cache.size,maxSize:this.config.maxSize,cssThemes:e,jsThemes:t}}updateAccessOrder(e){this.removeFromAccessOrder(e),this.accessOrder.push(e)}removeFromAccessOrder(e){const t=this.accessOrder.indexOf(e);t>-1&&this.accessOrder.splice(t,1)}evictIfNeeded(){if(this.cache.size>=this.config.maxSize)for(;this.cache.size>=this.config.maxSize&&this.accessOrder.length>0;){const e=this.accessOrder.shift();e&&this.cache.delete(e)}}}function ni(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function ri(e,t,a){const n=e=>Math.round(Math.max(0,Math.min(255,e))).toString(16).padStart(2,"0");return`#${n(e??0)}${n(t??0)}${n(a??0)}`}function ii(e){const t=ni(e);if(!t)return 0;const{r:a,g:n,b:r}=t,[i,o,s]=[a??0,n??0,r??0].map((e=>{const t=e/255;return t>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92}));return.2126*(i??0)+.7152*(o??0)+.0722*(s??0)}function oi(e,t){const a=ii(e),n=ii(t);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function si(e,t=3){const a=oi("#FFFFFF",e),n=oi("#000000",e);return t>a?t>n&&a>n?"#FFFFFF":"#000000":"#FFFFFF"}function li(e,t=.2){const a=ni(e);if(!a)return e;const{r:n,g:r,b:i}=a,o=e=>Math.min(255,Math.round(e+(255-e)*t));return ri(o(n),o(r),o(i))}function ci(e,t=.2){const a=ni(e);if(!a)return e;const{r:n,g:r,b:i}=a,o=e=>Math.max(0,Math.round(e*(1-t)));return ri(o(n),o(r),o(i))}function di(e,t){const a=ni(e);if(!a)return e;const{r:n,g:r,b:i}=a;return`rgba(${n}, ${r}, ${i}, ${Math.max(0,Math.min(1,t))})`}function hi(e){return e&&"object"==typeof e&&!0===e.__isJSTheme}class ui{validate(e,t){const a=[],n=[],r=[],i=this.validatePalette(e.palette,t);a.push(...i.errors),n.push(...i.warnings),r.push(...i.a11yIssues);const o=this.validateTypography(e.typography);a.push(...o.errors),n.push(...o.warnings);const s=this.validateSpacing(e.spacing);a.push(...s.errors),n.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);a.push(...l.errors),n.push(...l.warnings);const c=this.validateTransitions(e.transitions);a.push(...c.errors),n.push(...c.warnings);const d=this.validateZIndex(e.zIndex);a.push(...d.errors),n.push(...d.warnings);const h=this.validateBorderRadius(e.borderRadius);a.push(...h.errors),n.push(...h.warnings);const u=this.validateCustom(e.custom);return a.push(...u.errors),n.push(...u.warnings),{valid:0===a.length,errors:a,warnings:n,a11yIssues:r}}validatePalette(e,t){const a=[],n=[],r=[],i=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.primary",value:e.primary.main};r.push(o),3>t?a.push(o.message):n.push(o.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.text.primary",value:e.text.primary};r.push(o),3>t?a.push(o.message):n.push(o.message)}}const o=["primary","secondary","error","warning","info","success"];for(const s of o){const t=e[s];t&&(this.isValidColor(t.main)||a.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===a.length,errors:a,warnings:n,a11yIssues:r}}validateTypography(e){const t=[],a=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&a.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:a,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(a){t.push("Spacing function error: "+(a instanceof Error?a.message:a+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],a=[];if(e.values){const n=["xs","sm","md","lg","xl"];for(const a of n)"number"!=typeof e.values[a]&&t.push(`Breakpoint ${a} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],n=r[e-1];if(null!=t&&null!=n&&n>=t){a.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:a,a11yIssues:[]}}checkContrast(e,t){try{return oi(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],a=[],n=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};if(e.duration){const n=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of n){const n=e.duration[r];void 0!==n&&("number"!=typeof n||0>n?t.push(`Transition duration ${r} must be a non-negative number`):n>1e4&&a.push(`Transition duration ${r} (${n}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const n=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const i of n){const n=e.easing[i];void 0!==n&&("string"!=typeof n?t.push(`Transition easing ${i} must be a string`):r.test(n)||a.push(`Transition easing ${i} may not be a valid CSS easing function: ${n}`))}}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateZIndex(e){const t=[],a=[],n=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[i,o]of Object.entries(e))void 0!==o&&("number"!=typeof o?t.push(`Z-index ${i} must be a number, got ${typeof o}`):0>o?t.push(`Z-index ${i} must be non-negative, got ${o}`):o>1e4&&a.push(`Z-index ${i} (${o}) exceeds recommended maximum (10000)`));for(let i=0;i<r.length;i++)for(let e=i+1;e<r.length;e++){const[t,n]=r[i],[o,s]=r[e],l=Math.abs(n-s);10>l&&l>0&&a.push(`Z-index values ${t} (${n}) and ${o} (${s}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateBorderRadius(e){const t=[],a=[],n=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:a,a11yIssues:n};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const i of r){const n=e[i];if(void 0!==n){let e;if("number"==typeof n)e=n;else{if("string"!=typeof n){t.push(`Border radius ${i} must be a number or string, got ${typeof n}`);continue}{const a=n.match(/^([\d.]+)(px|rem|em|%)?$/);if(!a){t.push(`Border radius ${i} has invalid format: ${n}`);continue}const[,r]=a;if(!r){t.push(`Border radius ${i} has invalid numeric value: ${n}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${i} must be non-negative, got ${e}`):e>1e3&&a.push(`Border radius ${i} (${n}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}validateCustom(e){const t=[],a=[],n=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:a,a11yIssues:n};const r=new WeakSet;let i=0;const o=(e,t="custom")=>{if(i>10)a.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))a.push("Circular reference detected in custom property path: "+t);else{r.add(e),i++;try{for(const[n,r]of Object.entries(e)){const e=`${t}.${n}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(n)||a.push(`Custom property name "${n}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||o(r,e)}}finally{i--,r.delete(e)}}};return o(e),{valid:0===t.length,errors:t,warnings:a,a11yIssues:n}}}function mi(e,t="",a={}){for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t?`${t}-${n}`:n;if(r&&"object"==typeof r&&!Array.isArray(r)){if("function"==typeof r)continue;mi(r,i,a)}else"string"!=typeof r&&"number"!=typeof r||(a[i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=r+"")}return a}function pi(e,t,a){const n={};if(!ni(e))return n;for(let r=1;10>=r;r++){let i;i=6>r?li(e,(6-r)/5*.8):6===r?e:ci(e,(r-6)/4*.6),n[`${t}-${a}-${r}`]=i}return n}function gi(e,t={}){const{selector:a=":root",inject:n=!1,styleId:r="atomix-theme-variables",prefix:i="atomix"}=t,o={};if(Object.assign(o,function(e,t){const a={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((n=>{const r=e[n];if(r&&"object"==typeof r){a[`${t}-${n}`]=r.main;const e=ni(r.main);if(e&&(a[`${t}-${n}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),r.dark&&(a[`${t}-${n}-hover`]=r.dark),a[`${t}-${n}-text-emphasis`]=function(e,t=.15){return ii(e)>.5?ci(e,t):li(e,t)}(r.main,.15),a[`${t}-${n}-bg-subtle`]=di(r.main,.1),a[`${t}-${n}-border-subtle`]=di(r.main,.2),"light"!==n&&"dark"!==n){const e=pi(r.main,t,n);Object.assign(a,e)}}})),e.text?.primary){const n=pi(e.text.primary,t,"gray");Object.assign(a,n)}if(e.error&&"object"==typeof e.error&&e.error.main){const n=pi(e.error.main,t,"red");Object.assign(a,n)}if(e.success&&"object"==typeof e.success&&e.success.main){const n=pi(e.success.main,t,"green");Object.assign(a,n)}if(e.info&&"object"==typeof e.info&&e.info.main){const n=pi(e.info.main,t,"blue");Object.assign(a,n)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const n=pi(e.warning.main,t,"yellow");Object.assign(a,n)}if(e.background&&(a[t+"-body-bg"]=e.background.default,e.background.default&&(a[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(a[t+"-secondary-bg-subtle"]=e.background.paper,a[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(a[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(a[t+"-brand-bg-subtle"]=di(e.primary.main,.1))),e.text&&(a[t+"-body-color"]=e.text.primary,e.text.primary&&(a[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(a[t+"-secondary-text-emphasis"]=e.text.secondary,a[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(a[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(a[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(a[t+"-brand-text-emphasis"]=e.primary.main,a[t+"-brand-border-subtle"]=di(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(a[t+"-light-border-subtle"]=di(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(a[t+"-dark-border-subtle"]=di(e.dark.main,.2)),e.text&&(a[t+"-heading-color"]=e.text.primary),e.primary){a[t+"-link-color"]=e.primary.main;const n=ni(e.primary.main);n&&(a[t+"-link-color-rgb"]=`${n.r}, ${n.g}, ${n.b}`),a[t+"-link-hover-color"]=e.primary.dark||ci(e.primary.main,.1);const r=ni(e.primary.dark||ci(e.primary.main,.1));r&&(a[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),a[t+"-link-decoration"]="none"}if(e.text&&(a[t+"-border-color"]=di(e.text.primary,.1),a[t+"-border-color-translucent"]=di(e.text.primary,.15)),e.primary&&(a[t+"-focus-border-color"]=e.primary.main),e.success&&(a[t+"-form-valid-color"]=e.success.main,a[t+"-form-valid-border-color"]=di(e.success.main,.3)),e.error&&(a[t+"-form-invalid-color"]=e.error.main,a[t+"-form-invalid-border-color"]=di(e.error.main,.3)),e.warning?a[t+"-highlight-bg"]=di(e.warning.main,.2):a[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(a[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((n=>{const r=e[n];if(r&&"object"==typeof r){const e=li(r.main,.6),i=li(r.main,.3),o=r.main;a[`${t}-${n}-gradient`]=`linear-gradient(135deg, ${e}, ${i}, ${o})`}})),e.text?.primary){const n=li(e.text.primary,.8),r=li(e.text.primary,.6),i=li(e.text.primary,.4);a[t+"-gradient"]=`linear-gradient(135deg, ${n}, ${r}, ${i})`}return a}(e.palette,i)),Object.assign(o,function(e,t){const a={};a[t+"-body-font-family"]=e.fontFamily,a[t+"-font-sans-serif"]=e.fontFamily,a[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const n=e.fontSize||16;a[t+"-root-font-size"]=n+"px";const r=e.fontSize;a[t+"-body-font-size"]=r+"px",a[t+"-body-font-weight"]=e.fontWeightRegular+"",a[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",a[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",a[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",a[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",a[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(a[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(a[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const i="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");a[t+"-body-line-height"]=i+"",a[t+"-line-height-base"]=i+"",a[t+"-line-height-sm"]="1.43",a[t+"-line-height-lg"]="1.56";const o=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,h=2*r;if(a[t+"-font-size-xs"]=o+"px",a[t+"-font-size-sm"]=s+"px",a[t+"-font-size-md"]=l+"px",a[t+"-font-size-lg"]=c+"px",a[t+"-font-size-xl"]=d+"px",a[t+"-font-size-2xl"]=h+"px","display1"in e){const n=e.display1;a[t+"-display-1"]="string"==typeof n?n:n+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((n=>{const r=e[n];r?.letterSpacing&&(a[`${t}-letter-spacing-${n}`]=r.letterSpacing+"")})),a}(e.typography,i)),Object.assign(o,function(e,t){const a={};return e.md&&(a[t+"-box-shadow"]=e.md),e.xs&&(a[t+"-box-shadow-xs"]=e.xs),e.sm&&(a[t+"-box-shadow-sm"]=e.sm),e.lg&&(a[t+"-box-shadow-lg"]=e.lg),e.xl&&(a[t+"-box-shadow-xl"]=e.xl),e.inset?a[t+"-box-shadow-inset"]=e.inset:e.sm&&(a[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),a}(e.shadows,i)),Object.assign(o,function(e,t){const a={},n=e.duration.shortest||150,r=e.duration.standard||300,i=e.duration.complex||500,o=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return a[t+"-transition-duration-fast"]=n/1e3+"s",a[t+"-transition-duration-base"]=r/1e3+"s",a[t+"-transition-duration-slow"]=i/1e3+"s",a[t+"-transition-duration-slower"]="0.7s",a[t+"-easing-base"]=o,a[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",a[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",a[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",a[t+"-easing-ease-linear"]="linear",a[t+"-transition-fast"]=`all ${n/1e3}s ${o}`,a[t+"-transition-base"]=`all ${r/1e3}s ${o}`,a[t+"-transition-slow"]=`all ${i/1e3}s ${o}`,a}(e.transitions,i)),Object.assign(o,function(e,t){const a={};return a[t+"-z-n1"]="-1",a[t+"-z-0"]="0",a[t+"-z-1"]="1",a[t+"-z-2"]="2",a[t+"-z-3"]="3",a[t+"-z-4"]="4",a[t+"-z-5"]="5",e.mobileStepper&&(a[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(a[t+"-z-sticky"]=e.appBar+""),a[t+"-z-fixed"]="1030",e.modal&&(a[t+"-z-modal"]=e.modal+""),e.speedDial&&(a[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(a[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(a[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(a[t+"-z-snackbar"]=e.snackbar+""),a}(e.zIndex,i)),Object.assign(o,function(e,t){const a={};return Object.entries(e.values).forEach((([n,r])=>{a[`${t}-breakpoint-${n}`]=`${r}${e.unit}`})),a}(e.breakpoints,i)),Object.assign(o,function(e,t){const a={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([n,r])=>{const i=e(r),o=i.match(/([\d.]+)px/);if(o&&o[1]){const e=parseFloat(o[1])/16;a[`${t}-spacing-${n}`]=e+"rem"}else a[`${t}-spacing-${n}`]=i})),a}(e.spacing,i)),Object.assign(o,function(e,t){const a={};return a[t+"-border-width"]="1px",a[t+"-border-style"]="solid",!a[t+"-border-color"]&&e.text&&(a[t+"-border-color"]=di(e.text.primary,.1)),a}(e.palette,i)),Object.assign(o,function(e,t){const a={},n=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return a[t+"-border-radius"]=n(e.base,"0.5rem"),a[t+"-border-radius-sm"]=n(e.sm,"0.25rem"),a[t+"-border-radius-lg"]=n(e.lg,"0.625rem"),a[t+"-border-radius-xl"]=n(e.xl,"0.75rem"),a[t+"-border-radius-xxl"]=n(e.xxl,"1rem"),a[t+"-border-radius-2xl"]=n(e.xxl,"1rem"),a[t+"-border-radius-3xl"]=n(e["3xl"],"1.5rem"),a[t+"-border-radius-4xl"]=n(e["4xl"],"2rem"),a[t+"-border-radius-pill"]=n(e.pill,"50rem"),a}(e.borderRadius,i)),Object.assign(o,function(e,t){const a={};return a[t+"-focus-ring-width"]="3px",a[t+"-focus-ring-offset"]="2px",a[t+"-focus-ring-opacity"]="0.25",a}(e.palette,i)),e.custom&&Object.keys(e.custom).length>0){const t=mi(e.custom,i+"-custom");Object.assign(o,t)}const s=`${a} {\n${Object.entries(o).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return n&&Fr()&&fi(s,r),s}function fi(e,t="atomix-theme-variables"){if(!Fr())return;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,a.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(a)),a.textContent=e}function Si(e="atomix-theme-variables"){if(!Fr())return;const t=document.getElementById(e);t&&t.remove()}class bi{constructor(e={}){this.currentTheme=null,this.activeTheme=null,this.loadedThemes=new Set,this.loadingThemes=new Map,this.failedThemes=new Set,this.changeListeners=[],this.loadListeners=[],this.errorListeners=[],this.revertListeners=[],this.logger=$r(),this.registry=new ei,this.cache=new ai(e.cacheConfig),this.validator=new ui,this.config={basePath:e.basePath||kr,cdnPath:e.cdnPath??null,useMinified:e.useMinified??!1,dataAttribute:e.dataAttribute||Dr,enableCache:e.enableCache??!0,cacheConfig:e.cacheConfig??Pr,styleId:e.styleId||"atomix-js-theme-styles"}}async initialize(){await this.registry.initialize()}getCurrentTheme(){return this.currentTheme}getActiveTheme(){return this.activeTheme}isThemeLoaded(e){return this.loadedThemes.has(e)}async setTheme(e,t={}){const{force:a=!1,preload:n=!1,removePrevious:r=!0,fallbackOnError:i=!0}=t;if("string"!=typeof e){if(hi(e))return void await this.applyJSTheme(e,r);throw Error("Invalid theme object provided")}if(!this.registry.has(e)){const t=new Qr(`Theme "${e}" not found in registry`,Kr.THEME_NOT_FOUND,{themeId:e});if(this.failedThemes.add(e),this.emitError(t,e),i&&this.currentTheme)return void this.emitRevert({attemptedTheme:e,revertedToTheme:this.currentTheme,error:t,timestamp:Date.now()});throw t}if(!a&&this.failedThemes.has(e)){const t=new Qr(`Theme "${e}" previously failed to load. Use force: true to retry.`,Kr.THEME_LOAD_FAILED,{themeId:e,previouslyFailed:!0});if(this.emitError(t,e),i&&this.currentTheme)return;throw t}if(!a&&this.isThemeLoaded(e)&&!n)return void(this.currentTheme!==e&&await this.applyTheme(e,r));const o=this.loadingThemes.get(e);if(o)return await o,void(n||this.currentTheme===e||await this.applyTheme(e,r));const s=this.loadTheme(e,t);this.loadingThemes.set(e,s);try{await s,this.loadingThemes.delete(e),this.failedThemes.delete(e),n||await this.applyTheme(e,r)}catch(l){this.loadingThemes.delete(e);const t=l instanceof Error?l:Error(l+""),n=this.failedThemes.has(e);if(n&&!a||(this.failedThemes.add(e),n||this.emitError(t,e)),i&&this.currentTheme)return void(n||this.emitRevert({attemptedTheme:e,revertedToTheme:this.currentTheme,error:t,timestamp:Date.now()}));throw l}}async loadTheme(e,t){const a=this.registry.getDefinition(e);if(!a)throw Error("Theme definition not found: "+e);"css"===a.type?await this.loadCSSTheme(e,a,t):await this.loadJSTheme(e,a),this.loadedThemes.add(e),this.emitLoad(e)}async loadCSSTheme(e,t,a){if(this.config.enableCache){const t=this.cache.getCSS(e);if(t?.loaded)return}if(Vr())return;const n=a.customPath||"css"===t.type&&t.cssPath||`${this.config.basePath}/${e}${this.config.useMinified?".min":""}.css`,r=this.config.cdnPath||n;this.config.enableCache&&this.cache.setCSS(e,{loading:Promise.resolve(),loaded:!1});try{await((e,t)=>Vr()?Promise.resolve():new Promise(((a,n)=>{if(document.getElementById(t))return void a();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{a()},r.onerror=()=>{r.remove(),n(Error("Failed to load theme CSS: "+e))},document.head.appendChild(r)})))(r,Ei(e)),this.config.enableCache&&this.cache.setCSS(e,{loaded:!0,loading:null})}catch(i){throw this.config.enableCache&&this.cache.delete(e),i}}async loadJSTheme(e,t){if("js"!==t.type)return;if(this.config.enableCache){const t=this.cache.getJS(e);if(t)return void this.registry.setTheme(e,t.theme)}const a=t.createTheme();this.registry.get(e);const n=this.validator.validate(a,{...t,name:e});!n.valid&&n.errors.length>0&&this.logger.warn(`Theme validation errors for "${e}"`,{themeId:e,errors:n.errors,warnings:n.warnings}),this.config.enableCache&&this.cache.setJS(e,a),this.registry.setTheme(e,a)}async applyTheme(e,t){const a=this.currentTheme;t&&a&&a!==e&&await this.removeTheme(a);const n=this.registry.getDefinition(e);if(!n)throw Error("Theme definition not found: "+e);if("css"===n.type)await this.applyCSSTheme(e);else{const t=this.registry.getTheme(e);t&&await this.applyJSTheme(t,!1)}this.currentTheme=e,this.emitChange({previousTheme:a,currentTheme:e,themeObject:this.activeTheme,timestamp:Date.now(),source:"user"})}async applyCSSTheme(e){if(Vr())return;const t=this.registry.getDefinition(e),a=t?.class||e;Hr(this.config.dataAttribute,a),this.activeTheme=null}async applyJSTheme(e,t){if(Vr())return;t&&Si(this.config.styleId),fi(gi(e,{selector:":root",prefix:"atomix"}),this.config.styleId);const a=e.name||"js-theme";Hr(this.config.dataAttribute,a),this.activeTheme=e,this.currentTheme=a}async removeTheme(e){const t=this.registry.getDefinition(e);t&&("css"===t.type?Fr()&&(e=>{if(Vr())return;let t=document.getElementById(e);if(!t){const a="atomix-theme-"+e;t=document.getElementById(a)}t&&t.remove()})(Ei(e)):Fr()&&Si(this.config.styleId))}async preloadTheme(e){await this.setTheme(e,{preload:!0})}getRegistry(){return this.registry}getCache(){return this.cache}clearFailedThemes(){this.failedThemes.clear()}clearFailedTheme(e){this.failedThemes.delete(e)}hasFailedTheme(e){return this.failedThemes.has(e)}on(e,t){"change"===e?this.changeListeners.push(t):"load"===e?this.loadListeners.push(t):"error"===e?this.errorListeners.push(t):"revert"===e&&this.revertListeners.push(t)}off(e,t){"change"===e?this.changeListeners=this.changeListeners.filter((e=>e!==t)):"load"===e?this.loadListeners=this.loadListeners.filter((e=>e!==t)):"error"===e?this.errorListeners=this.errorListeners.filter((e=>e!==t)):"revert"===e&&(this.revertListeners=this.revertListeners.filter((e=>e!==t)))}emitChange(e){for(const a of this.changeListeners)try{a(e)}catch(t){this.logger.error("Error in theme change listener",t instanceof Error?t:Error(t+""),{event:e})}}emitLoad(e){for(const a of this.loadListeners)try{a(e)}catch(t){this.logger.error("Error in theme load listener",t instanceof Error?t:Error(t+""),{themeId:e})}}emitError(e,t){for(const n of this.errorListeners)try{n(e,t)}catch(a){this.logger.error("Error in theme error listener",a instanceof Error?a:Error(a+""),{themeId:t,originalError:e.message})}}emitRevert(e){for(const a of this.revertListeners)try{a(e)}catch(t){this.logger.error("Error in theme revert listener",t instanceof Error?t:Error(t+""),{event:e})}}}function Ei(e){return"atomix-theme-"+e}const vi=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Ai={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class Ni{constructor(e={}){this.listeners=new Set,this.config={...Ai,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&vi.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){return"undefined"==typeof navigator?"en":((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-")[0].toLowerCase()}isRTLLocale(e){return vi.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,a=document.body;t.setAttribute("dir",e),a?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),a?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(a){$r().error("Error in RTL direction change listener",a instanceof Error?a:Error(a+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}const Ti={basePath:kr,cdnPath:null,lazy:!0,storageKey:Mr,dataAttribute:Dr,enablePersistence:!0,useMinified:!1,preload:[]};class yi{constructor(e){this.currentTheme=null,this.activeTheme=null,this.eventListeners={themeChange:[],themeLoad:[],themeError:[]},this.initialized=!1,this.logger=$r(),this.config={...Ti,...e,themes:e.themes||{},defaultTheme:e.defaultTheme},this.storageAdapter={getItem:e=>{if(Vr())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!Vr())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!Vr())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(Vr())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}};const t={basePath:this.config.basePath,cdnPath:this.config.cdnPath,useMinified:this.config.useMinified,dataAttribute:this.config.dataAttribute,enableCache:!0};this.engine=new bi(t),e.rtl&&(this.rtlManager=new Ni(e.rtl)),this.engine.on("change",(e=>{this.currentTheme=e.currentTheme,this.activeTheme=e.themeObject||null,this.emitThemeChange(e)})),this.engine.on("load",(e=>{this.emitThemeLoad(e)})),this.engine.on("error",((e,t)=>{this.emitThemeError(e,t)})),this.initialize()}initialize(){this.initialized||Vr()||(this.engine.initialize().then((()=>{if(this.config.themes&&Object.keys(this.config.themes).length>0){const e=this.engine.getRegistry();for(const[t,a]of Object.entries(this.config.themes))e.has(t)||e.register(t,{type:"css",name:a.name,class:a.class||t,description:a.description,author:a.author,version:a.version,tags:a.tags,supportsDarkMode:a.supportsDarkMode,status:a.status,a11y:a.a11y,color:a.color,features:a.features,dependencies:a.dependencies})}const e=this.getDefaultTheme();if(e){const t="string"==typeof e?e:e.name||"";this.engine.getRegistry().has(t)?this.setTheme(e,{removePrevious:!1,fallbackOnError:!0}).catch((e=>{e instanceof Error&&!e.message.includes("previously failed")&&this.logger.warn(`Failed to load default theme "${t}"`,{themeId:t,error:e.message})})):this.logger.warn(`Default theme "${t}" not found in registry. Using built-in styles.`,{themeId:t})}})),this.initialized=!0)}getDefaultTheme(){if(this.config.enablePersistence&&this.storageAdapter.isAvailable()){const e=this.storageAdapter.getItem(this.config.storageKey);if(e)try{if(this.engine.getRegistry().has(e))return e}catch{}}return this.config.defaultTheme||null}async setTheme(e,t){if(await this.engine.setTheme(e,t),this.config.enablePersistence&&this.storageAdapter.isAvailable()){const t="string"==typeof e?e:e.name||"js-theme";this.storageAdapter.setItem(this.config.storageKey,t)}this.config.onThemeChange&&this.config.onThemeChange(e)}getTheme(){return this.currentTheme||("string"==typeof this.config.defaultTheme?this.config.defaultTheme:"")}getActiveTheme(){return this.activeTheme||this.engine.getActiveTheme()}getAvailableThemes(){return this.engine.getRegistry().getAllMetadata()}isThemeLoaded(e){return this.engine.isThemeLoaded(e)}async preloadTheme(e){await this.engine.preloadTheme(e)}on(e,t){"themeChange"===e?this.eventListeners.themeChange.push(t):"themeLoad"===e?this.eventListeners.themeLoad.push(t):"themeError"===e&&this.eventListeners.themeError.push(t)}off(e,t){"themeChange"===e?this.eventListeners.themeChange=this.eventListeners.themeChange.filter((e=>e!==t)):"themeLoad"===e?this.eventListeners.themeLoad=this.eventListeners.themeLoad.filter((e=>e!==t)):"themeError"===e&&(this.eventListeners.themeError=this.eventListeners.themeError.filter((e=>e!==t)))}emitThemeChange(e){for(const a of this.eventListeners.themeChange)try{a(e)}catch(t){this.logger.error("Error in theme change callback",t instanceof Error?t:Error(t+""),{event:e})}}emitThemeLoad(e){for(const a of this.eventListeners.themeLoad)try{a(e)}catch(t){this.logger.error("Error in theme load callback",t instanceof Error?t:Error(t+""),{themeName:e})}}emitThemeError(e,t){if(e instanceof Qr||new Qr(e.message,Kr.THEME_LOAD_FAILED,{themeName:t,originalError:e.message}),this.config.onError)try{this.config.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{themeName:t})}for(const n of this.eventListeners.themeError)try{n(e,t)}catch(a){this.logger.error("Error in theme error callback",a instanceof Error?a:Error(a+""),{themeName:t})}}getEngine(){return this.engine}getRTLManager(){return this.rtlManager}setDirection(e){this.rtlManager?.setDirection(e)}getDirection(){return this.rtlManager?.getDirection()||"ltr"}destroy(){this.eventListeners={themeChange:[],themeLoad:[],themeError:[]},this.rtlManager?.destroy(),this.initialized=!1}}const _i=g(null);_i.displayName="ThemeContext";const Ci=({children:t,defaultTheme:a,themes:n={},basePath:s="/themes",cdnPath:l=null,preload:c=[],lazy:u=!0,storageKey:m="atomix-theme",dataAttribute:p="data-theme",enablePersistence:g=!0,useMinified:f=!1,onThemeChange:S,onError:b})=>{const E=i(S),v=i(b);o((()=>{E.current=S,v.current=b}),[S,b]);const A=h((e=>{E.current?.(e)}),[]),N=h(((e,t)=>{v.current?.(e,t)}),[]),T=i(n),y=d((()=>{const e=Object.keys(n),t=Object.keys(T.current);return e.length!==t.length||e.some((e=>n[e]!==T.current[e]))?(T.current=n,n):T.current}),[n]),_=d((()=>$r()),[]),C=d((()=>{try{return new yi({themes:y,defaultTheme:a,basePath:s,cdnPath:l,preload:c,lazy:u,storageKey:m,dataAttribute:p,enablePersistence:g,useMinified:f,onThemeChange:A,onError:N})}catch(k){return _.error("Failed to create ThemeManager",k instanceof Error?k:Error(k+""),{themes:Object.keys(y),defaultTheme:a}),new yi({themes:{},defaultTheme:a,basePath:s,storageKey:m,enablePersistence:!1})}}),[y,a,s,l,c,u,m,p,g,f,A,N,_]),[L,x]=r((()=>"string"==typeof a?a:hi(a)?a.name||"js-theme":"")),[I,O]=r((()=>hi(a)?a:null)),[R,w]=r((()=>C.getAvailableThemes())),[M,D]=r(!1),[k,P]=r(null),B=i(),z=i(),U=i(),G=i(!1);o((()=>{let e=!0;B.current=()=>{e&&(x((e=>{const t=C.getTheme();return t===e?e:t})),O((e=>{const t=C.getActiveTheme();return t===e?e:t||e?t:e})),w((e=>{const t=C.getAvailableThemes();return t.length!==e.length||t.some(((t,a)=>t.name!==e[a]?.name||t.class!==e[a]?.class))?t:e})))},z.current=()=>{e&&(x((e=>{const t=C.getTheme();return t===e?e:t})),O((e=>{const t=C.getActiveTheme();return t===e?e:t||e?t:e})))},U.current=t=>{e&&(P(t),D(!1))};const t=()=>B.current?.(),a=()=>z.current?.(),n=e=>U.current?.(e);return G.current||(G.current=!0,x((e=>{const t=C.getTheme();return t!==e?t:e})),O((e=>{const t=C.getActiveTheme();return t!==e?t:e})),w((e=>{const t=C.getAvailableThemes();return t.length!==e.length||t.some(((t,a)=>t.name!==e[a]?.name||t.class!==e[a]?.class))?t:e}))),C.on("themeChange",t),C.on("themeLoad",a),C.on("themeError",n),()=>{e=!1,C.off("themeChange",t),C.off("themeLoad",a),C.off("themeError",n)}}),[C]),o((()=>()=>{C.destroy()}),[C]);const F=d((()=>({theme:L,activeTheme:I,setTheme:async(e,t)=>{D(!0),P(null);try{await C.setTheme(e,t)}catch(a){throw P(a instanceof Error?a:Error(a+"")),a}finally{D(!1)}},availableThemes:R,isLoading:M,error:k,isThemeLoaded:e=>C.isThemeLoaded(e),preloadTheme:async e=>{D(!0);try{await C.preloadTheme(e)}catch(t){P(t instanceof Error?t:Error(t+""))}finally{D(!1)}},themeManager:C})),[L,I,R,M,k,C]);return e(_i.Provider,{value:F,children:t})};function Li(){const e=f(_i);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTheme:e.activeTheme,setTheme:e.setTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}class xi{constructor(){this.theme={}}setName(e){return this.theme.name=e,this}setCSSVars(e){return this.theme.cssVars={...this.theme.cssVars,...e},this}addCSSVar(e,t){return this.theme.cssVars||(this.theme.cssVars={}),this.theme.cssVars[e]=t,this}setTypography(e){return this.theme.typography=e,this}setFontFamily(e){return this.theme.typography||(this.theme.typography={}),this.theme.typography.fontFamily=e,this}setFontSizes(e){return this.theme.typography||(this.theme.typography={}),this.theme.typography.fontSize=e,this}setFontWeights(e){return this.theme.typography||(this.theme.typography={}),this.theme.typography.fontWeight=e,this}setLineHeights(e){return this.theme.typography||(this.theme.typography={}),this.theme.typography.lineHeight=e,this}setSpacing(e){return this.theme.spacing=e,this}setPalette(e){return this.theme.palette=e,this}setColorScale(e,t){return this.theme.palette||(this.theme.palette={}),this.theme.palette[e]=t,this}overrideComponent(e,t){return this.theme.components||(this.theme.components={}),this.theme.components[e]=t,this}setComponentCSSVars(e,t){this.theme.components||(this.theme.components={}),this.theme.components[e]||(this.theme.components[e]={});const a=this.theme.components[e];return a.cssVars={...a.cssVars,...t},this}setComponentDefaultProps(e,t){this.theme.components||(this.theme.components={}),this.theme.components[e]||(this.theme.components[e]={});const a=this.theme.components[e];return a.defaultProps={...a.defaultProps,...t},this}setComponentPart(e,t,a){this.theme.components||(this.theme.components={}),this.theme.components[e]||(this.theme.components[e]={});const n=this.theme.components[e];return n.parts||(n.parts={}),n.parts[t]=a,this}setComponentVariant(e,t,a){this.theme.components||(this.theme.components={}),this.theme.components[e]||(this.theme.components[e]={});const n=this.theme.components[e];return n.variants||(n.variants={}),n.variants[t]=a,this}merge(e){return e.name&&(this.theme.name=e.name),e.cssVars&&(this.theme.cssVars={...this.theme.cssVars,...e.cssVars}),e.typography&&(this.theme.typography={...this.theme.typography,...e.typography,fontSize:{...this.theme.typography?.fontSize,...e.typography.fontSize},fontWeight:{...this.theme.typography?.fontWeight,...e.typography.fontWeight},lineHeight:{...this.theme.typography?.lineHeight,...e.typography.lineHeight}}),e.spacing&&(this.theme.spacing={...this.theme.spacing,...e.spacing}),e.palette&&(this.theme.palette={...this.theme.palette,...e.palette}),e.components&&(this.theme.components={...this.theme.components,...e.components}),this}clone(){const e=new xi;return e.theme=JSON.parse(JSON.stringify(this.theme)),e}build(){if(!this.theme.name)throw Error("Theme name is required. Use setName() to set it.");return this.theme}buildPartial(){return{...this.theme}}reset(){return this.theme={},this}getTheme(){return{...this.theme}}}function Ii(){return new xi}class Oi{constructor(e=document.documentElement){this.appliedVars=new Set,this.root=e}applyTheme(e){this.clearAppliedVars(),e.cssVars&&this.applyGlobalCSSVars(e.cssVars),e.typography&&this.applyTypography(e.typography),e.spacing&&this.applySpacing(e.spacing),e.palette&&this.applyPalette(e.palette),e.components&&this.applyComponentOverrides(e.components)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+""),this.appliedVars.add(e)}))}applyTypography(e){if(!e)return;const t={};e.fontFamily&&(t["--atomix-font-family"]=e.fontFamily),e.fontSize&&Object.entries(e.fontSize).forEach((([e,a])=>{t["--atomix-font-size-"+e]=a})),e.fontWeight&&Object.entries(e.fontWeight).forEach((([e,a])=>{t["--atomix-font-weight-"+e]=a})),e.lineHeight&&Object.entries(e.lineHeight).forEach((([e,a])=>{t["--atomix-line-height-"+e]=a})),this.applyGlobalCSSVars(t)}applySpacing(e){const t={};Object.entries(e).forEach((([e,a])=>{t["--atomix-space-"+e]=a})),this.applyGlobalCSSVars(t)}applyPalette(e){if(!e)return;const t={};Object.entries(e).forEach((([e,a])=>{a&&Object.entries(a).forEach((([a,n])=>{n&&(t[`--atomix-color-${e}-${a}`]=n)}))})),this.applyGlobalCSSVars(t)}applyComponentOverrides(e){Object.entries(e).forEach((([e,t])=>{t&&this.applyComponentOverride(e,t)}))}applyComponentOverride(e,t){const a={},n=e.toLowerCase();t.cssVars&&Object.entries(t.cssVars).forEach((([e,t])=>{const r=e.startsWith("--")?e:`--atomix-${n}-${e}`;a[r]=t})),t.parts&&Object.entries(t.parts).forEach((([e,t])=>{t.cssVars&&Object.entries(t.cssVars).forEach((([t,r])=>{const i=t.startsWith("--")?t:`--atomix-${n}-${e}-${t}`;a[i]=r}))})),t.variants&&Object.entries(t.variants).forEach((([e,t])=>{t.cssVars&&Object.entries(t.cssVars).forEach((([t,r])=>{const i=t.startsWith("--")?t:`--atomix-${n}-${e}-${t}`;a[i]=r}))})),this.applyGlobalCSSVars(a)}clearAppliedVars(){Za(Array.from(this.appliedVars),this.root),this.appliedVars.clear()}getAppliedVars(){return Array.from(this.appliedVars)}removeTheme(){this.clearAppliedVars()}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let Ri=null;function wi(){return Ri||(Ri=new Oi),Ri}function Mi(e){wi().applyTheme(e)}function Di(){wi().removeTheme()}const ki={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},Pi={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},Bi={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},zi={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},Ui={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},Gi={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},Fi={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},Vi={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},Hi={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},Yi={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},Wi={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},Ki={Button:ki,Card:Pi,Input:Bi,Modal:zi,Dropdown:Ui,Badge:Gi,Tabs:Fi,Progress:Vi,Tooltip:Hi,Checkbox:Yi,Radio:Wi};function ji(e){return Ki[e]}function Qi(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function qi(t,a,r){if(!t)return r;if(n.isValidElement(t)||"string"==typeof t||"number"==typeof t)return t;if("object"==typeof t&&null!==t){const n=t;if(n.render&&"function"==typeof n.render)return n.render(a);if(n.component){const t=n.component;return e(t,{...a})}if(void 0!==n.children)return n.children}return r}function Zi(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)}function $i(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:t.reduce(((e,t)=>({...e,...t})))}function Xi(t="div"){return function({slot:n,children:r,...i}){const o=i;return n?e(a,{children:qi(n,o,r)}):e(t,"string"==typeof t?{...i,children:r}:{...o,children:r})}}function Ji(e){return e}function eo(e,t,a){return n.useMemo((()=>qi(e,t,a)),[e,t,a])}function to(e,t){const{theme:a}=Li(),n=d((()=>Ja(a?.components?.[e]?.cssVars||{},t.cssVars||{})),[a,e,t.cssVars]),r=d((()=>{const n=a?.components?.[e]?.parts||{},r=t.parts||{},i={};return new Set([...Object.keys(n),...Object.keys(r)]).forEach((e=>{i[e]=Qi(n[e],r[e])})),i}),[a,e,t.parts]),i=d((()=>[a?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[a,e,t.className]),o=d((()=>({...t.style})),[t.style]),s=d((()=>Object.entries(n).reduce(((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{})),[n]);return{cssVars:n,parts:r,className:i,style:o,cssVarStyle:s}}function ao(e){const{theme:t}=Li();return d((()=>t?.components?.[e]?.defaultProps||{}),[t,e])}function no(e,t){return d((()=>({...e,...t})),[e,t])}function ro(e,t){return{...Object.entries(e).reduce(((e,[t,a])=>(e[t]="number"==typeof a?a+"px":a,e)),{}),...t}}const io=_n,oo=mn,so=Rr,lo=wr,co=Object.freeze({__proto__:null,ThemeApplicator:Oi,ThemeBuilder:xi,ThemeContext:_i,ThemeProvider:Ci,applyCSSVariables:qa,applyTheme:Mi,createTheme:function(e){const t=new xi;return t.setName(e.name),e.cssVars&&t.setCSSVars(e.cssVars),e.typography&&t.setTypography(e.typography),e.spacing&&t.setSpacing(e.spacing),e.palette&&t.setPalette(e.palette),e.components&&Object.entries(e.components).forEach((([e,a])=>{t.overrideComponent(e,a)})),t.build()},createThemeBuilder:Ii,cssVarsToStyle:Xa,extendTheme:function(e){const t=new xi;return t.merge(e),t},extractComponentName:tn,generateCSSVariableName:Ka,generateComponentCSSVars:ja,getCSSVariable:$a,getThemeApplicator:wi,isValidCSSVariableName:en,mapSCSSTokensToCSSVars:Qa,mergeCSSVars:Ja,removeCSSVariables:Za,removeTheme:Di,useTheme:Li});function ho(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function uo(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...a]=e,n={...t};for(const r of a)if(r)for(const e in r){if(!r.hasOwnProperty(e))continue;const t=n[e],a=r[e];ho(t)&&ho(a)?n[e]=uo(t,a):n[e]=a}return n}function mo(...e){return uo({},...e)}const po={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},go={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},fo={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},So={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},bo={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},Eo={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function vo(e){return"string"==typeof e?{main:e,light:li(e),dark:ci(e),contrastText:si(e)}:{main:e.main||"#000000",light:e.light||li(e.main||"#000000"),dark:e.dark||ci(e.main||"#000000"),contrastText:e.contrastText||si(e.main||"#000000")}}function Ao(...e){const t=e.reduce(((e,t)=>uo(e,t)),{}),a={primary:vo(t.palette?.primary||po.primary),secondary:vo(t.palette?.secondary||po.secondary),error:vo(t.palette?.error||po.error),warning:vo(t.palette?.warning||po.warning),info:vo(t.palette?.info||po.info),success:vo(t.palette?.success||po.success),...t.palette?.light&&{light:vo(t.palette.light)},...t.palette?.dark&&{dark:vo(t.palette.dark)},background:{default:t.palette?.background?.default||po.background.default,paper:t.palette?.background?.paper||po.background.paper,subtle:t.palette?.background?.subtle||po.background.subtle},text:{primary:t.palette?.text?.primary||po.text.primary,secondary:t.palette?.text?.secondary||po.text.secondary,disabled:t.palette?.text?.disabled||po.text.disabled}},n=uo({...go},t.typography||{}),r=function(e=4){return"function"==typeof e?e:"number"==typeof e?(...t)=>0===t.length?"0px":t.map((t=>t*e+"px")).join(" "):Array.isArray(e)?(...t)=>0===t.length?"0px":t.map((t=>(e[t]||t)+"px")).join(" "):(...e)=>0===e.length?"0px":e.map((e=>4*e+"px")).join(" ")}(t.spacing),i=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},a=e?.unit||"px";return{values:t,unit:a,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${a})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${a})`,between:(e,n)=>{const r="number"==typeof e?e:t[e]??0,i="number"==typeof n?n:t[n]??0;return`@media (min-width:${r}${a}) and (max-width:${i-.05}${a})`}}}(t.breakpoints),o=uo({...fo},t.shadows||{}),s=uo({...So},t.transitions||{}),l=uo({...bo},t.zIndex||{}),c=uo({...Eo},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||a.primary.main,features:t.features,dependencies:t.dependencies,palette:a,typography:n,spacing:r,breakpoints:i,shadows:o,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}class No{constructor(e){this.overrides={},this.theme=null,e&&(this.theme=e)}setTheme(e){this.theme=e}getThemeWithOverrides(){return this.theme?this.applyOverrides(this.theme):null}addOverride(e,t,a={}){const{merge:n=!0}=a;n&&this.overrides[e]?this.overrides[e]={...this.overrides[e],...t,styleOverrides:{...this.overrides[e].styleOverrides,...t.styleOverrides},defaultProps:{...this.overrides[e].defaultProps,...t.defaultProps},classOverrides:{...this.overrides[e].classOverrides,...t.classOverrides},cssVariableOverrides:{...this.overrides[e].cssVariableOverrides,...t.cssVariableOverrides}}:this.overrides[e]={component:e,...t}}removeOverride(e){delete this.overrides[e]}getOverride(e){return this.overrides[e]}getAllOverrides(){return{...this.overrides}}clearOverrides(){this.overrides={}}applyOverrides(e){return 0===Object.keys(this.overrides).length?e:Ao({...e,custom:{...e.custom,componentOverrides:this.overrides}})}getComponentCSSVariables(e){const t=this.overrides[e];if(!t||!t.cssVariableOverrides)return{};const a={};for(const[n,r]of Object.entries(t.cssVariableOverrides))a[`--atomix-${e}-${n}`]=r;return a}getAllCSSVariables(){const e={};for(const t of Object.keys(this.overrides)){const a=this.getComponentCSSVariables(t);Object.assign(e,a)}return e}exportOverrides(){return JSON.stringify(this.overrides,null,2)}importOverrides(e,t={}){try{const a=JSON.parse(e),{merge:n=!1}=t;this.overrides=n?uo(this.overrides,a):a}catch(a){throw Error("Failed to import overrides: "+(a instanceof Error?a.message:a+""))}}}class To{constructor(e){this.config=null,this.baseTheme=null,e&&(this.baseTheme=e)}setBaseTheme(e){this.baseTheme=e}configure(e){this.config=e,this.applyWhiteLabel()}getWhiteLabeledTheme(){return this.baseTheme&&this.config?Ao({...this.baseTheme,name:this.config.brand.name,...this.config.themeOverrides,palette:{...this.baseTheme.palette,...this.config.brand.primaryColor&&{primary:{...this.baseTheme.palette.primary,main:this.config.brand.primaryColor}},...this.config.brand.secondaryColor&&{secondary:{...this.baseTheme.palette.secondary,main:this.config.brand.secondaryColor}},...this.config.themeOverrides?.palette},typography:{...this.baseTheme.typography,...this.config.brand.fonts?.primary&&{fontFamily:this.config.brand.fonts.primary},...this.config.themeOverrides?.typography},custom:{...this.baseTheme.custom,whiteLabel:{brand:this.config.brand,componentOverrides:this.config.componentOverrides,cssVariableOverrides:this.config.cssVariableOverrides}}}):this.baseTheme}applyWhiteLabel(){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const{brand:e}=this.config;e.logo&&this.applyLogo(e.logo),e.favicon&&this.applyFavicon(e.favicon),e.metaTags&&this.applyMetaTags(e.metaTags),e.customCSS&&this.applyCustomCSS(e.customCSS),this.config.cssVariableOverrides&&this.applyCSSVariables(this.config.cssVariableOverrides)}applyLogo(e,t,a){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;let n=a||(t?document.querySelector(t):null);if(n||(n=document.querySelector("[data-whitelabel-logo]")),!n){n=document.createElement("img"),n.setAttribute("data-whitelabel-logo","true"),n.style.maxHeight="40px",n.style.maxWidth="200px";const e=t?document.querySelector(t):document.querySelector('header, [role="banner"], .navbar, .header');e?e.insertBefore(n,e.firstChild):document.body.insertBefore(n,document.body.firstChild)}n.src=e,n.alt=this.config?.brand.name||"Logo"}applyFavicon(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]').forEach((e=>e.remove()));const a=document.createElement("link");a.rel="icon",a.type="image/x-icon",a.href=e;const n=t?document.querySelector(t):document.head;n&&n.appendChild(a)}applyMetaTags(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const a=t?document.querySelector(t):document.head;if(a)for(const[n,r]of Object.entries(e)){let e=document.querySelector(`meta[name="${n}"]`);e||(e=document.createElement("meta"),e.name=n,a.appendChild(e)),e.content=r}}applyCustomCSS(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;const a=t||"whitelabel-custom-css",n=document.getElementById(a);n&&n.remove();const r=document.createElement("style");r.id=a,r.textContent=e,document.head.appendChild(r)}applyCSSVariables(e,t){if(!this.config?.enableDOMOperations||"undefined"==typeof document)return;let a;if("string"==typeof t){const e=document.querySelector(t);if(!(e&&e instanceof HTMLElement))return;a=e}else a=t instanceof HTMLElement?t:document.documentElement;for(const[n,r]of Object.entries(e))a.style.setProperty(n.startsWith("--")?n:"--"+n,r)}removeWhiteLabel(){const e=document.querySelector("[data-whitelabel-logo]");e?.remove();const t=document.getElementById("whitelabel-custom-css");if(t?.remove(),this.config?.cssVariableOverrides){const e=document.documentElement;for(const t of Object.keys(this.config.cssVariableOverrides))e.style.removeProperty(t.startsWith("--")?t:"--"+t)}this.config=null}getConfig(){return this.config}exportConfig(){if(!this.config)throw Error("No white label configuration to export");return JSON.stringify(this.config,null,2)}importConfig(e){try{const t=JSON.parse(e);this.configure(t)}catch(t){throw Error("Failed to import white label configuration: "+(t instanceof Error?t.message:t+""))}}}const yo={enabled:!0,trackPerformance:!0,trackErrors:!0,bufferSize:100,flushInterval:5e3};class _o{constructor(e={}){this.events=[],this.metrics=[],this.flushTimer=null,this.logger=$r(),this.config={...yo,...e},this.config.enabled&&this.startFlushTimer()}trackThemeLoad(e,t){if(!this.config.enabled)return;const a={type:"theme_load",timestamp:Date.now(),themeName:e,data:t?{loadTime:t}:void 0};this.addEvent(a),void 0!==t&&this.trackPerformance("theme_load_time",t,"ms")}trackThemeSwitch(e,t,a){if(!this.config.enabled)return;const n={type:"theme_switch",timestamp:Date.now(),themeName:t,data:{fromTheme:e,toTheme:t,...a?{switchTime:a}:{}}};this.addEvent(n),void 0!==a&&this.trackPerformance("theme_switch_time",a,"ms")}trackError(e,t){if(!this.config.enabled||!this.config.trackErrors)return;const a={type:"theme_error",timestamp:Date.now(),themeName:e,data:{error:t instanceof Error?t.message:t,stack:t instanceof Error?t.stack:void 0}};this.addEvent(a)}trackThemeRevert(e,t,a){if(!this.config.enabled||!this.config.trackErrors)return;const n={type:"theme_revert",timestamp:Date.now(),themeName:e,data:{attemptedTheme:e,revertedToTheme:t,error:a.message,stack:a.stack}};this.addEvent(n)}trackCSSLoad(e,t,a){if(!this.config.enabled)return;const n={type:"css_load",timestamp:Date.now(),themeName:e,data:{loadTime:t,...a?{size:a}:{}}};this.addEvent(n),this.trackPerformance("css_load_time",t,"ms"),void 0!==a&&this.trackPerformance("css_size",a,"bytes")}trackPerformance(e,t,a="ms"){if(!this.config.enabled||!this.config.trackPerformance)return;const n={name:e,value:t,unit:a,timestamp:Date.now()};if(this.metrics.push(n),this.metrics.length>this.config.bufferSize&&this.metrics.shift(),this.config.onPerformance)try{this.config.onPerformance(n)}catch(r){this.logger.error("Error in performance handler",r instanceof Error?r:Error(r+""),{metric:n})}}addEvent(e){if(this.events.push(e),this.events.length>this.config.bufferSize&&this.events.shift(),this.config.onEvent)try{this.config.onEvent(e)}catch(t){this.logger.error("Error in event handler",t instanceof Error?t:Error(t+""),{event:e})}}getEvents(){return[...this.events]}getMetrics(){return[...this.metrics]}getEventsByType(e){return this.events.filter((t=>t.type===e))}getMetricsByName(e){return this.metrics.filter((t=>t.name===e))}getAverageMetric(e){const t=this.getMetricsByName(e);return 0===t.length?null:t.reduce(((e,t)=>e+t.value),0)/t.length}clear(){this.events=[],this.metrics=[]}startFlushTimer(){this.flushTimer||(this.flushTimer=setInterval((()=>{}),this.config.flushInterval))}stopFlushTimer(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null)}enable(){this.config.enabled=!0,this.startFlushTimer()}disable(){this.config.enabled=!1,this.stopFlushTimer()}destroy(){this.stopFlushTimer(),this.clear()}}function Co(e,t,a){return Ao({name:e,palette:{primary:{main:t},secondary:a?{main:a}:void 0}})}function Lo(e){return function(e,t){const a=e.__isJSTheme?function(e){return{name:e.name,class:e.class,description:e.description,author:e.author,version:e.version,tags:e.tags,supportsDarkMode:e.supportsDarkMode,status:e.status,a11y:e.a11y,color:e.color,features:e.features,dependencies:e.dependencies,palette:{primary:e.palette.primary,secondary:e.palette.secondary,error:e.palette.error,warning:e.palette.warning,info:e.palette.info,success:e.palette.success,background:e.palette.background,text:e.palette.text},typography:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,fontWeightLight:e.typography.fontWeightLight,fontWeightRegular:e.typography.fontWeightRegular,fontWeightMedium:e.typography.fontWeightMedium,fontWeightSemiBold:e.typography.fontWeightSemiBold,fontWeightBold:e.typography.fontWeightBold,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,body1:e.typography.body1,body2:e.typography.body2},shadows:e.shadows,transitions:e.transitions,zIndex:e.zIndex,custom:e.custom}}(e):e;return Ao(mo(a,t))}(e,{name:e.name+" Dark",palette:{mode:"dark",background:{default:"#121212",paper:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)"}}})}function xo(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}}function Io(e,t=":root"){return gi(e,{selector:t,prefix:"atomix"})}function Oo(e,t){const a=new No(e);Object.entries(t).forEach((([e,t])=>{a.addOverride(e,t)}));const n=a.getThemeWithOverrides();if(!n)throw Error("Failed to get theme with overrides: theme was not set");return n}function Ro(e,t){const a=new To(e);a.configure({brand:{name:t.name,primaryColor:t.primaryColor,logo:t.logo},themeOverrides:{palette:{primary:{main:t.primaryColor}}}});const n=a.getWhiteLabeledTheme();if(!n)throw Error("Failed to get white labeled theme: theme was not set");return n}function wo(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}}function Mo(e){return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!e.a11y?.modes?.includes("dark")}function Do(e){return JSON.stringify(e,null,2)}function ko(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}}const Po={...Or,...Pn,composables:io,utils:oo,constants:lo,types:so};export{P as ACCORDION,Re as ATOMIX_GLASS,ge as AVATAR,fe as AVATAR_GROUP,Je as Accordion,Yt as AnimatedChart,Kt as AreaChart,Xe as AtomixGlass,et as AtomixLogo,bt as Avatar,Et as AvatarGroup,B as BADGE,Gi as BADGE_CSS_VARS,xe as BLOCK,G as BREADCRUMB,D as BUTTON,ki as BUTTON_CSS_VARS,At as Badge,Qt as BarChart,yt as Block,_t as Breadcrumb,qt as BubbleChart,It as Button,k as CALLOUT,ue as CARD,Pi as CARD_CSS_VARS,Ce as CHART,Yi as CHECKBOX_CSS_VARS,M as CLASS_PREFIX,Le as CODE_SNIPPET,Ki as COMPONENT_CSS_VARS,F as COUNTDOWN,Ot as Callout,Zt as CandlestickChart,Rt as Card,Gt as Chart,Vt as ChartRenderer,Ra as Checkbox,ua as ColorModeToggle,No as ComponentOverrideManager,Nt as Container,ma as Countdown,re as DATA_TABLE_CLASSES,ie as DATA_TABLE_SELECTORS,Ae as DATEPICKER,ga as DOTS,Ee as DROPDOWN,Ui as DROPDOWN_CSS_VARS,va as DataTable,_a as DatePicker,$t as DonutChart,La as Dropdown,ne as EDGE_PANEL,Ia as EdgePanel,Pt as ElevationCard,Oe as FOOTER,le as FORM,ce as FORM_GROUP,Mn as Footer,zn as FooterLink,Bn as FooterSection,In as FooterSocialLink,Ma as Form,ka as FormGroup,Xt as FunnelChart,Ie as GLASS_CONTAINER,Jt as GaugeChart,On as Grid,Rn as GridCol,V as HERO,ta as HeatmapChart,Un as Hero,de as INPUT,Bi as INPUT_CSS_VARS,St as Icon,Ba as Input,z as LIST,U as LIST_GROUP,na as LineChart,Gn as List,Fn as ListGroup,be as MESSAGES,Se as MODAL,zi as MODAL_CSS_VARS,Dn as MasonryGrid,kn as MasonryGridItem,rr as MegaMenu,ir as MegaMenuColumn,or as MegaMenuLink,er as Menu,nr as MenuDivider,tr as MenuItem,Vn as Messages,Hn as Modal,ra as MultiAxisChart,ee as NAV,J as NAVBAR,Yn as Nav,sr as NavDropdown,Wn as NavItem,Kn as Navbar,oe as PAGINATION_DEFAULTS,Te as PHOTOVIEWER,Y as POPOVER,ve as PROGRESS,Vi as PROGRESS_CSS_VARS,Ea as Pagination,mr as PhotoViewer,oa as PieChart,gr as Popover,Sr as ProductReview,br as Progress,he as RADIO,Wi as RADIO_CSS_VARS,ae as RATING,$ as RIVER,Ni as RTLManager,sa as RadarChart,Ln as Radio,fr as Rating,Er as River,wn as Row,Z as SECTION_INTRO,me as SELECT,te as SIDE_MENU,w as SIZES,_e as SLIDER,q as SPINNER,j as STEPS,la as ScatterChart,vr as SectionIntro,Cn as Select,Jn as SideMenu,Zn as SideMenuItem,qn as SideMenuList,Ar as Slider,xt as Spinner,Nr as Steps,K as TAB,Fi as TABS_CSS_VARS,Q as TESTIMONIAL,pe as TEXTAREA,R as THEME_COLORS,se as TODO,W as TOGGLE,H as TOOLTIP,Hi as TOOLTIP_CSS_VARS,Tr as Tabs,yr as Testimonial,xn as Textarea,_o as ThemeAnalytics,Oi as ThemeApplicator,xi as ThemeBuilder,_i as ThemeContext,Ci as ThemeProvider,_r as Todo,Cr as Toggle,Lr as Tooltip,ca as TreemapChart,X as UPLOAD,xr as Upload,Ne as VIDEO_PLAYER,Ir as VideoPlayer,da as WaterfallChart,To as WhiteLabelManager,qa as applyCSSVariables,ro as applyCSSVarsToStyle,Oo as applyOverrides,Mi as applyTheme,Ro as applyWhiteLabel,io as composables,lo as constants,nn as createCSSVarStyle,Lo as createDarkVariant,cn as createDebugAttrs,sn as createPartProps,Xi as createSlotComponent,Ji as createSlotProps,Ii as createThemeBuilder,Xa as cssVarsToStyle,Po as default,Do as exportTheme,tn as extractComponentName,un as extractYouTubeId,Ka as generateCSSVariableName,gi as generateCSSVariables,ja as generateComponentCSSVars,dn as generateUUID,$a as getCSSVariable,ji as getComponentCSSVars,on as getPartStyles,wi as getThemeApplicator,wo as getThemeMetadata,ln as hasCustomization,ko as importTheme,Zi as isSlot,en as isValidCSSVariableName,hn as isYouTubeUrl,Qa as mapSCSSTokensToCSSVars,Ja as mergeCSSVars,rn as mergeComponentProps,Qi as mergePartStyles,$i as mergeSlots,mo as mergeTheme,Co as quickTheme,Za as removeCSSVariables,Di as removeTheme,qi as renderSlot,ye as sliderConstants,Mo as supportsDarkMode,co as theme,Io as themeToCSS,so as types,we as useAccordion,$e as useAtomixGlass,vt as useBadge,jt as useBarChart,Tt as useBlock,En as useBreadcrumb,Ct as useButton,kt as useCard,Nn as useChartData,yn as useChartInteraction,Tn as useChartScale,Oa as useCheckbox,to as useComponentCustomization,ao as useComponentDefaultProps,pa as useDataTable,xa as useEdgePanel,wa as useForm,Da as useFormGroup,gn as useGlassContainer,za as useHero,Pa as useInput,aa as useLineChart,no as useMergedProps,vn as useModal,Fa as useNav,Ha as useNavDropdown,Va as useNavItem,Ga as useNavbar,Sa as usePagination,ia as usePieChart,fn as useRadio,Ua as useRiver,Sn as useSelect,Ya as useSideMenu,Wa as useSideMenuItem,An as useSlider,eo as useSlot,Lt as useSpinner,bn as useTextarea,Li as useTheme,pn as useTodo,oo as utils,xo as validateTheme};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|