@qwickapps/server 1.3.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +157 -0
- package/dist/core/control-panel.d.ts.map +1 -1
- package/dist/core/control-panel.js +114 -0
- package/dist/core/control-panel.js.map +1 -1
- package/dist/core/types.d.ts +19 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/plugins/auth/adapter-wrapper.d.ts +47 -0
- package/dist/plugins/auth/adapter-wrapper.d.ts.map +1 -0
- package/dist/plugins/auth/adapter-wrapper.js +166 -0
- package/dist/plugins/auth/adapter-wrapper.js.map +1 -0
- package/dist/plugins/auth/adapter-wrapper.test.d.ts +7 -0
- package/dist/plugins/auth/adapter-wrapper.test.d.ts.map +1 -0
- package/dist/plugins/auth/adapter-wrapper.test.js +303 -0
- package/dist/plugins/auth/adapter-wrapper.test.js.map +1 -0
- package/dist/plugins/auth/config-store.d.ts +11 -0
- package/dist/plugins/auth/config-store.d.ts.map +1 -0
- package/dist/plugins/auth/config-store.js +232 -0
- package/dist/plugins/auth/config-store.js.map +1 -0
- package/dist/plugins/auth/config-store.test.d.ts +7 -0
- package/dist/plugins/auth/config-store.test.d.ts.map +1 -0
- package/dist/plugins/auth/config-store.test.js +299 -0
- package/dist/plugins/auth/config-store.test.js.map +1 -0
- package/dist/plugins/auth/env-config.d.ts +51 -1
- package/dist/plugins/auth/env-config.d.ts.map +1 -1
- package/dist/plugins/auth/env-config.js +640 -7
- package/dist/plugins/auth/env-config.js.map +1 -1
- package/dist/plugins/auth/index.d.ts +6 -2
- package/dist/plugins/auth/index.d.ts.map +1 -1
- package/dist/plugins/auth/index.js +5 -1
- package/dist/plugins/auth/index.js.map +1 -1
- package/dist/plugins/auth/types.d.ts +106 -0
- package/dist/plugins/auth/types.d.ts.map +1 -1
- package/dist/plugins/bans/bans-plugin.d.ts.map +1 -1
- package/dist/plugins/bans/bans-plugin.js +12 -3
- package/dist/plugins/bans/bans-plugin.js.map +1 -1
- package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts +11 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts.map +1 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.js +410 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.js.map +1 -0
- package/dist/plugins/devices/__tests__/token-utils.test.d.ts +7 -0
- package/dist/plugins/devices/__tests__/token-utils.test.d.ts.map +1 -0
- package/dist/plugins/devices/__tests__/token-utils.test.js +197 -0
- package/dist/plugins/devices/__tests__/token-utils.test.js.map +1 -0
- package/dist/plugins/devices/adapters/compute-adapter.d.ts +36 -0
- package/dist/plugins/devices/adapters/compute-adapter.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/compute-adapter.js +100 -0
- package/dist/plugins/devices/adapters/compute-adapter.js.map +1 -0
- package/dist/plugins/devices/adapters/index.d.ts +12 -0
- package/dist/plugins/devices/adapters/index.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/index.js +10 -0
- package/dist/plugins/devices/adapters/index.js.map +1 -0
- package/dist/plugins/devices/adapters/mobile-adapter.d.ts +41 -0
- package/dist/plugins/devices/adapters/mobile-adapter.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/mobile-adapter.js +131 -0
- package/dist/plugins/devices/adapters/mobile-adapter.js.map +1 -0
- package/dist/plugins/devices/devices-plugin.d.ts +70 -0
- package/dist/plugins/devices/devices-plugin.d.ts.map +1 -0
- package/dist/plugins/devices/devices-plugin.js +453 -0
- package/dist/plugins/devices/devices-plugin.js.map +1 -0
- package/dist/plugins/devices/index.d.ts +18 -0
- package/dist/plugins/devices/index.d.ts.map +1 -0
- package/dist/plugins/devices/index.js +18 -0
- package/dist/plugins/devices/index.js.map +1 -0
- package/dist/plugins/devices/stores/index.d.ts +9 -0
- package/dist/plugins/devices/stores/index.d.ts.map +1 -0
- package/dist/plugins/devices/stores/index.js +9 -0
- package/dist/plugins/devices/stores/index.js.map +1 -0
- package/dist/plugins/devices/stores/postgres-store.d.ts +26 -0
- package/dist/plugins/devices/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/devices/stores/postgres-store.js +199 -0
- package/dist/plugins/devices/stores/postgres-store.js.map +1 -0
- package/dist/plugins/devices/token-utils.d.ts +100 -0
- package/dist/plugins/devices/token-utils.d.ts.map +1 -0
- package/dist/plugins/devices/token-utils.js +162 -0
- package/dist/plugins/devices/token-utils.js.map +1 -0
- package/dist/plugins/devices/types.d.ts +307 -0
- package/dist/plugins/devices/types.d.ts.map +1 -0
- package/dist/plugins/devices/types.js +10 -0
- package/dist/plugins/devices/types.js.map +1 -0
- package/dist/plugins/index.d.ts +18 -4
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +16 -2
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts +5 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts.map +1 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.js +470 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.js.map +1 -0
- package/dist/plugins/notifications/index.d.ts +71 -0
- package/dist/plugins/notifications/index.d.ts.map +1 -0
- package/dist/plugins/notifications/index.js +72 -0
- package/dist/plugins/notifications/index.js.map +1 -0
- package/dist/plugins/notifications/notifications-manager.d.ts +182 -0
- package/dist/plugins/notifications/notifications-manager.d.ts.map +1 -0
- package/dist/plugins/notifications/notifications-manager.js +610 -0
- package/dist/plugins/notifications/notifications-manager.js.map +1 -0
- package/dist/plugins/notifications/notifications-plugin.d.ts +83 -0
- package/dist/plugins/notifications/notifications-plugin.d.ts.map +1 -0
- package/dist/plugins/notifications/notifications-plugin.js +337 -0
- package/dist/plugins/notifications/notifications-plugin.js.map +1 -0
- package/dist/plugins/notifications/types.d.ts +164 -0
- package/dist/plugins/notifications/types.d.ts.map +1 -0
- package/dist/plugins/notifications/types.js +9 -0
- package/dist/plugins/notifications/types.js.map +1 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts +12 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts.map +1 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.js +349 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.js.map +1 -0
- package/dist/plugins/parental/adapters/index.d.ts +8 -0
- package/dist/plugins/parental/adapters/index.d.ts.map +1 -0
- package/dist/plugins/parental/adapters/index.js +7 -0
- package/dist/plugins/parental/adapters/index.js.map +1 -0
- package/dist/plugins/parental/adapters/kids-adapter.d.ts +24 -0
- package/dist/plugins/parental/adapters/kids-adapter.d.ts.map +1 -0
- package/dist/plugins/parental/adapters/kids-adapter.js +174 -0
- package/dist/plugins/parental/adapters/kids-adapter.js.map +1 -0
- package/dist/plugins/parental/index.d.ts +14 -0
- package/dist/plugins/parental/index.d.ts.map +1 -0
- package/dist/plugins/parental/index.js +15 -0
- package/dist/plugins/parental/index.js.map +1 -0
- package/dist/plugins/parental/parental-plugin.d.ts +88 -0
- package/dist/plugins/parental/parental-plugin.d.ts.map +1 -0
- package/dist/plugins/parental/parental-plugin.js +666 -0
- package/dist/plugins/parental/parental-plugin.js.map +1 -0
- package/dist/plugins/parental/stores/index.d.ts +7 -0
- package/dist/plugins/parental/stores/index.d.ts.map +1 -0
- package/dist/plugins/parental/stores/index.js +7 -0
- package/dist/plugins/parental/stores/index.js.map +1 -0
- package/dist/plugins/parental/stores/postgres-store.d.ts +10 -0
- package/dist/plugins/parental/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/parental/stores/postgres-store.js +209 -0
- package/dist/plugins/parental/stores/postgres-store.js.map +1 -0
- package/dist/plugins/parental/types.d.ts +154 -0
- package/dist/plugins/parental/types.d.ts.map +1 -0
- package/dist/plugins/parental/types.js +10 -0
- package/dist/plugins/parental/types.js.map +1 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts +11 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts.map +1 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.js +243 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.js.map +1 -0
- package/dist/plugins/profiles/index.d.ts +12 -0
- package/dist/plugins/profiles/index.d.ts.map +1 -0
- package/dist/plugins/profiles/index.js +13 -0
- package/dist/plugins/profiles/index.js.map +1 -0
- package/dist/plugins/profiles/profiles-plugin.d.ts +71 -0
- package/dist/plugins/profiles/profiles-plugin.d.ts.map +1 -0
- package/dist/plugins/profiles/profiles-plugin.js +481 -0
- package/dist/plugins/profiles/profiles-plugin.js.map +1 -0
- package/dist/plugins/profiles/stores/index.d.ts +9 -0
- package/dist/plugins/profiles/stores/index.d.ts.map +1 -0
- package/dist/plugins/profiles/stores/index.js +9 -0
- package/dist/plugins/profiles/stores/index.js.map +1 -0
- package/dist/plugins/profiles/stores/postgres-store.d.ts +18 -0
- package/dist/plugins/profiles/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/profiles/stores/postgres-store.js +310 -0
- package/dist/plugins/profiles/stores/postgres-store.js.map +1 -0
- package/dist/plugins/profiles/types.d.ts +289 -0
- package/dist/plugins/profiles/types.d.ts.map +1 -0
- package/dist/plugins/profiles/types.js +10 -0
- package/dist/plugins/profiles/types.js.map +1 -0
- package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.d.ts +7 -0
- package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.d.ts.map +1 -0
- package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.js +220 -0
- package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.js.map +1 -0
- package/dist/plugins/rate-limit/cleanup.d.ts +40 -0
- package/dist/plugins/rate-limit/cleanup.d.ts.map +1 -0
- package/dist/plugins/rate-limit/cleanup.js +72 -0
- package/dist/plugins/rate-limit/cleanup.js.map +1 -0
- package/dist/plugins/rate-limit/env-config.d.ts +91 -0
- package/dist/plugins/rate-limit/env-config.d.ts.map +1 -0
- package/dist/plugins/rate-limit/env-config.js +318 -0
- package/dist/plugins/rate-limit/env-config.js.map +1 -0
- package/dist/plugins/rate-limit/index.d.ts +76 -0
- package/dist/plugins/rate-limit/index.d.ts.map +1 -0
- package/dist/plugins/rate-limit/index.js +79 -0
- package/dist/plugins/rate-limit/index.js.map +1 -0
- package/dist/plugins/rate-limit/middleware.d.ts +40 -0
- package/dist/plugins/rate-limit/middleware.d.ts.map +1 -0
- package/dist/plugins/rate-limit/middleware.js +169 -0
- package/dist/plugins/rate-limit/middleware.js.map +1 -0
- package/dist/plugins/rate-limit/rate-limit-plugin.d.ts +44 -0
- package/dist/plugins/rate-limit/rate-limit-plugin.d.ts.map +1 -0
- package/dist/plugins/rate-limit/rate-limit-plugin.js +354 -0
- package/dist/plugins/rate-limit/rate-limit-plugin.js.map +1 -0
- package/dist/plugins/rate-limit/rate-limit-service.d.ts +110 -0
- package/dist/plugins/rate-limit/rate-limit-service.d.ts.map +1 -0
- package/dist/plugins/rate-limit/rate-limit-service.js +172 -0
- package/dist/plugins/rate-limit/rate-limit-service.js.map +1 -0
- package/dist/plugins/rate-limit/stores/cache-store.d.ts +33 -0
- package/dist/plugins/rate-limit/stores/cache-store.d.ts.map +1 -0
- package/dist/plugins/rate-limit/stores/cache-store.js +225 -0
- package/dist/plugins/rate-limit/stores/cache-store.js.map +1 -0
- package/dist/plugins/rate-limit/stores/index.d.ts +8 -0
- package/dist/plugins/rate-limit/stores/index.d.ts.map +1 -0
- package/dist/plugins/rate-limit/stores/index.js +8 -0
- package/dist/plugins/rate-limit/stores/index.js.map +1 -0
- package/dist/plugins/rate-limit/stores/postgres-store.d.ts +34 -0
- package/dist/plugins/rate-limit/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/rate-limit/stores/postgres-store.js +320 -0
- package/dist/plugins/rate-limit/stores/postgres-store.js.map +1 -0
- package/dist/plugins/rate-limit/strategies/fixed-window.d.ts +21 -0
- package/dist/plugins/rate-limit/strategies/fixed-window.d.ts.map +1 -0
- package/dist/plugins/rate-limit/strategies/fixed-window.js +97 -0
- package/dist/plugins/rate-limit/strategies/fixed-window.js.map +1 -0
- package/dist/plugins/rate-limit/strategies/index.d.ts +14 -0
- package/dist/plugins/rate-limit/strategies/index.d.ts.map +1 -0
- package/dist/plugins/rate-limit/strategies/index.js +27 -0
- package/dist/plugins/rate-limit/strategies/index.js.map +1 -0
- package/dist/plugins/rate-limit/strategies/sliding-window.d.ts +22 -0
- package/dist/plugins/rate-limit/strategies/sliding-window.d.ts.map +1 -0
- package/dist/plugins/rate-limit/strategies/sliding-window.js +122 -0
- package/dist/plugins/rate-limit/strategies/sliding-window.js.map +1 -0
- package/dist/plugins/rate-limit/strategies/token-bucket.d.ts +28 -0
- package/dist/plugins/rate-limit/strategies/token-bucket.d.ts.map +1 -0
- package/dist/plugins/rate-limit/strategies/token-bucket.js +121 -0
- package/dist/plugins/rate-limit/strategies/token-bucket.js.map +1 -0
- package/dist/plugins/rate-limit/types.d.ts +265 -0
- package/dist/plugins/rate-limit/types.d.ts.map +1 -0
- package/dist/plugins/rate-limit/types.js +9 -0
- package/dist/plugins/rate-limit/types.js.map +1 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts +11 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts.map +1 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js +305 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js.map +1 -0
- package/dist/plugins/subscriptions/index.d.ts +12 -0
- package/dist/plugins/subscriptions/index.d.ts.map +1 -0
- package/dist/plugins/subscriptions/index.js +13 -0
- package/dist/plugins/subscriptions/index.js.map +1 -0
- package/dist/plugins/subscriptions/stores/index.d.ts +9 -0
- package/dist/plugins/subscriptions/stores/index.d.ts.map +1 -0
- package/dist/plugins/subscriptions/stores/index.js +9 -0
- package/dist/plugins/subscriptions/stores/index.js.map +1 -0
- package/dist/plugins/subscriptions/stores/postgres-store.d.ts +14 -0
- package/dist/plugins/subscriptions/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/subscriptions/stores/postgres-store.js +359 -0
- package/dist/plugins/subscriptions/stores/postgres-store.js.map +1 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.d.ts +82 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.d.ts.map +1 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.js +449 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.js.map +1 -0
- package/dist/plugins/subscriptions/types.d.ts +308 -0
- package/dist/plugins/subscriptions/types.d.ts.map +1 -0
- package/dist/plugins/subscriptions/types.js +10 -0
- package/dist/plugins/subscriptions/types.js.map +1 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts +11 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts.map +1 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.js +218 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.js.map +1 -0
- package/dist/plugins/usage/index.d.ts +12 -0
- package/dist/plugins/usage/index.d.ts.map +1 -0
- package/dist/plugins/usage/index.js +13 -0
- package/dist/plugins/usage/index.js.map +1 -0
- package/dist/plugins/usage/stores/index.d.ts +9 -0
- package/dist/plugins/usage/stores/index.d.ts.map +1 -0
- package/dist/plugins/usage/stores/index.js +9 -0
- package/dist/plugins/usage/stores/index.js.map +1 -0
- package/dist/plugins/usage/stores/postgres-store.d.ts +14 -0
- package/dist/plugins/usage/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/usage/stores/postgres-store.js +146 -0
- package/dist/plugins/usage/stores/postgres-store.js.map +1 -0
- package/dist/plugins/usage/types.d.ts +195 -0
- package/dist/plugins/usage/types.d.ts.map +1 -0
- package/dist/plugins/usage/types.js +10 -0
- package/dist/plugins/usage/types.js.map +1 -0
- package/dist/plugins/usage/usage-plugin.d.ts +51 -0
- package/dist/plugins/usage/usage-plugin.d.ts.map +1 -0
- package/dist/plugins/usage/usage-plugin.js +412 -0
- package/dist/plugins/usage/usage-plugin.js.map +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.d.ts +10 -0
- package/dist/plugins/users/__tests__/postgres-store.test.d.ts.map +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js +229 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js.map +1 -0
- package/dist/plugins/users/__tests__/users-plugin.test.js +3 -0
- package/dist/plugins/users/__tests__/users-plugin.test.js.map +1 -1
- package/dist/plugins/users/index.d.ts +2 -2
- package/dist/plugins/users/index.d.ts.map +1 -1
- package/dist/plugins/users/index.js +1 -1
- package/dist/plugins/users/index.js.map +1 -1
- package/dist/plugins/users/stores/postgres-store.d.ts.map +1 -1
- package/dist/plugins/users/stores/postgres-store.js +76 -0
- package/dist/plugins/users/stores/postgres-store.js.map +1 -1
- package/dist/plugins/users/types.d.ts +74 -6
- package/dist/plugins/users/types.d.ts.map +1 -1
- package/dist/plugins/users/users-plugin.d.ts +15 -1
- package/dist/plugins/users/users-plugin.d.ts.map +1 -1
- package/dist/plugins/users/users-plugin.js +29 -0
- package/dist/plugins/users/users-plugin.js.map +1 -1
- package/dist-ui/assets/index-CynOqPkb.js +469 -0
- package/dist-ui/assets/{index-BY8OxNgO.js.map → index-CynOqPkb.js.map} +1 -1
- package/dist-ui/index.html +1 -1
- package/dist-ui-lib/api/controlPanelApi.d.ts +187 -0
- package/dist-ui-lib/components/StatCard.d.ts +16 -0
- package/dist-ui-lib/dashboard/widgets/AuthStatusWidget.d.ts +9 -0
- package/dist-ui-lib/dashboard/widgets/IntegrationStatusWidget.d.ts +9 -0
- package/dist-ui-lib/dashboard/widgets/NotificationsStatsWidget.d.ts +12 -0
- package/dist-ui-lib/dashboard/widgets/index.d.ts +3 -0
- package/dist-ui-lib/index.js +3579 -2379
- package/dist-ui-lib/index.js.map +1 -1
- package/dist-ui-lib/pages/IntegrationsPage.d.ts +1 -0
- package/dist-ui-lib/pages/NotificationsPage.d.ts +9 -0
- package/dist-ui-lib/pages/RateLimitPage.d.ts +1 -0
- package/dist-ui-lib/utils/formatters.d.ts +19 -0
- package/package.json +1 -1
- package/src/core/control-panel.ts +128 -0
- package/src/core/types.ts +17 -0
- package/src/index.ts +216 -0
- package/src/plugins/auth/adapter-wrapper.test.ts +395 -0
- package/src/plugins/auth/adapter-wrapper.ts +205 -0
- package/src/plugins/auth/config-store.test.ts +417 -0
- package/src/plugins/auth/config-store.ts +305 -0
- package/src/plugins/auth/env-config.ts +714 -7
- package/src/plugins/auth/index.ts +22 -1
- package/src/plugins/auth/types.ts +138 -0
- package/src/plugins/bans/bans-plugin.ts +15 -3
- package/src/plugins/devices/__tests__/devices-plugin.test.ts +551 -0
- package/src/plugins/devices/__tests__/token-utils.test.ts +264 -0
- package/src/plugins/devices/adapters/compute-adapter.ts +139 -0
- package/src/plugins/devices/adapters/index.ts +13 -0
- package/src/plugins/devices/adapters/mobile-adapter.ts +179 -0
- package/src/plugins/devices/devices-plugin.ts +538 -0
- package/src/plugins/devices/index.ts +69 -0
- package/src/plugins/devices/stores/index.ts +9 -0
- package/src/plugins/devices/stores/postgres-store.ts +304 -0
- package/src/plugins/devices/token-utils.ts +213 -0
- package/src/plugins/devices/types.ts +351 -0
- package/src/plugins/index.ts +267 -0
- package/src/plugins/notifications/__tests__/notifications-manager.test.ts +637 -0
- package/src/plugins/notifications/index.ts +91 -0
- package/src/plugins/notifications/notifications-manager.ts +773 -0
- package/src/plugins/notifications/notifications-plugin.ts +398 -0
- package/src/plugins/notifications/types.ts +207 -0
- package/src/plugins/parental/__tests__/parental-plugin.test.ts +465 -0
- package/src/plugins/parental/adapters/index.ts +8 -0
- package/src/plugins/parental/adapters/kids-adapter.ts +206 -0
- package/src/plugins/parental/index.ts +55 -0
- package/src/plugins/parental/parental-plugin.ts +759 -0
- package/src/plugins/parental/stores/index.ts +7 -0
- package/src/plugins/parental/stores/postgres-store.ts +304 -0
- package/src/plugins/parental/types.ts +180 -0
- package/src/plugins/profiles/__tests__/profiles-plugin.test.ts +321 -0
- package/src/plugins/profiles/index.ts +49 -0
- package/src/plugins/profiles/profiles-plugin.ts +546 -0
- package/src/plugins/profiles/stores/index.ts +9 -0
- package/src/plugins/profiles/stores/postgres-store.ts +439 -0
- package/src/plugins/profiles/types.ts +338 -0
- package/src/plugins/rate-limit/__tests__/rate-limit-plugin.test.ts +259 -0
- package/src/plugins/rate-limit/cleanup.ts +117 -0
- package/src/plugins/rate-limit/env-config.ts +400 -0
- package/src/plugins/rate-limit/index.ts +128 -0
- package/src/plugins/rate-limit/middleware.ts +212 -0
- package/src/plugins/rate-limit/rate-limit-plugin.ts +400 -0
- package/src/plugins/rate-limit/rate-limit-service.ts +228 -0
- package/src/plugins/rate-limit/stores/cache-store.ts +261 -0
- package/src/plugins/rate-limit/stores/index.ts +8 -0
- package/src/plugins/rate-limit/stores/postgres-store.ts +402 -0
- package/src/plugins/rate-limit/strategies/fixed-window.ts +116 -0
- package/src/plugins/rate-limit/strategies/index.ts +30 -0
- package/src/plugins/rate-limit/strategies/sliding-window.ts +157 -0
- package/src/plugins/rate-limit/strategies/token-bucket.ts +154 -0
- package/src/plugins/rate-limit/types.ts +338 -0
- package/src/plugins/subscriptions/__tests__/subscriptions-plugin.test.ts +404 -0
- package/src/plugins/subscriptions/index.ts +51 -0
- package/src/plugins/subscriptions/stores/index.ts +9 -0
- package/src/plugins/subscriptions/stores/postgres-store.ts +482 -0
- package/src/plugins/subscriptions/subscriptions-plugin.ts +530 -0
- package/src/plugins/subscriptions/types.ts +355 -0
- package/src/plugins/usage/__tests__/usage-plugin.test.ts +288 -0
- package/src/plugins/usage/index.ts +39 -0
- package/src/plugins/usage/stores/index.ts +9 -0
- package/src/plugins/usage/stores/postgres-store.ts +213 -0
- package/src/plugins/usage/types.ts +222 -0
- package/src/plugins/usage/usage-plugin.ts +484 -0
- package/src/plugins/users/__tests__/postgres-store.test.ts +326 -0
- package/src/plugins/users/__tests__/users-plugin.test.ts +3 -0
- package/src/plugins/users/index.ts +6 -0
- package/src/plugins/users/stores/postgres-store.ts +104 -0
- package/src/plugins/users/types.ts +82 -6
- package/src/plugins/users/users-plugin.ts +37 -0
- package/ui/src/App.tsx +36 -14
- package/ui/src/api/controlPanelApi.ts +329 -6
- package/ui/src/components/StatCard.tsx +58 -0
- package/ui/src/dashboard/builtInWidgets.tsx +7 -1
- package/ui/src/dashboard/widgets/AuthStatusWidget.tsx +143 -0
- package/ui/src/dashboard/widgets/IntegrationStatusWidget.tsx +135 -0
- package/ui/src/dashboard/widgets/NotificationsStatsWidget.tsx +167 -0
- package/ui/src/dashboard/widgets/index.ts +3 -0
- package/ui/src/pages/AuthPage.tsx +986 -142
- package/ui/src/pages/IntegrationsPage.tsx +288 -0
- package/ui/src/pages/NotificationsPage.tsx +417 -0
- package/ui/src/pages/RateLimitPage.tsx +292 -0
- package/ui/src/utils/formatters.ts +33 -0
- package/dist-ui/assets/index-BY8OxNgO.js +0 -465
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
var KP=Object.defineProperty;var QP=(e,t,r)=>t in e?KP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ks=(e,t,r)=>QP(e,typeof t!="symbol"?t+"":t,r);function YP(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var h1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kg={exports:{}},su={},jg={exports:{}},Vt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var m1;function JP(){if(m1)return Vt;m1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function m(X){return X===null||typeof X!="object"?null:(X=v&&X[v]||X["@@iterator"],typeof X=="function"?X:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function C(X,re,de){this.props=X,this.context=re,this.refs=w,this.updater=de||y}C.prototype.isReactComponent={},C.prototype.setState=function(X,re){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,re,"setState")},C.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function P(){}P.prototype=C.prototype;function k(X,re,de){this.props=X,this.context=re,this.refs=w,this.updater=de||y}var I=k.prototype=new P;I.constructor=k,x(I,C.prototype),I.isPureReactComponent=!0;var T=Array.isArray,M=Object.prototype.hasOwnProperty,R={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function A(X,re,de){var J,oe={},ee=null,he=null;if(re!=null)for(J in re.ref!==void 0&&(he=re.ref),re.key!==void 0&&(ee=""+re.key),re)M.call(re,J)&&!L.hasOwnProperty(J)&&(oe[J]=re[J]);var Ce=arguments.length-2;if(Ce===1)oe.children=de;else if(1<Ce){for(var ye=Array(Ce),ce=0;ce<Ce;ce++)ye[ce]=arguments[ce+2];oe.children=ye}if(X&&X.defaultProps)for(J in Ce=X.defaultProps,Ce)oe[J]===void 0&&(oe[J]=Ce[J]);return{$$typeof:e,type:X,key:ee,ref:he,props:oe,_owner:R.current}}function H(X,re){return{$$typeof:e,type:X.type,key:re,ref:X.ref,props:X.props,_owner:X._owner}}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function $(X){var re={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(de){return re[de]})}var j=/\/+/g;function q(X,re){return typeof X=="object"&&X!==null&&X.key!=null?$(""+X.key):re.toString(36)}function V(X,re,de,J,oe){var ee=typeof X;(ee==="undefined"||ee==="boolean")&&(X=null);var he=!1;if(X===null)he=!0;else switch(ee){case"string":case"number":he=!0;break;case"object":switch(X.$$typeof){case e:case t:he=!0}}if(he)return he=X,oe=oe(he),X=J===""?"."+q(he,0):J,T(oe)?(de="",X!=null&&(de=X.replace(j,"$&/")+"/"),V(oe,re,de,"",function(ce){return ce})):oe!=null&&(G(oe)&&(oe=H(oe,de+(!oe.key||he&&he.key===oe.key?"":(""+oe.key).replace(j,"$&/")+"/")+X)),re.push(oe)),1;if(he=0,J=J===""?".":J+":",T(X))for(var Ce=0;Ce<X.length;Ce++){ee=X[Ce];var ye=J+q(ee,Ce);he+=V(ee,re,de,ye,oe)}else if(ye=m(X),typeof ye=="function")for(X=ye.call(X),Ce=0;!(ee=X.next()).done;)ee=ee.value,ye=J+q(ee,Ce++),he+=V(ee,re,de,ye,oe);else if(ee==="object")throw re=String(X),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return he}function O(X,re,de){if(X==null)return X;var J=[],oe=0;return V(X,J,"","",function(ee){return re.call(de,ee,oe++)}),J}function U(X){if(X._status===-1){var re=X._result;re=re(),re.then(function(de){(X._status===0||X._status===-1)&&(X._status=1,X._result=de)},function(de){(X._status===0||X._status===-1)&&(X._status=2,X._result=de)}),X._status===-1&&(X._status=0,X._result=re)}if(X._status===1)return X._result.default;throw X._result}var K={current:null},Y={transition:null},Z={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:Y,ReactCurrentOwner:R};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Vt.Children={map:O,forEach:function(X,re,de){O(X,function(){re.apply(this,arguments)},de)},count:function(X){var re=0;return O(X,function(){re++}),re},toArray:function(X){return O(X,function(re){return re})||[]},only:function(X){if(!G(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Vt.Component=C,Vt.Fragment=r,Vt.Profiler=o,Vt.PureComponent=k,Vt.StrictMode=n,Vt.Suspense=d,Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Vt.act=Q,Vt.cloneElement=function(X,re,de){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var J=x({},X.props),oe=X.key,ee=X.ref,he=X._owner;if(re!=null){if(re.ref!==void 0&&(ee=re.ref,he=R.current),re.key!==void 0&&(oe=""+re.key),X.type&&X.type.defaultProps)var Ce=X.type.defaultProps;for(ye in re)M.call(re,ye)&&!L.hasOwnProperty(ye)&&(J[ye]=re[ye]===void 0&&Ce!==void 0?Ce[ye]:re[ye])}var ye=arguments.length-2;if(ye===1)J.children=de;else if(1<ye){Ce=Array(ye);for(var ce=0;ce<ye;ce++)Ce[ce]=arguments[ce+2];J.children=Ce}return{$$typeof:e,type:X.type,key:oe,ref:ee,props:J,_owner:he}},Vt.createContext=function(X){return X={$$typeof:c,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:a,_context:X},X.Consumer=X},Vt.createElement=A,Vt.createFactory=function(X){var re=A.bind(null,X);return re.type=X,re},Vt.createRef=function(){return{current:null}},Vt.forwardRef=function(X){return{$$typeof:u,render:X}},Vt.isValidElement=G,Vt.lazy=function(X){return{$$typeof:h,_payload:{_status:-1,_result:X},_init:U}},Vt.memo=function(X,re){return{$$typeof:f,type:X,compare:re===void 0?null:re}},Vt.startTransition=function(X){var re=Y.transition;Y.transition={};try{X()}finally{Y.transition=re}},Vt.unstable_act=Q,Vt.useCallback=function(X,re){return K.current.useCallback(X,re)},Vt.useContext=function(X){return K.current.useContext(X)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(X){return K.current.useDeferredValue(X)},Vt.useEffect=function(X,re){return K.current.useEffect(X,re)},Vt.useId=function(){return K.current.useId()},Vt.useImperativeHandle=function(X,re,de){return K.current.useImperativeHandle(X,re,de)},Vt.useInsertionEffect=function(X,re){return K.current.useInsertionEffect(X,re)},Vt.useLayoutEffect=function(X,re){return K.current.useLayoutEffect(X,re)},Vt.useMemo=function(X,re){return K.current.useMemo(X,re)},Vt.useReducer=function(X,re,de){return K.current.useReducer(X,re,de)},Vt.useRef=function(X){return K.current.useRef(X)},Vt.useState=function(X){return K.current.useState(X)},Vt.useSyncExternalStore=function(X,re,de){return K.current.useSyncExternalStore(X,re,de)},Vt.useTransition=function(){return K.current.useTransition()},Vt.version="18.3.1",Vt}var g1;function bv(){return g1||(g1=1,jg.exports=JP()),jg.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var y1;function ZP(){if(y1)return su;y1=1;var e=bv(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,f){var h,v={},m=null,y=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(y=d.ref);for(h in d)n.call(d,h)&&!a.hasOwnProperty(h)&&(v[h]=d[h]);if(u&&u.defaultProps)for(h in d=u.defaultProps,d)v[h]===void 0&&(v[h]=d[h]);return{$$typeof:t,type:u,key:m,ref:y,props:v,_owner:o.current}}return su.Fragment=r,su.jsx=c,su.jsxs=c,su}var v1;function e4(){return v1||(v1=1,kg.exports=ZP()),kg.exports}var l=e4(),b=bv();const Lt=Zf(b),Du=YP({__proto__:null,default:Lt},[b]);var Op={},Pg={exports:{}},Gn={},Ig={exports:{}},Mg={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var x1;function t4(){return x1||(x1=1,(function(e){function t(Y,Z){var Q=Y.length;Y.push(Z);e:for(;0<Q;){var X=Q-1>>>1,re=Y[X];if(0<o(re,Z))Y[X]=Z,Y[Q]=re,Q=X;else break e}}function r(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var Z=Y[0],Q=Y.pop();if(Q!==Z){Y[0]=Q;e:for(var X=0,re=Y.length,de=re>>>1;X<de;){var J=2*(X+1)-1,oe=Y[J],ee=J+1,he=Y[ee];if(0>o(oe,Q))ee<re&&0>o(he,oe)?(Y[X]=he,Y[ee]=Q,X=ee):(Y[X]=oe,Y[J]=Q,X=J);else if(ee<re&&0>o(he,Q))Y[X]=he,Y[ee]=Q,X=ee;else break e}}return Z}function o(Y,Z){var Q=Y.sortIndex-Z.sortIndex;return Q!==0?Q:Y.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],h=1,v=null,m=3,y=!1,x=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(Y){for(var Z=r(f);Z!==null;){if(Z.callback===null)n(f);else if(Z.startTime<=Y)n(f),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=r(f)}}function T(Y){if(w=!1,I(Y),!x)if(r(d)!==null)x=!0,U(M);else{var Z=r(f);Z!==null&&K(T,Z.startTime-Y)}}function M(Y,Z){x=!1,w&&(w=!1,P(A),A=-1),y=!0;var Q=m;try{for(I(Z),v=r(d);v!==null&&(!(v.expirationTime>Z)||Y&&!$());){var X=v.callback;if(typeof X=="function"){v.callback=null,m=v.priorityLevel;var re=X(v.expirationTime<=Z);Z=e.unstable_now(),typeof re=="function"?v.callback=re:v===r(d)&&n(d),I(Z)}else n(d);v=r(d)}if(v!==null)var de=!0;else{var J=r(f);J!==null&&K(T,J.startTime-Z),de=!1}return de}finally{v=null,m=Q,y=!1}}var R=!1,L=null,A=-1,H=5,G=-1;function $(){return!(e.unstable_now()-G<H)}function j(){if(L!==null){var Y=e.unstable_now();G=Y;var Z=!0;try{Z=L(!0,Y)}finally{Z?q():(R=!1,L=null)}}else R=!1}var q;if(typeof k=="function")q=function(){k(j)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,O=V.port2;V.port1.onmessage=j,q=function(){O.postMessage(null)}}else q=function(){C(j,0)};function U(Y){L=Y,R||(R=!0,q())}function K(Y,Z){A=C(function(){Y(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,U(M))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(Y){switch(m){case 1:case 2:case 3:var Z=3;break;default:Z=m}var Q=m;m=Z;try{return Y()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,Z){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var Q=m;m=Y;try{return Z()}finally{m=Q}},e.unstable_scheduleCallback=function(Y,Z,Q){var X=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,Y){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Q+re,Y={id:h++,callback:Z,priorityLevel:Y,startTime:Q,expirationTime:re,sortIndex:-1},Q>X?(Y.sortIndex=Q,t(f,Y),r(d)===null&&Y===r(f)&&(w?(P(A),A=-1):w=!0,K(T,Q-X))):(Y.sortIndex=re,t(d,Y),x||y||(x=!0,U(M))),Y},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(Y){var Z=m;return function(){var Q=m;m=Z;try{return Y.apply(this,arguments)}finally{m=Q}}}})(Mg)),Mg}var b1;function r4(){return b1||(b1=1,Ig.exports=t4()),Ig.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var w1;function n4(){if(w1)return Gn;w1=1;var e=bv(),t=r4();function r(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p<arguments.length;p++)s+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function a(i,s){c(i,s),c(i+"Capture",s)}function c(i,s){for(o[i]=s,i=0;i<s.length;i++)n.add(s[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},v={};function m(i){return d.call(v,i)?!0:d.call(h,i)?!1:f.test(i)?v[i]=!0:(h[i]=!0,!1)}function y(i,s,p,g){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function x(i,s,p,g){if(s===null||typeof s>"u"||y(i,s,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function w(i,s,p,g,S,E,N){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=p,this.propertyName=i,this.type=s,this.sanitizeURL=E,this.removeEmptyString=N}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){C[i]=new w(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];C[s]=new w(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){C[i]=new w(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){C[i]=new w(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){C[i]=new w(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){C[i]=new w(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){C[i]=new w(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){C[i]=new w(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){C[i]=new w(i,5,!1,i.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function k(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(P,k);C[s]=new w(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(P,k);C[s]=new w(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(P,k);C[s]=new w(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){C[i]=new w(i,1,!1,i.toLowerCase(),null,!1,!1)}),C.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){C[i]=new w(i,1,!1,i.toLowerCase(),null,!0,!0)});function I(i,s,p,g){var S=C.hasOwnProperty(s)?C[s]:null;(S!==null?S.type!==0:g||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(x(s,p,S,g)&&(p=null),g||S===null?m(s)&&(p===null?i.removeAttribute(s):i.setAttribute(s,""+p)):S.mustUseProperty?i[S.propertyName]=p===null?S.type===3?!1:"":p:(s=S.attributeName,g=S.attributeNamespace,p===null?i.removeAttribute(s):(S=S.type,p=S===3||S===4&&p===!0?"":""+p,g?i.setAttributeNS(g,s,p):i.setAttribute(s,p))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),R=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),$=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Y=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=Y&&i[Y]||i["@@iterator"],typeof i=="function"?i:null)}var Q=Object.assign,X;function re(i){if(X===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);X=s&&s[1]||""}return`
|
|
34
|
+
`+X+i}var de=!1;function J(i,s){if(!i||de)return"";de=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(be){var g=be}Reflect.construct(i,[],s)}else{try{s.call()}catch(be){g=be}i.call(s.prototype)}else{try{throw Error()}catch(be){g=be}i()}}catch(be){if(be&&g&&typeof be.stack=="string"){for(var S=be.stack.split(`
|
|
35
|
+
`),E=g.stack.split(`
|
|
36
|
+
`),N=S.length-1,te=E.length-1;1<=N&&0<=te&&S[N]!==E[te];)te--;for(;1<=N&&0<=te;N--,te--)if(S[N]!==E[te]){if(N!==1||te!==1)do if(N--,te--,0>te||S[N]!==E[te]){var se=`
|
|
37
|
+
`+S[N].replace(" at new "," at ");return i.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",i.displayName)),se}while(1<=N&&0<=te);break}}}finally{de=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?re(i):""}function oe(i){switch(i.tag){case 5:return re(i.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return i=J(i.type,!1),i;case 11:return i=J(i.type.render,!1),i;case 1:return i=J(i.type,!0),i;default:return""}}function ee(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case L:return"Fragment";case R:return"Portal";case H:return"Profiler";case A:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $:return(i.displayName||"Context")+".Consumer";case G:return(i._context.displayName||"Context")+".Provider";case j:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case O:return s=i.displayName||null,s!==null?s:ee(i.type)||"Memo";case U:s=i._payload,i=i._init;try{return ee(i(s))}catch{}}return null}function he(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(s);case 8:return s===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ye(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ce(i){var s=ye(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),g=""+i[s];if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,E=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return S.call(this)},set:function(N){g=""+N,E.call(this,N)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(N){g=""+N},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Fe(i){i._valueTracker||(i._valueTracker=ce(i))}function Le(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var p=s.getValue(),g="";return i&&(g=ye(i)?i.checked?"true":"false":i.value),i=g,i!==p?(s.setValue(i),!0):!1}function Ne(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function $e(i,s){var p=s.checked;return Q({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Me(i,s){var p=s.defaultValue==null?"":s.defaultValue,g=s.checked!=null?s.checked:s.defaultChecked;p=Ce(s.value!=null?s.value:p),i._wrapperState={initialChecked:g,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Xe(i,s){s=s.checked,s!=null&&I(i,"checked",s,!1)}function dt(i,s){Xe(i,s);var p=Ce(s.value),g=s.type;if(p!=null)g==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Ye(i,s.type,p):s.hasOwnProperty("defaultValue")&&Ye(i,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function le(i,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var g=s.type;if(!(g!=="submit"&&g!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,p||s===i.value||(i.value=s),i.defaultValue=s}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function Ye(i,s,p){(s!=="number"||Ne(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var We=Array.isArray;function ft(i,s,p,g){if(i=i.options,s){s={};for(var S=0;S<p.length;S++)s["$"+p[S]]=!0;for(p=0;p<i.length;p++)S=s.hasOwnProperty("$"+i[p].value),i[p].selected!==S&&(i[p].selected=S),S&&g&&(i[p].defaultSelected=!0)}else{for(p=""+Ce(p),s=null,S=0;S<i.length;S++){if(i[S].value===p){i[S].selected=!0,g&&(i[S].defaultSelected=!0);return}s!==null||i[S].disabled||(s=i[S])}s!==null&&(s.selected=!0)}}function ze(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return Q({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Nt(i,s){var p=s.value;if(p==null){if(p=s.children,s=s.defaultValue,p!=null){if(s!=null)throw Error(r(92));if(We(p)){if(1<p.length)throw Error(r(93));p=p[0]}s=p}s==null&&(s=""),p=s}i._wrapperState={initialValue:Ce(p)}}function ht(i,s){var p=Ce(s.value),g=Ce(s.defaultValue);p!=null&&(p=""+p,p!==i.value&&(i.value=p),s.defaultValue==null&&i.defaultValue!==p&&(i.defaultValue=p)),g!=null&&(i.defaultValue=""+g)}function fe(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function we(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?we(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Re,qe=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,p,g,S){MSApp.execUnsafeLocalFunction(function(){return i(s,p,g,S)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Re=Re||document.createElement("div"),Re.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Re.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function et(i,s){if(s){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=s;return}}i.textContent=s}var ie={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pe=["Webkit","ms","Moz","O"];Object.keys(ie).forEach(function(i){Pe.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),ie[s]=ie[i]})});function Be(i,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||ie.hasOwnProperty(i)&&ie[i]?(""+s).trim():s+"px"}function He(i,s){i=i.style;for(var p in s)if(s.hasOwnProperty(p)){var g=p.indexOf("--")===0,S=Be(p,s[p],g);p==="float"&&(p="cssFloat"),g?i.setProperty(p,S):i[p]=S}}var Et=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zt(i,s){if(s){if(Et[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function yr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xr=null;function pn(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var vn=null,nt=null,kt=null;function Yt(i){if(i=qc(i)){if(typeof vn!="function")throw Error(r(280));var s=i.stateNode;s&&(s=Qd(s),vn(i.stateNode,i.type,s))}}function Tr(i){nt?kt?kt.push(i):kt=[i]:nt=i}function Kr(){if(nt){var i=nt,s=kt;if(kt=nt=null,Yt(i),s)for(i=0;i<s.length;i++)Yt(s[i])}}function Mn(i,s){return i(s)}function jt(){}var vr=!1;function Ke(i,s,p){if(vr)return i(s,p);vr=!0;try{return Mn(i,s,p)}finally{vr=!1,(nt!==null||kt!==null)&&(jt(),Kr())}}function at(i,s){var p=i.stateNode;if(p===null)return null;var g=Qd(p);if(g===null)return null;p=g[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,s,typeof p));return p}var _t=!1;if(u)try{var Ot={};Object.defineProperty(Ot,"passive",{get:function(){_t=!0}}),window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{_t=!1}function rr(i,s,p,g,S,E,N,te,se){var be=Array.prototype.slice.call(arguments,3);try{s.apply(p,be)}catch(_e){this.onError(_e)}}var zr=!1,xn=null,Fn=!1,fi=null,qo={onError:function(i){zr=!0,xn=i}};function Lr(i,s,p,g,S,E,N,te,se){zr=!1,xn=null,rr.apply(qo,arguments)}function Dr(i,s,p,g,S,E,N,te,se){if(Lr.apply(this,arguments),zr){if(zr){var be=xn;zr=!1,xn=null}else throw Error(r(198));Fn||(Fn=!0,fi=be)}}function bn(i){var s=i,p=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(p=s.return),i=s.return;while(i)}return s.tag===3?p:null}function rl(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function ma(i){if(bn(i)!==i)throw Error(r(188))}function nl(i){var s=i.alternate;if(!s){if(s=bn(i),s===null)throw Error(r(188));return s!==i?null:i}for(var p=i,g=s;;){var S=p.return;if(S===null)break;var E=S.alternate;if(E===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===E.child){for(E=S.child;E;){if(E===p)return ma(S),i;if(E===g)return ma(S),s;E=E.sibling}throw Error(r(188))}if(p.return!==g.return)p=S,g=E;else{for(var N=!1,te=S.child;te;){if(te===p){N=!0,p=S,g=E;break}if(te===g){N=!0,g=S,p=E;break}te=te.sibling}if(!N){for(te=E.child;te;){if(te===p){N=!0,p=E,g=S;break}if(te===g){N=!0,g=E,p=S;break}te=te.sibling}if(!N)throw Error(r(189))}}if(p.alternate!==g)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:s}function Te(i){return i=nl(i),i!==null?Ee(i):null}function Ee(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=Ee(i);if(s!==null)return s;i=i.sibling}return null}var ot=t.unstable_scheduleCallback,Tt=t.unstable_cancelCallback,Mt=t.unstable_shouldYield,Fr=t.unstable_requestPaint,$t=t.unstable_now,lo=t.unstable_getCurrentPriorityLevel,ga=t.unstable_ImmediatePriority,jc=t.unstable_UserBlockingPriority,Vi=t.unstable_NormalPriority,ol=t.unstable_LowPriority,Gt=t.unstable_IdlePriority,co=null,Qr=null;function fs(i){if(Qr&&typeof Qr.onCommitFiberRoot=="function")try{Qr.onCommitFiberRoot(co,i,void 0,(i.current.flags&128)===128)}catch{}}var Go=Math.clz32?Math.clz32:fj,dj=Math.log,pj=Math.LN2;function fj(i){return i>>>=0,i===0?32:31-(dj(i)/pj|0)|0}var Ad=64,_d=4194304;function Pc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Ld(i,s){var p=i.pendingLanes;if(p===0)return 0;var g=0,S=i.suspendedLanes,E=i.pingedLanes,N=p&268435455;if(N!==0){var te=N&~S;te!==0?g=Pc(te):(E&=N,E!==0&&(g=Pc(E)))}else N=p&~S,N!==0?g=Pc(N):E!==0&&(g=Pc(E));if(g===0)return 0;if(s!==0&&s!==g&&(s&S)===0&&(S=g&-g,E=s&-s,S>=E||S===16&&(E&4194240)!==0))return s;if((g&4)!==0&&(g|=p&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=g;0<s;)p=31-Go(s),S=1<<p,g|=i[p],s&=~S;return g}function hj(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mj(i,s){for(var p=i.suspendedLanes,g=i.pingedLanes,S=i.expirationTimes,E=i.pendingLanes;0<E;){var N=31-Go(E),te=1<<N,se=S[N];se===-1?((te&p)===0||(te&g)!==0)&&(S[N]=hj(te,s)):se<=s&&(i.expiredLanes|=te),E&=~te}}function Gh(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function W0(){var i=Ad;return Ad<<=1,(Ad&4194240)===0&&(Ad=64),i}function Xh(i){for(var s=[],p=0;31>p;p++)s.push(i);return s}function Ic(i,s,p){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Go(s),i[s]=p}function gj(i,s){var p=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var g=i.eventTimes;for(i=i.expirationTimes;0<p;){var S=31-Go(p),E=1<<S;s[S]=0,g[S]=-1,i[S]=-1,p&=~E}}function Kh(i,s){var p=i.entangledLanes|=s;for(i=i.entanglements;p;){var g=31-Go(p),S=1<<g;S&s|i[g]&s&&(i[g]|=s),p&=~S}}var ar=0;function q0(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var G0,Qh,X0,K0,Q0,Yh=!1,Od=[],ya=null,va=null,xa=null,Mc=new Map,Rc=new Map,ba=[],yj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Y0(i,s){switch(i){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":Mc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rc.delete(s.pointerId)}}function Ac(i,s,p,g,S,E){return i===null||i.nativeEvent!==E?(i={blockedOn:s,domEventName:p,eventSystemFlags:g,nativeEvent:E,targetContainers:[S]},s!==null&&(s=qc(s),s!==null&&Qh(s)),i):(i.eventSystemFlags|=g,s=i.targetContainers,S!==null&&s.indexOf(S)===-1&&s.push(S),i)}function vj(i,s,p,g,S){switch(s){case"focusin":return ya=Ac(ya,i,s,p,g,S),!0;case"dragenter":return va=Ac(va,i,s,p,g,S),!0;case"mouseover":return xa=Ac(xa,i,s,p,g,S),!0;case"pointerover":var E=S.pointerId;return Mc.set(E,Ac(Mc.get(E)||null,i,s,p,g,S)),!0;case"gotpointercapture":return E=S.pointerId,Rc.set(E,Ac(Rc.get(E)||null,i,s,p,g,S)),!0}return!1}function J0(i){var s=hs(i.target);if(s!==null){var p=bn(s);if(p!==null){if(s=p.tag,s===13){if(s=rl(p),s!==null){i.blockedOn=s,Q0(i.priority,function(){X0(p)});return}}else if(s===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Nd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var p=Zh(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);Xr=g,p.target.dispatchEvent(g),Xr=null}else return s=qc(p),s!==null&&Qh(s),i.blockedOn=p,!1;s.shift()}return!0}function Z0(i,s,p){Nd(i)&&p.delete(s)}function xj(){Yh=!1,ya!==null&&Nd(ya)&&(ya=null),va!==null&&Nd(va)&&(va=null),xa!==null&&Nd(xa)&&(xa=null),Mc.forEach(Z0),Rc.forEach(Z0)}function _c(i,s){i.blockedOn===s&&(i.blockedOn=null,Yh||(Yh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,xj)))}function Lc(i){function s(S){return _c(S,i)}if(0<Od.length){_c(Od[0],i);for(var p=1;p<Od.length;p++){var g=Od[p];g.blockedOn===i&&(g.blockedOn=null)}}for(ya!==null&&_c(ya,i),va!==null&&_c(va,i),xa!==null&&_c(xa,i),Mc.forEach(s),Rc.forEach(s),p=0;p<ba.length;p++)g=ba[p],g.blockedOn===i&&(g.blockedOn=null);for(;0<ba.length&&(p=ba[0],p.blockedOn===null);)J0(p),p.blockedOn===null&&ba.shift()}var il=T.ReactCurrentBatchConfig,$d=!0;function bj(i,s,p,g){var S=ar,E=il.transition;il.transition=null;try{ar=1,Jh(i,s,p,g)}finally{ar=S,il.transition=E}}function wj(i,s,p,g){var S=ar,E=il.transition;il.transition=null;try{ar=4,Jh(i,s,p,g)}finally{ar=S,il.transition=E}}function Jh(i,s,p,g){if($d){var S=Zh(i,s,p,g);if(S===null)gm(i,s,g,Bd,p),Y0(i,g);else if(vj(S,i,s,p,g))g.stopPropagation();else if(Y0(i,g),s&4&&-1<yj.indexOf(i)){for(;S!==null;){var E=qc(S);if(E!==null&&G0(E),E=Zh(i,s,p,g),E===null&&gm(i,s,g,Bd,p),E===S)break;S=E}S!==null&&g.stopPropagation()}else gm(i,s,g,null,p)}}var Bd=null;function Zh(i,s,p,g){if(Bd=null,i=pn(g),i=hs(i),i!==null)if(s=bn(i),s===null)i=null;else if(p=s.tag,p===13){if(i=rl(s),i!==null)return i;i=null}else if(p===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Bd=i,null}function ex(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(lo()){case ga:return 1;case jc:return 4;case Vi:case ol:return 16;case Gt:return 536870912;default:return 16}default:return 16}}var wa=null,em=null,zd=null;function tx(){if(zd)return zd;var i,s=em,p=s.length,g,S="value"in wa?wa.value:wa.textContent,E=S.length;for(i=0;i<p&&s[i]===S[i];i++);var N=p-i;for(g=1;g<=N&&s[p-g]===S[E-g];g++);return zd=S.slice(i,1<g?1-g:void 0)}function Dd(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Fd(){return!0}function rx(){return!1}function uo(i){function s(p,g,S,E,N){this._reactName=p,this._targetInst=S,this.type=g,this.nativeEvent=E,this.target=N,this.currentTarget=null;for(var te in i)i.hasOwnProperty(te)&&(p=i[te],this[te]=p?p(E):E[te]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Fd:rx,this.isPropagationStopped=rx,this}return Q(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),s}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tm=uo(al),Oc=Q({},al,{view:0,detail:0}),Sj=uo(Oc),rm,nm,Nc,Hd=Q({},Oc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Nc&&(Nc&&i.type==="mousemove"?(rm=i.screenX-Nc.screenX,nm=i.screenY-Nc.screenY):nm=rm=0,Nc=i),rm)},movementY:function(i){return"movementY"in i?i.movementY:nm}}),nx=uo(Hd),Cj=Q({},Hd,{dataTransfer:0}),Ej=uo(Cj),Tj=Q({},Oc,{relatedTarget:0}),om=uo(Tj),kj=Q({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),jj=uo(kj),Pj=Q({},al,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ij=uo(Pj),Mj=Q({},al,{data:0}),ox=uo(Mj),Rj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Aj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_j={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lj(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=_j[i])?!!s[i]:!1}function im(){return Lj}var Oj=Q({},Oc,{key:function(i){if(i.key){var s=Rj[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Dd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Aj[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(i){return i.type==="keypress"?Dd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Dd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Nj=uo(Oj),$j=Q({},Hd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ix=uo($j),Bj=Q({},Oc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),zj=uo(Bj),Dj=Q({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fj=uo(Dj),Hj=Q({},Hd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Vj=uo(Hj),Uj=[9,13,27,32],am=u&&"CompositionEvent"in window,$c=null;u&&"documentMode"in document&&($c=document.documentMode);var Wj=u&&"TextEvent"in window&&!$c,ax=u&&(!am||$c&&8<$c&&11>=$c),sx=" ",lx=!1;function cx(i,s){switch(i){case"keyup":return Uj.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ux(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var sl=!1;function qj(i,s){switch(i){case"compositionend":return ux(s);case"keypress":return s.which!==32?null:(lx=!0,sx);case"textInput":return i=s.data,i===sx&&lx?null:i;default:return null}}function Gj(i,s){if(sl)return i==="compositionend"||!am&&cx(i,s)?(i=tx(),zd=em=wa=null,sl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return ax&&s.locale!=="ko"?null:s.data;default:return null}}var Xj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dx(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!Xj[i.type]:s==="textarea"}function px(i,s,p,g){Tr(g),s=Gd(s,"onChange"),0<s.length&&(p=new tm("onChange","change",null,p,g),i.push({event:p,listeners:s}))}var Bc=null,zc=null;function Kj(i){Mx(i,0)}function Vd(i){var s=pl(i);if(Le(s))return i}function Qj(i,s){if(i==="change")return s}var fx=!1;if(u){var sm;if(u){var lm="oninput"in document;if(!lm){var hx=document.createElement("div");hx.setAttribute("oninput","return;"),lm=typeof hx.oninput=="function"}sm=lm}else sm=!1;fx=sm&&(!document.documentMode||9<document.documentMode)}function mx(){Bc&&(Bc.detachEvent("onpropertychange",gx),zc=Bc=null)}function gx(i){if(i.propertyName==="value"&&Vd(zc)){var s=[];px(s,zc,i,pn(i)),Ke(Kj,s)}}function Yj(i,s,p){i==="focusin"?(mx(),Bc=s,zc=p,Bc.attachEvent("onpropertychange",gx)):i==="focusout"&&mx()}function Jj(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Vd(zc)}function Zj(i,s){if(i==="click")return Vd(s)}function eP(i,s){if(i==="input"||i==="change")return Vd(s)}function tP(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Xo=typeof Object.is=="function"?Object.is:tP;function Dc(i,s){if(Xo(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var p=Object.keys(i),g=Object.keys(s);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var S=p[g];if(!d.call(s,S)||!Xo(i[S],s[S]))return!1}return!0}function yx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function vx(i,s){var p=yx(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=s&&g>=s)return{node:p,offset:s-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=yx(p)}}function xx(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?xx(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function bx(){for(var i=window,s=Ne();s instanceof i.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)i=s.contentWindow;else break;s=Ne(i.document)}return s}function cm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function rP(i){var s=bx(),p=i.focusedElem,g=i.selectionRange;if(s!==p&&p&&p.ownerDocument&&xx(p.ownerDocument.documentElement,p)){if(g!==null&&cm(p)){if(s=g.start,i=g.end,i===void 0&&(i=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(i,p.value.length);else if(i=(s=p.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var S=p.textContent.length,E=Math.min(g.start,S);g=g.end===void 0?E:Math.min(g.end,S),!i.extend&&E>g&&(S=g,g=E,E=S),S=vx(p,E);var N=vx(p,g);S&&N&&(i.rangeCount!==1||i.anchorNode!==S.node||i.anchorOffset!==S.offset||i.focusNode!==N.node||i.focusOffset!==N.offset)&&(s=s.createRange(),s.setStart(S.node,S.offset),i.removeAllRanges(),E>g?(i.addRange(s),i.extend(N.node,N.offset)):(s.setEnd(N.node,N.offset),i.addRange(s)))}}for(s=[],i=p;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<s.length;p++)i=s[p],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var nP=u&&"documentMode"in document&&11>=document.documentMode,ll=null,um=null,Fc=null,dm=!1;function wx(i,s,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;dm||ll==null||ll!==Ne(g)||(g=ll,"selectionStart"in g&&cm(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Fc&&Dc(Fc,g)||(Fc=g,g=Gd(um,"onSelect"),0<g.length&&(s=new tm("onSelect","select",null,s,p),i.push({event:s,listeners:g}),s.target=ll)))}function Ud(i,s){var p={};return p[i.toLowerCase()]=s.toLowerCase(),p["Webkit"+i]="webkit"+s,p["Moz"+i]="moz"+s,p}var cl={animationend:Ud("Animation","AnimationEnd"),animationiteration:Ud("Animation","AnimationIteration"),animationstart:Ud("Animation","AnimationStart"),transitionend:Ud("Transition","TransitionEnd")},pm={},Sx={};u&&(Sx=document.createElement("div").style,"AnimationEvent"in window||(delete cl.animationend.animation,delete cl.animationiteration.animation,delete cl.animationstart.animation),"TransitionEvent"in window||delete cl.transitionend.transition);function Wd(i){if(pm[i])return pm[i];if(!cl[i])return i;var s=cl[i],p;for(p in s)if(s.hasOwnProperty(p)&&p in Sx)return pm[i]=s[p];return i}var Cx=Wd("animationend"),Ex=Wd("animationiteration"),Tx=Wd("animationstart"),kx=Wd("transitionend"),jx=new Map,Px="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sa(i,s){jx.set(i,s),a(s,[i])}for(var fm=0;fm<Px.length;fm++){var hm=Px[fm],oP=hm.toLowerCase(),iP=hm[0].toUpperCase()+hm.slice(1);Sa(oP,"on"+iP)}Sa(Cx,"onAnimationEnd"),Sa(Ex,"onAnimationIteration"),Sa(Tx,"onAnimationStart"),Sa("dblclick","onDoubleClick"),Sa("focusin","onFocus"),Sa("focusout","onBlur"),Sa(kx,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hc));function Ix(i,s,p){var g=i.type||"unknown-event";i.currentTarget=p,Dr(g,s,void 0,i),i.currentTarget=null}function Mx(i,s){s=(s&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],S=g.event;g=g.listeners;e:{var E=void 0;if(s)for(var N=g.length-1;0<=N;N--){var te=g[N],se=te.instance,be=te.currentTarget;if(te=te.listener,se!==E&&S.isPropagationStopped())break e;Ix(S,te,be),E=se}else for(N=0;N<g.length;N++){if(te=g[N],se=te.instance,be=te.currentTarget,te=te.listener,se!==E&&S.isPropagationStopped())break e;Ix(S,te,be),E=se}}}if(Fn)throw i=fi,Fn=!1,fi=null,i}function xr(i,s){var p=s[Sm];p===void 0&&(p=s[Sm]=new Set);var g=i+"__bubble";p.has(g)||(Rx(s,i,2,!1),p.add(g))}function mm(i,s,p){var g=0;s&&(g|=4),Rx(p,i,g,s)}var qd="_reactListening"+Math.random().toString(36).slice(2);function Vc(i){if(!i[qd]){i[qd]=!0,n.forEach(function(p){p!=="selectionchange"&&(aP.has(p)||mm(p,!1,i),mm(p,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[qd]||(s[qd]=!0,mm("selectionchange",!1,s))}}function Rx(i,s,p,g){switch(ex(s)){case 1:var S=bj;break;case 4:S=wj;break;default:S=Jh}p=S.bind(null,s,p,i),S=void 0,!_t||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(S=!0),g?S!==void 0?i.addEventListener(s,p,{capture:!0,passive:S}):i.addEventListener(s,p,!0):S!==void 0?i.addEventListener(s,p,{passive:S}):i.addEventListener(s,p,!1)}function gm(i,s,p,g,S){var E=g;if((s&1)===0&&(s&2)===0&&g!==null)e:for(;;){if(g===null)return;var N=g.tag;if(N===3||N===4){var te=g.stateNode.containerInfo;if(te===S||te.nodeType===8&&te.parentNode===S)break;if(N===4)for(N=g.return;N!==null;){var se=N.tag;if((se===3||se===4)&&(se=N.stateNode.containerInfo,se===S||se.nodeType===8&&se.parentNode===S))return;N=N.return}for(;te!==null;){if(N=hs(te),N===null)return;if(se=N.tag,se===5||se===6){g=E=N;continue e}te=te.parentNode}}g=g.return}Ke(function(){var be=E,_e=pn(p),Oe=[];e:{var Ae=jx.get(i);if(Ae!==void 0){var it=tm,ct=i;switch(i){case"keypress":if(Dd(p)===0)break e;case"keydown":case"keyup":it=Nj;break;case"focusin":ct="focus",it=om;break;case"focusout":ct="blur",it=om;break;case"beforeblur":case"afterblur":it=om;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":it=nx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":it=Ej;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":it=zj;break;case Cx:case Ex:case Tx:it=jj;break;case kx:it=Fj;break;case"scroll":it=Sj;break;case"wheel":it=Vj;break;case"copy":case"cut":case"paste":it=Ij;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":it=ix}var pt=(s&4)!==0,Or=!pt&&i==="scroll",me=pt?Ae!==null?Ae+"Capture":null:Ae;pt=[];for(var ue=be,ge;ue!==null;){ge=ue;var De=ge.stateNode;if(ge.tag===5&&De!==null&&(ge=De,me!==null&&(De=at(ue,me),De!=null&&pt.push(Uc(ue,De,ge)))),Or)break;ue=ue.return}0<pt.length&&(Ae=new it(Ae,ct,null,p,_e),Oe.push({event:Ae,listeners:pt}))}}if((s&7)===0){e:{if(Ae=i==="mouseover"||i==="pointerover",it=i==="mouseout"||i==="pointerout",Ae&&p!==Xr&&(ct=p.relatedTarget||p.fromElement)&&(hs(ct)||ct[Ui]))break e;if((it||Ae)&&(Ae=_e.window===_e?_e:(Ae=_e.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,it?(ct=p.relatedTarget||p.toElement,it=be,ct=ct?hs(ct):null,ct!==null&&(Or=bn(ct),ct!==Or||ct.tag!==5&&ct.tag!==6)&&(ct=null)):(it=null,ct=be),it!==ct)){if(pt=nx,De="onMouseLeave",me="onMouseEnter",ue="mouse",(i==="pointerout"||i==="pointerover")&&(pt=ix,De="onPointerLeave",me="onPointerEnter",ue="pointer"),Or=it==null?Ae:pl(it),ge=ct==null?Ae:pl(ct),Ae=new pt(De,ue+"leave",it,p,_e),Ae.target=Or,Ae.relatedTarget=ge,De=null,hs(_e)===be&&(pt=new pt(me,ue+"enter",ct,p,_e),pt.target=ge,pt.relatedTarget=Or,De=pt),Or=De,it&&ct)t:{for(pt=it,me=ct,ue=0,ge=pt;ge;ge=ul(ge))ue++;for(ge=0,De=me;De;De=ul(De))ge++;for(;0<ue-ge;)pt=ul(pt),ue--;for(;0<ge-ue;)me=ul(me),ge--;for(;ue--;){if(pt===me||me!==null&&pt===me.alternate)break t;pt=ul(pt),me=ul(me)}pt=null}else pt=null;it!==null&&Ax(Oe,Ae,it,pt,!1),ct!==null&&Or!==null&&Ax(Oe,Or,ct,pt,!0)}}e:{if(Ae=be?pl(be):window,it=Ae.nodeName&&Ae.nodeName.toLowerCase(),it==="select"||it==="input"&&Ae.type==="file")var mt=Qj;else if(dx(Ae))if(fx)mt=eP;else{mt=Jj;var bt=Yj}else(it=Ae.nodeName)&&it.toLowerCase()==="input"&&(Ae.type==="checkbox"||Ae.type==="radio")&&(mt=Zj);if(mt&&(mt=mt(i,be))){px(Oe,mt,p,_e);break e}bt&&bt(i,Ae,be),i==="focusout"&&(bt=Ae._wrapperState)&&bt.controlled&&Ae.type==="number"&&Ye(Ae,"number",Ae.value)}switch(bt=be?pl(be):window,i){case"focusin":(dx(bt)||bt.contentEditable==="true")&&(ll=bt,um=be,Fc=null);break;case"focusout":Fc=um=ll=null;break;case"mousedown":dm=!0;break;case"contextmenu":case"mouseup":case"dragend":dm=!1,wx(Oe,p,_e);break;case"selectionchange":if(nP)break;case"keydown":case"keyup":wx(Oe,p,_e)}var wt;if(am)e:{switch(i){case"compositionstart":var Pt="onCompositionStart";break e;case"compositionend":Pt="onCompositionEnd";break e;case"compositionupdate":Pt="onCompositionUpdate";break e}Pt=void 0}else sl?cx(i,p)&&(Pt="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Pt="onCompositionStart");Pt&&(ax&&p.locale!=="ko"&&(sl||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&sl&&(wt=tx()):(wa=_e,em="value"in wa?wa.value:wa.textContent,sl=!0)),bt=Gd(be,Pt),0<bt.length&&(Pt=new ox(Pt,i,null,p,_e),Oe.push({event:Pt,listeners:bt}),wt?Pt.data=wt:(wt=ux(p),wt!==null&&(Pt.data=wt)))),(wt=Wj?qj(i,p):Gj(i,p))&&(be=Gd(be,"onBeforeInput"),0<be.length&&(_e=new ox("onBeforeInput","beforeinput",null,p,_e),Oe.push({event:_e,listeners:be}),_e.data=wt))}Mx(Oe,s)})}function Uc(i,s,p){return{instance:i,listener:s,currentTarget:p}}function Gd(i,s){for(var p=s+"Capture",g=[];i!==null;){var S=i,E=S.stateNode;S.tag===5&&E!==null&&(S=E,E=at(i,p),E!=null&&g.unshift(Uc(i,E,S)),E=at(i,s),E!=null&&g.push(Uc(i,E,S))),i=i.return}return g}function ul(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Ax(i,s,p,g,S){for(var E=s._reactName,N=[];p!==null&&p!==g;){var te=p,se=te.alternate,be=te.stateNode;if(se!==null&&se===g)break;te.tag===5&&be!==null&&(te=be,S?(se=at(p,E),se!=null&&N.unshift(Uc(p,se,te))):S||(se=at(p,E),se!=null&&N.push(Uc(p,se,te)))),p=p.return}N.length!==0&&i.push({event:s,listeners:N})}var sP=/\r\n?/g,lP=/\u0000|\uFFFD/g;function _x(i){return(typeof i=="string"?i:""+i).replace(sP,`
|
|
38
|
+
`).replace(lP,"")}function Xd(i,s,p){if(s=_x(s),_x(i)!==s&&p)throw Error(r(425))}function Kd(){}var ym=null,vm=null;function xm(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var bm=typeof setTimeout=="function"?setTimeout:void 0,cP=typeof clearTimeout=="function"?clearTimeout:void 0,Lx=typeof Promise=="function"?Promise:void 0,uP=typeof queueMicrotask=="function"?queueMicrotask:typeof Lx<"u"?function(i){return Lx.resolve(null).then(i).catch(dP)}:bm;function dP(i){setTimeout(function(){throw i})}function wm(i,s){var p=s,g=0;do{var S=p.nextSibling;if(i.removeChild(p),S&&S.nodeType===8)if(p=S.data,p==="/$"){if(g===0){i.removeChild(S),Lc(s);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=S}while(p);Lc(s)}function Ca(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function Ox(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(s===0)return i;s--}else p==="/$"&&s++}i=i.previousSibling}return null}var dl=Math.random().toString(36).slice(2),hi="__reactFiber$"+dl,Wc="__reactProps$"+dl,Ui="__reactContainer$"+dl,Sm="__reactEvents$"+dl,pP="__reactListeners$"+dl,fP="__reactHandles$"+dl;function hs(i){var s=i[hi];if(s)return s;for(var p=i.parentNode;p;){if(s=p[Ui]||p[hi]){if(p=s.alternate,s.child!==null||p!==null&&p.child!==null)for(i=Ox(i);i!==null;){if(p=i[hi])return p;i=Ox(i)}return s}i=p,p=i.parentNode}return null}function qc(i){return i=i[hi]||i[Ui],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function pl(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(r(33))}function Qd(i){return i[Wc]||null}var Cm=[],fl=-1;function Ea(i){return{current:i}}function br(i){0>fl||(i.current=Cm[fl],Cm[fl]=null,fl--)}function gr(i,s){fl++,Cm[fl]=i.current,i.current=s}var Ta={},wn=Ea(Ta),Hn=Ea(!1),ms=Ta;function hl(i,s){var p=i.type.contextTypes;if(!p)return Ta;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===s)return g.__reactInternalMemoizedMaskedChildContext;var S={},E;for(E in p)S[E]=s[E];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=S),S}function Vn(i){return i=i.childContextTypes,i!=null}function Yd(){br(Hn),br(wn)}function Nx(i,s,p){if(wn.current!==Ta)throw Error(r(168));gr(wn,s),gr(Hn,p)}function $x(i,s,p){var g=i.stateNode;if(s=s.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var S in g)if(!(S in s))throw Error(r(108,he(i)||"Unknown",S));return Q({},p,g)}function Jd(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Ta,ms=wn.current,gr(wn,i),gr(Hn,Hn.current),!0}function Bx(i,s,p){var g=i.stateNode;if(!g)throw Error(r(169));p?(i=$x(i,s,ms),g.__reactInternalMemoizedMergedChildContext=i,br(Hn),br(wn),gr(wn,i)):br(Hn),gr(Hn,p)}var Wi=null,Zd=!1,Em=!1;function zx(i){Wi===null?Wi=[i]:Wi.push(i)}function hP(i){Zd=!0,zx(i)}function ka(){if(!Em&&Wi!==null){Em=!0;var i=0,s=ar;try{var p=Wi;for(ar=1;i<p.length;i++){var g=p[i];do g=g(!0);while(g!==null)}Wi=null,Zd=!1}catch(S){throw Wi!==null&&(Wi=Wi.slice(i+1)),ot(ga,ka),S}finally{ar=s,Em=!1}}return null}var ml=[],gl=0,ep=null,tp=0,To=[],ko=0,gs=null,qi=1,Gi="";function ys(i,s){ml[gl++]=tp,ml[gl++]=ep,ep=i,tp=s}function Dx(i,s,p){To[ko++]=qi,To[ko++]=Gi,To[ko++]=gs,gs=i;var g=qi;i=Gi;var S=32-Go(g)-1;g&=~(1<<S),p+=1;var E=32-Go(s)+S;if(30<E){var N=S-S%5;E=(g&(1<<N)-1).toString(32),g>>=N,S-=N,qi=1<<32-Go(s)+S|p<<S|g,Gi=E+i}else qi=1<<E|p<<S|g,Gi=i}function Tm(i){i.return!==null&&(ys(i,1),Dx(i,1,0))}function km(i){for(;i===ep;)ep=ml[--gl],ml[gl]=null,tp=ml[--gl],ml[gl]=null;for(;i===gs;)gs=To[--ko],To[ko]=null,Gi=To[--ko],To[ko]=null,qi=To[--ko],To[ko]=null}var po=null,fo=null,Cr=!1,Ko=null;function Fx(i,s){var p=Mo(5,null,null,0);p.elementType="DELETED",p.stateNode=s,p.return=i,s=i.deletions,s===null?(i.deletions=[p],i.flags|=16):s.push(p)}function Hx(i,s){switch(i.tag){case 5:var p=i.type;return s=s.nodeType!==1||p.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,po=i,fo=Ca(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,po=i,fo=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(p=gs!==null?{id:qi,overflow:Gi}:null,i.memoizedState={dehydrated:s,treeContext:p,retryLane:1073741824},p=Mo(18,null,null,0),p.stateNode=s,p.return=i,i.child=p,po=i,fo=null,!0):!1;default:return!1}}function jm(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Pm(i){if(Cr){var s=fo;if(s){var p=s;if(!Hx(i,s)){if(jm(i))throw Error(r(418));s=Ca(p.nextSibling);var g=po;s&&Hx(i,s)?Fx(g,p):(i.flags=i.flags&-4097|2,Cr=!1,po=i)}}else{if(jm(i))throw Error(r(418));i.flags=i.flags&-4097|2,Cr=!1,po=i}}}function Vx(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;po=i}function rp(i){if(i!==po)return!1;if(!Cr)return Vx(i),Cr=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!xm(i.type,i.memoizedProps)),s&&(s=fo)){if(jm(i))throw Ux(),Error(r(418));for(;s;)Fx(i,s),s=Ca(s.nextSibling)}if(Vx(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var p=i.data;if(p==="/$"){if(s===0){fo=Ca(i.nextSibling);break e}s--}else p!=="$"&&p!=="$!"&&p!=="$?"||s++}i=i.nextSibling}fo=null}}else fo=po?Ca(i.stateNode.nextSibling):null;return!0}function Ux(){for(var i=fo;i;)i=Ca(i.nextSibling)}function yl(){fo=po=null,Cr=!1}function Im(i){Ko===null?Ko=[i]:Ko.push(i)}var mP=T.ReactCurrentBatchConfig;function Gc(i,s,p){if(i=p.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var g=p.stateNode}if(!g)throw Error(r(147,i));var S=g,E=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===E?s.ref:(s=function(N){var te=S.refs;N===null?delete te[E]:te[E]=N},s._stringRef=E,s)}if(typeof i!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,i))}return i}function np(i,s){throw i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function Wx(i){var s=i._init;return s(i._payload)}function qx(i){function s(me,ue){if(i){var ge=me.deletions;ge===null?(me.deletions=[ue],me.flags|=16):ge.push(ue)}}function p(me,ue){if(!i)return null;for(;ue!==null;)s(me,ue),ue=ue.sibling;return null}function g(me,ue){for(me=new Map;ue!==null;)ue.key!==null?me.set(ue.key,ue):me.set(ue.index,ue),ue=ue.sibling;return me}function S(me,ue){return me=La(me,ue),me.index=0,me.sibling=null,me}function E(me,ue,ge){return me.index=ge,i?(ge=me.alternate,ge!==null?(ge=ge.index,ge<ue?(me.flags|=2,ue):ge):(me.flags|=2,ue)):(me.flags|=1048576,ue)}function N(me){return i&&me.alternate===null&&(me.flags|=2),me}function te(me,ue,ge,De){return ue===null||ue.tag!==6?(ue=bg(ge,me.mode,De),ue.return=me,ue):(ue=S(ue,ge),ue.return=me,ue)}function se(me,ue,ge,De){var mt=ge.type;return mt===L?_e(me,ue,ge.props.children,De,ge.key):ue!==null&&(ue.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===U&&Wx(mt)===ue.type)?(De=S(ue,ge.props),De.ref=Gc(me,ue,ge),De.return=me,De):(De=jp(ge.type,ge.key,ge.props,null,me.mode,De),De.ref=Gc(me,ue,ge),De.return=me,De)}function be(me,ue,ge,De){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==ge.containerInfo||ue.stateNode.implementation!==ge.implementation?(ue=wg(ge,me.mode,De),ue.return=me,ue):(ue=S(ue,ge.children||[]),ue.return=me,ue)}function _e(me,ue,ge,De,mt){return ue===null||ue.tag!==7?(ue=Ts(ge,me.mode,De,mt),ue.return=me,ue):(ue=S(ue,ge),ue.return=me,ue)}function Oe(me,ue,ge){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=bg(""+ue,me.mode,ge),ue.return=me,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case M:return ge=jp(ue.type,ue.key,ue.props,null,me.mode,ge),ge.ref=Gc(me,null,ue),ge.return=me,ge;case R:return ue=wg(ue,me.mode,ge),ue.return=me,ue;case U:var De=ue._init;return Oe(me,De(ue._payload),ge)}if(We(ue)||Z(ue))return ue=Ts(ue,me.mode,ge,null),ue.return=me,ue;np(me,ue)}return null}function Ae(me,ue,ge,De){var mt=ue!==null?ue.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return mt!==null?null:te(me,ue,""+ge,De);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case M:return ge.key===mt?se(me,ue,ge,De):null;case R:return ge.key===mt?be(me,ue,ge,De):null;case U:return mt=ge._init,Ae(me,ue,mt(ge._payload),De)}if(We(ge)||Z(ge))return mt!==null?null:_e(me,ue,ge,De,null);np(me,ge)}return null}function it(me,ue,ge,De,mt){if(typeof De=="string"&&De!==""||typeof De=="number")return me=me.get(ge)||null,te(ue,me,""+De,mt);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case M:return me=me.get(De.key===null?ge:De.key)||null,se(ue,me,De,mt);case R:return me=me.get(De.key===null?ge:De.key)||null,be(ue,me,De,mt);case U:var bt=De._init;return it(me,ue,ge,bt(De._payload),mt)}if(We(De)||Z(De))return me=me.get(ge)||null,_e(ue,me,De,mt,null);np(ue,De)}return null}function ct(me,ue,ge,De){for(var mt=null,bt=null,wt=ue,Pt=ue=0,on=null;wt!==null&&Pt<ge.length;Pt++){wt.index>Pt?(on=wt,wt=null):on=wt.sibling;var Jt=Ae(me,wt,ge[Pt],De);if(Jt===null){wt===null&&(wt=on);break}i&&wt&&Jt.alternate===null&&s(me,wt),ue=E(Jt,ue,Pt),bt===null?mt=Jt:bt.sibling=Jt,bt=Jt,wt=on}if(Pt===ge.length)return p(me,wt),Cr&&ys(me,Pt),mt;if(wt===null){for(;Pt<ge.length;Pt++)wt=Oe(me,ge[Pt],De),wt!==null&&(ue=E(wt,ue,Pt),bt===null?mt=wt:bt.sibling=wt,bt=wt);return Cr&&ys(me,Pt),mt}for(wt=g(me,wt);Pt<ge.length;Pt++)on=it(wt,me,Pt,ge[Pt],De),on!==null&&(i&&on.alternate!==null&&wt.delete(on.key===null?Pt:on.key),ue=E(on,ue,Pt),bt===null?mt=on:bt.sibling=on,bt=on);return i&&wt.forEach(function(Oa){return s(me,Oa)}),Cr&&ys(me,Pt),mt}function pt(me,ue,ge,De){var mt=Z(ge);if(typeof mt!="function")throw Error(r(150));if(ge=mt.call(ge),ge==null)throw Error(r(151));for(var bt=mt=null,wt=ue,Pt=ue=0,on=null,Jt=ge.next();wt!==null&&!Jt.done;Pt++,Jt=ge.next()){wt.index>Pt?(on=wt,wt=null):on=wt.sibling;var Oa=Ae(me,wt,Jt.value,De);if(Oa===null){wt===null&&(wt=on);break}i&&wt&&Oa.alternate===null&&s(me,wt),ue=E(Oa,ue,Pt),bt===null?mt=Oa:bt.sibling=Oa,bt=Oa,wt=on}if(Jt.done)return p(me,wt),Cr&&ys(me,Pt),mt;if(wt===null){for(;!Jt.done;Pt++,Jt=ge.next())Jt=Oe(me,Jt.value,De),Jt!==null&&(ue=E(Jt,ue,Pt),bt===null?mt=Jt:bt.sibling=Jt,bt=Jt);return Cr&&ys(me,Pt),mt}for(wt=g(me,wt);!Jt.done;Pt++,Jt=ge.next())Jt=it(wt,me,Pt,Jt.value,De),Jt!==null&&(i&&Jt.alternate!==null&&wt.delete(Jt.key===null?Pt:Jt.key),ue=E(Jt,ue,Pt),bt===null?mt=Jt:bt.sibling=Jt,bt=Jt);return i&&wt.forEach(function(XP){return s(me,XP)}),Cr&&ys(me,Pt),mt}function Or(me,ue,ge,De){if(typeof ge=="object"&&ge!==null&&ge.type===L&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case M:e:{for(var mt=ge.key,bt=ue;bt!==null;){if(bt.key===mt){if(mt=ge.type,mt===L){if(bt.tag===7){p(me,bt.sibling),ue=S(bt,ge.props.children),ue.return=me,me=ue;break e}}else if(bt.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===U&&Wx(mt)===bt.type){p(me,bt.sibling),ue=S(bt,ge.props),ue.ref=Gc(me,bt,ge),ue.return=me,me=ue;break e}p(me,bt);break}else s(me,bt);bt=bt.sibling}ge.type===L?(ue=Ts(ge.props.children,me.mode,De,ge.key),ue.return=me,me=ue):(De=jp(ge.type,ge.key,ge.props,null,me.mode,De),De.ref=Gc(me,ue,ge),De.return=me,me=De)}return N(me);case R:e:{for(bt=ge.key;ue!==null;){if(ue.key===bt)if(ue.tag===4&&ue.stateNode.containerInfo===ge.containerInfo&&ue.stateNode.implementation===ge.implementation){p(me,ue.sibling),ue=S(ue,ge.children||[]),ue.return=me,me=ue;break e}else{p(me,ue);break}else s(me,ue);ue=ue.sibling}ue=wg(ge,me.mode,De),ue.return=me,me=ue}return N(me);case U:return bt=ge._init,Or(me,ue,bt(ge._payload),De)}if(We(ge))return ct(me,ue,ge,De);if(Z(ge))return pt(me,ue,ge,De);np(me,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ue!==null&&ue.tag===6?(p(me,ue.sibling),ue=S(ue,ge),ue.return=me,me=ue):(p(me,ue),ue=bg(ge,me.mode,De),ue.return=me,me=ue),N(me)):p(me,ue)}return Or}var vl=qx(!0),Gx=qx(!1),op=Ea(null),ip=null,xl=null,Mm=null;function Rm(){Mm=xl=ip=null}function Am(i){var s=op.current;br(op),i._currentValue=s}function _m(i,s,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),i===p)break;i=i.return}}function bl(i,s){ip=i,Mm=xl=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Un=!0),i.firstContext=null)}function jo(i){var s=i._currentValue;if(Mm!==i)if(i={context:i,memoizedValue:s,next:null},xl===null){if(ip===null)throw Error(r(308));xl=i,ip.dependencies={lanes:0,firstContext:i}}else xl=xl.next=i;return s}var vs=null;function Lm(i){vs===null?vs=[i]:vs.push(i)}function Xx(i,s,p,g){var S=s.interleaved;return S===null?(p.next=p,Lm(s)):(p.next=S.next,S.next=p),s.interleaved=p,Xi(i,g)}function Xi(i,s){i.lanes|=s;var p=i.alternate;for(p!==null&&(p.lanes|=s),p=i,i=i.return;i!==null;)i.childLanes|=s,p=i.alternate,p!==null&&(p.childLanes|=s),p=i,i=i.return;return p.tag===3?p.stateNode:null}var ja=!1;function Om(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kx(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ki(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Pa(i,s,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(Xt&2)!==0){var S=g.pending;return S===null?s.next=s:(s.next=S.next,S.next=s),g.pending=s,Xi(i,p)}return S=g.interleaved,S===null?(s.next=s,Lm(g)):(s.next=S.next,S.next=s),g.interleaved=s,Xi(i,p)}function ap(i,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var g=s.lanes;g&=i.pendingLanes,p|=g,s.lanes=p,Kh(i,p)}}function Qx(i,s){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var S=null,E=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};E===null?S=E=N:E=E.next=N,p=p.next}while(p!==null);E===null?S=E=s:E=E.next=s}else S=E=s;p={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:E,shared:g.shared,effects:g.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=s:i.next=s,p.lastBaseUpdate=s}function sp(i,s,p,g){var S=i.updateQueue;ja=!1;var E=S.firstBaseUpdate,N=S.lastBaseUpdate,te=S.shared.pending;if(te!==null){S.shared.pending=null;var se=te,be=se.next;se.next=null,N===null?E=be:N.next=be,N=se;var _e=i.alternate;_e!==null&&(_e=_e.updateQueue,te=_e.lastBaseUpdate,te!==N&&(te===null?_e.firstBaseUpdate=be:te.next=be,_e.lastBaseUpdate=se))}if(E!==null){var Oe=S.baseState;N=0,_e=be=se=null,te=E;do{var Ae=te.lane,it=te.eventTime;if((g&Ae)===Ae){_e!==null&&(_e=_e.next={eventTime:it,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var ct=i,pt=te;switch(Ae=s,it=p,pt.tag){case 1:if(ct=pt.payload,typeof ct=="function"){Oe=ct.call(it,Oe,Ae);break e}Oe=ct;break e;case 3:ct.flags=ct.flags&-65537|128;case 0:if(ct=pt.payload,Ae=typeof ct=="function"?ct.call(it,Oe,Ae):ct,Ae==null)break e;Oe=Q({},Oe,Ae);break e;case 2:ja=!0}}te.callback!==null&&te.lane!==0&&(i.flags|=64,Ae=S.effects,Ae===null?S.effects=[te]:Ae.push(te))}else it={eventTime:it,lane:Ae,tag:te.tag,payload:te.payload,callback:te.callback,next:null},_e===null?(be=_e=it,se=Oe):_e=_e.next=it,N|=Ae;if(te=te.next,te===null){if(te=S.shared.pending,te===null)break;Ae=te,te=Ae.next,Ae.next=null,S.lastBaseUpdate=Ae,S.shared.pending=null}}while(!0);if(_e===null&&(se=Oe),S.baseState=se,S.firstBaseUpdate=be,S.lastBaseUpdate=_e,s=S.shared.interleaved,s!==null){S=s;do N|=S.lane,S=S.next;while(S!==s)}else E===null&&(S.shared.lanes=0);ws|=N,i.lanes=N,i.memoizedState=Oe}}function Yx(i,s,p){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var g=i[s],S=g.callback;if(S!==null){if(g.callback=null,g=p,typeof S!="function")throw Error(r(191,S));S.call(g)}}}var Xc={},mi=Ea(Xc),Kc=Ea(Xc),Qc=Ea(Xc);function xs(i){if(i===Xc)throw Error(r(174));return i}function Nm(i,s){switch(gr(Qc,s),gr(Kc,i),gr(mi,Xc),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:je(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=je(s,i)}br(mi),gr(mi,s)}function wl(){br(mi),br(Kc),br(Qc)}function Jx(i){xs(Qc.current);var s=xs(mi.current),p=je(s,i.type);s!==p&&(gr(Kc,i),gr(mi,p))}function $m(i){Kc.current===i&&(br(mi),br(Kc))}var kr=Ea(0);function lp(i){for(var s=i;s!==null;){if(s.tag===13){var p=s.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Bm=[];function zm(){for(var i=0;i<Bm.length;i++)Bm[i]._workInProgressVersionPrimary=null;Bm.length=0}var cp=T.ReactCurrentDispatcher,Dm=T.ReactCurrentBatchConfig,bs=0,jr=null,Yr=null,rn=null,up=!1,Yc=!1,Jc=0,gP=0;function Sn(){throw Error(r(321))}function Fm(i,s){if(s===null)return!1;for(var p=0;p<s.length&&p<i.length;p++)if(!Xo(i[p],s[p]))return!1;return!0}function Hm(i,s,p,g,S,E){if(bs=E,jr=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,cp.current=i===null||i.memoizedState===null?bP:wP,i=p(g,S),Yc){E=0;do{if(Yc=!1,Jc=0,25<=E)throw Error(r(301));E+=1,rn=Yr=null,s.updateQueue=null,cp.current=SP,i=p(g,S)}while(Yc)}if(cp.current=fp,s=Yr!==null&&Yr.next!==null,bs=0,rn=Yr=jr=null,up=!1,s)throw Error(r(300));return i}function Vm(){var i=Jc!==0;return Jc=0,i}function gi(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?jr.memoizedState=rn=i:rn=rn.next=i,rn}function Po(){if(Yr===null){var i=jr.alternate;i=i!==null?i.memoizedState:null}else i=Yr.next;var s=rn===null?jr.memoizedState:rn.next;if(s!==null)rn=s,Yr=i;else{if(i===null)throw Error(r(310));Yr=i,i={memoizedState:Yr.memoizedState,baseState:Yr.baseState,baseQueue:Yr.baseQueue,queue:Yr.queue,next:null},rn===null?jr.memoizedState=rn=i:rn=rn.next=i}return rn}function Zc(i,s){return typeof s=="function"?s(i):s}function Um(i){var s=Po(),p=s.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=Yr,S=g.baseQueue,E=p.pending;if(E!==null){if(S!==null){var N=S.next;S.next=E.next,E.next=N}g.baseQueue=S=E,p.pending=null}if(S!==null){E=S.next,g=g.baseState;var te=N=null,se=null,be=E;do{var _e=be.lane;if((bs&_e)===_e)se!==null&&(se=se.next={lane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),g=be.hasEagerState?be.eagerState:i(g,be.action);else{var Oe={lane:_e,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};se===null?(te=se=Oe,N=g):se=se.next=Oe,jr.lanes|=_e,ws|=_e}be=be.next}while(be!==null&&be!==E);se===null?N=g:se.next=te,Xo(g,s.memoizedState)||(Un=!0),s.memoizedState=g,s.baseState=N,s.baseQueue=se,p.lastRenderedState=g}if(i=p.interleaved,i!==null){S=i;do E=S.lane,jr.lanes|=E,ws|=E,S=S.next;while(S!==i)}else S===null&&(p.lanes=0);return[s.memoizedState,p.dispatch]}function Wm(i){var s=Po(),p=s.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,S=p.pending,E=s.memoizedState;if(S!==null){p.pending=null;var N=S=S.next;do E=i(E,N.action),N=N.next;while(N!==S);Xo(E,s.memoizedState)||(Un=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),p.lastRenderedState=E}return[E,g]}function Zx(){}function eb(i,s){var p=jr,g=Po(),S=s(),E=!Xo(g.memoizedState,S);if(E&&(g.memoizedState=S,Un=!0),g=g.queue,qm(nb.bind(null,p,g,i),[i]),g.getSnapshot!==s||E||rn!==null&&rn.memoizedState.tag&1){if(p.flags|=2048,eu(9,rb.bind(null,p,g,S,s),void 0,null),nn===null)throw Error(r(349));(bs&30)!==0||tb(p,s,S)}return S}function tb(i,s,p){i.flags|=16384,i={getSnapshot:s,value:p},s=jr.updateQueue,s===null?(s={lastEffect:null,stores:null},jr.updateQueue=s,s.stores=[i]):(p=s.stores,p===null?s.stores=[i]:p.push(i))}function rb(i,s,p,g){s.value=p,s.getSnapshot=g,ob(s)&&ib(i)}function nb(i,s,p){return p(function(){ob(s)&&ib(i)})}function ob(i){var s=i.getSnapshot;i=i.value;try{var p=s();return!Xo(i,p)}catch{return!0}}function ib(i){var s=Xi(i,1);s!==null&&Zo(s,i,1,-1)}function ab(i){var s=gi();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zc,lastRenderedState:i},s.queue=i,i=i.dispatch=xP.bind(null,jr,i),[s.memoizedState,i]}function eu(i,s,p,g){return i={tag:i,create:s,destroy:p,deps:g,next:null},s=jr.updateQueue,s===null?(s={lastEffect:null,stores:null},jr.updateQueue=s,s.lastEffect=i.next=i):(p=s.lastEffect,p===null?s.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,s.lastEffect=i)),i}function sb(){return Po().memoizedState}function dp(i,s,p,g){var S=gi();jr.flags|=i,S.memoizedState=eu(1|s,p,void 0,g===void 0?null:g)}function pp(i,s,p,g){var S=Po();g=g===void 0?null:g;var E=void 0;if(Yr!==null){var N=Yr.memoizedState;if(E=N.destroy,g!==null&&Fm(g,N.deps)){S.memoizedState=eu(s,p,E,g);return}}jr.flags|=i,S.memoizedState=eu(1|s,p,E,g)}function lb(i,s){return dp(8390656,8,i,s)}function qm(i,s){return pp(2048,8,i,s)}function cb(i,s){return pp(4,2,i,s)}function ub(i,s){return pp(4,4,i,s)}function db(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function pb(i,s,p){return p=p!=null?p.concat([i]):null,pp(4,4,db.bind(null,s,i),p)}function Gm(){}function fb(i,s){var p=Po();s=s===void 0?null:s;var g=p.memoizedState;return g!==null&&s!==null&&Fm(s,g[1])?g[0]:(p.memoizedState=[i,s],i)}function hb(i,s){var p=Po();s=s===void 0?null:s;var g=p.memoizedState;return g!==null&&s!==null&&Fm(s,g[1])?g[0]:(i=i(),p.memoizedState=[i,s],i)}function mb(i,s,p){return(bs&21)===0?(i.baseState&&(i.baseState=!1,Un=!0),i.memoizedState=p):(Xo(p,s)||(p=W0(),jr.lanes|=p,ws|=p,i.baseState=!0),s)}function yP(i,s){var p=ar;ar=p!==0&&4>p?p:4,i(!0);var g=Dm.transition;Dm.transition={};try{i(!1),s()}finally{ar=p,Dm.transition=g}}function gb(){return Po().memoizedState}function vP(i,s,p){var g=Aa(i);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},yb(i))vb(s,p);else if(p=Xx(i,s,p,g),p!==null){var S=An();Zo(p,i,g,S),xb(p,s,g)}}function xP(i,s,p){var g=Aa(i),S={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(yb(i))vb(s,S);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null))try{var N=s.lastRenderedState,te=E(N,p);if(S.hasEagerState=!0,S.eagerState=te,Xo(te,N)){var se=s.interleaved;se===null?(S.next=S,Lm(s)):(S.next=se.next,se.next=S),s.interleaved=S;return}}catch{}finally{}p=Xx(i,s,S,g),p!==null&&(S=An(),Zo(p,i,g,S),xb(p,s,g))}}function yb(i){var s=i.alternate;return i===jr||s!==null&&s===jr}function vb(i,s){Yc=up=!0;var p=i.pending;p===null?s.next=s:(s.next=p.next,p.next=s),i.pending=s}function xb(i,s,p){if((p&4194240)!==0){var g=s.lanes;g&=i.pendingLanes,p|=g,s.lanes=p,Kh(i,p)}}var fp={readContext:jo,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},bP={readContext:jo,useCallback:function(i,s){return gi().memoizedState=[i,s===void 0?null:s],i},useContext:jo,useEffect:lb,useImperativeHandle:function(i,s,p){return p=p!=null?p.concat([i]):null,dp(4194308,4,db.bind(null,s,i),p)},useLayoutEffect:function(i,s){return dp(4194308,4,i,s)},useInsertionEffect:function(i,s){return dp(4,2,i,s)},useMemo:function(i,s){var p=gi();return s=s===void 0?null:s,i=i(),p.memoizedState=[i,s],i},useReducer:function(i,s,p){var g=gi();return s=p!==void 0?p(s):s,g.memoizedState=g.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},g.queue=i,i=i.dispatch=vP.bind(null,jr,i),[g.memoizedState,i]},useRef:function(i){var s=gi();return i={current:i},s.memoizedState=i},useState:ab,useDebugValue:Gm,useDeferredValue:function(i){return gi().memoizedState=i},useTransition:function(){var i=ab(!1),s=i[0];return i=yP.bind(null,i[1]),gi().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,p){var g=jr,S=gi();if(Cr){if(p===void 0)throw Error(r(407));p=p()}else{if(p=s(),nn===null)throw Error(r(349));(bs&30)!==0||tb(g,s,p)}S.memoizedState=p;var E={value:p,getSnapshot:s};return S.queue=E,lb(nb.bind(null,g,E,i),[i]),g.flags|=2048,eu(9,rb.bind(null,g,E,p,s),void 0,null),p},useId:function(){var i=gi(),s=nn.identifierPrefix;if(Cr){var p=Gi,g=qi;p=(g&~(1<<32-Go(g)-1)).toString(32)+p,s=":"+s+"R"+p,p=Jc++,0<p&&(s+="H"+p.toString(32)),s+=":"}else p=gP++,s=":"+s+"r"+p.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},wP={readContext:jo,useCallback:fb,useContext:jo,useEffect:qm,useImperativeHandle:pb,useInsertionEffect:cb,useLayoutEffect:ub,useMemo:hb,useReducer:Um,useRef:sb,useState:function(){return Um(Zc)},useDebugValue:Gm,useDeferredValue:function(i){var s=Po();return mb(s,Yr.memoizedState,i)},useTransition:function(){var i=Um(Zc)[0],s=Po().memoizedState;return[i,s]},useMutableSource:Zx,useSyncExternalStore:eb,useId:gb,unstable_isNewReconciler:!1},SP={readContext:jo,useCallback:fb,useContext:jo,useEffect:qm,useImperativeHandle:pb,useInsertionEffect:cb,useLayoutEffect:ub,useMemo:hb,useReducer:Wm,useRef:sb,useState:function(){return Wm(Zc)},useDebugValue:Gm,useDeferredValue:function(i){var s=Po();return Yr===null?s.memoizedState=i:mb(s,Yr.memoizedState,i)},useTransition:function(){var i=Wm(Zc)[0],s=Po().memoizedState;return[i,s]},useMutableSource:Zx,useSyncExternalStore:eb,useId:gb,unstable_isNewReconciler:!1};function Qo(i,s){if(i&&i.defaultProps){s=Q({},s),i=i.defaultProps;for(var p in i)s[p]===void 0&&(s[p]=i[p]);return s}return s}function Xm(i,s,p,g){s=i.memoizedState,p=p(g,s),p=p==null?s:Q({},s,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var hp={isMounted:function(i){return(i=i._reactInternals)?bn(i)===i:!1},enqueueSetState:function(i,s,p){i=i._reactInternals;var g=An(),S=Aa(i),E=Ki(g,S);E.payload=s,p!=null&&(E.callback=p),s=Pa(i,E,S),s!==null&&(Zo(s,i,S,g),ap(s,i,S))},enqueueReplaceState:function(i,s,p){i=i._reactInternals;var g=An(),S=Aa(i),E=Ki(g,S);E.tag=1,E.payload=s,p!=null&&(E.callback=p),s=Pa(i,E,S),s!==null&&(Zo(s,i,S,g),ap(s,i,S))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var p=An(),g=Aa(i),S=Ki(p,g);S.tag=2,s!=null&&(S.callback=s),s=Pa(i,S,g),s!==null&&(Zo(s,i,g,p),ap(s,i,g))}};function bb(i,s,p,g,S,E,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,E,N):s.prototype&&s.prototype.isPureReactComponent?!Dc(p,g)||!Dc(S,E):!0}function wb(i,s,p){var g=!1,S=Ta,E=s.contextType;return typeof E=="object"&&E!==null?E=jo(E):(S=Vn(s)?ms:wn.current,g=s.contextTypes,E=(g=g!=null)?hl(i,S):Ta),s=new s(p,E),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hp,i.stateNode=s,s._reactInternals=i,g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=S,i.__reactInternalMemoizedMaskedChildContext=E),s}function Sb(i,s,p,g){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(p,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(p,g),s.state!==i&&hp.enqueueReplaceState(s,s.state,null)}function Km(i,s,p,g){var S=i.stateNode;S.props=p,S.state=i.memoizedState,S.refs={},Om(i);var E=s.contextType;typeof E=="object"&&E!==null?S.context=jo(E):(E=Vn(s)?ms:wn.current,S.context=hl(i,E)),S.state=i.memoizedState,E=s.getDerivedStateFromProps,typeof E=="function"&&(Xm(i,s,E,p),S.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(s=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),s!==S.state&&hp.enqueueReplaceState(S,S.state,null),sp(i,p,S,g),S.state=i.memoizedState),typeof S.componentDidMount=="function"&&(i.flags|=4194308)}function Sl(i,s){try{var p="",g=s;do p+=oe(g),g=g.return;while(g);var S=p}catch(E){S=`
|
|
39
|
+
Error generating stack: `+E.message+`
|
|
40
|
+
`+E.stack}return{value:i,source:s,stack:S,digest:null}}function Qm(i,s,p){return{value:i,source:null,stack:p??null,digest:s??null}}function Ym(i,s){try{console.error(s.value)}catch(p){setTimeout(function(){throw p})}}var CP=typeof WeakMap=="function"?WeakMap:Map;function Cb(i,s,p){p=Ki(-1,p),p.tag=3,p.payload={element:null};var g=s.value;return p.callback=function(){wp||(wp=!0,pg=g),Ym(i,s)},p}function Eb(i,s,p){p=Ki(-1,p),p.tag=3;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var S=s.value;p.payload=function(){return g(S)},p.callback=function(){Ym(i,s)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(p.callback=function(){Ym(i,s),typeof g!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var N=s.stack;this.componentDidCatch(s.value,{componentStack:N!==null?N:""})}),p}function Tb(i,s,p){var g=i.pingCache;if(g===null){g=i.pingCache=new CP;var S=new Set;g.set(s,S)}else S=g.get(s),S===void 0&&(S=new Set,g.set(s,S));S.has(p)||(S.add(p),i=$P.bind(null,i,s,p),s.then(i,i))}function kb(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function jb(i,s,p,g,S){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(s=Ki(-1,1),s.tag=2,Pa(p,s,1))),p.lanes|=1),i):(i.flags|=65536,i.lanes=S,i)}var EP=T.ReactCurrentOwner,Un=!1;function Rn(i,s,p,g){s.child=i===null?Gx(s,null,p,g):vl(s,i.child,p,g)}function Pb(i,s,p,g,S){p=p.render;var E=s.ref;return bl(s,S),g=Hm(i,s,p,g,E,S),p=Vm(),i!==null&&!Un?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~S,Qi(i,s,S)):(Cr&&p&&Tm(s),s.flags|=1,Rn(i,s,g,S),s.child)}function Ib(i,s,p,g,S){if(i===null){var E=p.type;return typeof E=="function"&&!xg(E)&&E.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(s.tag=15,s.type=E,Mb(i,s,E,g,S)):(i=jp(p.type,null,g,s,s.mode,S),i.ref=s.ref,i.return=s,s.child=i)}if(E=i.child,(i.lanes&S)===0){var N=E.memoizedProps;if(p=p.compare,p=p!==null?p:Dc,p(N,g)&&i.ref===s.ref)return Qi(i,s,S)}return s.flags|=1,i=La(E,g),i.ref=s.ref,i.return=s,s.child=i}function Mb(i,s,p,g,S){if(i!==null){var E=i.memoizedProps;if(Dc(E,g)&&i.ref===s.ref)if(Un=!1,s.pendingProps=g=E,(i.lanes&S)!==0)(i.flags&131072)!==0&&(Un=!0);else return s.lanes=i.lanes,Qi(i,s,S)}return Jm(i,s,p,g,S)}function Rb(i,s,p){var g=s.pendingProps,S=g.children,E=i!==null?i.memoizedState:null;if(g.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},gr(El,ho),ho|=p;else{if((p&1073741824)===0)return i=E!==null?E.baseLanes|p:p,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,gr(El,ho),ho|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=E!==null?E.baseLanes:p,gr(El,ho),ho|=g}else E!==null?(g=E.baseLanes|p,s.memoizedState=null):g=p,gr(El,ho),ho|=g;return Rn(i,s,S,p),s.child}function Ab(i,s){var p=s.ref;(i===null&&p!==null||i!==null&&i.ref!==p)&&(s.flags|=512,s.flags|=2097152)}function Jm(i,s,p,g,S){var E=Vn(p)?ms:wn.current;return E=hl(s,E),bl(s,S),p=Hm(i,s,p,g,E,S),g=Vm(),i!==null&&!Un?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~S,Qi(i,s,S)):(Cr&&g&&Tm(s),s.flags|=1,Rn(i,s,p,S),s.child)}function _b(i,s,p,g,S){if(Vn(p)){var E=!0;Jd(s)}else E=!1;if(bl(s,S),s.stateNode===null)gp(i,s),wb(s,p,g),Km(s,p,g,S),g=!0;else if(i===null){var N=s.stateNode,te=s.memoizedProps;N.props=te;var se=N.context,be=p.contextType;typeof be=="object"&&be!==null?be=jo(be):(be=Vn(p)?ms:wn.current,be=hl(s,be));var _e=p.getDerivedStateFromProps,Oe=typeof _e=="function"||typeof N.getSnapshotBeforeUpdate=="function";Oe||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(te!==g||se!==be)&&Sb(s,N,g,be),ja=!1;var Ae=s.memoizedState;N.state=Ae,sp(s,g,N,S),se=s.memoizedState,te!==g||Ae!==se||Hn.current||ja?(typeof _e=="function"&&(Xm(s,p,_e,g),se=s.memoizedState),(te=ja||bb(s,p,te,g,Ae,se,be))?(Oe||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(s.flags|=4194308)):(typeof N.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=se),N.props=g,N.state=se,N.context=be,g=te):(typeof N.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{N=s.stateNode,Kx(i,s),te=s.memoizedProps,be=s.type===s.elementType?te:Qo(s.type,te),N.props=be,Oe=s.pendingProps,Ae=N.context,se=p.contextType,typeof se=="object"&&se!==null?se=jo(se):(se=Vn(p)?ms:wn.current,se=hl(s,se));var it=p.getDerivedStateFromProps;(_e=typeof it=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(te!==Oe||Ae!==se)&&Sb(s,N,g,se),ja=!1,Ae=s.memoizedState,N.state=Ae,sp(s,g,N,S);var ct=s.memoizedState;te!==Oe||Ae!==ct||Hn.current||ja?(typeof it=="function"&&(Xm(s,p,it,g),ct=s.memoizedState),(be=ja||bb(s,p,be,g,Ae,ct,se)||!1)?(_e||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(g,ct,se),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(g,ct,se)),typeof N.componentDidUpdate=="function"&&(s.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof N.componentDidUpdate!="function"||te===i.memoizedProps&&Ae===i.memoizedState||(s.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Ae===i.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=ct),N.props=g,N.state=ct,N.context=se,g=be):(typeof N.componentDidUpdate!="function"||te===i.memoizedProps&&Ae===i.memoizedState||(s.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Ae===i.memoizedState||(s.flags|=1024),g=!1)}return Zm(i,s,p,g,E,S)}function Zm(i,s,p,g,S,E){Ab(i,s);var N=(s.flags&128)!==0;if(!g&&!N)return S&&Bx(s,p,!1),Qi(i,s,E);g=s.stateNode,EP.current=s;var te=N&&typeof p.getDerivedStateFromError!="function"?null:g.render();return s.flags|=1,i!==null&&N?(s.child=vl(s,i.child,null,E),s.child=vl(s,null,te,E)):Rn(i,s,te,E),s.memoizedState=g.state,S&&Bx(s,p,!0),s.child}function Lb(i){var s=i.stateNode;s.pendingContext?Nx(i,s.pendingContext,s.pendingContext!==s.context):s.context&&Nx(i,s.context,!1),Nm(i,s.containerInfo)}function Ob(i,s,p,g,S){return yl(),Im(S),s.flags|=256,Rn(i,s,p,g),s.child}var eg={dehydrated:null,treeContext:null,retryLane:0};function tg(i){return{baseLanes:i,cachePool:null,transitions:null}}function Nb(i,s,p){var g=s.pendingProps,S=kr.current,E=!1,N=(s.flags&128)!==0,te;if((te=N)||(te=i!==null&&i.memoizedState===null?!1:(S&2)!==0),te?(E=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(S|=1),gr(kr,S&1),i===null)return Pm(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(N=g.children,i=g.fallback,E?(g=s.mode,E=s.child,N={mode:"hidden",children:N},(g&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=N):E=Pp(N,g,0,null),i=Ts(i,g,p,null),E.return=s,i.return=s,E.sibling=i,s.child=E,s.child.memoizedState=tg(p),s.memoizedState=eg,i):rg(s,N));if(S=i.memoizedState,S!==null&&(te=S.dehydrated,te!==null))return TP(i,s,N,g,te,S,p);if(E){E=g.fallback,N=s.mode,S=i.child,te=S.sibling;var se={mode:"hidden",children:g.children};return(N&1)===0&&s.child!==S?(g=s.child,g.childLanes=0,g.pendingProps=se,s.deletions=null):(g=La(S,se),g.subtreeFlags=S.subtreeFlags&14680064),te!==null?E=La(te,E):(E=Ts(E,N,p,null),E.flags|=2),E.return=s,g.return=s,g.sibling=E,s.child=g,g=E,E=s.child,N=i.child.memoizedState,N=N===null?tg(p):{baseLanes:N.baseLanes|p,cachePool:null,transitions:N.transitions},E.memoizedState=N,E.childLanes=i.childLanes&~p,s.memoizedState=eg,g}return E=i.child,i=E.sibling,g=La(E,{mode:"visible",children:g.children}),(s.mode&1)===0&&(g.lanes=p),g.return=s,g.sibling=null,i!==null&&(p=s.deletions,p===null?(s.deletions=[i],s.flags|=16):p.push(i)),s.child=g,s.memoizedState=null,g}function rg(i,s){return s=Pp({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function mp(i,s,p,g){return g!==null&&Im(g),vl(s,i.child,null,p),i=rg(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function TP(i,s,p,g,S,E,N){if(p)return s.flags&256?(s.flags&=-257,g=Qm(Error(r(422))),mp(i,s,N,g)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(E=g.fallback,S=s.mode,g=Pp({mode:"visible",children:g.children},S,0,null),E=Ts(E,S,N,null),E.flags|=2,g.return=s,E.return=s,g.sibling=E,s.child=g,(s.mode&1)!==0&&vl(s,i.child,null,N),s.child.memoizedState=tg(N),s.memoizedState=eg,E);if((s.mode&1)===0)return mp(i,s,N,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var te=g.dgst;return g=te,E=Error(r(419)),g=Qm(E,g,void 0),mp(i,s,N,g)}if(te=(N&i.childLanes)!==0,Un||te){if(g=nn,g!==null){switch(N&-N){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=(S&(g.suspendedLanes|N))!==0?0:S,S!==0&&S!==E.retryLane&&(E.retryLane=S,Xi(i,S),Zo(g,i,S,-1))}return vg(),g=Qm(Error(r(421))),mp(i,s,N,g)}return S.data==="$?"?(s.flags|=128,s.child=i.child,s=BP.bind(null,i),S._reactRetry=s,null):(i=E.treeContext,fo=Ca(S.nextSibling),po=s,Cr=!0,Ko=null,i!==null&&(To[ko++]=qi,To[ko++]=Gi,To[ko++]=gs,qi=i.id,Gi=i.overflow,gs=s),s=rg(s,g.children),s.flags|=4096,s)}function $b(i,s,p){i.lanes|=s;var g=i.alternate;g!==null&&(g.lanes|=s),_m(i.return,s,p)}function ng(i,s,p,g,S){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:S}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=g,E.tail=p,E.tailMode=S)}function Bb(i,s,p){var g=s.pendingProps,S=g.revealOrder,E=g.tail;if(Rn(i,s,g.children,p),g=kr.current,(g&2)!==0)g=g&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&$b(i,p,s);else if(i.tag===19)$b(i,p,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}if(gr(kr,g),(s.mode&1)===0)s.memoizedState=null;else switch(S){case"forwards":for(p=s.child,S=null;p!==null;)i=p.alternate,i!==null&&lp(i)===null&&(S=p),p=p.sibling;p=S,p===null?(S=s.child,s.child=null):(S=p.sibling,p.sibling=null),ng(s,!1,S,p,E);break;case"backwards":for(p=null,S=s.child,s.child=null;S!==null;){if(i=S.alternate,i!==null&&lp(i)===null){s.child=S;break}i=S.sibling,S.sibling=p,p=S,S=i}ng(s,!0,p,null,E);break;case"together":ng(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function gp(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Qi(i,s,p){if(i!==null&&(s.dependencies=i.dependencies),ws|=s.lanes,(p&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,p=La(i,i.pendingProps),s.child=p,p.return=s;i.sibling!==null;)i=i.sibling,p=p.sibling=La(i,i.pendingProps),p.return=s;p.sibling=null}return s.child}function kP(i,s,p){switch(s.tag){case 3:Lb(s),yl();break;case 5:Jx(s);break;case 1:Vn(s.type)&&Jd(s);break;case 4:Nm(s,s.stateNode.containerInfo);break;case 10:var g=s.type._context,S=s.memoizedProps.value;gr(op,g._currentValue),g._currentValue=S;break;case 13:if(g=s.memoizedState,g!==null)return g.dehydrated!==null?(gr(kr,kr.current&1),s.flags|=128,null):(p&s.child.childLanes)!==0?Nb(i,s,p):(gr(kr,kr.current&1),i=Qi(i,s,p),i!==null?i.sibling:null);gr(kr,kr.current&1);break;case 19:if(g=(p&s.childLanes)!==0,(i.flags&128)!==0){if(g)return Bb(i,s,p);s.flags|=128}if(S=s.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),gr(kr,kr.current),g)break;return null;case 22:case 23:return s.lanes=0,Rb(i,s,p)}return Qi(i,s,p)}var zb,og,Db,Fb;zb=function(i,s){for(var p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break;for(;p.sibling===null;){if(p.return===null||p.return===s)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},og=function(){},Db=function(i,s,p,g){var S=i.memoizedProps;if(S!==g){i=s.stateNode,xs(mi.current);var E=null;switch(p){case"input":S=$e(i,S),g=$e(i,g),E=[];break;case"select":S=Q({},S,{value:void 0}),g=Q({},g,{value:void 0}),E=[];break;case"textarea":S=ze(i,S),g=ze(i,g),E=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(i.onclick=Kd)}Zt(p,g);var N;p=null;for(be in S)if(!g.hasOwnProperty(be)&&S.hasOwnProperty(be)&&S[be]!=null)if(be==="style"){var te=S[be];for(N in te)te.hasOwnProperty(N)&&(p||(p={}),p[N]="")}else be!=="dangerouslySetInnerHTML"&&be!=="children"&&be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&be!=="autoFocus"&&(o.hasOwnProperty(be)?E||(E=[]):(E=E||[]).push(be,null));for(be in g){var se=g[be];if(te=S!=null?S[be]:void 0,g.hasOwnProperty(be)&&se!==te&&(se!=null||te!=null))if(be==="style")if(te){for(N in te)!te.hasOwnProperty(N)||se&&se.hasOwnProperty(N)||(p||(p={}),p[N]="");for(N in se)se.hasOwnProperty(N)&&te[N]!==se[N]&&(p||(p={}),p[N]=se[N])}else p||(E||(E=[]),E.push(be,p)),p=se;else be==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,te=te?te.__html:void 0,se!=null&&te!==se&&(E=E||[]).push(be,se)):be==="children"?typeof se!="string"&&typeof se!="number"||(E=E||[]).push(be,""+se):be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&(o.hasOwnProperty(be)?(se!=null&&be==="onScroll"&&xr("scroll",i),E||te===se||(E=[])):(E=E||[]).push(be,se))}p&&(E=E||[]).push("style",p);var be=E;(s.updateQueue=be)&&(s.flags|=4)}},Fb=function(i,s,p,g){p!==g&&(s.flags|=4)};function tu(i,s){if(!Cr)switch(i.tailMode){case"hidden":s=i.tail;for(var p=null;s!==null;)s.alternate!==null&&(p=s),s=s.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function Cn(i){var s=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(s)for(var S=i.child;S!==null;)p|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=i,S=S.sibling;else for(S=i.child;S!==null;)p|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=i,S=S.sibling;return i.subtreeFlags|=g,i.childLanes=p,s}function jP(i,s,p){var g=s.pendingProps;switch(km(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(s),null;case 1:return Vn(s.type)&&Yd(),Cn(s),null;case 3:return g=s.stateNode,wl(),br(Hn),br(wn),zm(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(i===null||i.child===null)&&(rp(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ko!==null&&(mg(Ko),Ko=null))),og(i,s),Cn(s),null;case 5:$m(s);var S=xs(Qc.current);if(p=s.type,i!==null&&s.stateNode!=null)Db(i,s,p,g,S),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!g){if(s.stateNode===null)throw Error(r(166));return Cn(s),null}if(i=xs(mi.current),rp(s)){g=s.stateNode,p=s.type;var E=s.memoizedProps;switch(g[hi]=s,g[Wc]=E,i=(s.mode&1)!==0,p){case"dialog":xr("cancel",g),xr("close",g);break;case"iframe":case"object":case"embed":xr("load",g);break;case"video":case"audio":for(S=0;S<Hc.length;S++)xr(Hc[S],g);break;case"source":xr("error",g);break;case"img":case"image":case"link":xr("error",g),xr("load",g);break;case"details":xr("toggle",g);break;case"input":Me(g,E),xr("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!E.multiple},xr("invalid",g);break;case"textarea":Nt(g,E),xr("invalid",g)}Zt(p,E),S=null;for(var N in E)if(E.hasOwnProperty(N)){var te=E[N];N==="children"?typeof te=="string"?g.textContent!==te&&(E.suppressHydrationWarning!==!0&&Xd(g.textContent,te,i),S=["children",te]):typeof te=="number"&&g.textContent!==""+te&&(E.suppressHydrationWarning!==!0&&Xd(g.textContent,te,i),S=["children",""+te]):o.hasOwnProperty(N)&&te!=null&&N==="onScroll"&&xr("scroll",g)}switch(p){case"input":Fe(g),le(g,E,!0);break;case"textarea":Fe(g),fe(g);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(g.onclick=Kd)}g=S,s.updateQueue=g,g!==null&&(s.flags|=4)}else{N=S.nodeType===9?S:S.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=we(p)),i==="http://www.w3.org/1999/xhtml"?p==="script"?(i=N.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=N.createElement(p,{is:g.is}):(i=N.createElement(p),p==="select"&&(N=i,g.multiple?N.multiple=!0:g.size&&(N.size=g.size))):i=N.createElementNS(i,p),i[hi]=s,i[Wc]=g,zb(i,s,!1,!1),s.stateNode=i;e:{switch(N=yr(p,g),p){case"dialog":xr("cancel",i),xr("close",i),S=g;break;case"iframe":case"object":case"embed":xr("load",i),S=g;break;case"video":case"audio":for(S=0;S<Hc.length;S++)xr(Hc[S],i);S=g;break;case"source":xr("error",i),S=g;break;case"img":case"image":case"link":xr("error",i),xr("load",i),S=g;break;case"details":xr("toggle",i),S=g;break;case"input":Me(i,g),S=$e(i,g),xr("invalid",i);break;case"option":S=g;break;case"select":i._wrapperState={wasMultiple:!!g.multiple},S=Q({},g,{value:void 0}),xr("invalid",i);break;case"textarea":Nt(i,g),S=ze(i,g),xr("invalid",i);break;default:S=g}Zt(p,S),te=S;for(E in te)if(te.hasOwnProperty(E)){var se=te[E];E==="style"?He(i,se):E==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&qe(i,se)):E==="children"?typeof se=="string"?(p!=="textarea"||se!=="")&&et(i,se):typeof se=="number"&&et(i,""+se):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?se!=null&&E==="onScroll"&&xr("scroll",i):se!=null&&I(i,E,se,N))}switch(p){case"input":Fe(i),le(i,g,!1);break;case"textarea":Fe(i),fe(i);break;case"option":g.value!=null&&i.setAttribute("value",""+Ce(g.value));break;case"select":i.multiple=!!g.multiple,E=g.value,E!=null?ft(i,!!g.multiple,E,!1):g.defaultValue!=null&&ft(i,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(i.onclick=Kd)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Cn(s),null;case 6:if(i&&s.stateNode!=null)Fb(i,s,i.memoizedProps,g);else{if(typeof g!="string"&&s.stateNode===null)throw Error(r(166));if(p=xs(Qc.current),xs(mi.current),rp(s)){if(g=s.stateNode,p=s.memoizedProps,g[hi]=s,(E=g.nodeValue!==p)&&(i=po,i!==null))switch(i.tag){case 3:Xd(g.nodeValue,p,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Xd(g.nodeValue,p,(i.mode&1)!==0)}E&&(s.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[hi]=s,s.stateNode=g}return Cn(s),null;case 13:if(br(kr),g=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Cr&&fo!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Ux(),yl(),s.flags|=98560,E=!1;else if(E=rp(s),g!==null&&g.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=s.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[hi]=s}else yl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Cn(s),E=!1}else Ko!==null&&(mg(Ko),Ko=null),E=!0;if(!E)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=p,s):(g=g!==null,g!==(i!==null&&i.memoizedState!==null)&&g&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(kr.current&1)!==0?Jr===0&&(Jr=3):vg())),s.updateQueue!==null&&(s.flags|=4),Cn(s),null);case 4:return wl(),og(i,s),i===null&&Vc(s.stateNode.containerInfo),Cn(s),null;case 10:return Am(s.type._context),Cn(s),null;case 17:return Vn(s.type)&&Yd(),Cn(s),null;case 19:if(br(kr),E=s.memoizedState,E===null)return Cn(s),null;if(g=(s.flags&128)!==0,N=E.rendering,N===null)if(g)tu(E,!1);else{if(Jr!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(N=lp(i),N!==null){for(s.flags|=128,tu(E,!1),g=N.updateQueue,g!==null&&(s.updateQueue=g,s.flags|=4),s.subtreeFlags=0,g=p,p=s.child;p!==null;)E=p,i=g,E.flags&=14680066,N=E.alternate,N===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=N.childLanes,E.lanes=N.lanes,E.child=N.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=N.memoizedProps,E.memoizedState=N.memoizedState,E.updateQueue=N.updateQueue,E.type=N.type,i=N.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),p=p.sibling;return gr(kr,kr.current&1|2),s.child}i=i.sibling}E.tail!==null&&$t()>Tl&&(s.flags|=128,g=!0,tu(E,!1),s.lanes=4194304)}else{if(!g)if(i=lp(N),i!==null){if(s.flags|=128,g=!0,p=i.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),tu(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!Cr)return Cn(s),null}else 2*$t()-E.renderingStartTime>Tl&&p!==1073741824&&(s.flags|=128,g=!0,tu(E,!1),s.lanes=4194304);E.isBackwards?(N.sibling=s.child,s.child=N):(p=E.last,p!==null?p.sibling=N:s.child=N,E.last=N)}return E.tail!==null?(s=E.tail,E.rendering=s,E.tail=s.sibling,E.renderingStartTime=$t(),s.sibling=null,p=kr.current,gr(kr,g?p&1|2:p&1),s):(Cn(s),null);case 22:case 23:return yg(),g=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==g&&(s.flags|=8192),g&&(s.mode&1)!==0?(ho&1073741824)!==0&&(Cn(s),s.subtreeFlags&6&&(s.flags|=8192)):Cn(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function PP(i,s){switch(km(s),s.tag){case 1:return Vn(s.type)&&Yd(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return wl(),br(Hn),br(wn),zm(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return $m(s),null;case 13:if(br(kr),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));yl()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return br(kr),null;case 4:return wl(),null;case 10:return Am(s.type._context),null;case 22:case 23:return yg(),null;case 24:return null;default:return null}}var yp=!1,En=!1,IP=typeof WeakSet=="function"?WeakSet:Set,st=null;function Cl(i,s){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){Ir(i,s,g)}else p.current=null}function ig(i,s,p){try{p()}catch(g){Ir(i,s,g)}}var Hb=!1;function MP(i,s){if(ym=$d,i=bx(),cm(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var S=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{p.nodeType,E.nodeType}catch{p=null;break e}var N=0,te=-1,se=-1,be=0,_e=0,Oe=i,Ae=null;t:for(;;){for(var it;Oe!==p||S!==0&&Oe.nodeType!==3||(te=N+S),Oe!==E||g!==0&&Oe.nodeType!==3||(se=N+g),Oe.nodeType===3&&(N+=Oe.nodeValue.length),(it=Oe.firstChild)!==null;)Ae=Oe,Oe=it;for(;;){if(Oe===i)break t;if(Ae===p&&++be===S&&(te=N),Ae===E&&++_e===g&&(se=N),(it=Oe.nextSibling)!==null)break;Oe=Ae,Ae=Oe.parentNode}Oe=it}p=te===-1||se===-1?null:{start:te,end:se}}else p=null}p=p||{start:0,end:0}}else p=null;for(vm={focusedElem:i,selectionRange:p},$d=!1,st=s;st!==null;)if(s=st,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,st=i;else for(;st!==null;){s=st;try{var ct=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ct!==null){var pt=ct.memoizedProps,Or=ct.memoizedState,me=s.stateNode,ue=me.getSnapshotBeforeUpdate(s.elementType===s.type?pt:Qo(s.type,pt),Or);me.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var ge=s.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(De){Ir(s,s.return,De)}if(i=s.sibling,i!==null){i.return=s.return,st=i;break}st=s.return}return ct=Hb,Hb=!1,ct}function ru(i,s,p){var g=s.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&i)===i){var E=S.destroy;S.destroy=void 0,E!==void 0&&ig(s,p,E)}S=S.next}while(S!==g)}}function vp(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&i)===i){var g=p.create;p.destroy=g()}p=p.next}while(p!==s)}}function ag(i){var s=i.ref;if(s!==null){var p=i.stateNode;switch(i.tag){case 5:i=p;break;default:i=p}typeof s=="function"?s(i):s.current=i}}function Vb(i){var s=i.alternate;s!==null&&(i.alternate=null,Vb(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[hi],delete s[Wc],delete s[Sm],delete s[pP],delete s[fP])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Ub(i){return i.tag===5||i.tag===3||i.tag===4}function Wb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Ub(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function sg(i,s,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(i,s):p.insertBefore(i,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(i,p)):(s=p,s.appendChild(i)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=Kd));else if(g!==4&&(i=i.child,i!==null))for(sg(i,s,p),i=i.sibling;i!==null;)sg(i,s,p),i=i.sibling}function lg(i,s,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,s?p.insertBefore(i,s):p.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(lg(i,s,p),i=i.sibling;i!==null;)lg(i,s,p),i=i.sibling}var fn=null,Yo=!1;function Ia(i,s,p){for(p=p.child;p!==null;)qb(i,s,p),p=p.sibling}function qb(i,s,p){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(co,p)}catch{}switch(p.tag){case 5:En||Cl(p,s);case 6:var g=fn,S=Yo;fn=null,Ia(i,s,p),fn=g,Yo=S,fn!==null&&(Yo?(i=fn,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):fn.removeChild(p.stateNode));break;case 18:fn!==null&&(Yo?(i=fn,p=p.stateNode,i.nodeType===8?wm(i.parentNode,p):i.nodeType===1&&wm(i,p),Lc(i)):wm(fn,p.stateNode));break;case 4:g=fn,S=Yo,fn=p.stateNode.containerInfo,Yo=!0,Ia(i,s,p),fn=g,Yo=S;break;case 0:case 11:case 14:case 15:if(!En&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var E=S,N=E.destroy;E=E.tag,N!==void 0&&((E&2)!==0||(E&4)!==0)&&ig(p,s,N),S=S.next}while(S!==g)}Ia(i,s,p);break;case 1:if(!En&&(Cl(p,s),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(te){Ir(p,s,te)}Ia(i,s,p);break;case 21:Ia(i,s,p);break;case 22:p.mode&1?(En=(g=En)||p.memoizedState!==null,Ia(i,s,p),En=g):Ia(i,s,p);break;default:Ia(i,s,p)}}function Gb(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new IP),s.forEach(function(g){var S=zP.bind(null,i,g);p.has(g)||(p.add(g),g.then(S,S))})}}function Jo(i,s){var p=s.deletions;if(p!==null)for(var g=0;g<p.length;g++){var S=p[g];try{var E=i,N=s,te=N;e:for(;te!==null;){switch(te.tag){case 5:fn=te.stateNode,Yo=!1;break e;case 3:fn=te.stateNode.containerInfo,Yo=!0;break e;case 4:fn=te.stateNode.containerInfo,Yo=!0;break e}te=te.return}if(fn===null)throw Error(r(160));qb(E,N,S),fn=null,Yo=!1;var se=S.alternate;se!==null&&(se.return=null),S.return=null}catch(be){Ir(S,s,be)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Xb(s,i),s=s.sibling}function Xb(i,s){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Jo(s,i),yi(i),g&4){try{ru(3,i,i.return),vp(3,i)}catch(pt){Ir(i,i.return,pt)}try{ru(5,i,i.return)}catch(pt){Ir(i,i.return,pt)}}break;case 1:Jo(s,i),yi(i),g&512&&p!==null&&Cl(p,p.return);break;case 5:if(Jo(s,i),yi(i),g&512&&p!==null&&Cl(p,p.return),i.flags&32){var S=i.stateNode;try{et(S,"")}catch(pt){Ir(i,i.return,pt)}}if(g&4&&(S=i.stateNode,S!=null)){var E=i.memoizedProps,N=p!==null?p.memoizedProps:E,te=i.type,se=i.updateQueue;if(i.updateQueue=null,se!==null)try{te==="input"&&E.type==="radio"&&E.name!=null&&Xe(S,E),yr(te,N);var be=yr(te,E);for(N=0;N<se.length;N+=2){var _e=se[N],Oe=se[N+1];_e==="style"?He(S,Oe):_e==="dangerouslySetInnerHTML"?qe(S,Oe):_e==="children"?et(S,Oe):I(S,_e,Oe,be)}switch(te){case"input":dt(S,E);break;case"textarea":ht(S,E);break;case"select":var Ae=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!E.multiple;var it=E.value;it!=null?ft(S,!!E.multiple,it,!1):Ae!==!!E.multiple&&(E.defaultValue!=null?ft(S,!!E.multiple,E.defaultValue,!0):ft(S,!!E.multiple,E.multiple?[]:"",!1))}S[Wc]=E}catch(pt){Ir(i,i.return,pt)}}break;case 6:if(Jo(s,i),yi(i),g&4){if(i.stateNode===null)throw Error(r(162));S=i.stateNode,E=i.memoizedProps;try{S.nodeValue=E}catch(pt){Ir(i,i.return,pt)}}break;case 3:if(Jo(s,i),yi(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Lc(s.containerInfo)}catch(pt){Ir(i,i.return,pt)}break;case 4:Jo(s,i),yi(i);break;case 13:Jo(s,i),yi(i),S=i.child,S.flags&8192&&(E=S.memoizedState!==null,S.stateNode.isHidden=E,!E||S.alternate!==null&&S.alternate.memoizedState!==null||(dg=$t())),g&4&&Gb(i);break;case 22:if(_e=p!==null&&p.memoizedState!==null,i.mode&1?(En=(be=En)||_e,Jo(s,i),En=be):Jo(s,i),yi(i),g&8192){if(be=i.memoizedState!==null,(i.stateNode.isHidden=be)&&!_e&&(i.mode&1)!==0)for(st=i,_e=i.child;_e!==null;){for(Oe=st=_e;st!==null;){switch(Ae=st,it=Ae.child,Ae.tag){case 0:case 11:case 14:case 15:ru(4,Ae,Ae.return);break;case 1:Cl(Ae,Ae.return);var ct=Ae.stateNode;if(typeof ct.componentWillUnmount=="function"){g=Ae,p=Ae.return;try{s=g,ct.props=s.memoizedProps,ct.state=s.memoizedState,ct.componentWillUnmount()}catch(pt){Ir(g,p,pt)}}break;case 5:Cl(Ae,Ae.return);break;case 22:if(Ae.memoizedState!==null){Yb(Oe);continue}}it!==null?(it.return=Ae,st=it):Yb(Oe)}_e=_e.sibling}e:for(_e=null,Oe=i;;){if(Oe.tag===5){if(_e===null){_e=Oe;try{S=Oe.stateNode,be?(E=S.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(te=Oe.stateNode,se=Oe.memoizedProps.style,N=se!=null&&se.hasOwnProperty("display")?se.display:null,te.style.display=Be("display",N))}catch(pt){Ir(i,i.return,pt)}}}else if(Oe.tag===6){if(_e===null)try{Oe.stateNode.nodeValue=be?"":Oe.memoizedProps}catch(pt){Ir(i,i.return,pt)}}else if((Oe.tag!==22&&Oe.tag!==23||Oe.memoizedState===null||Oe===i)&&Oe.child!==null){Oe.child.return=Oe,Oe=Oe.child;continue}if(Oe===i)break e;for(;Oe.sibling===null;){if(Oe.return===null||Oe.return===i)break e;_e===Oe&&(_e=null),Oe=Oe.return}_e===Oe&&(_e=null),Oe.sibling.return=Oe.return,Oe=Oe.sibling}}break;case 19:Jo(s,i),yi(i),g&4&&Gb(i);break;case 21:break;default:Jo(s,i),yi(i)}}function yi(i){var s=i.flags;if(s&2){try{e:{for(var p=i.return;p!==null;){if(Ub(p)){var g=p;break e}p=p.return}throw Error(r(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&(et(S,""),g.flags&=-33);var E=Wb(i);lg(i,E,S);break;case 3:case 4:var N=g.stateNode.containerInfo,te=Wb(i);sg(i,te,N);break;default:throw Error(r(161))}}catch(se){Ir(i,i.return,se)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function RP(i,s,p){st=i,Kb(i)}function Kb(i,s,p){for(var g=(i.mode&1)!==0;st!==null;){var S=st,E=S.child;if(S.tag===22&&g){var N=S.memoizedState!==null||yp;if(!N){var te=S.alternate,se=te!==null&&te.memoizedState!==null||En;te=yp;var be=En;if(yp=N,(En=se)&&!be)for(st=S;st!==null;)N=st,se=N.child,N.tag===22&&N.memoizedState!==null?Jb(S):se!==null?(se.return=N,st=se):Jb(S);for(;E!==null;)st=E,Kb(E),E=E.sibling;st=S,yp=te,En=be}Qb(i)}else(S.subtreeFlags&8772)!==0&&E!==null?(E.return=S,st=E):Qb(i)}}function Qb(i){for(;st!==null;){var s=st;if((s.flags&8772)!==0){var p=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:En||vp(5,s);break;case 1:var g=s.stateNode;if(s.flags&4&&!En)if(p===null)g.componentDidMount();else{var S=s.elementType===s.type?p.memoizedProps:Qo(s.type,p.memoizedProps);g.componentDidUpdate(S,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var E=s.updateQueue;E!==null&&Yx(s,E,g);break;case 3:var N=s.updateQueue;if(N!==null){if(p=null,s.child!==null)switch(s.child.tag){case 5:p=s.child.stateNode;break;case 1:p=s.child.stateNode}Yx(s,N,p)}break;case 5:var te=s.stateNode;if(p===null&&s.flags&4){p=te;var se=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&p.focus();break;case"img":se.src&&(p.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var be=s.alternate;if(be!==null){var _e=be.memoizedState;if(_e!==null){var Oe=_e.dehydrated;Oe!==null&&Lc(Oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}En||s.flags&512&&ag(s)}catch(Ae){Ir(s,s.return,Ae)}}if(s===i){st=null;break}if(p=s.sibling,p!==null){p.return=s.return,st=p;break}st=s.return}}function Yb(i){for(;st!==null;){var s=st;if(s===i){st=null;break}var p=s.sibling;if(p!==null){p.return=s.return,st=p;break}st=s.return}}function Jb(i){for(;st!==null;){var s=st;try{switch(s.tag){case 0:case 11:case 15:var p=s.return;try{vp(4,s)}catch(se){Ir(s,p,se)}break;case 1:var g=s.stateNode;if(typeof g.componentDidMount=="function"){var S=s.return;try{g.componentDidMount()}catch(se){Ir(s,S,se)}}var E=s.return;try{ag(s)}catch(se){Ir(s,E,se)}break;case 5:var N=s.return;try{ag(s)}catch(se){Ir(s,N,se)}}}catch(se){Ir(s,s.return,se)}if(s===i){st=null;break}var te=s.sibling;if(te!==null){te.return=s.return,st=te;break}st=s.return}}var AP=Math.ceil,xp=T.ReactCurrentDispatcher,cg=T.ReactCurrentOwner,Io=T.ReactCurrentBatchConfig,Xt=0,nn=null,Hr=null,hn=0,ho=0,El=Ea(0),Jr=0,nu=null,ws=0,bp=0,ug=0,ou=null,Wn=null,dg=0,Tl=1/0,Yi=null,wp=!1,pg=null,Ma=null,Sp=!1,Ra=null,Cp=0,iu=0,fg=null,Ep=-1,Tp=0;function An(){return(Xt&6)!==0?$t():Ep!==-1?Ep:Ep=$t()}function Aa(i){return(i.mode&1)===0?1:(Xt&2)!==0&&hn!==0?hn&-hn:mP.transition!==null?(Tp===0&&(Tp=W0()),Tp):(i=ar,i!==0||(i=window.event,i=i===void 0?16:ex(i.type)),i)}function Zo(i,s,p,g){if(50<iu)throw iu=0,fg=null,Error(r(185));Ic(i,p,g),((Xt&2)===0||i!==nn)&&(i===nn&&((Xt&2)===0&&(bp|=p),Jr===4&&_a(i,hn)),qn(i,g),p===1&&Xt===0&&(s.mode&1)===0&&(Tl=$t()+500,Zd&&ka()))}function qn(i,s){var p=i.callbackNode;mj(i,s);var g=Ld(i,i===nn?hn:0);if(g===0)p!==null&&Tt(p),i.callbackNode=null,i.callbackPriority=0;else if(s=g&-g,i.callbackPriority!==s){if(p!=null&&Tt(p),s===1)i.tag===0?hP(e1.bind(null,i)):zx(e1.bind(null,i)),uP(function(){(Xt&6)===0&&ka()}),p=null;else{switch(q0(g)){case 1:p=ga;break;case 4:p=jc;break;case 16:p=Vi;break;case 536870912:p=Gt;break;default:p=Vi}p=l1(p,Zb.bind(null,i))}i.callbackPriority=s,i.callbackNode=p}}function Zb(i,s){if(Ep=-1,Tp=0,(Xt&6)!==0)throw Error(r(327));var p=i.callbackNode;if(kl()&&i.callbackNode!==p)return null;var g=Ld(i,i===nn?hn:0);if(g===0)return null;if((g&30)!==0||(g&i.expiredLanes)!==0||s)s=kp(i,g);else{s=g;var S=Xt;Xt|=2;var E=r1();(nn!==i||hn!==s)&&(Yi=null,Tl=$t()+500,Cs(i,s));do try{OP();break}catch(te){t1(i,te)}while(!0);Rm(),xp.current=E,Xt=S,Hr!==null?s=0:(nn=null,hn=0,s=Jr)}if(s!==0){if(s===2&&(S=Gh(i),S!==0&&(g=S,s=hg(i,S))),s===1)throw p=nu,Cs(i,0),_a(i,g),qn(i,$t()),p;if(s===6)_a(i,g);else{if(S=i.current.alternate,(g&30)===0&&!_P(S)&&(s=kp(i,g),s===2&&(E=Gh(i),E!==0&&(g=E,s=hg(i,E))),s===1))throw p=nu,Cs(i,0),_a(i,g),qn(i,$t()),p;switch(i.finishedWork=S,i.finishedLanes=g,s){case 0:case 1:throw Error(r(345));case 2:Es(i,Wn,Yi);break;case 3:if(_a(i,g),(g&130023424)===g&&(s=dg+500-$t(),10<s)){if(Ld(i,0)!==0)break;if(S=i.suspendedLanes,(S&g)!==g){An(),i.pingedLanes|=i.suspendedLanes&S;break}i.timeoutHandle=bm(Es.bind(null,i,Wn,Yi),s);break}Es(i,Wn,Yi);break;case 4:if(_a(i,g),(g&4194240)===g)break;for(s=i.eventTimes,S=-1;0<g;){var N=31-Go(g);E=1<<N,N=s[N],N>S&&(S=N),g&=~E}if(g=S,g=$t()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*AP(g/1960))-g,10<g){i.timeoutHandle=bm(Es.bind(null,i,Wn,Yi),g);break}Es(i,Wn,Yi);break;case 5:Es(i,Wn,Yi);break;default:throw Error(r(329))}}}return qn(i,$t()),i.callbackNode===p?Zb.bind(null,i):null}function hg(i,s){var p=ou;return i.current.memoizedState.isDehydrated&&(Cs(i,s).flags|=256),i=kp(i,s),i!==2&&(s=Wn,Wn=p,s!==null&&mg(s)),i}function mg(i){Wn===null?Wn=i:Wn.push.apply(Wn,i)}function _P(i){for(var s=i;;){if(s.flags&16384){var p=s.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var S=p[g],E=S.getSnapshot;S=S.value;try{if(!Xo(E(),S))return!1}catch{return!1}}}if(p=s.child,s.subtreeFlags&16384&&p!==null)p.return=s,s=p;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function _a(i,s){for(s&=~ug,s&=~bp,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var p=31-Go(s),g=1<<p;i[p]=-1,s&=~g}}function e1(i){if((Xt&6)!==0)throw Error(r(327));kl();var s=Ld(i,0);if((s&1)===0)return qn(i,$t()),null;var p=kp(i,s);if(i.tag!==0&&p===2){var g=Gh(i);g!==0&&(s=g,p=hg(i,g))}if(p===1)throw p=nu,Cs(i,0),_a(i,s),qn(i,$t()),p;if(p===6)throw Error(r(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Es(i,Wn,Yi),qn(i,$t()),null}function gg(i,s){var p=Xt;Xt|=1;try{return i(s)}finally{Xt=p,Xt===0&&(Tl=$t()+500,Zd&&ka())}}function Ss(i){Ra!==null&&Ra.tag===0&&(Xt&6)===0&&kl();var s=Xt;Xt|=1;var p=Io.transition,g=ar;try{if(Io.transition=null,ar=1,i)return i()}finally{ar=g,Io.transition=p,Xt=s,(Xt&6)===0&&ka()}}function yg(){ho=El.current,br(El)}function Cs(i,s){i.finishedWork=null,i.finishedLanes=0;var p=i.timeoutHandle;if(p!==-1&&(i.timeoutHandle=-1,cP(p)),Hr!==null)for(p=Hr.return;p!==null;){var g=p;switch(km(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Yd();break;case 3:wl(),br(Hn),br(wn),zm();break;case 5:$m(g);break;case 4:wl();break;case 13:br(kr);break;case 19:br(kr);break;case 10:Am(g.type._context);break;case 22:case 23:yg()}p=p.return}if(nn=i,Hr=i=La(i.current,null),hn=ho=s,Jr=0,nu=null,ug=bp=ws=0,Wn=ou=null,vs!==null){for(s=0;s<vs.length;s++)if(p=vs[s],g=p.interleaved,g!==null){p.interleaved=null;var S=g.next,E=p.pending;if(E!==null){var N=E.next;E.next=S,g.next=N}p.pending=g}vs=null}return i}function t1(i,s){do{var p=Hr;try{if(Rm(),cp.current=fp,up){for(var g=jr.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}up=!1}if(bs=0,rn=Yr=jr=null,Yc=!1,Jc=0,cg.current=null,p===null||p.return===null){Jr=1,nu=s,Hr=null;break}e:{var E=i,N=p.return,te=p,se=s;if(s=hn,te.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var be=se,_e=te,Oe=_e.tag;if((_e.mode&1)===0&&(Oe===0||Oe===11||Oe===15)){var Ae=_e.alternate;Ae?(_e.updateQueue=Ae.updateQueue,_e.memoizedState=Ae.memoizedState,_e.lanes=Ae.lanes):(_e.updateQueue=null,_e.memoizedState=null)}var it=kb(N);if(it!==null){it.flags&=-257,jb(it,N,te,E,s),it.mode&1&&Tb(E,be,s),s=it,se=be;var ct=s.updateQueue;if(ct===null){var pt=new Set;pt.add(se),s.updateQueue=pt}else ct.add(se);break e}else{if((s&1)===0){Tb(E,be,s),vg();break e}se=Error(r(426))}}else if(Cr&&te.mode&1){var Or=kb(N);if(Or!==null){(Or.flags&65536)===0&&(Or.flags|=256),jb(Or,N,te,E,s),Im(Sl(se,te));break e}}E=se=Sl(se,te),Jr!==4&&(Jr=2),ou===null?ou=[E]:ou.push(E),E=N;do{switch(E.tag){case 3:E.flags|=65536,s&=-s,E.lanes|=s;var me=Cb(E,se,s);Qx(E,me);break e;case 1:te=se;var ue=E.type,ge=E.stateNode;if((E.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(Ma===null||!Ma.has(ge)))){E.flags|=65536,s&=-s,E.lanes|=s;var De=Eb(E,te,s);Qx(E,De);break e}}E=E.return}while(E!==null)}o1(p)}catch(mt){s=mt,Hr===p&&p!==null&&(Hr=p=p.return);continue}break}while(!0)}function r1(){var i=xp.current;return xp.current=fp,i===null?fp:i}function vg(){(Jr===0||Jr===3||Jr===2)&&(Jr=4),nn===null||(ws&268435455)===0&&(bp&268435455)===0||_a(nn,hn)}function kp(i,s){var p=Xt;Xt|=2;var g=r1();(nn!==i||hn!==s)&&(Yi=null,Cs(i,s));do try{LP();break}catch(S){t1(i,S)}while(!0);if(Rm(),Xt=p,xp.current=g,Hr!==null)throw Error(r(261));return nn=null,hn=0,Jr}function LP(){for(;Hr!==null;)n1(Hr)}function OP(){for(;Hr!==null&&!Mt();)n1(Hr)}function n1(i){var s=s1(i.alternate,i,ho);i.memoizedProps=i.pendingProps,s===null?o1(i):Hr=s,cg.current=null}function o1(i){var s=i;do{var p=s.alternate;if(i=s.return,(s.flags&32768)===0){if(p=jP(p,s,ho),p!==null){Hr=p;return}}else{if(p=PP(p,s),p!==null){p.flags&=32767,Hr=p;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Jr=6,Hr=null;return}}if(s=s.sibling,s!==null){Hr=s;return}Hr=s=i}while(s!==null);Jr===0&&(Jr=5)}function Es(i,s,p){var g=ar,S=Io.transition;try{Io.transition=null,ar=1,NP(i,s,p,g)}finally{Io.transition=S,ar=g}return null}function NP(i,s,p,g){do kl();while(Ra!==null);if((Xt&6)!==0)throw Error(r(327));p=i.finishedWork;var S=i.finishedLanes;if(p===null)return null;if(i.finishedWork=null,i.finishedLanes=0,p===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0;var E=p.lanes|p.childLanes;if(gj(i,E),i===nn&&(Hr=nn=null,hn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Sp||(Sp=!0,l1(Vi,function(){return kl(),null})),E=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||E){E=Io.transition,Io.transition=null;var N=ar;ar=1;var te=Xt;Xt|=4,cg.current=null,MP(i,p),Xb(p,i),rP(vm),$d=!!ym,vm=ym=null,i.current=p,RP(p),Fr(),Xt=te,ar=N,Io.transition=E}else i.current=p;if(Sp&&(Sp=!1,Ra=i,Cp=S),E=i.pendingLanes,E===0&&(Ma=null),fs(p.stateNode),qn(i,$t()),s!==null)for(g=i.onRecoverableError,p=0;p<s.length;p++)S=s[p],g(S.value,{componentStack:S.stack,digest:S.digest});if(wp)throw wp=!1,i=pg,pg=null,i;return(Cp&1)!==0&&i.tag!==0&&kl(),E=i.pendingLanes,(E&1)!==0?i===fg?iu++:(iu=0,fg=i):iu=0,ka(),null}function kl(){if(Ra!==null){var i=q0(Cp),s=Io.transition,p=ar;try{if(Io.transition=null,ar=16>i?16:i,Ra===null)var g=!1;else{if(i=Ra,Ra=null,Cp=0,(Xt&6)!==0)throw Error(r(331));var S=Xt;for(Xt|=4,st=i.current;st!==null;){var E=st,N=E.child;if((st.flags&16)!==0){var te=E.deletions;if(te!==null){for(var se=0;se<te.length;se++){var be=te[se];for(st=be;st!==null;){var _e=st;switch(_e.tag){case 0:case 11:case 15:ru(8,_e,E)}var Oe=_e.child;if(Oe!==null)Oe.return=_e,st=Oe;else for(;st!==null;){_e=st;var Ae=_e.sibling,it=_e.return;if(Vb(_e),_e===be){st=null;break}if(Ae!==null){Ae.return=it,st=Ae;break}st=it}}}var ct=E.alternate;if(ct!==null){var pt=ct.child;if(pt!==null){ct.child=null;do{var Or=pt.sibling;pt.sibling=null,pt=Or}while(pt!==null)}}st=E}}if((E.subtreeFlags&2064)!==0&&N!==null)N.return=E,st=N;else e:for(;st!==null;){if(E=st,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:ru(9,E,E.return)}var me=E.sibling;if(me!==null){me.return=E.return,st=me;break e}st=E.return}}var ue=i.current;for(st=ue;st!==null;){N=st;var ge=N.child;if((N.subtreeFlags&2064)!==0&&ge!==null)ge.return=N,st=ge;else e:for(N=ue;st!==null;){if(te=st,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:vp(9,te)}}catch(mt){Ir(te,te.return,mt)}if(te===N){st=null;break e}var De=te.sibling;if(De!==null){De.return=te.return,st=De;break e}st=te.return}}if(Xt=S,ka(),Qr&&typeof Qr.onPostCommitFiberRoot=="function")try{Qr.onPostCommitFiberRoot(co,i)}catch{}g=!0}return g}finally{ar=p,Io.transition=s}}return!1}function i1(i,s,p){s=Sl(p,s),s=Cb(i,s,1),i=Pa(i,s,1),s=An(),i!==null&&(Ic(i,1,s),qn(i,s))}function Ir(i,s,p){if(i.tag===3)i1(i,i,p);else for(;s!==null;){if(s.tag===3){i1(s,i,p);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Ma===null||!Ma.has(g))){i=Sl(p,i),i=Eb(s,i,1),s=Pa(s,i,1),i=An(),s!==null&&(Ic(s,1,i),qn(s,i));break}}s=s.return}}function $P(i,s,p){var g=i.pingCache;g!==null&&g.delete(s),s=An(),i.pingedLanes|=i.suspendedLanes&p,nn===i&&(hn&p)===p&&(Jr===4||Jr===3&&(hn&130023424)===hn&&500>$t()-dg?Cs(i,0):ug|=p),qn(i,s)}function a1(i,s){s===0&&((i.mode&1)===0?s=1:(s=_d,_d<<=1,(_d&130023424)===0&&(_d=4194304)));var p=An();i=Xi(i,s),i!==null&&(Ic(i,s,p),qn(i,p))}function BP(i){var s=i.memoizedState,p=0;s!==null&&(p=s.retryLane),a1(i,p)}function zP(i,s){var p=0;switch(i.tag){case 13:var g=i.stateNode,S=i.memoizedState;S!==null&&(p=S.retryLane);break;case 19:g=i.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(s),a1(i,p)}var s1;s1=function(i,s,p){if(i!==null)if(i.memoizedProps!==s.pendingProps||Hn.current)Un=!0;else{if((i.lanes&p)===0&&(s.flags&128)===0)return Un=!1,kP(i,s,p);Un=(i.flags&131072)!==0}else Un=!1,Cr&&(s.flags&1048576)!==0&&Dx(s,tp,s.index);switch(s.lanes=0,s.tag){case 2:var g=s.type;gp(i,s),i=s.pendingProps;var S=hl(s,wn.current);bl(s,p),S=Hm(null,s,g,i,S,p);var E=Vm();return s.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Vn(g)?(E=!0,Jd(s)):E=!1,s.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Om(s),S.updater=hp,s.stateNode=S,S._reactInternals=s,Km(s,g,i,p),s=Zm(null,s,g,!0,E,p)):(s.tag=0,Cr&&E&&Tm(s),Rn(null,s,S,p),s=s.child),s;case 16:g=s.elementType;e:{switch(gp(i,s),i=s.pendingProps,S=g._init,g=S(g._payload),s.type=g,S=s.tag=FP(g),i=Qo(g,i),S){case 0:s=Jm(null,s,g,i,p);break e;case 1:s=_b(null,s,g,i,p);break e;case 11:s=Pb(null,s,g,i,p);break e;case 14:s=Ib(null,s,g,Qo(g.type,i),p);break e}throw Error(r(306,g,""))}return s;case 0:return g=s.type,S=s.pendingProps,S=s.elementType===g?S:Qo(g,S),Jm(i,s,g,S,p);case 1:return g=s.type,S=s.pendingProps,S=s.elementType===g?S:Qo(g,S),_b(i,s,g,S,p);case 3:e:{if(Lb(s),i===null)throw Error(r(387));g=s.pendingProps,E=s.memoizedState,S=E.element,Kx(i,s),sp(s,g,null,p);var N=s.memoizedState;if(g=N.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){S=Sl(Error(r(423)),s),s=Ob(i,s,g,p,S);break e}else if(g!==S){S=Sl(Error(r(424)),s),s=Ob(i,s,g,p,S);break e}else for(fo=Ca(s.stateNode.containerInfo.firstChild),po=s,Cr=!0,Ko=null,p=Gx(s,null,g,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(yl(),g===S){s=Qi(i,s,p);break e}Rn(i,s,g,p)}s=s.child}return s;case 5:return Jx(s),i===null&&Pm(s),g=s.type,S=s.pendingProps,E=i!==null?i.memoizedProps:null,N=S.children,xm(g,S)?N=null:E!==null&&xm(g,E)&&(s.flags|=32),Ab(i,s),Rn(i,s,N,p),s.child;case 6:return i===null&&Pm(s),null;case 13:return Nb(i,s,p);case 4:return Nm(s,s.stateNode.containerInfo),g=s.pendingProps,i===null?s.child=vl(s,null,g,p):Rn(i,s,g,p),s.child;case 11:return g=s.type,S=s.pendingProps,S=s.elementType===g?S:Qo(g,S),Pb(i,s,g,S,p);case 7:return Rn(i,s,s.pendingProps,p),s.child;case 8:return Rn(i,s,s.pendingProps.children,p),s.child;case 12:return Rn(i,s,s.pendingProps.children,p),s.child;case 10:e:{if(g=s.type._context,S=s.pendingProps,E=s.memoizedProps,N=S.value,gr(op,g._currentValue),g._currentValue=N,E!==null)if(Xo(E.value,N)){if(E.children===S.children&&!Hn.current){s=Qi(i,s,p);break e}}else for(E=s.child,E!==null&&(E.return=s);E!==null;){var te=E.dependencies;if(te!==null){N=E.child;for(var se=te.firstContext;se!==null;){if(se.context===g){if(E.tag===1){se=Ki(-1,p&-p),se.tag=2;var be=E.updateQueue;if(be!==null){be=be.shared;var _e=be.pending;_e===null?se.next=se:(se.next=_e.next,_e.next=se),be.pending=se}}E.lanes|=p,se=E.alternate,se!==null&&(se.lanes|=p),_m(E.return,p,s),te.lanes|=p;break}se=se.next}}else if(E.tag===10)N=E.type===s.type?null:E.child;else if(E.tag===18){if(N=E.return,N===null)throw Error(r(341));N.lanes|=p,te=N.alternate,te!==null&&(te.lanes|=p),_m(N,p,s),N=E.sibling}else N=E.child;if(N!==null)N.return=E;else for(N=E;N!==null;){if(N===s){N=null;break}if(E=N.sibling,E!==null){E.return=N.return,N=E;break}N=N.return}E=N}Rn(i,s,S.children,p),s=s.child}return s;case 9:return S=s.type,g=s.pendingProps.children,bl(s,p),S=jo(S),g=g(S),s.flags|=1,Rn(i,s,g,p),s.child;case 14:return g=s.type,S=Qo(g,s.pendingProps),S=Qo(g.type,S),Ib(i,s,g,S,p);case 15:return Mb(i,s,s.type,s.pendingProps,p);case 17:return g=s.type,S=s.pendingProps,S=s.elementType===g?S:Qo(g,S),gp(i,s),s.tag=1,Vn(g)?(i=!0,Jd(s)):i=!1,bl(s,p),wb(s,g,S),Km(s,g,S,p),Zm(null,s,g,!0,i,p);case 19:return Bb(i,s,p);case 22:return Rb(i,s,p)}throw Error(r(156,s.tag))};function l1(i,s){return ot(i,s)}function DP(i,s,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mo(i,s,p,g){return new DP(i,s,p,g)}function xg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function FP(i){if(typeof i=="function")return xg(i)?1:0;if(i!=null){if(i=i.$$typeof,i===j)return 11;if(i===O)return 14}return 2}function La(i,s){var p=i.alternate;return p===null?(p=Mo(i.tag,s,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=s,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,s=i.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function jp(i,s,p,g,S,E){var N=2;if(g=i,typeof i=="function")xg(i)&&(N=1);else if(typeof i=="string")N=5;else e:switch(i){case L:return Ts(p.children,S,E,s);case A:N=8,S|=8;break;case H:return i=Mo(12,p,s,S|2),i.elementType=H,i.lanes=E,i;case q:return i=Mo(13,p,s,S),i.elementType=q,i.lanes=E,i;case V:return i=Mo(19,p,s,S),i.elementType=V,i.lanes=E,i;case K:return Pp(p,S,E,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case G:N=10;break e;case $:N=9;break e;case j:N=11;break e;case O:N=14;break e;case U:N=16,g=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return s=Mo(N,p,s,S),s.elementType=i,s.type=g,s.lanes=E,s}function Ts(i,s,p,g){return i=Mo(7,i,g,s),i.lanes=p,i}function Pp(i,s,p,g){return i=Mo(22,i,g,s),i.elementType=K,i.lanes=p,i.stateNode={isHidden:!1},i}function bg(i,s,p){return i=Mo(6,i,null,s),i.lanes=p,i}function wg(i,s,p){return s=Mo(4,i.children!==null?i.children:[],i.key,s),s.lanes=p,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function HP(i,s,p,g,S){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xh(0),this.expirationTimes=Xh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xh(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Sg(i,s,p,g,S,E,N,te,se){return i=new HP(i,s,p,te,se),s===1?(s=1,E===!0&&(s|=8)):s=0,E=Mo(3,null,null,s),i.current=E,E.stateNode=i,E.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Om(E),i}function VP(i,s,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:g==null?null:""+g,children:i,containerInfo:s,implementation:p}}function c1(i){if(!i)return Ta;i=i._reactInternals;e:{if(bn(i)!==i||i.tag!==1)throw Error(r(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Vn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(i.tag===1){var p=i.type;if(Vn(p))return $x(i,p,s)}return s}function u1(i,s,p,g,S,E,N,te,se){return i=Sg(p,g,!0,i,S,E,N,te,se),i.context=c1(null),p=i.current,g=An(),S=Aa(p),E=Ki(g,S),E.callback=s??null,Pa(p,E,S),i.current.lanes=S,Ic(i,S,g),qn(i,g),i}function Ip(i,s,p,g){var S=s.current,E=An(),N=Aa(S);return p=c1(p),s.context===null?s.context=p:s.pendingContext=p,s=Ki(E,N),s.payload={element:i},g=g===void 0?null:g,g!==null&&(s.callback=g),i=Pa(S,s,N),i!==null&&(Zo(i,S,N,E),ap(i,S,N)),N}function Mp(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function d1(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<s?p:s}}function Cg(i,s){d1(i,s),(i=i.alternate)&&d1(i,s)}function UP(){return null}var p1=typeof reportError=="function"?reportError:function(i){console.error(i)};function Eg(i){this._internalRoot=i}Rp.prototype.render=Eg.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));Ip(i,s,null,null)},Rp.prototype.unmount=Eg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Ss(function(){Ip(null,i,null,null)}),s[Ui]=null}};function Rp(i){this._internalRoot=i}Rp.prototype.unstable_scheduleHydration=function(i){if(i){var s=K0();i={blockedOn:null,target:i,priority:s};for(var p=0;p<ba.length&&s!==0&&s<ba[p].priority;p++);ba.splice(p,0,i),p===0&&J0(i)}};function Tg(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Ap(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function f1(){}function WP(i,s,p,g,S){if(S){if(typeof g=="function"){var E=g;g=function(){var be=Mp(N);E.call(be)}}var N=u1(s,g,i,0,null,!1,!1,"",f1);return i._reactRootContainer=N,i[Ui]=N.current,Vc(i.nodeType===8?i.parentNode:i),Ss(),N}for(;S=i.lastChild;)i.removeChild(S);if(typeof g=="function"){var te=g;g=function(){var be=Mp(se);te.call(be)}}var se=Sg(i,0,!1,null,null,!1,!1,"",f1);return i._reactRootContainer=se,i[Ui]=se.current,Vc(i.nodeType===8?i.parentNode:i),Ss(function(){Ip(s,se,p,g)}),se}function _p(i,s,p,g,S){var E=p._reactRootContainer;if(E){var N=E;if(typeof S=="function"){var te=S;S=function(){var se=Mp(N);te.call(se)}}Ip(s,N,i,S)}else N=WP(p,s,i,S,g);return Mp(N)}G0=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var p=Pc(s.pendingLanes);p!==0&&(Kh(s,p|1),qn(s,$t()),(Xt&6)===0&&(Tl=$t()+500,ka()))}break;case 13:Ss(function(){var g=Xi(i,1);if(g!==null){var S=An();Zo(g,i,1,S)}}),Cg(i,1)}},Qh=function(i){if(i.tag===13){var s=Xi(i,134217728);if(s!==null){var p=An();Zo(s,i,134217728,p)}Cg(i,134217728)}},X0=function(i){if(i.tag===13){var s=Aa(i),p=Xi(i,s);if(p!==null){var g=An();Zo(p,i,s,g)}Cg(i,s)}},K0=function(){return ar},Q0=function(i,s){var p=ar;try{return ar=i,s()}finally{ar=p}},vn=function(i,s,p){switch(s){case"input":if(dt(i,p),s=p.name,p.type==="radio"&&s!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<p.length;s++){var g=p[s];if(g!==i&&g.form===i.form){var S=Qd(g);if(!S)throw Error(r(90));Le(g),dt(g,S)}}}break;case"textarea":ht(i,p);break;case"select":s=p.value,s!=null&&ft(i,!!p.multiple,s,!1)}},Mn=gg,jt=Ss;var qP={usingClientEntryPoint:!1,Events:[qc,pl,Qd,Tr,Kr,gg]},au={findFiberByHostInstance:hs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GP={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Te(i),i===null?null:i.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||UP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lp.isDisabled&&Lp.supportsFiber)try{co=Lp.inject(GP),Qr=Lp}catch{}}return Gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qP,Gn.createPortal=function(i,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tg(s))throw Error(r(200));return VP(i,s,null,p)},Gn.createRoot=function(i,s){if(!Tg(i))throw Error(r(299));var p=!1,g="",S=p1;return s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(S=s.onRecoverableError)),s=Sg(i,1,!1,null,null,p,!1,g,S),i[Ui]=s.current,Vc(i.nodeType===8?i.parentNode:i),new Eg(s)},Gn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=Te(s),i=i===null?null:i.stateNode,i},Gn.flushSync=function(i){return Ss(i)},Gn.hydrate=function(i,s,p){if(!Ap(s))throw Error(r(200));return _p(null,i,s,!0,p)},Gn.hydrateRoot=function(i,s,p){if(!Tg(i))throw Error(r(405));var g=p!=null&&p.hydratedSources||null,S=!1,E="",N=p1;if(p!=null&&(p.unstable_strictMode===!0&&(S=!0),p.identifierPrefix!==void 0&&(E=p.identifierPrefix),p.onRecoverableError!==void 0&&(N=p.onRecoverableError)),s=u1(s,null,i,1,p??null,S,!1,E,N),i[Ui]=s.current,Vc(i),g)for(i=0;i<g.length;i++)p=g[i],S=p._getVersion,S=S(p._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[p,S]:s.mutableSourceEagerHydrationData.push(p,S);return new Rp(s)},Gn.render=function(i,s,p){if(!Ap(s))throw Error(r(200));return _p(null,i,s,!1,p)},Gn.unmountComponentAtNode=function(i){if(!Ap(i))throw Error(r(40));return i._reactRootContainer?(Ss(function(){_p(null,null,i,!1,function(){i._reactRootContainer=null,i[Ui]=null})}),!0):!1},Gn.unstable_batchedUpdates=gg,Gn.unstable_renderSubtreeIntoContainer=function(i,s,p,g){if(!Ap(p))throw Error(r(200));if(i==null||i._reactInternals===void 0)throw Error(r(38));return _p(i,s,p,!1,g)},Gn.version="18.3.1-next-f1338f8080-20240426",Gn}var S1;function cC(){if(S1)return Pg.exports;S1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pg.exports=n4(),Pg.exports}var C1;function o4(){if(C1)return Op;C1=1;var e=cC();return Op.createRoot=e.createRoot,Op.hydrateRoot=e.hydrateRoot,Op}var i4=o4();const a4=Zf(i4);var uC=cC();const Np=Zf(uC);/**
|
|
41
|
+
* @remix-run/router v1.23.1
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fu.apply(this,arguments)}var za;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(za||(za={}));const E1="popstate";function s4(e){e===void 0&&(e={});function t(n,o){let{pathname:a,search:c,hash:u}=n.location;return cy("",{pathname:a,search:c,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:dC(o)}return c4(t,r,null,e)}function en(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function l4(){return Math.random().toString(36).substr(2,8)}function T1(e,t){return{usr:e.state,key:e.key,idx:t}}function cy(e,t,r,n){return r===void 0&&(r=null),Fu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gc(t):t,{state:r,key:t&&t.key||n||l4()})}function dC(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function gc(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function c4(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,c=o.history,u=za.Pop,d=null,f=h();f==null&&(f=0,c.replaceState(Fu({},c.state,{idx:f}),""));function h(){return(c.state||{idx:null}).idx}function v(){u=za.Pop;let C=h(),P=C==null?null:C-f;f=C,d&&d({action:u,location:w.location,delta:P})}function m(C,P){u=za.Push;let k=cy(w.location,C,P);f=h()+1;let I=T1(k,f),T=w.createHref(k);try{c.pushState(I,"",T)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(T)}a&&d&&d({action:u,location:w.location,delta:1})}function y(C,P){u=za.Replace;let k=cy(w.location,C,P);f=h();let I=T1(k,f),T=w.createHref(k);c.replaceState(I,"",T),a&&d&&d({action:u,location:w.location,delta:0})}function x(C){let P=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof C=="string"?C:dC(C);return k=k.replace(/ $/,"%20"),en(P,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,P)}let w={get action(){return u},get location(){return e(o,c)},listen(C){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(E1,v),d=C,()=>{o.removeEventListener(E1,v),d=null}},createHref(C){return t(o,C)},createURL:x,encodeLocation(C){let P=x(C);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:m,replace:y,go(C){return c.go(C)}};return w}var k1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(k1||(k1={}));function u4(e,t,r){return r===void 0&&(r="/"),d4(e,t,r)}function d4(e,t,r,n){let o=typeof t=="string"?gc(t):t,a=hC(o.pathname||"/",r);if(a==null)return null;let c=pC(e);p4(c);let u=null;for(let d=0;u==null&&d<c.length;++d){let f=E4(a);u=w4(c[d],f)}return u}function pC(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,c,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};d.relativePath.startsWith("/")&&(en(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let f=Bs([n,d.relativePath]),h=r.concat(d);a.children&&a.children.length>0&&(en(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),pC(a.children,t,h,f)),!(a.path==null&&!a.index)&&t.push({path:f,score:x4(f,a.index),routesMeta:h})};return e.forEach((a,c)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))o(a,c);else for(let d of fC(a.path))o(a,c,d)}),t}function fC(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let c=fC(n.join("/")),u=[];return u.push(...c.map(d=>d===""?a:[a,d].join("/"))),o&&u.push(...c),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function p4(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:b4(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const f4=/^:[\w-]+$/,h4=3,m4=2,g4=1,y4=10,v4=-2,j1=e=>e==="*";function x4(e,t){let r=e.split("/"),n=r.length;return r.some(j1)&&(n+=v4),t&&(n+=m4),r.filter(o=>!j1(o)).reduce((o,a)=>o+(f4.test(a)?h4:a===""?g4:y4),n)}function b4(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function w4(e,t,r){let{routesMeta:n}=e,o={},a="/",c=[];for(let u=0;u<n.length;++u){let d=n[u],f=u===n.length-1,h=a==="/"?t:t.slice(a.length)||"/",v=S4({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},h),m=d.route;if(!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:Bs([a,v.pathname]),pathnameBase:R4(Bs([a,v.pathnameBase])),route:m}),v.pathnameBase!=="/"&&(a=Bs([a,v.pathnameBase]))}return c}function S4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=C4(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],c=a.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:n.reduce((f,h,v)=>{let{paramName:m,isOptional:y}=h;if(m==="*"){let w=u[v]||"";c=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=u[v];return y&&!x?f[m]=void 0:f[m]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:c,pattern:e}}function C4(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),wv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,d)=>(n.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function E4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const T4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k4=e=>T4.test(e);function j4(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gc(e):e,a;if(r)if(k4(r))a=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),wv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+r))}r.startsWith("/")?a=P1(r.substring(1),"/"):a=P1(r,t)}else a=t;return{pathname:a,search:A4(n),hash:_4(o)}}function P1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Rg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function P4(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function I4(e,t){let r=P4(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function M4(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gc(e):(o=Fu({},e),en(!o.pathname||!o.pathname.includes("?"),Rg("?","pathname","search",o)),en(!o.pathname||!o.pathname.includes("#"),Rg("#","pathname","hash",o)),en(!o.search||!o.search.includes("#"),Rg("#","search","hash",o)));let a=e===""||o.pathname==="",c=a?"/":o.pathname,u;if(c==null)u=r;else{let v=t.length-1;if(!n&&c.startsWith("..")){let m=c.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}u=v>=0?t[v]:"/"}let d=j4(o,u),f=c&&c!=="/"&&c.endsWith("/"),h=(a||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const Bs=e=>e.join("/").replace(/\/\/+/g,"/"),R4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function L4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mC=["post","put","patch","delete"];new Set(mC);const O4=["get",...mC];new Set(O4);/**
|
|
50
|
+
* React Router v6.30.2
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hu.apply(this,arguments)}const Sv=b.createContext(null),N4=b.createContext(null),eh=b.createContext(null),th=b.createContext(null),yc=b.createContext({outlet:null,matches:[],isDataRoute:!1}),gC=b.createContext(null);function fd(){return b.useContext(th)!=null}function Cv(){return fd()||en(!1),b.useContext(th).location}function yC(e){b.useContext(eh).static||b.useLayoutEffect(e)}function Ev(){let{isDataRoute:e}=b.useContext(yc);return e?K4():$4()}function $4(){fd()||en(!1);let e=b.useContext(Sv),{basename:t,future:r,navigator:n}=b.useContext(eh),{matches:o}=b.useContext(yc),{pathname:a}=Cv(),c=JSON.stringify(I4(o,r.v7_relativeSplatPath)),u=b.useRef(!1);return yC(()=>{u.current=!0}),b.useCallback(function(f,h){if(h===void 0&&(h={}),!u.current)return;if(typeof f=="number"){n.go(f);return}let v=M4(f,JSON.parse(c),a,h.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Bs([t,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[t,n,c,a,e])}function B4(e,t){return z4(e,t)}function z4(e,t,r,n){fd()||en(!1);let{navigator:o}=b.useContext(eh),{matches:a}=b.useContext(yc),c=a[a.length-1],u=c?c.params:{};c&&c.pathname;let d=c?c.pathnameBase:"/";c&&c.route;let f=Cv(),h;if(t){var v;let C=typeof t=="string"?gc(t):t;d==="/"||(v=C.pathname)!=null&&v.startsWith(d)||en(!1),h=C}else h=f;let m=h.pathname||"/",y=m;if(d!=="/"){let C=d.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=u4(e,{pathname:y}),w=U4(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:Bs([d,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:Bs([d,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,r,n);return t&&w?b.createElement(th.Provider,{value:{location:Hu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:za.Pop}},w):w}function D4(){let e=X4(),t=L4(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:o},r):null,null)}const F4=b.createElement(D4,null);class H4 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?b.createElement(yc.Provider,{value:this.props.routeContext},b.createElement(gC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function V4(e){let{routeContext:t,match:r,children:n}=e,o=b.useContext(Sv);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(yc.Provider,{value:t},n)}function U4(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let c=e,u=(o=r)==null?void 0:o.errors;if(u!=null){let h=c.findIndex(v=>v.route.id&&(u==null?void 0:u[v.route.id])!==void 0);h>=0||en(!1),c=c.slice(0,Math.min(c.length,h+1))}let d=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<c.length;h++){let v=c[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=h),v.route.id){let{loaderData:m,errors:y}=r,x=v.route.loader&&m[v.route.id]===void 0&&(!y||y[v.route.id]===void 0);if(v.route.lazy||x){d=!0,f>=0?c=c.slice(0,f+1):c=[c[0]];break}}}return c.reduceRight((h,v,m)=>{let y,x=!1,w=null,C=null;r&&(y=u&&v.route.id?u[v.route.id]:void 0,w=v.route.errorElement||F4,d&&(f<0&&m===0?(Q4("route-fallback"),x=!0,C=null):f===m&&(x=!0,C=v.route.hydrateFallbackElement||null)));let P=t.concat(c.slice(0,m+1)),k=()=>{let I;return y?I=w:x?I=C:v.route.Component?I=b.createElement(v.route.Component,null):v.route.element?I=v.route.element:I=h,b.createElement(V4,{match:v,routeContext:{outlet:h,matches:P,isDataRoute:r!=null},children:I})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?b.createElement(H4,{location:r.location,revalidation:r.revalidation,component:w,error:y,children:k(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):k()},null)}var vC=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(vC||{}),xC=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(xC||{});function W4(e){let t=b.useContext(Sv);return t||en(!1),t}function q4(e){let t=b.useContext(N4);return t||en(!1),t}function G4(e){let t=b.useContext(yc);return t||en(!1),t}function bC(e){let t=G4(),r=t.matches[t.matches.length-1];return r.route.id||en(!1),r.route.id}function X4(){var e;let t=b.useContext(gC),r=q4(),n=bC();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function K4(){let{router:e}=W4(vC.UseNavigateStable),t=bC(xC.UseNavigateStable),r=b.useRef(!1);return yC(()=>{r.current=!0}),b.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Hu({fromRouteId:t},a)))},[e,t])}const I1={};function Q4(e,t,r){I1[e]||(I1[e]=!0)}function Y4(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function mo(e){en(!1)}function J4(e){let{basename:t="/",children:r=null,location:n,navigationType:o=za.Pop,navigator:a,static:c=!1,future:u}=e;fd()&&en(!1);let d=t.replace(/^\/*/,"/"),f=b.useMemo(()=>({basename:d,navigator:a,static:c,future:Hu({v7_relativeSplatPath:!1},u)}),[d,u,a,c]);typeof n=="string"&&(n=gc(n));let{pathname:h="/",search:v="",hash:m="",state:y=null,key:x="default"}=n,w=b.useMemo(()=>{let C=hC(h,d);return C==null?null:{location:{pathname:C,search:v,hash:m,state:y,key:x},navigationType:o}},[d,h,v,m,y,x,o]);return w==null?null:b.createElement(eh.Provider,{value:f},b.createElement(th.Provider,{children:r,value:w}))}function Z4(e){let{children:t,location:r}=e;return B4(uy(t),r)}new Promise(()=>{});function uy(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,o)=>{if(!b.isValidElement(n))return;let a=[...t,o];if(n.type===b.Fragment){r.push.apply(r,uy(n.props.children,a));return}n.type!==mo&&en(!1),!n.props.index||!n.props.children||en(!1);let c={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(c.children=uy(n.props.children,a)),r.push(c)}),r}/**
|
|
59
|
+
* React Router DOM v6.30.2
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/const e3="6";try{window.__reactRouterVersion=e3}catch{}const t3="startTransition",M1=Du[t3];function r3(e){let{basename:t,children:r,future:n,window:o}=e,a=b.useRef();a.current==null&&(a.current=s4({window:o,v5Compat:!0}));let c=a.current,[u,d]=b.useState({action:c.action,location:c.location}),{v7_startTransition:f}=n||{},h=b.useCallback(v=>{f&&M1?M1(()=>d(v)):d(v)},[d,f]);return b.useLayoutEffect(()=>c.listen(h),[c,h]),b.useEffect(()=>Y4(n),[n]),b.createElement(J4,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:c,future:n})}var R1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(R1||(R1={}));var A1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A1||(A1={}));const Vu={black:"#000",white:"#fff"},jl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Il={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ml={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},lu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},n3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function oa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const ni="$$material";function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jf.apply(null,arguments)}function o3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function i3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var a3=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(i3(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=o3(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Tn="-ms-",Pf="-moz-",er="-webkit-",wC="comm",Tv="rule",kv="decl",s3="@import",SC="@keyframes",l3="@layer",c3=Math.abs,rh=String.fromCharCode,u3=Object.assign;function d3(e,t){return mn(e,0)^45?(((t<<2^mn(e,0))<<2^mn(e,1))<<2^mn(e,2))<<2^mn(e,3):0}function CC(e){return e.trim()}function p3(e,t){return(e=t.exec(e))?e[0]:e}function tr(e,t,r){return e.replace(t,r)}function dy(e,t){return e.indexOf(t)}function mn(e,t){return e.charCodeAt(t)|0}function Uu(e,t,r){return e.slice(t,r)}function Ei(e){return e.length}function jv(e){return e.length}function $p(e,t){return t.push(e),e}function f3(e,t){return e.map(t).join("")}var nh=1,Ql=1,EC=0,Jn=0,Vr=0,vc="";function oh(e,t,r,n,o,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:nh,column:Ql,length:c,return:""}}function cu(e,t){return u3(oh("",null,null,"",null,null,0),e,{length:-e.length},t)}function h3(){return Vr}function m3(){return Vr=Jn>0?mn(vc,--Jn):0,Ql--,Vr===10&&(Ql=1,nh--),Vr}function wo(){return Vr=Jn<EC?mn(vc,Jn++):0,Ql++,Vr===10&&(Ql=1,nh++),Vr}function Pi(){return mn(vc,Jn)}function ff(){return Jn}function hd(e,t){return Uu(vc,e,t)}function Wu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function TC(e){return nh=Ql=1,EC=Ei(vc=e),Jn=0,[]}function kC(e){return vc="",e}function hf(e){return CC(hd(Jn-1,py(e===91?e+2:e===40?e+1:e)))}function g3(e){for(;(Vr=Pi())&&Vr<33;)wo();return Wu(e)>2||Wu(Vr)>3?"":" "}function y3(e,t){for(;--t&&wo()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return hd(e,ff()+(t<6&&Pi()==32&&wo()==32))}function py(e){for(;wo();)switch(Vr){case e:return Jn;case 34:case 39:e!==34&&e!==39&&py(Vr);break;case 40:e===41&&py(e);break;case 92:wo();break}return Jn}function v3(e,t){for(;wo()&&e+Vr!==57;)if(e+Vr===84&&Pi()===47)break;return"/*"+hd(t,Jn-1)+"*"+rh(e===47?e:wo())}function x3(e){for(;!Wu(Pi());)wo();return hd(e,Jn)}function b3(e){return kC(mf("",null,null,null,[""],e=TC(e),0,[0],e))}function mf(e,t,r,n,o,a,c,u,d){for(var f=0,h=0,v=c,m=0,y=0,x=0,w=1,C=1,P=1,k=0,I="",T=o,M=a,R=n,L=I;C;)switch(x=k,k=wo()){case 40:if(x!=108&&mn(L,v-1)==58){dy(L+=tr(hf(k),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:L+=hf(k);break;case 9:case 10:case 13:case 32:L+=g3(x);break;case 92:L+=y3(ff()-1,7);continue;case 47:switch(Pi()){case 42:case 47:$p(w3(v3(wo(),ff()),t,r),d);break;default:L+="/"}break;case 123*w:u[f++]=Ei(L)*P;case 125*w:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+h:P==-1&&(L=tr(L,/\f/g,"")),y>0&&Ei(L)-v&&$p(y>32?L1(L+";",n,r,v-1):L1(tr(L," ","")+";",n,r,v-2),d);break;case 59:L+=";";default:if($p(R=_1(L,t,r,f,h,o,u,I,T=[],M=[],v),a),k===123)if(h===0)mf(L,t,R,R,T,a,v,u,M);else switch(m===99&&mn(L,3)===110?100:m){case 100:case 108:case 109:case 115:mf(e,R,R,n&&$p(_1(e,R,R,0,0,o,u,I,o,T=[],v),M),o,M,v,u,n?T:M);break;default:mf(L,R,R,R,[""],M,0,u,M)}}f=h=y=0,w=P=1,I=L="",v=c;break;case 58:v=1+Ei(L),y=x;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&m3()==125)continue}switch(L+=rh(k),k*w){case 38:P=h>0?1:(L+="\f",-1);break;case 44:u[f++]=(Ei(L)-1)*P,P=1;break;case 64:Pi()===45&&(L+=hf(wo())),m=Pi(),h=v=Ei(I=L+=x3(ff())),k++;break;case 45:x===45&&Ei(L)==2&&(w=0)}}return a}function _1(e,t,r,n,o,a,c,u,d,f,h){for(var v=o-1,m=o===0?a:[""],y=jv(m),x=0,w=0,C=0;x<n;++x)for(var P=0,k=Uu(e,v+1,v=c3(w=c[x])),I=e;P<y;++P)(I=CC(w>0?m[P]+" "+k:tr(k,/&\f/g,m[P])))&&(d[C++]=I);return oh(e,t,r,o===0?Tv:u,d,f,h)}function w3(e,t,r){return oh(e,t,r,wC,rh(h3()),Uu(e,2,-2),0)}function L1(e,t,r,n){return oh(e,t,r,kv,Uu(e,0,n),Uu(e,n+1,-1),n)}function Vl(e,t){for(var r="",n=jv(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function S3(e,t,r,n){switch(e.type){case l3:if(e.children.length)break;case s3:case kv:return e.return=e.return||e.value;case wC:return"";case SC:return e.return=e.value+"{"+Vl(e.children,n)+"}";case Tv:e.value=e.props.join(",")}return Ei(r=Vl(e.children,n))?e.return=e.value+"{"+r+"}":""}function C3(e){var t=jv(e);return function(r,n,o,a){for(var c="",u=0;u<t;u++)c+=e[u](r,n,o,a)||"";return c}}function E3(e){return function(t){t.root||(t=t.return)&&e(t)}}function jC(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var T3=function(t,r,n){for(var o=0,a=0;o=a,a=Pi(),o===38&&a===12&&(r[n]=1),!Wu(a);)wo();return hd(t,Jn)},k3=function(t,r){var n=-1,o=44;do switch(Wu(o)){case 0:o===38&&Pi()===12&&(r[n]=1),t[n]+=T3(Jn-1,r,n);break;case 2:t[n]+=hf(o);break;case 4:if(o===44){t[++n]=Pi()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=rh(o)}while(o=wo());return t},j3=function(t,r){return kC(k3(TC(t),r))},O1=new WeakMap,P3=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!O1.get(n))&&!o){O1.set(t,!0);for(var a=[],c=j3(r,a),u=n.props,d=0,f=0;d<c.length;d++)for(var h=0;h<u.length;h++,f++)t.props[f]=a[d]?c[d].replace(/&\f/g,u[h]):u[h]+" "+c[d]}}},I3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function PC(e,t){switch(d3(e,t)){case 5103:return er+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return er+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return er+e+Pf+e+Tn+e+e;case 6828:case 4268:return er+e+Tn+e+e;case 6165:return er+e+Tn+"flex-"+e+e;case 5187:return er+e+tr(e,/(\w+).+(:[^]+)/,er+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return er+e+Tn+"flex-item-"+tr(e,/flex-|-self/,"")+e;case 4675:return er+e+Tn+"flex-line-pack"+tr(e,/align-content|flex-|-self/,"")+e;case 5548:return er+e+Tn+tr(e,"shrink","negative")+e;case 5292:return er+e+Tn+tr(e,"basis","preferred-size")+e;case 6060:return er+"box-"+tr(e,"-grow","")+er+e+Tn+tr(e,"grow","positive")+e;case 4554:return er+tr(e,/([^-])(transform)/g,"$1"+er+"$2")+e;case 6187:return tr(tr(tr(e,/(zoom-|grab)/,er+"$1"),/(image-set)/,er+"$1"),e,"")+e;case 5495:case 3959:return tr(e,/(image-set\([^]*)/,er+"$1$`$1");case 4968:return tr(tr(e,/(.+:)(flex-)?(.*)/,er+"box-pack:$3"+Tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+er+e+e;case 4095:case 3583:case 4068:case 2532:return tr(e,/(.+)-inline(.+)/,er+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ei(e)-1-t>6)switch(mn(e,t+1)){case 109:if(mn(e,t+4)!==45)break;case 102:return tr(e,/(.+:)(.+)-([^]+)/,"$1"+er+"$2-$3$1"+Pf+(mn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dy(e,"stretch")?PC(tr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mn(e,t+1)!==115)break;case 6444:switch(mn(e,Ei(e)-3-(~dy(e,"!important")&&10))){case 107:return tr(e,":",":"+er)+e;case 101:return tr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+er+(mn(e,14)===45?"inline-":"")+"box$3$1"+er+"$2$3$1"+Tn+"$2box$3")+e}break;case 5936:switch(mn(e,t+11)){case 114:return er+e+Tn+tr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return er+e+Tn+tr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return er+e+Tn+tr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return er+e+Tn+e+e}return e}var M3=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case kv:t.return=PC(t.value,t.length);break;case SC:return Vl([cu(t,{value:tr(t.value,"@","@"+er)})],o);case Tv:if(t.length)return f3(t.props,function(a){switch(p3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vl([cu(t,{props:[tr(a,/:(read-\w+)/,":"+Pf+"$1")]})],o);case"::placeholder":return Vl([cu(t,{props:[tr(a,/:(plac\w+)/,":"+er+"input-$1")]}),cu(t,{props:[tr(a,/:(plac\w+)/,":"+Pf+"$1")]}),cu(t,{props:[tr(a,/:(plac\w+)/,Tn+"input-$1")]})],o)}return""})}},R3=[M3],A3=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var C=w.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||R3,a={},c,u=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var C=w.getAttribute("data-emotion").split(" "),P=1;P<C.length;P++)a[C[P]]=!0;u.push(w)});var d,f=[P3,I3];{var h,v=[S3,E3(function(w){h.insert(w)})],m=C3(f.concat(o,v)),y=function(C){return Vl(b3(C),m)};d=function(C,P,k,I){h=k,y(C?C+"{"+P.styles+"}":P.styles),I&&(x.inserted[P.name]=!0)}}var x={key:r,sheet:new a3({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return x.sheet.hydrate(u),x},Ag={exports:{}},nr={};/** @license React v16.13.1
|
|
68
|
+
* react-is.production.min.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var N1;function _3(){if(N1)return nr;N1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function I(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case t:switch(M=M.type,M){case d:case f:case n:case a:case o:case v:return M;default:switch(M=M&&M.$$typeof,M){case u:case h:case x:case y:case c:return M;default:return R}}case r:return R}}}function T(M){return I(M)===f}return nr.AsyncMode=d,nr.ConcurrentMode=f,nr.ContextConsumer=u,nr.ContextProvider=c,nr.Element=t,nr.ForwardRef=h,nr.Fragment=n,nr.Lazy=x,nr.Memo=y,nr.Portal=r,nr.Profiler=a,nr.StrictMode=o,nr.Suspense=v,nr.isAsyncMode=function(M){return T(M)||I(M)===d},nr.isConcurrentMode=T,nr.isContextConsumer=function(M){return I(M)===u},nr.isContextProvider=function(M){return I(M)===c},nr.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},nr.isForwardRef=function(M){return I(M)===h},nr.isFragment=function(M){return I(M)===n},nr.isLazy=function(M){return I(M)===x},nr.isMemo=function(M){return I(M)===y},nr.isPortal=function(M){return I(M)===r},nr.isProfiler=function(M){return I(M)===a},nr.isStrictMode=function(M){return I(M)===o},nr.isSuspense=function(M){return I(M)===v},nr.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===f||M===a||M===o||M===v||M===m||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===y||M.$$typeof===c||M.$$typeof===u||M.$$typeof===h||M.$$typeof===C||M.$$typeof===P||M.$$typeof===k||M.$$typeof===w)},nr.typeOf=I,nr}var $1;function L3(){return $1||($1=1,Ag.exports=_3()),Ag.exports}var _g,B1;function O3(){if(B1)return _g;B1=1;var e=L3(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=o;function c(x){return e.isMemo(x)?o:a[x.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,m=Object.prototype;function y(x,w,C){if(typeof w!="string"){if(m){var P=v(w);P&&P!==m&&y(x,P,C)}var k=d(w);f&&(k=k.concat(f(w)));for(var I=c(x),T=c(w),M=0;M<k.length;++M){var R=k[M];if(!r[R]&&!(C&&C[R])&&!(T&&T[R])&&!(I&&I[R])){var L=h(w,R);try{u(x,R,L)}catch{}}}}return x}return _g=y,_g}O3();var N3=!0;function IC(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Pv=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||N3===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Iv=function(t,r,n){Pv(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function $3(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var B3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z3=/[A-Z]|^ms/g,D3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,MC=function(t){return t.charCodeAt(1)===45},z1=function(t){return t!=null&&typeof t!="boolean"},Lg=jC(function(e){return MC(e)?e:e.replace(z3,"-$&").toLowerCase()}),D1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(D3,function(n,o,a){return Ti={name:o,styles:a,next:Ti},o})}return B3[t]!==1&&!MC(t)&&typeof r=="number"&&r!==0?r+"px":r};function qu(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ti={name:o.name,styles:o.styles,next:Ti},o.name;var a=r;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)Ti={name:c.name,styles:c.styles,next:Ti},c=c.next;var u=a.styles+";";return u}return F3(e,t,r)}case"function":{if(e!==void 0){var d=Ti,f=r(e);return Ti=d,qu(e,t,f)}break}}var h=r;if(t==null)return h;var v=t[h];return v!==void 0?v:h}function F3(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=qu(e,t,r[o])+";";else for(var a in r){var c=r[a];if(typeof c!="object"){var u=c;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":z1(u)&&(n+=Lg(a)+":"+D1(a,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var d=0;d<c.length;d++)z1(c[d])&&(n+=Lg(a)+":"+D1(a,c[d])+";");else{var f=qu(e,t,c);switch(a){case"animation":case"animationName":{n+=Lg(a)+":"+f+";";break}default:n+=a+"{"+f+"}"}}}return n}var F1=/label:\s*([^\s;{]+)\s*(;|$)/g,Ti;function md(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ti=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=qu(r,t,a);else{var c=a;o+=c[0]}for(var u=1;u<e.length;u++)if(o+=qu(r,t,e[u]),n){var d=a;o+=d[u]}F1.lastIndex=0;for(var f="",h;(h=F1.exec(o))!==null;)f+="-"+h[1];var v=$3(o)+f;return{name:v,styles:o,next:Ti}}var H3=function(t){return t()},RC=Du.useInsertionEffect?Du.useInsertionEffect:!1,AC=RC||H3,H1=RC||b.useLayoutEffect,_C=b.createContext(typeof HTMLElement<"u"?A3({key:"css"}):null);_C.Provider;var Mv=function(t){return b.forwardRef(function(r,n){var o=b.useContext(_C);return t(r,o,n)})},gd=b.createContext({}),Rv={}.hasOwnProperty,fy="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",V3=function(t,r){var n={};for(var o in r)Rv.call(r,o)&&(n[o]=r[o]);return n[fy]=t,n},U3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pv(r,n,o),AC(function(){return Iv(r,n,o)}),null},W3=Mv(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[fy],a=[n],c="";typeof e.className=="string"?c=IC(t.registered,a,e.className):e.className!=null&&(c=e.className+" ");var u=md(a,void 0,b.useContext(gd));c+=t.key+"-"+u.name;var d={};for(var f in e)Rv.call(e,f)&&f!=="css"&&f!==fy&&(d[f]=e[f]);return d.className=c,r&&(d.ref=r),b.createElement(b.Fragment,null,b.createElement(U3,{cache:t,serialized:u,isStringTag:typeof o=="string"}),b.createElement(o,d))}),q3=W3,V1=function(t,r){var n=arguments;if(r==null||!Rv.call(r,"css"))return b.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=q3,a[1]=V3(t,r);for(var c=2;c<o;c++)a[c]=n[c];return b.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(V1||(V1={}));var G3=Mv(function(e,t){var r=e.styles,n=md([r],void 0,b.useContext(gd)),o=b.useRef();return H1(function(){var a=t.key+"-global",c=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",a),c.hydrate([d])),o.current=[c,u],function(){c.flush()}},[t]),H1(function(){var a=o.current,c=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&Iv(t,n.next,!0),c.tags.length){var d=c.tags[c.tags.length-1].nextElementSibling;c.before=d,c.flush()}t.insert("",n,c,!1)},[t,n.name]),null});function as(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return md(t)}function zi(){var e=as.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var X3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,K3=jC(function(e){return X3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q3=K3,Y3=function(t){return t!=="theme"},U1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Q3:Y3},W1=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(c){return t.__emotion_forwardProp(c)&&a(c)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},J3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pv(r,n,o),AC(function(){return Iv(r,n,o)}),null},Z3=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,c;r!==void 0&&(a=r.label,c=r.target);var u=W1(t,r,n),d=u||U1(o),f=!d("as");return function(){var h=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var m=h[0];v.push(m[0]);for(var y=h.length,x=1;x<y;x++)v.push(h[x],m[x])}var w=Mv(function(C,P,k){var I=f&&C.as||o,T="",M=[],R=C;if(C.theme==null){R={};for(var L in C)R[L]=C[L];R.theme=b.useContext(gd)}typeof C.className=="string"?T=IC(P.registered,M,C.className):C.className!=null&&(T=C.className+" ");var A=md(v.concat(M),P.registered,R);T+=P.key+"-"+A.name,c!==void 0&&(T+=" "+c);var H=f&&u===void 0?U1(I):d,G={};for(var $ in C)f&&$==="as"||H($)&&(G[$]=C[$]);return G.className=T,k&&(G.ref=k),b.createElement(b.Fragment,null,b.createElement(J3,{cache:P,serialized:A,isStringTag:typeof I=="string"}),b.createElement(I,G))});return w.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=o,w.__emotion_styles=v,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(C,P){var k=e(C,jf({},r,P,{shouldForwardProp:W1(w,P,!0)}));return k.apply(void 0,v)},w}},e5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hy=Z3.bind(null);e5.forEach(function(e){hy[e]=hy(e)});function t5(e){return e==null||Object.keys(e).length===0}function LC(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(t5(o)?r:o):t;return l.jsx(G3,{styles:n})}function OC(e,t){return hy(e,t)}function r5(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const q1=[];function Va(e){return q1[0]=e,md(q1)}var Og={exports:{}},dr={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-is.production.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var G1;function n5(){if(G1)return dr;G1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case e:switch(w=w.type,w){case r:case o:case n:case d:case f:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case u:case v:case h:return w;case a:return w;default:return C}}case t:return C}}}return dr.ContextConsumer=a,dr.ContextProvider=c,dr.Element=e,dr.ForwardRef=u,dr.Fragment=r,dr.Lazy=v,dr.Memo=h,dr.Portal=t,dr.Profiler=o,dr.StrictMode=n,dr.Suspense=d,dr.SuspenseList=f,dr.isContextConsumer=function(w){return x(w)===a},dr.isContextProvider=function(w){return x(w)===c},dr.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},dr.isForwardRef=function(w){return x(w)===u},dr.isFragment=function(w){return x(w)===r},dr.isLazy=function(w){return x(w)===v},dr.isMemo=function(w){return x(w)===h},dr.isPortal=function(w){return x(w)===t},dr.isProfiler=function(w){return x(w)===o},dr.isStrictMode=function(w){return x(w)===n},dr.isSuspense=function(w){return x(w)===d},dr.isSuspenseList=function(w){return x(w)===f},dr.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===o||w===n||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===h||w.$$typeof===c||w.$$typeof===a||w.$$typeof===u||w.$$typeof===y||w.getModuleId!==void 0)},dr.typeOf=x,dr}var X1;function o5(){return X1||(X1=1,Og.exports=n5()),Og.exports}var NC=o5();function ji(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $C(e){if(b.isValidElement(e)||NC.isValidElementType(e)||!ji(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$C(e[r])}),t}function ln(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ji(e)&&ji(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||NC.isValidElementType(t[o])?n[o]=t[o]:ji(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ji(e[o])?n[o]=ln(e[o],t[o],r):r.clone?n[o]=ji(t[o])?$C(t[o]):t[o]:n[o]=t[o]}),n}const i5=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function a5(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=i5(t),c=Object.keys(a);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function f(m,y){const x=c.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[c[x]]=="number"?t[c[x]]:y)-n/100}${r})`}function h(m){return c.indexOf(m)+1<c.length?f(m,c[c.indexOf(m)+1]):u(m)}function v(m){const y=c.indexOf(m);return y===0?u(c[1]):y===c.length-1?d(c[y]):f(m,c[c.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:c,values:a,up:u,down:d,between:f,only:h,not:v,unit:r,...o}}function K1(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var c,u;const a=/min-width:\s*([0-9.]+)/;return+(((c=n.match(a))==null?void 0:c[1])||0)-+(((u=o.match(a))==null?void 0:u[1])||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function s5(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function l5(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function c5(e){const t=(a,c)=>a.replace("@media",c?`@container ${c}`:"@container");function r(a,c){a.up=(...u)=>t(e.breakpoints.up(...u),c),a.down=(...u)=>t(e.breakpoints.down(...u),c),a.between=(...u)=>t(e.breakpoints.between(...u),c),a.only=(...u)=>t(e.breakpoints.only(...u),c),a.not=(...u)=>{const d=t(e.breakpoints.not(...u),c);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const u5={borderRadius:4};function Iu(e,t){return t?ln(e,t,{clone:!1}):e}const ih={xs:0,sm:600,md:900,lg:1200,xl:1536},Q1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ih[e]}px)`},d5={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:ih[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function oi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Q1;return t.reduce((c,u,d)=>(c[a.up(a.keys[d])]=r(t[d]),c),{})}if(typeof t=="object"){const a=n.breakpoints||Q1;return Object.keys(t).reduce((c,u)=>{if(s5(a.keys,u)){const d=l5(n.containerQueries?n:d5,u);d&&(c[d]=r(t[u],u))}else if(Object.keys(a.values||ih).includes(u)){const d=a.up(u);c[d]=r(t[u],u)}else{const d=u;c[d]=t[d]}return c},{})}return r(t)}function BC(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function my(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function p5(e,...t){const r=BC(e),n=[r,...t].reduce((o,a)=>ln(o,a),{});return my(Object.keys(r),n)}function f5(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Ng({values:e,breakpoints:t,base:r}){const n=r||f5(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((c,u,d)=>(Array.isArray(e)?(c[u]=e[d]!=null?e[d]:e[a],a=d):typeof e=="object"?(c[u]=e[u]!=null?e[u]:e[a],a=u):c[u]=e,c),{})}function ve(e){if(typeof e!="string")throw new Error(oa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ki(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function If(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ki(e,r)||n,t&&(o=t(o,n,e)),o}function Br(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=c=>{if(c[t]==null)return null;const u=c[t],d=c.theme,f=ki(d,n)||{};return oi(c,u,v=>{let m=If(f,o,v);return v===m&&typeof v=="string"&&(m=If(f,o,`${t}${v==="default"?"":ve(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function h5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const m5={m:"margin",p:"padding"},g5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Y1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},y5=h5(e=>{if(e.length>2)if(Y1[e])e=Y1[e];else return[e];const[t,r]=e.split(""),n=m5[t],o=g5[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Av=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_v=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Av,..._v];function yd(e,t,r,n){const o=ki(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const c=Math.abs(a),u=o[c];return a>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof o=="function"?o:()=>{}}function ah(e){return yd(e,"spacing",8)}function Ds(e,t){return typeof t=="string"||t==null?t:e(t)}function v5(e,t){return r=>e.reduce((n,o)=>(n[o]=Ds(t,r),n),{})}function x5(e,t,r,n){if(!t.includes(r))return null;const o=y5(r),a=v5(o,n),c=e[r];return oi(e,c,a)}function zC(e,t){const r=ah(e.theme);return Object.keys(e).map(n=>x5(e,t,n,r)).reduce(Iu,{})}function Mr(e){return zC(e,Av)}Mr.propTypes={};Mr.filterProps=Av;function Rr(e){return zC(e,_v)}Rr.propTypes={};Rr.filterProps=_v;function DC(e=8,t=ah({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const c=t(a);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function sh(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Iu(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Lo(e){return typeof e!="number"?e:`${e}px solid`}function Vo(e,t){return Br({prop:e,themeKey:"borders",transform:t})}const b5=Vo("border",Lo),w5=Vo("borderTop",Lo),S5=Vo("borderRight",Lo),C5=Vo("borderBottom",Lo),E5=Vo("borderLeft",Lo),T5=Vo("borderColor"),k5=Vo("borderTopColor"),j5=Vo("borderRightColor"),P5=Vo("borderBottomColor"),I5=Vo("borderLeftColor"),M5=Vo("outline",Lo),R5=Vo("outlineColor"),lh=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yd(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ds(t,n)});return oi(e,e.borderRadius,r)}return null};lh.propTypes={};lh.filterProps=["borderRadius"];sh(b5,w5,S5,C5,E5,T5,k5,j5,P5,I5,lh,M5,R5);const ch=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yd(e.theme,"spacing",8),r=n=>({gap:Ds(t,n)});return oi(e,e.gap,r)}return null};ch.propTypes={};ch.filterProps=["gap"];const uh=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yd(e.theme,"spacing",8),r=n=>({columnGap:Ds(t,n)});return oi(e,e.columnGap,r)}return null};uh.propTypes={};uh.filterProps=["columnGap"];const dh=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yd(e.theme,"spacing",8),r=n=>({rowGap:Ds(t,n)});return oi(e,e.rowGap,r)}return null};dh.propTypes={};dh.filterProps=["rowGap"];const A5=Br({prop:"gridColumn"}),_5=Br({prop:"gridRow"}),L5=Br({prop:"gridAutoFlow"}),O5=Br({prop:"gridAutoColumns"}),N5=Br({prop:"gridAutoRows"}),$5=Br({prop:"gridTemplateColumns"}),B5=Br({prop:"gridTemplateRows"}),z5=Br({prop:"gridTemplateAreas"}),D5=Br({prop:"gridArea"});sh(ch,uh,dh,A5,_5,L5,O5,N5,$5,B5,z5,D5);function Ul(e,t){return t==="grey"?t:e}const F5=Br({prop:"color",themeKey:"palette",transform:Ul}),H5=Br({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ul}),V5=Br({prop:"backgroundColor",themeKey:"palette",transform:Ul});sh(F5,H5,V5);function xo(e){return e<=1&&e!==0?`${e*100}%`:e}const U5=Br({prop:"width",transform:xo}),Lv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,a,c,u,d;const n=((c=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:c[r])||ih[r];return n?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:xo(r)}};return oi(e,e.maxWidth,t)}return null};Lv.filterProps=["maxWidth"];const W5=Br({prop:"minWidth",transform:xo}),q5=Br({prop:"height",transform:xo}),G5=Br({prop:"maxHeight",transform:xo}),X5=Br({prop:"minHeight",transform:xo});Br({prop:"size",cssProperty:"width",transform:xo});Br({prop:"size",cssProperty:"height",transform:xo});const K5=Br({prop:"boxSizing"});sh(U5,Lv,W5,q5,G5,X5,K5);const vd={border:{themeKey:"borders",transform:Lo},borderTop:{themeKey:"borders",transform:Lo},borderRight:{themeKey:"borders",transform:Lo},borderBottom:{themeKey:"borders",transform:Lo},borderLeft:{themeKey:"borders",transform:Lo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lh},color:{themeKey:"palette",transform:Ul},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ul},backgroundColor:{themeKey:"palette",transform:Ul},p:{style:Rr},pt:{style:Rr},pr:{style:Rr},pb:{style:Rr},pl:{style:Rr},px:{style:Rr},py:{style:Rr},padding:{style:Rr},paddingTop:{style:Rr},paddingRight:{style:Rr},paddingBottom:{style:Rr},paddingLeft:{style:Rr},paddingX:{style:Rr},paddingY:{style:Rr},paddingInline:{style:Rr},paddingInlineStart:{style:Rr},paddingInlineEnd:{style:Rr},paddingBlock:{style:Rr},paddingBlockStart:{style:Rr},paddingBlockEnd:{style:Rr},m:{style:Mr},mt:{style:Mr},mr:{style:Mr},mb:{style:Mr},ml:{style:Mr},mx:{style:Mr},my:{style:Mr},margin:{style:Mr},marginTop:{style:Mr},marginRight:{style:Mr},marginBottom:{style:Mr},marginLeft:{style:Mr},marginX:{style:Mr},marginY:{style:Mr},marginInline:{style:Mr},marginInlineStart:{style:Mr},marginInlineEnd:{style:Mr},marginBlock:{style:Mr},marginBlockStart:{style:Mr},marginBlockEnd:{style:Mr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ch},rowGap:{style:dh},columnGap:{style:uh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xo},maxWidth:{style:Lv},minWidth:{transform:xo},height:{transform:xo},maxHeight:{transform:xo},minHeight:{transform:xo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Q5(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Y5(e,t){return typeof e=="function"?e(t):e}function J5(){function e(r,n,o,a){const c={[r]:n,theme:o},u=a[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:f,transform:h,style:v}=u;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=ki(o,f)||{};return v?v(c):oi(c,n,x=>{let w=If(m,h,x);return x===w&&typeof x=="string"&&(w=If(m,h,`${r}${x==="default"?"":ve(x)}`,x)),d===!1?w:{[d]:w}})}function t(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const c=o.unstable_sxConfig??vd;function u(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const h=BC(o.breakpoints),v=Object.keys(h);let m=h;return Object.keys(f).forEach(y=>{const x=Y5(f[y],o);if(x!=null)if(typeof x=="object")if(c[y])m=Iu(m,e(y,x,o,c));else{const w=oi({theme:o},x,C=>({[y]:C}));Q5(w,x)?m[y]=t({sx:x,theme:o,nested:!0}):m=Iu(m,w)}else m=Iu(m,e(y,x,o,c))}),!a&&o.modularCssLayers?{"@layer sx":K1(o,my(v,m))}:K1(o,my(v,m))}return Array.isArray(n)?n.map(u):u(n)}return t}const Wa=J5();Wa.filterProps=["sx"];function Z5(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function xc(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...c}=e,u=a5(r),d=DC(o);let f=ln({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...u5,...a}},c);return f=c5(f),f.applyStyles=Z5,f=t.reduce((h,v)=>ln(h,v),f),f.unstable_sxConfig={...vd,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(v){return Wa({sx:v,theme:this})},f}function eI(e){return Object.keys(e).length===0}function ph(e=null){const t=b.useContext(gd);return!t||eI(t)?e:t}const tI=xc();function xd(e=tI){return ph(e)}function $g(e){const t=Va(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function FC({styles:e,themeId:t,defaultTheme:r={}}){const n=xd(r),o=t&&n[t]||n;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(c=>$g(typeof c=="function"?c(o):c)):a=$g(a)),l.jsx(LC,{styles:a})}const rI=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??vd;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function fh(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=rI(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...c)=>{const u=t(...c);return ji(u)?{...n,...u}:n}:a={...n,...t},{...o,sx:a}}const J1=e=>e,nI=()=>{let e=J1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=J1}}},HC=nI();function VC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=VC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ie(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=VC(e))&&(n&&(n+=" "),n+=t);return n}function oI(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=OC("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Wa);return b.forwardRef(function(d,f){const h=xd(r),{className:v,component:m="div",...y}=fh(d);return l.jsx(a,{as:m,ref:f,className:Ie(v,o?o(n):n),theme:t&&h[t]||h,...y})})}const iI={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Je(e,t,r="Mui"){const n=iI[t];return n?`${r}-${n}`:`${HC.generate(e)}-${t}`}function tt(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Je(e,o,r)}),n}function UC(e){const{variants:t,...r}=e,n={variants:t,style:Va(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Va(o.style))}),n}const aI=xc();function Bg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Os(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function sI(e){return e?(t,r)=>r[e]:null}function lI(e,t,r){e.theme=uI(e.theme)?r:e.theme[t]||e.theme}function gf(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>gf(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Os(n.style,r):n.style;else{const{variants:a,...c}=n;o=r?Os(Va(c),r):c}return WC(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Os(Va(n.style),r):n.style:r?Os(Va(n),r):n}function WC(e,t,r=[],n=void 0){var a;let o;e:for(let c=0;c<t.length;c+=1){const u=t[c];if(typeof u.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(o))continue}else for(const d in u.props)if(e[d]!==u.props[d]&&((a=e.ownerState)==null?void 0:a[d])!==u.props[d])continue e;typeof u.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?Os(Va(u.style(o)),n):u.style(o))):r.push(n?Os(Va(u.style),n):u.style)}return r}function qC(e={}){const{themeId:t,defaultTheme:r=aI,rootShouldForwardProp:n=Bg,slotShouldForwardProp:o=Bg}=e;function a(u){lI(u,t,r)}return(u,d={})=>{r5(u,R=>R.filter(L=>L!==Wa));const{name:f,slot:h,skipVariantsResolver:v,skipSx:m,overridesResolver:y=sI(pI(h)),...x}=d,w=f&&f.startsWith("Mui")||h?"components":"custom",C=v!==void 0?v:h&&h!=="Root"&&h!=="root"||!1,P=m||!1;let k=Bg;h==="Root"||h==="root"?k=n:h?k=o:dI(u)&&(k=void 0);const I=OC(u,{shouldForwardProp:k,label:cI(),...x}),T=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(A){return gf(A,R,A.theme.modularCssLayers?w:void 0)};if(ji(R)){const L=UC(R);return function(H){return L.variants?gf(H,L,H.theme.modularCssLayers?w:void 0):H.theme.modularCssLayers?Os(L.style,w):L.style}}return R},M=(...R)=>{const L=[],A=R.map(T),H=[];if(L.push(a),f&&y&&H.push(function(q){var K,Y;const O=(Y=(K=q.theme.components)==null?void 0:K[f])==null?void 0:Y.styleOverrides;if(!O)return null;const U={};for(const Z in O)U[Z]=gf(q,O[Z],q.theme.modularCssLayers?"theme":void 0);return y(q,U)}),f&&!C&&H.push(function(q){var U,K;const V=q.theme,O=(K=(U=V==null?void 0:V.components)==null?void 0:U[f])==null?void 0:K.variants;return O?WC(q,O,[],q.theme.modularCssLayers?"theme":void 0):null}),P||H.push(Wa),Array.isArray(A[0])){const j=A.shift(),q=new Array(L.length).fill(""),V=new Array(H.length).fill("");let O;O=[...q,...j,...V],O.raw=[...q,...j.raw,...V],L.unshift(O)}const G=[...L,...A,...H],$=I(...G);return u.muiName&&($.muiName=u.muiName),$};return I.withConfig&&(M.withConfig=I.withConfig),M}}function cI(e,t){return void 0}function uI(e){for(const t in e)return!1;return!0}function dI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pI(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ov=qC();function Yl(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const c=e[a],u=t[a];if(!u)n[a]=c||{};else if(!c)n[a]=u;else{n[a]={...u};for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const f=d;n[a][f]=Yl(c[f],u[f],r)}}}else a==="className"&&r&&t.className?n.className=Ie(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[a]===void 0&&(n[a]=e[a])}return n}function GC(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Yl(t.components[r].defaultProps,n)}function Nv({props:e,name:t,defaultTheme:r,themeId:n}){let o=xd(r);return n&&(o=o[n]||o),GC({theme:o,name:t,props:e})}const Zn=typeof window<"u"?b.useLayoutEffect:b.useEffect;function fI(e,t,r,n,o){const[a,c]=b.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Zn(()=>{if(!r)return;const u=r(e),d=()=>{c(u.matches)};return d(),u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}},[e,r]),a}const hI={...Du},XC=hI.useSyncExternalStore;function mI(e,t,r,n,o){const a=b.useCallback(()=>t,[t]),c=b.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return a},[a,e,n,o,r]),[u,d]=b.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(e);return[()=>h.matches,v=>(h.addEventListener("change",v),()=>{h.removeEventListener("change",v)})]},[a,r,e]);return XC(d,u,c)}function KC(e={}){const{themeId:t}=e;return function(n,o={}){let a=ph();a&&t&&(a=a[t]||a);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:d=c?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=GC({name:"MuiUseMediaQuery",props:o,theme:a});let v=typeof n=="function"?n(a):n;return v=v.replace(/^@media( ?)/m,""),v.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
83
|
+
`)),(XC!==void 0?mI:fI)(v,u,d,f,h)}}KC();function gI(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function $v(e,t=0,r=1){return gI(e,t,r)}function yI(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function qa(e){if(e.type)return e;if(e.charAt(0)==="#")return qa(yI(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(oa(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(oa(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const vI=e=>{const t=qa(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Su=(e,t)=>{try{return vI(e)}catch{return e}};function hh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function QC(e){e=qa(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),c=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const d=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),hh({type:u,values:d})}function gy(e){e=qa(e);let t=e.type==="hsl"||e.type==="hsla"?qa(QC(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xI(e,t){const r=gy(e),n=gy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Gu(e,t){return e=qa(e),t=$v(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hh(e)}function js(e,t,r){try{return Gu(e,t)}catch{return e}}function mh(e,t){if(e=qa(e),t=$v(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hh(e)}function sr(e,t,r){try{return mh(e,t)}catch{return e}}function gh(e,t){if(e=qa(e),t=$v(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hh(e)}function lr(e,t,r){try{return gh(e,t)}catch{return e}}function yy(e,t=.15){return gy(e)>.5?mh(e,t):gh(e,t)}function Bp(e,t,r){try{return yy(e,t)}catch{return e}}const YC=b.createContext(null);function Bv(){return b.useContext(YC)}const bI=typeof Symbol=="function"&&Symbol.for,wI=bI?Symbol.for("mui.nested"):"__THEME_NESTED__";function SI(e,t){return typeof t=="function"?t(e):{...e,...t}}function CI(e){const{children:t,theme:r}=e,n=Bv(),o=b.useMemo(()=>{const a=n===null?{...r}:SI(n,r);return a!=null&&(a[wI]=n!==null),a},[r,n]);return l.jsx(YC.Provider,{value:o,children:t})}const JC=b.createContext();function EI({value:e,...t}){return l.jsx(JC.Provider,{value:e??!0,...t})}const ss=()=>b.useContext(JC)??!1,ZC=b.createContext(void 0);function TI({value:e,children:t}){return l.jsx(ZC.Provider,{value:e,children:t})}function kI(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Yl(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Yl(o,n,t.components.mergeClassNameAndStyle):n}function jI({props:e,name:t}){const r=b.useContext(ZC);return kI({props:e,name:t,theme:{components:r}})}let Z1=0;function PI(e){const[t,r]=b.useState(e),n=e||t;return b.useEffect(()=>{t==null&&(Z1+=1,r(`mui-${Z1}`))},[t]),n}const II={...Du},ew=II.useId;function Ri(e){if(ew!==void 0){const t=ew();return e??t}return PI(e)}function MI(e){const t=ph(),r=Ri()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Zn(()=>{var u,d;const a=document.querySelector("head");if(!a)return;const c=a.firstChild;if(o){if(c&&((u=c.hasAttribute)!=null&&u.call(c,"data-mui-layer-order"))&&c.getAttribute("data-mui-layer-order")===r)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",r),f.textContent=o,a.prepend(f)}else(d=a.querySelector(`style[data-mui-layer-order="${r}"]`))==null||d.remove()},[o,r]),o?l.jsx(FC,{styles:o}):null}const tw={};function rw(e,t,r,n=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),c=e?{...t,[e]:a}:a;return n?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function eE(e){const{children:t,theme:r,themeId:n}=e,o=ph(tw),a=Bv()||tw,c=rw(n,o,r),u=rw(n,a,r,!0),d=(n?c[n]:c).direction==="rtl",f=MI(c);return l.jsx(CI,{theme:u,children:l.jsx(gd.Provider,{value:c,children:l.jsx(EI,{value:d,children:l.jsxs(TI,{value:n?c[n].components:c.components,children:[f,t]})})})})}const nw={theme:void 0};function RI(e){let t,r;return function(o){let a=t;return(a===void 0||o.theme!==r)&&(nw.theme=o.theme,a=UC(e(nw)),t=a,r=o.theme),a}}const zv="mode",Dv="color-scheme",AI="data-color-scheme";function _I(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=zv,colorSchemeStorageKey:a=Dv,attribute:c=AI,colorSchemeNode:u="document.documentElement",nonce:d}=e||{};let f="",h=c;if(c==="class"&&(h=".%s"),c==="data"&&(h="[data-%s]"),h.startsWith(".")){const m=h.substring(1);f+=`${u}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark));
|
|
84
|
+
${u}.classList.add('${m}'.replace('%s', colorScheme));`}const v=h.match(/\[([^[\]]+)\]/);if(v){const[m,y]=v[1].split("=");y||(f+=`${u}.removeAttribute('${m}'.replace('%s', light));
|
|
85
|
+
${u}.removeAttribute('${m}'.replace('%s', dark));`),f+=`
|
|
86
|
+
${u}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(f+=`${u}.setAttribute('${h}', colorScheme);`);return l.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
87
|
+
try {
|
|
88
|
+
let colorScheme = '';
|
|
89
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
90
|
+
const dark = localStorage.getItem('${a}-dark') || '${n}';
|
|
91
|
+
const light = localStorage.getItem('${a}-light') || '${r}';
|
|
92
|
+
if (mode === 'system') {
|
|
93
|
+
// handle system mode
|
|
94
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
95
|
+
if (mql.matches) {
|
|
96
|
+
colorScheme = dark
|
|
97
|
+
} else {
|
|
98
|
+
colorScheme = light
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (mode === 'light') {
|
|
102
|
+
colorScheme = light;
|
|
103
|
+
}
|
|
104
|
+
if (mode === 'dark') {
|
|
105
|
+
colorScheme = dark;
|
|
106
|
+
}
|
|
107
|
+
if (colorScheme) {
|
|
108
|
+
${f}
|
|
109
|
+
}
|
|
110
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function LI(){}const OI=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return LI;const n=o=>{const a=o.newValue;o.key===e&&r(a)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function zg(){}function ow(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function tE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function NI(e){return tE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function $I(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=zv,colorSchemeStorageKey:c=Dv,storageWindow:u=typeof window>"u"?void 0:window,storageManager:d=OI,noSsr:f=!1}=e,h=o.join(","),v=o.length>1,m=b.useMemo(()=>d==null?void 0:d({key:a,storageWindow:u}),[d,a,u]),y=b.useMemo(()=>d==null?void 0:d({key:`${c}-light`,storageWindow:u}),[d,c,u]),x=b.useMemo(()=>d==null?void 0:d({key:`${c}-dark`,storageWindow:u}),[d,c,u]),[w,C]=b.useState(()=>{const A=(m==null?void 0:m.get(t))||t,H=(y==null?void 0:y.get(r))||r,G=(x==null?void 0:x.get(n))||n;return{mode:A,systemMode:ow(A),lightColorScheme:H,darkColorScheme:G}}),[P,k]=b.useState(f||!v);b.useEffect(()=>{k(!0)},[]);const I=NI(w),T=b.useCallback(A=>{C(H=>{if(A===H.mode)return H;const G=A??t;return m==null||m.set(G),{...H,mode:G,systemMode:ow(G)}})},[m,t]),M=b.useCallback(A=>{A?typeof A=="string"?A&&!h.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):C(H=>{const G={...H};return tE(H,$=>{$==="light"&&(y==null||y.set(A),G.lightColorScheme=A),$==="dark"&&(x==null||x.set(A),G.darkColorScheme=A)}),G}):C(H=>{const G={...H},$=A.light===null?r:A.light,j=A.dark===null?n:A.dark;return $&&(h.includes($)?(G.lightColorScheme=$,y==null||y.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),j&&(h.includes(j)?(G.darkColorScheme=j,x==null||x.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),G}):C(H=>(y==null||y.set(r),x==null||x.set(n),{...H,lightColorScheme:r,darkColorScheme:n}))},[h,y,x,r,n]),R=b.useCallback(A=>{w.mode==="system"&&C(H=>{const G=A!=null&&A.matches?"dark":"light";return H.systemMode===G?H:{...H,systemMode:G}})},[w.mode]),L=b.useRef(R);return L.current=R,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const A=(...G)=>L.current(...G),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(A),A(H),()=>{H.removeListener(A)}},[v]),b.useEffect(()=>{if(v){const A=(m==null?void 0:m.subscribe($=>{(!$||["light","dark","system"].includes($))&&T($||t)}))||zg,H=(y==null?void 0:y.subscribe($=>{(!$||h.match($))&&M({light:$})}))||zg,G=(x==null?void 0:x.subscribe($=>{(!$||h.match($))&&M({dark:$})}))||zg;return()=>{A(),H(),G()}}},[M,T,h,t,u,v,m,y,x]),{...w,mode:P?w.mode:void 0,systemMode:P?w.systemMode:void 0,colorScheme:P?I:void 0,setMode:T,setColorScheme:M}}const BI="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function zI(e){const{themeId:t,theme:r={},modeStorageKey:n=zv,colorSchemeStorageKey:o=Dv,disableTransitionOnChange:a=!1,defaultColorScheme:c,resolveTheme:u}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=b.createContext(void 0),h=()=>b.useContext(f)||d,v={},m={};function y(P){var we,je,Re,qe;const{children:k,theme:I,modeStorageKey:T=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:R=a,storageManager:L,storageWindow:A=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:G=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:j=!1,defaultMode:q="system",forceThemeRerender:V=!1,noSsr:O}=P,U=b.useRef(!1),K=Bv(),Y=b.useContext(f),Z=!!Y&&!$,Q=b.useMemo(()=>I||(typeof r=="function"?r():r),[I]),X=Q[t],re=X||Q,{colorSchemes:de=v,components:J=m,cssVarPrefix:oe}=re,ee=Object.keys(de).filter(et=>!!de[et]).join(","),he=b.useMemo(()=>ee.split(","),[ee]),Ce=typeof c=="string"?c:c.light,ye=typeof c=="string"?c:c.dark,ce=de[Ce]&&de[ye]?q:((je=(we=de[re.defaultColorScheme])==null?void 0:we.palette)==null?void 0:je.mode)||((Re=re.palette)==null?void 0:Re.mode),{mode:Fe,setMode:Le,systemMode:Ne,lightColorScheme:$e,darkColorScheme:Me,colorScheme:Xe,setColorScheme:dt}=$I({supportedColorSchemes:he,defaultLightColorScheme:Ce,defaultDarkColorScheme:ye,modeStorageKey:T,colorSchemeStorageKey:M,defaultMode:ce,storageManager:L,storageWindow:A,noSsr:O});let le=Fe,Ye=Xe;Z&&(le=Y.mode,Ye=Y.colorScheme);let We=Ye||re.defaultColorScheme;re.vars&&!V&&(We=re.defaultColorScheme);const ft=b.useMemo(()=>{var Pe;const et=((Pe=re.generateThemeVars)==null?void 0:Pe.call(re))||re.vars,ie={...re,components:J,colorSchemes:de,cssVarPrefix:oe,vars:et};if(typeof ie.generateSpacing=="function"&&(ie.spacing=ie.generateSpacing()),We){const Be=de[We];Be&&typeof Be=="object"&&Object.keys(Be).forEach(He=>{Be[He]&&typeof Be[He]=="object"?ie[He]={...ie[He],...Be[He]}:ie[He]=Be[He]})}return u?u(ie):ie},[re,We,J,de,oe]),ze=re.colorSchemeSelector;Zn(()=>{if(Ye&&G&&ze&&ze!=="media"){const et=ze;let ie=ze;if(et==="class"&&(ie=".%s"),et==="data"&&(ie="[data-%s]"),et!=null&&et.startsWith("data-")&&!et.includes("%s")&&(ie=`[${et}="%s"]`),ie.startsWith("."))G.classList.remove(...he.map(Pe=>ie.substring(1).replace("%s",Pe))),G.classList.add(ie.substring(1).replace("%s",Ye));else{const Pe=ie.replace("%s",Ye).match(/\[([^\]]+)\]/);if(Pe){const[Be,He]=Pe[1].split("=");He||he.forEach(Et=>{G.removeAttribute(Be.replace(Ye,Et))}),G.setAttribute(Be,He?He.replace(/"|'/g,""):"")}else G.setAttribute(ie,Ye)}}},[Ye,ze,G,he]),b.useEffect(()=>{let et;if(R&&U.current&&H){const ie=H.createElement("style");ie.appendChild(H.createTextNode(BI)),H.head.appendChild(ie),window.getComputedStyle(H.body),et=setTimeout(()=>{H.head.removeChild(ie)},1)}return()=>{clearTimeout(et)}},[Ye,R,H]),b.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Nt=b.useMemo(()=>({allColorSchemes:he,colorScheme:Ye,darkColorScheme:Me,lightColorScheme:$e,mode:le,setColorScheme:dt,setMode:Le,systemMode:Ne}),[he,Ye,Me,$e,le,dt,Le,Ne,ft.colorSchemeSelector]);let ht=!0;(j||re.cssVariables===!1||Z&&(K==null?void 0:K.cssVarPrefix)===oe)&&(ht=!1);const fe=l.jsxs(b.Fragment,{children:[l.jsx(eE,{themeId:X?t:void 0,theme:ft,children:k}),ht&&l.jsx(LC,{styles:((qe=ft.generateStyleSheets)==null?void 0:qe.call(ft))||[]})]});return Z?fe:l.jsx(f.Provider,{value:Nt,children:fe})}const x=typeof c=="string"?c:c.light,w=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:P=>_I({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:w,modeStorageKey:n,...P})}}function DI(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const iw=(e,t,r,n=[])=>{let o=e;t.forEach((a,c)=>{c===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},FI=(e,t,r)=>{function n(o,a=[],c=[]){Object.entries(o).forEach(([u,d])=>{(!r||r&&!r([...a,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...a,u],Array.isArray(d)?[...c,u]:c):t([...a,u],d,c))})}n(e)},HI=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Dg(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},c={};return FI(e,(u,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(u,d))){const h=`--${r?`${r}-`:""}${u.join("-")}`,v=HI(u,d);Object.assign(o,{[h]:v}),iw(a,u,`var(${h})`,f),iw(c,u,`var(${h}, ${v})`,f)}},u=>u[0]==="vars"),{css:o,vars:a,varsWithDefaults:c}}function VI(e,t={}){const{getSelector:r=P,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:c={},components:u,defaultColorScheme:d="light",...f}=e,{vars:h,css:v,varsWithDefaults:m}=Dg(f,t);let y=m;const x={},{[d]:w,...C}=c;if(Object.entries(C||{}).forEach(([T,M])=>{const{vars:R,css:L,varsWithDefaults:A}=Dg(M,t);y=ln(y,A),x[T]={css:L,vars:R}}),w){const{css:T,vars:M,varsWithDefaults:R}=Dg(w,t);y=ln(y,R),x[d]={css:T,vars:M}}function P(T,M){var L,A;let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),T){if(R==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((A=(L=c[T])==null?void 0:L.palette)==null?void 0:A.mode)||T})`]:{":root":M}};if(R)return e.defaultColorScheme===T?`:root, ${R.replace("%s",String(T))}`:R.replace("%s",String(T))}return":root"}return{vars:y,generateThemeVars:()=>{let T={...h};return Object.entries(x).forEach(([,{vars:M}])=>{T=ln(T,M)}),T},generateStyleSheets:()=>{var H,G;const T=[],M=e.defaultColorScheme||"light";function R($,j){Object.keys(j).length&&T.push(typeof $=="string"?{[$]:{...j}}:$)}R(r(void 0,{...v}),v);const{[M]:L,...A}=x;if(L){const{css:$}=L,j=(G=(H=c[M])==null?void 0:H.palette)==null?void 0:G.mode,q=!n&&j?{colorScheme:j,...$}:{...$};R(r(M,{...q}),q)}return Object.entries(A).forEach(([$,{css:j}])=>{var O,U;const q=(U=(O=c[$])==null?void 0:O.palette)==null?void 0:U.mode,V=!n&&q?{colorScheme:q,...j}:{...j};R(r($,{...V}),V)}),a&&T.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),T}}}function UI(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Ze(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let c="",u=!0;for(let d=0;d<a.length;d+=1){const f=a[d];f&&(c+=(u===!0?"":" ")+t(f),u=!1,r&&r[f]&&(c+=" "+r[f]))}n[o]=c}return n}const WI=xc(),qI=Ov("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ve(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),GI=e=>Nv({props:e,name:"MuiContainer",defaultTheme:WI}),XI=(e,t)=>{const r=d=>Je(t,d),{classes:n,fixed:o,disableGutters:a,maxWidth:c}=e,u={root:["root",c&&`maxWidth${ve(String(c))}`,o&&"fixed",a&&"disableGutters"]};return Ze(u,r,n)};function KI(e={}){const{createStyledComponent:t=qI,useThemeProps:r=GI,componentName:n="MuiContainer"}=e,o=t(({theme:c,ownerState:u})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!u.disableGutters&&{paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}}}),({theme:c,ownerState:u})=>u.fixed&&Object.keys(c.breakpoints.values).reduce((d,f)=>{const h=f,v=c.breakpoints.values[h];return v!==0&&(d[c.breakpoints.up(h)]={maxWidth:`${v}${c.breakpoints.unit}`}),d},{}),({theme:c,ownerState:u})=>({...u.maxWidth==="xs"&&{[c.breakpoints.up("xs")]:{maxWidth:Math.max(c.breakpoints.values.xs,444)}},...u.maxWidth&&u.maxWidth!=="xs"&&{[c.breakpoints.up(u.maxWidth)]:{maxWidth:`${c.breakpoints.values[u.maxWidth]}${c.breakpoints.unit}`}}}));return b.forwardRef(function(u,d){const f=r(u),{className:h,component:v="div",disableGutters:m=!1,fixed:y=!1,maxWidth:x="lg",classes:w,...C}=f,P={...f,component:v,disableGutters:m,fixed:y,maxWidth:x},k=XI(P,n);return l.jsx(o,{as:v,ownerState:P,className:Ie(k.root,h),ref:d,...C})})}function yf(e,t){var r,n,o;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const QI=(e,t)=>e.filter(r=>t.includes(r)),bc=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((c,u)=>{a<=e.keys.length-1&&(a===0?Object.assign(c,u):c[e.up(e.keys[a])]=u)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:QI(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const c=t[a];c!==void 0&&r((u,d)=>{n===a?Object.assign(u,d):u[e.up(a)]=d},c)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function Mf(e){return`--Grid-${e}Spacing`}function yh(e){return`--Grid-parent-${e}Spacing`}const aw="--Grid-columns",Wl="--Grid-parent-columns",YI=({theme:e,ownerState:t})=>{const r={};return bc(e.breakpoints,t.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Wl}) - (var(${Wl}) - ${o}) * (var(${yh("column")}) / var(${Wl})))`}),n(r,a)}),r},JI=({theme:e,ownerState:t})=>{const r={};return bc(e.breakpoints,t.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Wl}) + var(${yh("column")}) * ${o} / var(${Wl}))`}),n(r,a)}),r},ZI=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[aw]:12};return bc(e.breakpoints,t.columns,(n,o)=>{const a=o??12;n(r,{[aw]:a,"> *":{[Wl]:a}})}),r},eM=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return bc(e.breakpoints,t.rowSpacing,(n,o)=>{var c;const a=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);n(r,{[Mf("row")]:a,"> *":{[yh("row")]:a}})}),r},tM=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return bc(e.breakpoints,t.columnSpacing,(n,o)=>{var c;const a=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);n(r,{[Mf("column")]:a,"> *":{[yh("column")]:a}})}),r},rM=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return bc(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},nM=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Mf("row")}) var(${Mf("column")})`}}),oM=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},iM=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},aM=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`];function sM(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(r=>{e[r]!==void 0&&delete e[r]})}const lM=xc(),cM=Ov("div",{name:"MuiGrid",slot:"Root"});function uM(e){return Nv({props:e,name:"MuiGrid",defaultTheme:lM})}function dM(e={}){const{createStyledComponent:t=cM,useThemeProps:r=uM,useTheme:n=xd,componentName:o="MuiGrid"}=e,a=(f,h)=>{const{container:v,direction:m,spacing:y,wrap:x,size:w}=f,C={root:["root",v&&"container",x!=="wrap"&&`wrap-xs-${String(x)}`,...aM(m),...oM(w),...v?iM(y,h.breakpoints.keys[0]):[]]};return Ze(C,P=>Je(o,P),{})};function c(f,h,v=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,x)=>{y!==null&&v(y)&&h.keys[x]&&(m[h.keys[x]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const x=f[y];x!=null&&v(x)&&(m[y]=x)}):m[h.keys[0]]=f),m}const u=t(ZI,tM,eM,YI,rM,nM,JI),d=b.forwardRef(function(h,v){const m=n(),y=r(h),x=fh(y);sM(x,m.breakpoints);const{className:w,children:C,columns:P=12,container:k=!1,component:I="div",direction:T="row",wrap:M="wrap",size:R={},offset:L={},spacing:A=0,rowSpacing:H=A,columnSpacing:G=A,unstable_level:$=0,...j}=x,q=c(R,m.breakpoints,X=>X!==!1),V=c(L,m.breakpoints),O=h.columns??($?void 0:P),U=h.spacing??($?void 0:A),K=h.rowSpacing??h.spacing??($?void 0:H),Y=h.columnSpacing??h.spacing??($?void 0:G),Z={...x,level:$,columns:O,container:k,direction:T,wrap:M,spacing:U,rowSpacing:K,columnSpacing:Y,size:q,offset:V},Q=a(Z,m);return l.jsx(u,{ref:v,as:I,ownerState:Z,className:Ie(Q.root,w),...j,children:b.Children.map(C,X=>{var re;return b.isValidElement(X)&&yf(X,["Grid"])&&k&&X.props.container?b.cloneElement(X,{unstable_level:((re=X.props)==null?void 0:re.unstable_level)??$+1}):X})})});return d.muiName="Grid",d}const pM=xc(),fM=Ov("div",{name:"MuiStack",slot:"Root"});function hM(e){return Nv({props:e,name:"MuiStack",defaultTheme:pM})}function mM(e,t){const r=b.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(b.cloneElement(t,{key:`separator-${a}`})),n),[])}const gM=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yM=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...oi({theme:t},Ng({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=ah(t),o=Object.keys(t.breakpoints.values).reduce((d,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(d[f]=!0),d),{}),a=Ng({values:e.direction,base:o}),c=Ng({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((d,f,h)=>{if(!a[d]){const m=f>0?a[h[f-1]]:"column";a[d]=m}}),r=ln(r,oi({theme:t},c,(d,f)=>e.useFlexGap?{gap:Ds(n,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gM(f?a[f]:e.direction)}`]:Ds(n,d)}}))}return r=p5(t.breakpoints,r),r};function vM(e={}){const{createStyledComponent:t=fM,useThemeProps:r=hM,componentName:n="MuiStack"}=e,o=()=>Ze({root:["root"]},d=>Je(n,d),{}),a=t(yM);return b.forwardRef(function(d,f){const h=r(d),v=fh(h),{component:m="div",direction:y="column",spacing:x=0,divider:w,children:C,className:P,useFlexGap:k=!1,...I}=v,T={direction:y,spacing:x,useFlexGap:k},M=o();return l.jsx(a,{as:m,ownerState:T,ref:f,className:Ie(M.root,P),...I,children:w?mM(C,w):C})})}function rE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vu.white,default:Vu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const nE=rE();function oE(){return{text:{primary:Vu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const vy=oE();function sw(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=gh(e.main,o):t==="dark"&&(e.dark=mh(e.main,a)))}function lw(e,t,r,n,o){const a=o.light||o,c=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function xM(e="light"){return e==="dark"?{main:Il[200],light:Il[50],dark:Il[400]}:{main:Il[700],light:Il[400],dark:Il[800]}}function bM(e="light"){return e==="dark"?{main:Pl[200],light:Pl[50],dark:Pl[400]}:{main:Pl[500],light:Pl[300],dark:Pl[700]}}function wM(e="light"){return e==="dark"?{main:jl[500],light:jl[300],dark:jl[700]}:{main:jl[700],light:jl[400],dark:jl[800]}}function SM(e="light"){return e==="dark"?{main:Ml[400],light:Ml[300],dark:Ml[700]}:{main:Ml[700],light:Ml[500],dark:Ml[900]}}function CM(e="light"){return e==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:Rl[800],light:Rl[500],dark:Rl[900]}}function EM(e="light"){return e==="dark"?{main:lu[400],light:lu[300],dark:lu[700]}:{main:"#ed6c02",light:lu[500],dark:lu[900]}}function TM(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Fv(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...a}=e,c=e.primary||xM(t),u=e.secondary||bM(t),d=e.error||wM(t),f=e.info||SM(t),h=e.success||CM(t),v=e.warning||EM(t);function m(C){return o?TM(C):xI(C,vy.text.primary)>=r?vy.text.primary:nE.text.primary}const y=({color:C,name:P,mainShade:k=500,lightShade:I=300,darkShade:T=700})=>{if(C={...C},!C.main&&C[k]&&(C.main=C[k]),!C.hasOwnProperty("main"))throw new Error(oa(11,P?` (${P})`:"",k));if(typeof C.main!="string")throw new Error(oa(12,P?` (${P})`:"",JSON.stringify(C.main)));return o?(lw(o,C,"light",I,n),lw(o,C,"dark",T,n)):(sw(C,"light",I,n),sw(C,"dark",T,n)),C.contrastText||(C.contrastText=m(C.main)),C};let x;return t==="light"?x=rE():t==="dark"&&(x=oE()),ln({common:{...Vu},mode:t,primary:y({color:c,name:"primary"}),secondary:y({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:v,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:n3,contrastThreshold:r,getContrastText:m,augmentColor:y,tonalOffset:n,...x},a)}function kM(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function jM(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function PM(e){return Math.round(e*1e5)/1e5}const cw={textTransform:"uppercase"},uw='"Roboto", "Helvetica", "Arial", sans-serif';function iE(e,t){const{fontFamily:r=uw,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h,...v}=typeof t=="function"?t(e):t,m=n/14,y=h||(C=>`${C/d*m}rem`),x=(C,P,k,I,T)=>({fontFamily:r,fontWeight:C,fontSize:y(P),lineHeight:k,...r===uw?{letterSpacing:`${PM(I/P)}em`}:{},...T,...f}),w={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(c,14,1.75,.4,cw),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,cw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u,...w},v,{clone:!1})}const IM=.2,MM=.14,RM=.12;function Er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${IM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${MM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${RM})`].join(",")}const AM=["none",Er(0,2,1,-1,0,1,1,0,0,1,3,0),Er(0,3,1,-2,0,2,2,0,0,1,5,0),Er(0,3,3,-2,0,3,4,0,0,1,8,0),Er(0,2,4,-1,0,4,5,0,0,1,10,0),Er(0,3,5,-1,0,5,8,0,0,1,14,0),Er(0,3,5,-1,0,6,10,0,0,1,18,0),Er(0,4,5,-2,0,7,10,1,0,2,16,1),Er(0,5,5,-3,0,8,10,1,0,3,14,2),Er(0,5,6,-3,0,9,12,1,0,3,16,2),Er(0,6,6,-3,0,10,14,1,0,4,18,3),Er(0,6,7,-4,0,11,15,1,0,4,20,3),Er(0,7,8,-4,0,12,17,2,0,5,22,4),Er(0,7,8,-4,0,13,19,2,0,5,24,4),Er(0,7,9,-4,0,14,21,2,0,5,26,4),Er(0,8,9,-5,0,15,22,2,0,6,28,5),Er(0,8,10,-5,0,16,24,2,0,6,30,5),Er(0,8,11,-5,0,17,26,2,0,6,32,5),Er(0,9,11,-5,0,18,28,2,0,7,34,6),Er(0,9,12,-6,0,19,29,2,0,7,36,6),Er(0,10,13,-6,0,20,31,3,0,8,38,7),Er(0,10,13,-6,0,21,33,3,0,8,40,7),Er(0,10,14,-6,0,22,35,3,0,8,42,7),Er(0,11,14,-7,0,23,36,3,0,9,44,8),Er(0,11,15,-7,0,24,38,3,0,9,46,8)],_M={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)"},aE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dw(e){return`${Math.round(e)}ms`}function LM(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function OM(e){const t={..._M,...e.easing},r={...aE,...e.duration};return{getAutoHeightDuration:LM,create:(o=["all"],a={})=>{const{duration:c=r.standard,easing:u=t.easeInOut,delay:d=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof c=="string"?c:dw(c)} ${u} ${typeof d=="string"?d:dw(d)}`).join(",")},...e,easing:t,duration:r}}const NM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $M(e){return ji(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function sE(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[c,u]=o[a];!$M(u)||c.startsWith("unstable_")?delete n[c]:ji(u)&&(n[c]={...u},r(n[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
111
|
+
|
|
112
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
113
|
+
|
|
114
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
115
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
116
|
+
|
|
117
|
+
export default theme;`}function pw(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const BM=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function zM(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Gu(t,BM(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${pw(r)})`:gh(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${pw(r)})`:mh(t,r)}})}function xy(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:c={},typography:u={},shape:d,colorSpace:f,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(oa(20));const v=Fv({...a,colorSpace:f}),m=xc(e);let y=ln(m,{mixins:jM(m.breakpoints,n),palette:v,shadows:AM.slice(),typography:iE(v,u),transitions:OM(c),zIndex:{...NM}});return y=ln(y,h),y=t.reduce((x,w)=>ln(x,w),y),y.unstable_sxConfig={...vd,...h==null?void 0:h.unstable_sxConfig},y.unstable_sx=function(w){return Wa({sx:w,theme:this})},y.toRuntimeSource=sE,zM(y),y}function by(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const DM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=by(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function lE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function cE(e){return e==="dark"?DM:[]}function FM(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...a}=e,c=Fv({...t,colorSpace:o});return{palette:c,opacity:{...lE(c.mode),...r},overlays:n||cE(c.mode),...a}}function HM(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const VM=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],UM=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return VM(e.cssVarPrefix).forEach(u=>{c[u]=r[u],delete r[u]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:c}}:a?{[a.replace("%s",t)]:c,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...c}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function WM(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ke(e,t,r){!e[t]&&r&&(e[t]=r)}function Cu(e){return typeof e!="string"||!e.startsWith("hsl")?e:QC(e)}function Ji(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Su(Cu(e[t])))}function qM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const vi=e=>{try{return e()}catch{}},GM=(e="mui")=>DI(e);function Fg(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const a=o==="dark"?"dark":"light";if(!n){t[o]=FM({...r,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:c,...u}=xy({...n,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:e});return t[o]={...r,palette:c,opacity:{...lE(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||cE(a)},u}function XM(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:c=!1,shouldSkipGeneratingVar:u=HM,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...h}=e,v=Object.keys(r)[0],m=n||(r.light&&v!=="light"?"light":v),y=GM(a),{[m]:x,light:w,dark:C,...P}=r,k={...P};let I=x;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(oa(21,m));let T;c&&(T="oklch");const M=Fg(T,k,I,h,m);w&&!k.light&&Fg(T,k,w,void 0,"light"),C&&!k.dark&&Fg(T,k,C,void 0,"dark");let R={defaultColorScheme:m,...M,cssVarPrefix:a,colorSchemeSelector:d,rootSelector:f,getCssVar:y,colorSchemes:k,font:{...kM(M.typography),...M.font},spacing:qM(h.spacing)};Object.keys(R.colorSchemes).forEach($=>{const j=R.colorSchemes[$].palette,q=O=>{const U=O.split("-"),K=U[1],Y=U[2];return y(O,j[K][Y])};j.mode==="light"&&(ke(j.common,"background","#fff"),ke(j.common,"onBackground","#000")),j.mode==="dark"&&(ke(j.common,"background","#000"),ke(j.common,"onBackground","#fff"));function V(O,U,K){if(T){let Y;return O===js&&(Y=`transparent ${((1-K)*100).toFixed(0)}%`),O===sr&&(Y=`#000 ${(K*100).toFixed(0)}%`),O===lr&&(Y=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${T}, ${U}, ${Y})`}return O(U,K)}if(WM(j,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),j.mode==="light"){ke(j.Alert,"errorColor",V(sr,j.error.light,.6)),ke(j.Alert,"infoColor",V(sr,j.info.light,.6)),ke(j.Alert,"successColor",V(sr,j.success.light,.6)),ke(j.Alert,"warningColor",V(sr,j.warning.light,.6)),ke(j.Alert,"errorFilledBg",q("palette-error-main")),ke(j.Alert,"infoFilledBg",q("palette-info-main")),ke(j.Alert,"successFilledBg",q("palette-success-main")),ke(j.Alert,"warningFilledBg",q("palette-warning-main")),ke(j.Alert,"errorFilledColor",vi(()=>j.getContrastText(j.error.main))),ke(j.Alert,"infoFilledColor",vi(()=>j.getContrastText(j.info.main))),ke(j.Alert,"successFilledColor",vi(()=>j.getContrastText(j.success.main))),ke(j.Alert,"warningFilledColor",vi(()=>j.getContrastText(j.warning.main))),ke(j.Alert,"errorStandardBg",V(lr,j.error.light,.9)),ke(j.Alert,"infoStandardBg",V(lr,j.info.light,.9)),ke(j.Alert,"successStandardBg",V(lr,j.success.light,.9)),ke(j.Alert,"warningStandardBg",V(lr,j.warning.light,.9)),ke(j.Alert,"errorIconColor",q("palette-error-main")),ke(j.Alert,"infoIconColor",q("palette-info-main")),ke(j.Alert,"successIconColor",q("palette-success-main")),ke(j.Alert,"warningIconColor",q("palette-warning-main")),ke(j.AppBar,"defaultBg",q("palette-grey-100")),ke(j.Avatar,"defaultBg",q("palette-grey-400")),ke(j.Button,"inheritContainedBg",q("palette-grey-300")),ke(j.Button,"inheritContainedHoverBg",q("palette-grey-A100")),ke(j.Chip,"defaultBorder",q("palette-grey-400")),ke(j.Chip,"defaultAvatarColor",q("palette-grey-700")),ke(j.Chip,"defaultIconColor",q("palette-grey-700")),ke(j.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ke(j.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ke(j.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ke(j.LinearProgress,"primaryBg",V(lr,j.primary.main,.62)),ke(j.LinearProgress,"secondaryBg",V(lr,j.secondary.main,.62)),ke(j.LinearProgress,"errorBg",V(lr,j.error.main,.62)),ke(j.LinearProgress,"infoBg",V(lr,j.info.main,.62)),ke(j.LinearProgress,"successBg",V(lr,j.success.main,.62)),ke(j.LinearProgress,"warningBg",V(lr,j.warning.main,.62)),ke(j.Skeleton,"bg",T?V(js,j.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),ke(j.Slider,"primaryTrack",V(lr,j.primary.main,.62)),ke(j.Slider,"secondaryTrack",V(lr,j.secondary.main,.62)),ke(j.Slider,"errorTrack",V(lr,j.error.main,.62)),ke(j.Slider,"infoTrack",V(lr,j.info.main,.62)),ke(j.Slider,"successTrack",V(lr,j.success.main,.62)),ke(j.Slider,"warningTrack",V(lr,j.warning.main,.62));const O=T?V(sr,j.background.default,.6825):Bp(j.background.default,.8);ke(j.SnackbarContent,"bg",O),ke(j.SnackbarContent,"color",vi(()=>T?vy.text.primary:j.getContrastText(O))),ke(j.SpeedDialAction,"fabHoverBg",Bp(j.background.paper,.15)),ke(j.StepConnector,"border",q("palette-grey-400")),ke(j.StepContent,"border",q("palette-grey-400")),ke(j.Switch,"defaultColor",q("palette-common-white")),ke(j.Switch,"defaultDisabledColor",q("palette-grey-100")),ke(j.Switch,"primaryDisabledColor",V(lr,j.primary.main,.62)),ke(j.Switch,"secondaryDisabledColor",V(lr,j.secondary.main,.62)),ke(j.Switch,"errorDisabledColor",V(lr,j.error.main,.62)),ke(j.Switch,"infoDisabledColor",V(lr,j.info.main,.62)),ke(j.Switch,"successDisabledColor",V(lr,j.success.main,.62)),ke(j.Switch,"warningDisabledColor",V(lr,j.warning.main,.62)),ke(j.TableCell,"border",V(lr,V(js,j.divider,1),.88)),ke(j.Tooltip,"bg",V(js,j.grey[700],.92))}if(j.mode==="dark"){ke(j.Alert,"errorColor",V(lr,j.error.light,.6)),ke(j.Alert,"infoColor",V(lr,j.info.light,.6)),ke(j.Alert,"successColor",V(lr,j.success.light,.6)),ke(j.Alert,"warningColor",V(lr,j.warning.light,.6)),ke(j.Alert,"errorFilledBg",q("palette-error-dark")),ke(j.Alert,"infoFilledBg",q("palette-info-dark")),ke(j.Alert,"successFilledBg",q("palette-success-dark")),ke(j.Alert,"warningFilledBg",q("palette-warning-dark")),ke(j.Alert,"errorFilledColor",vi(()=>j.getContrastText(j.error.dark))),ke(j.Alert,"infoFilledColor",vi(()=>j.getContrastText(j.info.dark))),ke(j.Alert,"successFilledColor",vi(()=>j.getContrastText(j.success.dark))),ke(j.Alert,"warningFilledColor",vi(()=>j.getContrastText(j.warning.dark))),ke(j.Alert,"errorStandardBg",V(sr,j.error.light,.9)),ke(j.Alert,"infoStandardBg",V(sr,j.info.light,.9)),ke(j.Alert,"successStandardBg",V(sr,j.success.light,.9)),ke(j.Alert,"warningStandardBg",V(sr,j.warning.light,.9)),ke(j.Alert,"errorIconColor",q("palette-error-main")),ke(j.Alert,"infoIconColor",q("palette-info-main")),ke(j.Alert,"successIconColor",q("palette-success-main")),ke(j.Alert,"warningIconColor",q("palette-warning-main")),ke(j.AppBar,"defaultBg",q("palette-grey-900")),ke(j.AppBar,"darkBg",q("palette-background-paper")),ke(j.AppBar,"darkColor",q("palette-text-primary")),ke(j.Avatar,"defaultBg",q("palette-grey-600")),ke(j.Button,"inheritContainedBg",q("palette-grey-800")),ke(j.Button,"inheritContainedHoverBg",q("palette-grey-700")),ke(j.Chip,"defaultBorder",q("palette-grey-700")),ke(j.Chip,"defaultAvatarColor",q("palette-grey-300")),ke(j.Chip,"defaultIconColor",q("palette-grey-300")),ke(j.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ke(j.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ke(j.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ke(j.LinearProgress,"primaryBg",V(sr,j.primary.main,.5)),ke(j.LinearProgress,"secondaryBg",V(sr,j.secondary.main,.5)),ke(j.LinearProgress,"errorBg",V(sr,j.error.main,.5)),ke(j.LinearProgress,"infoBg",V(sr,j.info.main,.5)),ke(j.LinearProgress,"successBg",V(sr,j.success.main,.5)),ke(j.LinearProgress,"warningBg",V(sr,j.warning.main,.5)),ke(j.Skeleton,"bg",T?V(js,j.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),ke(j.Slider,"primaryTrack",V(sr,j.primary.main,.5)),ke(j.Slider,"secondaryTrack",V(sr,j.secondary.main,.5)),ke(j.Slider,"errorTrack",V(sr,j.error.main,.5)),ke(j.Slider,"infoTrack",V(sr,j.info.main,.5)),ke(j.Slider,"successTrack",V(sr,j.success.main,.5)),ke(j.Slider,"warningTrack",V(sr,j.warning.main,.5));const O=T?V(lr,j.background.default,.985):Bp(j.background.default,.98);ke(j.SnackbarContent,"bg",O),ke(j.SnackbarContent,"color",vi(()=>T?nE.text.primary:j.getContrastText(O))),ke(j.SpeedDialAction,"fabHoverBg",Bp(j.background.paper,.15)),ke(j.StepConnector,"border",q("palette-grey-600")),ke(j.StepContent,"border",q("palette-grey-600")),ke(j.Switch,"defaultColor",q("palette-grey-300")),ke(j.Switch,"defaultDisabledColor",q("palette-grey-600")),ke(j.Switch,"primaryDisabledColor",V(sr,j.primary.main,.55)),ke(j.Switch,"secondaryDisabledColor",V(sr,j.secondary.main,.55)),ke(j.Switch,"errorDisabledColor",V(sr,j.error.main,.55)),ke(j.Switch,"infoDisabledColor",V(sr,j.info.main,.55)),ke(j.Switch,"successDisabledColor",V(sr,j.success.main,.55)),ke(j.Switch,"warningDisabledColor",V(sr,j.warning.main,.55)),ke(j.TableCell,"border",V(sr,V(js,j.divider,1),.68)),ke(j.Tooltip,"bg",V(js,j.grey[700],.92))}Ji(j.background,"default"),Ji(j.background,"paper"),Ji(j.common,"background"),Ji(j.common,"onBackground"),Ji(j,"divider"),Object.keys(j).forEach(O=>{const U=j[O];O!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&ke(j[O],"mainChannel",Su(Cu(U.main))),U.light&&ke(j[O],"lightChannel",Su(Cu(U.light))),U.dark&&ke(j[O],"darkChannel",Su(Cu(U.dark))),U.contrastText&&ke(j[O],"contrastTextChannel",Su(Cu(U.contrastText))),O==="text"&&(Ji(j[O],"primary"),Ji(j[O],"secondary")),O==="action"&&(U.active&&Ji(j[O],"active"),U.selected&&Ji(j[O],"selected")))})}),R=t.reduce(($,j)=>ln($,j),R);const L={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:u,getSelector:UM(R),enableContrastVars:c},{vars:A,generateThemeVars:H,generateStyleSheets:G}=VI(R,L);return R.vars=A,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([$,j])=>{R[$]=j}),R.generateThemeVars=H,R.generateStyleSheets=G,R.generateSpacing=function(){return DC(h.spacing,ah(this))},R.getColorSchemeSelector=UI(d),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=u,R.unstable_sxConfig={...vd,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(j){return Wa({sx:j,theme:this})},R.toRuntimeSource=sE,R}function fw(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Fv({...r===!0?{}:r.palette,mode:t})})}function vh(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...c}=e,u=a||"light",d=o==null?void 0:o[u],f={...o,...r?{[u]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return xy(e,...t);let h=r;"palette"in e||f[u]&&(f[u]!==!0?h=f[u].palette:u==="dark"&&(h={mode:"dark"}));const v=xy({...e,palette:h},...t);return v.defaultColorScheme=u,v.colorSchemes=f,v.palette.mode==="light"&&(v.colorSchemes.light={...f.light!==!0&&f.light,palette:v.palette},fw(v,"dark",f.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:v.palette},fw(v,"light",f.light)),v}return!r&&!("light"in f)&&u==="light"&&(f.light=!0),XM({...c,colorSchemes:f,defaultColorScheme:u,...typeof n!="boolean"&&n},...t)}function KM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function QM(e){return parseFloat(e)}const Hv=vh();function no(){const e=xd(Hv);return e[ni]||e}function uE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zn=e=>uE(e)&&e!=="classes",xe=qC({themeId:ni,defaultTheme:Hv,rootShouldForwardProp:zn});function YM({theme:e,...t}){const r=ni in e?e[ni]:void 0;return l.jsx(eE,{...t,themeId:r?ni:void 0,theme:r||e})}const zp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:JM}=zI({themeId:ni,theme:()=>vh({cssVariables:!0}),colorSchemeStorageKey:zp.colorSchemeStorageKey,modeStorageKey:zp.modeStorageKey,defaultColorScheme:{light:zp.defaultLightColorScheme,dark:zp.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:iE(e.palette,e.typography)};return t.unstable_sx=function(n){return Wa({sx:n,theme:this})},t}}),ZM=JM;function eR({theme:e,...t}){const r=b.useMemo(()=>{if(typeof e=="function")return e;const n=ni in e?e[ni]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?l.jsx(YM,{theme:r,...t}):l.jsx(ZM,{theme:e,...t})}function hw(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function tR(e){return l.jsx(FC,{...e,defaultTheme:Hv,themeId:ni})}function rR(e){return function(r){return l.jsx(tR,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function nR(){return fh}const Ge=RI;function rt(e){return jI(e)}function oR(e){return Je("MuiSvgIcon",e)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iR=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ve(t)}`,`fontSize${ve(r)}`]};return Ze(o,oR,n)},aR=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ve(r.color)}`],t[`fontSize${ve(r.fontSize)}`]]}})(Ge(({theme:e})=>{var t,r,n,o,a,c,u,d,f,h,v,m,y,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var C,P;return{props:{color:w},style:{color:(P=(C=(e.vars??e).palette)==null?void 0:C[w])==null?void 0:P.main}}}),{props:{color:"action"},style:{color:(m=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),wy=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:c="inherit",component:u="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:v,viewBox:m="0 0 24 24",...y}=n,x=b.isValidElement(o)&&o.type==="svg",w={...n,color:c,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:x},C={};h||(C.viewBox=m);const P=iR(w);return l.jsxs(aR,{as:u,className:Ie(P.root,a),focusable:"false",color:f,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r,...C,...y,...x&&o.props,ownerState:w,children:[x?o.props.children:o,v?l.jsx("title",{children:v}):null]})});wy.muiName="SvgIcon";function Se(e,t){function r(n,o){return l.jsx(wy,{"data-testid":void 0,ref:o,...n,children:e})}return r.muiName=wy.muiName,b.memo(b.forwardRef(r))}function xh(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function gn(e){return e&&e.ownerDocument||document}function ii(e){return gn(e).defaultView||window}function Sy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ua(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:a}=b.useRef(t!==void 0),[c,u]=b.useState(r),d=a?t:c,f=b.useCallback(h=>{a||u(h)},[]);return[d,f]}function Zr(e){const t=b.useRef(e);return Zn(()=>{t.current=e}),b.useRef((...r)=>(0,t.current)(...r)).current}function $r(...e){const t=b.useRef(void 0),r=b.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const c=a,u=c(n);return typeof u=="function"?u:()=>{c(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return b.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function sR(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function dE(e,t){if(!e)return t;function r(c,u){const d={};return Object.keys(u).forEach(f=>{sR(f,u[f])&&typeof c[f]=="function"&&(d[f]=(...h)=>{c[f](...h),u[f](...h)})}),d}if(typeof e=="function"||typeof t=="function")return c=>{const u=typeof t=="function"?t(c):t,d=typeof e=="function"?e({...c,...u}):e,f=Ie(c==null?void 0:c.className,u==null?void 0:u.className,d==null?void 0:d.className),h=r(d,u);return{...u,...d,...h,...!!f&&{className:f},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=t,o=r(e,n),a=Ie(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...o,...!!a&&{className:a},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function pE(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Cy(e,t){return Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Cy(e,t)}function fE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cy(e,t)}const mw={disabled:!1},Rf=Lt.createContext(null);var lR=function(t){return t.scrollTop},Eu="unmounted",Ms="exited",Rs="entering",Bl="entered",Ey="exiting",ci=(function(e){fE(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var c=o,u=c&&!c.isMounting?n.enter:n.appear,d;return a.appearStatus=null,n.in?u?(d=Ms,a.appearStatus=Rs):d=Bl:n.unmountOnExit||n.mountOnEnter?d=Eu:d=Ms,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var c=o.in;return c&&a.status===Eu?{status:Ms}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Rs&&c!==Bl&&(a=Rs):(c===Rs||c===Bl)&&(a=Ey)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,c,u;return a=c=u=o,o!=null&&typeof o!="number"&&(a=o.exit,c=o.enter,u=o.appear!==void 0?o.appear:c),{exit:a,enter:c,appear:u}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Rs){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Np.findDOMNode(this);c&&lR(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ms&&this.setState({status:Eu})},r.performEnter=function(o){var a=this,c=this.props.enter,u=this.context?this.context.isMounting:o,d=this.props.nodeRef?[u]:[Np.findDOMNode(this),u],f=d[0],h=d[1],v=this.getTimeouts(),m=u?v.appear:v.enter;if(!o&&!c||mw.disabled){this.safeSetState({status:Bl},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:Rs},function(){a.props.onEntering(f,h),a.onTransitionEnd(m,function(){a.safeSetState({status:Bl},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,c=this.getTimeouts(),u=this.props.nodeRef?void 0:Np.findDOMNode(this);if(!a||mw.disabled){this.safeSetState({status:Ms},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Ey},function(){o.props.onExiting(u),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:Ms},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,c=!0;return this.nextCallback=function(u){c&&(c=!1,a.nextCallback=null,o(u))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var c=this.props.nodeRef?this.props.nodeRef.current:Np.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!c||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],f=d[0],h=d[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Eu)return null;var a=this.props,c=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=pE(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Lt.createElement(Rf.Provider,{value:null},typeof c=="function"?c(o,u):Lt.cloneElement(Lt.Children.only(c),u))},t})(Lt.Component);ci.contextType=Rf;ci.propTypes={};function Al(){}ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Al,onEntering:Al,onEntered:Al,onExit:Al,onExiting:Al,onExited:Al};ci.UNMOUNTED=Eu;ci.EXITED=Ms;ci.ENTERING=Rs;ci.ENTERED=Bl;ci.EXITING=Ey;function cR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vv(e,t){var r=function(a){return t&&b.isValidElement(a)?t(a):a},n=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function uR(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var c,u={};for(var d in t){if(n[d])for(c=0;c<n[d].length;c++){var f=n[d][c];u[n[d][c]]=r(f)}u[d]=r(d)}for(c=0;c<o.length;c++)u[o[c]]=r(o[c]);return u}function Ns(e,t,r){return r[t]!=null?r[t]:e.props[t]}function dR(e,t){return Vv(e.children,function(r){return b.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ns(r,"appear",e),enter:Ns(r,"enter",e),exit:Ns(r,"exit",e)})})}function pR(e,t,r){var n=Vv(e.children),o=uR(t,n);return Object.keys(o).forEach(function(a){var c=o[a];if(b.isValidElement(c)){var u=a in t,d=a in n,f=t[a],h=b.isValidElement(f)&&!f.props.in;d&&(!u||h)?o[a]=b.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:Ns(c,"exit",e),enter:Ns(c,"enter",e)}):!d&&u&&!h?o[a]=b.cloneElement(c,{in:!1}):d&&u&&b.isValidElement(f)&&(o[a]=b.cloneElement(c,{onExited:r.bind(null,c),in:f.props.in,exit:Ns(c,"exit",e),enter:Ns(c,"enter",e)}))}}),o}var fR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hR={component:"div",childFactory:function(t){return t}},Uv=(function(e){fE(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var c=a.handleExited.bind(cR(a));return a.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var c=a.children,u=a.handleExited,d=a.firstRender;return{children:d?dR(o,u):pR(o,c,u),firstRender:!1}},r.handleExited=function(o,a){var c=Vv(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(u){var d=jf({},u.children);return delete d[o.key],{children:d}}))},r.render=function(){var o=this.props,a=o.component,c=o.childFactory,u=pE(o,["component","childFactory"]),d=this.state.contextValue,f=fR(this.state.children).map(c);return delete u.appear,delete u.enter,delete u.exit,a===null?Lt.createElement(Rf.Provider,{value:d},f):Lt.createElement(Rf.Provider,{value:d},Lt.createElement(a,u,f))},t})(Lt.Component);Uv.propTypes={};Uv.defaultProps=hR;const gw={};function hE(e,t){const r=b.useRef(gw);return r.current===gw&&(r.current=e(t)),r}const mR=[];function gR(e){b.useEffect(e,mR)}class bh{constructor(){ks(this,"currentId",null);ks(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ks(this,"disposeEffect",()=>this.clear)}static create(){return new bh}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Da(){const e=hE(bh.create).current;return gR(e.disposeEffect),e}const mE=e=>e.scrollTop;function Jl(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function Af(e){return typeof e=="string"}function gE(e,t,r){return e===void 0||Af(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function yE(e,t,r){return typeof e=="function"?e(t,r):e}function _f(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function yw(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function vE(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const y=Ie(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),x={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return y.length>0&&(w.className=y),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const c=_f({...o,...n}),u=yw(n),d=yw(o),f=t(c),h=Ie(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),v={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},m={...f,...r,...d,...u};return h.length>0&&(m.className=h),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:f.ref}}function Qe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:c,shouldForwardComponentProp:u=!1,...d}=t,{component:f,slots:h={[e]:void 0},slotProps:v={[e]:void 0},...m}=a,y=h[e]||n,x=yE(v[e],o),{props:{component:w,...C},internalRef:P}=vE({className:r,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x}),k=$r(P,x==null?void 0:x.ref,t.ref),I=e==="root"?w||f:w,T=gE(y,{...e==="root"&&!f&&!h[e]&&c,...e!=="root"&&!h[e]&&c,...C,...I&&!u&&{as:I},...I&&u&&{component:I},ref:k},o);return[y,T]}function yR(e){return Je("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const vR=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,yR,r)},xR=xe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(Ge(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),bR=xe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),wR=xe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Xu=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:c,collapsedSize:u="0px",component:d,easing:f,in:h,onEnter:v,onEntered:m,onEntering:y,onExit:x,onExited:w,onExiting:C,orientation:P="vertical",slots:k={},slotProps:I={},style:T,timeout:M=aE.standard,TransitionComponent:R=ci,...L}=n,A={...n,orientation:P,collapsedSize:u},H=vR(A),G=no(),$=Da(),j=b.useRef(null),q=b.useRef(),V=typeof u=="number"?`${u}px`:u,O=P==="horizontal",U=O?"width":"height",K=b.useRef(null),Y=$r(r,K),Z=Me=>Xe=>{if(Me){const dt=K.current;Xe===void 0?Me(dt):Me(dt,Xe)}},Q=()=>j.current?j.current[O?"clientWidth":"clientHeight"]:0,X=Z((Me,Xe)=>{j.current&&O&&(j.current.style.position="absolute"),Me.style[U]=V,v&&v(Me,Xe)}),re=Z((Me,Xe)=>{const dt=Q();j.current&&O&&(j.current.style.position="");const{duration:le,easing:Ye}=Jl({style:T,timeout:M,easing:f},{mode:"enter"});if(M==="auto"){const We=G.transitions.getAutoHeightDuration(dt);Me.style.transitionDuration=`${We}ms`,q.current=We}else Me.style.transitionDuration=typeof le=="string"?le:`${le}ms`;Me.style[U]=`${dt}px`,Me.style.transitionTimingFunction=Ye,y&&y(Me,Xe)}),de=Z((Me,Xe)=>{Me.style[U]="auto",m&&m(Me,Xe)}),J=Z(Me=>{Me.style[U]=`${Q()}px`,x&&x(Me)}),oe=Z(w),ee=Z(Me=>{const Xe=Q(),{duration:dt,easing:le}=Jl({style:T,timeout:M,easing:f},{mode:"exit"});if(M==="auto"){const Ye=G.transitions.getAutoHeightDuration(Xe);Me.style.transitionDuration=`${Ye}ms`,q.current=Ye}else Me.style.transitionDuration=typeof dt=="string"?dt:`${dt}ms`;Me.style[U]=V,Me.style.transitionTimingFunction=le,C&&C(Me)}),he=Me=>{M==="auto"&&$.start(q.current||0,Me),o&&o(K.current,Me)},Ce={slots:k,slotProps:I,component:d},[ye,ce]=Qe("root",{ref:Y,className:Ie(H.root,c),elementType:xR,externalForwardedProps:Ce,ownerState:A,additionalProps:{style:{[O?"minWidth":"minHeight"]:V,...T}}}),[Fe,Le]=Qe("wrapper",{ref:j,className:H.wrapper,elementType:bR,externalForwardedProps:Ce,ownerState:A}),[Ne,$e]=Qe("wrapperInner",{className:H.wrapperInner,elementType:wR,externalForwardedProps:Ce,ownerState:A});return l.jsx(R,{in:h,onEnter:X,onEntered:de,onEntering:re,onExit:J,onExited:oe,onExiting:ee,addEndListener:he,nodeRef:K,timeout:M==="auto"?null:M,...L,children:(Me,{ownerState:Xe,...dt})=>{const le={...A,state:Me};return l.jsx(ye,{...ce,className:Ie(ce.className,{entered:H.entered,exited:!h&&V==="0px"&&H.hidden}[Me]),ownerState:le,...dt,children:l.jsx(Fe,{...Le,ownerState:le,children:l.jsx(Ne,{...$e,ownerState:le,children:a})})})}})});Xu&&(Xu.muiSupportAuto=!0);function SR(e){return Je("MuiPaper",e)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const CR=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,SR,o)},ER=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Ge(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),_r=b.forwardRef(function(t,r){var y;const n=rt({props:t,name:"MuiPaper"}),o=no(),{className:a,component:c="div",elevation:u=1,square:d=!1,variant:f="elevation",...h}=n,v={...n,component:c,elevation:u,square:d,variant:f},m=CR(v);return l.jsx(ER,{as:c,ownerState:v,className:Ie(m.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[u],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[u]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gu("#fff",by(u))}, ${Gu("#fff",by(u))})`}},...h.style}})});function Zl(e){try{return e.matches(":focus-visible")}catch{}return!1}class Lf{constructor(){ks(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Lf}static use(){const t=hE(Lf.create).current,[r,n]=b.useState(!1);return t.shouldMount=r,t.setShouldMount=n,b.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=kR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function TR(){return Lf.use()}function kR(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function jR(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:c,in:u,onExited:d,timeout:f}=e,[h,v]=b.useState(!1),m=Ie(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+a,left:-(c/2)+o},x=Ie(r.child,h&&r.childLeaving,n&&r.childPulsate);return!u&&!h&&v(!0),b.useEffect(()=>{if(!u&&d!=null){const w=setTimeout(d,f);return()=>{clearTimeout(w)}}},[d,u,f]),l.jsx("span",{className:m,style:y,children:l.jsx("span",{className:x})})}const _o=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ty=550,PR=80,IR=zi`
|
|
118
|
+
0% {
|
|
119
|
+
transform: scale(0);
|
|
120
|
+
opacity: 0.1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
100% {
|
|
124
|
+
transform: scale(1);
|
|
125
|
+
opacity: 0.3;
|
|
126
|
+
}
|
|
127
|
+
`,MR=zi`
|
|
128
|
+
0% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
100% {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
}
|
|
135
|
+
`,RR=zi`
|
|
136
|
+
0% {
|
|
137
|
+
transform: scale(1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
50% {
|
|
141
|
+
transform: scale(0.92);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
100% {
|
|
145
|
+
transform: scale(1);
|
|
146
|
+
}
|
|
147
|
+
`,AR=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_R=xe(jR,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
148
|
+
opacity: 0;
|
|
149
|
+
position: absolute;
|
|
150
|
+
|
|
151
|
+
&.${_o.rippleVisible} {
|
|
152
|
+
opacity: 0.3;
|
|
153
|
+
transform: scale(1);
|
|
154
|
+
animation-name: ${IR};
|
|
155
|
+
animation-duration: ${Ty}ms;
|
|
156
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.${_o.ripplePulsate} {
|
|
160
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
& .${_o.child} {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
display: block;
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: 100%;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
background-color: currentColor;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
& .${_o.childLeaving} {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
animation-name: ${MR};
|
|
175
|
+
animation-duration: ${Ty}ms;
|
|
176
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& .${_o.childPulsate} {
|
|
180
|
+
position: absolute;
|
|
181
|
+
/* @noflip */
|
|
182
|
+
left: 0px;
|
|
183
|
+
top: 0;
|
|
184
|
+
animation-name: ${RR};
|
|
185
|
+
animation-duration: 2500ms;
|
|
186
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
187
|
+
animation-iteration-count: infinite;
|
|
188
|
+
animation-delay: 200ms;
|
|
189
|
+
}
|
|
190
|
+
`,LR=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:c,...u}=n,[d,f]=b.useState([]),h=b.useRef(0),v=b.useRef(null);b.useEffect(()=>{v.current&&(v.current(),v.current=null)},[d]);const m=b.useRef(!1),y=Da(),x=b.useRef(null),w=b.useRef(null),C=b.useCallback(T=>{const{pulsate:M,rippleX:R,rippleY:L,rippleSize:A,cb:H}=T;f(G=>[...G,l.jsx(_R,{classes:{ripple:Ie(a.ripple,_o.ripple),rippleVisible:Ie(a.rippleVisible,_o.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,_o.ripplePulsate),child:Ie(a.child,_o.child),childLeaving:Ie(a.childLeaving,_o.childLeaving),childPulsate:Ie(a.childPulsate,_o.childPulsate)},timeout:Ty,pulsate:M,rippleX:R,rippleY:L,rippleSize:A},h.current)]),h.current+=1,v.current=H},[a]),P=b.useCallback((T={},M={},R=()=>{})=>{const{pulsate:L=!1,center:A=o||M.pulsate,fakeElement:H=!1}=M;if((T==null?void 0:T.type)==="mousedown"&&m.current){m.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(m.current=!0);const G=H?null:w.current,$=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,q,V;if(A||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)j=Math.round($.width/2),q=Math.round($.height/2);else{const{clientX:O,clientY:U}=T.touches&&T.touches.length>0?T.touches[0]:T;j=Math.round(O-$.left),q=Math.round(U-$.top)}if(A)V=Math.sqrt((2*$.width**2+$.height**2)/3),V%2===0&&(V+=1);else{const O=Math.max(Math.abs((G?G.clientWidth:0)-j),j)*2+2,U=Math.max(Math.abs((G?G.clientHeight:0)-q),q)*2+2;V=Math.sqrt(O**2+U**2)}T!=null&&T.touches?x.current===null&&(x.current=()=>{C({pulsate:L,rippleX:j,rippleY:q,rippleSize:V,cb:R})},y.start(PR,()=>{x.current&&(x.current(),x.current=null)})):C({pulsate:L,rippleX:j,rippleY:q,rippleSize:V,cb:R})},[o,C,y]),k=b.useCallback(()=>{P({},{pulsate:!0})},[P]),I=b.useCallback((T,M)=>{if(y.clear(),(T==null?void 0:T.type)==="touchend"&&x.current){x.current(),x.current=null,y.start(0,()=>{I(T,M)});return}x.current=null,f(R=>R.length>0?R.slice(1):R),v.current=M},[y]);return b.useImperativeHandle(r,()=>({pulsate:k,start:P,stop:I}),[k,P,I]),l.jsx(AR,{className:Ie(_o.root,a.root,c),ref:w,...u,children:l.jsx(Uv,{component:null,exit:!0,children:d})})});function OR(e){return Je("MuiButtonBase",e)}const NR=tt("MuiButtonBase",["root","disabled","focusVisible"]),$R=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,c=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},OR,o);return r&&n&&(c.root+=` ${n}`),c},BR=xe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ai=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:c,className:u,component:d="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:v=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:x="a",onBlur:w,onClick:C,onContextMenu:P,onDragLeave:k,onFocus:I,onFocusVisible:T,onKeyDown:M,onKeyUp:R,onMouseDown:L,onMouseLeave:A,onMouseUp:H,onTouchEnd:G,onTouchMove:$,onTouchStart:j,tabIndex:q=0,TouchRippleProps:V,touchRippleRef:O,type:U,...K}=n,Y=b.useRef(null),Z=TR(),Q=$r(Z.ref,O),[X,re]=b.useState(!1);f&&X&&re(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),Y.current.focus()}}),[]);const de=Z.shouldMount&&!h&&!f;b.useEffect(()=>{X&&m&&!h&&Z.pulsate()},[h,m,X,Z]);const J=Zi(Z,"start",L,v),oe=Zi(Z,"stop",P,v),ee=Zi(Z,"stop",k,v),he=Zi(Z,"stop",H,v),Ce=Zi(Z,"stop",ze=>{X&&ze.preventDefault(),A&&A(ze)},v),ye=Zi(Z,"start",j,v),ce=Zi(Z,"stop",G,v),Fe=Zi(Z,"stop",$,v),Le=Zi(Z,"stop",ze=>{Zl(ze.target)||re(!1),w&&w(ze)},!1),Ne=Zr(ze=>{Y.current||(Y.current=ze.currentTarget),Zl(ze.target)&&(re(!0),T&&T(ze)),I&&I(ze)}),$e=()=>{const ze=Y.current;return d&&d!=="button"&&!(ze.tagName==="A"&&ze.href)},Me=Zr(ze=>{m&&!ze.repeat&&X&&ze.key===" "&&Z.stop(ze,()=>{Z.start(ze)}),ze.target===ze.currentTarget&&$e()&&ze.key===" "&&ze.preventDefault(),M&&M(ze),ze.target===ze.currentTarget&&$e()&&ze.key==="Enter"&&!f&&(ze.preventDefault(),C&&C(ze))}),Xe=Zr(ze=>{m&&ze.key===" "&&X&&!ze.defaultPrevented&&Z.stop(ze,()=>{Z.pulsate(ze)}),R&&R(ze),C&&ze.target===ze.currentTarget&&$e()&&ze.key===" "&&!ze.defaultPrevented&&C(ze)});let dt=d;dt==="button"&&(K.href||K.to)&&(dt=x);const le={};if(dt==="button"){const ze=!!K.formAction;le.type=U===void 0&&!ze?"button":U,le.disabled=f}else!K.href&&!K.to&&(le.role="button"),f&&(le["aria-disabled"]=f);const Ye=$r(r,Y),We={...n,centerRipple:a,component:d,disabled:f,disableRipple:h,disableTouchRipple:v,focusRipple:m,tabIndex:q,focusVisible:X},ft=$R(We);return l.jsxs(BR,{as:dt,className:Ie(ft.root,u),ownerState:We,onBlur:Le,onClick:C,onContextMenu:oe,onFocus:Ne,onKeyDown:Me,onKeyUp:Xe,onMouseDown:J,onMouseLeave:Ce,onMouseUp:he,onDragLeave:ee,onTouchEnd:ce,onTouchMove:Fe,onTouchStart:ye,ref:Ye,tabIndex:f?-1:q,type:U,...le,...K,children:[c,de?l.jsx(LR,{ref:Q,center:a,...V}):null]})});function Zi(e,t,r,n=!1){return Zr(o=>(r&&r(o),n||e[t](o),!0))}function zR(e){return typeof e.main=="string"}function DR(e,t=[]){if(!zR(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function or(e=[]){return([,t])=>t&&DR(t,e)}function FR(e){return Je("MuiAlert",e)}const vw=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function HR(e){return Je("MuiCircularProgress",e)}tt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ei=44,ky=zi`
|
|
191
|
+
0% {
|
|
192
|
+
transform: rotate(0deg);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
100% {
|
|
196
|
+
transform: rotate(360deg);
|
|
197
|
+
}
|
|
198
|
+
`,jy=zi`
|
|
199
|
+
0% {
|
|
200
|
+
stroke-dasharray: 1px, 200px;
|
|
201
|
+
stroke-dashoffset: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
50% {
|
|
205
|
+
stroke-dasharray: 100px, 200px;
|
|
206
|
+
stroke-dashoffset: -15px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
100% {
|
|
210
|
+
stroke-dasharray: 1px, 200px;
|
|
211
|
+
stroke-dashoffset: -126px;
|
|
212
|
+
}
|
|
213
|
+
`,VR=typeof ky!="string"?as`
|
|
214
|
+
animation: ${ky} 1.4s linear infinite;
|
|
215
|
+
`:null,UR=typeof jy!="string"?as`
|
|
216
|
+
animation: ${jy} 1.4s ease-in-out infinite;
|
|
217
|
+
`:null,WR=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${ve(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ve(r)}`,o&&"circleDisableShrink"]};return Ze(a,HR,t)},qR=xe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ve(r.color)}`]]}})(Ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:VR||{animation:`${ky} 1.4s linear infinite`}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),GR=xe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XR=xe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ve(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:UR||{animation:`${jy} 1.4s ease-in-out infinite`}}]}))),KR=xe("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),cr=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:c=!1,enableTrackSlot:u=!1,size:d=40,style:f,thickness:h=3.6,value:v=0,variant:m="indeterminate",...y}=n,x={...n,color:a,disableShrink:c,size:d,thickness:h,value:v,variant:m,enableTrackSlot:u},w=WR(x),C={},P={},k={};if(m==="determinate"){const I=2*Math.PI*((ei-h)/2);C.strokeDasharray=I.toFixed(3),k["aria-valuenow"]=Math.round(v),C.strokeDashoffset=`${((100-v)/100*I).toFixed(3)}px`,P.transform="rotate(-90deg)"}return l.jsx(qR,{className:Ie(w.root,o),style:{width:d,height:d,...P,...f},ownerState:x,ref:r,role:"progressbar",...k,...y,children:l.jsxs(GR,{className:w.svg,ownerState:x,viewBox:`${ei/2} ${ei/2} ${ei} ${ei}`,children:[u?l.jsx(KR,{className:w.track,ownerState:x,cx:ei,cy:ei,r:(ei-h)/2,fill:"none",strokeWidth:h,"aria-hidden":"true"}):null,l.jsx(XR,{className:w.circle,style:C,ownerState:x,cx:ei,cy:ei,r:(ei-h)/2,fill:"none",strokeWidth:h})]})})});function QR(e){return Je("MuiIconButton",e)}const xw=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),YR=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a,loading:c}=e,u={root:["root",c&&"loading",r&&"disabled",n!=="default"&&`color${ve(n)}`,o&&`edge${ve(o)}`,`size${ve(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ze(u,QR,t)},JR=xe(ai,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ve(r.color)}`],r.edge&&t[`edge${ve(r.edge)}`],t[`size${ve(r.size)}`]]}})(Ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${xw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${xw.loading}`]:{color:"transparent"}}))),ZR=xe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Qt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:c,color:u="default",disabled:d=!1,disableFocusRipple:f=!1,size:h="medium",id:v,loading:m=null,loadingIndicator:y,...x}=n,w=Ri(v),C=y??l.jsx(cr,{"aria-labelledby":w,color:"inherit",size:16}),P={...n,edge:o,color:u,disabled:d,disableFocusRipple:f,loading:m,loadingIndicator:C,size:h},k=YR(P);return l.jsxs(JR,{id:m?w:v,className:Ie(k.root,c),centerRipple:!0,focusRipple:!f,disabled:d||m,ref:r,...x,ownerState:P,children:[typeof m=="boolean"&&l.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:l.jsx(ZR,{className:k.loadingIndicator,ownerState:P,children:m&&C})}),a]})}),eA=Se(l.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),tA=Se(l.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),rA=Se(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),nA=Se(l.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),xE=Se(l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),oA=e=>{const{variant:t,color:r,severity:n,classes:o}=e,a={root:["root",`color${ve(r||n)}`,`${t}${ve(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ze(a,FR,o)},iA=xe(_r,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ve(r.color||r.severity)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(or(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${vw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(or(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${vw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(or(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),aA=xe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sA=xe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),lA=xe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bw={success:l.jsx(eA,{fontSize:"inherit"}),warning:l.jsx(tA,{fontSize:"inherit"}),error:l.jsx(rA,{fontSize:"inherit"}),info:l.jsx(nA,{fontSize:"inherit"})},Kt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAlert"}),{action:o,children:a,className:c,closeText:u="Close",color:d,components:f={},componentsProps:h={},icon:v,iconMapping:m=bw,onClose:y,role:x="alert",severity:w="success",slotProps:C={},slots:P={},variant:k="standard",...I}=n,T={...n,color:d,severity:w,variant:k,colorSeverity:d||w},M=oA(T),R={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...P},slotProps:{...h,...C}},[L,A]=Qe("root",{ref:r,shouldForwardComponentProp:!0,className:Ie(M.root,c),elementType:iA,externalForwardedProps:{...R,...I},ownerState:T,additionalProps:{role:x,elevation:0}}),[H,G]=Qe("icon",{className:M.icon,elementType:aA,externalForwardedProps:R,ownerState:T}),[$,j]=Qe("message",{className:M.message,elementType:sA,externalForwardedProps:R,ownerState:T}),[q,V]=Qe("action",{className:M.action,elementType:lA,externalForwardedProps:R,ownerState:T}),[O,U]=Qe("closeButton",{elementType:Qt,externalForwardedProps:R,ownerState:T}),[K,Y]=Qe("closeIcon",{elementType:xE,externalForwardedProps:R,ownerState:T});return l.jsxs(L,{...A,children:[v!==!1?l.jsx(H,{...G,children:v||m[w]||bw[w]}):null,l.jsx($,{...j,children:a}),o!=null?l.jsx(q,{...V,children:o}):null,o==null&&y?l.jsx(q,{...V,children:l.jsx(O,{size:"small","aria-label":u,title:u,color:"inherit",onClick:y,...U,children:l.jsx(K,{fontSize:"small",...Y})})}):null]})});function cA(e){return Je("MuiTypography",e)}const ww=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),uA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dA=nR(),pA=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:c}=e,u={root:["root",a,e.align!=="inherit"&&`align${ve(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Ze(u,cA,c)},fA=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ve(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ge(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(or()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ve(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Sw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pe=b.forwardRef(function(t,r){const{color:n,...o}=rt({props:t,name:"MuiTypography"}),a=!uA[n],c=dA({...o,...a&&{color:n}}),{align:u="inherit",className:d,component:f,gutterBottom:h=!1,noWrap:v=!1,paragraph:m=!1,variant:y="body1",variantMapping:x=Sw,...w}=c,C={...c,align:u,color:n,className:d,component:f,gutterBottom:h,noWrap:v,paragraph:m,variant:y,variantMapping:x},P=f||(m?"p":x[y]||Sw[y])||"span",k=pA(C);return l.jsx(fA,{as:P,ref:r,className:Ie(k.root,d),...w,ownerState:C,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...w.style}})});function hA(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}function Cw({array1:e,array2:t,parser:r=n=>n}){return e&&t&&e.length===t.length&&e.every((n,o)=>r(n)===r(t[o]))}function Ew(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function mA(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:c=!1}=e;return(u,{inputValue:d,getOptionLabel:f})=>{let h=c?d.trim():d;r&&(h=h.toLowerCase()),t&&(h=Ew(h));const v=h?u.filter(m=>{let y=(a||f)(m);return r&&(y=y.toLowerCase()),t&&(y=Ew(y)),o==="start"?y.startsWith(h):y.includes(h)}):u;return typeof n=="number"?v.slice(0,n):v}}const gA=mA(),Tw=5,yA=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},vA=[];function kw(e,t,r,n){if(t||e==null||n)return"";const o=r(e);return typeof o=="string"?o:""}function xA(e){const{unstable_isActiveElementInListbox:t=yA,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:c=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:d=!1,componentName:f="useAutocomplete",defaultValue:h=e.multiple?vA:null,disableClearable:v=!1,disableCloseOnSelect:m=!1,disabled:y,disabledItemsFocusable:x=!1,disableListWrap:w=!1,filterOptions:C=gA,filterSelectedOptions:P=!1,freeSolo:k=!1,getOptionDisabled:I,getOptionKey:T,getOptionLabel:M=Te=>Te.label??Te,groupBy:R,handleHomeEndKeys:L=!e.freeSolo,id:A,includeInputInList:H=!1,inputValue:G,isOptionEqualToValue:$=(Te,Ee)=>Te===Ee,multiple:j=!1,onChange:q,onClose:V,onHighlightChange:O,onInputChange:U,onOpen:K,open:Y,openOnFocus:Z=!1,options:Q,readOnly:X=!1,renderValue:re,selectOnFocus:de=!e.freeSolo,value:J}=e,oe=Ri(A);let ee=M;ee=Te=>{const Ee=M(Te);return typeof Ee!="string"?String(Ee):Ee};const he=b.useRef(!1),Ce=b.useRef(!0),ye=b.useRef(null),ce=b.useRef(null),[Fe,Le]=b.useState(null),[Ne,$e]=b.useState(-1),Me=o?0:-1,Xe=b.useRef(Me),dt=b.useRef(kw(h??J,j,ee)).current,[le,Ye]=Ua({controlled:J,default:h,name:f}),[We,ft]=Ua({controlled:G,default:dt,name:f,state:"inputValue"}),[ze,Nt]=b.useState(!1),ht=b.useCallback((Te,Ee,ot)=>{if(!(j?le.length<Ee.length:Ee!==null)&&!u)return;const Mt=kw(Ee,j,ee,re);We!==Mt&&(ft(Mt),U&&U(Te,Mt,ot))},[ee,We,j,U,ft,u,le,re]),[fe,we]=Ua({controlled:Y,default:!1,name:f,state:"open"}),[je,Re]=b.useState(!0),qe=!j&&le!=null&&We===ee(le),et=fe&&!X,ie=et?C(Q.filter(Te=>!(P&&(j?le:[le]).some(Ee=>Ee!==null&&$(Te,Ee)))),{inputValue:qe&&je?"":We,getOptionLabel:ee}):[],Pe=hA({filteredOptions:ie,value:le,inputValue:We});b.useEffect(()=>{const Te=le!==Pe.value;ze&&!Te||k&&!Te||ht(null,le,"reset")},[le,ht,ze,Pe.value,k]);const Be=fe&&ie.length>0&&!X,He=Zr(Te=>{if(Te===-1)ye.current.focus();else{const Ee=re?"data-item-index":"data-tag-index";Fe.querySelector(`[${Ee}="${Te}"]`).focus()}});b.useEffect(()=>{j&&Ne>le.length-1&&($e(-1),He(-1))},[le,j,Ne,He]);function Et(Te,Ee){if(!ce.current||Te<0||Te>=ie.length)return-1;let ot=Te;for(;;){const Tt=ce.current.querySelector(`[data-option-index="${ot}"]`),Mt=x?!1:!Tt||Tt.disabled||Tt.getAttribute("aria-disabled")==="true";if(Tt&&Tt.hasAttribute("tabindex")&&!Mt)return ot;if(Ee==="next"?ot=(ot+1)%ie.length:ot=(ot-1+ie.length)%ie.length,ot===Te)return-1}}const Zt=Zr(({event:Te,index:Ee,reason:ot})=>{if(Xe.current=Ee,Ee===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${oe}-option-${Ee}`),O&&["mouse","keyboard","touch"].includes(ot)&&O(Te,Ee===-1?null:ie[Ee],ot),!ce.current)return;const Tt=ce.current.querySelector(`[role="option"].${r}-focused`);Tt&&(Tt.classList.remove(`${r}-focused`),Tt.classList.remove(`${r}-focusVisible`));let Mt=ce.current;if(ce.current.getAttribute("role")!=="listbox"&&(Mt=ce.current.parentElement.querySelector('[role="listbox"]')),!Mt)return;if(Ee===-1){Mt.scrollTop=0;return}const Fr=ce.current.querySelector(`[data-option-index="${Ee}"]`);if(Fr&&(Fr.classList.add(`${r}-focused`),ot==="keyboard"&&Fr.classList.add(`${r}-focusVisible`),Mt.scrollHeight>Mt.clientHeight&&ot!=="mouse"&&ot!=="touch")){const $t=Fr,lo=Mt.clientHeight+Mt.scrollTop,ga=$t.offsetTop+$t.offsetHeight;ga>lo?Mt.scrollTop=ga-Mt.clientHeight:$t.offsetTop-$t.offsetHeight*(R?1.3:0)<Mt.scrollTop&&(Mt.scrollTop=$t.offsetTop-$t.offsetHeight*(R?1.3:0))}}),yr=Zr(({event:Te,diff:Ee,direction:ot="next",reason:Tt})=>{if(!et)return;const Fr=Et((()=>{const $t=ie.length-1;if(Ee==="reset")return Me;if(Ee==="start")return 0;if(Ee==="end")return $t;const lo=Xe.current+Ee;return lo<0?lo===-1&&H?-1:w&&Xe.current!==-1||Math.abs(Ee)>1?0:$t:lo>$t?lo===$t+1&&H?-1:w||Math.abs(Ee)>1?$t:0:lo})(),ot);if(Zt({index:Fr,reason:Tt,event:Te}),n&&Ee!=="reset")if(Fr===-1)ye.current.value=We;else{const $t=ee(ie[Fr]);ye.current.value=$t,$t.toLowerCase().indexOf(We.toLowerCase())===0&&We.length>0&&ye.current.setSelectionRange(We.length,$t.length)}}),Xr=!Cw({array1:Pe.filteredOptions,array2:ie,parser:ee}),pn=()=>{const Te=(Ee,ot)=>{const Tt=Ee?ee(Ee):"",Mt=ot?ee(ot):"";return Tt===Mt};if(Xe.current!==-1&&!Cw({array1:Pe.filteredOptions,array2:ie,parser:ee})&&Pe.inputValue===We&&(j?le.length===Pe.value.length&&Pe.value.every((Ee,ot)=>ee(le[ot])===ee(Ee)):Te(Pe.value,le))){const Ee=Pe.filteredOptions[Xe.current];if(Ee)return ie.findIndex(ot=>ee(ot)===ee(Ee))}return-1},vn=b.useCallback(()=>{if(!et)return;const Te=pn();if(Te!==-1){Xe.current=Te;return}const Ee=j?le[0]:le;if(ie.length===0||Ee==null){yr({diff:"reset"});return}if(ce.current){if(Ee!=null){const ot=ie[Xe.current];if(j&&ot&&le.findIndex(Mt=>$(ot,Mt))!==-1)return;const Tt=ie.findIndex(Mt=>$(Mt,Ee));Tt===-1?yr({diff:"reset"}):Zt({index:Tt});return}if(Xe.current>=ie.length-1){Zt({index:ie.length-1});return}Zt({index:Xe.current})}},[ie.length,j?!1:le,yr,Zt,et,We,j]),nt=Zr(Te=>{Sy(ce,Te),Te&&vn()});b.useEffect(()=>{(Xr||et)&&vn()},[vn,Xr,et]);const kt=Te=>{fe||(we(!0),Re(!0),K&&K(Te))},Yt=(Te,Ee)=>{fe&&(we(!1),V&&V(Te,Ee))},Tr=(Te,Ee,ot,Tt)=>{if(j){if(le.length===Ee.length&&le.every((Mt,Fr)=>Mt===Ee[Fr]))return}else if(le===Ee)return;q&&q(Te,Ee,ot,Tt),Ye(Ee)},Kr=b.useRef(!1),Mn=(Te,Ee,ot="selectOption",Tt="options")=>{let Mt=ot,Fr=Ee;if(j){Fr=Array.isArray(le)?le.slice():[];const $t=Fr.findIndex(lo=>$(Ee,lo));$t===-1?Fr.push(Ee):Tt!=="freeSolo"&&(Fr.splice($t,1),Mt="removeOption")}ht(Te,Fr,Mt),Tr(Te,Fr,Mt,{option:Ee}),!m&&(!Te||!Te.ctrlKey&&!Te.metaKey)&&Yt(Te,Mt),(c===!0||c==="touch"&&Kr.current||c==="mouse"&&!Kr.current)&&ye.current.blur()};function jt(Te,Ee){if(Te===-1)return-1;let ot=Te;for(;;){if(Ee==="next"&&ot===le.length||Ee==="previous"&&ot===-1)return-1;const Tt=re?"data-item-index":"data-tag-index",Mt=Fe.querySelector(`[${Tt}="${ot}"]`);if(!Mt||!Mt.hasAttribute("tabindex")||Mt.disabled||Mt.getAttribute("aria-disabled")==="true")ot+=Ee==="next"?1:-1;else return ot}}const vr=(Te,Ee)=>{if(!j)return;We===""&&Yt(Te,"toggleInput");let ot=Ne;Ne===-1?We===""&&Ee==="previous"&&(ot=le.length-1):(ot+=Ee==="next"?1:-1,ot<0&&(ot=0),ot===le.length&&(ot=-1)),ot=jt(ot,Ee),$e(ot),He(ot)},Ke=Te=>{he.current=!0,ft(""),U&&U(Te,"","clear"),Tr(Te,j?[]:null,"clear")},at=Te=>Ee=>{if(Te.onKeyDown&&Te.onKeyDown(Ee),!Ee.defaultMuiPrevented&&(Ne!==-1&&!["ArrowLeft","ArrowRight"].includes(Ee.key)&&($e(-1),He(-1)),Ee.which!==229))switch(Ee.key){case"Home":et&&L&&(Ee.preventDefault(),yr({diff:"start",direction:"next",reason:"keyboard",event:Ee}));break;case"End":et&&L&&(Ee.preventDefault(),yr({diff:"end",direction:"previous",reason:"keyboard",event:Ee}));break;case"PageUp":Ee.preventDefault(),yr({diff:-Tw,direction:"previous",reason:"keyboard",event:Ee}),kt(Ee);break;case"PageDown":Ee.preventDefault(),yr({diff:Tw,direction:"next",reason:"keyboard",event:Ee}),kt(Ee);break;case"ArrowDown":Ee.preventDefault(),yr({diff:1,direction:"next",reason:"keyboard",event:Ee}),kt(Ee);break;case"ArrowUp":Ee.preventDefault(),yr({diff:-1,direction:"previous",reason:"keyboard",event:Ee}),kt(Ee);break;case"ArrowLeft":!j&&re&&le!=null?($e(0),He(0)):vr(Ee,"previous");break;case"ArrowRight":!j&&re?($e(-1),He(-1)):vr(Ee,"next");break;case"Enter":if(Xe.current!==-1&&et){const ot=ie[Xe.current],Tt=I?I(ot):!1;if(Ee.preventDefault(),Tt)return;Mn(Ee,ot,"selectOption"),n&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else k&&We!==""&&qe===!1&&(j&&Ee.preventDefault(),Mn(Ee,We,"createOption","freeSolo"));break;case"Escape":et?(Ee.preventDefault(),Ee.stopPropagation(),Yt(Ee,"escape")):d&&(We!==""||j&&le.length>0||re)&&(Ee.preventDefault(),Ee.stopPropagation(),Ke(Ee));break;case"Backspace":if(j&&!X&&We===""&&le.length>0){const ot=Ne===-1?le.length-1:Ne,Tt=le.slice();Tt.splice(ot,1),Tr(Ee,Tt,"removeOption",{option:le[ot]})}!j&&re&&!X&&(Ye(null),$e(-1),He(-1));break;case"Delete":if(j&&!X&&We===""&&le.length>0&&Ne!==-1){const ot=Ne,Tt=le.slice();Tt.splice(ot,1),Tr(Ee,Tt,"removeOption",{option:le[ot]})}!j&&re&&!X&&(Ye(null),$e(-1),He(-1));break}},_t=Te=>{Nt(!0),Ne!==-1&&($e(-1),He(-1)),Z&&!he.current&&kt(Te)},Ot=Te=>{if(t(ce)){ye.current.focus();return}Nt(!1),Ce.current=!0,he.current=!1,a&&Xe.current!==-1&&et?Mn(Te,ie[Xe.current],"blur"):a&&k&&We!==""?Mn(Te,We,"blur","freeSolo"):u&&ht(Te,le,"blur"),Yt(Te,"blur")},rr=Te=>{const Ee=Te.target.value;We!==Ee&&(ft(Ee),Re(!1),U&&U(Te,Ee,"input")),Ee===""?!v&&!j&&Tr(Te,null,"clear"):kt(Te)},zr=Te=>{const Ee=Number(Te.currentTarget.getAttribute("data-option-index"));Xe.current!==Ee&&Zt({event:Te,index:Ee,reason:"mouse"})},xn=Te=>{Zt({event:Te,index:Number(Te.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Kr.current=!0},Fn=Te=>{const Ee=Number(Te.currentTarget.getAttribute("data-option-index"));Mn(Te,ie[Ee],"selectOption"),Kr.current=!1},fi=Te=>Ee=>{const ot=le.slice();ot.splice(Te,1),Tr(Ee,ot,"removeOption",{option:le[Te]})},qo=Te=>{Tr(Te,null,"removeOption",{option:le})},Lr=Te=>{fe?Yt(Te,"toggleInput"):kt(Te)},Dr=Te=>{Te.currentTarget.contains(Te.target)&&Te.target.getAttribute("id")!==oe&&Te.preventDefault()},bn=Te=>{Te.currentTarget.contains(Te.target)&&(ye.current.focus(),de&&Ce.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),Ce.current=!1)},rl=Te=>{!y&&(We===""||!fe)&&Lr(Te)};let ma=k&&We.length>0;ma=ma||(j?le.length>0:le!==null);let nl=ie;return R&&(nl=ie.reduce((Te,Ee,ot)=>{const Tt=R(Ee);return Te.length>0&&Te[Te.length-1].group===Tt?Te[Te.length-1].options.push(Ee):Te.push({key:ot,index:ot,group:Tt,options:[Ee]}),Te},[])),y&&ze&&Ot(),{getRootProps:(Te={})=>({...Te,onKeyDown:at(Te),onMouseDown:Dr,onClick:bn}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:We,onBlur:Ot,onFocus:_t,onChange:rr,onMouseDown:rl,"aria-activedescendant":et?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Be?`${oe}-listbox`:void 0,"aria-expanded":Be,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ke}),getItemProps:({index:Te=0}={})=>({...j&&{key:Te},...re?{"data-item-index":Te}:{"data-tag-index":Te},tabIndex:-1,...!X&&{onDelete:j?fi(Te):qo}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Lr}),getTagProps:({index:Te})=>({key:Te,"data-tag-index":Te,tabIndex:-1,...!X&&{onDelete:fi(Te)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:nt,onMouseDown:Te=>{Te.preventDefault()}}),getOptionProps:({index:Te,option:Ee})=>{const ot=(j?le:[le]).some(Mt=>Mt!=null&&$(Ee,Mt)),Tt=I?I(Ee):!1;return{key:(T==null?void 0:T(Ee))??ee(Ee),tabIndex:-1,role:"option",id:`${oe}-option-${Te}`,onMouseMove:zr,onClick:Fn,onTouchStart:xn,"data-option-index":Te,"aria-disabled":Tt,"aria-selected":ot}},id:oe,inputValue:We,value:le,dirty:ma,expanded:et&&Fe,popupOpen:et,focused:ze||Ne!==-1,anchorEl:Fe,setAnchorEl:Le,focusedItem:Ne,focusedTag:Ne,groupedOptions:nl}}var Kn="top",Bo="bottom",zo="right",Qn="left",Wv="auto",bd=[Kn,Bo,zo,Qn],ec="start",Ku="end",bA="clippingParents",bE="viewport",uu="popper",wA="reference",jw=bd.reduce(function(e,t){return e.concat([t+"-"+ec,t+"-"+Ku])},[]),wE=[].concat(bd,[Wv]).reduce(function(e,t){return e.concat([t,t+"-"+ec,t+"-"+Ku])},[]),SA="beforeRead",CA="read",EA="afterRead",TA="beforeMain",kA="main",jA="afterMain",PA="beforeWrite",IA="write",MA="afterWrite",RA=[SA,CA,EA,TA,kA,jA,PA,IA,MA];function Ai(e){return e?(e.nodeName||"").toLowerCase():null}function So(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fs(e){var t=So(e).Element;return e instanceof t||e instanceof Element}function $o(e){var t=So(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qv(e){if(typeof ShadowRoot>"u")return!1;var t=So(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AA(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!$o(a)||!Ai(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(c){var u=o[c];u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":u)}))})}function _A(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=c.reduce(function(d,f){return d[f]="",d},{});!$o(o)||!Ai(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(d){o.removeAttribute(d)}))})}}const LA={name:"applyStyles",enabled:!0,phase:"write",fn:AA,effect:_A,requires:["computeStyles"]};function Ii(e){return e.split("-")[0]}var zs=Math.max,Of=Math.min,tc=Math.round;function Py(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SE(){return!/^((?!chrome|android).)*safari/i.test(Py())}function rc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&$o(e)&&(o=e.offsetWidth>0&&tc(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&tc(n.height)/e.offsetHeight||1);var c=Fs(e)?So(e):window,u=c.visualViewport,d=!SE()&&r,f=(n.left+(d&&u?u.offsetLeft:0))/o,h=(n.top+(d&&u?u.offsetTop:0))/a,v=n.width/o,m=n.height/a;return{width:v,height:m,top:h,right:f+v,bottom:h+m,left:f,x:f,y:h}}function Gv(e){var t=rc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function CE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qv(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ia(e){return So(e).getComputedStyle(e)}function OA(e){return["table","td","th"].indexOf(Ai(e))>=0}function ls(e){return((Fs(e)?e.ownerDocument:e.document)||window.document).documentElement}function wh(e){return Ai(e)==="html"?e:e.assignedSlot||e.parentNode||(qv(e)?e.host:null)||ls(e)}function Pw(e){return!$o(e)||ia(e).position==="fixed"?null:e.offsetParent}function NA(e){var t=/firefox/i.test(Py()),r=/Trident/i.test(Py());if(r&&$o(e)){var n=ia(e);if(n.position==="fixed")return null}var o=wh(e);for(qv(o)&&(o=o.host);$o(o)&&["html","body"].indexOf(Ai(o))<0;){var a=ia(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function wd(e){for(var t=So(e),r=Pw(e);r&&OA(r)&&ia(r).position==="static";)r=Pw(r);return r&&(Ai(r)==="html"||Ai(r)==="body"&&ia(r).position==="static")?t:r||NA(e)||t}function Xv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mu(e,t,r){return zs(e,Of(t,r))}function $A(e,t,r){var n=Mu(e,t,r);return n>r?r:n}function EE(){return{top:0,right:0,bottom:0,left:0}}function TE(e){return Object.assign({},EE(),e)}function kE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var BA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,TE(typeof t!="number"?t:kE(t,bd))};function zA(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,u=Ii(r.placement),d=Xv(u),f=[Qn,zo].indexOf(u)>=0,h=f?"height":"width";if(!(!a||!c)){var v=BA(o.padding,r),m=Gv(a),y=d==="y"?Kn:Qn,x=d==="y"?Bo:zo,w=r.rects.reference[h]+r.rects.reference[d]-c[d]-r.rects.popper[h],C=c[d]-r.rects.reference[d],P=wd(a),k=P?d==="y"?P.clientHeight||0:P.clientWidth||0:0,I=w/2-C/2,T=v[y],M=k-m[h]-v[x],R=k/2-m[h]/2+I,L=Mu(T,R,M),A=d;r.modifiersData[n]=(t={},t[A]=L,t.centerOffset=L-R,t)}}function DA(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CE(t.elements.popper,o)&&(t.elements.arrow=o))}const FA={name:"arrow",enabled:!0,phase:"main",fn:zA,effect:DA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nc(e){return e.split("-")[1]}var HA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VA(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:tc(r*o)/o||0,y:tc(n*o)/o||0}}function Iw(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,h=e.roundOffsets,v=e.isFixed,m=c.x,y=m===void 0?0:m,x=c.y,w=x===void 0?0:x,C=typeof h=="function"?h({x:y,y:w}):{x:y,y:w};y=C.x,w=C.y;var P=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),I=Qn,T=Kn,M=window;if(f){var R=wd(r),L="clientHeight",A="clientWidth";if(R===So(r)&&(R=ls(r),ia(R).position!=="static"&&u==="absolute"&&(L="scrollHeight",A="scrollWidth")),R=R,o===Kn||(o===Qn||o===zo)&&a===Ku){T=Bo;var H=v&&R===M&&M.visualViewport?M.visualViewport.height:R[L];w-=H-n.height,w*=d?1:-1}if(o===Qn||(o===Kn||o===Bo)&&a===Ku){I=zo;var G=v&&R===M&&M.visualViewport?M.visualViewport.width:R[A];y-=G-n.width,y*=d?1:-1}}var $=Object.assign({position:u},f&&HA),j=h===!0?VA({x:y,y:w},So(r)):{x:y,y:w};if(y=j.x,w=j.y,d){var q;return Object.assign({},$,(q={},q[T]=k?"0":"",q[I]=P?"0":"",q.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",q))}return Object.assign({},$,(t={},t[T]=k?w+"px":"",t[I]=P?y+"px":"",t.transform="",t))}function UA(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,c=a===void 0?!0:a,u=r.roundOffsets,d=u===void 0?!0:u,f={placement:Ii(t.placement),variation:nc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Iw(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Iw(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const WA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UA,data:{}};var Dp={passive:!0};function qA(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,c=n.resize,u=c===void 0?!0:c,d=So(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Dp)}),u&&d.addEventListener("resize",r.update,Dp),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Dp)}),u&&d.removeEventListener("resize",r.update,Dp)}}const GA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qA,data:{}};var XA={left:"right",right:"left",bottom:"top",top:"bottom"};function vf(e){return e.replace(/left|right|bottom|top/g,function(t){return XA[t]})}var KA={start:"end",end:"start"};function Mw(e){return e.replace(/start|end/g,function(t){return KA[t]})}function Kv(e){var t=So(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Qv(e){return rc(ls(e)).left+Kv(e).scrollLeft}function QA(e,t){var r=So(e),n=ls(e),o=r.visualViewport,a=n.clientWidth,c=n.clientHeight,u=0,d=0;if(o){a=o.width,c=o.height;var f=SE();(f||!f&&t==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}return{width:a,height:c,x:u+Qv(e),y:d}}function YA(e){var t,r=ls(e),n=Kv(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=zs(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=zs(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Qv(e),d=-n.scrollTop;return ia(o||r).direction==="rtl"&&(u+=zs(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:c,x:u,y:d}}function Yv(e){var t=ia(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function jE(e){return["html","body","#document"].indexOf(Ai(e))>=0?e.ownerDocument.body:$o(e)&&Yv(e)?e:jE(wh(e))}function Ru(e,t){var r;t===void 0&&(t=[]);var n=jE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=So(n),c=o?[a].concat(a.visualViewport||[],Yv(n)?n:[]):n,u=t.concat(c);return o?u:u.concat(Ru(wh(c)))}function Iy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JA(e,t){var r=rc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Rw(e,t,r){return t===bE?Iy(QA(e,r)):Fs(t)?JA(t,r):Iy(YA(ls(e)))}function ZA(e){var t=Ru(wh(e)),r=["absolute","fixed"].indexOf(ia(e).position)>=0,n=r&&$o(e)?wd(e):e;return Fs(n)?t.filter(function(o){return Fs(o)&&CE(o,n)&&Ai(o)!=="body"}):[]}function e6(e,t,r,n){var o=t==="clippingParents"?ZA(e):[].concat(t),a=[].concat(o,[r]),c=a[0],u=a.reduce(function(d,f){var h=Rw(e,f,n);return d.top=zs(h.top,d.top),d.right=Of(h.right,d.right),d.bottom=Of(h.bottom,d.bottom),d.left=zs(h.left,d.left),d},Rw(e,c,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function PE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ii(n):null,a=n?nc(n):null,c=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,d;switch(o){case Kn:d={x:c,y:t.y-r.height};break;case Bo:d={x:c,y:t.y+t.height};break;case zo:d={x:t.x+t.width,y:u};break;case Qn:d={x:t.x-r.width,y:u};break;default:d={x:t.x,y:t.y}}var f=o?Xv(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case ec:d[f]=d[f]-(t[h]/2-r[h]/2);break;case Ku:d[f]=d[f]+(t[h]/2-r[h]/2);break}}return d}function Qu(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,c=a===void 0?e.strategy:a,u=r.boundary,d=u===void 0?bA:u,f=r.rootBoundary,h=f===void 0?bE:f,v=r.elementContext,m=v===void 0?uu:v,y=r.altBoundary,x=y===void 0?!1:y,w=r.padding,C=w===void 0?0:w,P=TE(typeof C!="number"?C:kE(C,bd)),k=m===uu?wA:uu,I=e.rects.popper,T=e.elements[x?k:m],M=e6(Fs(T)?T:T.contextElement||ls(e.elements.popper),d,h,c),R=rc(e.elements.reference),L=PE({reference:R,element:I,placement:o}),A=Iy(Object.assign({},I,L)),H=m===uu?A:R,G={top:M.top-H.top+P.top,bottom:H.bottom-M.bottom+P.bottom,left:M.left-H.left+P.left,right:H.right-M.right+P.right},$=e.modifiersData.offset;if(m===uu&&$){var j=$[o];Object.keys(G).forEach(function(q){var V=[zo,Bo].indexOf(q)>=0?1:-1,O=[Kn,Bo].indexOf(q)>=0?"y":"x";G[q]+=j[O]*V})}return G}function t6(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,c=r.padding,u=r.flipVariations,d=r.allowedAutoPlacements,f=d===void 0?wE:d,h=nc(n),v=h?u?jw:jw.filter(function(x){return nc(x)===h}):bd,m=v.filter(function(x){return f.indexOf(x)>=0});m.length===0&&(m=v);var y=m.reduce(function(x,w){return x[w]=Qu(e,{placement:w,boundary:o,rootBoundary:a,padding:c})[Ii(w)],x},{});return Object.keys(y).sort(function(x,w){return y[x]-y[w]})}function r6(e){if(Ii(e)===Wv)return[];var t=vf(e);return[Mw(e),t,Mw(t)]}function n6(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!0:c,d=r.fallbackPlacements,f=r.padding,h=r.boundary,v=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,w=r.allowedAutoPlacements,C=t.options.placement,P=Ii(C),k=P===C,I=d||(k||!x?[vf(C)]:r6(C)),T=[C].concat(I).reduce(function(J,oe){return J.concat(Ii(oe)===Wv?t6(t,{placement:oe,boundary:h,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),M=t.rects.reference,R=t.rects.popper,L=new Map,A=!0,H=T[0],G=0;G<T.length;G++){var $=T[G],j=Ii($),q=nc($)===ec,V=[Kn,Bo].indexOf(j)>=0,O=V?"width":"height",U=Qu(t,{placement:$,boundary:h,rootBoundary:v,altBoundary:m,padding:f}),K=V?q?zo:Qn:q?Bo:Kn;M[O]>R[O]&&(K=vf(K));var Y=vf(K),Z=[];if(a&&Z.push(U[j]<=0),u&&Z.push(U[K]<=0,U[Y]<=0),Z.every(function(J){return J})){H=$,A=!1;break}L.set($,Z)}if(A)for(var Q=x?3:1,X=function(oe){var ee=T.find(function(he){var Ce=L.get(he);if(Ce)return Ce.slice(0,oe).every(function(ye){return ye})});if(ee)return H=ee,"break"},re=Q;re>0;re--){var de=X(re);if(de==="break")break}t.placement!==H&&(t.modifiersData[n]._skip=!0,t.placement=H,t.reset=!0)}}const o6={name:"flip",enabled:!0,phase:"main",fn:n6,requiresIfExists:["offset"],data:{_skip:!1}};function Aw(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function _w(e){return[Kn,zo,Bo,Qn].some(function(t){return e[t]>=0})}function i6(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,c=Qu(t,{elementContext:"reference"}),u=Qu(t,{altBoundary:!0}),d=Aw(c,n),f=Aw(u,o,a),h=_w(d),v=_w(f);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const a6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:i6};function s6(e,t,r){var n=Ii(e),o=[Qn,Kn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],u=a[1];return c=c||0,u=(u||0)*o,[Qn,zo].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}function l6(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,c=wE.reduce(function(h,v){return h[v]=s6(v,t.rects,a),h},{}),u=c[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=c}const c6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l6};function u6(e){var t=e.state,r=e.name;t.modifiersData[r]=PE({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const d6={name:"popperOffsets",enabled:!0,phase:"read",fn:u6,data:{}};function p6(e){return e==="x"?"y":"x"}function f6(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!1:c,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,v=r.padding,m=r.tether,y=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,C=Qu(t,{boundary:d,rootBoundary:f,padding:v,altBoundary:h}),P=Ii(t.placement),k=nc(t.placement),I=!k,T=Xv(P),M=p6(T),R=t.modifiersData.popperOffsets,L=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,G=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(R){if(a){var q,V=T==="y"?Kn:Qn,O=T==="y"?Bo:zo,U=T==="y"?"height":"width",K=R[T],Y=K+C[V],Z=K-C[O],Q=y?-A[U]/2:0,X=k===ec?L[U]:A[U],re=k===ec?-A[U]:-L[U],de=t.elements.arrow,J=y&&de?Gv(de):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EE(),ee=oe[V],he=oe[O],Ce=Mu(0,L[U],J[U]),ye=I?L[U]/2-Q-Ce-ee-G.mainAxis:X-Ce-ee-G.mainAxis,ce=I?-L[U]/2+Q+Ce+he+G.mainAxis:re+Ce+he+G.mainAxis,Fe=t.elements.arrow&&wd(t.elements.arrow),Le=Fe?T==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Ne=(q=$==null?void 0:$[T])!=null?q:0,$e=K+ye-Ne-Le,Me=K+ce-Ne,Xe=Mu(y?Of(Y,$e):Y,K,y?zs(Z,Me):Z);R[T]=Xe,j[T]=Xe-K}if(u){var dt,le=T==="x"?Kn:Qn,Ye=T==="x"?Bo:zo,We=R[M],ft=M==="y"?"height":"width",ze=We+C[le],Nt=We-C[Ye],ht=[Kn,Qn].indexOf(P)!==-1,fe=(dt=$==null?void 0:$[M])!=null?dt:0,we=ht?ze:We-L[ft]-A[ft]-fe+G.altAxis,je=ht?We+L[ft]+A[ft]-fe-G.altAxis:Nt,Re=y&&ht?$A(we,We,je):Mu(y?we:ze,We,y?je:Nt);R[M]=Re,j[M]=Re-We}t.modifiersData[n]=j}}const h6={name:"preventOverflow",enabled:!0,phase:"main",fn:f6,requiresIfExists:["offset"]};function m6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function g6(e){return e===So(e)||!$o(e)?Kv(e):m6(e)}function y6(e){var t=e.getBoundingClientRect(),r=tc(t.width)/e.offsetWidth||1,n=tc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function v6(e,t,r){r===void 0&&(r=!1);var n=$o(t),o=$o(t)&&y6(t),a=ls(t),c=rc(e,o,r),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Ai(t)!=="body"||Yv(a))&&(u=g6(t)),$o(t)?(d=rc(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Qv(a))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function x6(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(u){if(!r.has(u)){var d=t.get(u);d&&o(d)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function b6(e){var t=x6(e);return RA.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function w6(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function S6(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Lw={placement:"bottom",modifiers:[],strategy:"absolute"};function Ow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function C6(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Lw:o;return function(u,d,f){f===void 0&&(f=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lw,a),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},v=[],m=!1,y={state:h,setOptions:function(P){var k=typeof P=="function"?P(h.options):P;w(),h.options=Object.assign({},a,h.options,k),h.scrollParents={reference:Fs(u)?Ru(u):u.contextElement?Ru(u.contextElement):[],popper:Ru(d)};var I=b6(S6([].concat(n,h.options.modifiers)));return h.orderedModifiers=I.filter(function(T){return T.enabled}),x(),y.update()},forceUpdate:function(){if(!m){var P=h.elements,k=P.reference,I=P.popper;if(Ow(k,I)){h.rects={reference:v6(k,wd(I),h.options.strategy==="fixed"),popper:Gv(I)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(G){return h.modifiersData[G.name]=Object.assign({},G.data)});for(var T=0;T<h.orderedModifiers.length;T++){if(h.reset===!0){h.reset=!1,T=-1;continue}var M=h.orderedModifiers[T],R=M.fn,L=M.options,A=L===void 0?{}:L,H=M.name;typeof R=="function"&&(h=R({state:h,options:A,name:H,instance:y})||h)}}}},update:w6(function(){return new Promise(function(C){y.forceUpdate(),C(h)})}),destroy:function(){w(),m=!0}};if(!Ow(u,d))return y;y.setOptions(f).then(function(C){!m&&f.onFirstUpdate&&f.onFirstUpdate(C)});function x(){h.orderedModifiers.forEach(function(C){var P=C.name,k=C.options,I=k===void 0?{}:k,T=C.effect;if(typeof T=="function"){var M=T({state:h,name:P,instance:y,options:I}),R=function(){};v.push(M||R)}})}function w(){v.forEach(function(C){return C()}),v=[]}return y}}var E6=[GA,d6,WA,LA,c6,o6,h6,FA,a6],T6=C6({defaultModifiers:E6});function oc(e){var v;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,c=o?{}:yE(r,n),{props:u,internalRef:d}=vE({...a,externalSlotProps:c}),f=$r(d,c==null?void 0:c.ref,(v=e.additionalProps)==null?void 0:v.ref);return gE(t,{...u,ref:f},n)}function Xs(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function k6(e){return typeof e=="function"?e():e}const IE=b.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[c,u]=b.useState(null),d=$r(b.isValidElement(n)?Xs(n):null,r);if(Zn(()=>{a||u(k6(o)||document.body)},[o,a]),Zn(()=>{if(c&&!a)return Sy(r,c),()=>{Sy(r,null)}},[r,c,a]),a){if(b.isValidElement(n)){const f={ref:d};return b.cloneElement(n,f)}return n}return c&&uC.createPortal(n,c)});function j6(e){return Je("MuiPopper",e)}tt("MuiPopper",["root"]);function P6(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function My(e){return typeof e=="function"?e():e}function I6(e){return e.nodeType!==void 0}const M6=e=>{const{classes:t}=e;return Ze({root:["root"]},j6,t)},R6={},A6=b.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:a,disablePortal:c,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:v,slotProps:m={},slots:y={},TransitionProps:x,ownerState:w,...C}=t,P=b.useRef(null),k=$r(P,r),I=b.useRef(null),T=$r(I,v),M=b.useRef(T);Zn(()=>{M.current=T},[T]),b.useImperativeHandle(v,()=>I.current,[]);const R=P6(f,a),[L,A]=b.useState(R),[H,G]=b.useState(My(n));b.useEffect(()=>{I.current&&I.current.forceUpdate()}),b.useEffect(()=>{n&&G(My(n))},[n]),Zn(()=>{if(!H||!d)return;const O=Y=>{A(Y.placement)};let U=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{O(Y)}}];u!=null&&(U=U.concat(u)),h&&h.modifiers!=null&&(U=U.concat(h.modifiers));const K=T6(H,P.current,{placement:R,...h,modifiers:U});return M.current(K),()=>{K.destroy(),M.current(null)}},[H,c,u,d,h,R]);const $={placement:L};x!==null&&($.TransitionProps=x);const j=M6(t),q=y.root??"div",V=oc({elementType:q,externalSlotProps:m.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:j.root});return l.jsx(q,{...V,children:typeof o=="function"?o($):o})}),_6=b.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:c="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:m=R6,popperRef:y,style:x,transition:w=!1,slotProps:C={},slots:P={},...k}=t,[I,T]=b.useState(!0),M=()=>{T(!1)},R=()=>{T(!0)};if(!d&&!h&&(!w||I))return null;let L;if(a)L=a;else if(n){const G=My(n);L=G&&I6(G)?gn(G).body:gn(null).body}const A=!h&&d&&(!w||I)?"none":void 0,H=w?{in:h,onEnter:M,onExited:R}:void 0;return l.jsx(IE,{disablePortal:u,container:L,children:l.jsx(A6,{anchorEl:n,direction:c,disablePortal:u,modifiers:f,ref:r,open:w?!I:h,placement:v,popperOptions:m,popperRef:y,slotProps:C,slots:P,...k,style:{position:"fixed",top:0,left:0,display:A,...x},TransitionProps:H,children:o})})}),L6=xe(_6,{name:"MuiPopper",slot:"Root"})({}),Sh=b.forwardRef(function(t,r){const n=ss(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:u,componentsProps:d,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:y,placement:x,popperOptions:w,popperRef:C,transition:P,slots:k,slotProps:I,...T}=o,M=(k==null?void 0:k.root)??(u==null?void 0:u.Root),R={anchorEl:a,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:y,placement:x,popperOptions:w,popperRef:C,transition:P,...T};return l.jsx(L6,{as:c,direction:n?"rtl":"ltr",slots:{root:M},slotProps:I??d,...R,ref:r})});function O6(e){return Je("MuiListSubheader",e)}tt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const N6=e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:a}=e,c={root:["root",r!=="default"&&`color${ve(r)}`,!n&&"gutters",o&&"inset",!a&&"sticky"]};return Ze(c,O6,t)},$6=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ve(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ge(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Ry=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:c="li",disableGutters:u=!1,disableSticky:d=!1,inset:f=!1,...h}=n,v={...n,color:a,component:c,disableGutters:u,disableSticky:d,inset:f},m=N6(v);return l.jsx($6,{as:c,className:Ie(m.root,o),ref:r,ownerState:v,...h})});Ry&&(Ry.muiSkipListHighlight=!0);const B6=Se(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function z6(e){return Je("MuiChip",e)}const Ut=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),D6=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:c,clickable:u,variant:d}=e,f={root:["root",d,r&&"disabled",`size${ve(n)}`,`color${ve(o)}`,u&&"clickable",u&&`clickableColor${ve(o)}`,c&&"deletable",c&&`deletableColor${ve(o)}`,`${d}${ve(o)}`],label:["label",`label${ve(n)}`],avatar:["avatar",`avatar${ve(n)}`,`avatarColor${ve(o)}`],icon:["icon",`icon${ve(n)}`,`iconColor${ve(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ve(n)}`,`deleteIconColor${ve(o)}`,`deleteIcon${ve(d)}Color${ve(o)}`]};return Ze(f,z6,t)},F6=xe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:c,size:u,variant:d}=r;return[{[`& .${Ut.avatar}`]:t.avatar},{[`& .${Ut.avatar}`]:t[`avatar${ve(u)}`]},{[`& .${Ut.avatar}`]:t[`avatarColor${ve(n)}`]},{[`& .${Ut.icon}`]:t.icon},{[`& .${Ut.icon}`]:t[`icon${ve(u)}`]},{[`& .${Ut.icon}`]:t[`iconColor${ve(o)}`]},{[`& .${Ut.deleteIcon}`]:t.deleteIcon},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${ve(u)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIconColor${ve(n)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${ve(d)}Color${ve(n)}`]},t.root,t[`size${ve(u)}`],t[`color${ve(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${ve(n)}`],c&&t.deletable,c&&n!=="default"&&t[`deletableColor${ve(n)}`],t[d],t[`${d}${ve(n)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ut.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ut.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ut.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ut.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ut.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ut.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ut.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ut.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ut.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(or(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ut.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ut.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ut.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ut.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(or(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ut.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(or(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ut.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ut.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ut.avatar}`]:{marginLeft:4},[`& .${Ut.avatarSmall}`]:{marginLeft:2},[`& .${Ut.icon}`]:{marginLeft:4},[`& .${Ut.iconSmall}`]:{marginLeft:2},[`& .${Ut.deleteIcon}`]:{marginRight:5},[`& .${Ut.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(or()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ut.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),H6=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ve(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Nw(e){return e.key==="Backspace"||e.key==="Delete"}const qt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:c,color:u="default",component:d,deleteIcon:f,disabled:h=!1,icon:v,label:m,onClick:y,onDelete:x,onKeyDown:w,onKeyUp:C,size:P="medium",variant:k="filled",tabIndex:I,skipFocusWhenDisabled:T=!1,slots:M={},slotProps:R={},...L}=n,A=b.useRef(null),H=$r(A,r),G=ee=>{ee.stopPropagation(),x&&x(ee)},$=ee=>{ee.currentTarget===ee.target&&Nw(ee)&&ee.preventDefault(),w&&w(ee)},j=ee=>{ee.currentTarget===ee.target&&x&&Nw(ee)&&x(ee),C&&C(ee)},q=c!==!1&&y?!0:c,V=q||x?ai:d||"div",O={...n,component:V,disabled:h,size:P,color:u,iconColor:b.isValidElement(v)&&v.props.color||u,onDelete:!!x,clickable:q,variant:k},U=D6(O),K=V===ai?{component:d||"div",focusVisibleClassName:U.focusVisible,...x&&{disableRipple:!0}}:{};let Y=null;x&&(Y=f&&b.isValidElement(f)?b.cloneElement(f,{className:Ie(f.props.className,U.deleteIcon),onClick:G}):l.jsx(B6,{className:U.deleteIcon,onClick:G}));let Z=null;o&&b.isValidElement(o)&&(Z=b.cloneElement(o,{className:Ie(U.avatar,o.props.className)}));let Q=null;v&&b.isValidElement(v)&&(Q=b.cloneElement(v,{className:Ie(U.icon,v.props.className)}));const X={slots:M,slotProps:R},[re,de]=Qe("root",{elementType:F6,externalForwardedProps:{...X,...L},ownerState:O,shouldForwardComponentProp:!0,ref:H,className:Ie(U.root,a),additionalProps:{disabled:q&&h?!0:void 0,tabIndex:T&&h?-1:I,...K},getSlotProps:ee=>({...ee,onClick:he=>{var Ce;(Ce=ee.onClick)==null||Ce.call(ee,he),y==null||y(he)},onKeyDown:he=>{var Ce;(Ce=ee.onKeyDown)==null||Ce.call(ee,he),$(he)},onKeyUp:he=>{var Ce;(Ce=ee.onKeyUp)==null||Ce.call(ee,he),j(he)}})}),[J,oe]=Qe("label",{elementType:H6,externalForwardedProps:X,ownerState:O,className:U.label});return l.jsxs(re,{as:V,...de,children:[Z||Q,l.jsx(J,{...oe,children:m}),Y]})});function Fp(e){return parseInt(e,10)||0}const V6={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function U6(e){for(const t in e)return!1;return!0}function $w(e){return U6(e)||e.outerHeightStyle===0&&!e.overflowing}const W6=b.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:c,value:u,...d}=t,{current:f}=b.useRef(u!=null),h=b.useRef(null),v=$r(r,h),m=b.useRef(null),y=b.useRef(null),x=b.useCallback(()=>{const I=h.current,T=y.current;if(!I||!T)return;const R=ii(I).getComputedStyle(I);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};T.style.width=R.width,T.value=I.value||t.placeholder||"x",T.value.slice(-1)===`
|
|
218
|
+
`&&(T.value+=" ");const L=R.boxSizing,A=Fp(R.paddingBottom)+Fp(R.paddingTop),H=Fp(R.borderBottomWidth)+Fp(R.borderTopWidth),G=T.scrollHeight;T.value="x";const $=T.scrollHeight;let j=G;a&&(j=Math.max(Number(a)*$,j)),o&&(j=Math.min(Number(o)*$,j)),j=Math.max(j,$);const q=j+(L==="border-box"?A+H:0),V=Math.abs(j-G)<=1;return{outerHeightStyle:q,overflowing:V}},[o,a,t.placeholder]),w=Zr(()=>{const I=h.current,T=x();if(!I||!T||$w(T))return!1;const M=T.outerHeightStyle;return m.current!=null&&m.current!==M}),C=b.useCallback(()=>{const I=h.current,T=x();if(!I||!T||$w(T))return;const M=T.outerHeightStyle;m.current!==M&&(m.current=M,I.style.height=`${M}px`),I.style.overflow=T.overflowing?"hidden":""},[x]),P=b.useRef(-1);Zn(()=>{const I=xh(C),T=h==null?void 0:h.current;if(!T)return;const M=ii(T);M.addEventListener("resize",I);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{w()&&(R.unobserve(T),cancelAnimationFrame(P.current),C(),P.current=requestAnimationFrame(()=>{R.observe(T)}))}),R.observe(T)),()=>{I.clear(),cancelAnimationFrame(P.current),M.removeEventListener("resize",I),R&&R.disconnect()}},[x,C,w]),Zn(()=>{C()});const k=I=>{f||C();const T=I.target,M=T.value.length,R=T.value.endsWith(`
|
|
219
|
+
`),L=T.selectionStart===M;R&&L&&T.setSelectionRange(M,M),n&&n(I)};return l.jsxs(b.Fragment,{children:[l.jsx("textarea",{value:u,onChange:k,ref:v,rows:a,style:c,...d}),l.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...V6.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function Ks({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Ch=b.createContext(void 0);function pa(){return b.useContext(Ch)}function Bw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Nf(e,t=!1){return e&&(Bw(e.value)&&e.value!==""||t&&Bw(e.defaultValue)&&e.defaultValue!=="")}function q6(e){return e.startAdornment}function G6(e){return Je("MuiInputBase",e)}const yo=tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var zw;const Eh=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ve(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Th=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},X6=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:c,formControl:u,fullWidth:d,hiddenLabel:f,multiline:h,readOnly:v,size:m,startAdornment:y,type:x}=e,w={root:["root",`color${ve(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",c&&"focused",u&&"formControl",m&&m!=="medium"&&`size${ve(m)}`,h&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",h&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return Ze(w,G6,t)},kh=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Eh})(Ge(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${yo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),jh=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Th})(Ge(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yo.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${yo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dw=rR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ph=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:c,className:u,color:d,components:f={},componentsProps:h={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:y,endAdornment:x,error:w,fullWidth:C=!1,id:P,inputComponent:k="input",inputProps:I={},inputRef:T,margin:M,maxRows:R,minRows:L,multiline:A=!1,name:H,onBlur:G,onChange:$,onClick:j,onFocus:q,onKeyDown:V,onKeyUp:O,placeholder:U,readOnly:K,renderSuffix:Y,rows:Z,size:Q,slotProps:X={},slots:re={},startAdornment:de,type:J="text",value:oe,...ee}=n,he=I.value!=null?I.value:oe,{current:Ce}=b.useRef(he!=null),ye=b.useRef(),ce=b.useCallback(ie=>{},[]),Fe=$r(ye,T,I.ref,ce),[Le,Ne]=b.useState(!1),$e=pa(),Me=Ks({props:n,muiFormControl:$e,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Me.focused=$e?$e.focused:Le,b.useEffect(()=>{!$e&&m&&Le&&(Ne(!1),G&&G())},[$e,m,Le,G]);const Xe=$e&&$e.onFilled,dt=$e&&$e.onEmpty,le=b.useCallback(ie=>{Nf(ie)?Xe&&Xe():dt&&dt()},[Xe,dt]);Zn(()=>{Ce&&le({value:he})},[he,le,Ce]);const Ye=ie=>{q&&q(ie),I.onFocus&&I.onFocus(ie),$e&&$e.onFocus?$e.onFocus(ie):Ne(!0)},We=ie=>{G&&G(ie),I.onBlur&&I.onBlur(ie),$e&&$e.onBlur?$e.onBlur(ie):Ne(!1)},ft=(ie,...Pe)=>{if(!Ce){const Be=ie.target||ye.current;if(Be==null)throw new Error(oa(1));le({value:Be.value})}I.onChange&&I.onChange(ie,...Pe),$&&$(ie,...Pe)};b.useEffect(()=>{le(ye.current)},[]);const ze=ie=>{ye.current&&ie.currentTarget===ie.target&&ye.current.focus(),j&&j(ie)};let Nt=k,ht=I;A&&Nt==="input"&&(Z?ht={type:void 0,minRows:Z,maxRows:Z,...ht}:ht={type:void 0,maxRows:R,minRows:L,...ht},Nt=W6);const fe=ie=>{le(ie.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};b.useEffect(()=>{$e&&$e.setAdornedStart(!!de)},[$e,de]);const we={...n,color:Me.color||"primary",disabled:Me.disabled,endAdornment:x,error:Me.error,focused:Me.focused,formControl:$e,fullWidth:C,hiddenLabel:Me.hiddenLabel,multiline:A,size:Me.size,startAdornment:de,type:J},je=X6(we),Re=re.root||f.Root||kh,qe=X.root||h.root||{},et=re.input||f.Input||jh;return ht={...ht,...X.input??h.input},l.jsxs(b.Fragment,{children:[!y&&typeof Dw=="function"&&(zw||(zw=l.jsx(Dw,{}))),l.jsxs(Re,{...qe,ref:r,onClick:ze,...ee,...!Af(Re)&&{ownerState:{...we,...qe.ownerState}},className:Ie(je.root,qe.className,u,K&&"MuiInputBase-readOnly"),children:[de,l.jsx(Ch.Provider,{value:null,children:l.jsx(et,{"aria-invalid":Me.error,"aria-describedby":o,autoComplete:a,autoFocus:c,defaultValue:v,disabled:Me.disabled,id:P,onAnimationStart:fe,name:H,placeholder:U,readOnly:K,required:Me.required,rows:Z,value:he,onKeyDown:V,onKeyUp:O,type:J,...ht,...!Af(et)&&{as:Nt,ownerState:{...we,...ht.ownerState}},ref:Fe,className:Ie(je.input,ht.className,K&&"MuiInputBase-readOnly"),onBlur:We,onChange:ft,onFocus:Ye})}),x,Y?Y({...Me,startAdornment:de}):null]})]})});function K6(e){return Je("MuiInput",e)}const $a={...yo,...tt("MuiInput",["root","underline","input"])};function Q6(e){return Je("MuiOutlinedInput",e)}const Ao={...yo,...tt("MuiOutlinedInput",["root","notchedOutline","input"])};function Y6(e){return Je("MuiFilledInput",e)}const vo={...yo,...tt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ME=Se(l.jsx("path",{d:"M7 10l5 5 5-5z"}));function J6(e){return Je("MuiAutocomplete",e)}const Ht=tt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Fw,Hw;const Z6=e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:a,hasClearIcon:c,hasPopupIcon:u,inputFocused:d,popupOpen:f,size:h}=e,v={root:["root",n&&"expanded",o&&"focused",a&&"fullWidth",c&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",d&&"inputFocused"],tag:["tag",`tagSize${ve(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ze(v,J6,t)},e_=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:c,size:u}=r;return[{[`& .${Ht.tag}`]:t.tag},{[`& .${Ht.tag}`]:t[`tagSize${ve(u)}`]},{[`& .${Ht.inputRoot}`]:t.inputRoot},{[`& .${Ht.input}`]:t.input},{[`& .${Ht.input}`]:c&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Ht.focused} .${Ht.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ht.clearIndicator}`]:{visibility:"visible"}},[`& .${Ht.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ht.inputRoot}`]:{[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:30},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:56},[`& .${Ht.input}`]:{width:0,minWidth:30}},[`& .${$a.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$a.root}.${yo.sizeSmall}`]:{[`& .${$a.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ao.root}`]:{padding:9,[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:39},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:65},[`& .${Ht.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ht.endAdornment}`]:{right:9}},[`& .${Ao.root}.${yo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ht.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${vo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:39},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:65},[`& .${vo.input}`]:{padding:"7px 4px"},[`& .${Ht.endAdornment}`]:{right:9}},[`& .${vo.root}.${yo.sizeSmall}`]:{paddingBottom:1,[`& .${vo.input}`]:{padding:"2.5px 4px"}},[`& .${yo.hiddenLabel}`]:{paddingTop:8},[`& .${vo.root}.${yo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ht.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${vo.root}.${yo.hiddenLabel}.${yo.sizeSmall}`]:{[`& .${Ht.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ht.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ht.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ht.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ht.inputRoot}`]:{flexWrap:"wrap"}}}]}),t_=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),r_=xe(Qt,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),n_=xe(Qt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),o_=xe(Sh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ht.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),i_=xe(_r,{name:"MuiAutocomplete",slot:"Paper"})(Ge(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),a_=xe("div",{name:"MuiAutocomplete",slot:"Loading"})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),s_=xe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),l_=xe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Ge(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ht.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ht.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ht.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ht.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ht.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),c_=xe(Ry,{name:"MuiAutocomplete",slot:"GroupLabel"})(Ge(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),u_=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ht.option}`]:{paddingLeft:24}}),d_=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:c=!1,blurOnSelect:u=!1,ChipProps:d,className:f,clearIcon:h=Fw||(Fw=l.jsx(xE,{fontSize:"small"})),clearOnBlur:v=!n.freeSolo,clearOnEscape:m=!1,clearText:y="Clear",closeText:x="Close",componentsProps:w,defaultValue:C=n.multiple?[]:null,disableClearable:P=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:T=!1,disableListWrap:M=!1,disablePortal:R=!1,filterOptions:L,filterSelectedOptions:A=!1,forcePopupIcon:H="auto",freeSolo:G=!1,fullWidth:$=!1,getLimitTagsText:j=Gt=>`+${Gt}`,getOptionDisabled:q,getOptionKey:V,getOptionLabel:O,isOptionEqualToValue:U,groupBy:K,handleHomeEndKeys:Y=!n.freeSolo,id:Z,includeInputInList:Q=!1,inputValue:X,limitTags:re=-1,ListboxComponent:de,ListboxProps:J,loading:oe=!1,loadingText:ee="Loading…",multiple:he=!1,noOptionsText:Ce="No options",onChange:ye,onClose:ce,onHighlightChange:Fe,onInputChange:Le,onOpen:Ne,open:$e,openOnFocus:Me=!1,openText:Xe="Open",options:dt,PaperComponent:le,PopperComponent:Ye,popupIcon:We=Hw||(Hw=l.jsx(ME,{})),readOnly:ft=!1,renderGroup:ze,renderInput:Nt,renderOption:ht,renderTags:fe,renderValue:we,selectOnFocus:je=!n.freeSolo,size:Re="medium",slots:qe={},slotProps:et={},value:ie,...Pe}=n,{getRootProps:Be,getInputProps:He,getInputLabelProps:Et,getPopupIndicatorProps:Zt,getClearProps:yr,getItemProps:Xr,getListboxProps:pn,getOptionProps:vn,value:nt,dirty:kt,expanded:Yt,id:Tr,popupOpen:Kr,focused:Mn,focusedItem:jt,anchorEl:vr,setAnchorEl:Ke,inputValue:at,groupedOptions:_t}=xA({...n,componentName:"Autocomplete"}),Ot=!P&&!I&&kt&&!ft,rr=(!G||H===!0)&&H!==!1,{onMouseDown:zr}=He(),{ref:xn,...Fn}=pn(),qo=O||(Gt=>Gt.label??Gt),Lr={...n,disablePortal:R,expanded:Yt,focused:Mn,fullWidth:$,getOptionLabel:qo,hasClearIcon:Ot,hasPopupIcon:rr,inputFocused:jt===-1,popupOpen:Kr,size:Re},Dr=Z6(Lr),bn={slots:{paper:le,popper:Ye,...qe},slotProps:{chip:d,listbox:J,...w,...et}},[rl,ma]=Qe("listbox",{elementType:l_,externalForwardedProps:bn,ownerState:Lr,className:Dr.listbox,additionalProps:Fn,ref:xn}),[nl,Te]=Qe("paper",{elementType:_r,externalForwardedProps:bn,ownerState:Lr,className:Dr.paper}),[Ee,ot]=Qe("popper",{elementType:Sh,externalForwardedProps:bn,ownerState:Lr,className:Dr.popper,additionalProps:{disablePortal:R,style:{width:vr?vr.clientWidth:null},role:"presentation",anchorEl:vr,open:Kr}});let Tt;const Mt=Gt=>({className:Dr.tag,disabled:I,...Xr(Gt)});if(he?nt.length>0&&(fe?Tt=fe(nt,Mt,Lr):we?Tt=we(nt,Mt,Lr):Tt=nt.map((Gt,co)=>{const{key:Qr,...fs}=Mt({index:co});return l.jsx(qt,{label:qo(Gt),size:Re,...fs,...bn.slotProps.chip},Qr)})):we&&nt!=null&&(Tt=we(nt,Mt,Lr)),re>-1&&Array.isArray(Tt)){const Gt=Tt.length-re;!Mn&&Gt>0&&(Tt=Tt.splice(0,re),Tt.push(l.jsx("span",{className:Dr.tag,children:j(Gt)},Tt.length)))}const $t=ze||(Gt=>l.jsxs("li",{children:[l.jsx(c_,{className:Dr.groupLabel,ownerState:Lr,component:"div",children:Gt.group}),l.jsx(u_,{className:Dr.groupUl,ownerState:Lr,children:Gt.children})]},Gt.key)),ga=ht||((Gt,co)=>{const{key:Qr,...fs}=Gt;return l.jsx("li",{...fs,children:qo(co)},Qr)}),jc=(Gt,co)=>{const Qr=vn({option:Gt,index:co});return ga({...Qr,className:Dr.option},Gt,{selected:Qr["aria-selected"],index:co,inputValue:at},Lr)},Vi=bn.slotProps.clearIndicator,ol=bn.slotProps.popupIndicator;return l.jsxs(b.Fragment,{children:[l.jsx(e_,{ref:r,className:Ie(Dr.root,f),ownerState:Lr,...Be(Pe),children:Nt({id:Tr,disabled:I,fullWidth:!0,size:Re==="small"?"small":void 0,InputLabelProps:Et(),InputProps:{ref:Ke,className:Dr.inputRoot,startAdornment:Tt,onMouseDown:Gt=>{Gt.target===Gt.currentTarget&&zr(Gt)},...(Ot||rr)&&{endAdornment:l.jsxs(t_,{className:Dr.endAdornment,ownerState:Lr,children:[Ot?l.jsx(r_,{...yr(),"aria-label":y,title:y,ownerState:Lr,...Vi,className:Ie(Dr.clearIndicator,Vi==null?void 0:Vi.className),children:h}):null,rr?l.jsx(n_,{...Zt(),disabled:I,"aria-label":Kr?x:Xe,title:Kr?x:Xe,ownerState:Lr,...ol,className:Ie(Dr.popupIndicator,ol==null?void 0:ol.className),children:We}):null]})}},inputProps:{className:Dr.input,disabled:I,readOnly:ft,...He()}})}),vr?l.jsx(o_,{as:Ee,...ot,children:l.jsxs(i_,{as:nl,...Te,children:[oe&&_t.length===0?l.jsx(a_,{className:Dr.loading,ownerState:Lr,children:ee}):null,_t.length===0&&!G&&!oe?l.jsx(s_,{className:Dr.noOptions,ownerState:Lr,role:"presentation",onMouseDown:Gt=>{Gt.preventDefault()},children:Ce}):null,_t.length>0?l.jsx(rl,{as:de,...ma,children:_t.map((Gt,co)=>K?$t({key:Gt.key,group:Gt.group,children:Gt.options.map((Qr,fs)=>jc(Qr,Gt.index+fs))}):jc(Gt,co))}):null]})}):null]})}),p_=Se(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function f_(e){return Je("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const h_=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ze({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},f_,t)},m_=xe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),g_=xe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y_=xe(p_,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function v_({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=b.useState(!1);return b.useEffect(()=>{if(!r&&!n)return;a(!1);let c=!0;const u=new Image;return u.onload=()=>{c&&a("loaded")},u.onerror=()=>{c&&a("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=r,n&&(u.srcset=n),()=>{c=!1}},[e,t,r,n]),o}const Vw=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:c,component:u="div",slots:d={},slotProps:f={},imgProps:h,sizes:v,src:m,srcSet:y,variant:x="circular",...w}=n;let C=null;const P={...n,component:u,variant:x},k=v_({...h,...typeof f.img=="function"?f.img(P):f.img,src:m,srcSet:y}),I=m||y,T=I&&k!=="error";P.colorDefault=!T,delete P.ownerState;const M=h_(P),[R,L]=Qe("root",{ref:r,className:Ie(M.root,c),elementType:m_,externalForwardedProps:{slots:d,slotProps:f,component:u,...w},ownerState:P}),[A,H]=Qe("img",{className:M.img,elementType:g_,externalForwardedProps:{slots:d,slotProps:{img:{...h,...f.img}}},additionalProps:{alt:o,src:m,srcSet:y,sizes:v},ownerState:P}),[G,$]=Qe("fallback",{className:M.fallback,elementType:y_,externalForwardedProps:{slots:d,slotProps:f},shouldForwardComponentProp:!0,ownerState:P});return T?C=l.jsx(A,{...H}):a||a===0?C=a:I&&o?C=o[0]:C=l.jsx(G,{...$}),l.jsx(R,{...L,children:C})}),x_={entering:{opacity:1},entered:{opacity:1}},Ay=b.forwardRef(function(t,r){const n=no(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:u,easing:d,in:f,onEnter:h,onEntered:v,onEntering:m,onExit:y,onExited:x,onExiting:w,style:C,timeout:P=o,TransitionComponent:k=ci,...I}=t,T=b.useRef(null),M=$r(T,Xs(u),r),R=V=>O=>{if(V){const U=T.current;O===void 0?V(U):V(U,O)}},L=R(m),A=R((V,O)=>{mE(V);const U=Jl({style:C,timeout:P,easing:d},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",U),V.style.transition=n.transitions.create("opacity",U),h&&h(V,O)}),H=R(v),G=R(w),$=R(V=>{const O=Jl({style:C,timeout:P,easing:d},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",O),V.style.transition=n.transitions.create("opacity",O),y&&y(V)}),j=R(x),q=V=>{a&&a(T.current,V)};return l.jsx(k,{appear:c,in:f,nodeRef:T,onEnter:A,onEntered:H,onEntering:L,onExit:$,onExited:j,onExiting:G,addEndListener:q,timeout:P,...I,children:(V,{ownerState:O,...U})=>b.cloneElement(u,{style:{opacity:0,visibility:V==="exited"&&!f?"hidden":void 0,...x_[V],...C,...u.props.style},ref:M,...U})})});function b_(e){return Je("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const w_=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},b_,t)},S_=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),RE=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:c="div",invisible:u=!1,open:d,components:f={},componentsProps:h={},slotProps:v={},slots:m={},TransitionComponent:y,transitionDuration:x,...w}=n,C={...n,component:c,invisible:u},P=w_(C),k={transition:y,root:f.Root,...m},I={...h,...v},T={component:c,slots:k,slotProps:I},[M,R]=Qe("root",{elementType:S_,externalForwardedProps:T,className:Ie(P.root,a),ownerState:C}),[L,A]=Qe("transition",{elementType:Ay,externalForwardedProps:T,ownerState:C});return l.jsx(L,{in:d,timeout:x,...w,...A,children:l.jsx(M,{"aria-hidden":!0,...R,classes:P,ref:r,children:o})})}),C_=tt("MuiBox",["root"]),E_=vh(),ne=oI({themeId:ni,defaultTheme:E_,defaultClassName:C_.root,generateClassName:HC.generate});function T_(e){return Je("MuiButton",e)}const Ps=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),AE=b.createContext({}),_E=b.createContext(void 0),k_=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,loading:c,loadingPosition:u,classes:d}=e,f={root:["root",c&&"loading",a,`${a}${ve(t)}`,`size${ve(o)}`,`${a}Size${ve(o)}`,`color${ve(t)}`,r&&"disableElevation",n&&"fullWidth",c&&`loadingPosition${ve(u)}`],startIcon:["icon","startIcon",`iconSize${ve(o)}`],endIcon:["icon","endIcon",`iconSize${ve(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Ze(f,T_,d);return{...d,...h}},LE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],j_=xe(ai,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ve(r.color)}`],t[`size${ve(r.size)}`],t[`${r.variant}Size${ve(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ps.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ps.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(or()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ps.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ps.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ps.loading}`]:{color:"transparent"}}}]}})),P_=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ve(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...LE]})),I_=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ve(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...LE]})),M_=xe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Uw=xe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),sn=b.forwardRef(function(t,r){const n=b.useContext(AE),o=b.useContext(_E),a=Yl(n,t),c=rt({props:a,name:"MuiButton"}),{children:u,color:d="primary",component:f="button",className:h,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:x,focusVisibleClassName:w,fullWidth:C=!1,id:P,loading:k=null,loadingIndicator:I,loadingPosition:T="center",size:M="medium",startIcon:R,type:L,variant:A="text",...H}=c,G=Ri(P),$=I??l.jsx(cr,{"aria-labelledby":G,color:"inherit",size:16}),j={...c,color:d,component:f,disabled:v,disableElevation:m,disableFocusRipple:y,fullWidth:C,loading:k,loadingIndicator:$,loadingPosition:T,size:M,type:L,variant:A},q=k_(j),V=(R||k&&T==="start")&&l.jsx(P_,{className:q.startIcon,ownerState:j,children:R||l.jsx(Uw,{className:q.loadingIconPlaceholder,ownerState:j})}),O=(x||k&&T==="end")&&l.jsx(I_,{className:q.endIcon,ownerState:j,children:x||l.jsx(Uw,{className:q.loadingIconPlaceholder,ownerState:j})}),U=o||"",K=typeof k=="boolean"?l.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:k&&l.jsx(M_,{className:q.loadingIndicator,ownerState:j,children:$})}):null;return l.jsxs(j_,{ownerState:j,className:Ie(n.className,q.root,h,U),component:f,disabled:v||k,focusRipple:!y,focusVisibleClassName:Ie(q.focusVisible,w),ref:r,type:L,id:k?G:P,...H,classes:q,children:[V,T!=="end"&&K,u,T==="end"&&K,O]})});function OE(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}function R_(e){return Je("MuiButtonGroup",e)}const Dt=tt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),A_=(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dt.grouped}`]:t.grouped},{[`& .${Dt.grouped}`]:t[`grouped${ve(r.orientation)}`]},{[`& .${Dt.grouped}`]:t[`grouped${ve(r.variant)}`]},{[`& .${Dt.grouped}`]:t[`grouped${ve(r.variant)}${ve(r.orientation)}`]},{[`& .${Dt.grouped}`]:t[`grouped${ve(r.variant)}${ve(r.color)}`]},{[`& .${Dt.firstButton}`]:t.firstButton},{[`& .${Dt.lastButton}`]:t.lastButton},{[`& .${Dt.middleButton}`]:t.middleButton},t.root,t[r.variant],r.disableElevation===!0&&t.disableElevation,r.fullWidth&&t.fullWidth,r.orientation==="vertical"&&t.vertical]},__=e=>{const{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:a,orientation:c,variant:u}=e,d={root:["root",u,c,a&&"fullWidth",o&&"disableElevation",`color${ve(r)}`],grouped:["grouped",`grouped${ve(c)}`,`grouped${ve(u)}`,`grouped${ve(u)}${ve(c)}`,`grouped${ve(u)}${ve(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ze(d,R_,t)},L_=xe("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:A_})(Ge(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Dt.lastButton},& .${Dt.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Dt.lastButton},& .${Dt.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Dt.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Dt.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(or()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Dt.lastButton},& .${Dt.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Dt.lastButton},& .${Dt.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dt.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dt.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(or(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Dt.firstButton},& .${Dt.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Dt.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),O_=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonGroup"}),{children:o,className:a,color:c="primary",component:u="div",disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,disableRipple:v=!1,fullWidth:m=!1,orientation:y="horizontal",size:x="medium",variant:w="outlined",...C}=n,P={...n,color:c,component:u,disabled:d,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:m,orientation:y,size:x,variant:w},k=__(P),I=b.useMemo(()=>({className:k.grouped,color:c,disabled:d,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:m,size:x,variant:w}),[c,d,f,h,v,m,x,w,k.grouped]),T=OE(o),M=T.length,R=L=>{const A=L===0,H=L===M-1;return A&&H?"":A?k.firstButton:H?k.lastButton:k.middleButton};return l.jsx(L_,{as:u,role:"group",className:Ie(k.root,a),ref:r,ownerState:P,...C,children:l.jsx(AE.Provider,{value:I,children:T.map((L,A)=>l.jsx(_E.Provider,{value:R(A),children:L},A))})})});function N_(e){return Je("MuiCard",e)}tt("MuiCard",["root"]);const $_=e=>{const{classes:t}=e;return Ze({root:["root"]},N_,t)},B_=xe(_r,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),yt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...c}=n,u={...n,raised:a},d=$_(u);return l.jsx(B_,{className:Ie(d.root,o),elevation:a?8:void 0,ref:r,ownerState:u,...c})});function z_(e){return Je("MuiCardActionArea",e)}const Hg=tt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),D_=e=>{const{classes:t}=e;return Ze({root:["root"],focusHighlight:["focusHighlight"]},z_,t)},F_=xe(ai,{name:"MuiCardActionArea",slot:"Root"})(Ge(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Hg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Hg.focusVisible} .${Hg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),H_=xe("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Ge(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),V_=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardActionArea"}),{children:o,className:a,focusVisibleClassName:c,slots:u={},slotProps:d={},...f}=n,h=n,v=D_(h),m={slots:u,slotProps:d},[y,x]=Qe("root",{elementType:F_,externalForwardedProps:{...m,...f},shouldForwardComponentProp:!0,ownerState:h,ref:r,className:Ie(v.root,a),additionalProps:{focusVisibleClassName:Ie(c,v.focusVisible)}}),[w,C]=Qe("focusHighlight",{elementType:H_,externalForwardedProps:m,ownerState:h,ref:r,className:v.focusHighlight});return l.jsxs(y,{...x,children:[o,l.jsx(w,{...C})]})});function U_(e){return Je("MuiCardContent",e)}tt("MuiCardContent",["root"]);const W_=e=>{const{classes:t}=e;return Ze({root:["root"]},U_,t)},q_=xe("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),gt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...c}=n,u={...n,component:a},d=W_(u);return l.jsx(q_,{as:a,className:Ie(d.root,o),ownerState:u,ref:r,...c})});function G_(e){return Je("PrivateSwitchBase",e)}tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const X_=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${ve(o)}`],input:["input"]};return Ze(a,G_,t)},K_=xe(ai,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Q_=xe("input",{name:"MuiSwitchBase",shouldForwardProp:zn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),NE=b.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:c,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:h,id:v,inputProps:m,inputRef:y,name:x,onBlur:w,onChange:C,onFocus:P,readOnly:k,required:I=!1,tabIndex:T,type:M,value:R,slots:L={},slotProps:A={},...H}=t,[G,$]=Ua({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),j=pa(),q=oe=>{P&&P(oe),j&&j.onFocus&&j.onFocus(oe)},V=oe=>{w&&w(oe),j&&j.onBlur&&j.onBlur(oe)},O=oe=>{if(oe.nativeEvent.defaultPrevented)return;const ee=oe.target.checked;$(ee),C&&C(oe,ee)};let U=u;j&&typeof U>"u"&&(U=j.disabled);const K=M==="checkbox"||M==="radio",Y={...t,checked:G,disabled:U,disableFocusRipple:d,edge:f},Z=X_(Y),Q={slots:L,slotProps:{input:m,...A}},[X,re]=Qe("root",{ref:r,elementType:K_,className:Z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,component:"span",...H},getSlotProps:oe=>({...oe,onFocus:ee=>{var he;(he=oe.onFocus)==null||he.call(oe,ee),q(ee)},onBlur:ee=>{var he;(he=oe.onBlur)==null||he.call(oe,ee),V(ee)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:U,role:void 0,tabIndex:null}}),[de,J]=Qe("input",{ref:y,elementType:Q_,className:Z.input,externalForwardedProps:Q,getSlotProps:oe=>({...oe,onChange:ee=>{var he;(he=oe.onChange)==null||he.call(oe,ee),O(ee)}}),ownerState:Y,additionalProps:{autoFocus:n,checked:o,defaultChecked:c,disabled:U,id:K?v:void 0,name:x,readOnly:k,required:I,tabIndex:T,type:M,...M==="checkbox"&&R===void 0?{}:{value:R}}});return l.jsxs(X,{...re,children:[l.jsx(de,{...J}),G?a:h]})}),Y_=Se(l.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),J_=Se(l.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Z_=Se(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function eL(e){return Je("MuiCheckbox",e)}const Vg=tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),tL=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${ve(n)}`,`size${ve(o)}`]},c=Ze(a,eL,t);return{...t,...c}},rL=xe(NE,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ve(r.size)}`],r.color!=="default"&&t[`color${ve(r.color)}`]]}})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{[`&.${Vg.checked}, &.${Vg.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Vg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),nL=l.jsx(J_,{}),oL=l.jsx(Y_,{}),iL=l.jsx(Z_,{}),aL=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=nL,color:a="primary",icon:c=oL,indeterminate:u=!1,indeterminateIcon:d=iL,inputProps:f,size:h="medium",disableRipple:v=!1,className:m,slots:y={},slotProps:x={},...w}=n,C=u?d:c,P=u?d:o,k={...n,disableRipple:v,color:a,indeterminate:u,size:h},I=tL(k),T=x.input??f,[M,R]=Qe("root",{ref:r,elementType:rL,className:Ie(I.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:x,...w},ownerState:k,additionalProps:{type:"checkbox",icon:b.cloneElement(C,{fontSize:C.props.fontSize??h}),checkedIcon:b.cloneElement(P,{fontSize:P.props.fontSize??h}),disableRipple:v,slots:y,slotProps:{input:dE(typeof T=="function"?T(k):T,{"data-indeterminate":u})}}});return l.jsx(M,{...R,classes:I})});function Ww(e){return e.substring(2).toLowerCase()}function sL(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lL(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,c=b.useRef(!1),u=b.useRef(null),d=b.useRef(!1),f=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const h=$r(Xs(t),u),v=Zr(x=>{const w=f.current;f.current=!1;const C=gn(u.current);if(!d.current||!u.current||"clientX"in x&&sL(x,C))return;if(c.current){c.current=!1;return}let P;x.composedPath?P=x.composedPath().includes(u.current):P=!C.documentElement.contains(x.target)||u.current.contains(x.target),!P&&(r||!w)&&o(x)}),m=x=>w=>{f.current=!0;const C=t.props[x];C&&C(w)},y={ref:h};return a!==!1&&(y[a]=m(a)),b.useEffect(()=>{if(a!==!1){const x=Ww(a),w=gn(u.current),C=()=>{c.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",C),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",C)}}},[v,a]),n!==!1&&(y[n]=m(n)),b.useEffect(()=>{if(n!==!1){const x=Ww(n),w=gn(u.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),b.cloneElement(t,y)}const $f=KI({createStyledComponent:xe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ve(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})});function $E(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cL(e){const t=gn(e);return t.body===e?ii(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Au(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qw(e){return parseInt(ii(e).getComputedStyle(e).paddingRight,10)||0}function uL(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Gw(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,c=>{const u=!a.includes(c),d=!uL(c);u&&d&&Au(c,o)})}function Ug(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function dL(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(cL(n)){const c=$E(ii(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${qw(n)+c}px`;const u=gn(n).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${qw(d)+c}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=gn(n).body;else{const c=n.parentElement,u=ii(n);a=(c==null?void 0:c.nodeName)==="HTML"&&u.getComputedStyle(c).overflowY==="scroll"?c:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:c,property:u})=>{a?c.style.setProperty(u,a):c.style.removeProperty(u)})}}function pL(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class fL{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Au(t.modalRef,!1);const o=pL(r);Gw(r,t.mount,t.modalRef,o,!0);const a=Ug(this.containers,c=>c.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Ug(this.containers,a=>a.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=dL(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Ug(this.containers,c=>c.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Au(t.modalRef,r),Gw(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=a.modals[a.modals.length-1];c.modalRef&&Au(c.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Dl(e){var r;let t=e.activeElement;for(;((r=t==null?void 0:t.shadowRoot)==null?void 0:r.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const hL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mL(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gL(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function yL(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gL(e))}function vL(e){const t=[],r=[];return Array.from(e.querySelectorAll(hL)).forEach((n,o)=>{const a=mL(n);a===-1||!yL(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function xL(){return!0}function bL(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=vL,isEnabled:c=xL,open:u}=e,d=b.useRef(!1),f=b.useRef(null),h=b.useRef(null),v=b.useRef(null),m=b.useRef(null),y=b.useRef(!1),x=b.useRef(null),w=$r(Xs(t),x),C=b.useRef(null);b.useEffect(()=>{!u||!x.current||(y.current=!r)},[r,u]),b.useEffect(()=>{if(!u||!x.current)return;const I=gn(x.current),T=Dl(I);return x.current.contains(T)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),y.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(d.current=!0,v.current.focus()),v.current=null)}},[u]),b.useEffect(()=>{if(!u||!x.current)return;const I=gn(x.current),T=Dl(I),M=A=>{C.current=A,!(n||!c()||A.key!=="Tab")&&T===x.current&&A.shiftKey&&(d.current=!0,h.current&&h.current.focus())},R=()=>{var $,j;const A=x.current;if(A===null)return;const H=Dl(I);if(!I.hasFocus()||!c()||d.current){d.current=!1;return}if(A.contains(H)||n&&H!==f.current&&H!==h.current)return;if(H!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let G=[];if((H===f.current||H===h.current)&&(G=a(x.current)),G.length>0){const q=!!(($=C.current)!=null&&$.shiftKey&&((j=C.current)==null?void 0:j.key)==="Tab"),V=G[0],O=G[G.length-1];typeof V!="string"&&typeof O!="string"&&(q?O.focus():V.focus())}else A.focus()};I.addEventListener("focusin",R),I.addEventListener("keydown",M,!0);const L=setInterval(()=>{const A=Dl(I);A&&A.tagName==="BODY"&&R()},50);return()=>{clearInterval(L),I.removeEventListener("focusin",R),I.removeEventListener("keydown",M,!0)}},[r,n,o,c,u,a]);const P=I=>{v.current===null&&(v.current=I.relatedTarget),y.current=!0,m.current=I.target;const T=t.props.onFocus;T&&T(I)},k=I=>{v.current===null&&(v.current=I.relatedTarget),y.current=!0};return l.jsxs(b.Fragment,{children:[l.jsx("div",{tabIndex:u?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:w,onFocus:P}),l.jsx("div",{tabIndex:u?0:-1,onFocus:k,ref:h,"data-testid":"sentinelEnd"})]})}function wL(e){return typeof e=="function"?e():e}function SL(e){return e?e.props.hasOwnProperty("in"):!1}const Xw=()=>{},Hp=new fL;function CL(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:c,children:u,onClose:d,open:f,rootRef:h}=e,v=b.useRef({}),m=b.useRef(null),y=b.useRef(null),x=$r(y,h),[w,C]=b.useState(!f),P=SL(u);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const I=()=>gn(m.current),T=()=>(v.current.modalRef=y.current,v.current.mount=m.current,v.current),M=()=>{Hp.mount(T(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},R=Zr(()=>{const O=wL(t)||I().body;Hp.add(T(),O),y.current&&M()}),L=()=>Hp.isTopModal(T()),A=Zr(O=>{m.current=O,O&&(f&&L()?M():y.current&&Au(y.current,k))}),H=b.useCallback(()=>{Hp.remove(T(),k)},[k]);b.useEffect(()=>()=>{H()},[H]),b.useEffect(()=>{f?R():(!P||!o)&&H()},[f,H,P,o,R]);const G=O=>U=>{var K;(K=O.onKeyDown)==null||K.call(O,U),!(U.key!=="Escape"||U.which===229||!L())&&(r||(U.stopPropagation(),d&&d(U,"escapeKeyDown")))},$=O=>U=>{var K;(K=O.onClick)==null||K.call(O,U),U.target===U.currentTarget&&d&&d(U,"backdropClick")};return{getRootProps:(O={})=>{const U=_f(e);delete U.onTransitionEnter,delete U.onTransitionExited;const K={...U,...O};return{role:"presentation",...K,onKeyDown:G(K),ref:x}},getBackdropProps:(O={})=>{const U=O;return{"aria-hidden":!0,...U,onClick:$(U),open:f}},getTransitionProps:()=>{const O=()=>{C(!1),a&&a()},U=()=>{C(!0),c&&c(),o&&H()};return{onEnter:hw(O,(u==null?void 0:u.props.onEnter)??Xw),onExited:hw(U,(u==null?void 0:u.props.onExited)??Xw)}},rootRef:x,portalRef:A,isTopModal:L,exited:w,hasTransition:P}}function EL(e){return Je("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const TL=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},EL,n)},kL=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ge(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),jL=xe(RE,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),BE=b.forwardRef(function(t,r){const n=rt({name:"MuiModal",props:t}),{BackdropComponent:o=jL,BackdropProps:a,classes:c,className:u,closeAfterTransition:d=!1,children:f,container:h,component:v,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:I=!1,hideBackdrop:T=!1,keepMounted:M=!1,onClose:R,onTransitionEnter:L,onTransitionExited:A,open:H,slotProps:G={},slots:$={},theme:j,...q}=n,V={...n,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:k,disableScrollLock:I,hideBackdrop:T,keepMounted:M},{getRootProps:O,getBackdropProps:U,getTransitionProps:K,portalRef:Y,isTopModal:Z,exited:Q,hasTransition:X}=CL({...V,rootRef:r}),re={...V,exited:Q},de=TL(re),J={};if(f.props.tabIndex===void 0&&(J.tabIndex="-1"),X){const{onEnter:ce,onExited:Fe}=K();J.onEnter=ce,J.onExited=Fe}const oe={slots:{root:m.Root,backdrop:m.Backdrop,...$},slotProps:{...y,...G}},[ee,he]=Qe("root",{ref:r,elementType:kL,externalForwardedProps:{...oe,...q,component:v},getSlotProps:O,ownerState:re,className:Ie(u,de==null?void 0:de.root,!re.open&&re.exited&&(de==null?void 0:de.hidden))}),[Ce,ye]=Qe("backdrop",{ref:a==null?void 0:a.ref,elementType:o,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:ce=>U({...ce,onClick:Fe=>{ce!=null&&ce.onClick&&ce.onClick(Fe)}}),className:Ie(a==null?void 0:a.className,de==null?void 0:de.backdrop),ownerState:re});return!M&&!H&&(!X||Q)?null:l.jsx(IE,{ref:Y,container:h,disablePortal:P,children:l.jsxs(ee,{...he,children:[!T&&o?l.jsx(Ce,{...ye}):null,l.jsx(bL,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:Z,open:H,children:b.cloneElement(f,J)})]})})});function PL(e){return Je("MuiDialog",e)}const Wg=tt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zE=b.createContext({}),IL=xe(RE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ML=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,c={root:["root"],container:["container",`scroll${ve(r)}`],paper:["paper",`paperScroll${ve(r)}`,`paperWidth${ve(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Ze(c,PL,t)},RL=xe(BE,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),AL=xe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ve(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),_L=xe(_r,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ve(r.scroll)}`],t[`paperWidth${ve(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Ge(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Jv=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialog"}),o=no(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":u,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:h,children:v,className:m,disableEscapeKeyDown:y=!1,fullScreen:x=!1,fullWidth:w=!1,maxWidth:C="sm",onClick:P,onClose:k,open:I,PaperComponent:T=_r,PaperProps:M={},scroll:R="paper",slots:L={},slotProps:A={},TransitionComponent:H=Ay,transitionDuration:G=a,TransitionProps:$,...j}=n,q={...n,disableEscapeKeyDown:y,fullScreen:x,fullWidth:w,maxWidth:C,scroll:R},V=ML(q),O=b.useRef(),U=Ne=>{O.current=Ne.target===Ne.currentTarget},K=Ne=>{P&&P(Ne),O.current&&(O.current=null,k&&k(Ne,"backdropClick"))},Y=Ri(u),Z=b.useMemo(()=>({titleId:Y}),[Y]),Q={transition:H,...L},X={transition:$,paper:M,backdrop:h,...A},re={slots:Q,slotProps:X},[de,J]=Qe("root",{elementType:RL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Ie(V.root,m),ref:r}),[oe,ee]=Qe("backdrop",{elementType:IL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q}),[he,Ce]=Qe("paper",{elementType:_L,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Ie(V.paper,M.className)}),[ye,ce]=Qe("container",{elementType:AL,externalForwardedProps:re,ownerState:q,className:V.container}),[Fe,Le]=Qe("transition",{elementType:Ay,externalForwardedProps:re,ownerState:q,additionalProps:{appear:!0,in:I,timeout:G,role:"presentation"}});return l.jsx(de,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:G,as:f,...ee}},disableEscapeKeyDown:y,onClose:k,open:I,onClick:K,...J,...j,children:l.jsx(Fe,{...Le,children:l.jsx(ye,{onMouseDown:U,...ce,children:l.jsx(he,{as:T,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":Y,"aria-modal":d,...Ce,children:l.jsx(zE.Provider,{value:Z,children:v})})})})})});function LL(e){return Je("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const OL=e=>{const{classes:t,disableSpacing:r}=e;return Ze({root:["root",!r&&"spacing"]},LL,t)},NL=xe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Zv=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...c}=n,u={...n,disableSpacing:a},d=OL(u);return l.jsx(NL,{className:Ie(d.root,o),ownerState:u,ref:r,...c})});function $L(e){return Je("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function BL(e){return Je("MuiDialogTitle",e)}const zL=tt("MuiDialogTitle",["root"]),DL=e=>{const{classes:t,dividers:r}=e;return Ze({root:["root",r&&"dividers"]},$L,t)},FL=xe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Ge(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${zL.root} + &`]:{paddingTop:0}}}]}))),e0=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...c}=n,u={...n,dividers:a},d=DL(u);return l.jsx(FL,{className:Ie(d.root,o),ownerState:u,ref:r,...c})});function HL(e){return Je("MuiDialogContentText",e)}tt("MuiDialogContentText",["root"]);const VL=e=>{const{classes:t}=e,n=Ze({root:["root"]},HL,t);return{...t,...n}},UL=xe(pe,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),WL=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...c}=n,u=VL(c);return l.jsx(UL,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:c,className:Ie(u.root,a),...n,classes:u})}),qL=e=>{const{classes:t}=e;return Ze({root:["root"]},BL,t)},GL=xe(pe,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),t0=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...c}=n,u=n,d=qL(u),{titleId:f=a}=b.useContext(zE);return l.jsx(GL,{component:"h2",className:Ie(d.root,o),ownerState:u,ref:r,variant:"h6",id:a??f,...c})});function XL(e){return Je("MuiDivider",e)}const Kw=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),KL=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:c,textAlign:u,variant:d}=e;return Ze({root:["root",t&&"absolute",d,a&&"light",c==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&c==="vertical"&&"withChildrenVertical",u==="right"&&c!=="vertical"&&"textAlignRight",u==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},XL,n)},QL=xe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Ge(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),YL=xe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Ge(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),_y=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:c,orientation:u="horizontal",component:d=a||u==="vertical"?"div":"hr",flexItem:f=!1,light:h=!1,role:v=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...x}=n,w={...n,absolute:o,component:d,flexItem:f,light:h,orientation:u,role:v,textAlign:m,variant:y},C=KL(w);return l.jsx(QL,{as:d,className:Ie(C.root,c),role:v,ref:r,ownerState:w,"aria-orientation":v==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...x,children:a?l.jsx(YL,{className:C.wrapper,ownerState:w,children:a}):null})});_y&&(_y.muiSkipListHighlight=!0);const JL=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:c,multiline:u}=e,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${ve(a)}`,c&&"hiddenLabel",u&&"multiline"],input:["input"]},f=Ze(d,Y6,t);return{...t,...f}},ZL=xe(kh,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Eh(e,t),!r.disableUnderline&&t.underline]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(or()).map(([c])=>{var u;return{props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[c])==null?void 0:u.main}`}}}}),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:u})=>c.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),eO=xe(jh,{name:"MuiFilledInput",slot:"Input",overridesResolver:Th})(Ge(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),r0=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:c,fullWidth:u=!1,hiddenLabel:d,inputComponent:f="input",multiline:h=!1,slotProps:v,slots:m={},type:y="text",...x}=n,w={...n,disableUnderline:o,fullWidth:u,inputComponent:f,multiline:h,type:y},C=JL(n),P={root:{ownerState:w},input:{ownerState:w}},k=v??c?ln(P,v??c):P,I=m.root??a.Root??ZL,T=m.input??a.Input??eO;return l.jsx(Ph,{slots:{root:I,input:T},slotProps:k,fullWidth:u,inputComponent:f,multiline:h,ref:r,type:y,...x,classes:C})});r0.muiName="Input";function tO(e){return Je("MuiFormControl",e)}tt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rO=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${ve(r)}`,n&&"fullWidth"]};return Ze(o,tO,t)},nO=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${ve(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_i=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:c="primary",component:u="div",disabled:d=!1,error:f=!1,focused:h,fullWidth:v=!1,hiddenLabel:m=!1,margin:y="none",required:x=!1,size:w="medium",variant:C="outlined",...P}=n,k={...n,color:c,component:u,disabled:d,error:f,fullWidth:v,hiddenLabel:m,margin:y,required:x,size:w,variant:C},I=rO(k),[T,M]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,U=>{if(!yf(U,["Input","Select"]))return;const K=yf(U,["Select"])?U.props.input:U;K&&q6(K.props)&&(O=!0)}),O}),[R,L]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,U=>{yf(U,["Input","Select"])&&(Nf(U.props,!0)||Nf(U.props.inputProps,!0))&&(O=!0)}),O}),[A,H]=b.useState(!1);d&&A&&H(!1);const G=h!==void 0&&!d?h:A;let $;b.useRef(!1);const j=b.useCallback(()=>{L(!0)},[]),q=b.useCallback(()=>{L(!1)},[]),V=b.useMemo(()=>({adornedStart:T,setAdornedStart:M,color:c,disabled:d,error:f,filled:R,focused:G,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:q,onFilled:j,registerEffect:$,required:x,variant:C}),[T,c,d,f,R,G,v,m,$,q,j,x,w,C]);return l.jsx(Ch.Provider,{value:V,children:l.jsx(nO,{as:u,ownerState:k,className:Ie(I.root,a),ref:r,...P,children:o})})});function oO(e){return Je("MuiFormControlLabel",e)}const Tu=tt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),iO=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,c={root:["root",r&&"disabled",`labelPlacement${ve(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ze(c,oO,t)},aO=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Tu.label}`]:t.label},t.root,t[`labelPlacement${ve(r.labelPlacement)}`]]}})(Ge(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tu.disabled}`]:{cursor:"default"},[`& .${Tu.label}`]:{[`&.${Tu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),sO=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ge(({theme:e})=>({[`&.${Tu.error}`]:{color:(e.vars||e).palette.error.main}}))),Ba=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:c={},control:u,disabled:d,disableTypography:f,inputRef:h,label:v,labelPlacement:m="end",name:y,onChange:x,required:w,slots:C={},slotProps:P={},value:k,...I}=n,T=pa(),M=d??u.props.disabled??(T==null?void 0:T.disabled),R=w??u.props.required,L={disabled:M,required:R};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof n[O]<"u"&&(L[O]=n[O])});const A=Ks({props:n,muiFormControl:T,states:["error"]}),H={...n,disabled:M,labelPlacement:m,required:R,error:A.error},G=iO(H),$={slots:C,slotProps:{...c,...P}},[j,q]=Qe("typography",{elementType:pe,externalForwardedProps:$,ownerState:H});let V=v;return V!=null&&V.type!==pe&&!f&&(V=l.jsx(j,{component:"span",...q,className:Ie(G.label,q==null?void 0:q.className),children:V})),l.jsxs(aO,{className:Ie(G.root,a),ownerState:H,ref:r,...I,children:[b.cloneElement(u,L),R?l.jsxs("div",{children:[V,l.jsxs(sO,{ownerState:H,"aria-hidden":!0,className:G.asterisk,children:[" ","*"]})]}):V]})});function lO(e){return Je("MuiFormHelperText",e)}const Qw=tt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Yw;const cO=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:c,focused:u,required:d}=e,f={root:["root",o&&"disabled",a&&"error",n&&`size${ve(n)}`,r&&"contained",u&&"focused",c&&"filled",d&&"required"]};return Ze(f,lO,t)},uO=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ve(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),wc=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:c="p",disabled:u,error:d,filled:f,focused:h,margin:v,required:m,variant:y,...x}=n,w=pa(),C=Ks({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),P={...n,component:c,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete P.ownerState;const k=cO(P);return l.jsx(uO,{as:c,className:Ie(k.root,a),ref:r,...x,ownerState:P,children:o===" "?Yw||(Yw=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function dO(e){return Je("MuiFormLabel",e)}const _u=tt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pO=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:c,required:u}=e,d={root:["root",`color${ve(r)}`,o&&"disabled",a&&"error",c&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(d,dO,t)},fO=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{[`&.${_u.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_u.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_u.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),hO=xe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ge(({theme:e})=>({[`&.${_u.error}`]:{color:(e.vars||e).palette.error.main}}))),mO=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:c,component:u="label",disabled:d,error:f,filled:h,focused:v,required:m,...y}=n,x=pa(),w=Ks({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),C={...n,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},P=pO(C);return l.jsxs(fO,{as:u,ownerState:C,className:Ie(P.root,a),ref:r,...y,children:[o,w.required&&l.jsxs(hO,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]})}),$n=dM({createStyledComponent:xe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>rt({props:e,name:"MuiGrid"}),useTheme:no});function Ly(e){return`scale(${e}, ${e**2})`}const gO={entering:{opacity:1,transform:Ly(1)},entered:{opacity:1,transform:"none"}},qg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yu=b.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:v,onExited:m,onExiting:y,style:x,timeout:w="auto",TransitionComponent:C=ci,...P}=t,k=Da(),I=b.useRef(),T=no(),M=b.useRef(null),R=$r(M,Xs(a),r),L=O=>U=>{if(O){const K=M.current;U===void 0?O(K):O(K,U)}},A=L(h),H=L((O,U)=>{mE(O);const{duration:K,delay:Y,easing:Z}=Jl({style:x,timeout:w,easing:c},{mode:"enter"});let Q;w==="auto"?(Q=T.transitions.getAutoHeightDuration(O.clientHeight),I.current=Q):Q=K,O.style.transition=[T.transitions.create("opacity",{duration:Q,delay:Y}),T.transitions.create("transform",{duration:qg?Q:Q*.666,delay:Y,easing:Z})].join(","),d&&d(O,U)}),G=L(f),$=L(y),j=L(O=>{const{duration:U,delay:K,easing:Y}=Jl({style:x,timeout:w,easing:c},{mode:"exit"});let Z;w==="auto"?(Z=T.transitions.getAutoHeightDuration(O.clientHeight),I.current=Z):Z=U,O.style.transition=[T.transitions.create("opacity",{duration:Z,delay:K}),T.transitions.create("transform",{duration:qg?Z:Z*.666,delay:qg?K:K||Z*.333,easing:Y})].join(","),O.style.opacity=0,O.style.transform=Ly(.75),v&&v(O)}),q=L(m),V=O=>{w==="auto"&&k.start(I.current||0,O),n&&n(M.current,O)};return l.jsx(C,{appear:o,in:u,nodeRef:M,onEnter:H,onEntered:G,onEntering:A,onExit:j,onExited:q,onExiting:$,addEndListener:V,timeout:w==="auto"?null:w,...P,children:(O,{ownerState:U,...K})=>b.cloneElement(a,{style:{opacity:0,transform:Ly(.75),visibility:O==="exited"&&!u?"hidden":void 0,...gO[O],...x,...a.props.style},ref:R,...K})})});Yu&&(Yu.muiSupportAuto=!0);const yO=e=>{const{classes:t,disableUnderline:r}=e,o=Ze({root:["root",!r&&"underline"],input:["input"]},K6,t);return{...t,...o}},vO=xe(kh,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Eh(e,t),!r.disableUnderline&&t.underline]}})(Ge(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$a.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$a.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$a.disabled}, .${$a.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${$a.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(or()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),xO=xe(jh,{name:"MuiInput",slot:"Input",overridesResolver:Th})({}),Ih=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:v={},type:m="text",...y}=n,x=yO(n),C={root:{ownerState:{disableUnderline:o}}},P=h??c?ln(h??c,C):C,k=v.root??a.Root??vO,I=v.input??a.Input??xO;return l.jsx(Ph,{slots:{root:k,input:I},slotProps:P,fullWidth:u,inputComponent:d,multiline:f,ref:r,type:m,...y,classes:x})});Ih.muiName="Input";function bO(e){return Je("MuiInputAdornment",e)}const Jw=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Zw;const wO=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ve(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},SO=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:c}=e,u={root:["root",r&&"disablePointerEvents",o&&`position${ve(o)}`,c,n&&"hiddenLabel",a&&`size${ve(a)}`]};return Ze(u,bO,t)},CO=xe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:wO})(Ge(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Jw.positionStart}&:not(.${Jw.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Bf=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:c="div",disablePointerEvents:u=!1,disableTypography:d=!1,position:f,variant:h,...v}=n,m=pa()||{};let y=h;h&&m.variant,m&&!y&&(y=m.variant);const x={...n,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:y},w=SO(x);return l.jsx(Ch.Provider,{value:null,children:l.jsx(CO,{as:c,ownerState:x,className:Ie(w.root,a),ref:r,...v,children:typeof o=="string"&&!d?l.jsx(pe,{color:"textSecondary",children:o}):l.jsxs(b.Fragment,{children:[f==="start"?Zw||(Zw=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function EO(e){return Je("MuiInputLabel",e)}tt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const TO=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:c,required:u}=e,d={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="medium"&&`size${ve(n)}`,c],asterisk:[u&&"asterisk"]},f=Ze(d,EO,t);return{...t,...f}},kO=xe(mO,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_u.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Ge(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ga=b.forwardRef(function(t,r){const n=rt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:c,variant:u,className:d,...f}=n,h=pa();let v=c;typeof v>"u"&&h&&(v=h.filled||h.focused||h.adornedStart);const m=Ks({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:v,size:m.size,variant:m.variant,required:m.required,focused:m.focused},x=TO(y);return l.jsx(kO,{"data-shrink":v,ref:r,className:Ie(x.root,d),...f,ownerState:y,classes:x})});function jO(e){return Je("MuiLinearProgress",e)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Oy=4,Ny=zi`
|
|
220
|
+
0% {
|
|
221
|
+
left: -35%;
|
|
222
|
+
right: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
60% {
|
|
226
|
+
left: 100%;
|
|
227
|
+
right: -90%;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
left: 100%;
|
|
232
|
+
right: -90%;
|
|
233
|
+
}
|
|
234
|
+
`,PO=typeof Ny!="string"?as`
|
|
235
|
+
animation: ${Ny} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
236
|
+
`:null,$y=zi`
|
|
237
|
+
0% {
|
|
238
|
+
left: -200%;
|
|
239
|
+
right: 100%;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
60% {
|
|
243
|
+
left: 107%;
|
|
244
|
+
right: -8%;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
100% {
|
|
248
|
+
left: 107%;
|
|
249
|
+
right: -8%;
|
|
250
|
+
}
|
|
251
|
+
`,IO=typeof $y!="string"?as`
|
|
252
|
+
animation: ${$y} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
253
|
+
`:null,By=zi`
|
|
254
|
+
0% {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
background-position: 0 -23px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
60% {
|
|
260
|
+
opacity: 0;
|
|
261
|
+
background-position: 0 -23px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
100% {
|
|
265
|
+
opacity: 1;
|
|
266
|
+
background-position: -200px -23px;
|
|
267
|
+
}
|
|
268
|
+
`,MO=typeof By!="string"?as`
|
|
269
|
+
animation: ${By} 3s infinite linear;
|
|
270
|
+
`:null,RO=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${ve(n)}`,r],dashed:["dashed",`dashedColor${ve(n)}`],bar1:["bar","bar1",`barColor${ve(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${ve(n)}`,r==="buffer"&&`color${ve(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ze(o,jO,t)},n0=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),AO=xe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ve(r.color)}`],t[r.variant]]}})(Ge(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{backgroundColor:n0(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),_O=xe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${ve(r.color)}`]]}})(Ge(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(or()).map(([t])=>{const r=n0(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),MO||{animation:`${By} 3s infinite linear`}),LO=xe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${ve(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(Ge(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Oy}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Oy}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:PO||{animation:`${Ny} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),OO=xe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${ve(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(Ge(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:n0(e,t),transition:`transform .${Oy}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:IO||{animation:`${$y} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Sd=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:c,valueBuffer:u,variant:d="indeterminate",...f}=n,h={...n,color:a,variant:d},v=RO(h),m=ss(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&c!==void 0){y["aria-valuenow"]=Math.round(c),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=c-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&u!==void 0){let w=(u||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return l.jsxs(AO,{className:Ie(v.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?l.jsx(_O,{className:v.dashed,ownerState:h}):null,l.jsx(LO,{className:v.bar1,ownerState:h,style:x.bar1}),d==="determinate"?null:l.jsx(OO,{className:v.bar2,ownerState:h,style:x.bar2})]})});function NO(e){return Je("MuiLink",e)}const $O=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),BO=({theme:e,ownerState:t})=>{const r=t.color;if("colorSpace"in e&&e.colorSpace){const a=ki(e,`palette.${r}.main`)||ki(e,`palette.${r}`)||t.color;return e.alpha(a,.4)}const n=ki(e,`palette.${r}.main`,!1)||ki(e,`palette.${r}`,!1)||t.color,o=ki(e,`palette.${r}.mainChannel`)||ki(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Gu(n,.4)},eS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},zO=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${ve(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,NO,t)},DO=xe(pe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ve(r.underline)}`],r.component==="button"&&t.button]}})(Ge(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$O.focusVisible}`]:{outline:"auto"}}}]}))),FO=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLink"}),o=no(),{className:a,color:c="primary",component:u="a",onBlur:d,onFocus:f,TypographyClasses:h,underline:v="always",variant:m="inherit",sx:y,...x}=n,[w,C]=b.useState(!1),P=M=>{Zl(M.target)||C(!1),d&&d(M)},k=M=>{Zl(M.target)&&C(!0),f&&f(M)},I={...n,color:c,component:u,focusVisible:w,underline:v,variant:m},T=zO(I);return l.jsx(DO,{color:c,className:Ie(T.root,a),classes:h,component:u,onBlur:P,onFocus:k,ref:r,ownerState:I,variant:m,...x,sx:[...eS[c]===void 0?[{color:c}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...v==="always"&&c!=="inherit"&&!eS[c]&&{"--Link-underlineColor":BO({theme:o,ownerState:I})}}})}),Ju=b.createContext({});function HO(e){return Je("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const VO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ze({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},HO,t)},UO=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),WO=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiList"}),{children:o,className:a,component:c="ul",dense:u=!1,disablePadding:d=!1,subheader:f,...h}=n,v=b.useMemo(()=>({dense:u}),[u]),m={...n,component:c,dense:u,disablePadding:d},y=VO(m);return l.jsx(Ju.Provider,{value:v,children:l.jsxs(UO,{as:c,className:Ie(y.root,a),ref:r,ownerState:m,...h,children:[f,o]})})});function qO(e){return Je("MuiListItemIcon",e)}const tS=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),GO=e=>{const{alignItems:t,classes:r}=e;return Ze({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},qO,r)},XO=xe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ge(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),xf=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=n,c=b.useContext(Ju),u={...n,alignItems:c.alignItems},d=GO(u);return l.jsx(XO,{className:Ie(d.root,o),ownerState:u,ref:r,...a})});function KO(e){return Je("MuiListItemText",e)}const Fl=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),QO=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Ze({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},KO,t)},YO=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Fl.primary}`]:t.primary},{[`& .${Fl.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${ww.root}:where(& .${Fl.primary})`]:{display:"block"},[`.${ww.root}:where(& .${Fl.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),bf=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:c=!1,inset:u=!1,primary:d,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:v,slots:m={},slotProps:y={},...x}=n,{dense:w}=b.useContext(Ju);let C=d??o,P=h;const k={...n,disableTypography:c,inset:u,primary:!!C,secondary:!!P,dense:w},I=QO(k),T={slots:m,slotProps:{primary:f,secondary:v,...y}},[M,R]=Qe("root",{className:Ie(I.root,a),elementType:YO,externalForwardedProps:{...T,...x},ownerState:k,ref:r}),[L,A]=Qe("primary",{className:I.primary,elementType:pe,externalForwardedProps:T,ownerState:k}),[H,G]=Qe("secondary",{className:I.secondary,elementType:pe,externalForwardedProps:T,ownerState:k});return C!=null&&C.type!==pe&&!c&&(C=l.jsx(L,{variant:w?"body2":"body1",component:A!=null&&A.variant?void 0:"span",...A,children:C})),P!=null&&P.type!==pe&&!c&&(P=l.jsx(H,{variant:"body2",color:"textSecondary",...G,children:P})),l.jsxs(M,{...R,children:[C,P]})});function Gg(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function rS(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function DE(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function du(e,t,r,n,o,a){let c=!1,u=o(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(c)return!1;c=!0}const d=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!DE(u,a)||d)u=o(e,u,r);else return u.focus(),!0}return!1}const JO=b.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:c,className:u,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:h,variant:v="selectedMenu",...m}=t,y=b.useRef(null),x=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zn(()=>{o&&y.current.focus()},[o]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(I,{direction:T})=>{const M=!y.current.style.width;if(I.clientHeight<y.current.clientHeight&&M){const R=`${$E(ii(I))}px`;y.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=R,y.current.style.width=`calc(100% + ${R})`}return y.current}}),[]);const w=I=>{const T=y.current,M=I.key;if(I.ctrlKey||I.metaKey||I.altKey){h&&h(I);return}const L=Dl(gn(T));if(M==="ArrowDown")I.preventDefault(),du(T,L,f,d,Gg);else if(M==="ArrowUp")I.preventDefault(),du(T,L,f,d,rS);else if(M==="Home")I.preventDefault(),du(T,null,f,d,Gg);else if(M==="End")I.preventDefault(),du(T,null,f,d,rS);else if(M.length===1){const A=x.current,H=M.toLowerCase(),G=performance.now();A.keys.length>0&&(G-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&H!==A.keys[0]&&(A.repeating=!1)),A.lastTime=G,A.keys.push(H);const $=L&&!A.repeating&&DE(L,A);A.previousKeyMatched&&($||du(T,L,!1,d,Gg,A))?I.preventDefault():A.previousKeyMatched=!1}h&&h(I)},C=$r(y,r);let P=-1;b.Children.forEach(c,(I,T)=>{if(!b.isValidElement(I)){P===T&&(P+=1,P>=c.length&&(P=-1));return}I.props.disabled||(v==="selectedMenu"&&I.props.selected||P===-1)&&(P=T),P===T&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(P+=1,P>=c.length&&(P=-1))});const k=b.Children.map(c,(I,T)=>{if(T===P){const M={};return a&&(M.autoFocus=!0),I.props.tabIndex===void 0&&v==="selectedMenu"&&(M.tabIndex=0),b.cloneElement(I,M)}return I});return l.jsx(WO,{role:"menu",ref:C,className:u,onKeyDown:w,tabIndex:o?0:-1,...m,children:k})});function ZO(e){return Je("MuiPopover",e)}tt("MuiPopover",["root","paper"]);function nS(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function oS(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function iS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vp(e){return typeof e=="function"?e():e}const eN=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},ZO,t)},tN=xe(BE,{name:"MuiPopover",slot:"Root"})({}),FE=xe(_r,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rN=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:v,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:C={},slotProps:P={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:I,transitionDuration:T="auto",TransitionProps:M={},disableScrollLock:R=!1,...L}=n,A=b.useRef(),H={...n,anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:k,TransitionComponent:I,transitionDuration:T,TransitionProps:M},G=eN(H),$=b.useCallback(()=>{if(d==="anchorPosition")return u;const ce=Vp(a),Le=(ce&&ce.nodeType===1?ce:gn(A.current).body).getBoundingClientRect();return{top:Le.top+nS(Le,c.vertical),left:Le.left+oS(Le,c.horizontal)}},[a,c.horizontal,c.vertical,u,d]),j=b.useCallback(ce=>({vertical:nS(ce,k.vertical),horizontal:oS(ce,k.horizontal)}),[k.horizontal,k.vertical]),q=b.useCallback(ce=>{const Fe={width:ce.offsetWidth,height:ce.offsetHeight},Le=j(Fe);if(d==="none")return{top:null,left:null,transformOrigin:iS(Le)};const Ne=$();let $e=Ne.top-Le.vertical,Me=Ne.left-Le.horizontal;const Xe=$e+Fe.height,dt=Me+Fe.width,le=ii(Vp(a)),Ye=le.innerHeight-y,We=le.innerWidth-y;if(y!==null&&$e<y){const ft=$e-y;$e-=ft,Le.vertical+=ft}else if(y!==null&&Xe>Ye){const ft=Xe-Ye;$e-=ft,Le.vertical+=ft}if(y!==null&&Me<y){const ft=Me-y;Me-=ft,Le.horizontal+=ft}else if(dt>We){const ft=dt-We;Me-=ft,Le.horizontal+=ft}return{top:`${Math.round($e)}px`,left:`${Math.round(Me)}px`,transformOrigin:iS(Le)}},[a,d,$,j,y]),[V,O]=b.useState(x),U=b.useCallback(()=>{const ce=A.current;if(!ce)return;const Fe=q(ce);Fe.top!==null&&ce.style.setProperty("top",Fe.top),Fe.left!==null&&(ce.style.left=Fe.left),ce.style.transformOrigin=Fe.transformOrigin,O(!0)},[q]);b.useEffect(()=>(R&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[a,R,U]);const K=()=>{U()},Y=()=>{O(!1)};b.useEffect(()=>{x&&U()}),b.useImperativeHandle(o,()=>x?{updatePosition:()=>{U()}}:null,[x,U]),b.useEffect(()=>{if(!x)return;const ce=xh(()=>{U()}),Fe=ii(Vp(a));return Fe.addEventListener("resize",ce),()=>{ce.clear(),Fe.removeEventListener("resize",ce)}},[a,x,U]);let Z=T;const Q={slots:{transition:I,...C},slotProps:{transition:M,paper:w,...P}},[X,re]=Qe("transition",{elementType:Yu,externalForwardedProps:Q,ownerState:H,getSlotProps:ce=>({...ce,onEntering:(Fe,Le)=>{var Ne;(Ne=ce.onEntering)==null||Ne.call(ce,Fe,Le),K()},onExited:Fe=>{var Le;(Le=ce.onExited)==null||Le.call(ce,Fe),Y()}}),additionalProps:{appear:!0,in:x}});T==="auto"&&!X.muiSupportAuto&&(Z=void 0);const de=v||(a?gn(Vp(a)).body:void 0),[J,{slots:oe,slotProps:ee,...he}]=Qe("root",{ref:r,elementType:tN,externalForwardedProps:{...Q,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:dE(typeof P.backdrop=="function"?P.backdrop(H):P.backdrop,{invisible:!0})},container:de,open:x},ownerState:H,className:Ie(G.root,h)}),[Ce,ye]=Qe("paper",{ref:A,className:G.paper,elementType:FE,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:V?void 0:{opacity:0}},ownerState:H});return l.jsx(J,{...he,...!Af(J)&&{slots:oe,slotProps:ee,disableScrollLock:R},children:l.jsx(X,{...re,timeout:Z,children:l.jsx(Ce,{...ye,children:f})})})});function nN(e){return Je("MuiMenu",e)}tt("MuiMenu",["root","paper","list"]);const oN={vertical:"top",horizontal:"right"},iN={vertical:"top",horizontal:"left"},aN=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},nN,t)},sN=xe(rN,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),lN=xe(FE,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cN=xe(JO,{name:"MuiMenu",slot:"List"})({outline:0}),Mh=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:v={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:C="selectedMenu",slots:P={},slotProps:k={},...I}=n,T=ss(),M={...n,autoFocus:o,disableAutoFocusItem:u,MenuListProps:d,onEntering:x,PaperProps:v,transitionDuration:y,TransitionProps:w,variant:C},R=aN(M),L=o&&!u&&h,A=b.useRef(null),H=(Z,Q)=>{A.current&&A.current.adjustStyleForScrollbar(Z,{direction:T?"rtl":"ltr"}),x&&x(Z,Q)},G=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let $=-1;b.Children.map(a,(Z,Q)=>{b.isValidElement(Z)&&(Z.props.disabled||(C==="selectedMenu"&&Z.props.selected||$===-1)&&($=Q))});const j={slots:P,slotProps:{list:d,transition:w,paper:v,...k}},q=oc({elementType:P.root,externalSlotProps:k.root,ownerState:M,className:[R.root,c]}),[V,O]=Qe("paper",{className:R.paper,elementType:lN,externalForwardedProps:j,shouldForwardComponentProp:!0,ownerState:M}),[U,K]=Qe("list",{className:Ie(R.list,d.className),elementType:cN,shouldForwardComponentProp:!0,externalForwardedProps:j,getSlotProps:Z=>({...Z,onKeyDown:Q=>{var X;G(Q),(X=Z.onKeyDown)==null||X.call(Z,Q)}}),ownerState:M}),Y=typeof j.slotProps.transition=="function"?j.slotProps.transition(M):j.slotProps.transition;return l.jsx(sN,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?oN:iN,slots:{root:P.root,paper:V,backdrop:P.backdrop,...P.transition&&{transition:P.transition}},slotProps:{root:q,paper:O,backdrop:typeof k.backdrop=="function"?k.backdrop(M):k.backdrop,transition:{...Y,onEntering:(...Z)=>{var Q;H(...Z),(Q=Y==null?void 0:Y.onEntering)==null||Q.call(Y,...Z)}}},open:h,ref:r,transitionDuration:y,ownerState:M,...I,classes:m,children:l.jsx(U,{actions:A,autoFocus:o&&($===-1||u),autoFocusItem:L,variant:C,...K,children:a})})});function uN(e){return Je("MuiMenuItem",e)}const pu=tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),dN=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},pN=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:c}=e,d=Ze({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},uN,c);return{...c,...d}},fN=xe(ai,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dN})(Ge(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pu.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${pu.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${pu.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${pu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Kw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Kw.inset}`]:{marginLeft:52},[`& .${Fl.root}`]:{marginTop:0,marginBottom:0},[`& .${Fl.inset}`]:{paddingLeft:36},[`& .${tS.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${tS.root} svg`]:{fontSize:"1.25rem"}}}]}))),Sr=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:c=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:v,className:m,...y}=n,x=b.useContext(Ju),w=b.useMemo(()=>({dense:c||x.dense||!1,disableGutters:d}),[x.dense,c,d]),C=b.useRef(null);Zn(()=>{o&&C.current&&C.current.focus()},[o]);const P={...n,dense:w.dense,divider:u,disableGutters:d},k=pN(n),I=$r(C,r);let T;return n.disabled||(T=v!==void 0?v:-1),l.jsx(Ju.Provider,{value:w,children:l.jsx(fN,{ref:I,role:h,tabIndex:T,component:a,focusVisibleClassName:Ie(k.focusVisible,f),className:Ie(k.root,m),...y,ownerState:P,classes:k})})});function hN(e){return Je("MuiNativeSelect",e)}const o0=tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mN=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:c}=e,u={select:["select",r,n&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${ve(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(u,hN,t)},HE=xe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${o0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),gN=xe(HE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:zn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${o0.multiple}`]:t.multiple}]}})({}),VE=xe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${o0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),yN=xe(VE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ve(r.variant)}`],r.open&&t.iconOpen]}})({}),vN=b.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:c,inputRef:u,variant:d="standard",...f}=t,h={...t,disabled:o,variant:d,error:a},v=mN(h);return l.jsxs(b.Fragment,{children:[l.jsx(gN,{ownerState:h,className:Ie(v.select,n),disabled:o,ref:u||r,...f}),t.multiple?null:l.jsx(yN,{as:c,ownerState:h,className:v.icon})]})});var aS;const xN=xe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:zn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),bN=xe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:zn})(Ge(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function wN(e){const{children:t,classes:r,className:n,label:o,notched:a,...c}=e,u=o!=null&&o!=="",d={...e,notched:a,withLabel:u};return l.jsx(xN,{"aria-hidden":!0,className:n,ownerState:d,...c,children:l.jsx(bN,{ownerState:d,children:u?l.jsx("span",{children:o}):aS||(aS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const SN=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Q6,t);return{...t,...n}},CN=xe(kh,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Eh})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ao.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ao.focused} .${Ao.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(or()).map(([r])=>({props:{color:r},style:{[`&.${Ao.focused} .${Ao.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ao.error} .${Ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ao.disabled} .${Ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),EN=xe(wN,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),TN=xe(jh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Th})(Ge(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),i0=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:c="input",label:u,multiline:d=!1,notched:f,slots:h={},slotProps:v={},type:m="text",...y}=n,x=SN(n),w=pa(),C=Ks({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P={...n,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:d,size:C.size,type:m},k=h.root??o.Root??CN,I=h.input??o.Input??TN,[T,M]=Qe("notchedOutline",{elementType:EN,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:P,externalForwardedProps:{slots:h,slotProps:v},additionalProps:{label:u!=null&&u!==""&&C.required?l.jsxs(b.Fragment,{children:[u," ","*"]}):u}});return l.jsx(Ph,{slots:{root:k,input:I},slotProps:v,renderSuffix:R=>l.jsx(T,{...M,notched:typeof f<"u"?f:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:a,inputComponent:c,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});i0.muiName="Input";function kN(e){return Je("MuiPagination",e)}tt("MuiPagination",["root","ul","outlined","text"]);function jN(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:c=!1,hidePrevButton:u=!1,onChange:d,page:f,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:m=1,...y}=e,[x,w]=Ua({controlled:f,default:o,name:r,state:"page"}),C=(H,G)=>{f||w(G),d&&d(H,G)},P=(H,G)=>{const $=G-H+1;return Array.from({length:$},(j,q)=>H+q)},k=P(1,Math.min(t,n)),I=P(Math.max(n-t+1,t+1),n),T=Math.max(Math.min(x-m,n-t-m*2-1),t+2),M=Math.min(Math.max(x+m,t+m*2+2),n-t-1),R=[...h?["first"]:[],...u?[]:["previous"],...k,...T>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...P(T,M),...M<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...I,...c?[]:["next"],...v?["last"]:[]],L=H=>{switch(H){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}};return{items:R.map(H=>typeof H=="number"?{onClick:G=>{C(G,H)},type:"page",page:H,selected:H===x,disabled:a,"aria-current":H===x?"page":void 0}:{onClick:G=>{C(G,L(H))},type:H,page:L(H),selected:!1,disabled:a||!H.includes("ellipsis")&&(H==="next"||H==="last"?x>=n:x<=1)}),...y}}function PN(e){return Je("MuiPaginationItem",e)}const _n=tt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),UE=Se(l.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),WE=Se(l.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),IN=Se(l.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),MN=Se(l.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),qE=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ve(r.size)}`],r.variant==="text"&&t[`text${ve(r.color)}`],r.variant==="outlined"&&t[`outlined${ve(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},RN=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:c,type:u,variant:d}=e,f={root:["root",`size${ve(a)}`,d,c,r!=="standard"&&`color${ve(r)}`,r!=="standard"&&`${d}${ve(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return Ze(f,PN,t)},AN=xe("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:qE})(Ge(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${_n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),_N=xe(ai,{name:"MuiPaginationItem",slot:"Root",overridesResolver:qE})(Ge(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_n.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${_n.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${_n.selected}`]:{[`&.${_n.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${_n.selected}`]:{[`&.${_n.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(or(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${_n.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${_n.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${_n.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(or(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${_n.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),LN=xe("div",{name:"MuiPaginationItem",slot:"Icon"})(Ge(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),ON=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:c,components:u={},disabled:d=!1,page:f,selected:h=!1,shape:v="circular",size:m="medium",slots:y={},slotProps:x={},type:w="page",variant:C="text",...P}=n,k={...n,color:a,disabled:d,selected:h,shape:v,size:m,type:w,variant:C},I=ss(),T=RN(k),M={slots:{previous:y.previous??u.previous,next:y.next??u.next,first:y.first??u.first,last:y.last??u.last},slotProps:x},[R,L]=Qe("previous",{elementType:IN,externalForwardedProps:M,ownerState:k}),[A,H]=Qe("next",{elementType:MN,externalForwardedProps:M,ownerState:k}),[G,$]=Qe("first",{elementType:UE,externalForwardedProps:M,ownerState:k}),[j,q]=Qe("last",{elementType:WE,externalForwardedProps:M,ownerState:k}),V=I?{previous:"next",next:"previous",first:"last",last:"first"}[w]:w,O={previous:R,next:A,first:G,last:j}[V],U={previous:L,next:H,first:$,last:q}[V];return w==="start-ellipsis"||w==="end-ellipsis"?l.jsx(AN,{ref:r,ownerState:k,className:Ie(T.root,o),children:"…"}):l.jsxs(_N,{ref:r,ownerState:k,component:c,disabled:d,className:Ie(T.root,o),...P,children:[w==="page"&&f,O?l.jsx(LN,{...U,className:T.icon,as:O}):null]})}),NN=e=>{const{classes:t,variant:r}=e;return Ze({root:["root",r],ul:["ul"]},kN,t)},$N=xe("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),BN=xe("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function zN(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const DN=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:c="standard",count:u=1,defaultPage:d=1,disabled:f=!1,getItemAriaLabel:h=zN,hideNextButton:v=!1,hidePrevButton:m=!1,onChange:y,page:x,renderItem:w=G=>l.jsx(ON,{...G}),shape:C="circular",showFirstButton:P=!1,showLastButton:k=!1,siblingCount:I=1,size:T="medium",variant:M="text",...R}=n,{items:L}=jN({...n,componentName:"Pagination"}),A={...n,boundaryCount:o,color:c,count:u,defaultPage:d,disabled:f,getItemAriaLabel:h,hideNextButton:v,hidePrevButton:m,renderItem:w,shape:C,showFirstButton:P,showLastButton:k,siblingCount:I,size:T,variant:M},H=NN(A);return l.jsx($N,{"aria-label":"pagination navigation",className:Ie(H.root,a),ownerState:A,ref:r,...R,children:l.jsx(BN,{className:H.ul,ownerState:A,children:L.map((G,$)=>l.jsx("li",{children:w({...G,color:c,"aria-label":h(G.type,G.page,G.selected),shape:C,size:T,variant:M})},$))})})});function GE(e){return Je("MuiSelect",e)}const fu=tt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sS;const FN=xe(HE,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fu.select}`]:t.select},{[`&.${fu.select}`]:t[r.variant]},{[`&.${fu.error}`]:t.error},{[`&.${fu.multiple}`]:t.multiple}]}})({[`&.${fu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),HN=xe(VE,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ve(r.variant)}`],r.open&&t.iconOpen]}})({}),VN=xe("input",{shouldForwardProp:e=>uE(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function UN(e){return e==null||typeof e=="string"&&!e.trim()}const WN=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:c}=e,u={select:["select",r,n&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${ve(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(u,GE,t)},qN=b.forwardRef(function(t,r){var yr,Xr,pn,vn;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:c,children:u,className:d,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:C,MenuProps:P={},multiple:k,name:I,onBlur:T,onChange:M,onClose:R,onFocus:L,onKeyDown:A,onMouseDown:H,onOpen:G,open:$,readOnly:j,renderValue:q,required:V,SelectDisplayProps:O={},tabIndex:U,type:K,value:Y,variant:Z="standard",...Q}=t,[X,re]=Ua({controlled:Y,default:h,name:"Select"}),[de,J]=Ua({controlled:$,default:f,name:"Select"}),oe=b.useRef(null),ee=b.useRef(null),[he,Ce]=b.useState(null),{current:ye}=b.useRef($!=null),[ce,Fe]=b.useState(),Le=$r(r,w),Ne=b.useCallback(nt=>{ee.current=nt,nt&&Ce(nt)},[]),$e=he==null?void 0:he.parentNode;b.useImperativeHandle(Le,()=>({focus:()=>{ee.current.focus()},node:oe.current,value:X}),[X]),b.useEffect(()=>{f&&de&&he&&!ye&&(Fe(c?null:$e.clientWidth),ee.current.focus())},[he,c]),b.useEffect(()=>{a&&ee.current.focus()},[a]),b.useEffect(()=>{if(!C)return;const nt=gn(ee.current).getElementById(C);if(nt){const kt=()=>{getSelection().isCollapsed&&ee.current.focus()};return nt.addEventListener("click",kt),()=>{nt.removeEventListener("click",kt)}}},[C]);const Me=(nt,kt)=>{nt?G&&G(kt):R&&R(kt),ye||(Fe(c?null:$e.clientWidth),J(nt))},Xe=nt=>{H==null||H(nt),nt.button===0&&(nt.preventDefault(),ee.current.focus(),Me(!0,nt))},dt=nt=>{Me(!1,nt)},le=b.Children.toArray(u),Ye=nt=>{const kt=le.find(Yt=>Yt.props.value===nt.target.value);kt!==void 0&&(re(kt.props.value),M&&M(nt,kt))},We=nt=>kt=>{let Yt;if(kt.currentTarget.hasAttribute("tabindex")){if(k){Yt=Array.isArray(X)?X.slice():[];const Tr=X.indexOf(nt.props.value);Tr===-1?Yt.push(nt.props.value):Yt.splice(Tr,1)}else Yt=nt.props.value;if(nt.props.onClick&&nt.props.onClick(kt),X!==Yt&&(re(Yt),M)){const Tr=kt.nativeEvent||kt,Kr=new Tr.constructor(Tr.type,Tr);Object.defineProperty(Kr,"target",{writable:!0,value:{value:Yt,name:I}}),M(Kr,nt)}k||Me(!1,kt)}},ft=nt=>{j||([" ","ArrowUp","ArrowDown","Enter"].includes(nt.key)&&(nt.preventDefault(),Me(!0,nt)),A==null||A(nt))},ze=he!==null&&de,Nt=nt=>{!ze&&T&&(Object.defineProperty(nt,"target",{writable:!0,value:{value:X,name:I}}),T(nt))};delete Q["aria-invalid"];let ht,fe;const we=[];let je=!1;(Nf({value:X})||m)&&(q?ht=q(X):je=!0);const Re=le.map(nt=>{if(!b.isValidElement(nt))return null;let kt;if(k){if(!Array.isArray(X))throw new Error(oa(2));kt=X.some(Yt=>lS(Yt,nt.props.value)),kt&&je&&we.push(nt.props.children)}else kt=lS(X,nt.props.value),kt&&je&&(fe=nt.props.children);return b.cloneElement(nt,{"aria-selected":kt?"true":"false",onClick:We(nt),onKeyUp:Yt=>{Yt.key===" "&&Yt.preventDefault(),nt.props.onKeyUp&&nt.props.onKeyUp(Yt)},role:"option",selected:kt,value:void 0,"data-value":nt.props.value})});je&&(k?we.length===0?ht=null:ht=we.reduce((nt,kt,Yt)=>(nt.push(kt),Yt<we.length-1&&nt.push(", "),nt),[]):ht=fe);let qe=ce;!c&&ye&&he&&(qe=$e.clientWidth);let et;typeof U<"u"?et=U:et=v?null:0;const ie=O.id||(I?`mui-component-select-${I}`:void 0),Pe={...t,variant:Z,value:X,open:ze,error:y},Be=WN(Pe),He={...P.PaperProps,...typeof((yr=P.slotProps)==null?void 0:yr.paper)=="function"?P.slotProps.paper(Pe):(Xr=P.slotProps)==null?void 0:Xr.paper},Et={...P.MenuListProps,...typeof((pn=P.slotProps)==null?void 0:pn.list)=="function"?P.slotProps.list(Pe):(vn=P.slotProps)==null?void 0:vn.list},Zt=Ri();return l.jsxs(b.Fragment,{children:[l.jsx(FN,{as:"div",ref:Ne,tabIndex:et,role:"combobox","aria-controls":ze?Zt:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[C,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":V?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ft,onMouseDown:v||j?null:Xe,onBlur:Nt,onFocus:L,...O,ownerState:Pe,className:Ie(O.className,Be.select,d),id:ie,children:UN(ht)?sS||(sS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ht}),l.jsx(VN,{"aria-invalid":y,value:Array.isArray(X)?X.join(","):X,name:I,ref:oe,"aria-hidden":!0,onChange:Ye,tabIndex:-1,disabled:v,className:Be.nativeInput,autoFocus:a,required:V,...Q,ownerState:Pe}),l.jsx(HN,{as:x,className:Be.icon,ownerState:Pe}),l.jsx(Mh,{id:`menu-${I||""}`,anchorEl:$e,open:ze,onClose:dt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...P,slotProps:{...P.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Zt,...Et},paper:{...He,style:{minWidth:qe,...He!=null?He.style:null}}},children:Re})]})}),GN=e=>{const{classes:t}=e,n=Ze({root:["root"]},GE,t);return{...t,...n}},a0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>zn(e)&&e!=="variant"},XN=xe(Ih,a0)(""),KN=xe(i0,a0)(""),QN=xe(r0,a0)(""),aa=b.forwardRef(function(t,r){const n=rt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:c={},className:u,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:h=ME,id:v,input:m,inputProps:y,label:x,labelId:w,MenuProps:C,multiple:P=!1,native:k=!1,onClose:I,onOpen:T,open:M,renderValue:R,SelectDisplayProps:L,variant:A="outlined",...H}=n,G=k?vN:qN,$=pa(),j=Ks({props:n,muiFormControl:$,states:["variant","error"]}),q=j.variant||A,V={...n,variant:q,classes:c},O=GN(V),{root:U,...K}=O,Y=m||{standard:l.jsx(XN,{ownerState:V}),outlined:l.jsx(KN,{label:x,ownerState:V}),filled:l.jsx(QN,{ownerState:V})}[q],Z=$r(r,Xs(Y));return l.jsx(b.Fragment,{children:b.cloneElement(Y,{inputComponent:G,inputProps:{children:a,error:j.error,IconComponent:h,variant:q,type:void 0,multiple:P,...k?{id:v}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:C,onClose:I,onOpen:T,open:M,renderValue:R,SelectDisplayProps:{id:v,...L}},...y,classes:y?ln(K,y.classes):K,...m?m.props.inputProps:{}},...(P&&k||f)&&q==="outlined"?{notched:!0}:{},ref:Z,className:Ie(Y.props.className,u,O.root),...!m&&{variant:q},...H})})});aa.muiName="Select";function YN(e){return Je("MuiSkeleton",e)}tt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const JN=e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:a,height:c}=e;return Ze({root:["root",r,n,o&&"withChildren",o&&!a&&"fitContent",o&&!c&&"heightAuto"]},YN,t)},zy=zi`
|
|
271
|
+
0% {
|
|
272
|
+
opacity: 1;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
50% {
|
|
276
|
+
opacity: 0.4;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
100% {
|
|
280
|
+
opacity: 1;
|
|
281
|
+
}
|
|
282
|
+
`,Dy=zi`
|
|
283
|
+
0% {
|
|
284
|
+
transform: translateX(-100%);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
50% {
|
|
288
|
+
/* +0.5s of delay between each loop */
|
|
289
|
+
transform: translateX(100%);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
100% {
|
|
293
|
+
transform: translateX(100%);
|
|
294
|
+
}
|
|
295
|
+
`,ZN=typeof zy!="string"?as`
|
|
296
|
+
animation: ${zy} 2s ease-in-out 0.5s infinite;
|
|
297
|
+
`:null,e$=typeof Dy!="string"?as`
|
|
298
|
+
&::after {
|
|
299
|
+
animation: ${Dy} 2s linear 0.5s infinite;
|
|
300
|
+
}
|
|
301
|
+
`:null,t$=xe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.animation!==!1&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(Ge(({theme:e})=>{const t=KM(e.shape.borderRadius)||"px",r=QM(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:ZN||{animation:`${zy} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
302
|
+
90deg,
|
|
303
|
+
transparent,
|
|
304
|
+
${(e.vars||e).palette.action.hover},
|
|
305
|
+
transparent
|
|
306
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:e$||{"&::after":{animation:`${Dy} 2s linear 0.5s infinite`}}}]}})),r$=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:a,component:c="span",height:u,style:d,variant:f="text",width:h,...v}=n,m={...n,animation:o,component:c,variant:f,hasChildren:!!v.children},y=JN(m);return l.jsx(t$,{as:c,ref:r,className:Ie(y.root,a),ownerState:m,...v,style:{width:h,height:u,...d}})});function n$(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,c=Da();b.useEffect(()=>{if(!o)return;function P(k){k.defaultPrevented||k.key==="Escape"&&(n==null||n(k,"escapeKeyDown"))}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[o,n]);const u=Zr((P,k)=>{n==null||n(P,k)}),d=Zr(P=>{!n||P==null||c.start(P,()=>{u(null,"timeout")})});b.useEffect(()=>(o&&d(t),c.clear),[o,t,d,c]);const f=P=>{n==null||n(P,"clickaway")},h=c.clear,v=b.useCallback(()=>{t!=null&&d(a??t*.5)},[t,a,d]),m=P=>k=>{const I=P.onBlur;I==null||I(k),v()},y=P=>k=>{const I=P.onFocus;I==null||I(k),h()},x=P=>k=>{const I=P.onMouseEnter;I==null||I(k),h()},w=P=>k=>{const I=P.onMouseLeave;I==null||I(k),v()};return b.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}},[r,o,v,h]),{getRootProps:(P={})=>{const k={..._f(e),..._f(P)};return{role:"presentation",...P,...k,onBlur:m(k),onFocus:y(k),onMouseEnter:x(k),onMouseLeave:w(k)}},onClickAway:f}}function o$(e){return Je("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const i$=e=>{const{classes:t}=e;return Ze({root:["root"],action:["action"],message:["message"]},o$,t)},a$=xe(_r,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(yy(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:yy(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),s$=xe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),l$=xe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),c$=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:c,role:u="alert",...d}=n,f=n,h=i$(f);return l.jsxs(a$,{role:u,elevation:6,className:Ie(h.root,a),ownerState:f,ref:r,...d,children:[l.jsx(s$,{className:h.message,ownerState:f,children:c}),o?l.jsx(l$,{className:h.action,ownerState:f,children:o}):null]})});function u$(e){return Je("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const d$=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ve(r.vertical)}${ve(r.horizontal)}`]};return Ze(n,u$,t)},p$=xe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ve(r.anchorOrigin.vertical)}${ve(r.anchorOrigin.horizontal)}`]]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),XE=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbar"}),o=no(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:v,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:x=!1,message:w,onBlur:C,onClose:P,onFocus:k,onMouseEnter:I,onMouseLeave:T,open:M,resumeHideDuration:R,slots:L={},slotProps:A={},TransitionComponent:H,transitionDuration:G=a,TransitionProps:{onEnter:$,onExited:j,...q}={},...V}=n,O={...n,anchorOrigin:{vertical:u,horizontal:d},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:H,transitionDuration:G},U=d$(O),{getRootProps:K,onClickAway:Y}=n$(O),[Z,Q]=b.useState(!0),X=Ne=>{Q(!0),j&&j(Ne)},re=(Ne,$e)=>{Q(!1),$&&$(Ne,$e)},de={slots:{transition:H,...L},slotProps:{content:y,clickAwayListener:m,transition:q,...A}},[J,oe]=Qe("root",{ref:r,className:[U.root,v],elementType:p$,getSlotProps:K,externalForwardedProps:{...de,...V},ownerState:O}),[ee,{ownerState:he,...Ce}]=Qe("clickAwayListener",{elementType:lL,externalForwardedProps:de,getSlotProps:Ne=>({onClickAway:(...$e)=>{var Xe;const Me=$e[0];(Xe=Ne.onClickAway)==null||Xe.call(Ne,...$e),!(Me!=null&&Me.defaultMuiPrevented)&&Y(...$e)}}),ownerState:O}),[ye,ce]=Qe("content",{elementType:c$,shouldForwardComponentProp:!0,externalForwardedProps:de,additionalProps:{message:w,action:c},ownerState:O}),[Fe,Le]=Qe("transition",{elementType:Yu,externalForwardedProps:de,getSlotProps:Ne=>({onEnter:(...$e)=>{var Me;(Me=Ne.onEnter)==null||Me.call(Ne,...$e),re(...$e)},onExited:(...$e)=>{var Me;(Me=Ne.onExited)==null||Me.call(Ne,...$e),X(...$e)}}),additionalProps:{appear:!0,in:M,timeout:G,direction:u==="top"?"down":"up"},ownerState:O});return!M&&Z?null:l.jsx(ee,{...Ce,...L.clickAwayListener&&{ownerState:he},children:l.jsx(J,{...oe,children:l.jsx(Fe,{...Le,children:h||l.jsx(ye,{...ce})})})})});function f$(e){return Je("MuiTooltip",e)}const Ar=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function h$(e){return Math.round(e*1e5)/1e5}const m$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,c={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ve(a.split("-")[0])}`],arrow:["arrow"]};return Ze(c,f$,t)},g$=xe(Sh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ar.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ar.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ar.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ar.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ar.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ar.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ar.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ar.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),y$=xe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ve(r.placement.split("-")[0])}`]]}})(Ge(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ar.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ar.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ar.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ar.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${h$(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ar.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ar.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ar.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ar.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ar.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ar.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ar.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ar.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ar.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ar.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),v$=xe("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Up=!1;const cS=new bh;let hu={x:0,y:0};function Wp(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const fr=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:c,components:u={},componentsProps:d={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:v=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:C=700,followCursor:P=!1,id:k,leaveDelay:I=0,leaveTouchDelay:T=1500,onClose:M,onOpen:R,open:L,placement:A="bottom",PopperComponent:H,PopperProps:G={},slotProps:$={},slots:j={},title:q,TransitionComponent:V,TransitionProps:O,...U}=n,K=b.isValidElement(a)?a:l.jsx("span",{children:a}),Y=no(),Z=ss(),[Q,X]=b.useState(),[re,de]=b.useState(null),J=b.useRef(!1),oe=m||P,ee=Da(),he=Da(),Ce=Da(),ye=Da(),[ce,Fe]=Ua({controlled:L,default:!1,name:"Tooltip",state:"open"});let Le=ce;const Ne=Ri(k),$e=b.useRef(),Me=Zr(()=>{$e.current!==void 0&&(document.body.style.WebkitUserSelect=$e.current,$e.current=void 0),ye.clear()});b.useEffect(()=>Me,[Me]);const Xe=jt=>{cS.clear(),Up=!0,Fe(!0),R&&!Le&&R(jt)},dt=Zr(jt=>{cS.start(800+I,()=>{Up=!1}),Fe(!1),M&&Le&&M(jt),ee.start(Y.transitions.duration.shortest,()=>{J.current=!1})}),le=jt=>{J.current&&jt.type!=="touchstart"||(Q&&Q.removeAttribute("title"),he.clear(),Ce.clear(),x||Up&&w?he.start(Up?w:x,()=>{Xe(jt)}):Xe(jt))},Ye=jt=>{he.clear(),Ce.start(I,()=>{dt(jt)})},[,We]=b.useState(!1),ft=jt=>{Zl(jt.target)||(We(!1),Ye(jt))},ze=jt=>{Q||X(jt.currentTarget),Zl(jt.target)&&(We(!0),le(jt))},Nt=jt=>{J.current=!0;const vr=K.props;vr.onTouchStart&&vr.onTouchStart(jt)},ht=jt=>{Nt(jt),Ce.clear(),ee.clear(),Me(),$e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(C,()=>{document.body.style.WebkitUserSelect=$e.current,le(jt)})},fe=jt=>{K.props.onTouchEnd&&K.props.onTouchEnd(jt),Me(),Ce.start(T,()=>{dt(jt)})};b.useEffect(()=>{if(!Le)return;function jt(vr){vr.key==="Escape"&&dt(vr)}return document.addEventListener("keydown",jt),()=>{document.removeEventListener("keydown",jt)}},[dt,Le]);const we=$r(Xs(K),X,r);!q&&q!==0&&(Le=!1);const je=b.useRef(),Re=jt=>{const vr=K.props;vr.onMouseMove&&vr.onMouseMove(jt),hu={x:jt.clientX,y:jt.clientY},je.current&&je.current.update()},qe={},et=typeof q=="string";f?(qe.title=!Le&&et&&!v?q:null,qe["aria-describedby"]=Le?Ne:null):(qe["aria-label"]=et?q:null,qe["aria-labelledby"]=Le&&!et?Ne:null);const ie={...qe,...U,...K.props,className:Ie(U.className,K.props.className),onTouchStart:Nt,ref:we,...P?{onMouseMove:Re}:{}},Pe={};y||(ie.onTouchStart=ht,ie.onTouchEnd=fe),v||(ie.onMouseOver=Wp(le,ie.onMouseOver),ie.onMouseLeave=Wp(Ye,ie.onMouseLeave),oe||(Pe.onMouseOver=le,Pe.onMouseLeave=Ye)),h||(ie.onFocus=Wp(ze,ie.onFocus),ie.onBlur=Wp(ft,ie.onBlur),oe||(Pe.onFocus=ze,Pe.onBlur=ft));const Be={...n,isRtl:Z,arrow:o,disableInteractive:oe,placement:A,PopperComponentProp:H,touch:J.current},He=typeof $.popper=="function"?$.popper(Be):$.popper,Et=b.useMemo(()=>{var vr,Ke;let jt=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(vr=G.popperOptions)!=null&&vr.modifiers&&(jt=jt.concat(G.popperOptions.modifiers)),(Ke=He==null?void 0:He.popperOptions)!=null&&Ke.modifiers&&(jt=jt.concat(He.popperOptions.modifiers)),{...G.popperOptions,...He==null?void 0:He.popperOptions,modifiers:jt}},[re,G.popperOptions,He==null?void 0:He.popperOptions]),Zt=m$(Be),yr=typeof $.transition=="function"?$.transition(Be):$.transition,Xr={slots:{popper:u.Popper,transition:u.Transition??V,tooltip:u.Tooltip,arrow:u.Arrow,...j},slotProps:{arrow:$.arrow??d.arrow,popper:{...G,...He??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...O,...yr??d.transition}}},[pn,vn]=Qe("popper",{elementType:g$,externalForwardedProps:Xr,ownerState:Be,className:Ie(Zt.popper,G==null?void 0:G.className)}),[nt,kt]=Qe("transition",{elementType:Yu,externalForwardedProps:Xr,ownerState:Be}),[Yt,Tr]=Qe("tooltip",{elementType:y$,className:Zt.tooltip,externalForwardedProps:Xr,ownerState:Be}),[Kr,Mn]=Qe("arrow",{elementType:v$,className:Zt.arrow,externalForwardedProps:Xr,ownerState:Be,ref:de});return l.jsxs(b.Fragment,{children:[b.cloneElement(K,ie),l.jsx(pn,{as:H??Sh,placement:A,anchorEl:P?{getBoundingClientRect:()=>({top:hu.y,left:hu.x,right:hu.x,bottom:hu.y,width:0,height:0})}:Q,popperRef:je,open:Q?Le:!1,id:Ne,transition:!0,...Pe,...vn,popperOptions:Et,children:({TransitionProps:jt})=>l.jsx(nt,{timeout:Y.transitions.duration.shorter,...jt,...kt,children:l.jsxs(Yt,{...Tr,children:[q,o?l.jsx(Kr,{...Mn}):null]})})})]})}),uS=vM({createStyledComponent:xe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>rt({props:e,name:"MuiStack"})});function x$(e){return Je("MuiSwitch",e)}const Nn=tt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),b$=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:c}=e,u={root:["root",r&&`edge${ve(r)}`,`size${ve(n)}`],switchBase:["switchBase",`color${ve(o)}`,a&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Ze(u,x$,t);return{...t,...d}},w$=xe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ve(r.edge)}`],t[`size${ve(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Nn.thumb}`]:{width:16,height:16},[`& .${Nn.switchBase}`]:{padding:4,[`&.${Nn.checked}`]:{transform:"translateX(16px)"}}}}]}),S$=xe(NE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Nn.input}`]:t.input},r.color!=="default"&&t[`color${ve(r.color)}`]]}})(Ge(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Nn.checked}`]:{transform:"translateX(20px)"},[`&.${Nn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Nn.checked} + .${Nn.track}`]:{opacity:.5},[`&.${Nn.disabled} + .${Nn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Nn.input}`]:{left:"-100%",width:"300%"}})),Ge(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(or(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Nn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Nn.checked} + .${Nn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),C$=xe("span",{name:"MuiSwitch",slot:"Track"})(Ge(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),E$=xe("span",{name:"MuiSwitch",slot:"Thumb"})(Ge(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_s=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:c=!1,size:u="medium",sx:d,slots:f={},slotProps:h={},...v}=n,m={...n,color:a,edge:c,size:u},y=b$(m),x={slots:f,slotProps:h},[w,C]=Qe("root",{className:Ie(y.root,o),elementType:w$,externalForwardedProps:x,ownerState:m,additionalProps:{sx:d}}),[P,k]=Qe("thumb",{className:y.thumb,elementType:E$,externalForwardedProps:x,ownerState:m}),I=l.jsx(P,{...k}),[T,M]=Qe("track",{className:y.track,elementType:C$,externalForwardedProps:x,ownerState:m});return l.jsxs(w,{...C,children:[l.jsx(S$,{type:"checkbox",icon:I,checkedIcon:I,ref:r,ownerState:m,...v,classes:{...y,root:y.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(m):h.switchBase},input:{role:"switch"},...h.input&&{input:typeof h.input=="function"?h.input(m):h.input}}}),l.jsx(T,{...M})]})});function T$(e){return Je("MuiTab",e)}const Ro=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),k$=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:c,selected:u,disabled:d}=e,f={root:["root",a&&c&&"labelIcon",`textColor${ve(r)}`,n&&"fullWidth",o&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return Ze(f,T$,t)},j$=xe(ai,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ve(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Ro.iconWrapper}`]:t.iconWrapper},{[`& .${Ro.icon}`]:t.icon}]}})(Ge(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Ro.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Ro.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Ro.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Ro.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ro.selected}`]:{opacity:1},[`&.${Ro.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ro.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ro.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ro.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ro.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),P$=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:c=!1,fullWidth:u,icon:d,iconPosition:f="top",indicator:h,label:v,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:C,textColor:P="inherit",value:k,wrapped:I=!1,...T}=n,M={...n,disabled:a,disableFocusRipple:c,selected:w,icon:!!d,iconPosition:f,label:!!v,fullWidth:u,textColor:P,wrapped:I},R=k$(M),L=d&&v&&b.isValidElement(d)?b.cloneElement(d,{className:Ie(R.icon,d.props.className)}):d,A=G=>{!w&&m&&m(G,k),y&&y(G)},H=G=>{C&&!w&&m&&m(G,k),x&&x(G)};return l.jsxs(j$,{focusRipple:!c,className:Ie(R.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:A,onFocus:H,ownerState:M,tabIndex:w?0:-1,...T,children:[f==="top"||f==="start"?l.jsxs(b.Fragment,{children:[L,v]}):l.jsxs(b.Fragment,{children:[v,L]}),h]})}),KE=b.createContext();function I$(e){return Je("MuiTable",e)}tt("MuiTable",["root","stickyHeader"]);const M$=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},I$,t)},R$=xe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Ge(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),dS="table",Xa=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTable"}),{className:o,component:a=dS,padding:c="normal",size:u="medium",stickyHeader:d=!1,...f}=n,h={...n,component:a,padding:c,size:u,stickyHeader:d},v=M$(h),m=b.useMemo(()=>({padding:c,size:u,stickyHeader:d}),[c,u,d]);return l.jsx(KE.Provider,{value:m,children:l.jsx(R$,{as:a,role:a===dS?null:"table",ref:r,className:Ie(v.root,o),ownerState:h,...f})})}),Rh=b.createContext();function A$(e){return Je("MuiTableBody",e)}tt("MuiTableBody",["root"]);const _$=e=>{const{classes:t}=e;return Ze({root:["root"]},A$,t)},L$=xe("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),O$={variant:"body"},pS="tbody",Ka=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableBody"}),{className:o,component:a=pS,...c}=n,u={...n,component:a},d=_$(u);return l.jsx(Rh.Provider,{value:O$,children:l.jsx(L$,{className:Ie(d.root,o),as:a,ref:r,role:a===pS?null:"rowgroup",ownerState:u,...c})})});function N$(e){return Je("MuiTableCell",e)}const $$=tt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),B$=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:c}=e,u={root:["root",r,c&&"stickyHeader",n!=="inherit"&&`align${ve(n)}`,o!=="normal"&&`padding${ve(o)}`,`size${ve(a)}`]};return Ze(u,N$,t)},z$=xe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ve(r.size)}`],r.padding!=="normal"&&t[`padding${ve(r.padding)}`],r.align!=="inherit"&&t[`align${ve(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Ge(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
307
|
+
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${$$.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Ve=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:c,padding:u,scope:d,size:f,sortDirection:h,variant:v,...m}=n,y=b.useContext(KE),x=b.useContext(Rh),w=x&&x.variant==="head";let C;c?C=c:C=w?"th":"td";let P=d;C==="td"?P=void 0:!P&&w&&(P="col");const k=v||x&&x.variant,I={...n,align:o,component:C,padding:u||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:k==="head"&&y&&y.stickyHeader,variant:k},T=B$(I);let M=null;return h&&(M=h==="asc"?"ascending":"descending"),l.jsx(z$,{as:C,ref:r,className:Ie(T.root,a),"aria-sort":M,scope:P,ownerState:I,...m})});function D$(e){return Je("MuiTableContainer",e)}tt("MuiTableContainer",["root"]);const F$=e=>{const{classes:t}=e;return Ze({root:["root"]},D$,t)},H$=xe("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Qa=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...c}=n,u={...n,component:a},d=F$(u);return l.jsx(H$,{ref:r,as:a,className:Ie(d.root,o),ownerState:u,...c})});function V$(e){return Je("MuiTableHead",e)}tt("MuiTableHead",["root"]);const U$=e=>{const{classes:t}=e;return Ze({root:["root"]},V$,t)},W$=xe("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),q$={variant:"head"},fS="thead",Ya=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableHead"}),{className:o,component:a=fS,...c}=n,u={...n,component:a},d=U$(u);return l.jsx(Rh.Provider,{value:q$,children:l.jsx(W$,{as:a,className:Ie(d.root,o),ref:r,role:a===fS?null:"rowgroup",ownerState:u,...c})})});function G$(e){return Je("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const X$=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},G$,t)},K$=xe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Q$=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:c=!1,variant:u="regular",...d}=n,f={...n,component:a,disableGutters:c,variant:u},h=X$(f);return l.jsx(K$,{as:a,className:Ie(h.root,o),ref:r,ownerState:f,...d})}),QE=Se(l.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),YE=Se(l.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function Y$(e){return Je("MuiTablePaginationActions",e)}tt("MuiTablePaginationActions",["root"]);const J$=e=>{const{classes:t}=e;return Ze({root:["root"]},Y$,t)},Z$=xe("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),e8=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:a,count:c,disabled:u=!1,getItemAriaLabel:d,nextIconButtonProps:f,onPageChange:h,page:v,rowsPerPage:m,showFirstButton:y,showLastButton:x,slots:w={},slotProps:C={},...P}=n,k=ss(),T=J$(n),M=oe=>{h(oe,0)},R=oe=>{h(oe,v-1)},L=oe=>{h(oe,v+1)},A=oe=>{h(oe,Math.max(0,Math.ceil(c/m)-1))},H=w.firstButton??Qt,G=w.lastButton??Qt,$=w.nextButton??Qt,j=w.previousButton??Qt,q=w.firstButtonIcon??UE,V=w.lastButtonIcon??WE,O=w.nextButtonIcon??YE,U=w.previousButtonIcon??QE,K=k?G:H,Y=k?$:j,Z=k?j:$,Q=k?H:G,X=k?C.lastButton:C.firstButton,re=k?C.nextButton:C.previousButton,de=k?C.previousButton:C.nextButton,J=k?C.firstButton:C.lastButton;return l.jsxs(Z$,{ref:r,className:Ie(T.root,a),...P,children:[y&&l.jsx(K,{onClick:M,disabled:u||v===0,"aria-label":d("first",v),title:d("first",v),...X,children:k?l.jsx(V,{...C.lastButtonIcon}):l.jsx(q,{...C.firstButtonIcon})}),l.jsx(Y,{onClick:R,disabled:u||v===0,color:"inherit","aria-label":d("previous",v),title:d("previous",v),...re??o,children:k?l.jsx(O,{...C.nextButtonIcon}):l.jsx(U,{...C.previousButtonIcon})}),l.jsx(Z,{onClick:L,disabled:u||(c!==-1?v>=Math.ceil(c/m)-1:!1),color:"inherit","aria-label":d("next",v),title:d("next",v),...de??f,children:k?l.jsx(U,{...C.previousButtonIcon}):l.jsx(O,{...C.nextButtonIcon})}),x&&l.jsx(Q,{onClick:A,disabled:u||v>=Math.ceil(c/m)-1,"aria-label":d("last",v),title:d("last",v),...J,children:k?l.jsx(q,{...C.firstButtonIcon}):l.jsx(V,{...C.lastButtonIcon})})]})});function t8(e){return Je("MuiTablePagination",e)}const Lu=tt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var hS;const r8=xe(Ve,{name:"MuiTablePagination",slot:"Root"})(Ge(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),n8=xe(Q$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Lu.actions}`]:t.actions,...t.toolbar})})(Ge(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Lu.actions}`]:{flexShrink:0,marginLeft:20}}))),o8=xe("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),i8=xe("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Ge(({theme:e})=>({...e.typography.body2,flexShrink:0}))),a8=xe(aa,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Lu.selectIcon}`]:t.selectIcon,[`& .${Lu.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Lu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),s8=xe(Sr,{name:"MuiTablePagination",slot:"MenuItem"})({}),l8=xe("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Ge(({theme:e})=>({...e.typography.body2,flexShrink:0})));function c8({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function u8(e){return`Go to ${e} page`}const d8=e=>{const{classes:t}=e;return Ze({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},t8,t)},p8=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=e8,backIconButtonProps:a,colSpan:c,component:u=Ve,count:d,disabled:f=!1,getItemAriaLabel:h=u8,labelDisplayedRows:v=c8,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:y,onPageChange:x,onRowsPerPageChange:w,page:C,rowsPerPage:P,rowsPerPageOptions:k=[10,25,50,100],SelectProps:I={},showFirstButton:T=!1,showLastButton:M=!1,slotProps:R={},slots:L={},...A}=n,H=n,G=d8(H),$=(R==null?void 0:R.select)??I,j=$.native?"option":s8;let q;(u===Ve||u==="td")&&(q=c||1e3);const V=Ri($.id),O=Ri($.labelId),U=()=>d===-1?(C+1)*P:P===-1?d:Math.min(d,(C+1)*P),K={slots:L,slotProps:R},[Y,Z]=Qe("root",{ref:r,className:G.root,elementType:r8,externalForwardedProps:{...K,component:u,...A},ownerState:H,additionalProps:{colSpan:q}}),[Q,X]=Qe("toolbar",{className:G.toolbar,elementType:n8,externalForwardedProps:K,ownerState:H}),[re,de]=Qe("spacer",{className:G.spacer,elementType:o8,externalForwardedProps:K,ownerState:H}),[J,oe]=Qe("selectLabel",{className:G.selectLabel,elementType:i8,externalForwardedProps:K,ownerState:H,additionalProps:{id:O}}),[ee,he]=Qe("select",{className:G.select,elementType:a8,externalForwardedProps:K,ownerState:H}),[Ce,ye]=Qe("menuItem",{className:G.menuItem,elementType:j,externalForwardedProps:K,ownerState:H}),[ce,Fe]=Qe("displayedRows",{className:G.displayedRows,elementType:l8,externalForwardedProps:K,ownerState:H});return l.jsx(Y,{...Z,children:l.jsxs(Q,{...X,children:[l.jsx(re,{...de}),k.length>1&&l.jsx(J,{...oe,children:m}),k.length>1&&l.jsx(ee,{variant:"standard",...!$.variant&&{input:hS||(hS=l.jsx(Ph,{}))},value:P,onChange:w,id:V,labelId:O,...$,classes:{...$.classes,root:Ie(G.input,G.selectRoot,($.classes||{}).root),select:Ie(G.select,($.classes||{}).select),icon:Ie(G.selectIcon,($.classes||{}).icon)},disabled:f,...he,children:k.map(Le=>b.createElement(Ce,{...ye,key:Le.label?Le.label:Le,value:Le.value?Le.value:Le},Le.label?Le.label:Le))}),l.jsx(ce,{...Fe,children:v({from:d===0?0:C*P+1,to:U(),count:d===-1?-1:d,page:C})}),l.jsx(o,{className:G.actions,backIconButtonProps:a,count:d,nextIconButtonProps:y,onPageChange:x,page:C,rowsPerPage:P,showFirstButton:T,showLastButton:M,slotProps:R.actions,slots:L.actions,getItemAriaLabel:h,disabled:f})]})})});function f8(e){return Je("MuiTableRow",e)}const mS=tt("MuiTableRow",["root","selected","hover","head","footer"]),h8=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},f8,t)},m8=xe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Ge(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mS.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),gS="tr",Ur=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableRow"}),{className:o,component:a=gS,hover:c=!1,selected:u=!1,...d}=n,f=b.useContext(Rh),h={...n,component:a,hover:c,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},v=h8(h);return l.jsx(m8,{as:a,ref:r,className:Ie(v.root,o),role:a===gS?null:"row",ownerState:h,...d})});function g8(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function y8(e,t,r,n={},o=()=>{}){const{ease:a=g8,duration:c=300}=n;let u=null;const d=t[e];let f=!1;const h=()=>{f=!0},v=m=>{if(f){o(new Error("Animation cancelled"));return}u===null&&(u=m);const y=Math.min(1,(m-u)/c);if(t[e]=a(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return d===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(v),h)}const v8={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function x8(e){const{onChange:t,...r}=e,n=b.useRef(),o=b.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Zn(()=>{const c=xh(()=>{const d=n.current;a(),d!==n.current&&t(n.current)}),u=ii(o.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[t]),b.useEffect(()=>{a(),t(n.current)},[t]),l.jsx("div",{style:v8,...r,ref:o})}function b8(e){return Je("MuiTabScrollButton",e)}const w8=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),S8=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},b8,t)},C8=xe(ai,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${w8.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),E8=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:c={},direction:u,orientation:d,disabled:f,...h}=n,v=ss(),m={isRtl:v,...n},y=S8(m),x=a.StartScrollButtonIcon??QE,w=a.EndScrollButtonIcon??YE,C=oc({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),P=oc({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return l.jsx(C8,{component:"div",className:Ie(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...h,style:{...h.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${v?-90:90}deg)`}},children:u==="left"?l.jsx(x,{...C}):l.jsx(w,{...P})})});function T8(e){return Je("MuiTabs",e)}const Xg=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),yS=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vS=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qp=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},k8=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:c,scrollButtonsHideMobile:u,classes:d}=e;return Ze({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},T8,d)},j8=xe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xg.scrollButtons}`]:t.scrollButtons},{[`& .${Xg.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Ge(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Xg.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),P8=xe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),I8=xe("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),M8=xe("span",{name:"MuiTabs",slot:"Indicator"})(Ge(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),R8=xe(x8)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),xS={},A8=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTabs"}),o=no(),a=ss(),{"aria-label":c,"aria-labelledby":u,action:d,centered:f=!1,children:h,className:v,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:C="horizontal",ScrollButtonComponent:P,scrollButtons:k="auto",selectionFollowsFocus:I,slots:T={},slotProps:M={},TabIndicatorProps:R={},TabScrollButtonProps:L={},textColor:A="primary",value:H,variant:G="standard",visibleScrollbar:$=!1,...j}=n,q=G==="scrollable",V=C==="vertical",O=V?"scrollTop":"scrollLeft",U=V?"top":"left",K=V?"bottom":"right",Y=V?"clientHeight":"clientWidth",Z=V?"height":"width",Q={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:C,vertical:V,scrollButtons:k,textColor:A,variant:G,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!V,scrollableY:q&&V,centered:f&&!q,scrollButtonsHideMobile:!y},X=k8(Q),re=oc({elementType:T.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:Q}),de=oc({elementType:T.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:Q}),[J,oe]=b.useState(!1),[ee,he]=b.useState(xS),[Ce,ye]=b.useState(!1),[ce,Fe]=b.useState(!1),[Le,Ne]=b.useState(!1),[$e,Me]=b.useState({overflow:"hidden",scrollbarWidth:0}),Xe=new Map,dt=b.useRef(null),le=b.useRef(null),Ye={slots:T,slotProps:{indicator:R,scrollButton:L,...M}},We=()=>{const Ke=dt.current;let at;if(Ke){const Ot=Ke.getBoundingClientRect();at={clientWidth:Ke.clientWidth,scrollLeft:Ke.scrollLeft,scrollTop:Ke.scrollTop,scrollWidth:Ke.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let _t;if(Ke&&H!==!1){const Ot=le.current.children;if(Ot.length>0){const rr=Ot[Xe.get(H)];_t=rr?rr.getBoundingClientRect():null}}return{tabsMeta:at,tabMeta:_t}},ft=Zr(()=>{const{tabsMeta:Ke,tabMeta:at}=We();let _t=0,Ot;V?(Ot="top",at&&Ke&&(_t=at.top-Ke.top+Ke.scrollTop)):(Ot=a?"right":"left",at&&Ke&&(_t=(a?-1:1)*(at[Ot]-Ke[Ot]+Ke.scrollLeft)));const rr={[Ot]:_t,[Z]:at?at[Z]:0};if(typeof ee[Ot]!="number"||typeof ee[Z]!="number")he(rr);else{const zr=Math.abs(ee[Ot]-rr[Ot]),xn=Math.abs(ee[Z]-rr[Z]);(zr>=1||xn>=1)&&he(rr)}}),ze=(Ke,{animation:at=!0}={})=>{at?y8(O,dt.current,Ke,{duration:o.transitions.duration.standard}):dt.current[O]=Ke},Nt=Ke=>{let at=dt.current[O];V?at+=Ke:at+=Ke*(a?-1:1),ze(at)},ht=()=>{const Ke=dt.current[Y];let at=0;const _t=Array.from(le.current.children);for(let Ot=0;Ot<_t.length;Ot+=1){const rr=_t[Ot];if(at+rr[Y]>Ke){Ot===0&&(at=Ke);break}at+=rr[Y]}return at},fe=()=>{Nt(-1*ht())},we=()=>{Nt(ht())},[je,{onChange:Re,...qe}]=Qe("scrollbar",{className:Ie(X.scrollableX,X.hideScrollbar),elementType:R8,shouldForwardComponentProp:!0,externalForwardedProps:Ye,ownerState:Q}),et=b.useCallback(Ke=>{Re==null||Re(Ke),Me({overflow:null,scrollbarWidth:Ke})},[Re]),[ie,Pe]=Qe("scrollButtons",{className:Ie(X.scrollButtons,L.className),elementType:E8,externalForwardedProps:Ye,ownerState:Q,additionalProps:{orientation:C,slots:{StartScrollButtonIcon:T.startScrollButtonIcon||T.StartScrollButtonIcon,EndScrollButtonIcon:T.endScrollButtonIcon||T.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:re,endScrollButtonIcon:de}}}),Be=()=>{const Ke={};Ke.scrollbarSizeListener=q?l.jsx(je,{...qe,onChange:et}):null;const _t=q&&(k==="auto"&&(Ce||ce)||k===!0);return Ke.scrollButtonStart=_t?l.jsx(ie,{direction:a?"right":"left",onClick:fe,disabled:!Ce,...Pe}):null,Ke.scrollButtonEnd=_t?l.jsx(ie,{direction:a?"left":"right",onClick:we,disabled:!ce,...Pe}):null,Ke},He=Zr(Ke=>{const{tabsMeta:at,tabMeta:_t}=We();if(!(!_t||!at)){if(_t[U]<at[U]){const Ot=at[O]+(_t[U]-at[U]);ze(Ot,{animation:Ke})}else if(_t[K]>at[K]){const Ot=at[O]+(_t[K]-at[K]);ze(Ot,{animation:Ke})}}}),Et=Zr(()=>{q&&k!==!1&&Ne(!Le)});b.useEffect(()=>{const Ke=xh(()=>{dt.current&&ft()});let at;const _t=zr=>{zr.forEach(xn=>{xn.removedNodes.forEach(Fn=>{at==null||at.unobserve(Fn)}),xn.addedNodes.forEach(Fn=>{at==null||at.observe(Fn)})}),Ke(),Et()},Ot=ii(dt.current);Ot.addEventListener("resize",Ke);let rr;return typeof ResizeObserver<"u"&&(at=new ResizeObserver(Ke),Array.from(le.current.children).forEach(zr=>{at.observe(zr)})),typeof MutationObserver<"u"&&(rr=new MutationObserver(_t),rr.observe(le.current,{childList:!0})),()=>{Ke.clear(),Ot.removeEventListener("resize",Ke),rr==null||rr.disconnect(),at==null||at.disconnect()}},[ft,Et]),b.useEffect(()=>{const Ke=Array.from(le.current.children),at=Ke.length;if(typeof IntersectionObserver<"u"&&at>0&&q&&k!==!1){const _t=Ke[0],Ot=Ke[at-1],rr={root:dt.current,threshold:.99},zr=qo=>{ye(!qo[0].isIntersecting)},xn=new IntersectionObserver(zr,rr);xn.observe(_t);const Fn=qo=>{Fe(!qo[0].isIntersecting)},fi=new IntersectionObserver(Fn,rr);return fi.observe(Ot),()=>{xn.disconnect(),fi.disconnect()}}},[q,k,Le,h==null?void 0:h.length]),b.useEffect(()=>{oe(!0)},[]),b.useEffect(()=>{ft()}),b.useEffect(()=>{He(xS!==ee)},[He,ee]),b.useImperativeHandle(d,()=>({updateIndicator:ft,updateScrollButtons:Et}),[ft,Et]);const[Zt,yr]=Qe("indicator",{className:Ie(X.indicator,R.className),elementType:M8,externalForwardedProps:Ye,ownerState:Q,additionalProps:{style:ee}}),Xr=l.jsx(Zt,{...yr});let pn=0;const vn=b.Children.map(h,Ke=>{if(!b.isValidElement(Ke))return null;const at=Ke.props.value===void 0?pn:Ke.props.value;Xe.set(at,pn);const _t=at===H;return pn+=1,b.cloneElement(Ke,{fullWidth:G==="fullWidth",indicator:_t&&!J&&Xr,selected:_t,selectionFollowsFocus:I,onChange:w,textColor:A,value:at,...pn===1&&H===!1&&!Ke.props.tabIndex?{tabIndex:0}:{}})}),nt=Ke=>{if(Ke.altKey||Ke.shiftKey||Ke.ctrlKey||Ke.metaKey)return;const at=le.current,_t=Dl(gn(at));if((_t==null?void 0:_t.getAttribute("role"))!=="tab")return;let rr=C==="horizontal"?"ArrowLeft":"ArrowUp",zr=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&a&&(rr="ArrowRight",zr="ArrowLeft"),Ke.key){case rr:Ke.preventDefault(),qp(at,_t,vS);break;case zr:Ke.preventDefault(),qp(at,_t,yS);break;case"Home":Ke.preventDefault(),qp(at,null,yS);break;case"End":Ke.preventDefault(),qp(at,null,vS);break}},kt=Be(),[Yt,Tr]=Qe("root",{ref:r,className:Ie(X.root,v),elementType:j8,externalForwardedProps:{...Ye,...j,component:m},ownerState:Q}),[Kr,Mn]=Qe("scroller",{ref:dt,className:X.scroller,elementType:P8,externalForwardedProps:Ye,ownerState:Q,additionalProps:{style:{overflow:$e.overflow,[V?`margin${a?"Left":"Right"}`:"marginBottom"]:$?void 0:-$e.scrollbarWidth}}}),[jt,vr]=Qe("list",{ref:le,className:Ie(X.list,X.flexContainer),elementType:I8,externalForwardedProps:Ye,ownerState:Q,getSlotProps:Ke=>({...Ke,onKeyDown:at=>{var _t;nt(at),(_t=Ke.onKeyDown)==null||_t.call(Ke,at)}})});return l.jsxs(Yt,{...Tr,children:[kt.scrollButtonStart,kt.scrollbarSizeListener,l.jsxs(Kr,{...Mn,children:[l.jsx(jt,{"aria-label":c,"aria-labelledby":u,"aria-orientation":C==="vertical"?"vertical":null,role:"tablist",...vr,children:vn}),J&&Xr]}),kt.scrollButtonEnd]})});function _8(e){return Je("MuiTextField",e)}tt("MuiTextField",["root"]);const L8={standard:Ih,filled:r0,outlined:i0},O8=e=>{const{classes:t}=e;return Ze({root:["root"]},_8,t)},N8=xe(_i,{name:"MuiTextField",slot:"Root"})({}),Rt=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:c,className:u,color:d="primary",defaultValue:f,disabled:h=!1,error:v=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:C,inputProps:P,InputProps:k,inputRef:I,label:T,maxRows:M,minRows:R,multiline:L=!1,name:A,onBlur:H,onChange:G,onFocus:$,placeholder:j,required:q=!1,rows:V,select:O=!1,SelectProps:U,slots:K={},slotProps:Y={},type:Z,value:Q,variant:X="outlined",...re}=n,de={...n,autoFocus:a,color:d,disabled:h,error:v,fullWidth:y,multiline:L,required:q,select:O,variant:X},J=O8(de),oe=Ri(w),ee=x&&oe?`${oe}-helper-text`:void 0,he=T&&oe?`${oe}-label`:void 0,Ce=L8[X],ye={slots:K,slotProps:{input:k,inputLabel:C,htmlInput:P,formHelperText:m,select:U,...Y}},ce={},Fe=ye.slotProps.inputLabel;X==="outlined"&&(Fe&&typeof Fe.shrink<"u"&&(ce.notched=Fe.shrink),ce.label=T),O&&((!U||!U.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const[Le,Ne]=Qe("root",{elementType:N8,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...re},ownerState:de,className:Ie(J.root,u),ref:r,additionalProps:{disabled:h,error:v,fullWidth:y,required:q,color:d,variant:X}}),[$e,Me]=Qe("input",{elementType:Ce,externalForwardedProps:ye,additionalProps:ce,ownerState:de}),[Xe,dt]=Qe("inputLabel",{elementType:Ga,externalForwardedProps:ye,ownerState:de}),[le,Ye]=Qe("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:de}),[We,ft]=Qe("formHelperText",{elementType:wc,externalForwardedProps:ye,ownerState:de}),[ze,Nt]=Qe("select",{elementType:aa,externalForwardedProps:ye,ownerState:de}),ht=l.jsx($e,{"aria-describedby":ee,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:L,name:A,rows:V,maxRows:M,minRows:R,type:Z,value:Q,id:oe,inputRef:I,onBlur:H,onChange:G,onFocus:$,placeholder:j,inputProps:Ye,slots:{input:K.htmlInput?le:void 0},...Me});return l.jsxs(Le,{...Ne,children:[T!=null&&T!==""&&l.jsx(Xe,{htmlFor:oe,id:he,...dt,children:T}),O?l.jsx(ze,{"aria-describedby":ee,id:oe,labelId:he,value:Q,input:ht,...Nt,children:c}):ht,x&&l.jsx(We,{id:ee,...ft,children:x})]})});function $8(e){return Je("MuiToggleButton",e)}const $s=tt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),JE=b.createContext({}),ZE=b.createContext(void 0);function B8(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const z8=e=>{const{classes:t,fullWidth:r,selected:n,disabled:o,size:a,color:c}=e,u={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ve(a)}`,c]};return Ze(u,$8,t)},D8=xe(ai,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${ve(r.size)}`]]}})(Ge(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${$s.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${$s.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(or()).map(([t])=>({props:{color:t},style:{[`&.${$s.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),bS=b.forwardRef(function(t,r){const{value:n,...o}=b.useContext(JE),a=b.useContext(ZE),c=Yl({...o,selected:B8(t.value,n)},t),u=rt({props:c,name:"MuiToggleButton"}),{children:d,className:f,color:h="standard",disabled:v=!1,disableFocusRipple:m=!1,fullWidth:y=!1,onChange:x,onClick:w,selected:C,size:P="medium",value:k,...I}=u,T={...u,color:h,disabled:v,disableFocusRipple:m,fullWidth:y,size:P},M=z8(T),R=A=>{w&&(w(A,k),A.defaultPrevented)||x&&x(A,k)},L=a||"";return l.jsx(D8,{className:Ie(o.className,M.root,f,L),disabled:v,focusRipple:!m,ref:r,onClick:R,onChange:x,value:k,ownerState:T,"aria-pressed":C,...I,children:d})});function F8(e){return Je("MuiToggleButtonGroup",e)}const wr=tt("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),H8=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:o}=e,a={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${ve(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ze(a,F8,t)},V8=xe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${wr.grouped}`]:t.grouped},{[`& .${wr.grouped}`]:t[`grouped${ve(r.orientation)}`]},{[`& .${wr.firstButton}`]:t.firstButton},{[`& .${wr.lastButton}`]:t.lastButton},{[`& .${wr.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(Ge(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${wr.grouped}`]:{[`&.${wr.selected} + .${wr.grouped}.${wr.selected}`]:{borderTop:0,marginTop:0}},[`& .${wr.firstButton},& .${wr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${wr.lastButton},& .${wr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${wr.lastButton}.${$s.disabled},& .${wr.middleButton}.${$s.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${wr.grouped}`]:{[`&.${wr.selected} + .${wr.grouped}.${wr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${wr.firstButton},& .${wr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${wr.lastButton},& .${wr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${wr.lastButton}.${$s.disabled},& .${wr.middleButton}.${$s.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),U8=b.forwardRef(function(t,r){const n=rt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:c="standard",disabled:u=!1,exclusive:d=!1,fullWidth:f=!1,onChange:h,orientation:v="horizontal",size:m="medium",value:y,...x}=n,w={...n,disabled:u,fullWidth:f,orientation:v,size:m},C=H8(w),P=b.useCallback((L,A)=>{if(!h)return;const H=y&&y.indexOf(A);let G;y&&H>=0?(G=y.slice(),G.splice(H,1)):G=y?y.concat(A):[A],h(L,G)},[h,y]),k=b.useCallback((L,A)=>{h&&h(L,y===A?null:A)},[h,y]),I=b.useMemo(()=>({className:C.grouped,onChange:d?k:P,value:y,size:m,fullWidth:f,color:c,disabled:u}),[C.grouped,d,k,P,y,m,f,c,u]),T=OE(o),M=T.length,R=L=>{const A=L===0,H=L===M-1;return A&&H?"":A?C.firstButton:H?C.lastButton:C.middleButton};return l.jsx(V8,{role:"group",className:Ie(C.root,a),ref:r,ownerState:w,...x,children:l.jsx(JE.Provider,{value:I,children:T.map((L,A)=>l.jsx(ZE.Provider,{value:R(A),children:L},A))})})}),W8=KC({themeId:ni});/*!
|
|
308
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
309
|
+
* http://github.com/janl/mustache.js
|
|
310
|
+
*/var q8=Object.prototype.toString,Sc=Array.isArray||function(t){return q8.call(t)==="[object Array]"};function s0(e){return typeof e=="function"}function G8(e){return Sc(e)?"array":typeof e}function Kg(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function wS(e,t){return e!=null&&typeof e=="object"&&t in e}function X8(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var K8=RegExp.prototype.test;function Q8(e,t){return K8.call(e,t)}var Y8=/\S/;function J8(e){return!Q8(Y8,e)}var Z8={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function e9(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Z8[r]})}var t9=/\s*/,r9=/\s+/,SS=/\s*=/,n9=/\s*\}/,o9=/#|\^|\/|>|\{|&|=|!/;function i9(e,t){if(!e)return[];var r=!1,n=[],o=[],a=[],c=!1,u=!1,d="",f=0;function h(){if(c&&!u)for(;a.length;)delete o[a.pop()];else a=[];c=!1,u=!1}var v,m,y;function x(A){if(typeof A=="string"&&(A=A.split(r9,2)),!Sc(A)||A.length!==2)throw new Error("Invalid tags: "+A);v=new RegExp(Kg(A[0])+"\\s*"),m=new RegExp("\\s*"+Kg(A[1])),y=new RegExp("\\s*"+Kg("}"+A[1]))}x(t||Co.tags);for(var w=new Cd(e),C,P,k,I,T,M;!w.eos();){if(C=w.pos,k=w.scanUntil(v),k)for(var R=0,L=k.length;R<L;++R)I=k.charAt(R),J8(I)?(a.push(o.length),d+=I):(u=!0,r=!0,d+=" "),o.push(["text",I,C,C+1]),C+=1,I===`
|
|
311
|
+
`&&(h(),d="",f=0,r=!1);if(!w.scan(v))break;if(c=!0,P=w.scan(o9)||"name",w.scan(t9),P==="="?(k=w.scanUntil(SS),w.scan(SS),w.scanUntil(m)):P==="{"?(k=w.scanUntil(y),w.scan(n9),w.scanUntil(m),P="&"):k=w.scanUntil(m),!w.scan(m))throw new Error("Unclosed tag at "+w.pos);if(P==">"?T=[P,k,C,w.pos,d,f,r]:T=[P,k,C,w.pos],f++,o.push(T),P==="#"||P==="^")n.push(T);else if(P==="/"){if(M=n.pop(),!M)throw new Error('Unopened section "'+k+'" at '+C);if(M[1]!==k)throw new Error('Unclosed section "'+M[1]+'" at '+C)}else P==="name"||P==="{"||P==="&"?u=!0:P==="="&&x(k)}if(h(),M=n.pop(),M)throw new Error('Unclosed section "'+M[1]+'" at '+w.pos);return s9(a9(o))}function a9(e){for(var t=[],r,n,o=0,a=e.length;o<a;++o)r=e[o],r&&(r[0]==="text"&&n&&n[0]==="text"?(n[1]+=r[1],n[3]=r[3]):(t.push(r),n=r));return t}function s9(e){for(var t=[],r=t,n=[],o,a,c=0,u=e.length;c<u;++c)switch(o=e[c],o[0]){case"#":case"^":r.push(o),n.push(o),r=o[4]=[];break;case"/":a=n.pop(),a[5]=o[2],r=n.length>0?n[n.length-1][4]:t;break;default:r.push(o)}return t}function Cd(e){this.string=e,this.tail=e,this.pos=0}Cd.prototype.eos=function(){return this.tail===""};Cd.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};Cd.prototype.scanUntil=function(t){var r=this.tail.search(t),n;switch(r){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=n.length,n};function ic(e,t){this.view=e,this.cache={".":this.view},this.parent=t}ic.prototype.push=function(t){return new ic(t,this)};ic.prototype.lookup=function(t){var r=this.cache,n;if(r.hasOwnProperty(t))n=r[t];else{for(var o=this,a,c,u,d=!1;o;){if(t.indexOf(".")>0)for(a=o.view,c=t.split("."),u=0;a!=null&&u<c.length;)u===c.length-1&&(d=wS(a,c[u])||X8(a,c[u])),a=a[c[u++]];else a=o.view[t],d=wS(o.view,t);if(d){n=a;break}o=o.parent}r[t]=n}return s0(n)&&(n=n.call(this.view)),n};function Dn(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Dn.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Dn.prototype.parse=function(t,r){var n=this.templateCache,o=t+":"+(r||Co.tags).join(":"),a=typeof n<"u",c=a?n.get(o):void 0;return c==null&&(c=i9(t,r),a&&n.set(o,c)),c};Dn.prototype.render=function(t,r,n,o){var a=this.getConfigTags(o),c=this.parse(t,a),u=r instanceof ic?r:new ic(r,void 0);return this.renderTokens(c,u,n,t,o)};Dn.prototype.renderTokens=function(t,r,n,o,a){for(var c="",u,d,f,h=0,v=t.length;h<v;++h)f=void 0,u=t[h],d=u[0],d==="#"?f=this.renderSection(u,r,n,o,a):d==="^"?f=this.renderInverted(u,r,n,o,a):d===">"?f=this.renderPartial(u,r,n,a):d==="&"?f=this.unescapedValue(u,r):d==="name"?f=this.escapedValue(u,r,a):d==="text"&&(f=this.rawValue(u)),f!==void 0&&(c+=f);return c};Dn.prototype.renderSection=function(t,r,n,o,a){var c=this,u="",d=r.lookup(t[1]);function f(m){return c.render(m,r,n,a)}if(d){if(Sc(d))for(var h=0,v=d.length;h<v;++h)u+=this.renderTokens(t[4],r.push(d[h]),n,o,a);else if(typeof d=="object"||typeof d=="string"||typeof d=="number")u+=this.renderTokens(t[4],r.push(d),n,o,a);else if(s0(d)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");d=d.call(r.view,o.slice(t[3],t[5]),f),d!=null&&(u+=d)}else u+=this.renderTokens(t[4],r,n,o,a);return u}};Dn.prototype.renderInverted=function(t,r,n,o,a){var c=r.lookup(t[1]);if(!c||Sc(c)&&c.length===0)return this.renderTokens(t[4],r,n,o,a)};Dn.prototype.indentPartial=function(t,r,n){for(var o=r.replace(/[^ \t]/g,""),a=t.split(`
|
|
312
|
+
`),c=0;c<a.length;c++)a[c].length&&(c>0||!n)&&(a[c]=o+a[c]);return a.join(`
|
|
313
|
+
`)};Dn.prototype.renderPartial=function(t,r,n,o){if(n){var a=this.getConfigTags(o),c=s0(n)?n(t[1]):n[t[1]];if(c!=null){var u=t[6],d=t[5],f=t[4],h=c;d==0&&f&&(h=this.indentPartial(c,f,u));var v=this.parse(h,a);return this.renderTokens(v,r,n,h,o)}}};Dn.prototype.unescapedValue=function(t,r){var n=r.lookup(t[1]);if(n!=null)return n};Dn.prototype.escapedValue=function(t,r,n){var o=this.getConfigEscape(n)||Co.escape,a=r.lookup(t[1]);if(a!=null)return typeof a=="number"&&o===Co.escape?String(a):o(a)};Dn.prototype.rawValue=function(t){return t[1]};Dn.prototype.getConfigTags=function(t){return Sc(t)?t:t&&typeof t=="object"?t.tags:void 0};Dn.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Sc(t))return t.escape};var Co={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Zu.templateCache=e},get templateCache(){return Zu.templateCache}},Zu=new Dn;Co.clearCache=function(){return Zu.clearCache()};Co.parse=function(t,r){return Zu.parse(t,r)};Co.render=function(t,r,n,o){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+G8(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Zu.render(t,r,n,o)};Co.escape=e9;Co.Scanner=Cd;Co.Context=ic;Co.Writer=Dn;var CS={};/*! *****************************************************************************
|
|
314
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
315
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
316
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
317
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
318
|
+
|
|
319
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
320
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
321
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
322
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
323
|
+
|
|
324
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
325
|
+
and limitations under the License.
|
|
326
|
+
***************************************************************************** */var ES;function l9(){if(ES)return CS;ES=1;var e;return(function(t){(function(r){var n=typeof h1=="object"?h1:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),o=a(t);typeof n.Reflect>"u"?n.Reflect=t:o=a(n.Reflect,o),r(o);function a(c,u){return function(d,f){typeof c[d]!="function"&&Object.defineProperty(c,d,{configurable:!0,writable:!0,value:f}),u&&u(d,f)}}})(function(r){var n=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",d={__proto__:[]}instanceof Array,f=!u&&!d,h={create:u?function(){return ht(Object.create(null))}:d?function(){return ht({__proto__:null})}:function(){return ht({})},has:f?function(fe,we){return n.call(fe,we)}:function(fe,we){return we in fe},get:f?function(fe,we){return n.call(fe,we)?fe[we]:void 0}:function(fe,we){return fe[we]}},v=Object.getPrototypeOf(Function),m=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!m&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ft(),x=!m&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ze(),w=!m&&typeof WeakMap=="function"?WeakMap:Nt(),C=new w;function P(fe,we,je,Re){if(re(je)){if(!Fe(fe))throw new TypeError;if(!Ne(we))throw new TypeError;return $(fe,we)}else{if(!Fe(fe))throw new TypeError;if(!oe(we))throw new TypeError;if(!oe(Re)&&!re(Re)&&!de(Re))throw new TypeError;return de(Re)&&(Re=void 0),je=ce(je),j(fe,we,je,Re)}}r("decorate",P);function k(fe,we){function je(Re,qe){if(!oe(Re))throw new TypeError;if(!re(qe)&&!$e(qe))throw new TypeError;Y(fe,we,Re,qe)}return je}r("metadata",k);function I(fe,we,je,Re){if(!oe(je))throw new TypeError;return re(Re)||(Re=ce(Re)),Y(fe,we,je,Re)}r("defineMetadata",I);function T(fe,we,je){if(!oe(we))throw new TypeError;return re(je)||(je=ce(je)),V(fe,we,je)}r("hasMetadata",T);function M(fe,we,je){if(!oe(we))throw new TypeError;return re(je)||(je=ce(je)),O(fe,we,je)}r("hasOwnMetadata",M);function R(fe,we,je){if(!oe(we))throw new TypeError;return re(je)||(je=ce(je)),U(fe,we,je)}r("getMetadata",R);function L(fe,we,je){if(!oe(we))throw new TypeError;return re(je)||(je=ce(je)),K(fe,we,je)}r("getOwnMetadata",L);function A(fe,we){if(!oe(fe))throw new TypeError;return re(we)||(we=ce(we)),Z(fe,we)}r("getMetadataKeys",A);function H(fe,we){if(!oe(fe))throw new TypeError;return re(we)||(we=ce(we)),Q(fe,we)}r("getOwnMetadataKeys",H);function G(fe,we,je){if(!oe(we))throw new TypeError;re(je)||(je=ce(je));var Re=q(we,je,!1);if(re(Re)||!Re.delete(fe))return!1;if(Re.size>0)return!0;var qe=C.get(we);return qe.delete(je),qe.size>0||C.delete(we),!0}r("deleteMetadata",G);function $(fe,we){for(var je=fe.length-1;je>=0;--je){var Re=fe[je],qe=Re(we);if(!re(qe)&&!de(qe)){if(!Ne(qe))throw new TypeError;we=qe}}return we}function j(fe,we,je,Re){for(var qe=fe.length-1;qe>=0;--qe){var et=fe[qe],ie=et(we,je,Re);if(!re(ie)&&!de(ie)){if(!oe(ie))throw new TypeError;Re=ie}}return Re}function q(fe,we,je){var Re=C.get(fe);if(re(Re)){if(!je)return;Re=new y,C.set(fe,Re)}var qe=Re.get(we);if(re(qe)){if(!je)return;qe=new y,Re.set(we,qe)}return qe}function V(fe,we,je){var Re=O(fe,we,je);if(Re)return!0;var qe=We(we);return de(qe)?!1:V(fe,qe,je)}function O(fe,we,je){var Re=q(we,je,!1);return re(Re)?!1:Ce(Re.has(fe))}function U(fe,we,je){var Re=O(fe,we,je);if(Re)return K(fe,we,je);var qe=We(we);if(!de(qe))return U(fe,qe,je)}function K(fe,we,je){var Re=q(we,je,!1);if(!re(Re))return Re.get(fe)}function Y(fe,we,je,Re){var qe=q(je,Re,!0);qe.set(fe,we)}function Z(fe,we){var je=Q(fe,we),Re=We(fe);if(Re===null)return je;var qe=Z(Re,we);if(qe.length<=0)return je;if(je.length<=0)return qe;for(var et=new x,ie=[],Pe=0,Be=je;Pe<Be.length;Pe++){var He=Be[Pe],Et=et.has(He);Et||(et.add(He),ie.push(He))}for(var Zt=0,yr=qe;Zt<yr.length;Zt++){var He=yr[Zt],Et=et.has(He);Et||(et.add(He),ie.push(He))}return ie}function Q(fe,we){var je=[],Re=q(fe,we,!1);if(re(Re))return je;for(var qe=Re.keys(),et=Xe(qe),ie=0;;){var Pe=le(et);if(!Pe)return je.length=ie,je;var Be=dt(Pe);try{je[ie]=Be}catch(He){try{Ye(et)}finally{throw He}}ie++}}function X(fe){if(fe===null)return 1;switch(typeof fe){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return fe===null?1:6;default:return 6}}function re(fe){return fe===void 0}function de(fe){return fe===null}function J(fe){return typeof fe=="symbol"}function oe(fe){return typeof fe=="object"?fe!==null:typeof fe=="function"}function ee(fe,we){switch(X(fe)){case 0:return fe;case 1:return fe;case 2:return fe;case 3:return fe;case 4:return fe;case 5:return fe}var je="string",Re=Me(fe,a);if(Re!==void 0){var qe=Re.call(fe,je);if(oe(qe))throw new TypeError;return qe}return he(fe)}function he(fe,we){var je,Re,qe;{var et=fe.toString;if(Le(et)){var Re=et.call(fe);if(!oe(Re))return Re}var je=fe.valueOf;if(Le(je)){var Re=je.call(fe);if(!oe(Re))return Re}}throw new TypeError}function Ce(fe){return!!fe}function ye(fe){return""+fe}function ce(fe){var we=ee(fe);return J(we)?we:ye(we)}function Fe(fe){return Array.isArray?Array.isArray(fe):fe instanceof Object?fe instanceof Array:Object.prototype.toString.call(fe)==="[object Array]"}function Le(fe){return typeof fe=="function"}function Ne(fe){return typeof fe=="function"}function $e(fe){switch(X(fe)){case 3:return!0;case 4:return!0;default:return!1}}function Me(fe,we){var je=fe[we];if(je!=null){if(!Le(je))throw new TypeError;return je}}function Xe(fe){var we=Me(fe,c);if(!Le(we))throw new TypeError;var je=we.call(fe);if(!oe(je))throw new TypeError;return je}function dt(fe){return fe.value}function le(fe){var we=fe.next();return we.done?!1:we}function Ye(fe){var we=fe.return;we&&we.call(fe)}function We(fe){var we=Object.getPrototypeOf(fe);if(typeof fe!="function"||fe===v||we!==v)return we;var je=fe.prototype,Re=je&&Object.getPrototypeOf(je);if(Re==null||Re===Object.prototype)return we;var qe=Re.constructor;return typeof qe!="function"||qe===fe?we:qe}function ft(){var fe={},we=[],je=(function(){function ie(Pe,Be,He){this._index=0,this._keys=Pe,this._values=Be,this._selector=He}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[c]=function(){return this},ie.prototype.next=function(){var Pe=this._index;if(Pe>=0&&Pe<this._keys.length){var Be=this._selector(this._keys[Pe],this._values[Pe]);return Pe+1>=this._keys.length?(this._index=-1,this._keys=we,this._values=we):this._index++,{value:Be,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function(Pe){throw this._index>=0&&(this._index=-1,this._keys=we,this._values=we),Pe},ie.prototype.return=function(Pe){return this._index>=0&&(this._index=-1,this._keys=we,this._values=we),{value:Pe,done:!0}},ie})();return(function(){function ie(){this._keys=[],this._values=[],this._cacheKey=fe,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function(Pe){return this._find(Pe,!1)>=0},ie.prototype.get=function(Pe){var Be=this._find(Pe,!1);return Be>=0?this._values[Be]:void 0},ie.prototype.set=function(Pe,Be){var He=this._find(Pe,!0);return this._values[He]=Be,this},ie.prototype.delete=function(Pe){var Be=this._find(Pe,!1);if(Be>=0){for(var He=this._keys.length,Et=Be+1;Et<He;Et++)this._keys[Et-1]=this._keys[Et],this._values[Et-1]=this._values[Et];return this._keys.length--,this._values.length--,Pe===this._cacheKey&&(this._cacheKey=fe,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=fe,this._cacheIndex=-2},ie.prototype.keys=function(){return new je(this._keys,this._values,Re)},ie.prototype.values=function(){return new je(this._keys,this._values,qe)},ie.prototype.entries=function(){return new je(this._keys,this._values,et)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[c]=function(){return this.entries()},ie.prototype._find=function(Pe,Be){return this._cacheKey!==Pe&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Pe)),this._cacheIndex<0&&Be&&(this._cacheIndex=this._keys.length,this._keys.push(Pe),this._values.push(void 0)),this._cacheIndex},ie})();function Re(ie,Pe){return ie}function qe(ie,Pe){return Pe}function et(ie,Pe){return[ie,Pe]}}function ze(){return(function(){function fe(){this._map=new y}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),fe.prototype.has=function(we){return this._map.has(we)},fe.prototype.add=function(we){return this._map.set(we,we),this},fe.prototype.delete=function(we){return this._map.delete(we)},fe.prototype.clear=function(){this._map.clear()},fe.prototype.keys=function(){return this._map.keys()},fe.prototype.values=function(){return this._map.values()},fe.prototype.entries=function(){return this._map.entries()},fe.prototype["@@iterator"]=function(){return this.keys()},fe.prototype[c]=function(){return this.keys()},fe})()}function Nt(){var fe=16,we=h.create(),je=Re();return(function(){function Be(){this._key=Re()}return Be.prototype.has=function(He){var Et=qe(He,!1);return Et!==void 0?h.has(Et,this._key):!1},Be.prototype.get=function(He){var Et=qe(He,!1);return Et!==void 0?h.get(Et,this._key):void 0},Be.prototype.set=function(He,Et){var Zt=qe(He,!0);return Zt[this._key]=Et,this},Be.prototype.delete=function(He){var Et=qe(He,!1);return Et!==void 0?delete Et[this._key]:!1},Be.prototype.clear=function(){this._key=Re()},Be})();function Re(){var Be;do Be="@@WeakMap@@"+Pe();while(h.has(we,Be));return we[Be]=!0,Be}function qe(Be,He){if(!n.call(Be,je)){if(!He)return;Object.defineProperty(Be,je,{value:h.create()})}return Be[je]}function et(Be,He){for(var Et=0;Et<He;++Et)Be[Et]=Math.random()*255|0;return Be}function ie(Be){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Be)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Be)):et(new Uint8Array(Be),Be):et(new Array(Be),Be)}function Pe(){var Be=ie(fe);Be[6]=Be[6]&79|64,Be[8]=Be[8]&191|128;for(var He="",Et=0;Et<fe;++Et){var Zt=Be[Et];(Et===4||Et===6||Et===8)&&(He+="-"),Zt<16&&(He+="0"),He+=Zt.toString(16).toLowerCase()}return He}}function ht(fe){return fe.__=void 0,delete fe.__,fe}})})(e||(e={})),CS}l9();var Ed=(function(){function e(t){this.groups=[],this.each=!1,this.context=void 0,this.type=t.type,this.name=t.name,this.target=t.target,this.propertyName=t.propertyName,this.constraints=t==null?void 0:t.constraints,this.constraintCls=t.constraintCls,this.validationTypeOptions=t.validationTypeOptions,t.validationOptions&&(this.message=t.validationOptions.message,this.groups=t.validationOptions.groups,this.always=t.validationOptions.always,this.each=t.validationOptions.each,this.context=t.validationOptions.context)}return e})(),c9=(function(){function e(){}return e.prototype.transform=function(t){var r=[];return Object.keys(t.properties).forEach(function(n){t.properties[n].forEach(function(o){var a={message:o.message,groups:o.groups,always:o.always,each:o.each},c={type:o.type,name:o.name,target:t.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:a};r.push(new Ed(c))})}),r},e})();function u9(e){return e instanceof Map?Array.from(e.values()):Array.isArray(e)?e:Array.from(e)}function d9(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function Qg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p9=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TS=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],c;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return a},f9=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},eT=(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(t){var r=this,n=new c9().transform(t);n.forEach(function(o){return r.addValidationMetadata(o)})},e.prototype.addValidationMetadata=function(t){var r=this.validationMetadatas.get(t.target);r?r.push(t):this.validationMetadatas.set(t.target,[t])},e.prototype.addConstraintMetadata=function(t){var r=this.constraintMetadatas.get(t.target);r?r.push(t):this.constraintMetadatas.set(t.target,[t])},e.prototype.groupByPropertyName=function(t){var r={};return t.forEach(function(n){r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r},e.prototype.getTargetValidationMetadatas=function(t,r,n,o,a){var c,u,d=function(T){return typeof T.always<"u"?T.always:T.groups&&T.groups.length?!1:n},f=function(T){return!!(o&&(!a||!a.length)&&T.groups&&T.groups.length)},h=this.validationMetadatas.get(t)||[],v=h.filter(function(T){return T.target!==t&&T.target!==r?!1:d(T)?!0:f(T)?!1:a&&a.length>0?T.groups&&!!T.groups.find(function(M){return a.indexOf(M)!==-1}):!0}),m=[];try{for(var y=p9(this.validationMetadatas.entries()),x=y.next();!x.done;x=y.next()){var w=TS(x.value,2),C=w[0],P=w[1];t.prototype instanceof C&&m.push.apply(m,f9([],TS(P),!1))}}catch(T){c={error:T}}finally{try{x&&!x.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}var k=m.filter(function(T){return typeof T.target=="string"||T.target===t||T.target instanceof Function&&!(t.prototype instanceof T.target)?!1:d(T)?!0:f(T)?!1:a&&a.length>0?T.groups&&!!T.groups.find(function(M){return a.indexOf(M)!==-1}):!0}),I=k.filter(function(T){return!v.find(function(M){return M.propertyName===T.propertyName&&M.type===T.type})});return v.concat(I)},e.prototype.getTargetValidatorConstraints=function(t){return this.constraintMetadatas.get(t)||[]},e})();function Hs(){var e=d9();return e.classValidatorMetadataStorage||(e.classValidatorMetadataStorage=new eT),e.classValidatorMetadataStorage}var kS=(function(){function e(){}return e.prototype.toString=function(t,r,n,o){var a=this;t===void 0&&(t=!1),r===void 0&&(r=!1),n===void 0&&(n=""),o===void 0&&(o=!1);var c=t?"\x1B[1m":"",u=t?"\x1B[22m":"",d=function(){var v;return(o?Object.values:Object.keys)((v=a.constraints)!==null&&v!==void 0?v:{}).join(", ")},f=function(v){return" - property ".concat(c).concat(n).concat(v).concat(u," has failed the following constraints: ").concat(c).concat(d()).concat(u,`
|
|
327
|
+
`)};if(r){var h=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?f(h):this.children?this.children.map(function(v){return v.toString(t,!0,"".concat(n).concat(h),o)}).join(""):""}else return"An instance of ".concat(c).concat(this.target?this.target.constructor.name:"an object").concat(u,` has failed the validation:
|
|
328
|
+
`)+(this.constraints?f(this.property):"")+(this.children?this.children.map(function(v){return v.toString(t,!0,a.property,o)}).join(""):"")},e})(),kn=(function(){function e(){}return e.isValid=function(t){var r=this;return t!=="isValid"&&t!=="getMessage"&&Object.keys(this).map(function(n){return r[n]}).indexOf(t)!==-1},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.PROMISE_VALIDATION="promiseValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e})();function h9(e){return Array.isArray(e)?e.join(", "):(typeof e=="symbol"&&(e=e.description),"".concat(e))}var m9=(function(){function e(){}return e.replaceMessageSpecialTokens=function(t,r){var n;return t instanceof Function?n=t(r):typeof t=="string"&&(n=t),n&&Array.isArray(r.constraints)&&r.constraints.forEach(function(o,a){n=n.replace(new RegExp("\\$constraint".concat(a+1),"g"),h9(o))}),n&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n},e})(),mu=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],c;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return a},jS=(function(){function e(t,r){this.validator=t,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=Hs()}return e.prototype.execute=function(t,r,n){var o=this,a,c;!this.metadataStorage.hasValidationMetaData&&((a=this.validatorOptions)===null||a===void 0?void 0:a.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
|
|
329
|
+
- There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
|
|
330
|
+
- This validation runs before any file with validation decorator was parsed by NodeJS.`);var u=this.validatorOptions?this.validatorOptions.groups:void 0,d=this.validatorOptions&&this.validatorOptions.strictGroups||!1,f=this.validatorOptions&&this.validatorOptions.always||!1,h=((c=this.validatorOptions)===null||c===void 0?void 0:c.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,v=this.metadataStorage.getTargetValidationMetadatas(t.constructor,r,f,d,u),m=this.metadataStorage.groupByPropertyName(v);if(h&&!v.length){var y=new kS;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(y.target=t),y.value=void 0,y.property=void 0,y.children=[],y.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push(y);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,m,n),Object.keys(m).forEach(function(x){var w=t[x],C=m[x].filter(function(k){return k.type===kn.IS_DEFINED}),P=m[x].filter(function(k){return k.type!==kn.IS_DEFINED&&k.type!==kn.WHITELIST});w instanceof Promise&&P.find(function(k){return k.type===kn.PROMISE_VALIDATION})?o.awaitingPromises.push(w.then(function(k){o.performValidations(t,k,x,C,P,n)})):o.performValidations(t,w,x,C,P,n)})},e.prototype.whitelist=function(t,r,n){var o=this,a=[];Object.keys(t).forEach(function(c){(!r[c]||r[c].length===0)&&a.push(c)}),a.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?a.forEach(function(c){var u,d=o.generateValidationError(t,t[c],c);d.constraints=(u={},u[kn.WHITELIST]="property ".concat(c," should not exist"),u),d.children=void 0,n.push(d)}):a.forEach(function(c){return delete t[c]}))},e.prototype.stripEmptyErrors=function(t){var r=this;return t.filter(function(n){if(n.children&&(n.children=r.stripEmptyErrors(n.children)),Object.keys(n.constraints).length===0){if(n.children.length===0)return!1;delete n.constraints}return!0})},e.prototype.performValidations=function(t,r,n,o,a,c){var u=a.filter(function(m){return m.type===kn.CUSTOM_VALIDATION}),d=a.filter(function(m){return m.type===kn.NESTED_VALIDATION}),f=a.filter(function(m){return m.type===kn.CONDITIONAL_VALIDATION}),h=this.generateValidationError(t,r,n);c.push(h);var v=this.conditionalValidations(t,r,f);v&&(this.customValidations(t,r,o,h),this.mapContexts(t,r,o,h),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(t,r,u,h),this.nestedValidations(r,d,h),this.mapContexts(t,r,a,h),this.mapContexts(t,r,u,h))))},e.prototype.generateValidationError=function(t,r,n){var o=new kS;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(o.target=t),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(o.value=r),o.property=n,o.children=[],o.constraints={},o},e.prototype.conditionalValidations=function(t,r,n){return n.map(function(o){return o.constraints[0](t,r)}).reduce(function(o,a){return o&&a},!0)},e.prototype.customValidations=function(t,r,n,o){var a=this;n.forEach(function(c){a.metadataStorage.getTargetValidatorConstraints(c.constraintCls).forEach(function(u){if(!(u.async&&a.ignoreAsyncValidations)&&!(a.validatorOptions&&a.validatorOptions.stopAtFirstError&&Object.keys(o.constraints||{}).length>0)){var d={targetName:t.constructor?t.constructor.name:void 0,property:c.propertyName,object:t,value:r,constraints:c.constraints};if(!c.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var f=u.instance.validate(r,d);if(Qg(f)){var h=f.then(function(M){if(!M){var R=mu(a.createValidationError(t,r,c,u),2),L=R[0],A=R[1];o.constraints[L]=A,c.context&&(o.contexts||(o.contexts={}),o.contexts[L]=Object.assign(o.contexts[L]||{},c.context))}});a.awaitingPromises.push(h)}else if(!f){var v=mu(a.createValidationError(t,r,c,u),2),m=v[0],y=v[1];o.constraints[m]=y}return}var x=u9(r),w=x.map(function(M){return u.instance.validate(M,d)}),C=w.some(function(M){return Qg(M)});if(C){var P=w.map(function(M){return Qg(M)?M:Promise.resolve(M)}),k=Promise.all(P).then(function(M){var R=M.every(function(G){return G});if(!R){var L=mu(a.createValidationError(t,r,c,u),2),A=L[0],H=L[1];o.constraints[A]=H,c.context&&(o.contexts||(o.contexts={}),o.contexts[A]=Object.assign(o.contexts[A]||{},c.context))}});a.awaitingPromises.push(k);return}var I=w.every(function(M){return M});if(!I){var T=mu(a.createValidationError(t,r,c,u),2),m=T[0],y=T[1];o.constraints[m]=y}}})})},e.prototype.nestedValidations=function(t,r,n){var o=this;t!==void 0&&r.forEach(function(a){if(!(a.type!==kn.NESTED_VALIDATION&&a.type!==kn.PROMISE_VALIDATION)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(t)||t instanceof Set||t instanceof Map){var c=t instanceof Set?Array.from(t):t;c.forEach(function(v,m){o.performValidations(t,v,m.toString(),[],r,n.children)})}else if(t instanceof Object){var u=typeof a.target=="string"?a.target:a.target.name;o.execute(t,u,n.children)}else{var d=mu(o.createValidationError(a.target,t,a),2),f=d[0],h=d[1];n.constraints[f]=h}})},e.prototype.mapContexts=function(t,r,n,o){var a=this;return n.forEach(function(c){if(c.context){var u=void 0;if(c.type===kn.CUSTOM_VALIDATION){var d=a.metadataStorage.getTargetValidatorConstraints(c.constraintCls);u=d[0]}var f=a.getConstraintType(c,u);o.constraints[f]&&(o.contexts||(o.contexts={}),o.contexts[f]=Object.assign(o.contexts[f]||{},c.context))}})},e.prototype.createValidationError=function(t,r,n,o){var a=t.constructor?t.constructor.name:void 0,c=this.getConstraintType(n,o),u={targetName:a,property:n.propertyName,object:t,value:r,constraints:n.constraints},d=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&o&&o.instance.defaultMessage instanceof Function&&(d=o.instance.defaultMessage(u));var f=m9.replaceMessageSpecialTokens(d,u);return[c,f]},e.prototype.getConstraintType=function(t,r){var n=r&&r.name?r.name:t.type;return n},e})(),g9=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(c){c(a)})}return new(r||(r=Promise))(function(a,c){function u(h){try{f(n.next(h))}catch(v){c(v)}}function d(h){try{f(n.throw(h))}catch(v){c(v)}}function f(h){h.done?a(h.value):o(h.value).then(u,d)}f((n=n.apply(e,t||[])).next())})},y9=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(h){return d([f,h])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,f[0]&&(r=0)),r;)try{if(n=1,o&&(a=f[0]&2?o.return:f[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,f[1])).done)return a;switch(o=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(h){f=[6,h],o=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},PS=(function(){function e(){}return e.prototype.validate=function(t,r,n){return this.coreValidate(t,r,n)},e.prototype.validateOrReject=function(t,r,n){return g9(this,void 0,void 0,function(){var o;return y9(this,function(a){switch(a.label){case 0:return[4,this.coreValidate(t,r,n)];case 1:return o=a.sent(),o.length?[2,Promise.reject(o)]:[2]}})})},e.prototype.validateSync=function(t,r,n){var o=typeof t=="string"?r:t,a=typeof t=="string"?n:r,c=typeof t=="string"?t:void 0,u=new jS(this,a);u.ignoreAsyncValidations=!0;var d=[];return u.execute(o,c,d),u.stripEmptyErrors(d)},e.prototype.coreValidate=function(t,r,n){var o=typeof t=="string"?r:t,a=typeof t=="string"?n:r,c=typeof t=="string"?t:void 0,u=new jS(this,a),d=[];return u.execute(o,c,d),Promise.all(u.awaitingPromises).then(function(){return u.stripEmptyErrors(d)})},e})(),v9=new((function(){function e(){this.instances=[]}return e.prototype.get=function(t){var r=this.instances.find(function(n){return n.type===t});return r||(r={type:t,object:new t},this.instances.push(r)),r.object},e})());function zf(e){return v9.get(e)}var x9=(function(){function e(t,r,n){n===void 0&&(n=!1),this.target=t,this.name=r,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return zf(this.target)},enumerable:!1,configurable:!0}),e})();function b9(e){var t;if(e.validator instanceof Function){t=e.validator;var r=zf(eT).getTargetValidatorConstraints(e.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(e.target.name,":").concat(e.propertyName)}else{var n=e.validator;t=(function(){function a(){}return a.prototype.validate=function(c,u){return n.validate(c,u)},a.prototype.defaultMessage=function(c){return n.defaultMessage?n.defaultMessage(c):""},a})(),Hs().addConstraintMetadata(new x9(t,e.name,e.async))}var o={type:e.name&&kn.isValid(e.name)?e.name:kn.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};Hs().addValidationMetadata(new Ed(o))}function ui(e,t){return function(r){var n=t&&t.each?"each value in ":"";return e(n,r)}}function di(e,t){return function(r,n){b9({name:e.name,target:r.constructor,propertyName:n,options:t,constraints:e.constraints,validator:e.validator})}}var w9="isOptional";function W(e){return function(t,r){var n={type:kn.CONDITIONAL_VALIDATION,name:w9,target:t.constructor,propertyName:r,constraints:[function(o,a){return o[r]!==null&&o[r]!==void 0}],validationOptions:e};Hs().addValidationMetadata(new Ed(n))}}function Do(e,t){return function(r,n){var o={type:kn.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[e],validationOptions:t};Hs().addValidationMetadata(new Ed(o))}}var Fy=function(){return Fy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fy.apply(this,arguments)};function oo(e){var t=Fy({},e),r=t.each?"each value in ":"";return t.message=t.message||r+"nested property $property must be either object or array",function(n,o){var a={type:kn.NESTED_VALIDATION,target:n.constructor,propertyName:o,validationOptions:t};Hs().addValidationMetadata(new Ed(a))}}var Gp={exports:{}},IS;function l0(){return IS||(IS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=t.default,e.exports.default=t.default})(Gp,Gp.exports)),Gp.exports}var Xp={exports:{}},MS;function tT(){return MS||(MS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var a in o)typeof n[a]>"u"&&(n[a]=o[a]);return n}e.exports=t.default,e.exports.default=t.default})(Xp,Xp.exports)),Xp.exports}var Kp={exports:{}},RS;function S9(){return RS||(RS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(o,a){return o.indexOf(a)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(Kp,Kp.exports)),Kp.exports}var C9="isNotEmpty";function E9(e){return e!==""&&e!==null&&e!==void 0}function cs(e){return di({name:C9,validator:{validate:function(t,r){return E9(t)},defaultMessage:ui(function(t){return t+"$property should not be empty"},e)}},e)}var T9="isIn";function k9(e,t){return Array.isArray(t)&&t.some(function(r){return r===e})}function Ue(e,t){return di({name:T9,constraints:[e],validator:{validate:function(r,n){return k9(r,n==null?void 0:n.constraints[0])},defaultMessage:ui(function(r){return r+"$property must be one of the following values: $constraint1"},t)}},t)}var j9="max";function P9(e,t){return typeof e=="number"&&typeof t=="number"&&e<=t}function Qs(e,t){return di({name:j9,constraints:[e],validator:{validate:function(r,n){return P9(r,n==null?void 0:n.constraints[0])},defaultMessage:ui(function(r){return r+"$property must not be greater than $constraint1"},t)}},t)}var I9="min";function M9(e,t){return typeof e=="number"&&typeof t=="number"&&e>=t}function io(e,t){return di({name:I9,constraints:[e],validator:{validate:function(r,n){return M9(r,n==null?void 0:n.constraints[0])},defaultMessage:ui(function(r){return r+"$property must not be less than $constraint1"},t)}},t)}var Qp={exports:{}},AS;function R9(){return AS||(AS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,a){for(var c=0;c<a.length;c++){var u=a[c];if(o===u||r(u)&&u.test(o))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(Qp,Qp.exports)),Qp.exports}var Yp={exports:{}},_S;function A9(){return _S||(_S=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=o(l0()),n=o(tT());function o(u){return u&&u.__esModule?u:{default:u}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function c(u,d){(0,r.default)(u),d=(0,n.default)(d,a),d.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),d.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var f=u.split("."),h=f[f.length-1];return d.require_tld&&(f.length<2||!d.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(h)||/\s/.test(h))||!d.allow_numeric_tld&&/^\d+$/.test(h)?!1:f.every(function(v){return!(v.length>63&&!d.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(v)||/[\uff01-\uff5e]/.test(v)||/^-|-$/.test(v)||!d.allow_underscores&&/_/.test(v))})}e.exports=t.default,e.exports.default=t.default})(Yp,Yp.exports)),Yp.exports}var Jp={exports:{}},LS;function _9(){return LS||(LS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=n(l0());function n(v){return v&&v.__esModule?v:{default:v}}function o(v){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o(v)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",c="(".concat(a,"[.]){3}").concat(a),u=new RegExp("^".concat(c,"$")),d="(?:[0-9a-fA-F]{1,4})",f=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(c,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(c,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(c,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(c,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(c,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(c,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(c,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function h(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(v);var y=(o(m)==="object"?m.version:arguments[1])||"";return y?y.toString()==="4"?u.test(v):y.toString()==="6"?f.test(v):!1:h(v,{version:4})||h(v,{version:6})}e.exports=t.default,e.exports.default=t.default})(Jp,Jp.exports)),Jp.exports}var Zp={exports:{}},OS;function L9(){return OS||(OS=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=P;var r=d(l0()),n=d(R9()),o=d(S9()),a=d(A9()),c=d(_9()),u=d(tT());function d(k){return k&&k.__esModule?k:{default:k}}function f(k,I){return x(k)||y(k,I)||v(k,I)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(k,I){if(k){if(typeof k=="string")return m(k,I);var T={}.toString.call(k).slice(8,-1);return T==="Object"&&k.constructor&&(T=k.constructor.name),T==="Map"||T==="Set"?Array.from(k):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?m(k,I):void 0}}function m(k,I){(I==null||I>k.length)&&(I=k.length);for(var T=0,M=Array(I);T<I;T++)M[T]=k[T];return M}function y(k,I){var T=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(T!=null){var M,R,L,A,H=[],G=!0,$=!1;try{if(L=(T=T.call(k)).next,I!==0)for(;!(G=(M=L.call(T)).done)&&(H.push(M.value),H.length!==I);G=!0);}catch(j){$=!0,R=j}finally{try{if(!G&&T.return!=null&&(A=T.return(),Object(A)!==A))return}finally{if($)throw R}}return H}}function x(k){if(Array.isArray(k))return k}var w={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function P(k,I){if((0,r.default)(k),!k||/[\s<>]/.test(k)||k.indexOf("mailto:")===0||(I=(0,u.default)(I,w),I.validate_length&&k.length>I.max_allowed_length)||!I.allow_fragments&&(0,o.default)(k,"#")||!I.allow_query_components&&((0,o.default)(k,"?")||(0,o.default)(k,"&")))return!1;var T,M,R,L,A,H,G,$;G=k.split("#"),k=G.shift(),G=k.split("?"),k=G.shift();var j=k.match(/^([a-z][a-z0-9+\-.]*):/i),q=!1,V=function(Le){return q=!0,T=Le.toLowerCase(),I.require_valid_protocol&&I.protocols.indexOf(T)===-1?!1:k.substring(j[0].length)};if(j){var O=j[1],U=k.substring(j[0].length),K=U.slice(0,2)==="//";if(K){if(k=V(O),k===!1)return!1}else{var Y=U.indexOf("/"),Z=Y===-1?U:U.substring(0,Y),Q=Z.indexOf("@");if(Q!==-1){var X=Z.substring(0,Q),re=/^[a-zA-Z0-9\-_.%:]*$/,de=re.test(X),J=/%[0-9a-fA-F]{2}/.test(X);if(de&&!J){if(I.require_protocol)return!1}else if(k=V(O),k===!1)return!1}else{var oe=/^[0-9]/.test(U);if(oe){if(I.require_protocol)return!1}else if(k=V(O),k===!1)return!1}}}else if(I.require_protocol)return!1;if(k.slice(0,2)==="//"){if(!q&&!I.allow_protocol_relative_urls)return!1;k=k.slice(2)}if(k==="")return!1;if(G=k.split("/"),k=G.shift(),k===""&&!I.require_host)return!0;if(G=k.split("@"),G.length>1){if(I.disallow_auth||G[0]===""||(M=G.shift(),M.indexOf(":")>=0&&M.split(":").length>2))return!1;var ee=M.split(":"),he=f(ee,2),Ce=he[0],ye=he[1];if(Ce===""&&ye==="")return!1}L=G.join("@"),H=null,$=null;var ce=L.match(C);if(ce?(R="",$=ce[1],H=ce[2]||null):(G=L.split(":"),R=G.shift(),G.length&&(H=G.join(":"))),H!==null&&H.length>0){if(A=parseInt(H,10),!/^[0-9]+$/.test(H)||A<=0||A>65535)return!1}else if(I.require_port)return!1;return I.host_whitelist?(0,n.default)(R,I.host_whitelist):R===""&&!I.require_host?!0:!(!(0,c.default)(R)&&!(0,a.default)(R,I)&&(!$||!(0,c.default)($,6))||(R=R||$,I.host_blacklist&&(0,n.default)(R,I.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(Zp,Zp.exports)),Zp.exports}var O9=L9();const N9=Zf(O9);var $9="isUrl";function B9(e,t){return typeof e=="string"&&N9(e,t)}function Ah(e,t){return di({name:$9,constraints:[e],validator:{validate:function(r,n){return B9(r,n==null?void 0:n.constraints[0])},defaultMessage:ui(function(r){return r+"$property must be a URL address"},t)}},t)}var z9="isBoolean";function D9(e){return e instanceof Boolean||typeof e=="boolean"}function Bt(e){return di({name:z9,validator:{validate:function(t,r){return D9(t)},defaultMessage:ui(function(t){return t+"$property must be a boolean value"},e)}},e)}var F9="isNumber";function H9(e,t){if(t===void 0&&(t={}),typeof e!="number")return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(t.maxDecimalPlaces!==void 0){var r=0;if(e%1!==0&&(r=e.toString().split(".")[1].length),r>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function Pr(e,t){return e===void 0&&(e={}),di({name:F9,constraints:[e],validator:{validate:function(r,n){return H9(r,n==null?void 0:n.constraints[0])},defaultMessage:ui(function(r){return r+"$property must be a number conforming to the specified constraints"},t)}},t)}var V9="isInt";function U9(e){return typeof e=="number"&&Number.isInteger(e)}function Cc(e){return di({name:V9,validator:{validate:function(t,r){return U9(t)},defaultMessage:ui(function(t){return t+"$property must be an integer number"},e)}},e)}var W9="isString";function q9(e){return e instanceof String||typeof e=="string"}function ae(e){return di({name:W9,validator:{validate:function(t,r){return q9(t)},defaultMessage:ui(function(t){return t+"$property must be a string"},e)}},e)}var G9="isArray";function X9(e){return Array.isArray(e)}function dn(e){return di({name:G9,validator:{validate:function(t,r){return X9(t)},defaultMessage:ui(function(t){return t+"$property must be an array"},e)}},e)}var K9="isObject";function Q9(e){return e!=null&&(typeof e=="object"||typeof e=="function")&&!Array.isArray(e)}function Y9(e){return di({name:K9,validator:{validate:function(t,r){return Q9(t)},defaultMessage:ui(function(t){return t+"$property must be an object"},e)}},e)}function J9(e,t,r){return typeof e=="string"?zf(PS).validate(e,t,r):zf(PS).validate(e,t)}var Td=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,rT=Object.getOwnPropertyNames,e7=Object.prototype.hasOwnProperty,t7=(e,t,r)=>t in e?Td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ir=(e,t)=>Td(e,"name",{value:t,configurable:!0}),r7=(e,t)=>function(){return e&&(t=(0,e[rT(e)[0]])(e=0)),t},n7=(e,t)=>{for(var r in t)Td(e,r,{get:t[r],enumerable:!0})},o7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rT(t))!e7.call(e,o)&&o!==r&&Td(e,o,{get:()=>t[o],enumerable:!(n=Z9(t,o))||n.enumerable});return e},i7=e=>o7(Td({},"__esModule",{value:!0}),e),na=(e,t,r)=>(t7(e,typeof t!="symbol"?t+"":t,r),r),nT={};n7(nT,{MustacheTemplateProvider:()=>c0});var Yg,c0,oT=r7({"src/providers/MustacheTemplateProvider.ts"(){Yg=class{constructor(t=1){na(this,"max_passes"),this.max_passes=t,Co.escape=r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}resolve(t,r){if(!t)return"";if(!t.includes("{{"))return t;try{let n=t;for(let o=0;o<this.max_passes;o++){const a=Co.render(n,r);if(a===n)break;n=a}return n}catch(n){throw new Error(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`)}}},ir(Yg,"MustacheTemplateProvider"),c0=Yg}}),ut=(function(e){return e.STRING="string",e.INTEGER="integer",e.NUMBER="number",e.BOOLEAN="boolean",e.OBJECT="object",e.ARRAY="array",e})({}),B=(function(e){return e.TEXT="text",e.TEXTAREA="textarea",e.NUMBER="number",e.INTEGER="integer",e.BOOLEAN="boolean",e.EMAIL="email",e.URL="url",e.IMAGE="image",e.FILE="file",e.DATE="date",e.DATE_TIME="datetime",e.SELECT="select",e.RADIO="radio",e.CHECKBOX="checkbox",e.COLOR="color",e.FORM="form",e.REPEATER="repeater",e.MODEL_REPEATER="model_repeater",e})({}),a7=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,s7=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function iT(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}ir(iT,"isValidUrl");function aT(e,t,r){if(e==null)return null;const{type:n,constraint:o,message:a}=t;switch(n){case"email":if(typeof e!="string"||!a7.test(e))return a||`${r} must be a valid email address`;break;case"url":if(typeof e!="string"||!iT(e))return a||`${r} must be a valid URL`;break;case"uuid":if(typeof e!="string"||!s7.test(e))return a||`${r} must be a valid UUID`;break;case"regex":if(typeof e!="string"||!o.test(e))return a||`${r} must match pattern ${o}`;break;case"minLength":if(typeof e!="string"||e.length<o)return a||`${r} must be at least ${o} characters`;break;case"maxLength":if(typeof e!="string"||e.length>o)return a||`${r} must be at most ${o} characters`;break;case"min":if(typeof e!="number"||e<o)return a||`${r} must be at least ${o}`;break;case"max":if(typeof e!="number"||e>o)return a||`${r} must be at most ${o}`;break;case"int":if(typeof e!="number"||!Number.isInteger(e))return a||`${r} must be an integer`;break;case"positive":if(typeof e!="number"||e<=0)return a||`${r} must be a positive number`;break;case"negative":if(typeof e!="number"||e>=0)return a||`${r} must be a negative number`;break}return null}ir(aT,"validateValue");function Uo(e,t,r,n,o){e.constructor._validators||(e.constructor._validators=[]),e.constructor._validators.push({name:t,type:r,constraint:n,message:o==null?void 0:o.message})}ir(Uo,"addValidatorMetadata");function l7(e){return function(t,r){Uo(t,r,"email",void 0,e)}}ir(l7,"Email");function c7(e){return function(t,r){Uo(t,r,"url",void 0,e)}}ir(c7,"Url");function u7(e){return function(t,r){Uo(t,r,"uuid",void 0,e)}}ir(u7,"Uuid");function d7(e,t){if(!(e instanceof RegExp))throw new Error("@Regex requires a valid RegExp pattern");const r=e.source;return/\([^)]*[+*]\)[+*]|\([^)]*\|[^)]*\)[+*]/.test(r)&&console.warn(`[@qwickapps/schema] Warning: Regex pattern may have ReDoS vulnerability: ${r}. Avoid nested quantifiers like (a+)+ or alternation with quantifiers like (a|b)+`),function(n,o){Uo(n,o,"regex",e,t)}}ir(d7,"Regex");function p7(e,t){if(typeof e!="number"||e<0)throw new Error("@MinLength requires a non-negative number");return function(r,n){Uo(r,n,"minLength",e,t)}}ir(p7,"MinLength");function f7(e,t){if(typeof e!="number"||e<0)throw new Error("@MaxLength requires a non-negative number");return function(r,n){Uo(r,n,"maxLength",e,t)}}ir(f7,"MaxLength");function h7(e,t){if(typeof e!="number")throw new Error("@Min requires a number");return function(r,n){Uo(r,n,"min",e,t)}}ir(h7,"Min");function m7(e,t){if(typeof e!="number")throw new Error("@Max requires a number");return function(r,n){Uo(r,n,"max",e,t)}}ir(m7,"Max");function g7(e){return function(t,r){Uo(t,r,"int",void 0,e)}}ir(g7,"Int");function y7(e){return function(t,r){Uo(t,r,"positive",void 0,e)}}ir(y7,"Positive");function v7(e){return function(t,r){Uo(t,r,"negative",void 0,e)}}ir(v7,"Negative");function x7(e){if(typeof e!="function")throw new Error("@Transform requires a function");return function(t,r){t.constructor._transforms||(t.constructor._transforms=[]),t.constructor._transforms.push({name:r,transform:e})}}ir(x7,"Transform");function b7(e,t){if(typeof e!="function")throw new Error("@Validate requires a validator function");return function(r){return r._classValidators||(r._classValidators=[]),r._classValidators.push({validator:e,message:(t==null?void 0:t.message)||"Validation failed",fields:t==null?void 0:t.fields}),r}}ir(b7,"Validate");function Hy(e,t){if(!t||t.length===0)return e;const r={...e};for(const{name:n,transform:o}of t)if(n in r)try{r[n]=o(r[n],r)}catch(a){console.warn(`[@qwickapps/schema] Transform failed for field '${n}':`,a instanceof Error?a.message:a)}return r}ir(Hy,"applyTransforms");function Vy(e,t){if(!t||t.length===0)return[];const r=[];for(const n of t){const o=e[n.name],a=aT(o,n,n.name);a&&r.push(a)}return r}ir(Vy,"runValidators");function Uy(e,t){if(!t||t.length===0)return[];const r=[];for(const{validator:n,message:o,fields:a}of t)try{const c=n(e);if(c===!1){const u=a!=null&&a.length?`${a.join(", ")}: ${o}`:o;r.push(u)}else if(typeof c=="string"){const u=a!=null&&a.length?`${a.join(", ")}: ${c}`:c;r.push(u)}}catch(c){r.push(`Validation error: ${c.message}`)}return r}ir(Uy,"runClassValidators");function z(e={}){return function(t,r){var n;t.constructor._fields||(t.constructor._fields=[]);const o=Reflect.getMetadata("design:type",t,r);let a=e.dataType;!a&&o&&(o===String?a=ut.STRING:o===Number?a=ut.NUMBER:o===Boolean?a=ut.BOOLEAN:o===Array?a=ut.ARRAY:o===Object&&(a=ut.OBJECT)),t.constructor._fields.push({name:r,dataType:a,required:(n=e.required)!=null?n:!1,defaultValue:e.defaultValue,type:e.type,...e})}}ir(z,"Field");function D(e){return function(t,r){t.constructor._editors||(t.constructor._editors=[]),t.constructor._editors.push({name:r,...e})}}ir(D,"Editor");function Ft(e,t){return function(r){return typeof e=="string"?r.prototype.constructor._schema={name:e,version:t||"1.0.0"}:r.prototype.constructor._schema={version:"1.0.0",...e},r}}ir(Ft,"Schema");var sT=class{static async validate(t){const r=this._fields||[],n=this._editors||[],o=this._validators||[],a=this._transforms||[],c=this._classValidators||[],u=[],d=Hy(t,a);for(const m of r)m.required&&d[m.name]===void 0&&u.push(`Field '${m.name}' is required`);for(const m of n){const y=d[m.name];if(y!=null&&m.validation){const{min:x,max:w,pattern:C,custom:P}=m.validation;if(typeof y=="string"&&(x!==void 0&&y.length<x&&u.push(`${m.name} must be at least ${x} characters`),w!==void 0&&y.length>w&&u.push(`${m.name} must be at most ${w} characters`)),typeof y=="number"&&(x!==void 0&&y<x&&u.push(`${m.name} must be at least ${x}`),w!==void 0&&y>w&&u.push(`${m.name} must be at most ${w}`)),C&&typeof y=="string"&&!C.test(y)&&u.push(`${m.name} must match pattern ${C}`),P){const k=P(y);k!==!0&&u.push(typeof k=="string"?k:`${m.name} failed custom validation`)}}}const f=Vy(d,o);u.push(...f);const h=new this;Object.assign(h,d);let v=[];try{v=await J9(h,{forbidUnknownValues:!1})}catch(m){u.push("Validation failed: "+m.message)}for(const m of v)m.constraints&&u.push(...Object.values(m.constraints));if(u.length===0&&c.length>0){const m=Uy(d,c);u.push(...m)}return{isValid:u.length===0,errors:u,validationErrors:v}}static validateSync(t){const r=this._fields||[],n=this._editors||[],o=this._validators||[],a=this._transforms||[],c=this._classValidators||[],u=[],d=Hy(t,a);for(const h of r)h.required&&d[h.name]===void 0&&u.push(`Field '${h.name}' is required`);for(const h of n){const v=d[h.name];if(v!=null&&h.validation){const{min:m,max:y,pattern:x,custom:w}=h.validation;if(typeof v=="string"&&(m!==void 0&&v.length<m&&u.push(`${h.name} must be at least ${m} characters`),y!==void 0&&v.length>y&&u.push(`${h.name} must be at most ${y} characters`)),typeof v=="number"&&(m!==void 0&&v<m&&u.push(`${h.name} must be at least ${m}`),y!==void 0&&v>y&&u.push(`${h.name} must be at most ${y}`)),x&&typeof v=="string"&&!x.test(v)&&u.push(`${h.name} must match pattern ${x}`),w){const C=w(v);C!==!0&&u.push(typeof C=="string"?C:`${h.name} failed custom validation`)}}}const f=Vy(d,o);if(u.push(...f),u.length===0&&c.length>0){const h=Uy(d,c);u.push(...h)}return{isValid:u.length===0,errors:u}}static getSchema(){const t=this._fields||[],r=this._editors||[],n=this._validators||[],o=this._schema||{name:this.name,version:"1.0.0"},a=Hs(),c=t.map(u=>{const d=r.find(x=>x.name===u.name),f=n.filter(x=>x.name===u.name),v=a.getTargetValidationMetadatas(this,this.prototype,!1,!1).filter(x=>x.propertyName===u.name).map(x=>({type:x.type,constraints:x.constraints})),y=[...f.map(x=>({type:x.type,constraint:x.constraint,message:x.message})),...v];return{name:u.name,data_type:u.dataType,required:u.required||!1,defaultValue:u.defaultValue,type:u.type,editor:d?{field_type:d.field_type,label:d.label,description:d.description,placeholder:d.placeholder,help_text:d.help_text,validation:d.validation}:void 0,...y.length>0&&{validation:y}}});return{name:o.name,version:o.version||"1.0.0",description:o.description,fields:c}}static createWithDefaults(t={}){const r=new this,n=this._fields||[];for(const o of n)o.defaultValue!==void 0&&t[o.name]===void 0&&(r[o.name]=o.defaultValue);return Object.assign(r,t),r}static partial(){const t=this.getSchema();return{...t,name:`Partial${t.name}`,fields:t.fields.map(r=>({...r,required:!1}))}}static pick(...t){const r=this.getSchema(),n=new Set(t);return{...r,name:`Pick${r.name}`,fields:r.fields.filter(o=>n.has(o.name))}}static omit(...t){const r=this.getSchema(),n=new Set(t);return{...r,name:`Omit${r.name}`,fields:r.fields.filter(o=>!n.has(o.name))}}static extend(t){const r=this.getSchema(),n=Object.entries(t).map(([o,a])=>{var c;return{name:o,data_type:typeof a.type=="string"&&Object.values(ut).includes(a.type)?a.type:ut.OBJECT,required:(c=a.required)!=null?c:!1,defaultValue:a.defaultValue,type:typeof a.type=="string"?a.type:void 0}});return{...r,name:`Extended${r.name}`,fields:[...r.fields,...n]}}static validateAgainstSchema(t,r){var n;const o=[];for(const a of r.fields){const c=t[a.name];if(a.required&&c===void 0){o.push(`Field '${a.name}' is required`);continue}if(c!==void 0&&(n=a.editor)!=null&&n.validation){const{min:u,max:d,pattern:f}=a.editor.validation;typeof c=="string"&&(u!==void 0&&c.length<u&&o.push(`${a.name} must be at least ${u} characters`),d!==void 0&&c.length>d&&o.push(`${a.name} must be at most ${d} characters`)),typeof c=="number"&&(u!==void 0&&c<u&&o.push(`${a.name} must be at least ${u}`),d!==void 0&&c>d&&o.push(`${a.name} must be at most ${d}`)),f&&typeof c=="string"&&!f.test(c)&&o.push(`${a.name} must match pattern ${f}`)}}return{isValid:o.length===0,errors:o}}};ir(sT,"Model");var mr=sT,lT=class{constructor(t,r){na(this,"field",{}),this.field.name=t,this.field.data_type=r,this.field.required=!1}required(t=!0){return this.field.required=t,this}defaultValue(t){return this.field.defaultValue=t,this}type(t){return this.field.type=t,this}editor(t){return this.field.editor={field_type:B.TEXT,label:this.field.name||"",description:"",...t},this}textEditor(t,r,n){return this.editor({field_type:B.TEXT,label:t,description:r,placeholder:n})}textareaEditor(t,r,n){return this.editor({field_type:B.TEXTAREA,label:t,description:r,placeholder:n})}selectEditor(t,r,n){return this.editor({field_type:B.SELECT,label:t,description:r,validation:{options:n}})}validation(t){return this.field.editor||(this.field.editor={field_type:B.TEXT,label:this.field.name||"",description:""}),this.field.editor.validation=t,this}build(){var t;if(!this.field.name||!this.field.data_type)throw new Error("Field name and data_type are required");return{name:this.field.name,data_type:this.field.data_type,required:(t=this.field.required)!=null?t:!1,defaultValue:this.field.defaultValue,type:this.field.type,editor:this.field.editor}}};ir(lT,"FieldBuilder");var w7=lT,cT=class{constructor(t,r="1.0.0"){na(this,"schema",{fields:[]}),this.schema.name=t,this.schema.version=r}description(t){return this.schema.description=t,this}field(t,r){const n=new w7(t,r),o=n.build.bind(n);return n.build=()=>{const a=o();return this.schema.fields.push(a),a},n}addField(t){return this.schema.fields.push(t),this}addFields(t){return this.schema.fields.push(...t),this}uses(...t){return this.schema.uses||(this.schema.uses=[]),this.schema.uses.push(...t),this}build(){if(!this.schema.name||!this.schema.version)throw new Error("Schema name and version are required");if(!this.schema.fields||this.schema.fields.length===0)throw new Error("Schema must have at least one field");return{name:this.schema.name,version:this.schema.version,description:this.schema.description,uses:this.schema.uses,models:this.schema.models,fields:this.schema.fields}}};ir(cT,"SchemaBuilder");var S7=cT;function C7(e,t="1.0.0"){return new S7(e,t)}ir(C7,"createSchema");var uT=class{constructor(t={}){na(this,"cache",new Map),na(this,"config"),this.config={maxSize:100,defaultTtl:300*1e3,enableLogging:!1,...t},this.log("MemoryCacheProvider initialized",{config:this.config})}get(t){const r=this.cache.get(t);if(!r)return this.log(`Cache miss: ${t}`),null;const n=Date.now(),o=r.ttl||this.config.defaultTtl;return n-r.timestamp>o?(this.cache.delete(t),this.log(`Cache expired: ${t}`),null):(this.cache.delete(t),this.cache.set(t,r),this.log(`Cache hit: ${t}`),r.data)}set(t,r,n){if(this.cache.has(t)&&this.cache.delete(t),this.cache.size>=this.config.maxSize){const a=this.cache.keys().next().value;a&&(this.cache.delete(a),this.log(`LRU evicted: ${a}`))}const o={data:r,timestamp:Date.now(),ttl:n};this.cache.set(t,o),this.log(`Cache set: ${t}`,{ttl:n||this.config.defaultTtl})}clear(t){t?this.cache.delete(t)&&this.log(`Cache cleared: ${t}`):(this.cache.clear(),this.log("Cache cleared completely"))}getStats(){return{size:this.cache.size,maxSize:this.config.maxSize,keys:Array.from(this.cache.keys())}}cleanup(){const t=Date.now();let r=0;for(const[n,o]of this.cache.entries()){const a=o.ttl||this.config.defaultTtl;t-o.timestamp>a&&(this.cache.delete(n),r++)}return r>0&&this.log(`Cleanup removed ${r} expired entries`),r}log(t,r){this.config.enableLogging&&console.log(`[MemoryCacheProvider] ${t}`,r||"")}};ir(uT,"MemoryCacheProvider");var Df=uT,dT=class{constructor(t,r=!0){na(this,"cacheProvider"),na(this,"provider"),na(this,"config");var n,o,a;if(this.provider=t,r===!1)this.cacheProvider=null,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if(r===!0)this.cacheProvider=new Df,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if("get"in r&&"set"in r)this.cacheProvider=r,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else{const c=r;this.cacheProvider=new Df({maxSize:c.maxSize,defaultTtl:c.defaultTTL,enableLogging:c.enableLogging}),this.config={defaultTTL:(n=c.defaultTTL)!=null?n:300*1e3,maxSize:(o=c.maxSize)!=null?o:100,enableLogging:(a=c.enableLogging)!=null?a:!1}}}async get(t){if(!this.cacheProvider)return await this.provider.get(t);const r=`get:${t}`,n=this.cacheProvider.get(r);if(n)return this.log(`Cache hit for get(${t})`),{...await this.provider.get(t),data:n,cached:!0};this.log(`Cache miss for get(${t}), fetching from provider`);const o=await this.provider.get(t);return o.data&&this.cacheProvider.set(r,o.data,this.config.defaultTTL),{...o,cached:!1}}async select(t,r={}){if(!this.cacheProvider)return await this.provider.select(t,r);const n=`select:${t}:${JSON.stringify(r)}`,o=this.cacheProvider.get(n);if(o)return this.log(`Cache hit for select(${t})`),{...await this.provider.select(t,r),data:o,cached:!0};this.log(`Cache miss for select(${t}), fetching from provider`);const a=await this.provider.select(t,r);return a.data&&this.cacheProvider.set(n,a.data,this.config.defaultTTL),{...a,cached:!1}}clearCache(t){var r,n;if(!this.cacheProvider){this.log("No cache provider, nothing to clear");return}if(t)if(t.includes("*")){const o=(n=(r=this.cacheProvider).getStats)==null?void 0:n.call(r);if(o){const a=t.replace(/\*/g,".*"),c=new RegExp(a);for(const u of o.keys)c.test(u)&&(this.cacheProvider.clear(u),this.log(`Cleared cache key: ${u}`))}else this.log("Cache provider does not support pattern clearing")}else this.cacheProvider.clear(t),this.log(`Cleared cache key: ${t}`);else this.cacheProvider.clear(),this.log("Cleared all cache")}getCacheStats(){var t,r,n,o,a,c;if(!this.cacheProvider)return{totalEntries:0,validEntries:0,expiredEntries:0,maxSize:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!1};const u=(r=(t=this.cacheProvider).getStats)==null?void 0:r.call(t);return{totalEntries:(n=u==null?void 0:u.size)!=null?n:0,validEntries:(o=u==null?void 0:u.size)!=null?o:0,expiredEntries:0,maxSize:(a=u==null?void 0:u.maxSize)!=null?a:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!0,keys:(c=u==null?void 0:u.keys)!=null?c:[]}}setCacheEntryManually(t,r,n){if(!this.cacheProvider){this.log("No cache provider, cannot set cache entry manually");return}this.cacheProvider.set(t,r,n||this.config.defaultTTL),this.log(`Manually set cache entry: ${t} (TTL: ${n||this.config.defaultTTL}ms)`)}log(t){this.config.enableLogging&&console.log(`[CachedDataProvider] ${t}`)}};ir(dT,"CachedDataProvider");var NS=dT,E7=class{constructor(t={},r=!0,n=1){if(na(this,"data"),t=this.convertDottedNotation(t.data||t),r){const{MustacheTemplateProvider:o}=(oT(),i7(nT)),a=new o(n);for(const c of Object.keys(t)){const u=t[c];if(typeof u=="string")t[c]=a.resolve(u,t);else if(typeof u=="object"){const d=JSON.stringify(u),f=a.resolve(d,t);t[c]=JSON.parse(f)}}}this.data=t}async get(t){const r=this.getValueByPath(t);return r===void 0?{data:void 0}:{data:Array.isArray(r)?r[0]:r,cached:!1,meta:{schema:this.inferModelName(t),version:"1.0.0",slug:t}}}async select(t,r={}){`${t}${JSON.stringify(r)}`;let o=this.findItemsBySchema(t);r.filters&&(o=this.applyFilters(o,r.filters)),r.sort&&r.sort!=="none"&&r.orderBy&&(o=this.applySorting(o,r.orderBy,r.sort));const a=o.length,c=r.offset||0,u=r.limit||a,f=o.slice(c,c+u).map(h=>h);return{data:f,cached:!1,meta:{schema:t,version:"1.0.0",total:a,offset:c,limit:Math.min(u,f.length)}}}updateData(t){this.data=this.convertDottedNotation(t)}convertDottedNotation(t){const r={};for(const[n,o]of Object.entries(t))if(n.includes(".")){const a=n.split(".");let c=r;for(let d=0;d<a.length-1;d++){const f=a[d];c[f]||(c[f]={}),c=c[f]}const u=a[a.length-1];c[u]=o}else o&&typeof o=="object"&&!Array.isArray(o)?r[n]=this.convertDottedNotation(o):r[n]=o;return r}getValueByPath(t){const r=t.replace(/^\//,"").split(/[/.]/);let n=this.data;for(const o of r){if(n==null)return;if(Array.isArray(n)&&!isNaN(Number(o)))n=n[Number(o)];else if(typeof n=="object"&&n!==null)n=n[o];else return}return n}findItemsBySchema(t){const r=[];return this.data[t]&&Array.isArray(this.data[t])&&r.push(...this.data[t]),this.searchObjectForSchema(this.data,t,r),r}searchObjectForSchema(t,r,n){typeof t!="object"||t===null||(Array.isArray(t)?t.forEach(o=>this.searchObjectForSchema(o,r,n)):((t.modelName===r||t.schema===r)&&n.push(t),Object.values(t).forEach(o=>{this.searchObjectForSchema(o,r,n)})))}applyFilters(t,r){return t.filter(n=>Object.entries(r).every(([o,a])=>this.getValueByPath.call({data:n},o)===a))}applySorting(t,r,n){return[...t].sort((o,a)=>{const c=this.getValueByPath.call({data:o},r),u=this.getValueByPath.call({data:a},r);return c<u?n==="asc"?-1:1:c>u?n==="asc"?1:-1:0})}inferModelName(t){return t.replace(/^\//,"").split("/")[0]||"unknown"}generateSlug(t,r){return`/${t.toLowerCase()}/${r}`}};ir(E7,"JsonDataProvider");oT();const T7=Se([l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),k7=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),pT=Se(l.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),j7=Se(l.jsx("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3m-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),$S=Se(l.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),P7=Se(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),BS=Se(l.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),I7=Se(l.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),zS=Se(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),DS=Se(l.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),M7=Se(l.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),_h=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),FS=Se(l.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"})),HS=Se(l.jsx("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"})),R7=Se(l.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),VS=Se(l.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),A7=Se(l.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),_7=Se(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),fT=Se(l.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Di=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),L7=Se(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),O7=Se(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),N7=Se(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"})),US=Se(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"})),WS=Se(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),hT=Se(l.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),mT=Se(l.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),$7=Se(l.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),u0=Se(l.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),qS=Se(l.jsx("path",{d:"M12 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-.1"})),B7=Se(l.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),Lh=Se(l.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Wy=Se(l.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),z7=Se(l.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),Ff=Se(l.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),Jg=Se(l.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),Wo=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),D7=Se(l.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),F7=Se(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),H7=Se(l.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),V7=Se(l.jsx("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"})),qy=Se(l.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),U7=Se(l.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),W7=Se(l.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),q7=Se(l.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),G7=Se(l.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),gT=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),X7=Se(l.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),yT=Se(l.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),K7=Se(l.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Gy=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),Zg=Se(l.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Q7=Se(l.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"})),Y7=Se(l.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),J7=Se(l.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z"})),Z7=Se(l.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),eB=Se(l.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),tB=Se(l.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})),rB=Se(l.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),nB=Se(l.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"})),wf=Se(l.jsx("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-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.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 0s.39-1.03 0-1.41zm12.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.41zm1.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.41s1.03.39 1.41 0zM7.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.41s1.03.39 1.41 0z"})),oB=Se(l.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),ql=Se(l.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),Xy=Se(l.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),GS=Se(l.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"})),iB=Se(l.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),aB=Se(l.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),sB=Se([l.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),l.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),vT=Se(l.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"})),lB=Se(l.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),cB=Se(l.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),xT=Se(l.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"})),uB=Se(l.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),dB=Se(l.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),pB=Se(l.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),XS=Se(l.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),ac=Se(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),fB=Se([l.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),l.jsx("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),hB=Se(l.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"})),mB=Se(l.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),sc=Se(l.jsx("path",{d:"M8 5v14l11-7z"})),gB=Se([l.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),l.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),KS=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),Ys=Se(l.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),yB=Se(l.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"})),vB=Se(l.jsx("path",{d:"M12 2.5s4.5 2.04 4.5 10.5c0 2.49-1.04 5.57-1.6 7H9.1c-.56-1.43-1.6-4.51-1.6-7C7.5 4.54 12 2.5 12 2.5m2 8.5c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-6.31 9.52c-.48-1.23-1.52-4.17-1.67-6.87l-1.13.75c-.56.38-.89 1-.89 1.67V22zM20 22v-5.93c0-.67-.33-1.29-.89-1.66l-1.13-.75c-.15 2.69-1.2 5.64-1.67 6.87z"})),xB=Se(l.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"})),bB=Se(l.jsx("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"})),d0=Se(l.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),Oh=Se(l.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),wB=Se(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),p0=Se(l.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),QS=Se(l.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),SB=Se(l.jsx("path",{d:"M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.66 1.34 3 3 3M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),CB=Se(l.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),EB=Se(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"})),ef=Se(l.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),bT=Se(l.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),TB=Se(l.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),kB=Se(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"})),f0=Se(l.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),jB=Se([l.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),l.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),l.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),l.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),PB=Se(l.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),IB=Se(l.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),MB=Se(l.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),RB=Se(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),wT=Se(l.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),Ky=Se(l.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),AB=Se(l.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),ed=Se(l.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),ST=Se(l.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),Hf=Se(l.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"})),_B=Se(l.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"})),LB=Se(l.jsx("path",{d:"M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"}));var ti;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(ti||(ti={}));var OB=(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addTransformMetadata=function(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)},e.prototype.addExposeMetadata=function(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addExcludeMetadata=function(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.findTransformMetadatas=function(t,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(function(o){return!o.options||o.options.toClassOnly===!0&&o.options.toPlainOnly===!0?!0:o.options.toClassOnly===!0?n===ti.CLASS_TO_CLASS||n===ti.PLAIN_TO_CLASS:o.options.toPlainOnly===!0?n===ti.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(t,r){return this.findMetadata(this._excludeMetadatas,t,r)},e.prototype.findExposeMetadata=function(t,r){return this.findMetadata(this._exposeMetadatas,t,r)},e.prototype.findExposeMetadataByCustomName=function(t,r){return this.getExposedMetadatas(t).find(function(n){return n.options&&n.options.name===r})},e.prototype.findTypeMetadata=function(t,r){return this.findMetadata(this._typeMetadatas,t,r)},e.prototype.getStrategy=function(t){var r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),o=this._exposeMetadatas.get(t),a=o&&o.get(void 0);return n&&a||!n&&!a?"none":n?"excludeAll":"exposeAll"},e.prototype.getExposedMetadatas=function(t){return this.getMetadata(this._exposeMetadatas,t)},e.prototype.getExcludedMetadatas=function(t){return this.getMetadata(this._excludeMetadatas,t)},e.prototype.getExposedProperties=function(t,r){return this.getExposedMetadatas(t).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===ti.CLASS_TO_CLASS||r===ti.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===ti.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},e.prototype.getExcludedProperties=function(t,r){return this.getExcludedMetadatas(t).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===ti.CLASS_TO_CLASS||r===ti.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===ti.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(t,r){var n=t.get(r),o;n&&(o=Array.from(n.values()).filter(function(v){return v.propertyName!==void 0}));for(var a=[],c=0,u=this.getAncestors(r);c<u.length;c++){var d=u[c],f=t.get(d);if(f){var h=Array.from(f.values()).filter(function(v){return v.propertyName!==void 0});a.push.apply(a,h)}}return a.concat(o||[])},e.prototype.findMetadata=function(t,r,n){var o=t.get(r);if(o){var a=o.get(n);if(a)return a}for(var c=0,u=this.getAncestors(r);c<u.length;c++){var d=u[c],f=t.get(d);if(f){var h=f.get(n);if(h)return h}}},e.prototype.findMetadatas=function(t,r,n){var o=t.get(r),a;o&&(a=o.get(n));for(var c=[],u=0,d=this.getAncestors(r);u<d.length;u++){var f=d[u],h=t.get(f);h&&h.has(n)&&c.push.apply(c,h.get(n))}return c.slice().reverse().concat((a||[]).slice().reverse())},e.prototype.getAncestors=function(t){if(!t)return[];if(!this._ancestorsMap.has(t)){for(var r=[],n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)},e})(),NB=new OB;function ao(e,t){return t===void 0&&(t={}),function(r,n){var o=Reflect.getMetadata("design:type",r,n);NB.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:o,typeFunction:e,options:t})}}var YS={};const Qy={xs:0,sm:600,md:900,lg:1200,xl:1536},JS={"extra-small":"xs",small:"sm",medium:"md",large:"lg","extra-large":"xl"};function ZS(e){return e===!1||e===void 0?!1:e in Qy?e:e in JS?JS[e]:"lg"}const $B={width:{tiny:120,small:200,medium:300,large:400,"x-large":500,huge:600},height:{tiny:200,small:300,medium:400,large:500,"x-large":600,huge:800},maxWidth:{tiny:300,small:600,medium:900,large:1200,"x-large":1536,huge:1920},maxHeight:{tiny:200,small:400,medium:600,large:800,"x-large":1e3,huge:1200},minWidth:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500},minHeight:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500}},BB=/^(\d+(\.\d+)?(px|%|em|rem|vh|vw|fr|ch|ex)|auto|inherit|initial|unset|min-content|max-content|fit-content)$/;function Oo(e,t="width"){if(e==null)return;if(typeof e=="number")return e;if(e==="auto")return"auto";if(e==="grow")return"1";const r=$B[t];if(r&&e in r)return r[e];if((t==="maxWidth"||t==="width")&&e in Qy)return Qy[e];if(typeof e=="string")return BB.test(e)||console.warn(`[QwickApps] Invalid CSS dimension value: "${e}". Using as-is but consider using a valid CSS value or t-shirt size.`),e}function zB(e){return{width:Oo(e.width,"width"),height:Oo(e.height,"height"),minWidth:Oo(e.minWidth,"minWidth"),minHeight:Oo(e.minHeight,"minHeight"),maxWidth:Oo(e.maxWidth,"maxWidth"),maxHeight:Oo(e.maxHeight,"maxHeight")}}const gu={none:0,tiny:.5,small:1,medium:2,large:3,huge:4},e2=/^(\d+(\.\d+)?(px|em|rem|%)|0|auto|inherit|initial|unset)$/;function Ln(e){if(e!=null){if(typeof e=="number")return e;if(e in gu)return gu[e];if(typeof e=="string"){const t=e.split(" ");return t.length>1&&t.every(n=>e2.test(n)||n in gu)?t.map(n=>n in gu?`${gu[n]*8}px`:n).join(" "):(e2.test(e)||console.warn(`[QwickApps] Invalid CSS spacing value: "${e}". Using as-is but consider using a valid CSS value or t-shirt size.`),e)}}}function DB(e){const t={};return e.padding!==void 0&&(t.p=Ln(e.padding)),e.paddingTop!==void 0&&(t.pt=Ln(e.paddingTop)),e.paddingRight!==void 0&&(t.pr=Ln(e.paddingRight)),e.paddingBottom!==void 0&&(t.pb=Ln(e.paddingBottom)),e.paddingLeft!==void 0&&(t.pl=Ln(e.paddingLeft)),e.paddingX!==void 0&&(t.px=Ln(e.paddingX)),e.paddingY!==void 0&&(t.py=Ln(e.paddingY)),e.margin!==void 0&&(t.m=Ln(e.margin)),e.marginTop!==void 0&&(t.mt=Ln(e.marginTop)),e.marginRight!==void 0&&(t.mr=Ln(e.marginRight)),e.marginBottom!==void 0&&(t.mb=Ln(e.marginBottom)),e.marginLeft!==void 0&&(t.ml=Ln(e.marginLeft)),e.marginX!==void 0&&(t.mx=Ln(e.marginX)),e.marginY!==void 0&&(t.my=Ln(e.marginY)),t}const Bn=Symbol("QwickAppComponent");function In(e){const{span:t,xs:r,sm:n,md:o,lg:a,xl:c,className:u,sx:d,style:f,width:h,height:v,minWidth:m,minHeight:y,maxWidth:x,maxHeight:w,padding:C,paddingTop:P,paddingRight:k,paddingBottom:I,paddingLeft:T,paddingX:M,paddingY:R,margin:L,marginTop:A,marginRight:H,marginBottom:G,marginLeft:$,marginX:j,marginY:q,background:V,backgroundImage:O,backgroundGradient:U,textAlign:K,id:Y,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":de,onClick:J,onMouseEnter:oe,onMouseLeave:ee,onFocus:he,onBlur:Ce,...ye}=e,ce=b.useMemo(()=>t||r||n||o||a||c?{span:t,xs:t||r,sm:t||n,md:t||o,lg:t||a,xl:t||c}:null,[t,r,n,o,a,c]),Fe=b.useMemo(()=>zB({width:h,height:v,minWidth:m,minHeight:y,maxWidth:x,maxHeight:w}),[h,v,m,y,x,w]),Le=b.useMemo(()=>DB({padding:C,paddingTop:P,paddingRight:k,paddingBottom:I,paddingLeft:T,paddingX:M,paddingY:R,margin:L,marginTop:A,marginRight:H,marginBottom:G,marginLeft:$,marginX:j,marginY:q}),[C,P,k,I,T,M,R,L,A,H,G,$,j,q]),Ne=b.useMemo(()=>{const Xe={};return U?Xe.background=U:O?(Xe.backgroundImage=`url(${O})`,Xe.backgroundSize="cover",Xe.backgroundPosition="center",Xe.backgroundRepeat="no-repeat"):V&&(Xe.background=V),K&&(Xe.textAlign=K),Xe},[V,O,U,K]),$e=b.useMemo(()=>({...Fe,...Le,...Ne,...d}),[Fe,Le,Ne,d]);return{gridProps:ce,styleProps:{className:u,sx:$e,style:f},htmlProps:{id:Y,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":de,onClick:J,onMouseEnter:oe,onMouseLeave:ee,onFocus:he,onBlur:Ce},restProps:ye}}class FB{constructor(t){this.name=t}debug(t,...r){console.debug(`[${this.name}] ${t}`,...r)}info(t,...r){console.info(`[${this.name}] ${t}`,...r)}warn(t,...r){console.warn(`[${this.name}] ${t}`,...r)}error(t,...r){console.error(`[${this.name}] ${t}`,...r)}}function wi(e){try{return require("@qwickapps/logging").getLogger(e)}catch{return new FB(e)}}const HB={scaffold:wi("Scaffold"),navigation:wi("Navigation"),auth:wi("Auth"),theme:wi("Theme"),palette:wi("Palette"),form:wi("Form"),layout:wi("Layout"),menu:wi("Menu"),router:wi("Router")};class VB{constructor(t){this.log=wi("ContentResolver"),this.enableLogging=t.enableLogging||!1,this.templateResolver=t.templateResolver||new c0,t.cacheProvider===!0?(new Df({enableLogging:t.enableLogging||!1}),this.dataProvider=new NS(t.dataProvider)):t.cacheProvider===!1?this.dataProvider=t.dataProvider:(new Df({enableLogging:t.enableLogging||!1}),this.dataProvider=new NS(t.dataProvider)),this.log.debug("ContentResolver initialized",{dataProvider:t.dataProvider?t.dataProvider.constructor.name:"none",templateResolver:this.templateResolver.constructor.name,cacheProvider:t.cacheProvider?t.cacheProvider===!0?"MemoryCacheProvider(default)":t.cacheProvider.constructor.name:"disabled"})}async get(t){return this.dataProvider.get(t)}async select(t,r){return this.dataProvider.select(t,r)}async resolveTemplate(t){if(this.log.debug(`Resolving template: ${t}`),!t||!t.includes("{{"))return t;const r=await this.createLazyContext(t);try{const n=this.templateResolver.resolve(t,r);return this.log.debug(`Template resolved: ${t} -> ${n}`),n}catch(n){throw this.log.debug(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`),n}}async createLazyContext(t){const r=/\{\{([^}]+)\}\}/g,n=Array.from(t.matchAll(r)),o=new Set;for(const c of n){const u=c[1].trim(),[d]=u.split(".");o.add(d)}const a={};for(const c of o)try{const u=await this.select(c);if(u.data&&u.data.length>0)a[c]=u.data[0];else{const d=await this.get(c);d.data&&(a[c]=d.data)}}catch(u){this.log.error(`Failed to load data for ${c}: ${u instanceof Error?u.message:String(u)}`)}return a}}const h0=b.createContext(null);function UB({dataSource:e,children:t}){const r=new VB(e),n={provider:r,get:async o=>{const a=await r.get(o);return a&&a.data?a.data:void 0},select:async(o,a)=>{const c=await r.select(o,a);return c&&Array.isArray(c.data)?c.data:[]},resolveTemplate:o=>r.resolveTemplate(o)};return l.jsx(h0.Provider,{value:n,children:t})}function WB(){const e=b.useContext(h0);if(!e)throw new Error("useDataContext must be used within a DataProvider. Did you wrap your component with <DataProvider>?");return e}function qB(e){const t=b.useContext(h0),[r,n]=b.useState(void 0),[o,a]=b.useState(!0),[c,u]=b.useState(null);return b.useEffect(()=>{if(!t){a(!1);return}(async()=>{if(!e){a(!1);return}try{a(!0),u(null);const f=await t.get(e);n(f),a(!1)}catch(f){u(f instanceof Error?f:new Error(String(f))),a(!1)}})()},[t,e]),t?{data:r,loading:o,error:c}:{data:void 0,loading:!1,error:null}}function GB(e){const{resolveTemplate:t}=WB(),[r,n]=b.useState(e),[o,a]=b.useState(!1),[c,u]=b.useState(null);return b.useEffect(()=>{let d=!0;async function f(){if(!e){n(e);return}try{a(!0),u(null);const h=await t(e);d&&(n(h),a(!1))}catch(h){d&&(u(h instanceof Error?h:new Error(String(h))),n(e),a(!1))}}return f(),()=>{d=!1}},[e,t]),{resolved:r,loading:o,error:c}}function CT(e){const{resolved:t,loading:r,error:n}=GB(e);return r?null:n?`[Template Error: ${n.message}]`:t}function ku(e,...t){const r=String.raw(e,...t),n=()=>CT(r);return l.jsx(n,{})}ku.wrap=e=>(t,...r)=>{const n=String.raw(t,...r),o=()=>{const a=CT(n);return a?l.jsx(e,{children:a}):null};return l.jsx(o,{})};function Fi(e,t){const r=e&&e.trim().length>0,n=qB(r?e:""),o=b.useMemo(()=>!r||n.data===void 0?t||{}:{...t||{},...n.data},[r,n.data,t]);return{...o,$loading:n.loading,$error:n.error,$dataSource:e,$cached:!1,...Object.prototype.hasOwnProperty.call(o,"loading")?{}:{loading:n.loading},...Object.prototype.hasOwnProperty.call(o,"error")?{}:{error:n.error},cached:!1}}const ET=Lt.createContext({appName:"QwickApps",logo:void 0,appId:!0,enableScaffolding:!1,navigationItems:[],appBar:void 0,showAppBar:!0,appBarHeight:64,showThemeSwitcher:!1,showPaletteSwitcher:!1,updateConfig:()=>{}}),m0=()=>{const e=Lt.useContext(ET);if(!e)throw new Error("useQwickApp must be used within a QwickApp provider");return e},XB=e=>{if(typeof document>"u"||typeof window>"u")return;document.documentElement.setAttribute("data-theme",e),window.dispatchEvent(new CustomEvent("themeChange",{detail:{theme:e}}))},KB={id:"default",name:"Default",description:"Classic blue and neutral colors",primaryColor:"#007bff"},QB={id:"autumn",name:"Autumn",description:"Warm oranges and golden yellows",primaryColor:"#ea580c"},YB={id:"ocean",name:"Ocean",description:"Deep blues and aqua teals",primaryColor:"#0891b2"},JB={id:"spring",name:"Spring",description:"Fresh greens and soft pinks",primaryColor:"#16a34a"},ZB={id:"winter",name:"Winter",description:"Cool blues and icy whites",primaryColor:"#0077be"},ez={id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",primaryColor:"#8b5cf6"},tz=[KB,YB,ez,ZB,QB,JB],t2=e=>{if(!e||typeof window>"u")return null;try{const t=localStorage.getItem(e);if(t&&["light","dark","system"].includes(t))return t}catch(t){console.warn("[persistenceUtils] Theme localStorage read failed:",t)}return null},rz=(e,t)=>{if(!(!e||typeof window>"u"))try{localStorage.setItem(e,t)}catch(r){console.warn("[persistenceUtils] Theme localStorage write failed:",r)}},nz=e=>{if(!(!e||typeof window>"u"))try{localStorage.removeItem(e)}catch(t){console.warn("[persistenceUtils] Theme localStorage clear failed:",t)}},r2=(e,t)=>{if(!e||typeof window>"u")return null;try{const r=localStorage.getItem(e);if(r&&t.includes(r))return r}catch(r){console.warn("[persistenceUtils] Palette localStorage read failed:",r)}return null},oz=(e,t)=>{if(!(!e||typeof window>"u"))try{localStorage.setItem(e,t)}catch(r){console.warn("[persistenceUtils] Palette localStorage write failed:",r)}},iz=e=>{if(!(!e||typeof window>"u"))try{localStorage.removeItem(e)}catch(t){console.warn("[persistenceUtils] Palette localStorage clear failed:",t)}},az={enableRemote:!0,remoteUrl:"https://qwickapps.com/palettes/manifest.json",localPath:"/palettes/manifest.json"};let _l=null,n2=!1;async function o2(e){try{const t=await fetch(e,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!t.ok)return console.warn(`[PaletteManifest] Failed to fetch from ${e}: ${t.status} ${t.statusText}`),null;const r=await t.json();return!r.version||!Array.isArray(r.palettes)?(console.warn(`[PaletteManifest] Invalid manifest structure from ${e}`),null):r}catch{return null}}function sz(...e){const t=new Map;let r="0.0.0";for(const n of e)if(n){n.version>r&&(r=n.version);for(const o of n.palettes)t.set(o.id,o)}return{version:r,palettes:Array.from(t.values())}}async function lz(e={}){if(_l)return _l;if(n2)return i2();n2=!0;const t={...az,...e},r=[];if(t.enableRemote){const o=await o2(t.remoteUrl);r.push(o)}if(typeof window<"u"){const o=await o2(t.localPath);r.push(o)}const n=sz(...r);return n.palettes.length===0?(_l=i2(),_l):(_l=n,_l)}function i2(){return{version:"1.4.9",palettes:[{id:"default",name:"Default",description:"Classic blue and neutral color scheme",version:"1.4.9",file:"PaletteDefault.css",primaryColor:"#007bff",inlined:!0},{id:"autumn",name:"Autumn",description:"Warm oranges, golden yellows, and earthy browns",version:"1.4.9",file:"PaletteAutumn.css",primaryColor:"#ea580c",inlined:!1},{id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",version:"1.4.9",file:"PaletteCosmic.css",primaryColor:"#8b5cf6",inlined:!1},{id:"ocean",name:"Ocean",description:"Deep blues, aqua teals, and seafoam greens",version:"1.4.9",file:"PaletteOcean.css",primaryColor:"#0891b2",inlined:!1},{id:"spring",name:"Spring",description:"Fresh greens, soft pinks, and bright yellows",version:"1.4.9",file:"PaletteSpring.css",primaryColor:"#16a34a",inlined:!1},{id:"winter",name:"Winter",description:"Cool blues, icy whites, and frosty grays",version:"1.4.9",file:"PaletteWinter.css",primaryColor:"#0077be",inlined:!1}]}}async function cz(e,t){return(await lz(t)).palettes.find(n=>n.id===e)||null}const Na=new Set,Ci=new Map,a2=["https://qwickapps.com/palettes/","/palettes/"];let uz={enableRemote:!0};async function dz(e,t){if(Na.has(e))return Promise.resolve();if(Ci.has(e))return Ci.get(e);const r=pz(e,t);return Ci.set(e,r),r}async function pz(e,t){const r={...uz,...t};if(e==="default"){Na.add(e),Ci.delete(e);return}if(typeof document>"u"){Na.add(e),Ci.delete(e);return}if(document.querySelector(`link[data-palette-id="${e}"]`)){Na.add(e),Ci.delete(e);return}try{const o=await cz(e,r);if(!o){Na.add(e),Ci.delete(e);return}if(o.inlined){Na.add(e),Ci.delete(e);return}const u=!!1&&o.fileMinified?o.fileMinified:o.file,d=[];r.enableRemote&&d.push(`${a2[0]}${u}`),d.push(`${a2[1]}${u}`);let f=!1;for(const h of d)if(await fz(h,e)){f=!0;break}Na.add(e),Ci.delete(e)}catch{Na.add(e),Ci.delete(e)}}function fz(e,t){return new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-palette-id",t),n.onload=()=>{r(!0)},n.onerror=()=>{document.head.removeChild(n),r(!1)},document.head.appendChild(n)})}const TT=b.createContext(null),kT=()=>{const e=b.useContext(TT);if(!e)throw new Error("usePalette must be used within a PaletteProvider");return e},As=tz,s2=(e,t=!0)=>e&&As.some(r=>r.id===e)?e:(t&&console.warn(`[PaletteProvider] Invalid defaultPalette '${e}'. Using 'default'.`),"default"),hz=({children:e,appId:t,defaultPalette:r="default"})=>{const n=Lt.useMemo(()=>{if(t===!1)return null;if(typeof t=="string")return`${t}.palette`;const w="qwickapps-react-framework-palette";return console.warn(`[PaletteProvider] Using default storage key '${w}'. Consider providing an appId for production apps to avoid conflicts. Example: <PaletteProvider appId="com.mycompany.myapp">`),w},[t]),o=As.map(w=>w.id),[a,c]=b.useState(()=>r2(n,o)),[u,d]=b.useState(()=>r2(n,o)||s2(r));b.useEffect(()=>{typeof document<"u"&&dz(u).then(()=>{document.documentElement.setAttribute("data-palette",u),setTimeout(()=>{const w=new CustomEvent("palette-changed",{detail:{palette:u}});window.dispatchEvent(w)},50)}).catch(w=>{console.error(`[PaletteContext] Failed to load palette "${u}":`,w),document.documentElement.setAttribute("data-palette",u);const C=new CustomEvent("palette-changed",{detail:{palette:u}});window.dispatchEvent(C)})},[u]);const x={currentPalette:u,preferredPalette:a,availablePalettes:As,isPersistent:n!==null,setPreferredPalette:w=>{As.find(P=>P.id===w)?(c(w),d(w),oz(n,w)):console.warn(`Palette "${w}" not found. Available palettes:`,As.map(P=>P.id))},clearPreferredPalette:()=>{c(null),iz(n);const w=s2(r,!1);d(w)},getPreferredPalette:()=>a,getCurrentPalette:()=>u,setCurrentPalette:w=>{As.find(P=>P.id===w)?d(w):console.warn(`Palette "${w}" not found. Available palettes:`,As.map(P=>P.id))}};return l.jsx(TT.Provider,{value:x,children:e})},jT=b.createContext(null),PT=()=>{const e=b.useContext(jT);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},l2=(e,t=!0)=>e&&["light","dark","system"].includes(e)?e:(t&&console.warn(`[ThemeProvider] Invalid defaultTheme '${e}'. Using 'system'.`),"system"),mz=({children:e,appId:t,includePalette:r=!0,defaultTheme:n="light",defaultPalette:o})=>{const c=Lt.useMemo(()=>{if(t===!1)return null;if(typeof t=="string")return`${t}.theme`;const A="qwickapps-react-framework-theme";return console.warn(`[ThemeProvider] Using default storage key '${A}'. Consider providing an appId for production apps to avoid conflicts. Example: <ThemeProvider appId="com.mycompany.myapp">`),A},[t]),[u,d]=b.useState(()=>t2(c)),[f,h]=b.useState(()=>t2(c)||l2(n)),[v,m]=b.useState(0),y=W8("(prefers-color-scheme: dark)"),x=f==="system"?y?"dark":"light":f;b.useEffect(()=>{if(typeof window<"u"){const A=()=>{m(G=>G+1)},H=()=>{m(G=>G+1)};return window.addEventListener("palette-changed",A),window.addEventListener("theme-changed",H),()=>{window.removeEventListener("palette-changed",A),window.removeEventListener("theme-changed",H)}}},[]),b.useEffect(()=>{if(typeof window<"u"){const A=new CustomEvent("theme-changed",{detail:{theme:x}});window.dispatchEvent(A)}},[x]),b.useEffect(()=>{typeof window<"u"&&XB(x)},[x]);const w=A=>typeof window<"u"&&typeof document<"u"?getComputedStyle(document.documentElement).getPropertyValue(A).trim():"",C=Lt.useMemo(()=>{const A=x==="dark",H=w("--theme-primary-light")||(A?"#87ceeb":"#4a90e2"),G=w("--theme-primary")||(A?"#90caf9":"#1976d2"),$=w("--theme-primary-dark")||(A?"#1a365d":"#0056b3"),j=w("--theme-on-primary")||(A?"#000000":"#ffffff"),q=w("--theme-secondary-light")||(A?"#adb5bd":"#868e96"),V=w("--theme-secondary")||(A?"#f48fb1":"#dc004e"),O=w("--theme-secondary-dark")||(A?"#6c757d":"#495057"),U=w("--theme-on-secondary")||(A?"#b0b0b0":"#666666"),K=w("--theme-error-light")||(A?"#f9c2c2":"#f5c6cb"),Y=w("--theme-error")||(A?"#f87171":"#dc3545"),Z=w("--theme-error-dark")||(A?"#b91c1c":"#a71d2a"),Q=w("--theme-warning-light")||(A?"#fbbf24":"#ffc107"),X=w("--theme-warning")||(A?"#fbbf24":"#ffc107"),re=w("--theme-warning-dark")||(A?"#b57c00":"#856404"),de=w("--theme-info-light")||(A?"#60a5fa":"#007acc"),J=w("--theme-info")||(A?"#60a5fa":"#007acc"),oe=w("--theme-info-dark")||(A?"#1e3a8a":"#0d6efd"),ee=w("--theme-success-light")||(A?"#4ade80":"#28a745"),he=w("--theme-success")||(A?"#4ade80":"#28a745"),Ce=w("--theme-success-dark")||(A?"#1f9e3d":"#1c7430"),ye=w("--theme-background")||(A?"#121212":"#ffffff"),ce=w("--theme-surface")||(A?"#1e1e1e":"#ffffff"),Fe=w("--theme-text-primary")||(A?"#ffffff":"#000000"),Le=w("--theme-text-secondary")||(A?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"),Ne=w("--theme-on-disabled")||(A?"rgba(255, 255, 255, 0.38)":"rgba(0, 0, 0, 0.38)");return vh({palette:{mode:x,primary:{main:G,light:H,dark:$,contrastText:j},secondary:{main:V,light:q,dark:O,contrastText:U},error:{light:K,main:Y,dark:Z},warning:{light:Q,main:X,dark:re},info:{light:de,main:J,dark:oe},background:{default:ye,paper:ce},text:{primary:Fe,secondary:Le,disabled:Ne},success:{light:ee,main:he,dark:Ce}},typography:{fontFamily:'"Segoe UI", "Roboto", "Arial", sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none"}}}}})},[x,v]),R={currentTheme:f,preferredTheme:u,actualThemeMode:x,theme:C,isDark:x==="dark",isPersistent:c!==null,setPreferredTheme:A=>{d(A),h(A),rz(c,A)},clearPreferredTheme:()=>{d(null),nz(c);const A=l2(n,!1);h(A)},getPreferredTheme:()=>u,getCurrentTheme:()=>f,setCurrentTheme:A=>{h(A)}},L=l.jsx(jT.Provider,{value:R,children:l.jsx(eR,{theme:C,children:e})});return r?l.jsx(hz,{appId:t,defaultPalette:o,children:L}):L},Yy={theme:"light",palette:void 0,hideScaffolding:!0,hideInteractiveElements:!1,optimizeForMonochrome:!1,showPrintDate:!0,pageMargins:"12mm"};function gz(e,t){switch(t.type){case"TRIGGER_PRINT":return e.printModeState==="normal"?{...e,printModeState:"applying_print_config",printConfig:t.config?{...Yy,...t.config}:Yy}:e;case"APPLY_CONFIG":return e.printModeState==="applying_print_config"?{...e,printModeState:"entering_print_mode"}:e;case"VIEW_LOADING":return e.printModeState==="entering_print_mode"?{...e,printModeState:"view_loading"}:e;case"VIEW_READY":return e.printModeState==="view_loading"?{...e,printModeState:"config_applied"}:e.printModeState==="exiting_print_mode"?{...e,printModeState:"restoring_config"}:e;case"CONFIG_APPLIED":return e.printModeState==="config_applied"?{...e,printModeState:"print_mode"}:e;case"EXIT_PRINT_MODE":return e.printModeState!=="normal"&&e.printModeState!=="exiting_print_mode"&&e.printModeState!=="restoring_config"?{...e,printModeState:"exiting_print_mode"}:e;case"RESTORE_CONFIG":return e.printModeState==="restoring_config"?{...e,printModeState:"normal"}:e;case"SET_ORIGINAL_THEME":return{...e,originalTheme:t.theme};case"SET_ORIGINAL_PALETTE":return{...e,originalPalette:t.palette};default:return e}}const IT=b.createContext(null),yz=()=>{const e=b.useContext(IT);if(!e)throw new Error("usePrintMode must be used within a PrintModeProvider");return e},vz=({children:e})=>{const[t,r]=b.useReducer(gz,{printModeState:"normal",printConfig:Yy,originalTheme:null,originalPalette:null}),{updateConfig:n}=m0(),{setCurrentTheme:o,getCurrentTheme:a}=PT(),{setCurrentPalette:c,getCurrentPalette:u}=kT(),d=t.printModeState==="entering_print_mode"||t.printModeState==="view_loading"||t.printModeState==="config_applied"||t.printModeState==="print_mode",f=b.useCallback(x=>{r({type:"TRIGGER_PRINT",config:x})},[]),h=b.useCallback(()=>{r({type:"EXIT_PRINT_MODE"})},[]),v=b.useCallback(()=>{r({type:"VIEW_LOADING"})},[]),m=b.useCallback(()=>{r({type:"VIEW_READY"})},[]);b.useEffect(()=>{if(t.printModeState==="applying_print_config"){if(t.printConfig.hideScaffolding&&n({enableScaffolding:!1}),t.printConfig.theme&&(r({type:"SET_ORIGINAL_THEME",theme:a()}),o(t.printConfig.theme)),t.printConfig.palette&&(r({type:"SET_ORIGINAL_PALETTE",palette:u()}),c(t.printConfig.palette)),typeof document<"u"&&(document.body.classList.add("print-mode"),t.printConfig.optimizeForMonochrome&&document.body.classList.add("print-monochrome"),t.printConfig.hideInteractiveElements&&document.body.classList.add("print-hide-interactive"),t.printConfig.pageMargins&&t.printConfig.pageMargins!=="12mm")){let x=document.querySelector("#qwick-print-margins");x||(x=document.createElement("style"),x.id="qwick-print-margins",document.head.appendChild(x)),x.textContent=`
|
|
332
|
+
@media print {
|
|
333
|
+
@page {
|
|
334
|
+
margin: ${t.printConfig.pageMargins};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
`}r({type:"APPLY_CONFIG"})}},[t.printModeState,t.printConfig,n,a,u,o,c]),b.useEffect(()=>{if(t.printModeState==="config_applied"){const x=requestAnimationFrame(()=>{r({type:"CONFIG_APPLIED"})});return()=>cancelAnimationFrame(x)}},[t.printModeState]),b.useEffect(()=>{t.printModeState==="exiting_print_mode"&&r({type:"VIEW_READY"})},[t.printModeState]),b.useEffect(()=>{if(t.printModeState==="restoring_config"){if(n({enableScaffolding:!0}),t.originalTheme&&o(t.originalTheme),t.originalPalette&&c(t.originalPalette),typeof document<"u"){document.body.classList.remove("print-mode","print-monochrome","print-hide-interactive");const x=document.querySelector("#qwick-print-margins");x&&x.remove()}r({type:"RESTORE_CONFIG"})}},[t.printModeState,t.originalTheme,t.originalPalette,n,o,c]),b.useEffect(()=>{t.printModeState==="print_mode"&&typeof window<"u"&&window.print()},[t.printModeState]),b.useEffect(()=>{const x=()=>{f()},w=()=>{h()};if(typeof window<"u")return window.addEventListener("beforeprint",x),window.addEventListener("afterprint",w),()=>{window.removeEventListener("beforeprint",x),window.removeEventListener("afterprint",w)}},[h,f]);const y={printModeState:t.printModeState,isPrintMode:d,printConfig:t.printConfig,triggerPrint:f,exitPrintMode:h,onViewLoading:v,onViewReady:m};return l.jsx(IT.Provider,{value:y,children:e})};function xz(){const e=yz();return{isPrintMode:e.isPrintMode,printConfig:e.printConfig,printModeState:e.printModeState,enterPrintMode:e.triggerPrint,exitPrintMode:e.exitPrintMode,togglePrintMode:t=>{e.isPrintMode?e.exitPrintMode():e.triggerPrint(t)},triggerPrint:e.triggerPrint,onViewLoading:e.onViewLoading,onViewReady:e.onViewReady}}function bz(e){const t={};for(const[r,n]of Object.entries(e))if(typeof n=="string"&&n.trim())try{const o=new Function("event",n);t[r]=o}catch(o){console.warn(`Invalid event handler string for ${r}:`,n,o)}else typeof n=="function"&&(t[r]=n);return t}function wz(e){if(e){if(typeof e=="string")try{return JSON.parse(e)}catch(t){console.warn("Invalid sx JSON string:",e,t);return}return e}}function Sz(e){if(e){if(typeof e=="string")try{return JSON.parse(e)}catch(t){console.warn("Invalid style JSON string:",e,t);return}return e}}function Ll(e){if(e!=null){if(typeof e=="number")return e;if(typeof e=="string"){if(e==="auto"||e==="grow")return e;const t=parseInt(e,10);if(!isNaN(t)&&t>0)return t}}}function Cz(e){const{sx:t,style:r,onClick:n,onMouseEnter:o,onMouseLeave:a,onFocus:c,onBlur:u,span:d,xs:f,sm:h,md:v,lg:m,xl:y,backgroundColor:x,...w}=e,C=wz(t),P=Sz(r),k=bz({onClick:n,onMouseEnter:o,onMouseLeave:a,onFocus:c,onBlur:u}),I={span:Ll(d),xs:Ll(f),sm:Ll(h),md:Ll(v),lg:Ll(m),xl:Ll(y)},T=w.background??x,M={...w,...I,sx:C,style:P,...k,background:T};return delete M.backgroundColor,M}function Jy(e){if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Jy).filter(Boolean).join("")}}function so(e){const{tagName:t,version:r,role:n,View:o,childrenStrategy:a={mode:"react-children"},finalize:c}=e;function u(f){const{dataSource:h,bindingOptions:v,children:m,...y}=f;let x=y;if(a.mode==="content-prop"){const H=a.propName||"content";if(x[H]==null){const G=Jy(m);typeof G=="string"&&(x={...x,[H]:G})}}const w=Cz(x),{loading:C,error:P,...k}=Fi(h||void 0,w,void 0,h?{...v}:{});let I=w;h&&!P&&(I={...w,...k});const{gridProps:T,styleProps:M,htmlProps:R,restProps:L}=In(I);if(h&&C)return l.jsx("div",{children:"Loading..."});if(h&&P)return console.error("Data binding error:",P),l.jsxs("div",{style:{color:"red",padding:"1rem",border:"1px solid red"},children:["Error loading data: ",P.message]});let A={...L,...M,...R,...n==="container"&&T?{gridProps:T}:{}};return c&&(A=c(A)),a.mode==="content-prop"?l.jsx(o,{...A}):l.jsx(o,{...A,children:m})}const d=u;return d.tagName=t,d.version=r,d[Bn]=Bn,d.fromJson=function(h){const v=h,{tagName:m,version:y,data:x}=v;if(m!==t)throw new Error(`Tag name mismatch: expected ${t}, got ${m}`);if(y!==r&&console.warn(`Version mismatch for ${t}: expected ${r}, got ${y}`),a.mode==="content-prop"){const w=a.propName||"content",{children:C,...P}=x||{},k={...P,[w]:(x==null?void 0:x[w])||""};return Lt.createElement(d,k)}else{const w={...x};return x.children!==void 0&&(w.children=ComponentTransformer.deserialize(x.children)),Lt.createElement(d,w)}},d.toJson=function(h){if(a.mode==="content-prop"){const v=a.propName||"content",{children:m,...y}=h||{},x=(h==null?void 0:h[v])??Jy(h==null?void 0:h.children),w={};for(const[C,P]of Object.entries(y))typeof P=="function"&&C.startsWith("on")?w[C]=P.toString():typeof P!="function"&&P!==void 0&&P!==null&&(w[C]=P);return{tagName:t,version:r,data:{...w,[v]:x||""}}}else{const v={};for(const[m,y]of Object.entries(h))if(typeof y=="function"&&m.startsWith("on"))v[m]=y.toString();else{if(typeof y=="function")continue;(m==="children"||y!=null)&&(v[m]=y)}return{tagName:t,version:r,data:v}}},d.displayName=`SerializableView(${t})`,d}function Ez({children:e,gridProps:t,...r}){return l.jsx(ne,{...r,...t?{"data-grid":JSON.stringify(t)}:{},component:"div",children:e})}const Tz=so({tagName:"Container",version:"1.0.0",role:"container",View:Ez});function kz({content:e,language:t="text",showCopy:r=!0,showLineNumbers:n=!1,title:o,wrapLines:a=!1,codeBackground:c,...u}){var M;const d=no(),[f,h]=b.useState(!1),[v,m]=b.useState(!1),y=((M=u.sx)==null?void 0:M.maxHeight)||400,x=e||"";if(!(x!=null&&x.trim()))return l.jsx(_r,{...u,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...u.sx},children:l.jsx(pe,{variant:"body2",color:"text.secondary",children:"No code content provided"})});const w=async()=>{try{await navigator.clipboard.writeText(x),h(!0),m(!0),setTimeout(()=>h(!1),2e3)}catch(R){console.error("Failed to copy code:",R)}},C=x.split(`
|
|
338
|
+
`),P=()=>c||d.palette.grey[d.palette.mode==="dark"?900:50],k=()=>d.palette.grey[d.palette.mode==="dark"?800:200],I=()=>d.palette.text.primary,T=()=>d.palette.divider;return l.jsxs(_r,{...u,variant:"outlined",sx:{backgroundColor:P(),border:`1px solid ${T()}`,borderRadius:1,overflow:"hidden",position:"relative",...u.sx},children:[(o||r)&&l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,backgroundColor:k(),borderBottom:`1px solid ${T()}`},children:[o&&l.jsx(pe,{variant:"body2",sx:{fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',color:I(),opacity:.8},children:o}),l.jsx(ne,{sx:{ml:"auto"},children:r&&l.jsx(fr,{title:f?"Copied!":"Copy code",children:l.jsx(Qt,{size:"small",onClick:w,sx:{color:I(),opacity:.7,"&:hover":{opacity:1,backgroundColor:d.palette.action.hover}},children:f?l.jsx(fT,{fontSize:"small"}):l.jsx(u0,{fontSize:"small"})})})})]}),l.jsx(ne,{sx:{maxHeight:y,overflow:"auto",position:"relative"},children:l.jsx(ne,{component:"pre",sx:{margin:0,padding:2,fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',fontSize:"0.875rem",lineHeight:1.5,color:I(),backgroundColor:"transparent",overflow:a?"visible":"auto",whiteSpace:a?"pre-wrap":"pre",wordBreak:a?"break-word":"normal"},children:n?l.jsxs(ne,{sx:{display:"flex"},children:[l.jsx(ne,{sx:{pr:2,mr:2,borderRight:`1px solid ${T()}`,color:I(),opacity:.5,userSelect:"none",minWidth:`${String(C.length).length+1}ch`},children:C.map((R,L)=>l.jsx(ne,{sx:{textAlign:"right"},children:L+1},L))}),l.jsx(ne,{sx:{flex:1,minWidth:0},children:l.jsx("code",{children:x})})]}):l.jsx("code",{children:x})})}),l.jsx(XE,{open:v,autoHideDuration:2e3,onClose:()=>m(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:l.jsx(Kt,{onClose:()=>m(!1),severity:"success",variant:"filled",children:"Code copied to clipboard!"})})]})}const Gl=so({tagName:"Code",version:"1.0.0",role:"view",View:kz,childrenStrategy:{mode:"content-prop",propName:"content"}});Gl.registerPatternHandlers=e=>{e.hasPattern&&(e.hasPattern("pre code")||e.registerPattern("pre code",Gl.transformPreCode),e.hasPattern("code.highlight")||e.registerPattern("code.highlight",Gl.transformCodeHighlight))};Gl.transformPreCode=e=>{var n;const t=e.querySelector("code");return t?{tagName:"Code",props:{language:((n=Array.from(t.classList).find(o=>o.startsWith("language-")))==null?void 0:n.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:t.textContent||""}}:null};Gl.transformCodeHighlight=e=>{var r;return{tagName:"Code",props:{language:((r=Array.from(e.classList).find(n=>n.startsWith("language-")))==null?void 0:r.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:e.textContent||""}}};const jz={add:{emoji:"➕",component:pT},check:{emoji:"✓",component:fT},check_circle:{emoji:"✅",component:Di},close:{emoji:"✕",component:O7},delete:{emoji:"🗑️",component:Lh},edit:{emoji:"✏️",component:Ff},refresh:{emoji:"🔄",component:Ys},rotate_right:{emoji:"🔄",component:xB},save:{emoji:"💾",component:d0},search:{emoji:"🔍",component:Oh},send:{emoji:"📤",component:p0},share:{emoji:"🔗",component:CB},sync:{emoji:"🔄",component:PB},block:{emoji:"🚫",component:_h},key:{emoji:"🔑",component:Z7},lock:{emoji:"🔒",component:Xy},lock_open:{emoji:"🔓",component:GS},lockopen:{emoji:"🔓",component:GS},login:{emoji:"🔑",component:iB},logout:{emoji:"🚪",component:aB},security:{emoji:"🔐",component:wB},shield:{emoji:"🛡️",component:EB},verified_user:{emoji:"✅",component:RB},visibility:{emoji:"👁️",component:wT},visibility_off:{emoji:"🙈",component:Ky},visibilityoff:{emoji:"🙈",component:Ky},vpn_key:{emoji:"🔐",component:AB},attach_money:{emoji:"💰",component:DS},attachmoney:{emoji:"💰",component:DS},business:{emoji:"🏢",component:VS},cart:{emoji:"🛒",component:ef},shopping_cart:{emoji:"🛒",component:ef},shoppingcart:{emoji:"🛒",component:ef},work:{emoji:"💼",component:_B},workspace_premium:{emoji:"⭐",component:LB},contact:{emoji:"📧",component:Jg},email:{emoji:"📧",component:Jg},mail:{emoji:"📧",component:Jg},notifications:{emoji:"🔔",component:xT},phone:{emoji:"📱",component:hB},support_agent:{emoji:"🛎️",component:jB},article:{emoji:"📰",component:zS},blog:{emoji:"📝",component:FS},book:{emoji:"📖",component:FS},gallery:{emoji:"🖼️",component:Zg},image:{emoji:"🖼️",component:Zg},insert_photo:{emoji:"🖼️",component:Zg},library_books:{emoji:"📚",component:nB},news:{emoji:"📰",component:zS},photo_library:{emoji:"📸",component:mB},play:{emoji:"▶️",component:sc},play_arrow:{emoji:"▶️",component:sc},portfolio:{emoji:"💼",component:VS},architecture:{emoji:"🏛️",component:j7},autorenew:{emoji:"🔄",component:M7},cloud:{emoji:"☁️",component:N7},cloud_download:{emoji:"☁️⬇️",component:US},cloud_upload:{emoji:"☁️⬆️",component:WS},clouddownload:{emoji:"☁️⬇️",component:US},cloudupload:{emoji:"☁️⬆️",component:WS},code:{emoji:"💻",component:hT},computer:{emoji:"💻",component:mT},construction:{emoji:"🚧",component:$7},integration_instructions:{emoji:"🔌",component:Q7},memory:{emoji:"🧠",component:vT},psychology:{emoji:"🧠",component:gB},rocket:{emoji:"🚀",component:vB},storage:{emoji:"💾",component:f0},arrow_back:{emoji:"←",component:$S},arrow_forward:{emoji:"→",component:BS},arrowback:{emoji:"←",component:$S},arrowforward:{emoji:"→",component:BS},dashboard:{emoji:"📊",component:B7},download:{emoji:"⬇️",component:z7},explore:{emoji:"🧭",component:H7},home:{emoji:"🏠",component:yT},layers:{emoji:"📚",component:rB},menu:{emoji:"☰",component:lB},route:{emoji:"🗺️",component:bB},settings:{emoji:"⚙️",component:QS},trending_up:{emoji:"📈",component:IB},tune:{emoji:"🎛️",component:MB},inventory:{emoji:"📦",component:Y7},inventory_2:{emoji:"📦",component:J7},local_offer:{emoji:"🏷️",component:ql},products:{emoji:"🛍️",component:ef},services:{emoji:"⚙️",component:QS},speed:{emoji:"⚡",component:bT},about:{emoji:"ℹ️",component:Gy},favorite:{emoji:"❤️",component:qy},heart:{emoji:"❤️",component:qy},help:{emoji:"❓",component:gT},info:{emoji:"ℹ️",component:Gy},star:{emoji:"⭐",component:TB},account_circle:{emoji:"👤",component:k7},group:{emoji:"👥",component:G7},manage_accounts:{emoji:"👤",component:sB},people:{emoji:"👥",component:XS},person:{emoji:"👤",component:ac},person_search:{emoji:"🔍",component:fB},user:{emoji:"👤",component:ac},users:{emoji:"👥",component:XS}};function Zy(e){if(!e)return null;const t=e.toLowerCase(),r=jz[t];if(r!=null&&r.component){const n=r.component;return l.jsx(n,{})}return console.warn(`[IconMap] Icon "${e}" not found. Add it to iconMap or use registerIcon().`),l.jsx(X7,{})}const MT=Lt.forwardRef((e,t)=>{const{label:r,variant:n="primary",color:o,buttonSize:a="medium",icon:c,endIcon:u,href:d,target:f="_self",onClick:h,action:v,disabled:m=!1,loading:y=!1,fullWidth:x=!1,children:w,...C}=e,P=()=>{switch(n){case"primary":return"contained";case"secondary":return"contained";case"outlined":return"outlined";case"text":return"text";case"contained":return"contained";default:return"contained"}},k=()=>{if(o)return o;switch(n){case"primary":return"primary";case"secondary":return"secondary";case"outlined":return"primary";case"text":return"primary";case"contained":return"primary";default:return"primary"}},I=()=>{const A=P(),H=k();return A==="contained"?{backgroundColor:`var(--theme-${H})`,color:`var(--theme-on-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-dark)`},"&.Mui-disabled":{backgroundColor:"var(--theme-text-disabled)",color:"var(--theme-on-surface)"}}:A==="outlined"?{borderColor:`var(--theme-${H})`,color:`var(--theme-${H})`,"&:hover":{borderColor:`var(--theme-${H}-dark)`,backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{borderColor:"var(--theme-border-main)",color:"var(--theme-text-disabled)"}}:{color:`var(--theme-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}}},T=Lt.useCallback(A=>{if(v)switch(A.preventDefault(),v.type){case"navigate":v.url&&(v.target==="_blank"?window.open(v.url,"_blank","noopener,noreferrer"):window.location.href=v.url);break;case"submit":if(v.form){const H=document.getElementById(v.form);H instanceof HTMLFormElement&&H.requestSubmit()}break;case"external":v.url&&window.open(v.url,v.target||"_blank","noopener,noreferrer");break;case"custom":if(v.customHandler&&typeof window<"u"){const H=window[v.customHandler];typeof H=="function"&&H(A)}break}h&&h(A)},[v,h]),M=!!(d&&!m&&!y),R={variant:P(),size:a,disabled:m||y,fullWidth:x,...C,sx:{...I(),textTransform:"none",...y&&{"& .MuiButton-startIcon":{marginRight:1}},...C.sx||{}},startIcon:y?l.jsx(cr,{size:16,color:"inherit","aria-label":"Loading"}):c,endIcon:y?void 0:u};if(M){const A={...R,component:"a",href:d,target:f,rel:f==="_blank"?"noopener noreferrer":void 0,onClick:void 0};return l.jsx(sn,{ref:t,...A,children:r||w})}const L={...R,onClick:m||y?void 0:v?T:h};return l.jsx(sn,{ref:t,...L,children:r||w})});MT.displayName="ButtonView";const Nr=so({tagName:"Button",version:"1.0.0",role:"view",View:MT,finalize:e=>{const t={...e};if(typeof e.icon=="string"){const r=Zy(e.icon);t.icon=r||void 0}if(typeof e.endIcon=="string"){const r=Zy(e.endIcon);t.endIcon=r||void 0}return t}});Nr.registerPatternHandlers=e=>{e.hasPattern("button")||e.registerPattern("button",Pz),e.hasPattern('input[type="button"]')||e.registerPattern('input[type="button"]',Iz),e.hasPattern('input[type="submit"]')||e.registerPattern('input[type="submit"]',Mz)};function Pz(e){const t=e.getAttribute("data-variant")||(e.className.includes("btn-primary")?"primary":e.className.includes("btn-outlined")?"outlined":"secondary"),r=e.hasAttribute("disabled"),n=e.getAttribute("data-href"),o=e.getAttribute("data-target");return{tagName:"Button",props:{label:e.textContent||"Button",variant:t,disabled:r,href:n||void 0,target:o||void 0}}}function Iz(e){const t=e.hasAttribute("disabled");return{tagName:"Button",props:{label:e.getAttribute("value")||"Button",variant:"secondary",disabled:t}}}function Mz(e){const t=e.hasAttribute("disabled");return{tagName:"Button",props:{label:e.getAttribute("value")||"Submit",variant:"primary",disabled:t,type:"submit"}}}function Rz({content:e,variant:t="body1",color:r="inherit",align:n="inherit",component:o="p",fontWeight:a="inherit",textDecoration:c="none",textTransform:u="none",noWrap:d=!1,paragraph:f=!1,gutterBottom:h=!1,fontSize:v,lineHeight:m,letterSpacing:y,fontFamily:x,customColor:w,maxWidth:C,className:P,style:k,...I}){const T=e||"";if(!T)return null;const M={...k};return v&&(M.fontSize=v),m&&(M.lineHeight=m),y&&(M.letterSpacing=y),x&&(M.fontFamily=x),w&&(M.color=w),C&&(M.maxWidth=C),a!=="inherit"&&(M.fontWeight=a),c!=="none"&&(M.textDecoration=c),u!=="none"&&(M.textTransform=u),I.onClick&&(M.cursor="pointer"),l.jsx(pe,{...I,variant:t,color:r,align:n,component:o,noWrap:d,paragraph:f,gutterBottom:h,className:`text ${P||""}`.trim(),style:M,children:T})}const vt=so({tagName:"Text",version:"1.0.0",role:"view",View:Rz,childrenStrategy:{mode:"content-prop",propName:"content"}});vt.registerPatternHandlers=e=>{const t=vt;e.hasPattern("p")||e.registerPattern("p",t.transformParagraph),["h1","h2","h3","h4","h5","h6"].forEach(n=>{e.hasPattern(n)||e.registerPattern(n,o=>t.transformHeading(o,n))}),e.hasPattern("span")||e.registerPattern("span",t.transformSpan)};vt.transformParagraph=e=>({tagName:"Text",version:"1.0.0",data:{variant:"body1",component:"p",content:e.textContent||""}});vt.transformHeading=(e,t)=>({tagName:"Text",version:"1.0.0",data:{variant:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}[t]||"h4",component:t,content:e.textContent||""}});vt.transformSpan=e=>({tagName:"Text",version:"1.0.0",data:{variant:"body2",component:"span",content:e.textContent||""}});function Az({title:e="",subtitle:t,backgroundImage:r,backgroundGradient:n,backgroundColor:o="primary",actions:a=[],children:c,textAlign:u="center",blockHeight:d="medium",overlayOpacity:f=.5,gridProps:h,...v}){const m=no(),y=()=>{switch(d){case"small":return 300;case"medium":return 400;case"large":return 600;case"viewport":return"100vh";default:return 400}},x=()=>{if(r||n)return"transparent";switch(o){case"primary":return m.palette.primary.main;case"secondary":return m.palette.secondary.main;case"surface":return m.palette.background.paper;default:return m.palette.background.default}},w=()=>{switch(o){case"primary":return m.palette.primary.contrastText;case"secondary":return m.palette.secondary.contrastText;case"surface":return m.palette.getContrastText(m.palette.background.paper);default:return m.palette.text.primary}};return l.jsxs(ne,{component:"section",...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:y(),backgroundColor:x(),color:w(),backgroundImage:r?`url(${r})`:n||"none",backgroundSize:r?"cover":"auto",backgroundPosition:r?"center":"initial",backgroundRepeat:"no-repeat",overflow:"hidden",...v.sx},children:[r&&l.jsx(ne,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",opacity:f,zIndex:1}}),l.jsx($f,{maxWidth:"md",sx:{position:"relative",zIndex:2,textAlign:u,py:4},children:l.jsxs(uS,{spacing:3,alignItems:u==="center"?"center":u==="right"?"flex-end":"flex-start",children:[l.jsx(vt,{variant:"h2",component:"h1",customColor:"var(--theme-on-primary)",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},lineHeight:1.2,maxWidth:"800px"},children:e}),t&&l.jsx(vt,{variant:"h5",component:"p",customColor:"var(--theme-on-primary)",fontWeight:"400",sx:{opacity:.9,maxWidth:"600px"},children:t}),a.length>0&&l.jsx(uS,{direction:"row",spacing:2,sx:{mt:2,flexWrap:"wrap",gap:1,justifyContent:u==="center"?"center":u==="right"?"flex-end":"flex-start"},children:a.map((C,P)=>l.jsx(Nr,{buttonSize:"large",...C},`hero-action-${P}`))}),c&&l.jsx(ne,{sx:{maxWidth:"800px"},children:c})]})})]})}const _z=so({tagName:"HeroBlock",version:"1.0.0",role:"container",View:Az});function Lz({src:e,alt:t="",width:r,height:n,objectFit:o="cover",objectPosition:a="center",loading:c="lazy",title:u,draggable:d=!1,borderRadius:f,showLoading:h=!1,showError:v=!1,fallbackSrc:m,sizes:y,srcSet:x,loadingPlaceholder:w,errorPlaceholder:C,onClick:P,style:k,className:I,...T}){const M=no(),[R,L]=b.useState("loading"),[A,H]=b.useState(e),G=b.useCallback(()=>{L("loaded")},[]),$=b.useCallback(()=>{if(m&&A!==m){H(m);return}L("error")},[m,A]);if(!e)return v?l.jsx(ne,{...T,className:`image-error ${I||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M.palette.grey[100],color:M.palette.text.secondary,width:r||200,height:n||150,borderRadius:f,...k},children:C||l.jsxs(ne,{sx:{textAlign:"center"},children:[l.jsx(HS,{sx:{fontSize:48,mb:1,opacity:.5}}),l.jsx(pe,{variant:"body2",color:"text.secondary",children:"No image source"})]})}):null;if(R==="loading"&&h)return l.jsx(ne,{...T,className:`image-loading ${I||""}`.trim(),style:{width:r||"100%",height:n||200,borderRadius:f,...k},children:w||l.jsx(r$,{variant:"rectangular",width:"100%",height:"100%",sx:{borderRadius:f}})});if(R==="error"&&v)return l.jsx(ne,{...T,className:`image-error ${I||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M.palette.grey[100],color:M.palette.text.secondary,width:r||"100%",height:n||200,borderRadius:f,...k},children:C||l.jsxs(ne,{sx:{textAlign:"center",p:2},children:[l.jsx(HS,{sx:{fontSize:48,mb:1,opacity:.5}}),l.jsx(pe,{variant:"body2",color:"text.secondary",children:"Failed to load image"}),m&&l.jsx(pe,{variant:"caption",color:"text.secondary",children:"Fallback image also failed"})]})});const j={display:"block",maxWidth:"100%",height:"auto",objectFit:o,objectPosition:a,borderRadius:f,cursor:P?"pointer":"default",...k};return r&&(j.width=r),n&&(j.height=n),l.jsx("img",{...T,src:A,alt:t,width:r,height:n,loading:c,title:u,draggable:d,sizes:y,srcSet:x,className:`image ${I||""}`.trim(),style:j,onClick:P,onLoad:G,onError:$})}const RT=so({tagName:"Image",version:"1.0.0",role:"view",View:Lz});RT.registerPatternHandlers=e=>{e.hasPattern("img")||e.registerPattern("img",Oz),e.hasPattern("figure img")||e.registerPattern("figure img",Nz)};function Oz(e){const t=e.getAttribute("src")||"",r=e.getAttribute("alt")||"",n=e.getAttribute("width"),o=e.getAttribute("height"),a=e.getAttribute("loading");return{tagName:"Image",props:{src:t,alt:r,width:n?parseInt(n):void 0,height:o?parseInt(o):void 0,loading:a||"lazy"}}}function Nz(e){const t=e.closest("figure"),r=t==null?void 0:t.querySelector("figcaption"),n=(r==null?void 0:r.textContent)||"",o=e.getAttribute("src")||"",a=e.getAttribute("alt")||n,c=e.getAttribute("width"),u=e.getAttribute("height");return{tagName:"Image",props:{src:o,alt:a,caption:n||void 0,width:c?parseInt(c):void 0,height:u?parseInt(u):void 0,loading:"lazy"}}}function $z({children:e,background:t="var(--theme-surface)",color:r="var(--theme-on-surface)",padding:n="medium",contentMaxWidth:o="lg",component:a="section",gridProps:c,...u}){if(!e)return l.jsx(ne,{component:a,...u,...c?{"data-grid":JSON.stringify(c)}:{},sx:{backgroundColor:t,color:r,position:"static",py:2,px:0,...u.sx},children:l.jsx($f,{maxWidth:ZS(o),sx:{position:"relative",textAlign:"center",opacity:.6,...o===!1&&{maxWidth:"none !important",px:3}},children:"No content provided for this section"})});const d=()=>{switch(n){case"none":return 0;case"tiny":return{py:1,px:0};case"small":return{py:2,px:0};case"medium":return{py:4,px:0};case"large":return{py:8,px:0};case"extra-large":return{py:12,px:0};default:return{py:4,px:0}}};return l.jsx(ne,{component:a,...u,...c?{"data-grid":JSON.stringify(c)}:{},sx:{backgroundColor:t,color:r,position:"static",...d(),...u.sx},children:l.jsx($f,{maxWidth:ZS(o),sx:{position:"relative",...o===!1&&{maxWidth:"none !important",px:3}},children:e})})}const Xl=so({tagName:"Section",version:"1.0.0",role:"container",View:$z,finalize:e=>e.contentMaxWidth==="false"?{...e,contentMaxWidth:!1}:e});Xl.registerPatternHandlers=e=>{e.hasPattern("section")||e.registerPattern("section",Xl.transformSection),e.hasPattern("section.blog-section")||e.registerPattern("section.blog-section",Xl.transformBlogSection)};Xl.transformSection=e=>{const t=e.getAttribute("data-padding")||"medium",r=e.getAttribute("data-background"),n=e.getAttribute("data-max-width")||"lg";return{tagName:"Section",version:"1.0.0",data:{padding:t,background:r,contentMaxWidth:n,children:e.innerHTML}}};Xl.transformBlogSection=e=>{const t=e.getAttribute("data-padding")||"large",r=e.getAttribute("data-background")||"var(--theme-surface)";return{tagName:"Section",version:"1.0.0",data:{padding:t,background:r,contentMaxWidth:"md",children:e.innerHTML}}};function _(e,t,r,n){var o=arguments.length,a=o<3?t:n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(c=e[u])&&(a=(o<3?c(a):o>3?c(t,r,a):c(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function F(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}let xt=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Grid Span",description:"Column span for grid layouts (number, auto, or grow)"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto","grow"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"span",void 0);_([z(),D({field_type:B.TEXT,label:"Extra Small Breakpoint (xs)",description:"Column span for extra small screens"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"xs",void 0);_([z(),D({field_type:B.SELECT,label:"Small Breakpoint (sm)",description:"Column span for small screens"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"sm",void 0);_([z(),D({field_type:B.SELECT,label:"Medium Breakpoint (md)",description:"Column span for medium screens"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"md",void 0);_([z(),D({field_type:B.SELECT,label:"Large Breakpoint (lg)",description:"Column span for large screens"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"lg",void 0);_([z(),D({field_type:B.SELECT,label:"Extra Large Breakpoint (xl)",description:"Column span for extra large screens"}),W(),Do((e,t)=>typeof t=="string"),Ue(["auto"]),Do((e,t)=>typeof t=="number"),Cc(),io(1),F("design:type",Object)],xt.prototype,"xl",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class Name",description:"Additional CSS class name for custom styling",placeholder:"custom-class-name"}),W(),ae(),F("design:type",String)],xt.prototype,"className",void 0);_([z(),D({field_type:B.TEXTAREA,label:"MUI SX Props",description:"MUI sx prop as JSON string for advanced styling",placeholder:'{"color": "primary.main", "fontWeight": "bold"}'}),W(),ae(),F("design:type",Object)],xt.prototype,"sx",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Inline Styles",description:"Inline CSS styles as JSON string",placeholder:'{"color": "red", "margin": "10px"}'}),W(),ae(),F("design:type",Object)],xt.prototype,"style",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:"Component width (t-shirt sizes, breakpoints, CSS values, or numbers)",placeholder:"medium, 300px, 50%, auto, grow"}),W(),ae(),F("design:type",Object)],xt.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:"Component height (t-shirt sizes, CSS values, or numbers)",placeholder:"medium, 200px, 50vh, auto"}),W(),ae(),F("design:type",Object)],xt.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Minimum Width",description:"Minimum width constraint",placeholder:"small, 100px, auto"}),W(),ae(),F("design:type",Object)],xt.prototype,"minWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Minimum Height",description:"Minimum height constraint",placeholder:"small, 100px, auto"}),W(),ae(),F("design:type",Object)],xt.prototype,"minHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Maximum Width",description:"Maximum width constraint",placeholder:"large, lg, 1200px"}),W(),ae(),F("design:type",Object)],xt.prototype,"maxWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Maximum Height",description:"Maximum height constraint",placeholder:"large, 500px, 80vh"}),W(),ae(),F("design:type",Object)],xt.prototype,"maxHeight",void 0);_([z(),D({field_type:B.SELECT,label:"Padding",description:"Internal spacing for all sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"padding",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Top",description:"Internal spacing for top side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingTop",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Right",description:"Internal spacing for right side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingRight",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Bottom",description:"Internal spacing for bottom side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingBottom",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Left",description:"Internal spacing for left side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingLeft",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Horizontal (X)",description:"Internal spacing for left and right sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingX",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Vertical (Y)",description:"Internal spacing for top and bottom sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"paddingY",void 0);_([z(),D({field_type:B.SELECT,label:"Margin",description:"External spacing for all sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"margin",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Top",description:"External spacing for top side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginTop",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Right",description:"External spacing for right side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginRight",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Bottom",description:"External spacing for bottom side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginBottom",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Left",description:"External spacing for left side"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginLeft",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Horizontal (X)",description:"External spacing for left and right sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginX",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Vertical (Y)",description:"External spacing for top and bottom sides"}),W(),ae(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",Object)],xt.prototype,"marginY",void 0);_([z(),D({field_type:B.TEXT,label:"Background",description:"Background fill (color, gradient, image CSS). Canonical name.",placeholder:"#ffffff, primary.main, linear-gradient(...)"}),W(),ae(),F("design:type",String)],xt.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Background Color (Deprecated)",description:"Use background instead. Kept for backward compatibility.",placeholder:"#ffffff, primary.main"}),W(),ae(),F("design:type",String)],xt.prototype,"backgroundColor",void 0);_([z(),D({field_type:B.TEXT,label:"Background Image",description:"Background image URL",placeholder:"https://example.com/image.jpg"}),W(),ae(),F("design:type",String)],xt.prototype,"backgroundImage",void 0);_([z(),D({field_type:B.TEXT,label:"Background Gradient",description:"CSS gradient for background",placeholder:"linear-gradient(45deg, #ff6b6b, #4ecdc4)"}),W(),ae(),F("design:type",String)],xt.prototype,"backgroundGradient",void 0);_([z(),D({field_type:B.SELECT,label:"Text Alignment",description:"Text alignment within the component"}),W(),ae(),Ue(["left","center","right","justify"]),F("design:type",String)],xt.prototype,"textAlign",void 0);_([z(),D({field_type:B.TEXT,label:"Element ID",description:"Unique HTML element ID",placeholder:"unique-element-id"}),W(),ae(),F("design:type",String)],xt.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Role",description:"ARIA role for accessibility",placeholder:"button, navigation, main, etc."}),W(),ae(),F("design:type",String)],xt.prototype,"role",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Label",description:"Accessibility label for screen readers",placeholder:"Describe this element..."}),W(),ae(),F("design:type",String)],xt.prototype,"aria-label",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Labelled By",description:"IDs of elements that label this component",placeholder:"label-element-id"}),W(),ae(),F("design:type",String)],xt.prototype,"aria-labelledby",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Described By",description:"IDs of elements that describe this component",placeholder:"element-id-1 element-id-2"}),W(),ae(),F("design:type",String)],xt.prototype,"aria-describedby",void 0);_([z(),D({field_type:B.TEXT,label:"Data Test ID",description:"Test automation identifier",placeholder:"test-element-name"}),W(),ae(),F("design:type",String)],xt.prototype,"data-testid",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Click Handler",description:"JavaScript function for click events",placeholder:'function(event) { console.debug("clicked"); }'}),W(),ae(),F("design:type",Function)],xt.prototype,"onClick",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Mouse Enter Handler",description:"JavaScript function for mouse enter events",placeholder:"function(event) { /* hover start */ }"}),W(),ae(),F("design:type",Function)],xt.prototype,"onMouseEnter",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Mouse Leave Handler",description:"JavaScript function for mouse leave events",placeholder:"function(event) { /* hover end */ }"}),W(),ae(),F("design:type",Function)],xt.prototype,"onMouseLeave",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Focus Handler",description:"JavaScript function for focus events",placeholder:"function(event) { /* element focused */ }"}),W(),ae(),F("design:type",Function)],xt.prototype,"onFocus",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Blur Handler",description:"JavaScript function for blur events",placeholder:"function(event) { /* element blurred */ }"}),W(),ae(),F("design:type",Function)],xt.prototype,"onBlur",void 0);xt=_([Ft("ViewSchema","1.0.0")],xt);var AT=xt;let sa=class extends AT{};_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ae(),F("design:type",Object)],sa.prototype,"children",void 0);sa=_([Ft("ContainerSchema","1.0.0")],sa);let si=class extends sa{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Title for the default header (ignored if custom header is provided)",placeholder:"Enter form title..."}),W(),ae(),F("design:type",String)],si.prototype,"title",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Description",description:"Description/subtitle for the default header (ignored if custom header is provided)",placeholder:"Enter form description..."}),W(),ae(),F("design:type",String)],si.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Cover Image URL",description:"Cover image URL for the default header (ignored if custom header is provided)",placeholder:"https://example.com/image.jpg"}),W(),ae(),F("design:type",Object)],si.prototype,"coverImage",void 0);_([z(),D({field_type:B.TEXT,label:"Status Type",description:"Status type for message display (info, success, warning, error)",placeholder:"info"}),W(),Ue(["info","success","warning","error"]),F("design:type",String)],si.prototype,"status",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Status Message",description:"Status message to display",placeholder:"Enter status message..."}),W(),ae(),F("design:type",String)],si.prototype,"message",void 0);_([z({defaultValue:"sm"}),D({field_type:B.TEXT,label:"Maximum Width",description:"Maximum width of the form container (xs, sm, md)",placeholder:"sm"}),W(),Ue(["xs","sm","md"]),F("design:type",String)],si.prototype,"maxWidth",void 0);_([z({defaultValue:"default"}),D({field_type:B.TEXT,label:"Background Style",description:"Background style variant (default, gradient, image)",placeholder:"default"}),W(),Ue(["default","gradient","image"]),F("design:type",String)],si.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Background Image URL",description:'Background image URL (when background="image")',placeholder:"https://example.com/background.jpg"}),W(),ae(),F("design:type",String)],si.prototype,"backgroundImage",void 0);si=_([Ft("FormBlock","1.0.0")],si);var Bz=si;function ev(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number")return String(e);if(typeof e=="boolean")return e?"true":"false";if(Array.isArray(e))return e.map(t=>ev(t)).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e;if(t.props&&t.props.children)return ev(t.props.children)}return String(e)}function zz(e){const{span:t,xs:r,sm:n,md:o,lg:a,xl:c,sx:u,style:d,...f}=e;return{span:t==="auto"?"auto":t==="grow"?"grow":t&&typeof t=="string"?parseInt(t,10):t,xs:r==="auto"?"auto":r&&typeof r=="string"?parseInt(r,10):r,sm:n==="auto"?"auto":n&&typeof n=="string"?parseInt(n,10):n,md:o==="auto"?"auto":o&&typeof o=="string"?parseInt(o,10):o,lg:a==="auto"?"auto":a&&typeof a=="string"?parseInt(a,10):a,xl:c==="auto"?"auto":c&&typeof c=="string"?parseInt(c,10):c,sx:typeof u=="string"?(()=>{try{return JSON.parse(u)}catch{return u}})():u,style:typeof d=="string"?(()=>{try{return JSON.parse(d)}catch{return d}})():d,onClick:typeof e.onClick=="string"?yu(e.onClick):e.onClick,onMouseEnter:typeof e.onMouseEnter=="string"?yu(e.onMouseEnter):e.onMouseEnter,onMouseLeave:typeof e.onMouseLeave=="string"?yu(e.onMouseLeave):e.onMouseLeave,onFocus:typeof e.onFocus=="string"?yu(e.onFocus):e.onFocus,onBlur:typeof e.onBlur=="string"?yu(e.onBlur):e.onBlur,...f}}function yu(e){if(!(!e||typeof e!="string"))try{let t;return e.trim().startsWith("function")?t=new Function(`return (${e})`)():t=new Function("event",e),r=>t(r)}catch(t){console.error("Error parsing event handler:",t);return}}class Js extends Lt.Component{static fromJson(t){const r=t,{tagName:n,version:o,data:a}=r;if(n!==this.tagName)throw new Error(`Cannot deserialize: Expected tagName '${this.tagName}' but got '${n}'`);return o!==this.version&&console.warn(`Version mismatch: Expected ${this.version} but got ${o}`),Lt.createElement(this,a||{})}toJson(){const t=this.getBaseSerializableProps(),r=this.getComponentSpecificProps();return{tagName:this.constructor.tagName,version:this.constructor.version,data:{...t,...r}}}getProcessedProps(){const{dataSource:t,bindingOptions:r,...n}=this.props,o=zz(n);return{gridProps:{span:o.span,xs:o.xs,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl},styleProps:{className:o.className,sx:o.sx,style:o.style},htmlProps:{id:o.id,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"data-testid":o["data-testid"],onClick:o.onClick,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onFocus:o.onFocus,onBlur:o.onBlur},restProps:{width:o.width,height:o.height,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,padding:o.padding,paddingTop:o.paddingTop,paddingRight:o.paddingRight,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingX:o.paddingX,paddingY:o.paddingY,margin:o.margin,marginTop:o.marginTop,marginRight:o.marginRight,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginX:o.marginX,marginY:o.marginY,background:o.background,backgroundImage:o.backgroundImage,backgroundGradient:o.backgroundGradient,textAlign:o.textAlign}}}getBaseSerializableProps(){const t=this.props;return{children:t.children?this.serializeChildren(t.children):void 0,dataSource:t.dataSource,bindingOptions:t.bindingOptions,...t}}serializeChildren(t){if(typeof t=="string")return t;if(this.hasNestedComponents(t))throw new Error("Components with nested components must override serializeChildren method");return ev(t)}hasNestedComponents(t){return!1}render(){return this.props.dataSource?this.renderWithDataBinding():this.renderView()}static registerPatternHandlers(t){}}Js.tagName="";Js.version="";let Li=class extends mr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the action",placeholder:"action-id"}),ae(),cs(),F("design:type",String)],Li.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Display label for the action button",placeholder:"Action label"}),ae(),F("design:type",String)],Li.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Icon component or JSX element",placeholder:"icon-name"}),W(),ae(),F("design:type",String)],Li.prototype,"icon",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this action is disabled"}),W(),Bt(),F("design:type",Boolean)],Li.prototype,"disabled",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Destructive",description:"Whether this action is destructive (shows with warning styling)"}),W(),Bt(),F("design:type",Boolean)],Li.prototype,"destructive",void 0);_([z(),D({field_type:B.NUMBER,label:"Priority",description:"Priority for ordering (lower numbers = higher priority)",validation:{min:1,max:100}}),W(),Pr(),io(1),Qs(100),F("design:type",Number)],Li.prototype,"priority",void 0);Li=_([Ft("HeaderAction","1.0.0")],Li);let cn=class extends mr{};_([z(),D({field_type:B.IMAGE,label:"Image",description:"Image URL or component",placeholder:"Upload image"}),W(),ae(),F("design:type",String)],cn.prototype,"image",void 0);_([z(),D({field_type:B.TEXT,label:"Image Alt Text",description:"Alternative text for image",placeholder:"Descriptive alt text..."}),W(),ae(),F("design:type",String)],cn.prototype,"imageAlt",void 0);_([z(),D({field_type:B.SELECT,label:"Image Size",description:"Size of the image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ue(["small","medium","large"]),F("design:type",String)],cn.prototype,"imageSize",void 0);_([z(),D({field_type:B.SELECT,label:"Image Shape",description:"Shape of the image",validation:{options:[{label:"Square",value:"square"},{label:"Circle",value:"circle"},{label:"Rounded",value:"rounded"}]}}),W(),Ue(["square","circle","rounded"]),F("design:type",String)],cn.prototype,"imageShape",void 0);_([z({defaultValue:"transparent"}),D({field_type:B.COLOR,label:"Image Background",description:"Image background color",placeholder:"Pick a color for the image background"}),W(),ae(),F("design:type",String)],cn.prototype,"imageBackgroundColor",void 0);_([z(),D({field_type:B.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ae(),F("design:type",String)],cn.prototype,"overline",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ae(),F("design:type",String)],cn.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ae(),F("design:type",String)],cn.prototype,"subtitle",void 0);_([z(),D({field_type:B.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),dn(),ae({each:!0}),F("design:type",Array)],cn.prototype,"tags",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of header action buttons"}),W(),dn(),oo({each:!0}),ao(()=>Li),F("design:type",Array)],cn.prototype,"actions",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Pr(),io(1),Qs(10),F("design:type",Number)],cn.prototype,"maxVisibleActions",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),F("design:type",String)],cn.prototype,"className",void 0);_([z(),D({field_type:B.SELECT,label:"Header Variant",description:"Style variant for the header",validation:{options:[{label:"Default",value:"default"},{label:"Compact",value:"compact"},{label:"Prominent",value:"prominent"}]}}),W(),Ue(["default","compact","prominent"]),F("design:type",String)],cn.prototype,"variant",void 0);_([z({defaultValue:"--var(--theme-primary)"}),D({field_type:B.TEXT,label:"Background",description:"Background color or image URL",placeholder:"Pick a color for the background or enter a image URL"}),W(),ae(),F("design:type",String)],cn.prototype,"background",void 0);_([z({defaultValue:"--var(--theme-on-primary)"}),D({field_type:B.COLOR,label:"Color",description:"Foreground color",placeholder:"#000000"}),W(),ae(),F("design:type",String)],cn.prototype,"color",void 0);cn=_([Ft("CoverImageHeader","1.0.0")],cn);var Dz=cn;function c2({image:e,imageAlt:t="",imageSize:r="medium",imageShape:n="rounded",imageBackgroundColor:o="transparent",overline:a,title:c,subtitle:u,tags:d=[],actions:f=[],maxVisibleActions:h=3,variant:v="default",background:m,color:y,...x}){const{gridProps:w,styleProps:C,htmlProps:P}=In(x),[k,I]=b.useState(null),T=!!k,M=[...f].sort((Z,Q)=>(Z.priority||999)-(Q.priority||999)),R=M.slice(0,h),L=M.slice(h),A=Z=>{I(Z.currentTarget)},H=()=>{I(null)},G=()=>{switch(r){case"small":return 48;case"large":return 80;default:return 64}},$=()=>{switch(n){case"circle":return"circular";case"square":return"square";default:return"rounded"}},j=()=>{if(!e)return null;const Z=G();return typeof e=="string"?l.jsx(Vw,{src:e,alt:t,variant:$(),sx:{width:Z,height:Z}}):l.jsx(Vw,{variant:$(),sx:{width:Z,height:Z,backgroundColor:o||"transparent"},children:e})},q=()=>d.length===0?null:l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:.5},children:d.map((Z,Q)=>l.jsx(qt,{label:Z,size:"small",color:"primary",sx:{fontSize:"0.75rem",height:"24px"}},Q))}),V=()=>f.length===0?null:l.jsxs(ne,{sx:{display:"flex",alignItems:"flex-start",gap:.5},children:[R.map(Z=>l.jsx(sn,{variant:"outlined",size:"small",startIcon:Z.icon,onClick:Z.onClick,disabled:Z.disabled,color:Z.destructive?"error":"primary",sx:{minHeight:36,whiteSpace:"nowrap","& .MuiButton-startIcon":{mr:.5}},children:Z.label},Z.id)),L.length>0&&l.jsxs(l.Fragment,{children:[l.jsx(Qt,{size:"small",onClick:A,"aria-label":"More actions",color:"info",sx:{minHeight:36,minWidth:36},children:l.jsx(cB,{})}),l.jsx(Mh,{anchorEl:k,open:T,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:L.map(Z=>l.jsxs(Sr,{onClick:()=>{Z.onClick(),H()},disabled:Z.disabled,sx:{color:Z.destructive?"error.main":"inherit",gap:1.5,minWidth:200},children:[Z.icon&&l.jsx(ne,{component:"span",sx:{display:"flex"},children:Z.icon}),Z.label]},Z.id))})]})]}),O=()=>{switch(v){case"compact":return 2;case"prominent":return 3;default:return 2.5}},U=()=>{switch(v){case"compact":return 1.5;case"prominent":return 2;default:return 2}},K=()=>{switch(v){case"default":return 0;case"compact":return 1;case"prominent":return 1;default:return 0}},Y=m?{background:m.startsWith("http")||m.startsWith("data:")?`linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(${m})`:m,backgroundSize:"cover",backgroundPosition:"center"}:{background:"-var(--theme-primary)"};return l.jsx(_r,{component:"header",...P,...w&&{"data-grid-span":w.span,"data-grid-xs":w.xs,"data-grid-sm":w.sm,"data-grid-md":w.md,"data-grid-lg":w.lg,"data-grid-xl":w.xl},sx:{p:O(),borderRadius:K()>0?2:0,...Y,color:m?"white":"inherit",...C.sx},elevation:K(),children:l.jsxs(ne,{sx:{display:"flex",alignItems:v==="prominent"?"center":"flex-start",gap:U(),flexWrap:{xs:"wrap",sm:"nowrap"},minHeight:v==="prominent"?120:"auto"},children:[j(),l.jsxs(ne,{sx:{flex:1,minWidth:0},children:[a&&l.jsx(pe,{variant:"overline",color:y||"--var(--theme-on-primary)",sx:{display:"block",fontSize:"0.75rem",fontWeight:600,lineHeight:1.2,mb:.25},children:a}),l.jsx(pe,{variant:"h5",component:"h1",sx:{fontWeight:600,lineHeight:1.3,wordBreak:"break-word",mb:u?.25:0},children:c}),u&&l.jsx(pe,{variant:"body2",color:y||"--var(--theme-on-primary)",sx:{lineHeight:1.4,mb:(d.length>0,0)},children:u}),q()]}),l.jsx(ne,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"flex-start"},mt:{xs:1,sm:0}},children:V()})]})})}function Fz(){return l.jsxs(_r,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[l.jsx(pe,{variant:"body2",children:"Loading Cover Image Header..."}),l.jsx(pe,{variant:"caption",color:"text.secondary",children:"Loading header content from data source..."})]})}function Hz(){return l.jsx(_r,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:l.jsx(pe,{variant:"body2",color:"error",children:"Error loading cover image header"})})}function Vz(e){const{dataSource:t,bindingOptions:r,...n}=e,o=Fi(t||"",n,Dz.getSchema(),{...r});if(!t)return l.jsx(c2,{...n});const{loading:a,error:c,...u}=o;if(a)return l.jsx(Fz,{});if(c)return console.error("Error loading cover image header:",c),l.jsx(Hz,{});const{actions:d,...f}=u,h=d?d.filter(v=>typeof v.id=="string"&&!!v.id).map(v=>({...v,id:v.id,onClick:()=>console.debug(`Action clicked: ${v.id}`)})):[];return l.jsx(c2,{...f,actions:h})}let Pn=class extends mr{};_([z({defaultValue:"Qwick Apps",dataType:ut.STRING}),D({field_type:B.TEXT,label:"Logo Name/Text",description:"Logo name/text to display. Supports up to TWO parts with \\n for line breaks and \\s for explicit spaces.",placeholder:'Enter logo text (e.g., "Qwick Apps", "Qwick\\nApps")'}),W(),ae(),F("design:type",String)],Pn.prototype,"name",void 0);_([z({defaultValue:"default",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Visual Variant",description:"Visual style variant of the logo",validation:{options:[{label:"Default",value:"default"},{label:"High Contrast",value:"high-contrast"},{label:"Monochrome",value:"monochrome"},{label:"On Primary Background",value:"on-primary"}]}}),W(),ae(),Ue(["default","high-contrast","monochrome","on-primary"]),F("design:type",String)],Pn.prototype,"variant",void 0);_([z({defaultValue:"medium",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Size",description:"Size variant of the logo (controls both text size and visual height)",validation:{options:[{label:"Tiny (16px)",value:"tiny"},{label:"Small (20px)",value:"small"},{label:"Medium (28px)",value:"medium"},{label:"Large (36px)",value:"large"},{label:"Extra Large (48px)",value:"extra-large"}]}}),W(),ae(),Ue(["tiny","small","medium","large","extra-large"]),F("design:type",String)],Pn.prototype,"size",void 0);_([z({defaultValue:"top-right",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Badge Position",description:'Badge position and visibility. "none" hides the badge, others show it at the specified position.',validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left Center)",value:"start"},{label:"Center",value:"center"},{label:"End (Right Center)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),Ue(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),F("design:type",String)],Pn.prototype,"badge",void 0);_([z({defaultValue:"circle",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Badge Shape",description:"Shape of the badge when visible",validation:{options:[{label:"Circle",value:"circle"},{label:"Star",value:"star"},{label:"Square",value:"square"},{label:"Heart",value:"heart"}]}}),W(),ae(),Ue(["circle","star","square","heart"]),F("design:type",String)],Pn.prototype,"badgeShape",void 0);_([z({dataType:ut.NUMBER}),D({field_type:B.NUMBER,label:"Badge Offset X",description:"Horizontal offset from calculated badge position (positive = right, negative = left)",placeholder:"0"}),W(),Pr(),F("design:type",Number)],Pn.prototype,"badgeOffsetX",void 0);_([z({dataType:ut.NUMBER}),D({field_type:B.NUMBER,label:"Badge Offset Y",description:"Vertical offset from calculated badge position (positive = down, negative = up)",placeholder:"0"}),W(),Pr(),F("design:type",Number)],Pn.prototype,"badgeOffsetY",void 0);_([z({defaultValue:"Segoe UI, sans-serif",dataType:ut.STRING}),D({field_type:B.TEXT,label:"Font Family",description:"Font family for the logo text",placeholder:"Segoe UI, sans-serif"}),W(),ae(),F("design:type",String)],Pn.prototype,"fontFamily",void 0);_([z({defaultValue:"bold",dataType:ut.STRING}),D({field_type:B.TEXT,label:"Font Weight",description:"Font weight for the logo text",placeholder:"bold"}),W(),ae(),F("design:type",String)],Pn.prototype,"fontWeight",void 0);_([z({defaultValue:"logo-first-part",dataType:ut.STRING}),D({field_type:B.TEXT,label:"First Part CSS Class",description:"CSS class name for the first part of the logo text",placeholder:"logo-first-part"}),W(),ae(),F("design:type",String)],Pn.prototype,"firstPartClass",void 0);_([z({defaultValue:"logo-second-part",dataType:ut.STRING}),D({field_type:B.TEXT,label:"Second Part CSS Class",description:"CSS class name for the second part of the logo text",placeholder:"logo-second-part"}),W(),ae(),F("design:type",String)],Pn.prototype,"secondPartClass",void 0);_([z({dataType:ut.STRING}),D({field_type:B.IMAGE,label:"Logo Image",description:"Optional image to display alongside the logo text (ReactNode or image path)",placeholder:"Image path or React component"}),W(),F("design:type",Object)],Pn.prototype,"image",void 0);_([z({defaultValue:"start",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Image Position",description:"Position of the image relative to the logo text",validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left)",value:"start"},{label:"Center",value:"center"},{label:"End (Right)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),Ue(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),F("design:type",String)],Pn.prototype,"imagePosition",void 0);Pn=_([Ft("Logo","1.0.0")],Pn);var Uz=Pn;function u2({name:e="Qwick Apps",variant:t="default",size:r="medium",badge:n="top-right",badgeShape:o="circle",badgeOffsetX:a,badgeOffsetY:c,fontFamily:u="Segoe UI, sans-serif",fontWeight:d="bold",firstPartClass:f="logo-first-part",secondPartClass:h="logo-second-part",image:v,imagePosition:m="start",onClick:y,style:x,className:w,...C}){const{styleProps:P,htmlProps:k}=In(C),I=b.useMemo(()=>a!==void 0||c!==void 0?{x:a,y:c}:void 0,[a,c]),T=b.useRef(null),[M,R]=b.useState({x:155,y:20}),[L,A]=b.useState(180),H=b.useCallback(J=>{if(J.includes("\\n")){const[ee,...he]=J.split("\\n");return{firstPart:ee.replace(/\\s/g," "),secondPart:he.join("\\n").replace(/\\s/g," "),isNewLine:!0}}if(J.includes("\\s")){const ee=J.split("\\s");return ee.length>=2?{firstPart:ee[0],secondPart:ee.slice(1).join(" "),isNewLine:!1}:{firstPart:ee[0],secondPart:"",isNewLine:!1}}const oe=J.trim().split(/\s+/);return oe.length===1?{firstPart:oe[0],secondPart:"",isNewLine:!1}:oe.length===2?{firstPart:oe[0],secondPart:oe[1],isNewLine:!1}:{firstPart:oe.slice(0,-1).join(" "),secondPart:oe[oe.length-1],isNewLine:!1}},[]),{firstPart:G,secondPart:$,isNewLine:j}=H(e),q=e.includes("\\s"),V=`logo-${r}`,O=(J,oe)=>{const ee={tiny:{fontSize:16,height:32},small:{fontSize:20,height:40},medium:{fontSize:28,height:50},large:{fontSize:36,height:64},"extra-large":{fontSize:48,height:84}},he=ee[J]||ee.medium;return oe&&(he.height+=Math.round(he.fontSize*1.4)),he},{fontSize:U,height:K}=O(r,j),Y=b.useCallback(J=>{const oe=U/28,ee=8*oe,he=((I==null?void 0:I.x)??0)*oe,Ce=((I==null?void 0:I.y)??0)*oe;let ye,ce;switch(n){case"top-left":ye=J.x-ee,ce=J.y+ee;break;case"top-center":ye=J.x+J.width/2,ce=J.y+ee;break;case"top-right":ye=J.x+J.width+ee,ce=J.y+ee;break;case"start":ye=J.x-ee,ce=J.y+J.height/2;break;case"center":ye=J.x+J.width/2,ce=J.y+J.height/2;break;case"end":ye=J.x+J.width+ee,ce=J.y+J.height/2;break;case"bottom-left":ye=J.x-ee,ce=J.y+J.height-ee;break;case"bottom-center":ye=J.x+J.width/2,ce=J.y+J.height-ee;break;case"bottom-right":ye=J.x+J.width+ee,ce=J.y+J.height-ee;break;default:ye=J.x+J.width+ee,ce=J.y+ee;break}return{x:ye+he,y:ce+Ce}},[n,I,U]);b.useEffect(()=>{if(T.current){const J=T.current.getBBox(),oe=Y(J),ee=Math.max(180,J.x+J.width+20);R(oe),A(ee)}},[e,n,I,Y,U,K,H,L]);let Z="";t==="high-contrast"||t==="monochrome"||t==="on-primary"?Z=`logo-${t}`:t!=="default"?Z=`logo-${t}`:Z="logo-default";const Q=`${e} Logo`,X=()=>{if(n==="none")return null;const J={className:`logo-badge logo-badge-${o}`},{x:oe,y:ee}=M,he=U/28,Ce=5*he,ye=10*he;switch(o){case"circle":return l.jsx("circle",{cx:oe,cy:ee,r:Ce,...J,children:l.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})});case"star":{const ce=he;return l.jsx("polygon",{points:`${oe},${ee-5*ce} ${oe+2*ce},${ee} ${oe+7*ce},${ee} ${oe+3*ce},${ee+3*ce} ${oe+5*ce},${ee+8*ce} ${oe},${ee+5*ce} ${oe-5*ce},${ee+8*ce} ${oe-3*ce},${ee+3*ce} ${oe-7*ce},${ee} ${oe-2*ce},${ee}`,...J,children:l.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})})}case"square":return l.jsx("rect",{x:oe-Ce,y:ee-Ce,width:ye,height:ye,...J,children:l.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})});case"heart":{const ce=he;return l.jsx("path",{d:`M${oe},${ee+6*ce} C${oe},${ee+6*ce} ${oe-7*ce},${ee} ${oe-7*ce},${ee-4*ce} C${oe-7*ce},${ee-6*ce} ${oe-5*ce},${ee-8*ce} ${oe-3*ce},${ee-8*ce} C${oe-2*ce},${ee-8*ce} ${oe},${ee-7*ce} ${oe},${ee-5*ce} C${oe},${ee-7*ce} ${oe+2*ce},${ee-8*ce} ${oe+3*ce},${ee-8*ce} C${oe+5*ce},${ee-8*ce} ${oe+7*ce},${ee-6*ce} ${oe+7*ce},${ee-4*ce} C${oe+7*ce},${ee} ${oe},${ee+6*ce} ${oe},${ee+6*ce} Z`,...J,children:l.jsx("animate",{attributeName:"fill-opacity",values:"0.7;1;0.7",dur:"1.5s",repeatCount:"indefinite"})})}default:return l.jsx("circle",{cx:oe,cy:ee,r:Ce,...J,children:l.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})})}},re=()=>{if(!v||m==="none")return null;if(typeof v=="string"){const J=U;return l.jsx("img",{src:v,alt:"",style:{width:J,height:J,objectFit:"contain"},className:"logo-image"})}return l.jsx("div",{className:"logo-image-container",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:v})};return(()=>{const J=l.jsxs("svg",{width:L,height:K,viewBox:`0 0 ${L} ${K}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`logo-svg dynamic-logo ${V} ${Z}`.trim(),style:{height:`${K}px`,...x},role:"img","aria-label":Q,children:[l.jsxs("text",{ref:T,fontFamily:u,fontSize:U,fontWeight:d,children:[l.jsx("tspan",{x:"15",y:j?K*.4:K*.7,className:f,children:G}),$&&l.jsx("tspan",{x:j?"15":void 0,dy:j?U*1.2:void 0,className:h,children:j?$:q?` ${$}`:$})]}),X()]}),oe=re();if(!oe)return J;const ee={display:"flex",alignItems:"center",gap:"8px"};let he="logo-container";switch(m){case"start":ee.flexDirection="row",he+=" logo-image-start";break;case"end":ee.flexDirection="row-reverse",he+=" logo-image-end";break;case"top-center":ee.flexDirection="column",he+=" logo-image-top";break;case"bottom-center":ee.flexDirection="column-reverse",he+=" logo-image-bottom";break;default:ee.flexDirection="row",he+=" logo-image-start";break}return l.jsxs("div",{...k,...P,className:`${he} ${w||""}`.trim(),style:{...ee,cursor:y?"pointer":"default",...x},onClick:y,children:[oe,J]})})()}function Nh(e){const{dataSource:t,bindingOptions:r,...n}=e,o=Fi(t||"",{initialData:n,schema:Uz.getSchema(),cache:!0,cacheTTL:3e5,strict:!1,...r});if(!t)return l.jsx(u2,{...n});const{loading:a,error:c,...u}=o;return a?l.jsx("div",{style:{opacity:.5,textAlign:"center",padding:"16px"},children:"Loading logo..."}):c?l.jsxs("div",{style:{color:"red",textAlign:"center",padding:"16px"},children:["Error loading logo: ",c.message]}):l.jsx(u2,{...u})}Object.defineProperty(Nh,Bn,{value:!0,enumerable:!1,configurable:!0});const Wz=({title:e,subtitle:t,coverImage:r})=>{const{appName:n}=m0(),o=r||l.jsx(Nh,{name:n||"Qwick Apps",size:"medium",variant:"default"});return l.jsx(Vz,{image:o,imageSize:"medium",imageShape:"square",title:e||"Welcome",subtitle:t,variant:"default"})};function _T({header:e,title:t,description:r,coverImage:n,children:o,footer:a,status:c,message:u,maxWidth:d="sm",background:f="--theme-surface",backgroundImage:h,...v}){const{styleProps:m,htmlProps:y}=In(v),x=no();if(!o)return l.jsx(_r,{...y,...m,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...m.sx},children:l.jsx(pe,{variant:"body2",color:"text.secondary",children:"No form content provided"})});const w=()=>{switch(f){case"gradient":return{background:`linear-gradient(135deg, ${x.palette.primary.main} 0%, ${x.palette.secondary.main} 100%)`};case"image":return h?{backgroundImage:`linear-gradient(${x.palette.action.hover}, ${x.palette.action.hover}), url(${h})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};default:return{backgroundColor:x.palette.background.default}}};return l.jsx(ne,{...y,...m,className:`${m.className||""}`,sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",py:3,...w(),...m.sx},children:l.jsx($f,{maxWidth:d,children:l.jsxs(yt,{elevation:f==="default"?1:8,sx:{borderRadius:3,overflow:"hidden",backgroundColor:f==="default"?x.palette.background.paper:x.palette.mode==="dark"?"rgba(18, 18, 18, 0.95)":"rgba(255, 255, 255, 0.95)",backdropFilter:f!=="default"?"blur(10px)":"none"},children:[e||t||r?e||l.jsx(Wz,{title:t,subtitle:r,coverImage:n}):null,l.jsxs(gt,{sx:{p:{xs:3,sm:4,md:5}},children:[c&&u&&l.jsx(Kt,{severity:c,sx:{mb:3},variant:"outlined",children:u}),l.jsx(ne,{sx:{mb:a?3:0},children:o}),a&&l.jsx(ne,{sx:{textAlign:"center"},children:a})]})]})})})}class Ec extends Js{static fromJson(t){return l.jsx(Ec,{...t})}hasNestedComponents(t){return!0}serializeChildren(t){var r;if(Lt.isValidElement(t)&&((r=t.type.prototype)!=null&&r.toJson)){const n=t.type;return n.fromJson?{component:n.tagName,props:t.props}:t}return super.serializeChildren(t)}getComponentSpecificProps(){return{title:this.props.title,description:this.props.description,status:this.props.status,message:this.props.message,maxWidth:this.props.maxWidth,background:this.props.background,backgroundImage:this.props.backgroundImage}}renderView(){const{dataSource:t,bindingOptions:r,...n}=this.props;return l.jsx(_T,{...n})}renderWithDataBinding(){return l.jsx(qz,{...this.props})}}Ec.tagName="FormBlock";Ec.version="1.0.0";function qz(e){const{dataSource:t,bindingOptions:r,...n}=e,{loading:o,error:a,...c}=Fi(t,n,Bz.getSchema(),{...r});return o?l.jsxs(_r,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[l.jsx(pe,{variant:"body2",children:"Loading Form..."}),l.jsx(pe,{variant:"caption",color:"text.secondary",children:"Loading form content from data source..."})]}):a?(console.error("Error loading form block:",a),l.jsx(_r,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:l.jsxs(pe,{variant:"body2",color:"error",children:["Error loading form: ",a.message]})})):l.jsx(_T,{...c})}Ec[Bn]=!0;var It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xz(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var LT={},td={},g0={},rd={},y0={};Object.defineProperty(y0,"__esModule",{value:!0});y0.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var v0={};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var tv={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(a){var c="";return a>65535&&(a-=65536,c+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),c+=String.fromCharCode(a),c};function n(a){var c;return a>=55296&&a<=57343||a>1114111?65533:(c=r.get(a))!==null&&c!==void 0?c:a}e.replaceCodePoint=n;function o(a){return(0,e.fromCodePoint)(n(a))}e.default=o})(tv);(function(e){var t=It&&It.__createBinding||(Object.create?(function($,j,q,V){V===void 0&&(V=q);var O=Object.getOwnPropertyDescriptor(j,q);(!O||("get"in O?!j.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return j[q]}}),Object.defineProperty($,V,O)}):(function($,j,q,V){V===void 0&&(V=q),$[V]=j[q]})),r=It&&It.__setModuleDefault||(Object.create?(function($,j){Object.defineProperty($,"default",{enumerable:!0,value:j})}):function($,j){$.default=j}),n=It&&It.__importStar||function($){if($&&$.__esModule)return $;var j={};if($!=null)for(var q in $)q!=="default"&&Object.prototype.hasOwnProperty.call($,q)&&t(j,$,q);return r(j,$),j},o=It&&It.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var a=o(y0);e.htmlDecodeTree=a.default;var c=o(v0);e.xmlDecodeTree=c.default;var u=n(tv);e.decodeCodePoint=u.default;var d=tv;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}});var f;(function($){$[$.NUM=35]="NUM",$[$.SEMI=59]="SEMI",$[$.EQUALS=61]="EQUALS",$[$.ZERO=48]="ZERO",$[$.NINE=57]="NINE",$[$.LOWER_A=97]="LOWER_A",$[$.LOWER_F=102]="LOWER_F",$[$.LOWER_X=120]="LOWER_X",$[$.LOWER_Z=122]="LOWER_Z",$[$.UPPER_A=65]="UPPER_A",$[$.UPPER_F=70]="UPPER_F",$[$.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var h=32,v;(function($){$[$.VALUE_LENGTH=49152]="VALUE_LENGTH",$[$.BRANCH_LENGTH=16256]="BRANCH_LENGTH",$[$.JUMP_TABLE=127]="JUMP_TABLE"})(v=e.BinTrieFlags||(e.BinTrieFlags={}));function m($){return $>=f.ZERO&&$<=f.NINE}function y($){return $>=f.UPPER_A&&$<=f.UPPER_F||$>=f.LOWER_A&&$<=f.LOWER_F}function x($){return $>=f.UPPER_A&&$<=f.UPPER_Z||$>=f.LOWER_A&&$<=f.LOWER_Z||m($)}function w($){return $===f.EQUALS||x($)}var C;(function($){$[$.EntityStart=0]="EntityStart",$[$.NumericStart=1]="NumericStart",$[$.NumericDecimal=2]="NumericDecimal",$[$.NumericHex=3]="NumericHex",$[$.NamedEntity=4]="NamedEntity"})(C||(C={}));var P;(function($){$[$.Legacy=0]="Legacy",$[$.Strict=1]="Strict",$[$.Attribute=2]="Attribute"})(P=e.DecodingMode||(e.DecodingMode={}));var k=(function(){function $(j,q,V){this.decodeTree=j,this.emitCodePoint=q,this.errors=V,this.state=C.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=P.Strict}return $.prototype.startEntity=function(j){this.decodeMode=j,this.state=C.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},$.prototype.write=function(j,q){switch(this.state){case C.EntityStart:return j.charCodeAt(q)===f.NUM?(this.state=C.NumericStart,this.consumed+=1,this.stateNumericStart(j,q+1)):(this.state=C.NamedEntity,this.stateNamedEntity(j,q));case C.NumericStart:return this.stateNumericStart(j,q);case C.NumericDecimal:return this.stateNumericDecimal(j,q);case C.NumericHex:return this.stateNumericHex(j,q);case C.NamedEntity:return this.stateNamedEntity(j,q)}},$.prototype.stateNumericStart=function(j,q){return q>=j.length?-1:(j.charCodeAt(q)|h)===f.LOWER_X?(this.state=C.NumericHex,this.consumed+=1,this.stateNumericHex(j,q+1)):(this.state=C.NumericDecimal,this.stateNumericDecimal(j,q))},$.prototype.addToNumericResult=function(j,q,V,O){if(q!==V){var U=V-q;this.result=this.result*Math.pow(O,U)+parseInt(j.substr(q,U),O),this.consumed+=U}},$.prototype.stateNumericHex=function(j,q){for(var V=q;q<j.length;){var O=j.charCodeAt(q);if(m(O)||y(O))q+=1;else return this.addToNumericResult(j,V,q,16),this.emitNumericEntity(O,3)}return this.addToNumericResult(j,V,q,16),-1},$.prototype.stateNumericDecimal=function(j,q){for(var V=q;q<j.length;){var O=j.charCodeAt(q);if(m(O))q+=1;else return this.addToNumericResult(j,V,q,10),this.emitNumericEntity(O,2)}return this.addToNumericResult(j,V,q,10),-1},$.prototype.emitNumericEntity=function(j,q){var V;if(this.consumed<=q)return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(j===f.SEMI)this.consumed+=1;else if(this.decodeMode===P.Strict)return 0;return this.emitCodePoint((0,u.replaceCodePoint)(this.result),this.consumed),this.errors&&(j!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},$.prototype.stateNamedEntity=function(j,q){for(var V=this.decodeTree,O=V[this.treeIndex],U=(O&v.VALUE_LENGTH)>>14;q<j.length;q++,this.excess++){var K=j.charCodeAt(q);if(this.treeIndex=T(V,O,this.treeIndex+Math.max(1,U),K),this.treeIndex<0)return this.result===0||this.decodeMode===P.Attribute&&(U===0||w(K))?0:this.emitNotTerminatedNamedEntity();if(O=V[this.treeIndex],U=(O&v.VALUE_LENGTH)>>14,U!==0){if(K===f.SEMI)return this.emitNamedEntityData(this.treeIndex,U,this.consumed+this.excess);this.decodeMode!==P.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},$.prototype.emitNotTerminatedNamedEntity=function(){var j,q=this,V=q.result,O=q.decodeTree,U=(O[V]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(V,U,this.consumed),(j=this.errors)===null||j===void 0||j.missingSemicolonAfterCharacterReference(),this.consumed},$.prototype.emitNamedEntityData=function(j,q,V){var O=this.decodeTree;return this.emitCodePoint(q===1?O[j]&~v.VALUE_LENGTH:O[j+1],V),q===3&&this.emitCodePoint(O[j+2],V),V},$.prototype.end=function(){var j;switch(this.state){case C.NamedEntity:return this.result!==0&&(this.decodeMode!==P.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case C.NumericDecimal:return this.emitNumericEntity(0,2);case C.NumericHex:return this.emitNumericEntity(0,3);case C.NumericStart:return(j=this.errors)===null||j===void 0||j.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case C.EntityStart:return 0}},$})();e.EntityDecoder=k;function I($){var j="",q=new k($,function(V){return j+=(0,u.fromCodePoint)(V)});return function(O,U){for(var K=0,Y=0;(Y=O.indexOf("&",Y))>=0;){j+=O.slice(K,Y),q.startEntity(U);var Z=q.write(O,Y+1);if(Z<0){K=Y+q.end();break}K=Y+Z,Y=Z===0?K+1:K}var Q=j+O.slice(K);return j="",Q}}function T($,j,q,V){var O=(j&v.BRANCH_LENGTH)>>7,U=j&v.JUMP_TABLE;if(O===0)return U!==0&&V===U?q:-1;if(U){var K=V-U;return K<0||K>=O?-1:$[q+K]-1}for(var Y=q,Z=Y+O-1;Y<=Z;){var Q=Y+Z>>>1,X=$[Q];if(X<V)Y=Q+1;else if(X>V)Z=Q-1;else return $[Q+O]}return-1}e.determineBranch=T;var M=I(a.default),R=I(c.default);function L($,j){return j===void 0&&(j=P.Legacy),M($,j)}e.decodeHTML=L;function A($){return M($,P.Attribute)}e.decodeHTMLAttribute=A;function H($){return M($,P.Strict)}e.decodeHTMLStrict=H;function G($){return R($,P.Strict)}e.decodeXML=G})(rd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t=rd,r;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(m){return m===r.Space||m===r.NewLine||m===r.Tab||m===r.FormFeed||m===r.CarriageReturn}function a(m){return m===r.Slash||m===r.Gt||o(m)}function c(m){return m>=r.Zero&&m<=r.Nine}function u(m){return m>=r.LowerA&&m<=r.LowerZ||m>=r.UpperA&&m<=r.UpperZ}function d(m){return m>=r.UpperA&&m<=r.UpperF||m>=r.LowerA&&m<=r.LowerF}var f;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(f=e.QuoteType||(e.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},v=(function(){function m(y,x){var w=y.xmlMode,C=w===void 0?!1:w,P=y.decodeEntities,k=P===void 0?!0:P;this.cbs=x,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=C,this.decodeEntities=k,this.entityTrie=C?t.xmlDecodeTree:t.htmlDecodeTree}return m.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(y){this.offset+=this.buffer.length,this.buffer=y,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},m.prototype.getIndex=function(){return this.index},m.prototype.getSectionStart=function(){return this.sectionStart},m.prototype.stateText=function(y){y===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(y){var x=this.sequenceIndex===this.currentSequence.length,w=x?a(y):(y|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!x){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(y)},m.prototype.stateInSpecialTag=function(y){if(this.sequenceIndex===this.currentSequence.length){if(y===r.Gt||o(y)){var x=this.index-this.currentSequence.length;if(this.sectionStart<x){var w=this.index;this.index=x,this.cbs.ontext(this.sectionStart,x),this.index=w}this.isSpecial=!1,this.sectionStart=x+2,this.stateInClosingTagName(y);return}this.sequenceIndex=0}(y|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===h.TitleEnd?this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(y===r.Lt)},m.prototype.stateCDATASequence=function(y){y===h.Cdata[this.sequenceIndex]?++this.sequenceIndex===h.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=h.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(y))},m.prototype.fastForwardTo=function(y){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===y)return!0;return this.index=this.buffer.length+this.offset-1,!1},m.prototype.stateInCommentLike=function(y){y===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):y!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},m.prototype.isTagStartChar=function(y){return this.xmlMode?!a(y):u(y)},m.prototype.startSpecial=function(y,x){this.isSpecial=!0,this.currentSequence=y,this.sequenceIndex=x,this.state=n.SpecialStartSequence},m.prototype.stateBeforeTagName=function(y){if(y===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(y===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(y)){var x=y|32;this.sectionStart=this.index,!this.xmlMode&&x===h.TitleEnd[2]?this.startSpecial(h.TitleEnd,3):this.state=!this.xmlMode&&x===h.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else y===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(y))},m.prototype.stateInTagName=function(y){a(y)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},m.prototype.stateBeforeClosingTagName=function(y){o(y)||(y===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(y)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},m.prototype.stateInClosingTagName=function(y){(y===r.Gt||o(y))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(y))},m.prototype.stateAfterClosingTagName=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeAttributeName=function(y){y===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):y===r.Slash?this.state=n.InSelfClosingTag:o(y)||(this.state=n.InAttributeName,this.sectionStart=this.index)},m.prototype.stateInSelfClosingTag=function(y){y===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(y)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},m.prototype.stateInAttributeName=function(y){(y===r.Eq||a(y))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(y))},m.prototype.stateAfterAttributeName=function(y){y===r.Eq?this.state=n.BeforeAttributeValue:y===r.Slash||y===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):o(y)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},m.prototype.stateBeforeAttributeValue=function(y){y===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):y===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(y)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(y))},m.prototype.handleInAttributeValue=function(y,x){y===x||!this.decodeEntities&&this.fastForwardTo(x)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(x===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},m.prototype.stateInAttributeValueDoubleQuotes=function(y){this.handleInAttributeValue(y,r.DoubleQuote)},m.prototype.stateInAttributeValueSingleQuotes=function(y){this.handleInAttributeValue(y,r.SingleQuote)},m.prototype.stateInAttributeValueNoQuotes=function(y){o(y)||y===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},m.prototype.stateBeforeDeclaration=function(y){y===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=y===r.Dash?n.BeforeComment:n.InDeclaration},m.prototype.stateInDeclaration=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateInProcessingInstruction=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeComment=function(y){y===r.Dash?(this.state=n.InCommentLike,this.currentSequence=h.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},m.prototype.stateInSpecialComment=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeSpecialS=function(y){var x=y|32;x===h.ScriptEnd[3]?this.startSpecial(h.ScriptEnd,4):x===h.StyleEnd[3]?this.startSpecial(h.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},m.prototype.stateBeforeEntity=function(y){this.entityExcess=1,this.entityResult=0,y===r.Number?this.state=n.BeforeNumericEntity:y===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(y))},m.prototype.stateInNamedEntity=function(y){if(this.entityExcess+=1,this.trieIndex=(0,t.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,y),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var x=this.trieCurrent&t.BinTrieFlags.VALUE_LENGTH;if(x){var w=(x>>14)-1;if(!this.allowLegacyEntity()&&y!==r.Semi)this.trieIndex+=w;else{var C=this.index-this.entityExcess+1;C>this.sectionStart&&this.emitPartial(this.sectionStart,C),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var y=(this.entityTrie[this.entityResult]&t.BinTrieFlags.VALUE_LENGTH)>>14;switch(y){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~t.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(y){(y|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(y))},m.prototype.emitNumericEntity=function(y){var x=this.index-this.entityExcess-1,w=x+2+ +(this.state===n.InHexEntity);w!==this.index&&(x>this.sectionStart&&this.emitPartial(this.sectionStart,x),this.sectionStart=this.index+Number(y),this.emitCodePoint((0,t.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):c(y)?(this.entityResult=this.entityResult*10+(y-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):c(y)?(this.entityResult=this.entityResult*16+(y-r.Zero),this.entityExcess++):d(y)?(this.entityResult=this.entityResult*16+((y|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},m.prototype.parse=function(){for(;this.shouldContinue();){var y=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(y);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(y);break}case n.InSpecialTag:{this.stateInSpecialTag(y);break}case n.CDATASequence:{this.stateCDATASequence(y);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(y);break}case n.InAttributeName:{this.stateInAttributeName(y);break}case n.InCommentLike:{this.stateInCommentLike(y);break}case n.InSpecialComment:{this.stateInSpecialComment(y);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(y);break}case n.InTagName:{this.stateInTagName(y);break}case n.InClosingTagName:{this.stateInClosingTagName(y);break}case n.BeforeTagName:{this.stateBeforeTagName(y);break}case n.AfterAttributeName:{this.stateAfterAttributeName(y);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(y);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(y);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(y);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(y);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(y);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(y);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(y);break}case n.InDeclaration:{this.stateInDeclaration(y);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(y);break}case n.BeforeComment:{this.stateBeforeComment(y);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(y);break}case n.InNamedEntity:{this.stateInNamedEntity(y);break}case n.BeforeEntity:{this.stateBeforeEntity(y);break}case n.InHexEntity:{this.stateInHexEntity(y);break}case n.InNumericEntity:{this.stateInNumericEntity(y);break}default:this.stateBeforeNumericEntity(y)}this.index++}this.cleanup()},m.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},m.prototype.handleTrailingData=function(){var y=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,y,0):this.cbs.oncomment(this.sectionStart,y,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,y)},m.prototype.emitPartial=function(y,x){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(y,x):this.cbs.ontext(y,x)},m.prototype.emitCodePoint=function(y){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(y):this.cbs.ontextentity(y)},m})();e.default=v})(g0);var Kz=It&&It.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Qz=It&&It.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Yz=It&&It.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Kz(t,e,r);return Qz(t,e),t};Object.defineProperty(td,"__esModule",{value:!0});td.Parser=void 0;var tf=Yz(g0),d2=rd,Ol=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pr=new Set(["p"]),p2=new Set(["thead","tbody"]),f2=new Set(["dd","dt"]),h2=new Set(["rt","rp"]),Jz=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",pr],["h1",pr],["h2",pr],["h3",pr],["h4",pr],["h5",pr],["h6",pr],["select",Ol],["input",Ol],["output",Ol],["button",Ol],["datalist",Ol],["textarea",Ol],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",f2],["dt",f2],["address",pr],["article",pr],["aside",pr],["blockquote",pr],["details",pr],["div",pr],["dl",pr],["fieldset",pr],["figcaption",pr],["figure",pr],["footer",pr],["form",pr],["header",pr],["hr",pr],["main",pr],["nav",pr],["ol",pr],["pre",pr],["section",pr],["table",pr],["ul",pr],["rt",h2],["rp",h2],["tbody",p2],["tfoot",p2]]),Zz=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m2=new Set(["math","svg"]),g2=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),eD=/\s|\//,tD=(function(){function e(t,r){r===void 0&&(r={});var n,o,a,c,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:tf.default)(this.options,this),(u=(c=this.cbs).onparserinit)===null||u===void 0||u.call(c,this)}return e.prototype.ontext=function(t,r){var n,o,a=this.getSlice(t,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},e.prototype.ontextentity=function(t){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,d2.fromCodePoint)(t)),this.startIndex=o},e.prototype.isVoidElement=function(t){return!this.options.xmlMode&&Zz.has(t)},e.prototype.onopentagname=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(t){var r,n,o,a;this.openTagStart=this.startIndex,this.tagname=t;var c=!this.options.xmlMode&&Jz.get(t);if(c)for(;this.stack.length>0&&c.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),m2.has(t)?this.foreignContext.push(!0):g2.has(t)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,r){var n,o,a,c,u,d;this.endIndex=r;var f=this.getSlice(t,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(m2.has(f)||g2.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(c=(a=this.cbs).onopentag)===null||c===void 0||c.call(a,"br",{},!0),(d=(u=this.cbs).onclosetag)===null||d===void 0||d.call(u,"br",!1));else{var h=this.stack.lastIndexOf(f);if(h!==-1)if(this.cbs.onclosetag)for(var v=this.stack.length-h;v--;)this.cbs.onclosetag(this.stack.pop(),v!==0);else this.stack.length=h;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var r,n,o=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!t),this.stack.pop())},e.prototype.onattribname=function(t,r){this.startIndex=t;var n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(t,r){this.attribvalue+=this.getSlice(t,r)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,d2.fromCodePoint)(t)},e.prototype.onattribend=function(t,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,t===tf.QuoteType.Double?'"':t===tf.QuoteType.Single?"'":t===tf.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var r=t.search(eD),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},e.prototype.onprocessinginstruction=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},e.prototype.oncomment=function(t,r,n){var o,a,c,u;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(t,r-n)),(u=(c=this.cbs).oncommentend)===null||u===void 0||u.call(c),this.startIndex=r+1},e.prototype.oncdata=function(t,r,n){var o,a,c,u,d,f,h,v,m,y;this.endIndex=r;var x=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(u=(c=this.cbs).ontext)===null||u===void 0||u.call(c,x),(f=(d=this.cbs).oncdataend)===null||f===void 0||f.call(d)):((v=(h=this.cbs).oncomment)===null||v===void 0||v.call(h,"[CDATA[".concat(x,"]]")),(y=(m=this.cbs).oncommentend)===null||y===void 0||y.call(m)),this.startIndex=r+1},e.prototype.onend=function(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)},e.prototype.reset=function(){var t,r,n,o;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(t){this.write(t)},e.prototype.done=function(t){this.end(t)},e})();td.Parser=tD;var la={},Tc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Tc);var Wt={},us=It&&It.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ou=It&&It.__assign||function(){return Ou=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ou.apply(this,arguments)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.cloneNode=Wt.hasChildren=Wt.isDocument=Wt.isDirective=Wt.isComment=Wt.isText=Wt.isCDATA=Wt.isTag=Wt.Element=Wt.Document=Wt.CDATA=Wt.NodeWithChildren=Wt.ProcessingInstruction=Wt.Comment=Wt.Text=Wt.DataNode=Wt.Node=void 0;var Yn=Tc,x0=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),b0(this,t)},e})();Wt.Node=x0;var $h=(function(e){us(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(x0);Wt.DataNode=$h;var OT=(function(e){us(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Yn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})($h);Wt.Text=OT;var NT=(function(e){us(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Yn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})($h);Wt.Comment=NT;var $T=(function(e){us(t,e);function t(r,n){var o=e.call(this,n)||this;return o.name=r,o.type=Yn.ElementType.Directive,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})($h);Wt.ProcessingInstruction=$T;var Bh=(function(e){us(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(x0);Wt.NodeWithChildren=Bh;var BT=(function(e){us(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Yn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Bh);Wt.CDATA=BT;var zT=(function(e){us(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Yn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Bh);Wt.Document=zT;var DT=(function(e){us(t,e);function t(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Yn.ElementType.Script:r==="style"?Yn.ElementType.Style:Yn.ElementType.Tag);var c=e.call(this,o)||this;return c.name=r,c.attribs=n,c.type=a,c}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),t})(Bh);Wt.Element=DT;function FT(e){return(0,Yn.isTag)(e)}Wt.isTag=FT;function HT(e){return e.type===Yn.ElementType.CDATA}Wt.isCDATA=HT;function VT(e){return e.type===Yn.ElementType.Text}Wt.isText=VT;function UT(e){return e.type===Yn.ElementType.Comment}Wt.isComment=UT;function WT(e){return e.type===Yn.ElementType.Directive}Wt.isDirective=WT;function qT(e){return e.type===Yn.ElementType.Root}Wt.isDocument=qT;function rD(e){return Object.prototype.hasOwnProperty.call(e,"children")}Wt.hasChildren=rD;function b0(e,t){t===void 0&&(t=!1);var r;if(VT(e))r=new OT(e.data);else if(UT(e))r=new NT(e.data);else if(FT(e)){var n=t?ey(e.children):[],o=new DT(e.name,Ou({},e.attribs),n);n.forEach(function(d){return d.parent=o}),e.namespace!=null&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=Ou({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=Ou({},e["x-attribsPrefix"])),r=o}else if(HT(e)){var n=t?ey(e.children):[],a=new BT(n);n.forEach(function(f){return f.parent=a}),r=a}else if(qT(e)){var n=t?ey(e.children):[],c=new zT(n);n.forEach(function(f){return f.parent=c}),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else if(WT(e)){var u=new $T(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Wt.cloneNode=b0;function ey(e){for(var t=e.map(function(n){return b0(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=It&&It.__createBinding||(Object.create?(function(u,d,f,h){h===void 0&&(h=f);var v=Object.getOwnPropertyDescriptor(d,f);(!v||("get"in v?!d.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,h,v)}):(function(u,d,f,h){h===void 0&&(h=f),u[h]=d[f]})),r=It&&It.__exportStar||function(u,d){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Tc,o=Wt;r(Wt,e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=(function(){function u(d,f,h){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=a),typeof d=="object"&&(f=d,d=void 0),this.callback=d??null,this.options=f??a,this.elementCB=h??null}return u.prototype.onparserinit=function(d){this.parser=d},u.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(d){this.handleCallback(d)},u.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},u.prototype.onopentag=function(d,f){var h=this.options.xmlMode?n.ElementType.Tag:void 0,v=new o.Element(d,f,void 0,h);this.addNode(v),this.tagStack.push(v)},u.prototype.ontext=function(d){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=d,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new o.Text(d);this.addNode(h),this.lastNode=h}},u.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=d;return}var f=new o.Comment(d);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var d=new o.Text(""),f=new o.CDATA([d]);this.addNode(f),d.parent=f,this.lastNode=d},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(d,f){var h=new o.ProcessingInstruction(d,f);this.addNode(h)},u.prototype.handleCallback=function(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d},u.prototype.addNode=function(d){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),f.children.push(d),h&&(d.prev=h,h.next=d),d.parent=f,this.lastNode=null},u})();e.DomHandler=c,e.default=c})(la);var Sf={},ds={},kd={},GT={},Vs={},w0={};Object.defineProperty(w0,"__esModule",{value:!0});function rf(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}w0.default=new Map(rf([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(rf([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(rf([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(rf([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Vf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:(function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)});function r(o){for(var a="",c=0,u;(u=e.xmlReplacer.exec(o))!==null;){var d=u.index,f=o.charCodeAt(d),h=t.get(f);h!==void 0?(a+=o.substring(c,d)+h,c=d+1):(a+="".concat(o.substring(c,d),"&#x").concat((0,e.getCodePoint)(o,d).toString(16),";"),c=e.xmlReplacer.lastIndex+=+((f&64512)===55296))}return a+o.substr(c)}e.encodeXML=r,e.escape=r;function n(o,a){return function(u){for(var d,f=0,h="";d=o.exec(u);)f!==d.index&&(h+=u.substring(f,d.index)),h+=a.get(d[0].charCodeAt(0)),f=d.index+1;return h+u.substring(f)}}e.escapeUTF8=n(/[&<>'"]/g,t),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Vf);var nD=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.encodeNonAsciiHTML=Vs.encodeHTML=void 0;var oD=nD(w0),XT=Vf,iD=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function aD(e){return KT(iD,e)}Vs.encodeHTML=aD;function sD(e){return KT(XT.xmlReplacer,e)}Vs.encodeNonAsciiHTML=sD;function KT(e,t){for(var r="",n=0,o;(o=e.exec(t))!==null;){var a=o.index;r+=t.substring(n,a);var c=t.charCodeAt(a),u=oD.default.get(c);if(typeof u=="object"){if(a+1<t.length){var d=t.charCodeAt(a+1),f=typeof u.n=="number"?u.n===d?u.o:void 0:u.n.get(d);if(f!==void 0){r+=f,n=e.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=a+1;else{var h=(0,XT.getCodePoint)(t,a);r+="&#x".concat(h.toString(16),";"),n=e.lastIndex+=+(h!==c)}}return r+t.substr(n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLAttribute=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.DecodingMode=e.EntityDecoder=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.EntityLevel=void 0;var t=rd,r=Vs,n=Vf,o;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(o=e.EntityLevel||(e.EntityLevel={}));var a;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(a=e.EncodingMode||(e.EncodingMode={}));function c(m,y){y===void 0&&(y=o.XML);var x=typeof y=="number"?y:y.level;if(x===o.HTML){var w=typeof y=="object"?y.mode:void 0;return(0,t.decodeHTML)(m,w)}return(0,t.decodeXML)(m)}e.decode=c;function u(m,y){var x;y===void 0&&(y=o.XML);var w=typeof y=="number"?{level:y}:y;return(x=w.mode)!==null&&x!==void 0||(w.mode=t.DecodingMode.Strict),c(m,w)}e.decodeStrict=u;function d(m,y){y===void 0&&(y=o.XML);var x=typeof y=="number"?{level:y}:y;return x.mode===a.UTF8?(0,n.escapeUTF8)(m):x.mode===a.Attribute?(0,n.escapeAttribute)(m):x.mode===a.Text?(0,n.escapeText)(m):x.level===o.HTML?x.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(m):(0,r.encodeHTML)(m):(0,n.encodeXML)(m)}e.encode=d;var f=Vf;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var h=Vs;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var v=rd;Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return v.EntityDecoder}}),Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return v.DecodingMode}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return v.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return v.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return v.decodeXML}})})(GT);var lc={};Object.defineProperty(lc,"__esModule",{value:!0});lc.attributeNames=lc.elementNames=void 0;lc.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]}));lc.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}));var Hl=It&&It.__assign||function(){return Hl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hl.apply(this,arguments)},lD=It&&It.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),cD=It&&It.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),uD=It&&It.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&lD(t,e,r);return cD(t,e),t};Object.defineProperty(kd,"__esModule",{value:!0});kd.render=void 0;var ea=uD(Tc),Uf=GT,QT=lc,dD=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function pD(e){return e.replace(/"/g,""")}function fD(e,t){var r;if(e){var n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?pD:t.xmlMode||t.encodeEntities!=="utf8"?Uf.encodeXML:Uf.escapeAttribute;return Object.keys(e).map(function(o){var a,c,u=(a=e[o])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(o=(c=QT.attributeNames.get(o))!==null&&c!==void 0?c:o),!t.emptyAttrs&&!t.xmlMode&&u===""?o:"".concat(o,'="').concat(n(u),'"')}).join(" ")}}var y2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function zh(e,t){t===void 0&&(t={});for(var r=("length"in e)?e:[e],n="",o=0;o<r.length;o++)n+=hD(r[o],t);return n}kd.render=zh;kd.default=zh;function hD(e,t){switch(e.type){case ea.Root:return zh(e.children,t);case ea.Doctype:case ea.Directive:return vD(e);case ea.Comment:return wD(e);case ea.CDATA:return bD(e);case ea.Script:case ea.Style:case ea.Tag:return yD(e,t);case ea.Text:return xD(e,t)}}var mD=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),gD=new Set(["svg","math"]);function yD(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=QT.elementNames.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&mD.has(e.parent.name)&&(t=Hl(Hl({},t),{xmlMode:!1}))),!t.xmlMode&&gD.has(e.name)&&(t=Hl(Hl({},t),{xmlMode:"foreign"}));var n="<".concat(e.name),o=fD(e.attribs,t);return o&&(n+=" ".concat(o)),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&y2.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=zh(e.children,t)),(t.xmlMode||!y2.has(e.name))&&(n+="</".concat(e.name,">"))),n}function vD(e){return"<".concat(e.data,">")}function xD(e,t){var r,n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&dD.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?(0,Uf.encodeXML)(n):(0,Uf.escapeText)(n)),n}function bD(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}function wD(e){return"<!--".concat(e.data,"-->")}var SD=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.getOuterHTML=YT;ds.getInnerHTML=TD;ds.getText=Cf;ds.textContent=rv;ds.innerText=nv;var Mi=la,CD=SD(kd),ED=Tc;function YT(e,t){return(0,CD.default)(e,t)}function TD(e,t){return(0,Mi.hasChildren)(e)?e.children.map(function(r){return YT(r,t)}).join(""):""}function Cf(e){return Array.isArray(e)?e.map(Cf).join(""):(0,Mi.isTag)(e)?e.name==="br"?`
|
|
339
|
+
`:Cf(e.children):(0,Mi.isCDATA)(e)?Cf(e.children):(0,Mi.isText)(e)?e.data:""}function rv(e){return Array.isArray(e)?e.map(rv).join(""):(0,Mi.hasChildren)(e)&&!(0,Mi.isComment)(e)?rv(e.children):(0,Mi.isText)(e)?e.data:""}function nv(e){return Array.isArray(e)?e.map(nv).join(""):(0,Mi.hasChildren)(e)&&(e.type===ED.ElementType.Tag||(0,Mi.isCDATA)(e))?nv(e.children):(0,Mi.isText)(e)?e.data:""}var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getChildren=JT;Hi.getParent=ZT;Hi.getSiblings=kD;Hi.getAttributeValue=jD;Hi.hasAttrib=PD;Hi.getName=ID;Hi.nextElementSibling=MD;Hi.prevElementSibling=RD;var S0=la;function JT(e){return(0,S0.hasChildren)(e)?e.children:[]}function ZT(e){return e.parent||null}function kD(e){var t,r,n=ZT(e);if(n!=null)return JT(n);for(var o=[e],a=e.prev,c=e.next;a!=null;)o.unshift(a),t=a,a=t.prev;for(;c!=null;)o.push(c),r=c,c=r.next;return o}function jD(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function PD(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function ID(e){return e.name}function MD(e){for(var t,r=e.next;r!==null&&!(0,S0.isTag)(r);)t=r,r=t.next;return r}function RD(e){for(var t,r=e.prev;r!==null&&!(0,S0.isTag)(r);)t=r,r=t.prev;return r}var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.removeElement=jd;ps.replaceElement=AD;ps.appendChild=_D;ps.append=LD;ps.prependChild=OD;ps.prepend=ND;function jd(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function AD(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var o=t.parent=e.parent;if(o){var a=o.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function _D(e,t){if(jd(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function LD(e,t){jd(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function OD(e,t){if(jd(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}function ND(e,t){jd(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}var fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.filter=$D;fa.find=ek;fa.findOneChild=BD;fa.findOne=tk;fa.existsOne=rk;fa.findAll=zD;var Us=la;function $D(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),ek(e,Array.isArray(t)?t:[t],r,n)}function ek(e,t,r,n){for(var o=[],a=[Array.isArray(t)?t:[t]],c=[0];;){if(c[0]>=a[0].length){if(c.length===1)return o;a.shift(),c.shift();continue}var u=a[0][c[0]++];if(e(u)&&(o.push(u),--n<=0))return o;r&&(0,Us.hasChildren)(u)&&u.children.length>0&&(c.unshift(0),a.unshift(u.children))}}function BD(e,t){return t.find(e)}function tk(e,t,r){r===void 0&&(r=!0);for(var n=Array.isArray(t)?t:[t],o=0;o<n.length;o++){var a=n[o];if((0,Us.isTag)(a)&&e(a))return a;if(r&&(0,Us.hasChildren)(a)&&a.children.length>0){var c=tk(e,a.children,!0);if(c)return c}}return null}function rk(e,t){return(Array.isArray(t)?t:[t]).some(function(r){return(0,Us.isTag)(r)&&e(r)||(0,Us.hasChildren)(r)&&rk(e,r.children)})}function zD(e,t){for(var r=[],n=[Array.isArray(t)?t:[t]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Us.isTag)(a)&&e(a)&&r.push(a),(0,Us.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var ha={};Object.defineProperty(ha,"__esModule",{value:!0});ha.testElement=FD;ha.getElements=HD;ha.getElementById=VD;ha.getElementsByTagName=UD;ha.getElementsByClassName=WD;ha.getElementsByTagType=qD;var Ls=la,Pd=fa,Wf={tag_name:function(e){return typeof e=="function"?function(t){return(0,Ls.isTag)(t)&&e(t.name)}:e==="*"?Ls.isTag:function(t){return(0,Ls.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,Ls.isText)(t)&&e(t.data)}:function(t){return(0,Ls.isText)(t)&&t.data===e}}};function C0(e,t){return typeof t=="function"?function(r){return(0,Ls.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,Ls.isTag)(r)&&r.attribs[e]===t}}function DD(e,t){return function(r){return e(r)||t(r)}}function nk(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(Wf,r)?Wf[r](n):C0(r,n)});return t.length===0?null:t.reduce(DD)}function FD(e,t){var r=nk(e);return r?r(t):!0}function HD(e,t,r,n){n===void 0&&(n=1/0);var o=nk(e);return o?(0,Pd.filter)(o,t,r,n):[]}function VD(e,t,r){return r===void 0&&(r=!0),Array.isArray(t)||(t=[t]),(0,Pd.findOne)(C0("id",e),t,r)}function UD(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Pd.filter)(Wf.tag_name(e),t,r,n)}function WD(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Pd.filter)(C0("class",e),t,r,n)}function qD(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Pd.filter)(Wf.tag_type(e),t,r,n)}var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.DocumentPosition=void 0;Zs.removeSubsets=GD;Zs.compareDocumentPosition=ok;Zs.uniqueSort=XD;var v2=la;function GD(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}var ri;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(ri||(Zs.DocumentPosition=ri={}));function ok(e,t){var r=[],n=[];if(e===t)return 0;for(var o=(0,v2.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,v2.hasChildren)(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),c=0;c<a&&r[c]===n[c];)c++;if(c===0)return ri.DISCONNECTED;var u=r[c-1],d=u.children,f=r[c],h=n[c];return d.indexOf(f)>d.indexOf(h)?u===t?ri.FOLLOWING|ri.CONTAINED_BY:ri.FOLLOWING:u===e?ri.PRECEDING|ri.CONTAINS:ri.PRECEDING}function XD(e){return e=e.filter(function(t,r,n){return!n.includes(t,r+1)}),e.sort(function(t,r){var n=ok(t,r);return n&ri.PRECEDING?-1:n&ri.FOLLOWING?1:0}),e}var E0={};Object.defineProperty(E0,"__esModule",{value:!0});E0.getFeed=QD;var KD=ds,Id=ha;function QD(e){var t=qf(tF,e);return t?t.name==="feed"?YD(t):JD(t):null}function YD(e){var t,r=e.children,n={type:"atom",items:(0,Id.getElementsByTagName)("entry",r).map(function(c){var u,d=c.children,f={media:ik(d)};Xn(f,"id","id",d),Xn(f,"title","title",d);var h=(u=qf("link",d))===null||u===void 0?void 0:u.attribs.href;h&&(f.link=h);var v=Fa("summary",d)||Fa("content",d);v&&(f.description=v);var m=Fa("updated",d);return m&&(f.pubDate=new Date(m)),f})};Xn(n,"id","id",r),Xn(n,"title","title",r);var o=(t=qf("link",r))===null||t===void 0?void 0:t.attribs.href;o&&(n.link=o),Xn(n,"description","subtitle",r);var a=Fa("updated",r);return a&&(n.updated=new Date(a)),Xn(n,"author","email",r,!0),n}function JD(e){var t,r,n=(r=(t=qf("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],o={type:e.name.substr(0,3),id:"",items:(0,Id.getElementsByTagName)("item",e.children).map(function(c){var u=c.children,d={media:ik(u)};Xn(d,"id","guid",u),Xn(d,"title","title",u),Xn(d,"link","link",u),Xn(d,"description","description",u);var f=Fa("pubDate",u)||Fa("dc:date",u);return f&&(d.pubDate=new Date(f)),d})};Xn(o,"title","title",n),Xn(o,"link","link",n),Xn(o,"description","description",n);var a=Fa("lastBuildDate",n);return a&&(o.updated=new Date(a)),Xn(o,"author","managingEditor",n,!0),o}var ZD=["url","type","lang"],eF=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ik(e){return(0,Id.getElementsByTagName)("media:content",e).map(function(t){for(var r=t.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=ZD;o<a.length;o++){var c=a[o];r[c]&&(n[c]=r[c])}for(var u=0,d=eF;u<d.length;u++){var c=d[u];r[c]&&(n[c]=parseInt(r[c],10))}return r.expression&&(n.expression=r.expression),n})}function qf(e,t){return(0,Id.getElementsByTagName)(e,t,!0,1)[0]}function Fa(e,t,r){return r===void 0&&(r=!1),(0,KD.textContent)((0,Id.getElementsByTagName)(e,t,r,1)).trim()}function Xn(e,t,r,n,o){o===void 0&&(o=!1);var a=Fa(r,n,o);a&&(e[t]=a)}function tF(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}(function(e){var t=It&&It.__createBinding||(Object.create?(function(o,a,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(a,c);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,u,d)}):(function(o,a,c,u){u===void 0&&(u=c),o[u]=a[c]})),r=It&&It.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&t(a,o,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,r(ds,e),r(Hi,e),r(ps,e),r(fa,e),r(ha,e),r(Zs,e),r(E0,e);var n=la;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(Sf);(function(e){var t=It&&It.__createBinding||(Object.create?(function(P,k,I,T){T===void 0&&(T=I);var M=Object.getOwnPropertyDescriptor(k,I);(!M||("get"in M?!k.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return k[I]}}),Object.defineProperty(P,T,M)}):(function(P,k,I,T){T===void 0&&(T=I),P[T]=k[I]})),r=It&&It.__setModuleDefault||(Object.create?(function(P,k){Object.defineProperty(P,"default",{enumerable:!0,value:k})}):function(P,k){P.default=k}),n=It&&It.__importStar||function(P){if(P&&P.__esModule)return P;var k={};if(P!=null)for(var I in P)I!=="default"&&Object.prototype.hasOwnProperty.call(P,I)&&t(k,P,I);return r(k,P),k},o=It&&It.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DefaultHandler=e.DomHandler=e.Parser=void 0;var a=td,c=td;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return c.Parser}});var u=la,d=la;Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});function f(P,k){var I=new u.DomHandler(void 0,k);return new a.Parser(I,k).end(P),I.root}e.parseDocument=f;function h(P,k){return f(P,k).children}e.parseDOM=h;function v(P,k,I){var T=new u.DomHandler(P,k,I);return new a.Parser(T,k)}e.createDomStream=v;var m=g0;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return o(m).default}}),e.ElementType=n(Tc);var y=Sf,x=Sf;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return x.getFeed}});var w={xmlMode:!0};function C(P,k){return k===void 0&&(k=w),(0,y.getFeed)(h(P,k))}e.parseFeed=C,e.DomUtils=n(Sf)})(LT);var rF=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},T0={};Object.defineProperty(T0,"__esModule",{value:!0});/*!
|
|
340
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
341
|
+
*
|
|
342
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
343
|
+
* Released under the MIT License.
|
|
344
|
+
*/function x2(e){return Object.prototype.toString.call(e)==="[object Object]"}function nF(e){var t,r;return x2(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(x2(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}T0.isPlainObject=nF;var oF=function(t){return iF(t)&&!aF(t)};function iF(e){return!!e&&typeof e=="object"}function aF(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cF(e)}var sF=typeof Symbol=="function"&&Symbol.for,lF=sF?Symbol.for("react.element"):60103;function cF(e){return e.$$typeof===lF}function uF(e){return Array.isArray(e)?[]:{}}function nd(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cc(uF(e),e,t):e}function dF(e,t,r){return e.concat(t).map(function(n){return nd(n,r)})}function pF(e,t){if(!t.customMerge)return cc;var r=t.customMerge(e);return typeof r=="function"?r:cc}function fF(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function b2(e){return Object.keys(e).concat(fF(e))}function ak(e,t){try{return t in e}catch{return!1}}function hF(e,t){return ak(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function mF(e,t,r){var n={};return r.isMergeableObject(e)&&b2(e).forEach(function(o){n[o]=nd(e[o],r)}),b2(t).forEach(function(o){hF(e,o)||(ak(e,o)&&r.isMergeableObject(t[o])?n[o]=pF(o,r)(e[o],t[o],r):n[o]=nd(t[o],r))}),n}function cc(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dF,r.isMergeableObject=r.isMergeableObject||oF,r.cloneUnlessOtherwiseSpecified=nd;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):mF(e,t,r):nd(t,r)}cc.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return cc(n,o,r)},{})};var gF=cc,yF=gF,sk={exports:{}};(function(e){(function(t,r){e.exports?e.exports=r():t.parseSrcset=r()})(It,function(){return function(t){function r(T){return T===" "||T===" "||T===`
|
|
345
|
+
`||T==="\f"||T==="\r"}function n(T){var M,R=T.exec(t.substring(C));if(R)return M=R[0],C+=M.length,M}for(var o=t.length,a=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v,m,y,x,w,C=0,P=[];;){if(n(c),C>=o)return P;v=n(u),m=[],v.slice(-1)===","?(v=v.replace(d,""),I()):k()}function k(){for(n(a),y="",x="in descriptor";;){if(w=t.charAt(C),x==="in descriptor")if(r(w))y&&(m.push(y),y="",x="after descriptor");else if(w===","){C+=1,y&&m.push(y),I();return}else if(w==="(")y=y+w,x="in parens";else if(w===""){y&&m.push(y),I();return}else y=y+w;else if(x==="in parens")if(w===")")y=y+w,x="in descriptor";else if(w===""){m.push(y),I();return}else y=y+w;else if(x==="after descriptor"&&!r(w))if(w===""){I();return}else x="in descriptor",C-=1;C+=1}}function I(){var T=!1,M,R,L,A,H={},G,$,j,q,V;for(A=0;A<m.length;A++)G=m[A],$=G[G.length-1],j=G.substring(0,G.length-1),q=parseInt(j,10),V=parseFloat(j),f.test(j)&&$==="w"?((M||R)&&(T=!0),q===0?T=!0:M=q):h.test(j)&&$==="x"?((M||R||L)&&(T=!0),V<0?T=!0:R=V):f.test(j)&&$==="h"?((L||R)&&(T=!0),q===0?T=!0:L=q):T=!0;T?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+G+"'."):(H.url=v,M&&(H.w=M),R&&(H.d=R),L&&(H.h=L),P.push(H))}}})})(sk);var vF=sk.exports,k0={exports:{}},zt=String,lk=function(){return{isColorSupported:!1,reset:zt,bold:zt,dim:zt,italic:zt,underline:zt,inverse:zt,hidden:zt,strikethrough:zt,black:zt,red:zt,green:zt,yellow:zt,blue:zt,magenta:zt,cyan:zt,white:zt,gray:zt,bgBlack:zt,bgRed:zt,bgGreen:zt,bgYellow:zt,bgBlue:zt,bgMagenta:zt,bgCyan:zt,bgWhite:zt,blackBright:zt,redBright:zt,greenBright:zt,yellowBright:zt,blueBright:zt,magentaBright:zt,cyanBright:zt,whiteBright:zt,bgBlackBright:zt,bgRedBright:zt,bgGreenBright:zt,bgYellowBright:zt,bgBlueBright:zt,bgMagentaBright:zt,bgCyanBright:zt,bgWhiteBright:zt}};k0.exports=lk();k0.exports.createColors=lk;var xF=k0.exports,bF={},wF=Object.freeze({__proto__:null,default:bF}),pi=Xz(wF);let w2=xF,S2=pi,ov=class ck extends Error{constructor(t,r,n,o,a,c){super(t),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),o&&(this.source=o),c&&(this.plugin=c),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ck)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=w2.isColorSupported);let n=h=>h,o=h=>h,a=h=>h;if(t){let{bold:h,gray:v,red:m}=w2.createColors(!0);o=y=>h(m(y)),n=y=>v(y),S2&&(a=y=>S2(y))}let c=r.split(/\r?\n/),u=Math.max(this.line-3,0),d=Math.min(this.line+2,c.length),f=String(d).length;return c.slice(u,d).map((h,v)=>{let m=u+1+v,y=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let w=20,C=Math.max(0,this.column-w),P=Math.max(this.column+w,this.endColumn+w),k=h.slice(C,P),I=n(y.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return o(">")+n(y)+a(k)+`
|
|
346
|
+
`+I+o("^")}let x=n(y.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(y)+a(h)+`
|
|
347
|
+
`+x+o("^")}return" "+n(y)+a(h)}).join(`
|
|
348
|
+
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
349
|
+
|
|
350
|
+
`+t+`
|
|
351
|
+
`),this.name+": "+this.message+t}};var j0=ov;ov.default=ov;const C2={after:`
|
|
352
|
+
`,beforeClose:`
|
|
353
|
+
`,beforeComment:`
|
|
354
|
+
`,beforeDecl:`
|
|
355
|
+
`,beforeOpen:" ",beforeRule:`
|
|
356
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function SF(e){return e[0].toUpperCase()+e.slice(1)}let iv=class{constructor(t){this.builder=t}atrule(t,r){let n="@"+t.name,o=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?n+=t.raws.afterName:o&&(n+=" "),t.nodes)this.block(t,n+o);else{let a=(t.raws.between||"")+(r?";":"");this.builder(n+o+a,t)}}beforeAfter(t,r){let n;t.type==="decl"?n=this.raw(t,null,"beforeDecl"):t.type==="comment"?n=this.raw(t,null,"beforeComment"):r==="before"?n=this.raw(t,null,"beforeRule"):n=this.raw(t,null,"beforeClose");let o=t.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
|
|
357
|
+
`)){let c=this.raw(t,null,"indent");if(c.length)for(let u=0;u<a;u++)n+=c}return n}block(t,r){let n=this.raw(t,"between","beforeOpen");this.builder(r+n+"{",t,"start");let o;t.nodes&&t.nodes.length?(this.body(t),o=this.raw(t,"after")):o=this.raw(t,"after","emptyBody"),o&&this.builder(o),this.builder("}",t,"end")}body(t){let r=t.nodes.length-1;for(;r>0&&t.nodes[r].type==="comment";)r-=1;let n=this.raw(t,"semicolon");for(let o=0;o<t.nodes.length;o++){let a=t.nodes[o],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,r!==o||n)}}comment(t){let r=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+n+"*/",t)}decl(t,r){let n=this.raw(t,"between","colon"),o=t.prop+n+this.rawValue(t,"value");t.important&&(o+=t.raws.important||" !important"),r&&(o+=";"),this.builder(o,t)}document(t){this.body(t)}raw(t,r,n){let o;if(n||(n=r),r&&(o=t.raws[r],typeof o<"u"))return o;let a=t.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return C2[n];let c=t.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[n]<"u")return c.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(t,n);{let u="raw"+SF(n);this[u]?o=this[u](c,t):c.walk(d=>{if(o=d.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=C2[n]),c.rawCache[n]=o,o}rawBeforeClose(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
358
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(t,r){let n;return t.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
359
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,r){let n;return t.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
360
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let r;return t.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(t){let r;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
361
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(t){let r;return t.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk(n=>{let o=n.parent;if(o&&o!==t&&o.parent&&o.parent===t&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
|
|
362
|
+
`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(t,r){let n=t[r],o=t.raws[r];return o&&o.value===n?o.raw:n}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}};var uk=iv;iv.default=iv;let CF=uk;function av(e,t){new CF(t).stringify(e)}var Dh=av;av.default=av;var Md={};Md.isClean=Symbol("isClean");Md.my=Symbol("my");let EF=j0,TF=uk,kF=Dh,{isClean:vu,my:jF}=Md;function sv(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="proxyCache")continue;let o=e[n],a=typeof o;n==="parent"&&a==="object"?t&&(r[n]=t):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(c=>sv(c,r)):(a==="object"&&o!==null&&(o=sv(o)),r[n]=o)}return r}function ta(e,t){if(t&&typeof t.offset<"u")return t.offset;let r=1,n=1,o=0;for(let a=0;a<e.length;a++){if(n===t.line&&r===t.column){o=a;break}e[a]===`
|
|
363
|
+
`?(r=1,n+=1):r+=1}return o}let lv=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[vu]=!1,this[jF]=!0;for(let r in t)if(r==="nodes"){this.nodes=[];for(let n of t[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=t[r]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let r in t)this[r]=t[r];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let r=sv(this);for(let n in t)r[n]=t[n];return r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}error(t,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(t,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new EF(t)}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:r==="root"?()=>t.root().toProxy():t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&t.markDirty()),!0}}}markClean(){this[vu]=!0}markDirty(){if(this[vu]){this[vu]=!1;let t=this;for(;t=t.parent;)t[vu]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let r=this.source.start;if(t.index)r=this.positionInside(t.index);else if(t.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,a=n.slice(ta(n,this.source.start),ta(n,this.source.end)).indexOf(t.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(t){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=ta(o,this.source.start),c=a+t;for(let u=a;u<c;u++)o[u]===`
|
|
364
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:c}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:ta(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ta(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let c=r.slice(ta(r,this.source.start),ta(r,this.source.end)).indexOf(t.word);c!==-1&&(n=this.positionInside(c),o=this.positionInside(c+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:ta(r,t.start)}:t.index&&(n=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line,offset:ta(r,t.end)}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(t,r){return new TF().raw(this,t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,n=!1;for(let o of t)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,r){let n={},o=r==null;r=r||new Map;let a=0;for(let c in this){if(!Object.prototype.hasOwnProperty.call(this,c)||c==="parent"||c==="proxyCache")continue;let u=this[c];if(Array.isArray(u))n[c]=u.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,r):d);else if(typeof u=="object"&&u.toJSON)n[c]=u.toJSON(null,r);else if(c==="source"){if(u==null)continue;let d=r.get(u.input);d==null&&(d=a,r.set(u.input,a),a++),n[c]={end:u.end,inputId:d,start:u.start}}else n[c]=u}return o&&(n.inputs=[...r.keys()].map(c=>c.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=kF){t.stringify&&(t=t.stringify);let r="";return t(this,n=>{r+=n}),r}warn(t,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return t.warn(r,o)}};var Fh=lv;lv.default=lv;let PF=Fh,cv=class extends PF{constructor(t){super(t),this.type="comment"}};var Hh=cv;cv.default=cv;let IF=Fh,uv=class extends IF{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};var Vh=uv;uv.default=uv;let dk=Hh,pk=Vh,MF=Fh,{isClean:fk,my:hk}=Md,P0,mk,gk,I0;function yk(e){return e.map(t=>(t.nodes&&(t.nodes=yk(t.nodes)),delete t.source,t))}function vk(e){if(e[fk]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)vk(t)}let ca=class xk extends MF{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let r of t){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=t(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>t[r](...n.map(o=>typeof o=="function"?(a,c)=>o(a.toProxy(),c):o)):r==="every"||r==="some"?n=>t[r]((o,...a)=>n(o.toProxy(),...a)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let n=this.index(t),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let c of o)this.proxyOf.nodes.splice(n+1,0,c);let a;for(let c in this.indexes)a=this.indexes[c],n<a&&(this.indexes[c]=a+o.length);return this.markDirty(),this}insertBefore(t,r){let n=this.index(t),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(t);for(let u of a)this.proxyOf.nodes.splice(n,0,u);let c;for(let u in this.indexes)c=this.indexes[u],n<=c&&(this.indexes[u]=c+a.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=yk(mk(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new pk(t)]}else if(t.selector||t.selectors)t=[new I0(t)];else if(t.name)t=[new P0(t)];else if(t.text)t=[new dk(t)];else throw new Error("Unknown node type in node creation");return t.map(o=>(o[hk]||xk.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[fk]&&vk(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...t){t=t.reverse();for(let r of t){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(t,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((r,n)=>{let o;try{o=t(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(t)),o})}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&t.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===t)return r(n,o)}):(r=t,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(t){return this.walk((r,n)=>{if(r.type==="comment")return t(r,n)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&t.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===t)return r(n,o)}):(r=t,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&t.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===t)return r(n,o)}):(r=t,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};ca.registerParse=e=>{mk=e};ca.registerRule=e=>{I0=e};ca.registerAtRule=e=>{P0=e};ca.registerRoot=e=>{gk=e};var el=ca;ca.default=ca;ca.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,P0.prototype):e.type==="rule"?Object.setPrototypeOf(e,I0.prototype):e.type==="decl"?Object.setPrototypeOf(e,pk.prototype):e.type==="comment"?Object.setPrototypeOf(e,dk.prototype):e.type==="root"&&Object.setPrototypeOf(e,gk.prototype),e[hk]=!0,e.nodes&&e.nodes.forEach(t=>{ca.rebuild(t)})};let bk=el,Gf=class extends bk{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var M0=Gf;Gf.default=Gf;bk.registerAtRule(Gf);let RF=el,wk,Sk,od=class extends RF{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new wk(new Sk,this,t).stringify()}};od.registerLazyResult=e=>{wk=e};od.registerProcessor=e=>{Sk=e};var R0=od;od.default=od;let AF="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_F=(e=21)=>{let t="",r=e|0;for(;r--;)t+=AF[Math.random()*64|0];return t};var LF={nanoid:_F};let{existsSync:OF,readFileSync:NF}=pi,{dirname:ty,join:$F}=pi,{SourceMapConsumer:E2,SourceMapGenerator:T2}=pi;function BF(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let dv=class{constructor(t,r){if(r.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=ty(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new E2(this.text)),this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,c=t.match(o)||t.match(a);if(c)return decodeURIComponent(t.substr(c[0].length));let u=t.match(r)||t.match(n);if(u)return BF(t.substr(u[0].length));let d=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=t.lastIndexOf(r.pop()),o=t.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,o)))}loadFile(t){if(this.root=ty(t),OF(t))return this.mapFile=t,NF(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(t);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof E2)return T2.fromSourceMap(r).toString();if(r instanceof T2)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return t&&(n=$F(ty(t),n)),this.loadFile(n)}}}startWith(t,r){return t?t.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ck=dv;dv.default=dv;let{nanoid:zF}=LF,{isAbsolute:pv,resolve:fv}=pi,{SourceMapConsumer:DF,SourceMapGenerator:FF}=pi,{fileURLToPath:k2,pathToFileURL:nf}=pi,j2=j0,HF=Ck,ry=pi,ny=Symbol("lineToIndexCache"),VF=!!(DF&&FF),P2=!!(fv&&pv);function I2(e){if(e[ny])return e[ny];let t=e.css.split(`
|
|
365
|
+
`),r=new Array(t.length),n=0;for(let o=0,a=t.length;o<a;o++)r[o]=n,n+=t[o].length+1;return e[ny]=r,r}let Xf=class{get from(){return this.file||this.id}constructor(t,r={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!P2||/^\w+:\/\//.test(r.from)||pv(r.from)?this.file=r.from:this.file=fv(r.from)),P2&&VF){let n=new HF(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+zF(6)+">"),this.map&&(this.map.file=this.from)}error(t,r,n,o={}){let a,c,u,d,f;if(r&&typeof r=="object"){let v=r,m=n;if(typeof v.offset=="number"){d=v.offset;let y=this.fromOffset(d);r=y.line,n=y.col}else r=v.line,n=v.column,d=this.fromLineAndColumn(r,n);if(typeof m.offset=="number"){u=m.offset;let y=this.fromOffset(u);c=y.line,a=y.col}else c=m.line,a=m.column,u=this.fromLineAndColumn(m.line,m.column)}else if(n)d=this.fromLineAndColumn(r,n);else{d=r;let v=this.fromOffset(d);r=v.line,n=v.col}let h=this.origin(r,n,c,a);return h?f=new j2(t,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,o.plugin):f=new j2(t,c===void 0?r:{column:n,line:r},c===void 0?n:{column:a,line:c},this.css,this.file,o.plugin),f.input={column:n,endColumn:a,endLine:c,endOffset:u,line:r,offset:d,source:this.css},this.file&&(nf&&(f.input.url=nf(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(t,r){return I2(this)[t-1]+r-1}fromOffset(t){let r=I2(this),n=r[r.length-1],o=0;if(t>=n)o=r.length-1;else{let a=r.length-2,c;for(;o<a;)if(c=o+(a-o>>1),t<r[c])a=c-1;else if(t>=r[c+1])o=c+1;else{o=c;break}}return{col:t-r[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:fv(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),c=a.originalPositionFor({column:r,line:t});if(!c.source)return!1;let u;typeof n=="number"&&(u=a.originalPositionFor({column:o,line:n}));let d;pv(c.source)?d=nf(c.source):d=new URL(c.source,this.map.consumer().sourceRoot||nf(this.map.mapFile));let f={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:d.toString()};if(d.protocol==="file:")if(k2)f.file=k2(d);else throw new Error("file: protocol is not available in this PostCSS build");let h=a.sourceContentFor(c.source);return h&&(f.source=h),f}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(t[r]=this[r]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};var Uh=Xf;Xf.default=Xf;ry&&ry.registerInput&&ry.registerInput(Xf);let Ek=el,Tk,kk,uc=class extends Ek{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,r,n){let o=super.normalize(t);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of o)a.raws.before=r.raws.before}return o}removeChild(t,r){let n=this.index(t);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new Tk(new kk,this,t).stringify()}};uc.registerLazyResult=e=>{Tk=e};uc.registerProcessor=e=>{kk=e};var Rd=uc;uc.default=uc;Ek.registerRoot(uc);let id={comma(e){return id.split(e,[","],!0)},space(e){let t=[" ",`
|
|
366
|
+
`," "];return id.split(e,t)},split(e,t,r){let n=[],o="",a=!1,c=0,u=!1,d="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:u?h===d&&(u=!1):h==='"'||h==="'"?(u=!0,d=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&t.includes(h)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=h;return(r||o!=="")&&n.push(o.trim()),n}};var jk=id;id.default=id;let Pk=el,UF=jk,Kf=class extends Pk{get selectors(){return UF.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};var A0=Kf;Kf.default=Kf;Pk.registerRule(Kf);let WF=M0,qF=Hh,GF=Vh,XF=Uh,KF=Ck,QF=Rd,YF=A0;function ad(e,t){if(Array.isArray(e))return e.map(o=>ad(o));let{inputs:r,...n}=e;if(r){t=[];for(let o of r){let a={...o,__proto__:XF.prototype};a.map&&(a.map={...a.map,__proto__:KF.prototype}),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(o=>ad(o,t))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=t[o])}if(n.type==="root")return new QF(n);if(n.type==="decl")return new GF(n);if(n.type==="rule")return new YF(n);if(n.type==="comment")return new qF(n);if(n.type==="atrule")return new WF(n);throw new Error("Unknown node type: "+e.type)}var JF=ad;ad.default=ad;let{dirname:Ef,relative:Ik,resolve:Mk,sep:Rk}=pi,{SourceMapConsumer:Ak,SourceMapGenerator:Tf}=pi,{pathToFileURL:M2}=pi,ZF=Uh,eH=!!(Ak&&Tf),tH=!!(Ef&&Mk&&Ik&&Rk),rH=class{constructor(t,r,n,o){this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let r=`
|
|
367
|
+
`;this.css.includes(`\r
|
|
368
|
+
`)&&(r=`\r
|
|
369
|
+
`),this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),n=t.root||Ef(t.file),o;this.mapOpts.sourcesContent===!1?(o=new Ak(t.text),o.sourcesContent&&(o.sourcesContent=null)):o=t.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),tH&&eH&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,r=>{t+=r}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Tf.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Tf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Tf({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,c;this.stringify(this.root,(u,d,f)=>{if(this.css+=u,d&&f!=="end"&&(o.generated.line=t,o.generated.column=r-1,d.source&&d.source.start?(o.source=this.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),c=u.match(/\n/g),c?(t+=c.length,a=u.lastIndexOf(`
|
|
370
|
+
`),r=u.length-a):r+=u.length,d&&f!=="start"){let h=d.parent||{raws:{}};(!(d.type==="decl"||d.type==="atrule"&&!d.nodes)||d!==h.last||h.raws.semicolon)&&(d.source&&d.source.end?(o.source=this.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=t,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=t,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let n=this.opts.to?Ef(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Ef(Mk(n,this.mapOpts.annotation)));let o=Ik(n,t);return this.memoizedPaths.set(t,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let r=t.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let t=new ZF(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!t[n]){t[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(M2){let n=M2(t).toString();return this.memoizedFileURLs.set(t,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;Rk==="\\"&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}};var _k=rH;const oy=39,R2=34,of=92,A2=47,af=10,xu=32,sf=12,lf=9,cf=13,nH=91,oH=93,iH=40,aH=41,sH=123,lH=125,cH=59,uH=42,dH=58,pH=64,uf=/[\t\n\f\r "#'()/;[\\\]{}]/g,df=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fH=/.[\r\n"'(/\\]/,_2=/[\da-f]/i;var hH=function(t,r={}){let n=t.css.valueOf(),o=r.ignoreErrors,a,c,u,d,f,h,v,m,y,x,w=n.length,C=0,P=[],k=[];function I(){return C}function T(A){throw t.error("Unclosed "+A,C)}function M(){return k.length===0&&C>=w}function R(A){if(k.length)return k.pop();if(C>=w)return;let H=A?A.ignoreUnclosed:!1;switch(a=n.charCodeAt(C),a){case af:case xu:case lf:case cf:case sf:{d=C;do d+=1,a=n.charCodeAt(d);while(a===xu||a===af||a===lf||a===cf||a===sf);h=["space",n.slice(C,d)],C=d-1;break}case nH:case oH:case sH:case lH:case dH:case cH:case aH:{let G=String.fromCharCode(a);h=[G,G,C];break}case iH:{if(x=P.length?P.pop()[1]:"",y=n.charCodeAt(C+1),x==="url"&&y!==oy&&y!==R2&&y!==xu&&y!==af&&y!==lf&&y!==sf&&y!==cf){d=C;do{if(v=!1,d=n.indexOf(")",d+1),d===-1)if(o||H){d=C;break}else T("bracket");for(m=d;n.charCodeAt(m-1)===of;)m-=1,v=!v}while(v);h=["brackets",n.slice(C,d+1),C,d],C=d}else d=n.indexOf(")",C+1),c=n.slice(C,d+1),d===-1||fH.test(c)?h=["(","(",C]:(h=["brackets",c,C,d],C=d);break}case oy:case R2:{f=a===oy?"'":'"',d=C;do{if(v=!1,d=n.indexOf(f,d+1),d===-1)if(o||H){d=C+1;break}else T("string");for(m=d;n.charCodeAt(m-1)===of;)m-=1,v=!v}while(v);h=["string",n.slice(C,d+1),C,d],C=d;break}case pH:{uf.lastIndex=C+1,uf.test(n),uf.lastIndex===0?d=n.length-1:d=uf.lastIndex-2,h=["at-word",n.slice(C,d+1),C,d],C=d;break}case of:{for(d=C,u=!0;n.charCodeAt(d+1)===of;)d+=1,u=!u;if(a=n.charCodeAt(d+1),u&&a!==A2&&a!==xu&&a!==af&&a!==lf&&a!==cf&&a!==sf&&(d+=1,_2.test(n.charAt(d)))){for(;_2.test(n.charAt(d+1));)d+=1;n.charCodeAt(d+1)===xu&&(d+=1)}h=["word",n.slice(C,d+1),C,d],C=d;break}default:{a===A2&&n.charCodeAt(C+1)===uH?(d=n.indexOf("*/",C+2)+1,d===0&&(o||H?d=n.length:T("comment")),h=["comment",n.slice(C,d+1),C,d],C=d):(df.lastIndex=C+1,df.test(n),df.lastIndex===0?d=n.length-1:d=df.lastIndex-2,h=["word",n.slice(C,d+1),C,d],P.push(h),C=d);break}}return C++,h}function L(A){k.push(A)}return{back:L,endOfFile:M,nextToken:R,position:I}};let mH=M0,gH=Hh,yH=Vh,vH=Rd,L2=A0,xH=hH;const O2={empty:!0,space:!0};function bH(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}let wH=class{constructor(t){this.input=t,this.root=new vH,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new mH;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);let n,o,a,c=!1,u=!1,d=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(d.length>0){for(a=d.length-1,o=d[a];o&&o[0]==="space";)o=d[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(t);break}else d.push(t);else d.push(t);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(r.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(r,"params",d),c&&(t=d[d.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=t[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(t){let r=0,n,o,a;for(let[c,u]of t.entries()){if(o=u,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return c}n=o}return!1}comment(t){let r=new gH;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=xH(this.input)}decl(t,r){let n=new yH;this.init(n,t[0][2]);let o=t[t.length-1];for(o[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(o[3]||o[2]||bH(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let a;for(;t.length;)if(a=t.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=[],u;for(;t.length&&(u=t[0][0],!(u!=="space"&&u!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(a=t[f],a[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(n.raws.important=h);break}else if(a[1].toLowerCase()==="important"){let h=t.slice(0),v="";for(let m=f;m>0;m--){let y=h[m][0];if(v.trim().startsWith("!")&&y!=="space")break;v=h.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,t=h)}if(a[0]!=="space"&&a[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=c.map(f=>f[1]).join(""),c=[]),this.raw(n,"value",c.concat(t),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new L2;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(t[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let r=!1,n=null,o=!1,a=null,c=[],u=t[1].startsWith("--"),d=[],f=t;for(;f;){if(n=f[0],d.push(f),n==="("||n==="[")a||(a=f),c.push(n==="("?")":"]");else if(u&&o&&n==="{")a||(a=f),c.push("}");else if(c.length===0)if(n===";")if(o){this.decl(d,u);return}else break;else if(n==="{"){this.rule(d);return}else if(n==="}"){this.tokenizer.back(d.pop()),r=!0;break}else n===":"&&(o=!0);else n===c[c.length-1]&&(c.pop(),c.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(a),r&&o){if(!u)for(;d.length&&(f=d[d.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,u)}else this.unknownWord(d)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,n,o){let a,c,u=n.length,d="",f=!0,h,v;for(let m=0;m<u;m+=1)a=n[m],c=a[0],c==="space"&&m===u-1&&!o?f=!1:c==="comment"?(v=n[m-1]?n[m-1][0]:"empty",h=n[m+1]?n[m+1][0]:"empty",!O2[v]&&!O2[h]?d.slice(-1)===","?f=!1:d+=a[1]:f=!1):d+=a[1];if(!f){let m=n.reduce((y,x)=>y+x[1],"");t.raws[r]={raw:m,value:d}}t[r]=d}rule(t){t.pop();let r=new L2;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let r,n="";for(;t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],r==="space");)n=t.pop()[1]+n;return n}stringFrom(t,r){let n="";for(let o=r;o<t.length;o++)n+=t[o][1];return t.splice(r,t.length-r),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var SH=wH;let CH=el,EH=Uh,TH=SH;function Qf(e,t){let r=new EH(e,t),n=new TH(r);try{n.parse()}catch(o){throw o.name==="CssSyntaxError"&&t&&t.from&&(/\.scss$/i.test(t.from)?o.message+=`
|
|
371
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?o.message+=`
|
|
372
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(o.message+=`
|
|
373
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var _0=Qf;Qf.default=Qf;CH.registerParse(Qf);let hv=class{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Lk=hv;hv.default=hv;let kH=Lk,mv=class{get content(){return this.css}constructor(t,r,n){this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new kH(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>t.type==="warning")}};var L0=mv;mv.default=mv;let N2={};var Ok=function(t){N2[t]||(N2[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))};let jH=el,PH=R0,IH=_k,MH=_0,$2=L0,RH=Rd,AH=Dh,{isClean:Si,my:_H}=Md,LH=Ok;const OH={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},NH={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},$H={Once:!0,postcssPlugin:!0,prepare:!0},dc=0;function bu(e){return typeof e=="object"&&typeof e.then=="function"}function Nk(e){let t=!1,r=OH[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,dc,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,dc,r+"Exit"]:[r,r+"Exit"]}function B2(e){let t;return e.type==="document"?t=["Document",dc,"DocumentExit"]:e.type==="root"?t=["Root",dc,"RootExit"]:t=Nk(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function gv(e){return e[Si]=!1,e.nodes&&e.nodes.forEach(t=>gv(t)),e}let yv={},pc=class $k{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=gv(r);else if(r instanceof $k||r instanceof $2)o=gv(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=MH;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(c){this.processed=!0,this.error=c}o&&!o[_H]&&jH.rebuild(o)}this.result=new $2(t,o,n),this.helpers={...yv,postcss:yv,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=n.postcssPlugin,t.setMessage();else if(n.postcssVersion){let o=n.postcssPlugin,a=n.postcssVersion,c=this.result.processor.version,u=a.split("."),d=c.split(".");(u[0]!==d[0]||parseInt(u[1])>parseInt(d[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+c+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return t}prepareVisitors(){this.listeners={};let t=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!NH[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$H[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?t(r,n,r[n][o]):t(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&t(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],n=this.runOnRoot(r);if(bu(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Si];){t[Si]=!0;let r=[B2(t)];for(;r.length>0;){let n=this.visitTick(r);if(bu(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let o=t.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(t,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>t.Once(n,this.helpers));return bu(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=AH;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let o=new IH(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(bu(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Si];)t[Si]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return"from"in this.opts||LH("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[n,o]of t){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(c){throw this.handleError(c,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(bu(a))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){t.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[c,u]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(r.iterator!==0){let c=r.iterator,u;for(;u=n.nodes[n.indexes[c]];)if(n.indexes[c]+=1,!u[Si]){u[Si]=!0,t.push(B2(u));return}r.iterator=0,delete n.indexes[c]}let a=r.events;for(;r.eventIndex<a.length;){let c=a[r.eventIndex];if(r.eventIndex+=1,c===dc){n.nodes&&n.nodes.length&&(n[Si]=!0,r.iterator=n.getIterator());return}else if(this.listeners[c]){r.visitors=this.listeners[c];return}}t.pop()}walkSync(t){t[Si]=!0;let r=Nk(t);for(let n of r)if(n===dc)t.nodes&&t.each(o=>{o[Si]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,t.toProxy()))return}}warnings(){return this.sync().warnings()}};pc.registerPostcss=e=>{yv=e};var Bk=pc;pc.default=pc;RH.registerLazyResult(pc);PH.registerLazyResult(pc);let BH=_k,zH=_0;const DH=L0;let FH=Dh,HH=Ok,vv=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=zH;try{t=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,n){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;let o,a=FH;this.result=new DH(this._processor,o,this._opts),this.result.css=r;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let u=new BH(a,o,this._opts,r);if(u.isMap()){let[d,f]=u.generate();d&&(this.result.css=d),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return"from"in this._opts||HH("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(t,r)}toString(){return this._css}warnings(){return[]}};var VH=vv;vv.default=vv;let UH=R0,WH=Bk,qH=VH,GH=Rd,sd=class{constructor(t=[]){this.version="8.5.6",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let n of t)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return r}process(t,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new qH(this,t,r):new WH(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var XH=sd;sd.default=sd;GH.registerProcessor(sd);UH.registerProcessor(sd);let zk=M0,Dk=Hh,KH=el,QH=j0,Fk=Vh,Hk=R0,YH=JF,JH=Uh,ZH=Bk,eV=jk,tV=Fh,rV=_0,O0=XH,nV=L0,Vk=Rd,Uk=A0,oV=Dh,iV=Lk;function ur(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new O0(e)}ur.plugin=function(t,r){let n=!1;function o(...c){console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
374
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),YS.LANG&&YS.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
375
|
+
https://www.w3ctech.com/topic/2226`));let u=r(...c);return u.postcssPlugin=t,u.postcssVersion=new O0().version,u}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(c,u,d){return ur([o(d)]).process(c,u)},o};ur.stringify=oV;ur.parse=rV;ur.fromJSON=YH;ur.list=eV;ur.comment=e=>new Dk(e);ur.atRule=e=>new zk(e);ur.decl=e=>new Fk(e);ur.rule=e=>new Uk(e);ur.root=e=>new Vk(e);ur.document=e=>new Hk(e);ur.CssSyntaxError=QH;ur.Declaration=Fk;ur.Container=KH;ur.Processor=O0;ur.Document=Hk;ur.Comment=Dk;ur.Warning=iV;ur.AtRule=zk;ur.Result=nV;ur.Input=JH;ur.Rule=Uk;ur.Root=Vk;ur.Node=tV;ZH.registerPostcss(ur);var aV=ur;ur.default=ur;const sV=LT,z2=rF,{isPlainObject:lV}=T0,D2=yF,cV=vF,{parse:uV}=aV,dV=["img","audio","video","picture","svg","object","map","iframe","embed"],pV=["script","style"];function zl(e,t){e&&Object.keys(e).forEach(function(r){t(e[r],r)})}function ra(e,t){return{}.hasOwnProperty.call(e,t)}function F2(e,t){const r=[];return zl(e,function(n){t(n)&&r.push(n)}),r}function fV(e){for(const t in e)if(ra(e,t))return!1;return!0}function hV(e){return e.map(function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")}).join(", ")}var mV=ld;const gV=/^[^\0\t\n\f\r /<=>]+$/;function ld(e,t,r){if(e==null)return"";typeof e=="number"&&(e=e.toString());let n="",o="";function a(O,U){const K=this;this.tag=O,this.attribs=U||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(C.length){const Y=C[C.length-1];Y.text+=K.text}},this.updateParentNodeMediaChildren=function(){C.length&&dV.includes(this.tag)&&C[C.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},ld.defaults,t),t.parser=Object.assign({},yV,t.parser);const c=function(O){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(O)>-1};pV.forEach(function(O){c(O)&&!t.allowVulnerableTags&&console.warn(`
|
|
376
|
+
|
|
377
|
+
⚠️ Your \`allowedTags\` option includes, \`${O}\`, which is inherently
|
|
378
|
+
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
379
|
+
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
380
|
+
and ensure you are accounting for this risk.
|
|
381
|
+
|
|
382
|
+
`)});const u=t.nonTextTags||["script","style","textarea","option"];let d,f;t.allowedAttributes&&(d={},f={},zl(t.allowedAttributes,function(O,U){d[U]=[];const K=[];O.forEach(function(Y){typeof Y=="string"&&Y.indexOf("*")>=0?K.push(z2(Y).replace(/\\\*/g,".*")):d[U].push(Y)}),K.length&&(f[U]=new RegExp("^("+K.join("|")+")$"))}));const h={},v={},m={};zl(t.allowedClasses,function(O,U){if(d&&(ra(d,U)||(d[U]=[]),d[U].push("class")),h[U]=O,Array.isArray(O)){const K=[];h[U]=[],m[U]=[],O.forEach(function(Y){typeof Y=="string"&&Y.indexOf("*")>=0?K.push(z2(Y).replace(/\\\*/g,".*")):Y instanceof RegExp?m[U].push(Y):h[U].push(Y)}),K.length&&(v[U]=new RegExp("^("+K.join("|")+")$"))}});const y={};let x;zl(t.transformTags,function(O,U){let K;typeof O=="function"?K=O:typeof O=="string"&&(K=ld.simpleTransform(O)),U==="*"?x=K:y[U]=K});let w,C,P,k,I,T,M=!1;L();const R=new sV.Parser({onopentag:function(O,U){if(t.onOpenTag&&t.onOpenTag(O,U),t.enforceHtmlBoundary&&O==="html"&&L(),I){T++;return}const K=new a(O,U);C.push(K);let Y=!1;const Z=!!K.text;let Q;if(ra(y,O)&&(Q=y[O](O,U),K.attribs=U=Q.attribs,Q.text!==void 0&&(K.innerText=Q.text),O!==Q.tagName&&(K.name=O=Q.tagName,k[w]=Q.tagName)),x&&(Q=x(O,U),K.attribs=U=Q.attribs,O!==Q.tagName&&(K.name=O=Q.tagName,k[w]=Q.tagName)),(!c(O)||t.disallowedTagsMode==="recursiveEscape"&&!fV(P)||t.nestingLimit!=null&&w>=t.nestingLimit)&&(Y=!0,P[w]=!0,(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&u.indexOf(O)!==-1&&(I=!0,T=1)),w++,Y){if(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard"){if(K.innerText&&!Z){const de=A(K.innerText);t.textFilter?n+=t.textFilter(de,O):n+=de,M=!0}return}o=n,n=""}n+="<"+O,O==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(K.innerText=""),Y&&(t.disallowedTagsMode==="escape"||t.disallowedTagsMode==="recursiveEscape")&&t.preserveEscapedAttributes?zl(U,function(de,J){n+=" "+J+'="'+A(de||"",!0)+'"'}):(!d||ra(d,O)||d["*"])&&zl(U,function(de,J){if(!gV.test(J)){delete K.attribs[J];return}if(de===""&&!t.allowedEmptyAttributes.includes(J)&&(t.nonBooleanAttributes.includes(J)||t.nonBooleanAttributes.includes("*"))){delete K.attribs[J];return}let oe=!1;if(!d||ra(d,O)&&d[O].indexOf(J)!==-1||d["*"]&&d["*"].indexOf(J)!==-1||ra(f,O)&&f[O].test(J)||f["*"]&&f["*"].test(J))oe=!0;else if(d&&d[O]){for(const ee of d[O])if(lV(ee)&&ee.name&&ee.name===J){oe=!0;let he="";if(ee.multiple===!0){const Ce=de.split(" ");for(const ye of Ce)ee.values.indexOf(ye)!==-1&&(he===""?he=ye:he+=" "+ye)}else ee.values.indexOf(de)>=0&&(he=de);de=he}}if(oe){if(t.allowedSchemesAppliedToAttributes.indexOf(J)!==-1&&H(O,de)){delete K.attribs[J];return}if(O==="script"&&J==="src"){let ee=!0;try{const he=G(de);if(t.allowedScriptHostnames||t.allowedScriptDomains){const Ce=(t.allowedScriptHostnames||[]).find(function(ce){return ce===he.url.hostname}),ye=(t.allowedScriptDomains||[]).find(function(ce){return he.url.hostname===ce||he.url.hostname.endsWith(`.${ce}`)});ee=Ce||ye}}catch{ee=!1}if(!ee){delete K.attribs[J];return}}if(O==="iframe"&&J==="src"){let ee=!0;try{const he=G(de);if(he.isRelativeUrl)ee=ra(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const Ce=(t.allowedIframeHostnames||[]).find(function(ce){return ce===he.url.hostname}),ye=(t.allowedIframeDomains||[]).find(function(ce){return he.url.hostname===ce||he.url.hostname.endsWith(`.${ce}`)});ee=Ce||ye}}catch{ee=!1}if(!ee){delete K.attribs[J];return}}if(J==="srcset")try{let ee=cV(de);if(ee.forEach(function(he){H("srcset",he.url)&&(he.evil=!0)}),ee=F2(ee,function(he){return!he.evil}),ee.length)de=hV(F2(ee,function(he){return!he.evil})),K.attribs[J]=de;else{delete K.attribs[J];return}}catch{delete K.attribs[J];return}if(J==="class"){const ee=h[O],he=h["*"],Ce=v[O],ye=m[O],ce=m["*"],Fe=v["*"],Le=[Ce,Fe].concat(ye,ce).filter(function(Ne){return Ne});if(ee&&he?de=V(de,D2(ee,he),Le):de=V(de,ee||he,Le),!de.length){delete K.attribs[J];return}}if(J==="style"){if(t.parseStyleAttributes)try{const ee=uV(O+" {"+de+"}",{map:!1}),he=$(ee,t.allowedStyles);if(de=j(he),de.length===0){delete K.attribs[J];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+O+" {"+de+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete K.attribs[J];return}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+J,de&&de.length?n+='="'+A(de,!0)+'"':t.allowedEmptyAttributes.includes(J)&&(n+='=""')}else delete K.attribs[J]}),t.selfClosing.indexOf(O)!==-1?n+=" />":(n+=">",K.innerText&&!Z&&!t.textFilter&&(n+=A(K.innerText),M=!0)),Y&&(n=o+A(n),o=""),K.openingTagLength=n.length-K.tagPosition},ontext:function(O){if(I)return;const U=C[C.length-1];let K;if(U&&(K=U.tag,O=U.innerText!==void 0?U.innerText:O),t.disallowedTagsMode==="completelyDiscard"&&!c(K))O="";else if((t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&(K==="script"||K==="style"))n+=O;else if(!M){const Y=A(O,!1);t.textFilter?n+=t.textFilter(Y,K):n+=Y}if(C.length){const Y=C[C.length-1];Y.text+=O}},onclosetag:function(O,U){if(t.onCloseTag&&t.onCloseTag(O,U),I)if(T--,!T)I=!1;else return;const K=C.pop();if(!K)return;if(K.tag!==O){C.push(K);return}I=t.enforceHtmlBoundary?O==="html":!1,w--;const Y=P[w];if(Y){if(delete P[w],t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard"){K.updateParentNodeText();return}o=n,n=""}if(k[w]&&(O=k[w],delete k[w]),t.exclusiveFilter){const Z=t.exclusiveFilter(K);if(Z==="excludeTag"){Y&&(n=o,o=""),n=n.substring(0,K.tagPosition)+n.substring(K.tagPosition+K.openingTagLength);return}else if(Z){n=n.substring(0,K.tagPosition);return}}if(K.updateParentNodeMediaChildren(),K.updateParentNodeText(),t.selfClosing.indexOf(O)!==-1||U&&!c(O)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){Y&&(n=o,o="");return}n+="</"+O+">",Y&&(n=o+A(n),o=""),M=!1}},t.parser);return R.write(e),R.end(),n;function L(){n="",w=0,C=[],P={},k={},I=!1,T=0}function A(O,U){return typeof O!="string"&&(O=O+""),t.parser.decodeEntities&&(O=O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),U&&(O=O.replace(/"/g,"""))),O=O.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),U&&(O=O.replace(/"/g,""")),O}function H(O,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const Z=U.indexOf("<!--");if(Z===-1)break;const Q=U.indexOf("-->",Z+4);if(Q===-1)break;U=U.substring(0,Z)+U.substring(Q+3)}const K=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!K)return U.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;const Y=K[1].toLowerCase();return ra(t.allowedSchemesByTag,O)?t.allowedSchemesByTag[O].indexOf(Y)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(Y)===-1}function G(O){if(O=O.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),O.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let Z=0;Z<100;Z++)U+=`/${Z}`;const K=new URL(O,U);return{isRelativeUrl:K&&K.hostname==="relative-site"&&K.protocol==="relative:",url:K}}function $(O,U){if(!U)return O;const K=O.nodes[0];let Y;return U[K.selector]&&U["*"]?Y=D2(U[K.selector],U["*"]):Y=U[K.selector]||U["*"],Y&&(O.nodes[0].nodes=K.nodes.reduce(q(Y),[])),O}function j(O){return O.nodes[0].nodes.reduce(function(U,K){return U.push(`${K.prop}:${K.value}${K.important?" !important":""}`),U},[]).join(";")}function q(O){return function(U,K){return ra(O,K.prop)&&O[K.prop].some(function(Z){return Z.test(K.value)})&&U.push(K),U}}function V(O,U,K){return U?(O=O.split(/\s+/),O.filter(function(Y){return U.indexOf(Y)!==-1||K.some(function(Z){return Z.test(Y)})}).join(" ")):O}}const yV={decodeEntities:!0};ld.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};ld.simpleTransform=function(e,t,r){return r=r===void 0?!0:r,t=t||{},function(n,o){let a;if(r)for(a in t)o[a]=t[a];else o=t;return{tagName:e,attribs:o}}};var Wk=Gz(mV);let cd=class extends mr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"HTML content to be safely rendered after sanitization",placeholder:"<p>Enter HTML content...</p>"}),W(),ae(),F("design:type",String)],cd.prototype,"html",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Text to display when no HTML content is available",placeholder:"Loading..."}),W(),ae(),F("design:type",String)],cd.prototype,"placeholder",void 0);cd=_([Ft("SafeSpan","1.0.0")],cd);var vV=cd;function N0(e){const{html:t,placeholder:r,...n}=e,{styleProps:o,htmlProps:a}=In(n);N0[Bn]=!0;const u=t?Wk(t,{allowedTags:["p","br","strong","em","u","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img"],allowedAttributes:{a:["href","title","target"],img:["src","alt","title","width","height"],span:["style","class"],div:["style","class"],p:["style","class"]},allowedSchemes:["http","https","mailto"],disallowedTagsMode:"discard",allowedSchemesByTag:{a:["http","https","mailto"],img:["http","https"]},transformTags:{a:function(d,f){return f.href&&(f.href.startsWith("http://")||f.href.startsWith("https://"))?{tagName:"a",attribs:{...f,rel:"noopener noreferrer",target:"_blank"}}:{tagName:d,attribs:f}}}}):"";return!u&&!r?null:!u&&r?l.jsx("span",{...a,...o,children:r}):l.jsx("span",{...a,...o,dangerouslySetInnerHTML:{__html:u}})}class bo extends Js{getComponentSpecificProps(){return{html:this.props.html,placeholder:this.props.placeholder}}renderView(){const{...t}=this.props;return l.jsx(N0,{...t})}renderWithDataBinding(){return l.jsx(xV,{...this.props})}static registerPatternHandlers(t){t.hasPattern("span.safe-content")||t.registerPattern("span.safe-content",bo.transformSafeSpan),t.hasPattern("span[data-safe]")||t.registerPattern("span[data-safe]",bo.transformSafeSpan)}static transformSafeSpan(t){const r=t.getAttribute("data-placeholder");return{tagName:"SafeSpan",props:{html:t.innerHTML,placeholder:r||void 0}}}}bo.tagName="SafeSpan";bo.version="1.0.0";function xV(e){const{dataSource:t,bindingOptions:r,...n}=e,{loading:o,error:a,...c}=Fi(t,n,vV.getSchema(),{...r});return o?l.jsx("span",{children:"Loading..."}):a?(console.error("Error loading safe span:",a),l.jsxs("span",{children:["Error Loading Content: ",a.message]})):l.jsx(N0,{...c})}function bV({label:e,value:t="",onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:c,helperText:u,placeholder:d,rows:f=4,maxLength:h,showPreview:v=!0,showHelp:m=!1,...y}){const[x,w]=b.useState(!1),[C,P]=b.useState(!1),k=M=>{r==null||r(M.target.value)},I=(M,R=!0)=>{if(a)return;const L=document.activeElement;if(!L||L.tagName!=="TEXTAREA")return;const A=L.selectionStart,H=L.selectionEnd,G=t.substring(A,H);let $="";R?$=`<${M}>${G}</${M}>`:$=`<${M}>`;const j=t.substring(0,A)+$+t.substring(H);r==null||r(j),setTimeout(()=>{if(R&&!G){const q=A+M.length+2;L.setSelectionRange(q,q)}},0)},T=Wk(t||"",{allowedTags:["b","i","u","strong","em","p","br","code","pre","span","div"],allowedAttributes:{"*":["style","class"]}});return l.jsxs(ne,{...y,children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",mb:1,flexWrap:"wrap",gap:1},children:[l.jsxs(pe,{variant:"body2",color:"text.secondary",children:[e,o&&l.jsx("span",{style:{color:"error.main"},children:" *"})]}),l.jsx(ne,{sx:{flexGrow:1}}),l.jsxs(O_,{size:"small",disabled:a||x,children:[l.jsx(fr,{title:"Bold",children:l.jsx(Qt,{onClick:()=>I("b"),children:l.jsx(U7,{})})}),l.jsx(fr,{title:"Italic",children:l.jsx(Qt,{onClick:()=>I("i"),children:l.jsx(W7,{})})}),l.jsx(fr,{title:"Underline",children:l.jsx(Qt,{onClick:()=>I("u"),children:l.jsx(q7,{})})}),l.jsx(fr,{title:"Code",children:l.jsx(Qt,{onClick:()=>I("code"),children:l.jsx(hT,{})})})]}),v&&l.jsx(fr,{title:x?"Edit Mode":"Preview Mode",children:l.jsx(Qt,{onClick:()=>w(!x),disabled:a,children:x?l.jsx(Ky,{}):l.jsx(wT,{})})}),m&&l.jsx(fr,{title:"HTML Help",children:l.jsx(Qt,{onClick:()=>P(!C),children:l.jsx(gT,{})})})]}),l.jsx(Xu,{in:C,children:l.jsx(Kt,{severity:"info",sx:{mb:2},children:l.jsx(pe,{variant:"body2",children:"Supported HTML tags: <b>, <i>, <u>, <strong>, <em>, <p>, <br>, <code>, <pre>"})})}),x?l.jsx(ne,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2,minHeight:f*24,backgroundColor:"background.paper"},children:l.jsx(bo,{html:T,placeholder:"No content to preview"})}):l.jsx(Rt,{fullWidth:!0,multiline:!0,rows:f,value:t,onChange:k,onFocus:n,placeholder:d,disabled:a,error:!!c,helperText:c||u||(h?`${t.length}/${h}`:void 0),inputProps:{maxLength:h},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:"0.875rem"}}})]})}const qk=so({tagName:"HtmlInputField",version:"1.0.0",role:"view",View:bV});function wV({label:e="Options",options:t=[],onOptionChange:r,onAddOption:n,onChoiceFieldFocus:o,disabled:a=!1,placeholder:c="Enter option text. HTML formatting supported.",optionLabelPrefix:u="Option",rows:d=2,maxOptions:f=10,...h}){const v=x=>w=>{r==null||r(x,w)},m=x=>()=>{o==null||o(x)},y=()=>{t.length<f&&(n==null||n())};return l.jsxs(ne,{...h,children:[l.jsx(pe,{variant:"h6",gutterBottom:!0,children:e}),t.length===0&&l.jsx(Kt,{severity:"info",sx:{mb:2},children:'No options added yet. Click "Add Option" to get started.'}),t.map((x,w)=>l.jsx(ne,{sx:{mb:2},children:l.jsx(qk,{label:`${u} ${w+1}`,value:x,onChange:v(w),onFocus:m(w),placeholder:c,rows:d,disabled:a,showPreview:!0,showHelp:!1})},w)),t.length<f&&l.jsx(sn,{variant:"outlined",startIcon:l.jsx(pT,{}),onClick:y,disabled:a,sx:{mt:1},children:"Add Option"}),t.length>=f&&l.jsxs(pe,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:["Maximum number of options (",f,") reached."]})]})}const SV=so({tagName:"ChoiceInputField",version:"1.0.0",role:"view",View:wV});class Wh{}_([z(),D({field_type:B.TEXT,label:"Option Value",description:"The value for this option"}),ae(),F("design:type",Object)],Wh.prototype,"value",void 0);_([z(),D({field_type:B.TEXT,label:"Option Label",description:"The display text for this option"}),W(),ae(),F("design:type",String)],Wh.prototype,"label",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this option is disabled"}),W(),Bt(),F("design:type",Boolean)],Wh.prototype,"disabled",void 0);let Oi=class extends xt{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"The label text displayed for this select field",placeholder:"Enter field label..."}),W(),ae(),F("design:type",String)],Oi.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Selected Value",description:"The currently selected value"}),W(),ae(),F("design:type",Object)],Oi.prototype,"value",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Select Options",description:"Array of options available in the dropdown (JSON format)"}),W(),dn(),oo({each:!0}),ao(()=>Wh),F("design:type",Array)],Oi.prototype,"options",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Required",description:"Whether this field is required"}),W(),Bt(),F("design:type",Boolean)],Oi.prototype,"required",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this field is disabled"}),W(),Bt(),F("design:type",Boolean)],Oi.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Error Message",description:"Error message to display when field validation fails",placeholder:"Error message..."}),W(),ae(),F("design:type",String)],Oi.prototype,"error",void 0);_([z(),D({field_type:B.TEXT,label:"Helper Text",description:"Additional helpful text displayed below the field",placeholder:"Helper text..."}),W(),ae(),F("design:type",String)],Oi.prototype,"helperText",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Placeholder text shown when no value is selected",placeholder:"Select an option..."}),W(),ae(),F("design:type",String)],Oi.prototype,"placeholder",void 0);Oi=_([Ft("SelectInputField","1.0.0")],Oi);function CV({label:e,value:t="",onChange:r,onFocus:n,options:o=[],required:a=!1,disabled:c=!1,error:u,helperText:d,placeholder:f,...h}){const v=oe=>{r&&r(oe.target.value)},{margin:m,padding:y,paddingX:x,paddingY:w,paddingTop:C,paddingRight:P,paddingBottom:k,paddingLeft:I,width:T,height:M,minWidth:R,maxWidth:L,minHeight:A,maxHeight:H,sx:G,style:$,span:j,xs:q,sm:V,md:O,lg:U,xl:K,background:Y,backgroundImage:Z,backgroundGradient:Q,textAlign:X,className:re,...de}=h,J=e?`select-label-${e.toLowerCase().replace(/\s+/g,"-")}`:void 0;return l.jsxs(_i,{fullWidth:!0,required:a,disabled:c,error:!!u,sx:G,style:$,className:re,...de,children:[e&&l.jsx(Ga,{id:J,children:e}),l.jsxs(aa,{labelId:J,label:e,value:t,onChange:v,onFocus:n,displayEmpty:!!f,children:[f&&l.jsx(Sr,{value:"",disabled:!0,children:l.jsx("em",{children:f})}),o.map((oe,ee)=>l.jsx(Sr,{value:oe.value,disabled:oe.disabled,children:oe.label},`${oe.value}-${ee}`))]}),(u||d)&&l.jsx(wc,{children:u||d})]})}const EV=so({tagName:"SelectInputField",version:"1.0.0",role:"view",View:CV});function TV({label:e,checked:t=!1,onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:c,helperText:u,...d}){const f=re=>{r==null||r(re.target.checked)},{margin:h,padding:v,paddingX:m,paddingY:y,paddingTop:x,paddingRight:w,paddingBottom:C,paddingLeft:P,width:k,height:I,minWidth:T,maxWidth:M,minHeight:R,maxHeight:L,sx:A,style:H,span:G,xs:$,sm:j,md:q,lg:V,xl:O,background:U,backgroundImage:K,backgroundGradient:Y,textAlign:Z,className:Q,...X}=d;return l.jsxs(_i,{component:"fieldset",error:!!c,disabled:a,sx:A,style:H,className:Q,...X,children:[l.jsx(Ba,{control:l.jsx(_s,{checked:t,onChange:f,onFocus:n,required:o,disabled:a}),label:e}),(c||u)&&l.jsx(wc,{children:c||u})]})}const kV=so({tagName:"SwitchInputField",version:"1.0.0",role:"view",View:TV});function jV({label:e,value:t="",onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:c,helperText:u,placeholder:d,type:f="text",multiline:h=!1,rows:v,maxRows:m,textFieldProps:y,...x}){const w=Ce=>{r==null||r(Ce.target.value)},{margin:C,padding:P,paddingX:k,paddingY:I,paddingTop:T,paddingRight:M,paddingBottom:R,paddingLeft:L,width:A,height:H,minWidth:G,maxWidth:$,minHeight:j,maxHeight:q,sx:V,style:O,span:U,xs:K,sm:Y,md:Z,lg:Q,xl:X,background:re,backgroundImage:de,backgroundGradient:J,textAlign:oe,className:ee,...he}=x;return l.jsx(Rt,{...he,fullWidth:!0,label:e,value:t,onChange:w,onFocus:n,required:o,disabled:a,error:!!c,helperText:c||u,placeholder:d,type:f,multiline:h,rows:v,maxRows:m,sx:V,style:O,className:ee,...y})}const PV=so({tagName:"TextInputField",version:"1.0.0",role:"view",View:jV});function IV({children:e,gridProps:t,...r}){const n=t;return l.jsx(ne,{...r,...n?{"data-grid-span":n.span,"data-grid-xs":n.xs,"data-grid-sm":n.sm,"data-grid-md":n.md,"data-grid-lg":n.lg,"data-grid-xl":n.xl}:{},children:e})}const MV=so({tagName:"GridCell",version:"1.0.0",role:"container",View:IV});function RV({children:e,columns:t,spacing:r="small",equalHeight:n=!1,height:o,width:a,minHeight:c,minWidth:u,maxHeight:d,maxWidth:f,gridProps:h,...v}){const m=Ln(r),y=()=>Lt.Children.toArray(e).map((w,C)=>{if(!Lt.isValidElement(w))return w;let P={};const k=w.props,I=k["data-grid-span"]||k.span,T=k["data-grid-xs"]||k.xs,M=k["data-grid-sm"]||k.sm,R=k["data-grid-md"]||k.md,L=k["data-grid-lg"]||k.lg,A=k["data-grid-xl"]||k.xl;if(I||T||M||R||L||A)if(I)P={size:I};else{const H={};T&&(H.xs=T),M&&(H.sm=M),R&&(H.md=R),L&&(H.lg=L),A&&(H.xl=A),P={size:H}}if(t&&Object.keys(P).length===0&&(P={size:{xs:12,sm:t>=3?6:12/Math.min(t,2),md:12/Math.min(t,3),lg:12/t}}),Object.keys(P).length>0){const H={...w.props};return delete H["data-grid-span"],delete H["data-grid-xs"],delete H["data-grid-sm"],delete H["data-grid-md"],delete H["data-grid-lg"],delete H["data-grid-xl"],l.jsx($n,{...P,children:Lt.cloneElement(w,H)},w.key||C)}return l.jsx(Lt.Fragment,{children:w},w.key||C)});return l.jsx($n,{container:!0,spacing:m,...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{width:"100%",height:Oo(o,"height"),minHeight:Oo(c,"minHeight"),minWidth:Oo(u,"minWidth"),maxHeight:Oo(d,"maxHeight"),maxWidth:Oo(f,"maxWidth"),...a&&{width:Oo(a,"width")},...n&&{alignItems:"stretch","& > .MuiGrid-root":{display:"flex","& > *":{width:"100%",height:"100%"}}},...v.sx},children:y()})}const kc=so({tagName:"GridLayout",version:"1.0.0",role:"container",View:RV});let fc=class extends mr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"HTML content to be transformed into React components",placeholder:"<p>Enter HTML content...</p>"}),W(),ae(),F("design:type",String)],fc.prototype,"children",void 0);_([z(),D({field_type:B.CHECKBOX,label:"Strip Headers",description:"Whether to remove header elements (h1-h6) from the HTML"}),W(),Bt(),F("design:type",Boolean)],fc.prototype,"stripHeaders",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Fallback content to display when HTML is empty",placeholder:"No content available"}),W(),ae(),F("design:type",String)],fc.prototype,"placeholder",void 0);fc=_([Ft("Html","1.0.0")],fc);var AV=fc;function $0({children:e="",stripHeaders:t=!1,placeholder:r,component:n="div",...o}){const{styleProps:a,htmlProps:c,restProps:u}=In(o);if($0[Bn]=!0,!e||!e.trim())return r?l.jsx(ne,{component:n,...c,...a,...u,sx:{opacity:.6,fontStyle:"italic",...a.sx},children:r}):null;try{let d=e;t&&(d=d.replace(/<h[1-6][^>]*>.*?<\/h[1-6]>/gi,""));const f=an.transformHTML(d);return l.jsx(ne,{component:n,...c,...a,...u,sx:{"& > *:not(:last-child)":{mb:1.5},"& h1, & h2, & h3, & h4, & h5, & h6":{mb:1.5,mt:2,"&:first-of-type":{mt:0}},"& p":{mb:1.5,lineHeight:1.6},"& ul, & ol":{mb:1.5,pl:3},...a.sx},children:f})}catch(d){return console.error("Error transforming HTML content:",d),l.jsxs(ne,{component:n,...c,...a,...u,sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)",...a.sx},children:[l.jsx("strong",{children:"HTML Transform Error:"})," ",d instanceof Error?d.message:"Unknown error",l.jsx(bo,{html:e,placeholder:"Failed to transform HTML"})]})}}class No extends Js{static fromJson(t){const{tagName:r,version:n,data:o}=t;if(r!==No.tagName)throw new Error(`Cannot deserialize: Expected tagName 'Html' but got '${r}'`);n!==No.version&&console.warn(`Version mismatch: Expected ${No.version} but got ${n}`);const{children:a,...c}=o||{};return l.jsx(No,{...c,children:an.deserialize(a)})}getComponentSpecificProps(){return{children:this.props.children,stripHeaders:this.props.stripHeaders,placeholder:this.props.placeholder}}renderView(){const{...t}=this.props;return l.jsx($0,{...t})}renderWithDataBinding(){return l.jsx(_V,{...this.props})}static registerPatternHandlers(t){t.hasPattern("div.html-content")||t.registerPattern("div.html-content",No.transformHtmlDiv),t.hasPattern("[data-html]")||t.registerPattern("[data-html]",No.transformDataHtml)}static transformHtmlDiv(t){const r=t.getAttribute("data-strip-headers")==="true",n=t.getAttribute("data-placeholder");return{tagName:"Html",props:{children:t.innerHTML,stripHeaders:r,placeholder:n||void 0}}}static transformDataHtml(t){const r=t.getAttribute("data-html")||t.innerHTML,n=t.getAttribute("data-strip-headers")==="true",o=t.getAttribute("data-placeholder");return{tagName:"Html",props:{children:r,stripHeaders:n,placeholder:o||void 0}}}}No.tagName="Html";No.version="1.0.0";function _V(e){const{dataSource:t,bindingOptions:r,...n}=e,{loading:o,error:a,...c}=Fi(t,n,AV.getSchema(),{...r});return o?l.jsx(ne,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading HTML content..."}):a?(console.error("Error loading HTML content:",a),l.jsxs(ne,{sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)"},children:[l.jsx("strong",{children:"Error Loading HTML:"})," ",a.message]})):l.jsx($0,{...c})}class go{static serialize(t){var r,n;if(t==null)return null;if(Array.isArray(t))return{type:"array",children:t.map(o=>go.serialize(o))};if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return{type:"primitive",value:t};if(b.isValidElement(t)){const o=t,a=o.type,c=typeof a=="string"?a:((r=a==null?void 0:a.render)==null?void 0:r.name)||(a==null?void 0:a.name)||(a==null?void 0:a.muiName)||(a==null?void 0:a.displayName)||"Anonymous";return{type:"react-element",elementType:typeof c=="string"?((n=c.match(/^[A-Za-z]+?\(([^)]+)\)$/))==null?void 0:n[1])||c:"Anonymous",props:go.serializeProps(o.props),key:o.key}}if(typeof t=="object"&&t!==null)try{const o={type:"object",data:{}};for(const[a,c]of Object.entries(t))o.data[a]=go.serialize(c);return o}catch{return{type:"string",value:String(t)}}return{type:"string",value:String(t)}}static deserialize(t){var r;if(t==null)return null;if(typeof t=="object"&&t.type)switch(t.type){case"primitive":return t.value;case"string":return t.value;case"array":return((r=t.children)==null?void 0:r.map(n=>go.deserialize(n)))||[];case"react-element":return go.deserializeReactElement(t);case"object":{const n={};if(t.data&&typeof t.data=="object")for(const[o,a]of Object.entries(t.data))n[o]=go.deserialize(a);return n}default:return String(t.value||t)}return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?t:String(t)}static serializeProps(t){if(!t||typeof t!="object")return t;const r={};for(const[n,o]of Object.entries(t))n==="children"?r[n]=go.serialize(o):typeof o=="function"?r[n]=null:r[n]=o;return r}static deserializeReactElement(t){const r=t,{elementType:n,props:o,key:a}=r;try{if(typeof n=="string"){const c=go.deserializeProps(o);return b.createElement(n,{key:a,...c})}}catch(c){console.warn("Error deserializing React element:",c)}return b.createElement(No,{key:a,children:o.children})}static deserializeProps(t){if(!t||typeof t!="object")return t;const r={};for(const[n,o]of Object.entries(t))n==="children"?r[n]=go.deserialize(o):r[n]=o;return r}static extractTextContent(t){return t?typeof t.children=="string"?t.children:t.title&&typeof t.title=="string"?t.title:t.label&&typeof t.label=="string"?t.label:t.text&&typeof t.text=="string"?t.text:null:null}}const xi=new Map,Is=new Map;let Nl=!0;const LV="__react_node__",OV="1.0.0";let an=class On{static setStrictMode(t){Nl=t}static isStrictMode(){return Nl}static registerComponent(t){const{tagName:r,version:n}=t;if(!r||typeof r!="string")throw new Error("Component class must have a static 'tagName' property");if(!n||typeof n!="string")throw new Error(`Component class '${r}' must have a static 'version' property`);if(typeof t.fromJson!="function")throw new Error(`Component class '${r}' must implement static 'fromJson' method`);xi.has(r)&&console.warn(`Component '${r}' is already registered. Overwriting existing registration.`),xi.set(r,t);const o=t;typeof o.registerPatternHandlers=="function"&&o.registerPatternHandlers(On)}static serialize(t){const r=On.serializeNode(t);return JSON.stringify(r)}static deserialize(t){if(typeof t=="string")try{const r=JSON.parse(t);return On.deserializeData(r)}catch{return t}return t==null?null:On.deserializeData(t)}static isSerializedComponent(t){return!!t&&typeof t=="object"&&typeof t.tagName=="string"&&typeof t.version=="string"&&"data"in t}static deserializeData(t){if(t==null)return null;if(Array.isArray(t))return t.map(r=>On.deserializeData(r));if(On.isSerializedComponent(t)){const{key:r,tagName:n,data:o}=t;try{const a=xi.get(n);if(!a){if(Nl)throw new Error(`Component '${n}' is not registered in strict mode`);const u=On.deserializeUnregisteredComponent(o);return r?Lt.cloneElement(u,{key:r}):u}const c=a.fromJson(t);return r?Lt.cloneElement(c,{key:r}):c}catch(a){if(Nl)throw a;console.error(`TEST: Error deserializing component '${n}':`,a)}}if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return t;console.warn("TEST: Unrecognized data:",t);{const r=typeof t=="object"?JSON.stringify(t,null,2):String(t);return Lt.createElement(bo,{html:`<pre>${r}</pre>`})}}static serializeNode(t){if(t==null)return null;if(Array.isArray(t))return t.map(n=>On.serializeNode(n));if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="object"&&"type"in t){const n=t,o=n.key?{key:String(n.key)}:{},a=n.type;if(typeof a=="function"){const c=On.findTagNameForComponent(a);if(c){const u=xi.get(c);let d=null;const f=u;if(typeof f.toJson=="function"&&(d=f.toJson(n.props)),d!==null)return d.data&&d.data.children!==void 0&&(d.data.children=On.serializeNode(d.data.children)),{...o,...d}}else if(Nl){const u=a,d=u.displayName||u.name||"Unknown";throw new Error(`Unregistered component '${d}' cannot be serialized in strict mode`)}}}if(Nl)throw new Error(`Cannot serialize unregistered node in strict mode: ${typeof t=="object"&&t&&"type"in t?t.type:typeof t}`);return{tagName:LV,version:OV,data:go.serialize(t)}}static deserializeUnregisteredComponent(t){return go.deserialize(t)}static findTagNameForComponent(t){for(const[o,a]of xi.entries())if(a===t)return o;const r=t==null?void 0:t.tagName;if(typeof r=="string"&&xi.has(r))return r;const n=(t==null?void 0:t.displayName)||(t==null?void 0:t.name);if(n){const o=n.replace(/^[A-Za-z]+?\(([^)]+)\)$/,"$1").replace(/WithDataBinding$/,"");if(xi.has(o))return o;if(xi.has(n))return n}return null}static getRegisteredComponents(){return Array.from(xi.keys())}static clearRegistry(){xi.clear(),Is.clear()}static registerPattern(t,r){Is.has(t)&&console.warn(`Pattern '${t}' is already registered. Overwriting existing handler.`),Is.set(t,r)}static hasPattern(t){return Is.has(t)}static transformHTMLElement(t){for(const[r,n]of Is)if(t.matches(r))try{const o=n(t);return On.deserialize(o)}catch(o){return console.warn(`Error transforming element with pattern '${r}':`,o),null}return null}static transformHTML(t){if(!t.trim())return[];const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.children).map((o,a)=>On.transformElement(o,`element-${a}`))}static transformElement(t,r){const n=On.transformHTMLElement(t);if(n)return n;const o=Array.from(t.children);if(o.some(c=>Array.from(Is.keys()).some(u=>c.matches(u)))){const c=o.map((u,d)=>On.transformElement(u,`${r}-${d}`));return Lt.createElement(t.tagName.toLowerCase(),{key:r,className:t.className||void 0,id:t.id||void 0},c)}return go.deserialize({type:"react-element",elementType:t.tagName.toLowerCase(),props:{key:r,className:t.className||void 0,id:t.id||void 0,dangerouslySetInnerHTML:{__html:t.innerHTML}}})}static getRegisteredPatterns(){return Array.from(Is.keys())}};function NV(){an.registerComponent(Tz),an.registerComponent(Gl),an.registerComponent(Xl),an.registerComponent(Nr),an.registerComponent(RT),an.registerComponent(vt),an.registerComponent(_z),an.registerComponent(kc),an.registerComponent(MV),an.registerComponent(PV),an.registerComponent(EV),an.registerComponent(qk),an.registerComponent(SV),an.registerComponent(kV),an.registerComponent(Ec)}NV();let ud=class extends mr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"Raw HTML content to transform and render",placeholder:"Enter HTML content..."}),ae(),W(),F("design:type",String)],ud.prototype,"html",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Skip Header",description:"Skip/remove header elements before rendering"}),W(),F("design:type",Boolean)],ud.prototype,"skipHeader",void 0);ud=_([Ft("Article","1.0.0")],ud);var $V=ud;function B0({html:e="",skipHeader:t=!1,...r}){const{styleProps:n,htmlProps:o,restProps:a}=In(r);return B0[Bn]=!0,e.trim()?l.jsx(No,{component:"article",stripHeaders:t,placeholder:"No content available",...o,...a,...n,maxWidth:"900px",mx:"auto",px:{xs:2,sm:3,md:4},py:{xs:3,md:5},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeight:700,letterSpacing:"-0.02em",color:"var(--theme-text)",scrollMarginTop:"100px","&:first-of-type":{mt:0}},"& h1":{fontSize:{xs:"2rem",md:"2.75rem"},lineHeight:1.15,mb:3,mt:5},"& h2":{fontSize:{xs:"1.5rem",md:"2rem"},lineHeight:1.25,mb:2.5,mt:5,pb:1.5,borderBottom:"1px solid var(--theme-border-lighter)"},"& h3":{fontSize:{xs:"1.25rem",md:"1.5rem"},lineHeight:1.3,mb:2,mt:4},"& h4":{fontSize:{xs:"1.1rem",md:"1.25rem"},lineHeight:1.4,mb:1.5,mt:3,color:"var(--theme-text)",fontWeight:600},"& p":{fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.75,mb:2,color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&:last-child":{mb:0}},"& ul, & ol":{mb:3,pl:{xs:3,md:4},"& li":{mb:1.25,lineHeight:1.7,fontSize:{xs:"1rem",md:"1.0625rem"},color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&::marker":{color:"var(--theme-primary)",fontWeight:600},"& p":{mb:.5}},"& ul, & ol":{mt:1,mb:0}},"& pre":{backgroundColor:"var(--theme-surface-elevated)",color:"var(--theme-text)",borderRadius:"var(--theme-border-radius)",p:{xs:2,md:3},mb:3,overflow:"auto",fontSize:"0.9rem",lineHeight:1.6,fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',border:"1px solid var(--theme-border-light)",boxShadow:"var(--theme-elevation-2)","& code":{backgroundColor:"transparent",color:"inherit",padding:0,fontSize:"inherit",fontFamily:"inherit"}},"& code":{backgroundColor:"var(--theme-code-bg)",color:"var(--theme-error)",padding:"0.2em 0.4em",borderRadius:"var(--theme-border-radius-small)",fontSize:"0.9em",fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',fontWeight:500},"& blockquote":{borderLeft:"4px solid var(--theme-primary)",backgroundColor:"var(--theme-surface-variant)",borderRadius:"0 var(--theme-border-radius-small) var(--theme-border-radius-small) 0",pl:3,pr:3,py:2.5,my:4,ml:0,mr:0,"& p":{fontSize:{xs:"1.05rem",md:"1.125rem"},fontStyle:"italic",lineHeight:1.6,mb:1.5,color:"var(--theme-text)","&:last-child":{mb:0}},"& cite":{display:"block",fontSize:"0.9rem",fontStyle:"normal",fontWeight:500,color:"var(--theme-text)",mt:1,"&::before":{content:'"— "',color:"var(--theme-primary)"}}},"& table":{width:"100%",borderCollapse:"separate",borderSpacing:0,mb:3,fontSize:"0.95rem",overflow:"hidden",borderRadius:"var(--theme-border-radius-small)",border:"1px solid var(--theme-border-light)","& thead":{backgroundColor:"var(--theme-surface-variant)","& th":{padding:"12px 16px",textAlign:"left",fontWeight:600,color:"var(--theme-text)",borderBottom:"2px solid var(--theme-border-main)",fontSize:"0.875rem",textTransform:"uppercase",letterSpacing:"0.05em"}},"& tbody":{"& tr":{borderBottom:"1px solid var(--theme-border-lighter)",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"var(--theme-surface-variant)"},"&:last-child":{borderBottom:"none"}},"& td":{padding:"12px 16px",color:"var(--theme-text)",lineHeight:1.6}}},"& strong":{fontWeight:700,color:"var(--theme-text)"},"& em":{fontStyle:"italic",color:"var(--theme-text)"},"& a":{color:"var(--theme-primary)",textDecoration:"none",fontWeight:500,borderBottom:"1px solid transparent",transition:"border-color 0.2s ease","&:hover":{borderBottomColor:"var(--theme-primary)"},"&:focus-visible":{outline:"2px solid var(--theme-primary)",outlineOffset:"2px",borderRadius:"2px"}},"& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",display:"block",my:3},"& figure":{margin:"3rem 0","& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",boxShadow:"var(--theme-elevation-2)"},"& figcaption":{textAlign:"center",fontSize:"0.875rem",color:"var(--theme-text)",mt:1.5,fontStyle:"italic"}},"& hr":{border:"none",borderTop:"1px solid var(--theme-border-light)",my:5},...n.sx,children:e}):l.jsxs(ne,{component:"article",...o,...n,sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center",opacity:.6,...n.sx},children:[l.jsx(pe,{variant:"h6",color:"var(--theme-text)",children:"No Content Available"}),l.jsx(pe,{variant:"body2",color:"var(--theme-text)",children:"No HTML content provided for this article"})]})}class qh extends Js{getComponentSpecificProps(){return{html:this.props.html,skipHeader:this.props.skipHeader}}renderView(){const{...t}=this.props;return l.jsx(B0,{...t})}renderWithDataBinding(){return l.jsx(BV,{...this.props})}static registerPatternHandlers(t){t.hasPattern("article")||t.registerPattern("article",qh.transformArticle)}static transformArticle(t){const r=t.getAttribute("data-skip-header")==="true";return{tagName:"Article",props:{html:t.innerHTML,skipHeader:r}}}}qh.tagName="Article";qh.version="1.0.0";function BV(e){const{dataSource:t,bindingOptions:r,...n}=e,{loading:o,error:a,...c}=Fi(t,n,$V.getSchema(),{...r});return o?l.jsxs(ne,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[l.jsx(pe,{variant:"h6",children:"Loading Article..."}),l.jsx(pe,{variant:"body2",color:"var(--theme-text)",children:"Loading"})]}):a?(console.error("Error loading article:",a),l.jsxs(ne,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[l.jsx(pe,{variant:"h6",children:"Error Loading Article"}),l.jsx(pe,{variant:"body2",color:"var(--theme-text)",children:a.message})]})):l.jsx(B0,{...c})}let eo=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Label",description:"Button label text",placeholder:"Enter button text..."}),W(),ae(),F("design:type",String)],eo.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Visual style variant",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"},{label:"Contained",value:"contained"}]}}),W(),Ue(["primary","secondary","outlined","text","contained"]),F("design:type",String)],eo.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Size",description:"Button size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ue(["small","medium","large"]),F("design:type",String)],eo.prototype,"buttonSize",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Icon to display (before text)",placeholder:"Icon identifier..."}),W(),ae(),F("design:type",String)],eo.prototype,"icon",void 0);_([z(),D({field_type:B.TEXT,label:"End Icon",description:"Icon to display after text",placeholder:"End icon identifier..."}),W(),ae(),F("design:type",String)],eo.prototype,"endIcon",void 0);_([z(),D({field_type:B.URL,label:"URL",description:"Link URL - button becomes a link",placeholder:"https://..."}),W(),Ah(),F("design:type",String)],eo.prototype,"href",void 0);_([z(),D({field_type:B.SELECT,label:"Target",description:"Link target (when href is provided)",validation:{options:[{label:"Blank",value:"_blank"},{label:"Self",value:"_self"},{label:"Parent",value:"_parent"},{label:"Top",value:"_top"}]}}),W(),Ue(["_blank","_self","_parent","_top"]),F("design:type",String)],eo.prototype,"target",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),F("design:type",Boolean)],eo.prototype,"disabled",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Loading",description:"Loading state - shows spinner and disables interaction"}),W(),F("design:type",Boolean)],eo.prototype,"loading",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Full Width",description:"Full width button"}),W(),F("design:type",Boolean)],eo.prototype,"fullWidth",void 0);eo=_([Ft("Action","1.0.0")],eo);let Ni=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading for the content block",placeholder:"Enter content title..."}),W(),ae(),F("design:type",String)],Ni.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary heading or description",placeholder:"Enter subtitle..."}),W(),ae(),F("design:type",String)],Ni.prototype,"subtitle",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content body (HTML supported)",placeholder:"Enter content body..."}),W(),ae(),F("design:type",Object)],Ni.prototype,"children",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),dn(),oo({each:!0}),ao(()=>eo),F("design:type",Array)],Ni.prototype,"actions",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Background/elevation style",validation:{options:[{label:"Default",value:"default"},{label:"Elevated",value:"elevated"},{label:"Outlined",value:"outlined"},{label:"Filled",value:"filled"}]}}),W(),Ue(["default","elevated","outlined","filled"]),F("design:type",String)],Ni.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Block Spacing",description:"Content padding size",validation:{options:[{label:"None",value:"none"},{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ue(["none","compact","comfortable","spacious"]),F("design:type",String)],Ni.prototype,"blockSpacing",void 0);_([z(),D({field_type:B.SELECT,label:"Content Max Width",description:"Maximum content width constraint",validation:{options:[{label:"XS",value:"xs"},{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"},{label:"XL",value:"xl"},{label:"Full Width",value:"false"}]}}),W(),Ue(["xs","sm","md","lg","xl","false"]),F("design:type",String)],Ni.prototype,"contentMaxWidth",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Centered",description:"Center align content"}),W(),Bt(),F("design:type",Boolean)],Ni.prototype,"centered",void 0);Ni=_([Ft("Content","1.0.0")],Ni);let dd=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Label",description:'Metadata label (e.g., "followers", "posts")',placeholder:"followers"}),ae(),F("design:type",String)],dd.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Value",description:'Metadata value (e.g., "1.2k", "42")',placeholder:"1.2k"}),ae(),F("design:type",String)],dd.prototype,"value",void 0);dd=_([Ft("MetadataItem","1.0.0")],dd);let yn=class extends mr{};_([z(),D({field_type:B.IMAGE,label:"Cover Image",description:"Large banner/cover image URL",placeholder:"Upload cover image"}),W(),ae(),F("design:type",String)],yn.prototype,"coverImage",void 0);_([z(),D({field_type:B.TEXT,label:"Cover Image Alt Text",description:"Alternative text for cover image",placeholder:"Descriptive alt text..."}),W(),ae(),F("design:type",String)],yn.prototype,"coverImageAlt",void 0);_([z(),D({field_type:B.IMAGE,label:"Profile Image",description:"Profile/avatar image URL",placeholder:"Upload profile image"}),W(),ae(),F("design:type",String)],yn.prototype,"profileImage",void 0);_([z(),D({field_type:B.TEXT,label:"Profile Image Alt Text",description:"Alternative text for profile image",placeholder:"Profile alt text..."}),W(),ae(),F("design:type",String)],yn.prototype,"profileImageAlt",void 0);_([z(),D({field_type:B.SELECT,label:"Profile Image Size",description:"Size of the profile image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ue(["small","medium","large"]),F("design:type",String)],yn.prototype,"profileImageSize",void 0);_([z(),D({field_type:B.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ae(),F("design:type",String)],yn.prototype,"overline",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ae(),F("design:type",String)],yn.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ae(),F("design:type",String)],yn.prototype,"subtitle",void 0);_([z(),D({field_type:B.REPEATER,label:"Metadata",description:"Array of metadata items (followers, posts, etc.)"}),W(),dn(),oo({each:!0}),ao(()=>dd),F("design:type",Array)],yn.prototype,"metadata",void 0);_([z(),D({field_type:B.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),dn(),ae({each:!0}),F("design:type",Array)],yn.prototype,"tags",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),dn(),oo({each:!0}),ao(()=>Li),F("design:type",Array)],yn.prototype,"actions",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Pr(),io(1),Qs(10),F("design:type",Number)],yn.prototype,"maxVisibleActions",void 0);_([z(),D({field_type:B.NUMBER,label:"Banner Height",description:"Height of the banner area in pixels",validation:{min:100,max:500}}),W(),Pr(),io(100),Qs(500),F("design:type",Number)],yn.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),F("design:type",String)],yn.prototype,"className",void 0);_([z(),D({field_type:B.SELECT,label:"Profile Position",description:"Position of profile image relative to banner",validation:{options:[{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Overlay Center",value:"overlay-center"}]}}),W(),Ue(["bottom-left","bottom-center","overlay-center"]),F("design:type",String)],yn.prototype,"profilePosition",void 0);yn=_([Ft("PageBannerHeader","1.0.0")],yn);let $i=class extends mr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the feature item",placeholder:"feature-id"}),ae(),cs(),F("design:type",String)],$i.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Feature icon (emoji or icon name)",placeholder:"🚀 or icon-name"}),W(),ae(),F("design:type",String)],$i.prototype,"icon",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Feature title",placeholder:"Feature title..."}),ae(),F("design:type",String)],$i.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Description",description:"Feature description",placeholder:"Feature description..."}),ae(),F("design:type",String)],$i.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Action",description:"Optional action/link text or content",placeholder:"Learn more"}),W(),ae(),F("design:type",String)],$i.prototype,"action",void 0);$i=_([Ft("FeatureItem","1.0.0")],$i);let Ws=class extends mr{};_([z(),D({field_type:B.REPEATER,label:"Features",description:"Array of feature items"}),dn(),oo({each:!0}),ao(()=>$i),F("design:type",Array)],Ws.prototype,"features",void 0);_([z(),D({field_type:B.SELECT,label:"Columns",description:"Number of columns in the grid",validation:{options:[{label:"1 Column",value:1},{label:"2 Columns",value:2},{label:"3 Columns",value:3},{label:"4 Columns",value:4},{label:"5 Columns",value:5},{label:"6 Columns",value:6}]}}),W(),Pr(),Ue([1,2,3,4,5,6]),F("design:type",Number)],Ws.prototype,"columns",void 0);_([z(),D({field_type:B.SELECT,label:"Gap",description:"Grid gap size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ue(["small","medium","large"]),F("design:type",String)],Ws.prototype,"gap",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Whether all grid items should have equal height"}),W(),Bt(),F("design:type",Boolean)],Ws.prototype,"equalHeight",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),F("design:type",String)],Ws.prototype,"className",void 0);Ws=_([Ft("FeatureGrid","1.0.0")],Ws);let Wr=class extends mr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Collapsed",description:"Whether the layout is currently collapsed"}),W(),Bt(),F("design:type",Boolean)],Wr.prototype,"collapsed",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Default Collapsed",description:"Initial collapsed state for uncontrolled usage"}),W(),Bt(),F("design:type",Boolean)],Wr.prototype,"defaultCollapsed",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main title displayed in the header",placeholder:"Enter title..."}),W(),ae(),F("design:type",String)],Wr.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text displayed below the title",placeholder:"Enter subtitle..."}),W(),ae(),F("design:type",String)],Wr.prototype,"subtitle",void 0);_([z(),D({field_type:B.TEXT,label:"Lead Icon",description:"Icon displayed before the title (icon identifier or HTML)",placeholder:"Icon identifier..."}),W(),ae(),F("design:type",String)],Wr.prototype,"leadIcon",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Header Actions",description:"Additional controls displayed in header (HTML/React content)",placeholder:"Enter header actions HTML..."}),W(),ae(),F("design:type",String)],Wr.prototype,"headerActions",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Collapsed View",description:"Summary content shown when collapsed (HTML supported)",placeholder:"Enter collapsed view content..."}),W(),ae(),F("design:type",String)],Wr.prototype,"collapsedView",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ae(),F("design:type",Object)],Wr.prototype,"children",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Footer View",description:"Always visible footer content (HTML supported)",placeholder:"Enter footer content..."}),W(),ae(),F("design:type",String)],Wr.prototype,"footerView",void 0);_([z({defaultValue:"header"}),D({field_type:B.SELECT,label:"Trigger Area",description:"Area that responds to clicks for toggle functionality",validation:{options:[{label:"Button Only",value:"button"},{label:"Header Area",value:"header"},{label:"Button and Header",value:"both"}]}}),W(),Ue(["button","header","both"]),F("design:type",String)],Wr.prototype,"triggerArea",void 0);_([z({defaultValue:"slide"}),D({field_type:B.SELECT,label:"Animation Style",description:"Animation variant for expand/collapse transitions",validation:{options:[{label:"Fade",value:"fade"},{label:"Slide",value:"slide"},{label:"Scale",value:"scale"}]}}),W(),Ue(["fade","slide","scale"]),F("design:type",String)],Wr.prototype,"animationStyle",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Persist State",description:"Save collapse state in local storage"}),W(),Bt(),F("design:type",Boolean)],Wr.prototype,"persistState",void 0);_([z(),D({field_type:B.TEXT,label:"Collapsed Icon",description:"Icon shown when content is collapsed (default: VisibilityIcon)",placeholder:"Icon identifier..."}),W(),ae(),F("design:type",String)],Wr.prototype,"collapsedIcon",void 0);_([z(),D({field_type:B.TEXT,label:"Expanded Icon",description:"Icon shown when content is expanded (default: VisibilityOffIcon)",placeholder:"Icon identifier..."}),W(),ae(),F("design:type",String)],Wr.prototype,"expandedIcon",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Divider",description:"Show divider lines between header, content, and footer sections"}),W(),Bt(),F("design:type",Boolean)],Wr.prototype,"showDivider",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Variant",description:"Visual style variant for the layout container",validation:{options:[{label:"Default",value:"default"},{label:"Outlined",value:"outlined"},{label:"Elevated",value:"elevated"},{label:"Filled",value:"filled"}]}}),W(),Ue(["default","outlined","elevated","filled"]),F("design:type",String)],Wr.prototype,"variant",void 0);_([z({defaultValue:"comfortable"}),D({field_type:B.SELECT,label:"Header Spacing",description:"Padding/spacing within the header area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ue(["compact","comfortable","spacious"]),F("design:type",String)],Wr.prototype,"headerSpacing",void 0);_([z({defaultValue:"comfortable"}),D({field_type:B.SELECT,label:"Content Spacing",description:"Padding/spacing within the content area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ue(["compact","comfortable","spacious"]),F("design:type",String)],Wr.prototype,"contentSpacing",void 0);Wr=_([Ft("CollapsibleLayout","1.0.0")],Wr);let Ja=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Action ID",description:"Unique identifier for the action",placeholder:"action-1"}),ae(),cs(),F("design:type",String)],Ja.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Action button label",placeholder:"Button text..."}),ae(),F("design:type",String)],Ja.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),Ue(["contained","outlined","text"]),F("design:type",String)],Ja.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),Ue(["primary","secondary","error"]),F("design:type",String)],Ja.prototype,"color",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),F("design:type",Boolean)],Ja.prototype,"disabled",void 0);Ja=_([Ft("FeatureCardAction","1.0.0")],Ja);let Za=class extends mr{};_([z({type:ut.OBJECT}),D({field_type:B.FORM,label:"Feature Data",description:"Single feature item to display"}),W(),oo(),ao(()=>$i),F("design:type",$i)],Za.prototype,"feature",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Features List",description:"List of feature strings for list variant"}),W(),dn(),ae({each:!0}),F("design:type",Array)],Za.prototype,"features",void 0);_([z({defaultValue:"standard"}),D({field_type:B.SELECT,label:"Card Type",description:"Display variant for the feature card",validation:{options:[{label:"Standard",value:"standard"},{label:"List",value:"list"}]}}),W(),Ue(["standard","list"]),F("design:type",String)],Za.prototype,"variant",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Actions",description:"Custom action buttons"}),W(),dn(),oo({each:!0}),ao(()=>Ja),F("design:type",Array)],Za.prototype,"actions",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Title for list variant",placeholder:"Enter card title..."}),W(),ae(),F("design:type",String)],Za.prototype,"title",void 0);_([z(),D({field_type:B.NUMBER,label:"Elevation",description:"Card elevation (0-24)",validation:{min:0,max:24}}),W(),Pr(),io(0),Qs(24),F("design:type",Number)],Za.prototype,"elevation",void 0);Za=_([Ft("FeatureCard","1.0.0")],Za);let qs=class extends mr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the footer item",placeholder:"footer-item-id"}),ae(),cs(),F("design:type",String)],qs.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Display text for the footer item",placeholder:"Navigation label"}),ae(),F("design:type",String)],qs.prototype,"label",void 0);_([z(),D({field_type:B.URL,label:"URL",description:"Optional URL for links",placeholder:"https://example.com"}),W(),ae(),F("design:type",String)],qs.prototype,"href",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"External Link",description:"Whether to open links in new tab"}),W(),Bt(),F("design:type",Boolean)],qs.prototype,"external",void 0);qs=_([Ft("FooterItem","1.0.0")],qs);let hc=class extends mr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the footer section",placeholder:"footer-section-id"}),ae(),cs(),F("design:type",String)],hc.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Section title/heading",placeholder:"Section title"}),W(),ae(),F("design:type",String)],hc.prototype,"title",void 0);_([z(),D({field_type:B.REPEATER,label:"Items",description:"Array of items in this section"}),dn(),oo({each:!0}),ao(()=>qs),F("design:type",Array)],hc.prototype,"items",void 0);hc=_([Ft("FooterSection","1.0.0")],hc);let Bi=class extends mr{};_([z(),D({field_type:B.REPEATER,label:"Sections",description:"Footer sections with navigation items"}),W(),dn(),oo({each:!0}),ao(()=>hc),F("design:type",Array)],Bi.prototype,"sections",void 0);_([z(),D({field_type:B.TEXT,label:"Logo",description:"Optional logo or branding element (HTML or text)",placeholder:"Company Logo or HTML"}),W(),ae(),F("design:type",String)],Bi.prototype,"logo",void 0);_([z(),D({field_type:B.TEXT,label:"Copyright",description:"Copyright text",placeholder:"© 2025 Company Name"}),W(),ae(),F("design:type",String)],Bi.prototype,"copyright",void 0);_([z(),D({field_type:B.TEXT,label:"Legal Text",description:"Additional legal or info text",placeholder:"All rights reserved."}),W(),ae(),F("design:type",String)],Bi.prototype,"legalText",void 0);_([z(),D({field_type:B.SELECT,label:"Orientation",description:"Layout orientation",validation:{options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}]}}),W(),Ue(["vertical","horizontal"]),F("design:type",String)],Bi.prototype,"orientation",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Background variant",validation:{options:[{label:"Default",value:"default"},{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"}]}}),W(),Ue(["default","contained","outlined"]),F("design:type",String)],Bi.prototype,"variant",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Divider",description:"Whether to show divider above footer"}),W(),Bt(),F("design:type",Boolean)],Bi.prototype,"showDivider",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-footer-class"}),W(),ae(),F("design:type",String)],Bi.prototype,"className",void 0);Bi=_([Ft("Footer","1.0.0")],Bi);let to=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Product ID",description:"Unique product identifier",placeholder:"product-1"}),ae(),cs(),F("design:type",String)],to.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Product Name",description:"The display name of the product",placeholder:"Enter product name..."}),ae(),cs(),F("design:type",String)],to.prototype,"name",void 0);_([z(),D({field_type:B.TEXT,label:"Category",description:"Product category or type",placeholder:"e.g., Software, Hardware, Service"}),ae(),F("design:type",String)],to.prototype,"category",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Description",description:"Full product description",placeholder:"Detailed product description..."}),ae(),F("design:type",String)],to.prototype,"description",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Short Description",description:"Brief product description for compact view",placeholder:"Brief description..."}),W(),ae(),F("design:type",String)],to.prototype,"shortDescription",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Features",description:"List of key product features"}),dn(),ae({each:!0}),F("design:type",Array)],to.prototype,"features",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Technologies",description:"Technologies used in the product"}),dn(),ae({each:!0}),F("design:type",Array)],to.prototype,"technologies",void 0);_([z(),D({field_type:B.TEXT,label:"Status",description:"Current product status",placeholder:"e.g., Active, Development, Beta"}),ae(),F("design:type",String)],to.prototype,"status",void 0);_([z(),D({field_type:B.IMAGE,label:"Image URL",description:"Product image or screenshot",placeholder:"https://..."}),W(),Ah(),F("design:type",String)],to.prototype,"image",void 0);_([z(),D({field_type:B.URL,label:"Product URL",description:"Live product URL (for launched products)",placeholder:"https://..."}),W(),Ah(),F("design:type",String)],to.prototype,"url",void 0);to=_([Ft("Product","1.0.0")],to);let es=class extends mr{};_([z(),D({field_type:B.TEXT,label:"Action ID",description:"Unique action identifier",placeholder:"action-1"}),ae(),cs(),F("design:type",String)],es.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Button Label",description:"Action button text",placeholder:"Button text..."}),ae(),F("design:type",String)],es.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Button Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),Ue(["contained","outlined","text"]),F("design:type",String)],es.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Button Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),Ue(["primary","secondary","error"]),F("design:type",String)],es.prototype,"color",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),F("design:type",Boolean)],es.prototype,"disabled",void 0);es=_([Ft("ProductCardAction","1.0.0")],es);let ts=class extends mr{};_([z({type:ut.OBJECT}),D({field_type:B.FORM,label:"Product Data",description:"Product information to display"}),W(),oo(),ao(()=>to),F("design:type",to)],ts.prototype,"product",void 0);_([z({defaultValue:"detailed"}),D({field_type:B.SELECT,label:"Card Variant",description:"Display variant for the product card",validation:{options:[{label:"Compact",value:"compact"},{label:"Detailed",value:"detailed"}]}}),W(),Ue(["compact","detailed"]),F("design:type",String)],ts.prototype,"variant",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Custom Actions",description:"Custom action buttons"}),W(),dn(),oo({each:!0}),ao(()=>es),F("design:type",Array)],ts.prototype,"actions",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Image",description:"Whether to display the product image"}),W(),F("design:type",Boolean)],ts.prototype,"showImage",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Technologies",description:"Whether to display technology chips"}),W(),F("design:type",Boolean)],ts.prototype,"showTechnologies",void 0);_([z({defaultValue:3}),D({field_type:B.NUMBER,label:"Max Features (Compact)",description:"Maximum features to show in compact mode",validation:{min:1,max:10}}),W(),Pr(),io(1),Qs(10),F("design:type",Number)],ts.prototype,"maxFeaturesCompact",void 0);ts=_([Ft("ProductCard","1.0.0")],ts);let rs=class extends sa{};_([z(),D({field_type:B.REPEATER,label:"Grid Items",description:"Array of items to display in the grid"}),dn(),F("design:type",Array)],rs.prototype,"items",void 0);_([z(),D({field_type:B.SELECT,label:"Columns",description:"Number of columns in the grid layout",validation:{options:[{value:1,label:"1 Column"},{value:2,label:"2 Columns (Default)"},{value:3,label:"3 Columns"},{value:4,label:"4 Columns"},{value:5,label:"5 Columns"},{value:6,label:"6 Columns"}]}}),W(),Pr(),Ue([1,2,3,4,5,6]),F("design:type",Number)],rs.prototype,"columns",void 0);_([z(),D({field_type:B.SELECT,label:"Grid Spacing",description:"Spacing between grid items",validation:{options:[{value:"none",label:"No Spacing"},{value:"tiny",label:"Tiny"},{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large (Default)"},{value:"huge",label:"Huge"}]}}),W(),Ue(["none","tiny","small","medium","large","huge"]),F("design:type",String)],rs.prototype,"spacing",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Whether all cards should have equal height"}),W(),Bt(),F("design:type",Boolean)],rs.prototype,"equalHeight",void 0);_([z(),D({field_type:B.SELECT,label:"Card Component Type",description:"Type of card component to render for each item",validation:{options:[{value:"ProductCard",label:"Product Card"},{value:"FeatureCard",label:"Feature Card"},{value:"Custom",label:"Custom Component"}]}}),W(),Ue(["ProductCard","FeatureCard","Custom"]),F("design:type",String)],rs.prototype,"renderComponent",void 0);_([z(),D({field_type:B.FORM,label:"Item Properties",description:"Additional properties to pass to each rendered item"}),W(),Y9(),F("design:type",Object)],rs.prototype,"itemProps",void 0);rs=_([Ft("CardListGrid","1.0.0")],rs);let li=class extends mr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disable the theme switcher button"}),W(),Bt(),F("design:type",Boolean)],li.prototype,"disabled",void 0);_([z({defaultValue:"medium"}),D({field_type:B.SELECT,label:"Button Size",description:"Size of the theme switcher button"}),W(),ae(),Ue(["small","medium","large"]),F("design:type",String)],li.prototype,"size",void 0);_([z(),D({field_type:B.TEXT,label:"Custom Tooltip",description:"Custom tooltip text override",placeholder:"Current theme: Light"}),W(),ae(),F("design:type",String)],li.prototype,"tooltipText",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Tooltip",description:"Show tooltip on hover"}),W(),Bt(),F("design:type",Boolean)],li.prototype,"showTooltip",void 0);_([z({defaultValue:"bottom"}),D({field_type:B.SELECT,label:"Menu Position",description:"Position of the theme selection menu"}),W(),ae(),Ue(["bottom","top","left","right"]),F("design:type",String)],li.prototype,"menuPosition",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Light Theme",description:"Show light theme option in menu"}),W(),Bt(),F("design:type",Boolean)],li.prototype,"showLightTheme",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Dark Theme",description:"Show dark theme option in menu"}),W(),Bt(),F("design:type",Boolean)],li.prototype,"showDarkTheme",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show System Theme",description:"Show system theme option in menu"}),W(),Bt(),F("design:type",Boolean)],li.prototype,"showSystemTheme",void 0);li=_([Ft("ThemeSwitcher","1.0.0")],li);var zV=li;function H2({disabled:e=!1,size:t="medium",tooltipText:r,showTooltip:n=!0,menuPosition:o="bottom",showLightTheme:a=!0,showDarkTheme:c=!0,showSystemTheme:u=!0,...d}){const{styleProps:f,htmlProps:h}=In(d),{currentTheme:v,actualThemeMode:m,setPreferredTheme:y}=PT(),[x,w]=b.useState(null),C=!!x,P=H=>{e||w(H.currentTarget)},k=()=>{w(null)},I=H=>{e||(y(H),k())},T=()=>{switch(m){case"dark":return l.jsx(qS,{});case"light":return l.jsx(wf,{});default:return l.jsx(wf,{})}},M=()=>r||(e?"Theme switcher disabled":`Current theme: ${v==="system"?`System (${m})`:v.charAt(0).toUpperCase()+v.slice(1)}`),R=()=>{switch(o){case"top":return{vertical:"top",horizontal:"right"};case"left":return{vertical:"bottom",horizontal:"left"};case"right":return{vertical:"bottom",horizontal:"right"};default:return{vertical:"bottom",horizontal:"right"}}},L=()=>{switch(o){case"top":return{vertical:"bottom",horizontal:"right"};case"left":return{vertical:"top",horizontal:"right"};case"right":return{vertical:"top",horizontal:"left"};default:return{vertical:"top",horizontal:"right"}}};if(!a&&!c&&!u)return l.jsx(_r,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsx(pe,{variant:"body2",color:"error",children:"Error: No theme options enabled"})});const A=l.jsxs("span",{suppressHydrationWarning:!0,children:[l.jsx(Qt,{...h,onClick:P,disabled:e,size:t,"aria-label":"theme switcher","aria-controls":C?"theme-menu":void 0,"aria-haspopup":"true","aria-expanded":C?"true":void 0,suppressHydrationWarning:!0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"},"&:disabled":{color:"var(--theme-disabled, rgba(0, 0, 0, 0.26))"},...f.sx},className:f.className,children:T()}),l.jsxs(Mh,{id:"theme-menu",anchorEl:x,open:C,onClose:k,slotProps:{paper:{"aria-labelledby":"theme-button"}},anchorOrigin:R(),transformOrigin:L(),children:[a&&l.jsxs(Sr,{onClick:()=>I("light"),selected:v==="light",children:[l.jsx(xf,{children:l.jsx(wf,{fontSize:"small"})}),l.jsx(bf,{children:"Light"})]}),c&&l.jsxs(Sr,{onClick:()=>I("dark"),selected:v==="dark",children:[l.jsx(xf,{children:l.jsx(qS,{fontSize:"small"})}),l.jsx(bf,{children:"Dark"})]}),u&&l.jsxs(Sr,{onClick:()=>I("system"),selected:v==="system",children:[l.jsx(xf,{children:l.jsx(SB,{fontSize:"small"})}),l.jsx(bf,{children:"System"})]})]})]});return n?l.jsx(fr,{title:M(),children:A}):A}function Gk(e){const{dataSource:t,bindingOptions:r,...n}=e,o=Fi(t||"",n,zV.getSchema(),{...r});if(!t)return l.jsx(H2,{...n});const{loading:a,error:c,...u}=o;return a?l.jsx(Qt,{disabled:!0,size:"medium",children:l.jsx(wf,{})}):c?(console.error("Error loading theme switcher:",c),l.jsx(_r,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsxs(pe,{variant:"body2",color:"error",children:["Error loading theme switcher: ",c.message]})})):l.jsx(H2,{...u})}Gk[Bn]=!0;const z0=b.createContext(null);function DV({children:e}){const t=Ev(),r=Cv(),n=a=>{(typeof a=="string"||typeof a=="number")&&t(a)},o=r?{pathname:r.pathname,search:r.search,hash:r.hash}:typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return l.jsx(z0.Provider,{value:{navigate:n,location:o},children:e})}function FV({children:e}){const t=n=>{typeof window>"u"||(typeof n=="string"?window.location.href=n:typeof n=="number"&&window.history.go(n))},r=typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return l.jsx(z0.Provider,{value:{navigate:t,location:r},children:e})}function HV({children:e}){return fd()?l.jsx(DV,{children:e}):l.jsx(FV,{children:e})}function Xk(){const e=b.useContext(z0);if(!e)throw new Error("useNavigation must be used within a NavigationProvider. Make sure your component is wrapped in QwickApp or NavigationProvider.");return e}let ns=class extends mr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disable the palette switcher button"}),W(),Bt(),F("design:type",Boolean)],ns.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Button Size",description:"Size of the palette switcher button",placeholder:"medium"}),W(),ae(),F("design:type",String)],ns.prototype,"buttonSize",void 0);_([z(),D({field_type:B.TEXT,label:"Tooltip Text",description:"Custom tooltip text for the palette switcher",placeholder:"Switch color palette"}),W(),ae(),F("design:type",String)],ns.prototype,"tooltipText",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Active Badge",description:'Show "Active" badge on currently selected palette'}),W(),Bt(),F("design:type",Boolean)],ns.prototype,"showActiveBadge",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Descriptions",description:"Show palette descriptions in menu items"}),W(),Bt(),F("design:type",Boolean)],ns.prototype,"showDescriptions",void 0);ns=_([Ft("PaletteSwitcher","1.0.0")],ns);var VV=ns;function V2({disabled:e=!1,buttonSize:t="medium",tooltipText:r,showActiveBadge:n=!0,showDescriptions:o=!0,...a}){const{styleProps:c,htmlProps:u}=In(a),{currentPalette:d,setPreferredPalette:f,availablePalettes:h}=kT(),[v,m]=b.useState(null),y=!!v,x=T=>{m(T.currentTarget)},w=()=>{m(null)},C=T=>{f(T),w()},P=T=>{const M=T.id===d;return l.jsx(L7,{fontSize:"small",sx:{color:T.primaryColor,filter:M?"drop-shadow(0 0 3px currentColor) brightness(1.2)":"none",transform:M?"scale(1.1)":"scale(1)",transition:"all 0.2s ease-in-out"}})},k=()=>h.find(T=>T.id===d)||h[0];if(!h||h.length===0)return l.jsx(_r,{...u,...c,variant:"outlined",sx:{p:2,textAlign:"center",opacity:.6,...c.sx},children:l.jsx(pe,{variant:"body2",color:"text.secondary",children:"No color palettes available"})});const I=`Switch color palette (current: ${k().name})`;return l.jsxs(ne,{...u,...c,children:[l.jsx(fr,{title:r||I,children:l.jsx(Qt,{onClick:x,disabled:e,size:t,"aria-label":"palette switcher","aria-controls":y?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"}},children:l.jsx(dB,{})})}),l.jsx(Mh,{id:"palette-menu",anchorEl:v,open:y,onClose:w,slotProps:{paper:{"aria-labelledby":"palette-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:h.map(T=>l.jsxs(Sr,{onClick:()=>C(T.id),selected:d===T.id,sx:{"&:hover":{backgroundColor:"action.hover"},"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.selected"}}},children:[l.jsx(xf,{children:P(T)}),l.jsx(bf,{primary:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[T.name,n&&d===T.id&&l.jsx(ne,{component:"span",sx:{fontSize:"0.75rem",px:1,py:.25,borderRadius:1,backgroundColor:"primary.main",color:"primary.contrastText"},children:"Active"})]}),secondary:o?T.description:void 0})]},T.id))})]})}function Kk(e){const{dataSource:t,bindingOptions:r,...n}=e,o=Fi(t||"",n,VV.getSchema(),{...r});if(!t)return l.jsx(V2,{...n});const{loading:a,error:c,...u}=o;return a?l.jsxs(_r,{variant:"outlined",sx:{p:2,textAlign:"center"},children:[l.jsx(pe,{variant:"body2",children:"Loading PaletteSwitcher..."}),l.jsx(pe,{variant:"caption",color:"text.secondary",children:"Loading palette switcher from data source..."})]}):c?(console.error("Error loading palette switcher:",c),l.jsx(_r,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsxs(pe,{variant:"body2",color:"error",children:["Error loading palette switcher: ",c.message]})})):l.jsx(V2,{...u})}Kk[Bn]=!0;function Nu({children:e,PaperProps:t,...r}){return l.jsx(Jv,{...r,PaperProps:{...t,sx:{backgroundColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:"var(--theme-border-radius, 8px)",...t==null?void 0:t.sx}},children:e})}function $u({children:e,sx:t,...r}){return l.jsx(t0,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",borderBottom:"1px solid var(--theme-border)",...t},children:e})}function Bu({children:e,sx:t,...r}){return l.jsx(e0,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",...t},children:e})}function zu({children:e,sx:t,...r}){return l.jsx(Zv,{...r,sx:{backgroundColor:"var(--theme-surface)",borderTop:"1px solid var(--theme-border)",padding:"16px 24px",...t},children:e})}const Qk=Lt.forwardRef((e,t)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=In(e),{label:c,value:u,onChange:d,onChangeRaw:f,type:h="text",helperText:v,required:m=!1,readOnly:y=!1,disabled:x=!1,disabledColor:w,fullWidth:C=!0,multiline:P=!1,rows:k,placeholder:I,startAdornment:T,endAdornment:M,inputProps:R}=a,L=Lt.useId(),A=j=>{if(f){f(j);return}if(d){const q=h==="number"?parseInt(j.target.value)||0:j.target.value;d(q)}},H={p:1,pl:1.6,mt:3,color:x&&w?w:y?"var(--theme-text-secondary)":"var(--theme-text-primary)",backgroundColor:y?"var(--theme-surface-variant)":"transparent",borderRadius:1,"&.Mui-disabled":w?{color:w,WebkitTextFillColor:w}:void 0,"& input.Mui-disabled":w?{color:w,WebkitTextFillColor:w}:void 0,...n.sx},G={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},$={color:"var(--theme-secondary)"};return l.jsxs(_i,{ref:t,fullWidth:C,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l.jsx(Ga,{htmlFor:L,sx:G,shrink:!0,children:c}),l.jsx(Ih,{id:L,type:h,value:u,onChange:A,readOnly:y,disabled:x,required:m,multiline:P,rows:k,placeholder:I,inputProps:R,sx:H,startAdornment:T?l.jsx(Bf,{position:"start",children:T}):void 0,endAdornment:M?l.jsx(Bf,{position:"end",children:M}):void 0}),v&&l.jsx(wc,{sx:$,children:v})]})});Qk.displayName="FormField";Qk[Bn]=!0;const Yk=Lt.forwardRef((e,t)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=In(e),{label:c,value:u,onChange:d,options:f,helperText:h,required:v=!1,disabled:m=!1,fullWidth:y=!0,size:x="small",placeholder:w}=a,C=T=>{d(T.target.value)},P={p:1,pl:1.6,...c?{mt:1,color:"var(--theme-text-primary)"}:{},backgroundColor:"var(--theme-surface-variant)",borderColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:1,...n.sx},k={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},I={color:"var(--theme-secondary)"};return l.jsxs(_i,{ref:t,fullWidth:y,size:x,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[c&&l.jsx(Ga,{sx:k,shrink:!0,children:c}),l.jsxs(aa,{value:u,onChange:C,disabled:m,required:v,displayEmpty:!!w,sx:P,children:[w&&l.jsx(Sr,{value:"",disabled:!0,children:w}),f.map(T=>l.jsx(Sr,{value:T.value,children:T.label},T.value))]}),h&&l.jsx(wc,{sx:I,children:h})]})});Yk.displayName="FormSelect";Yk[Bn]=!0;const Jk=Lt.forwardRef((e,t)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=In(e),{label:c,checked:u,onChange:d,helperText:f,required:h=!1,disabled:v=!1}=a,m=C=>{d(C.target.checked)},y={color:"var(--theme-primary)","&.Mui-checked":{color:"var(--theme-primary)"},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}},x={color:"var(--theme-text-primary)","& .MuiFormControlLabel-label":{color:"var(--theme-text-primary)"},"& .MuiFormControlLabel-label.Mui-disabled":{color:"var(--theme-text-disabled)"},...n.sx},w={color:"var(--theme-secondary)",marginLeft:"32px"};return l.jsxs(_i,{ref:t,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l.jsx(Ba,{control:l.jsx(aL,{checked:u,onChange:m,required:h,disabled:v,sx:y}),label:c,sx:x}),f&&l.jsx(wc,{sx:w,children:f})]})});Jk.displayName="FormCheckbox";Jk[Bn]=!0;const Zk=Lt.forwardRef((e,t)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=In(e),{provider:c,siteKey:u,onVerify:d,onExpire:f,onError:h,theme:v="light",size:m="normal",action:y="submit"}=a,x=b.useRef(null),w=b.useRef(null),[C,P]=b.useState(!1),[k,I]=b.useState(null);return b.useEffect(()=>{(()=>{if((()=>{switch(c){case"recaptcha-v2":case"recaptcha-v3":return!!window.grecaptcha;case"hcaptcha":return!!window.hcaptcha;case"turnstile":return!!window.turnstile;default:return!1}})()){P(!0);return}const L=(()=>{switch(c){case"recaptcha-v2":return"https://www.google.com/recaptcha/api.js?render=explicit";case"recaptcha-v3":return`https://www.google.com/recaptcha/api.js?render=${u}`;case"hcaptcha":return"https://js.hcaptcha.com/1/api.js?render=explicit";case"turnstile":return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";default:return""}})();if(!L){I("Unsupported CAPTCHA provider");return}const A=document.createElement("script");return A.src=L,A.async=!0,A.defer=!0,A.onload=()=>{P(!0)},A.onerror=()=>{I("Failed to load CAPTCHA script"),h==null||h(new Error("Failed to load CAPTCHA script"))},document.head.appendChild(A),()=>{document.head.removeChild(A)}})()},[c,u,h]),b.useEffect(()=>{if(!C||!x.current)return;const M=setTimeout(()=>{try{switch(c){case"recaptcha-v2":window.grecaptcha&&window.grecaptcha.render&&(w.current=window.grecaptcha.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("reCAPTCHA error");I(R.message),h==null||h(R)},theme:v,size:m}));break;case"recaptcha-v3":window.grecaptcha&&window.grecaptcha.execute&&window.grecaptcha.execute(u,{action:y}).then(R=>{d(R)}).catch(R=>{I(R.message),h==null||h(R)});break;case"hcaptcha":window.hcaptcha&&window.hcaptcha.render&&(w.current=window.hcaptcha.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("hCaptcha error");I(R.message),h==null||h(R)},theme:v,size:m==="normal"?"normal":"compact"}));break;case"turnstile":window.turnstile&&window.turnstile.render&&(w.current=window.turnstile.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("Turnstile error");I(R.message),h==null||h(R)},theme:v,size:m==="compact"?"compact":"normal"}));break}}catch(R){const L=R instanceof Error?R:new Error("Failed to render CAPTCHA");I(L.message),h==null||h(L)}},100);return()=>{var R,L,A;if(clearTimeout(M),w.current!==null)try{switch(c){case"recaptcha-v2":(R=window.grecaptcha)==null||R.reset(w.current);break;case"hcaptcha":(L=window.hcaptcha)==null||L.remove(w.current);break;case"turnstile":(A=window.turnstile)==null||A.remove(w.current);break}}catch{}}},[C,c,u,d,f,h,v,m,y]),c==="recaptcha-v3"?null:l.jsxs(ne,{ref:t,...o,sx:{my:2,...n.sx},...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[k&&l.jsx(Kt,{severity:"error",sx:{mb:2},children:k}),l.jsx("div",{ref:x})]})});Zk.displayName="Captcha";Zk[Bn]=!0;const ej=Lt.forwardRef((e,t)=>{var T;const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=In(e),{placeholder:c,value:u,defaultValue:d,slotProps:f,InputLabelProps:h,InputProps:v,variant:m="outlined",...y}=a,x=u!=null&&u!==""||d!=null&&d!=="",w=!!c&&!x,C=((T=f==null?void 0:f.inputLabel)==null?void 0:T.shrink)??(h==null?void 0:h.shrink),P=C!==void 0?C:w,k={...f,inputLabel:{...(f==null?void 0:f.inputLabel)||{},...P?{shrink:!0}:{}}};let I=v||{};return m==="outlined"&&P&&c&&!x&&I.notched===void 0&&(I={...I,notched:!0}),ej[Bn]=!0,l.jsx(Rt,{ref:t,placeholder:c,value:u,defaultValue:d,variant:m,slotProps:k,InputProps:I,...y,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl}})});ej.displayName="TextField";function U2(e,t={}){const{defaultUnit:r="px",allowedUnits:n=["px","mm","cm","in","pt","pc"],allowKeywords:o=!1,fallback:a=`0${r}`}=t;if(e==null)return a;if(typeof e=="number"&&isFinite(e))return`${e}${r}`;const c=String(e).trim();return c?o&&/^(auto|inherit|initial|unset)$/.test(c)?c:/^-?\d+(\.\d+)?$/.test(c)?`${c}${r}`:new RegExp(`^-?\\d+(?:\\.\\d+)?(${n.map(d=>d.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})$`).test(c)?c:a:a}const UV=b.createContext(null);function WV(e,t,r){const{openGraph:n=!0,removeOnUnmount:o=!1}={};b.useEffect(()=>{const a=document.title;let c=!1,u=document.querySelector('meta[name="description"]');e&&document.title!==e&&(document.title=e),t&&(u||(u=document.createElement("meta"),u.name="description",document.head.appendChild(u),c=!0),u.content!==t&&(u.content=t));let d=null,f=null;return n&&(e&&(d=document.querySelector('meta[property="og:title"]'),d||(d=document.createElement("meta"),d.setAttribute("property","og:title"),document.head.appendChild(d)),d.content!==e&&(d.content=e)),t&&(f=document.querySelector('meta[property="og:description"]'),f||(f=document.createElement("meta"),f.setAttribute("property","og:description"),document.head.appendChild(f)),f.content!==t&&(f.content=t))),()=>{var h,v,m;o&&(document.title===e&&(document.title=a),t&&u&&(c||o)&&((h=u.parentNode)==null||h.removeChild(u)),n&&(d&&o&&((v=d.parentNode)==null||v.removeChild(d)),f&&o&&((m=f.parentNode)==null||m.removeChild(f))))}},[e,t,n,o])}const qV=({renderView:e,renderPrintView:t,template:r,route:n,title:o,description:a,name:c,slug:u,printConfig:d,variant:f="default",padding:h="medium",background:v="default",maxWidth:m="large",children:y,...x})=>{const{htmlProps:w,styleProps:C}=In(x),[P,k]=b.useState(!1),[I,T]=b.useState(null),M={route:n??(r!=null&&r.slug?`/${r.slug}`:void 0),title:o??(r==null?void 0:r.title)??(r==null?void 0:r.name),description:a??(r==null?void 0:r.description),name:c??(r==null?void 0:r.name),slug:u??(r==null?void 0:r.slug),printConfig:{...r==null?void 0:r.printConfig,...d}};WV(M.title,M.description);const{isPrintMode:R,printConfig:L,onViewLoading:A,onViewReady:H,triggerPrint:G}=xz(),$=b.useCallback(Y=>G({...M.printConfig,...Y}),[G,M.printConfig]);b.useLayoutEffect(()=>{R&&(P?A():H())},[R,P,A,H]),b.useEffect(()=>{if(!R)return;const Y="qwickapps-print-page-setup",Z=L,Q=Z.pageSize||"auto",X=Z.printBackground||"transparent",re=Z.printBackgroundFirstPage||X,de=document.querySelector(".page-print-header:not(.page-print-header-first-page)"),J=document.querySelector(".page-print-footer:not(.page-print-footer-first-page)"),oe=de!=null&&de.getBoundingClientRect?Math.ceil(de.getBoundingClientRect().height):0,ee=J!=null&&J.getBoundingClientRect?Math.ceil(J.getBoundingClientRect().height):0,he=oe?`${oe}px`:U2(Z.printHeaderHeight||0),Ce=ee?`${ee}px`:U2(Z.printFooterHeight||0),ye=(Ne,$e)=>`@media print{@page{size:${Q};margin:0;} .page-print-mode{--print-header-height:${Ne};--print-footer-height:${$e};--print-background:${X};--print-background-first-page:${re};}}`;let ce=document.getElementById(Y);ce||(ce=document.createElement("style"),ce.id=Y,document.head.appendChild(ce)),ce.textContent=ye(he,Ce);let Fe=null;window.ResizeObserver&&(Fe=new ResizeObserver(()=>{const Ne=de!=null&&de.getBoundingClientRect?Math.ceil(de.getBoundingClientRect().height):0,$e=J!=null&&J.getBoundingClientRect?Math.ceil(J.getBoundingClientRect().height):0,Me=ye(Ne?`${Ne}px`:he,$e?`${$e}px`:Ce);ce&&ce.textContent!==Me&&(ce.textContent=Me)}),de&&Fe.observe(de),J&&Fe.observe(J));const Le=()=>{const Ne=document.getElementById(Y);Ne!=null&&Ne.parentNode&&Ne.parentNode.removeChild(Ne),Fe==null||Fe.disconnect()};return window.addEventListener("afterprint",Le,{once:!0}),()=>{window.removeEventListener("afterprint",Le),Le()}},[R,L]);const{location:j}=Xk(),q=M.route||(j==null?void 0:j.pathname)||"",V=b.useMemo(()=>({route:q,isPrintMode:R,printConfig:L,triggerPrint:$,setLoading:k,setError:T,isLoading:P,error:I}),[q,R,L,$,P,I]),O=["page",`page-variant-${f}`,`page-padding-${h}`,`page-background-${v}`,`page-max-width-${m}`,R&&"page-print-mode",R&&L.pageMargins==="0mm"&&"page-print-borderless",R&&L.pageMargins==="6mm"&&"page-print-compact",R&&L.pageMargins==="20mm"&&"page-print-large",R&&L.pageMargins==="25mm"&&"page-print-formal",R&&(L.printBackground||L.printBackgroundFirstPage)&&"has-background",C.className].filter(Boolean).join(" "),U=(R?t:e)(),K=U??y;return l.jsx(UV.Provider,{value:V,children:l.jsxs(ne,{className:O,sx:C.sx,style:C.style,...w,children:[R&&L.printHeader&&l.jsx("div",{className:"page-print-header",children:typeof L.printHeader=="string"?l.jsx(bo,{html:ku`${L.printHeader}`}):L.printHeader}),R&&L.printHeaderFirstPage&&l.jsx("div",{className:"page-print-header page-print-header-first-page",children:typeof L.printHeaderFirstPage=="string"?l.jsx(bo,{html:ku`${L.printHeaderFirstPage}`}):L.printHeaderFirstPage}),R&&!L.printHeader&&L.printTitle&&l.jsxs("div",{className:"page-print-header",children:[l.jsx("h1",{children:L.printTitle}),L.showPrintDate&&l.jsxs("div",{className:"page-print-date",children:["Printed on: ",new Date().toLocaleString()]})]}),M.name&&M.name!==M.title&&l.jsx("div",{className:"page-heading",children:l.jsx("h1",{children:M.name})}),l.jsx("div",{className:"page-content",children:K}),R&&L.printFooter&&l.jsx("div",{className:"page-print-footer",children:typeof L.printFooter=="string"?l.jsx(bo,{html:ku`${L.printFooter}`}):L.printFooter}),R&&L.printFooterFirstPage&&l.jsx("div",{className:"page-print-footer page-print-footer-first-page",children:typeof L.printFooterFirstPage=="string"?l.jsx(bo,{html:ku`${L.printFooterFirstPage}`}):L.printFooterFirstPage})]})})};class uq extends Lt.Component{getPageProps(){return{}}renderView(){return this.props.children}renderPrintView(){return this.renderView()}render(){const t={...this.props,...this.getPageProps()};return l.jsx(qV,{...t,renderView:()=>this.renderView(),renderPrintView:()=>this.renderPrintView()})}}const bi=HB.scaffold,W2={mobile:600,tablet:1024},GV=({children:e,navigationItems:t=[],appBar:r,className:n="",showAppBar:o=!0,appBarHeight:a=64,appName:c,showThemeSwitcher:u=!1,showPaletteSwitcher:d=!1,onLogoClick:f})=>{const[h,v]=b.useState("desktop"),[m,y]=b.useState(!1),[x,w]=b.useState(!1),[C,P]=b.useState(!1),{navigate:k,location:I}=Xk(),T=C?I==null?void 0:I.pathname:void 0;Lt.useEffect(()=>{T&&bi.debug("Current path changed to:",T)},[T]),b.useEffect(()=>{P(!0)},[]);const{appName:M,logo:R}=m0(),L=c||M;b.useEffect(()=>{const Q=()=>{const X=window.innerWidth;X<W2.mobile?v("mobile"):X<=W2.tablet?v("tablet"):v("desktop")};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const A=[...t].sort((Q,X)=>(Q.priority||999)-(X.priority||999)),H=()=>{switch(h){case"mobile":{const Q=A.slice(0,5),X=A.slice(5);return{primaryItems:Q,drawerItems:X}}case"tablet":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}case"desktop":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}default:return{primaryItems:A,drawerItems:[]}}},{primaryItems:G,drawerItems:$}=H(),j=Lt.useMemo(()=>{const Q=r||{};return{...Q,title:Q.title||L,actions:Q.actions}},[r,L]),q=(j==null?void 0:j.logo)||R||l.jsx(Nh,{name:(j==null?void 0:j.title)||L,size:"small"}),V=()=>{y(!m)},O=()=>{w(!x)},U=(Q,X="appbar")=>{const re=Q.active||Q.route&&T===Q.route||!Q.active&&!Q.route&&T&&T===`/${Q.id}`;Q.route&&bi.debug(`Route matching for ${Q.id}: ${T} === ${Q.route} = ${re}`);const de=()=>{if(Q.disabled)return;if(re&&Q.route===T){bi.debug(`Navigation prevented: Already on route ${Q.route}`);return}if(Q.onClick)try{Q.onClick()}catch(ye){bi.error("Menu item onClick error:",ye)}else if(Q.route)try{if(bi.debug(`Navigating from ${T} to ${Q.route}`),T&&T===Q.route){bi.debug("Final check: Same route detected, skipping navigation");return}k(Q.route)}catch(ye){const ce=ye instanceof Error?ye.message:"Unknown error";if(bi.error("Navigation error caught:",ye),bi.error("Navigation context:",{from:T,to:Q.route,isActiveItem:re,itemId:Q.id,errorMessage:ce}),Q.route&&Q.route!==T)try{bi.debug("Attempting fallback navigation using window.location"),window.location.pathname=Q.route}catch(Fe){bi.error("Fallback navigation also failed:",Fe)}}},J=X!=="drawer";let oe=null;Q.icon?typeof Q.icon=="string"?oe=Zy(Q.icon)||(J?l.jsx(KS,{}):null):oe=Q.icon:J&&(oe=l.jsx(KS,{}));const ee=l.jsxs(l.Fragment,{children:[oe&&l.jsx("span",{className:`menu-item-icon menu-item-icon-${X}`,children:oe}),l.jsx("span",{className:`menu-item-label menu-item-label-${X}`,children:Q.label}),Q.badge&&l.jsx("span",{className:"menu-item-badge",children:Q.badge})]}),he={className:`menu-item menu-item-${X} ${re?"active":""} ${Q.disabled?"disabled":""}`,"aria-label":Q.label,"aria-current":re?"page":void 0,onClick:Q.disabled?void 0:de};return Q.href&&!Q.disabled?l.jsx("a",{href:Q.href,...he,target:"_blank",rel:"noopener noreferrer",children:ee}):l.jsx("button",{type:"button",...he,disabled:!!(Q.disabled||re&&Q.route===T),children:ee})},Y=(()=>{const Q=h==="mobile"?16:h==="tablet"?24:32,X=Q+(o?a:0),re=Q+(h==="mobile"?80:0),de=Q+(h==="tablet"?x?280:80:0);return{paddingTop:X,paddingBottom:re,paddingLeft:de,paddingRight:Q}})(),Z=()=>l.jsx("div",{className:"appbar-logo",onClick:f,style:{cursor:f?"pointer":"default"},children:q});return l.jsxs("div",{className:`app-scaffold ${n}`,children:[o&&l.jsx("header",{className:"app-scaffold-appbar",style:{height:a},children:l.jsxs("div",{className:"appbar-content",children:[l.jsxs("div",{className:"appbar-left",children:[($.length>0||h==="tablet")&&l.jsx("button",{type:"button",className:"menu-button",onClick:h==="tablet"?O:V,"aria-label":h==="tablet"?"Toggle navigation rail":"Open drawer menu",children:l.jsxs("span",{className:"hamburger-icon",children:[l.jsx("span",{},"hamburger-line-1"),l.jsx("span",{},"hamburger-line-2"),l.jsx("span",{},"hamburger-line-3")]})},"menu-button"),(!(j!=null&&j.logoPosition)||j.logoPosition==="left")&&l.jsx(Z,{},"app-logo-left")]}),l.jsxs("div",{className:"appbar-center",children:[(j==null?void 0:j.logoPosition)==="center"&&l.jsx(Z,{},"app-logo-center"),h==="desktop"&&l.jsx("nav",{className:"appbar-navigation",children:G.map(Q=>l.jsx(Lt.Fragment,{children:U(Q,"appbar")},Q.id))},"desktop-navigation")]}),l.jsxs("div",{className:"appbar-right",children:[(j==null?void 0:j.actions)&&l.jsx("div",{className:"appbar-actions",children:j.actions},"appbar-actions"),l.jsxs("div",{className:"appbar-theme-controls",children:[u&&l.jsx(Gk,{},"theme-switcher"),d&&l.jsx(Kk,{},"palette-switcher")]},"appbar-theme-controls")]})]})}),h==="tablet"&&l.jsx("nav",{className:`navigation-rail ${x?"expanded":"collapsed"}`,children:l.jsx("div",{className:"rail-items",children:G.map(Q=>l.jsx(Lt.Fragment,{children:U(Q,"rail")},Q.id))})}),h==="mobile"&&G.length>0&&l.jsx("nav",{className:"bottom-navigation",children:l.jsx("div",{className:"bottom-nav-items",children:G.map(Q=>l.jsx(Lt.Fragment,{children:U(Q,"bottom")},Q.id))})}),m&&$.length>0&&l.jsx("div",{className:"drawer-overlay",onClick:V,children:l.jsxs("nav",{className:"navigation-drawer",onClick:Q=>Q.stopPropagation(),children:[l.jsxs("div",{className:"drawer-header",children:[l.jsx("h3",{children:"Menu"},"drawer-title"),l.jsx("button",{type:"button",className:"drawer-close",onClick:V,"aria-label":"Close drawer",children:"×"},"drawer-close-button")]}),l.jsxs("div",{className:"drawer-items",children:[l.jsxs("div",{className:"drawer-section",children:[l.jsx("h4",{children:"Navigation"},"navigation-header"),G.map(Q=>l.jsx(Lt.Fragment,{children:U(Q,"drawer")},Q.id))]}),$.length>0&&l.jsxs("div",{className:"drawer-section",children:[l.jsx("h4",{children:"More"},"more-header"),$.map(Q=>l.jsx(Lt.Fragment,{children:U(Q,"drawer")},Q.id))]})]})]})}),l.jsx("main",{className:"app-scaffold-content",style:{paddingTop:`${Y.paddingTop}px`,paddingBottom:`${Y.paddingBottom}px`,paddingLeft:`${Y.paddingLeft}px`,paddingRight:`${Y.paddingRight}px`},children:e})]})};class XV extends b.Component{constructor(t){super(t),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.handleRefresh=()=>{typeof window<"u"&&window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t,errorInfo:null}}componentDidCatch(t,r){var n;this.setState({error:t,errorInfo:r}),console.error("ErrorBoundary caught an error:",t,r),this.props.onError&&this.props.onError(t,r),typeof window<"u"&&(n=window.qwickapps)!=null&&n.logError&&window.qwickapps.logError(t,r)}render(){var t;return this.state.hasError?this.props.fallback?this.props.fallback:l.jsxs("div",{className:"error-boundary",role:"alert",style:{padding:"2rem",textAlign:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",margin:"1rem",color:"#991b1b"},children:[l.jsxs("div",{style:{marginBottom:"1.5rem"},children:[l.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",marginBottom:"0.5rem",color:"#991b1b"},children:"Something went wrong"}),l.jsx("p",{style:{color:"#7f1d1d",marginBottom:"1rem"},children:"An unexpected error occurred in the application. Please try again or refresh the page."})]}),l.jsxs("div",{style:{display:"flex",gap:"0.75rem",justifyContent:"center",marginBottom:"1rem"},children:[l.jsx(Nr,{variant:"contained",onClick:this.handleRetry,children:"Try Again"}),l.jsx(Nr,{variant:"outlined",onClick:this.handleRefresh,children:"Refresh Page"})]}),this.state.error&&l.jsxs("details",{style:{textAlign:"left",marginTop:"1rem",padding:"1rem",backgroundColor:"#f9fafb",border:"1px solid #d1d5db",borderRadius:"6px"},children:[l.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold",marginBottom:"0.5rem",color:"#374151"},children:"Error Details (Development Mode)"}),l.jsxs("pre",{style:{fontSize:"0.75rem",color:"#374151",whiteSpace:"pre-wrap",overflow:"auto"},children:[this.state.error.toString(),((t=this.state.errorInfo)==null?void 0:t.componentStack)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("br",{}),"Component Stack:",this.state.errorInfo.componentStack]})]})]})]}):this.props.children}}const KV=b.createContext(null),QV=(e,t)=>{switch(t.type){case"SET_HIGH_CONTRAST":return{...e,highContrast:t.payload};case"SET_REDUCED_MOTION":return{...e,reducedMotion:t.payload};case"SET_LARGE_TEXT":return{...e,largeText:t.payload};case"SET_FOCUS_VISIBLE":return{...e,focusVisible:t.payload};case"SET_KEYBOARD_USER":return{...e,isKeyboardUser:t.payload};case"ADD_ISSUE":return{...e,issues:[...e.issues,t.payload]};case"CLEAR_ISSUES":return{...e,issues:[]};case"SET_ANNOUNCEMENT":return{...e,lastAnnouncement:t.payload};default:return e}},YV={highContrast:!1,reducedMotion:!1,largeText:!1,focusVisible:!0,isKeyboardUser:!1,issues:[],lastAnnouncement:null,preferences:{}};class JV{constructor(){this.politeRegion=null,this.assertiveRegion=null,this.createLiveRegions()}createLiveRegions(){typeof document>"u"||(this.politeRegion=document.createElement("div"),this.politeRegion.setAttribute("aria-live","polite"),this.politeRegion.setAttribute("aria-atomic","true"),this.politeRegion.setAttribute("id","qwickapps-aria-live-polite"),this.politeRegion.style.cssText=`
|
|
383
|
+
position: absolute !important;
|
|
384
|
+
left: -10000px !important;
|
|
385
|
+
width: 1px !important;
|
|
386
|
+
height: 1px !important;
|
|
387
|
+
overflow: hidden !important;
|
|
388
|
+
`,document.body.appendChild(this.politeRegion),this.assertiveRegion=document.createElement("div"),this.assertiveRegion.setAttribute("aria-live","assertive"),this.assertiveRegion.setAttribute("aria-atomic","true"),this.assertiveRegion.setAttribute("id","qwickapps-aria-live-assertive"),this.assertiveRegion.style.cssText=`
|
|
389
|
+
position: absolute !important;
|
|
390
|
+
left: -10000px !important;
|
|
391
|
+
width: 1px !important;
|
|
392
|
+
height: 1px !important;
|
|
393
|
+
overflow: hidden !important;
|
|
394
|
+
`,document.body.appendChild(this.assertiveRegion))}announce(t,r="polite"){r==="assertive"?this.announceAssertive(t):this.announcePolite(t)}announcePolite(t){this.politeRegion&&(this.politeRegion.textContent="",setTimeout(()=>{this.politeRegion&&(this.politeRegion.textContent=t)},100))}announceAssertive(t){this.assertiveRegion&&(this.assertiveRegion.textContent="",setTimeout(()=>{this.assertiveRegion&&(this.assertiveRegion.textContent=t)},100))}}const iy=new JV,ZV=({children:e,enableAudit:t=!0})=>{const[r,n]=b.useReducer(QV,YV);b.useEffect(()=>{o();const f=a();return c(),t&&u(),()=>{f&&f()}},[t]);const o=()=>{if(!(typeof window>"u")&&(window.matchMedia&&window.matchMedia("(prefers-contrast: high)").matches&&n({type:"SET_HIGH_CONTRAST",payload:!0}),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&n({type:"SET_REDUCED_MOTION",payload:!0}),window.matchMedia)){const f=window.matchMedia("(prefers-contrast: high)"),h=window.matchMedia("(prefers-reduced-motion: reduce)"),v=y=>{n({type:"SET_HIGH_CONTRAST",payload:y.matches})},m=y=>{n({type:"SET_REDUCED_MOTION",payload:y.matches})};return f.addEventListener("change",v),h.addEventListener("change",m),()=>{f.removeEventListener("change",v),h.removeEventListener("change",m)}}},a=()=>{if(typeof document>"u")return;let f=!1;const h=m=>{m.key==="Tab"&&(f=!0,n({type:"SET_KEYBOARD_USER",payload:!0}),document.body.classList.add("keyboard-user"))},v=()=>{f&&(f=!1,n({type:"SET_KEYBOARD_USER",payload:!1}),document.body.classList.remove("keyboard-user"))};return document.addEventListener("keydown",h),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("mousedown",v)}},c=()=>{if(typeof document>"u")return;const f=document.createElement("style");f.textContent=`
|
|
395
|
+
.keyboard-user *:focus {
|
|
396
|
+
outline: 3px solid #005cee !important;
|
|
397
|
+
outline-offset: 2px !important;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.high-contrast *:focus {
|
|
401
|
+
outline: 3px solid #ffffff !important;
|
|
402
|
+
outline-offset: 2px !important;
|
|
403
|
+
box-shadow: 0 0 0 1px #000000 !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.reduced-motion * {
|
|
407
|
+
animation-duration: 0.01ms !important;
|
|
408
|
+
animation-iteration-count: 1 !important;
|
|
409
|
+
transition-duration: 0.01ms !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.large-text {
|
|
413
|
+
font-size: 1.2em !important;
|
|
414
|
+
}
|
|
415
|
+
`,document.head.appendChild(f)},u=()=>{typeof document>"u"||setTimeout(()=>{const f=[];document.querySelectorAll("img:not([alt])").forEach(y=>{f.push({type:"missing-alt-text",message:"Image missing alt attribute",level:"error",element:y})}),document.querySelectorAll("button:not([aria-label]):not([title])").forEach(y=>{var x;(x=y.textContent)!=null&&x.trim()||f.push({type:"unnamed-button",message:"Button missing accessible name",level:"error",element:y})}),document.querySelectorAll("input:not([aria-label]):not([title])").forEach(y=>{const x=y.getAttribute("id");x?document.querySelector(`label[for="${x}"]`)||f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y}):f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y})}),n({type:"CLEAR_ISSUES"}),f.forEach(y=>{n({type:"ADD_ISSUE",payload:y})}),f.length>0&&(console.group("🔍 Accessibility Issues Found"),f.forEach(y=>{(y.level==="error"?console.error:console.warn)(`${y.type}: ${y.message}`)}),console.groupEnd())},1e3)},d={...r,setHighContrast:f=>n({type:"SET_HIGH_CONTRAST",payload:f}),setReducedMotion:f=>n({type:"SET_REDUCED_MOTION",payload:f}),setLargeText:f=>n({type:"SET_LARGE_TEXT",payload:f}),setFocusVisible:f=>n({type:"SET_FOCUS_VISIBLE",payload:f}),announce:(f,h="polite")=>{iy.announce(f,h),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:h,timestamp:Date.now()}})},announcePolite:f=>{iy.announcePolite(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"polite",timestamp:Date.now()}})},announceAssertive:f=>{iy.announceAssertive(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"assertive",timestamp:Date.now()}})},addIssue:f=>n({type:"ADD_ISSUE",payload:f}),clearIssues:()=>n({type:"CLEAR_ISSUES"}),runAudit:u};return b.useEffect(()=>{if(typeof document>"u")return;const{highContrast:f,reducedMotion:h,largeText:v}=r;document.body.classList.toggle("high-contrast",f),document.body.classList.toggle("reduced-motion",h),document.body.classList.toggle("large-text",v)},[r.highContrast,r.reducedMotion,r.largeText]),l.jsx(KV.Provider,{value:d,children:e})},eU=({children:e,className:t,style:r,defaultTheme:n,defaultPalette:o,appName:a,logo:c,appId:u,enableScaffolding:d,navigationItems:f=[],appBar:h,showAppBar:v=!0,appBarHeight:m=64,showThemeSwitcher:y,showPaletteSwitcher:x,onLogoClick:w,router:C,dataSource:P,config:k})=>{const I={appName:a??(k==null?void 0:k.app.name),appId:u??(k==null?void 0:k.app.id),logo:c??(k==null?void 0:k.app.logo),enableScaffolding:d??(k==null?void 0:k.ui.enableScaffolding)??!1,showThemeSwitcher:y??(k==null?void 0:k.ui.showThemeSwitcher)??!1,showPaletteSwitcher:x??(k==null?void 0:k.ui.showPaletteSwitcher)??!1,defaultTheme:n??(k==null?void 0:k.ui.defaultTheme),defaultPalette:o??(k==null?void 0:k.ui.defaultPalette)};if(!I.appName)throw new Error("QwickApp requires either appName prop or config with app.name");const[T,M]=b.useState({logo:I.logo,enableScaffolding:I.enableScaffolding,navigationItems:f,appBar:h,showAppBar:v,appBarHeight:m,showThemeSwitcher:I.showThemeSwitcher,showPaletteSwitcher:I.showPaletteSwitcher}),R=$=>{M(j=>({...j,...$}))};b.useEffect(()=>{I.logo!==T.logo&&M($=>({...$,logo:I.logo}))},[I.logo]);const L={appName:I.appName,appId:I.appId,...T,onLogoClick:w,updateConfig:R},A=T.enableScaffolding?l.jsx(GV,{appName:I.appName,navigationItems:T.navigationItems,appBar:T.appBar,showAppBar:T.showAppBar,appBarHeight:T.appBarHeight,showThemeSwitcher:T.showThemeSwitcher,showPaletteSwitcher:T.showPaletteSwitcher,onLogoClick:w,children:e}):e,H=P?l.jsx(UB,{dataSource:P,children:A}):A,G=l.jsx(XV,{children:l.jsx(ZV,{children:l.jsx(HV,{children:l.jsx("div",{className:`qwick-app ${t||""}`,style:r,children:l.jsx(mz,{appId:I.appId,defaultTheme:I.defaultTheme,defaultPalette:I.defaultPalette,children:l.jsx(ET.Provider,{value:L,children:l.jsx(vz,{children:H})})})})})})});return C?b.cloneElement(C,{},G):G},tU=({size:e=48,showBackground:t=!0,className:r="",style:n={}})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 225 225",className:`qwick-icon ${r}`.trim(),style:n,role:"img","aria-label":"QwickApps Icon",children:[t&&l.jsx("rect",{width:"225",height:"225",rx:"48",fill:"var(--theme-surface)"}),l.jsx("g",{transform:"scale(0.9) translate(-5,-5)",children:l.jsxs("g",{transform:"translate(-128,-60)",children:[l.jsx("path",{className:"logo-first-part",fill:"#FE6D0F",d:"M0 0 C1.3480925 -0.00788544 1.3480925 -0.00788544 2.72341919 -0.01593018 C5.67419172 -0.02905871 8.62441792 -0.02041442 11.57519531 -0.01025391 C13.64251813 -0.0122774 15.70984025 -0.01519113 17.77716064 -0.01895142 C22.10443943 -0.02336572 26.43153199 -0.01697508 30.75878906 -0.00292969 C36.2773468 0.01411856 41.79546534 0.00434284 47.31400681 -0.01364708 C51.5831018 -0.02454577 55.85209467 -0.02101006 60.12119293 -0.0132637 C62.15435082 -0.01127624 64.18751828 -0.01366927 66.22066498 -0.02070236 C76.73689794 -0.04908929 86.57929633 -0.04924466 96.65332031 3.38818359 C97.54098083 3.67795074 98.42864136 3.9677179 99.34320068 4.26626587 C114.15399949 9.31896076 126.4675764 21.76744512 133.65332031 35.38818359 C137.44514211 43.9738112 139.81630642 51.43992278 139.7668457 60.84057617 C139.76699173 61.5728241 139.76713776 62.30507202 139.76728821 63.05950928 C139.76659444 65.46727515 139.75882723 67.87496257 139.75097656 70.28271484 C139.74911048 71.95708677 139.74768747 73.63145924 139.74668884 75.30583191 C139.74287867 79.7034558 139.73306121 84.10104644 139.72198486 88.49865723 C139.71173847 92.9898229 139.70718431 97.48099397 139.70214844 101.97216797 C139.69143757 110.77752174 139.6743792 119.58284852 139.65332031 128.38818359 C138.53702723 127.43704375 137.42154262 126.48495501 136.30639648 125.5324707 C135.68512375 125.002379 135.06385101 124.47228729 134.42375183 123.9261322 C132.20679827 122.00029626 130.09344729 119.97434276 127.96582031 117.95068359 C121.3544337 111.96606452 113.93765643 107.63396094 105.65332031 104.38818359 C105.64397461 103.07736816 105.63462891 101.76655273 105.625 100.41601562 C105.58487807 95.51415049 105.51905854 90.61289839 105.44580078 85.71142578 C105.41771934 83.59724858 105.39644155 81.4829689 105.38232422 79.36865234 C105.36071633 76.31473808 105.31397548 73.26203954 105.26269531 70.20849609 C105.26085236 68.80943527 105.26085236 68.80943527 105.25897217 67.3821106 C105.05613797 58.12249123 102.35361677 49.9326592 95.65332031 43.38818359 C93.37687152 41.83978825 91.12212389 40.64502905 88.65332031 39.38818359 C88.0702562 39.02808197 87.48719208 38.66798035 86.88645935 38.29696655 C83.71010797 37.00434036 80.90937194 37.11787995 77.4855957 37.09765625 C76.41412041 37.08758041 76.41412041 37.08758041 75.32099915 37.07730103 C72.96425383 37.05833326 70.60779341 37.05439768 68.25097656 37.05224609 C66.60957218 37.04581795 64.96816895 37.03908958 63.32676697 37.03207397 C59.88782087 37.02010475 56.44897522 37.01639285 53.01000977 37.01757812 C48.60705215 37.01778144 44.20473906 36.99046492 39.80193424 36.95603371 C36.41239981 36.93377976 33.02302096 36.92974009 29.63342094 36.93079758 C28.01032729 36.9284399 26.38722945 36.91960691 24.76420784 36.90413284 C22.49249412 36.88449971 20.22217644 36.89029871 17.95043945 36.90234375 C16.65900528 36.89949371 15.36757111 36.89664368 14.03700256 36.89370728 C10.0894619 37.47058336 8.4533178 38.60386481 5.65332031 41.38818359 C4.36488826 43.96504769 4.49328598 45.87037118 4.44799805 48.75585938 C4.42805283 49.87687042 4.4081076 50.99788147 4.38755798 52.15286255 C4.36248924 53.97477615 4.36248924 53.97477615 4.33691406 55.83349609 C4.31613297 57.07364471 4.29535187 58.31379333 4.27394104 59.59152222 C4.21954326 62.88930182 4.16931936 66.18711079 4.12109375 69.48498535 C4.07086797 72.84991002 4.01524033 76.21474503 3.95996094 79.57958984 C3.85188552 86.18238589 3.75285167 92.78523103 3.65332031 99.38818359 C-7.89667969 99.38818359 -19.44667969 99.38818359 -31.34667969 99.38818359 C-31.54722373 80.32312956 -31.54722373 80.32312956 -31.59082031 72.14990234 C-31.6206242 66.58894779 -31.65574998 61.02840778 -31.72387695 55.46777344 C-31.77850048 50.98085383 -31.80816368 46.4943792 -31.8210659 42.00715256 C-31.83025168 40.30161924 -31.84818881 38.59610823 -31.87532997 36.89076614 C-32.04228479 25.95844515 -31.41983501 17.49965078 -24.17089844 8.76708984 C-23.46578125 8.16767578 -22.76066406 7.56826172 -22.03417969 6.95068359 C-21.33679688 6.33322266 -20.63941406 5.71576172 -19.92089844 5.07958984 C-13.46479327 0.83756627 -7.52553047 -0.0549708 0 0 Z",transform:"translate(185.3466796875,71.61181640625)"}),l.jsx("path",{className:"logo-second-part",fill:"#03BBCA",d:"M0 0 C11.55 0 23.1 0 35 0 C35.04125 3.25875 35.0825 6.5175 35.125 9.875 C35.47125788 19.41754586 36.68077925 25.86440869 43.74900818 32.68862915 C50.89908532 38.23277376 58.35470598 37.77209826 66.97265625 37.5859375 C68.50677317 37.57472707 70.04091178 37.56619562 71.57505798 37.56021118 C75.58524366 37.53745715 79.59409585 37.47865487 83.60375977 37.4119873 C87.70635953 37.3502711 91.80917779 37.32313407 95.91210938 37.29296875 C103.94201372 37.2288942 111.97084033 37.12668322 120 37 C117.59324168 34.57863654 115.18359847 32.1601637 112.7734375 29.7421875 C111.75527954 28.71774536 111.75527954 28.71774536 110.71655273 27.67260742 C106.8829741 23.82970702 102.99745284 20.13165615 98.8515625 16.625 C95.05012274 13.28871531 91.43825451 9.70885787 88 6 C88 5.67 88 5.34 88 5 C110.75508023 4.37644173 110.75508023 4.37644173 121 8 C122.051875 8.35191406 123.10375 8.70382813 124.1875 9.06640625 C147.22737862 17.29881571 164.80240124 33.21278198 175.41943359 55.15429688 C179.68328916 64.37125249 183.15018908 73.71312925 183.09765625 83.95703125 C183.09443359 85.06884766 183.09121094 86.18066406 183.08789062 87.32617188 C183.07951172 88.47666016 183.07113281 89.62714844 183.0625 90.8125 C183.05798828 91.98232422 183.05347656 93.15214844 183.04882812 94.35742188 C183.0370693 97.23833358 183.02063426 100.11914044 183 103 C180.55229893 100.57810948 178.13689836 98.15012289 175.81640625 95.60546875 C164.49520711 83.46019619 148.63443632 75.12990963 131.85790539 74.44966316 C128.34721591 74.38623286 124.84006559 74.37663155 121.32896042 74.40841484 C118.45052331 74.43424814 115.57348925 74.42890466 112.69497681 74.41651917 C106.58815705 74.39596309 100.48178961 74.41534647 94.375 74.4375 C87.28101821 74.45873236 80.18749777 74.46298673 73.09352493 74.43699837 C70.28119532 74.43367673 67.46978403 74.45471435 64.65756226 74.47740173 C46.51926055 74.50804771 31.73862671 70.07462761 18.28125 57.27734375 C17.5284375 56.52582031 16.775625 55.77429688 16 55 C15.02546875 54.04287109 15.02546875 54.04287109 14.03125 53.06640625 C3.06105089 41.49477078 -0.55499727 26.82435381 -0.1875 11.3125 C-0.125625 7.579375 -0.06375 3.84625 0 0 Z",transform:"translate(154,171)"})]})})]}),rU=({icon:e,name:t,size:r="small",onClick:n,style:o,className:a,...c})=>{const u=(h="small")=>({tiny:20,small:32,medium:40,large:52,"extra-large":68})[h]||32,d=e||l.jsx(tU,{}),f=b.isValidElement(d)?b.cloneElement(d,{size:d.props.size||u(r),style:{position:"relative",left:"25px",zIndex:999,...d.props.style}}):d;return l.jsx(Nh,{name:t,size:r,image:f,imagePosition:"start",style:{cursor:n?"pointer":"default",zIndex:1e3,...o},className:a,onClick:n,...c})};function tj(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let tl=tj();function nU(e){tl=e}const rj=/[&<>"']/,oU=new RegExp(rj.source,"g"),nj=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,iU=new RegExp(nj.source,"g"),aU={"&":"&","<":"<",">":">",'"':""","'":"'"},q2=e=>aU[e];function jn(e,t){if(t){if(rj.test(e))return e.replace(oU,q2)}else if(nj.test(e))return e.replace(iU,q2);return e}const sU=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function oj(e){return e.replace(sU,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const lU=/(^|[^\[])\^/g;function hr(e,t){e=typeof e=="string"?e:e.source,t=t||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(lU,"$1"),e=e.replace(n,o),r),getRegex:()=>new RegExp(e,t)};return r}const cU=/[^\w:]/g,uU=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function G2(e,t,r){if(e){let n;try{n=decodeURIComponent(oj(r)).replace(cU,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!uU.test(r)&&(r=hU(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const pf={},dU=/^[^:]+:\/*[^/]*$/,pU=/^([^:]+:)[\s\S]*$/,fU=/^([^:]+:\/*[^/]*)[\s\S]*$/;function hU(e,t){pf[" "+e]||(dU.test(e)?pf[" "+e]=e+"/":pf[" "+e]=kf(e,"/",!0)),e=pf[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(pU,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(fU,"$1")+t:e+t}const Yf={exec:function(){}};function X2(e,t){const r=e.replace(/\|/g,(a,c,u)=>{let d=!1,f=c;for(;--f>=0&&u[f]==="\\";)d=!d;return d?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function kf(e,t,r){const n=e.length;if(n===0)return"";let o=0;for(;o<n;){const a=e.charAt(n-o-1);if(a===t&&!r)o++;else if(a!==t&&r)o++;else break}return e.slice(0,n-o)}function mU(e,t){if(e.indexOf(t[1])===-1)return-1;const r=e.length;let n=0,o=0;for(;o<r;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}function gU(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function K2(e,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function Q2(e,t,r,n){const o=t.href,a=t.title?jn(t.title):null,c=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const u={type:"link",raw:r,href:o,title:a,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:o,title:a,text:jn(c)}}function yU(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(`
|
|
416
|
+
`).map(o=>{const a=o.match(/^\s+/);if(a===null)return o;const[c]=a;return c.length>=n.length?o.slice(n.length):o}).join(`
|
|
417
|
+
`)}class D0{constructor(t){this.options=t||tl}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:kf(n,`
|
|
418
|
+
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const n=r[0],o=yU(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=kf(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const a=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:a,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n,o,a,c,u,d,f,h,v,m,y,x,w=r[1].trim();const C=w.length>1,P={type:"list",raw:"",ordered:C,start:C?+w.slice(0,-1):"",loose:!1,items:[]};w=C?`\\d{1,9}\\${w.slice(-1)}`:`\\${w}`,this.options.pedantic&&(w=C?w:"[*+-]");const k=new RegExp(`^( {0,3}${w})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(x=!1,!(!(r=k.exec(t))||this.rules.block.hr.test(t)));){if(n=r[0],t=t.substring(n.length),h=r[2].split(`
|
|
419
|
+
`,1)[0].replace(/^\t+/,T=>" ".repeat(3*T.length)),v=t.split(`
|
|
420
|
+
`,1)[0],this.options.pedantic?(c=2,y=h.trimLeft()):(c=r[2].search(/[^ ]/),c=c>4?1:c,y=h.slice(c),c+=r[1].length),d=!1,!h&&/^ *$/.test(v)&&(n+=v+`
|
|
421
|
+
`,t=t.substring(v.length+1),x=!0),!x){const T=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),M=new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;t&&(m=t.split(`
|
|
422
|
+
`,1)[0],v=m,this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(R.test(v)||L.test(v)||T.test(v)||M.test(t)));){if(v.search(/[^ ]/)>=c||!v.trim())y+=`
|
|
423
|
+
`+v.slice(c);else{if(d||h.search(/[^ ]/)>=4||R.test(h)||L.test(h)||M.test(h))break;y+=`
|
|
424
|
+
`+v}!d&&!v.trim()&&(d=!0),n+=m+`
|
|
425
|
+
`,t=t.substring(m.length+1),h=v.slice(c)}}P.loose||(f?P.loose=!0:/\n *\n *$/.test(n)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(y),o&&(a=o[0]!=="[ ] ",y=y.replace(/^\[[ xX]\] +/,""))),P.items.push({type:"list_item",raw:n,task:!!o,checked:a,loose:!1,text:y}),P.raw+=n}P.items[P.items.length-1].raw=n.trimRight(),P.items[P.items.length-1].text=y.trimRight(),P.raw=P.raw.trimRight();const I=P.items.length;for(u=0;u<I;u++)if(this.lexer.state.top=!1,P.items[u].tokens=this.lexer.blockTokens(P.items[u].text,[]),!P.loose){const T=P.items[u].tokens.filter(R=>R.type==="space"),M=T.length>0&&T.some(R=>/\n.*\n/.test(R.raw));P.loose=M}if(P.loose)for(u=0;u<I;u++)P.items[u].loose=!0;return P}}html(t){const r=this.rules.block.html.exec(t);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):jn(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(t){const r=this.rules.block.def.exec(t);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:a}}}table(t){const r=this.rules.block.table.exec(t);if(r){const n={type:"table",header:X2(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
|
426
|
+
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,a,c,u,d;for(a=0;a<o;a++)/^ *-+: *$/.test(n.align[a])?n.align[a]="right":/^ *:-+: *$/.test(n.align[a])?n.align[a]="center":/^ *:-+ *$/.test(n.align[a])?n.align[a]="left":n.align[a]=null;for(o=n.rows.length,a=0;a<o;a++)n.rows[a]=X2(n.rows[a],n.header.length).map(f=>({text:f}));for(o=n.header.length,c=0;c<o;c++)n.header[c].tokens=this.lexer.inline(n.header[c].text);for(o=n.rows.length,c=0;c<o;c++)for(d=n.rows[c],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return n}}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const n=r[1].charAt(r[1].length-1)===`
|
|
427
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:jn(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):jn(r[0]):r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const c=kf(n.slice(0,-1),"\\");if((n.length-c.length)%2===0)return}else{const c=mU(r[2],"()");if(c>-1){const d=(r[0].indexOf("!")===0?5:4)+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let o=r[2],a="";if(this.options.pedantic){const c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);c&&(o=c[1],a=c[3])}else a=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),Q2(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Q2(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const a=o[1]||o[2]||"";if(!a||a&&(n===""||this.rules.inline.punctuation.exec(n))){const c=o[0].length-1;let u,d,f=c,h=0;const v=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,r=r.slice(-1*t.length+c);(o=v.exec(r))!=null;){if(u=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!u)continue;if(d=u.length,o[3]||o[4]){f+=d;continue}else if((o[5]||o[6])&&c%3&&!((c+d)%3)){h+=d;continue}if(f-=d,f>0)continue;d=Math.min(d,d+f+h);const m=t.slice(0,c+o.index+(o[0].length-u.length)+d);if(Math.min(c,d)%2){const x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}const y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return o&&a&&(n=n.substring(1,n.length-1)),n=jn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t,r){const n=this.rules.inline.autolink.exec(t);if(n){let o,a;return n[2]==="@"?(o=jn(this.options.mangle?r(n[1]):n[1]),a="mailto:"+o):(o=jn(n[1]),a=o),{type:"link",raw:n[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(t,r){let n;if(n=this.rules.inline.url.exec(t)){let o,a;if(n[2]==="@")o=jn(this.options.mangle?r(n[0]):n[0]),a="mailto:"+o;else{let c;do c=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(c!==n[0]);o=jn(n[0]),n[1]==="www."?a="http://"+n[0]:a=n[0]}return{type:"link",raw:n[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t,r){const n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):jn(n[0]):n[0]:o=jn(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const Ct={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Yf,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ct._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Ct._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Ct.def=hr(Ct.def).replace("label",Ct._label).replace("title",Ct._title).getRegex();Ct.bullet=/(?:[*+-]|\d{1,9}[.)])/;Ct.listItemStart=hr(/^( *)(bull) */).replace("bull",Ct.bullet).getRegex();Ct.list=hr(Ct.list).replace(/bull/g,Ct.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ct.def.source+")").getRegex();Ct._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Ct._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Ct.html=hr(Ct.html,"i").replace("comment",Ct._comment).replace("tag",Ct._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Ct.paragraph=hr(Ct._paragraph).replace("hr",Ct.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ct._tag).getRegex();Ct.blockquote=hr(Ct.blockquote).replace("paragraph",Ct.paragraph).getRegex();Ct.normal={...Ct};Ct.gfm={...Ct.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Ct.gfm.table=hr(Ct.gfm.table).replace("hr",Ct.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ct._tag).getRegex();Ct.gfm.paragraph=hr(Ct._paragraph).replace("hr",Ct.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ct.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ct._tag).getRegex();Ct.pedantic={...Ct.normal,html:hr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ct._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Yf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:hr(Ct.normal._paragraph).replace("hr",Ct.hr).replace("heading",` *#{1,6} *[^
|
|
428
|
+
]`).replace("lheading",Ct.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const lt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Yf,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Yf,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};lt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";lt.punctuation=hr(lt.punctuation).replace(/punctuation/g,lt._punctuation).getRegex();lt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;lt.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;lt._comment=hr(Ct._comment).replace("(?:-->|$)","-->").getRegex();lt.emStrong.lDelim=hr(lt.emStrong.lDelim).replace(/punct/g,lt._punctuation).getRegex();lt.emStrong.rDelimAst=hr(lt.emStrong.rDelimAst,"g").replace(/punct/g,lt._punctuation).getRegex();lt.emStrong.rDelimUnd=hr(lt.emStrong.rDelimUnd,"g").replace(/punct/g,lt._punctuation).getRegex();lt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;lt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;lt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;lt.autolink=hr(lt.autolink).replace("scheme",lt._scheme).replace("email",lt._email).getRegex();lt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;lt.tag=hr(lt.tag).replace("comment",lt._comment).replace("attribute",lt._attribute).getRegex();lt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;lt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;lt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;lt.link=hr(lt.link).replace("label",lt._label).replace("href",lt._href).replace("title",lt._title).getRegex();lt.reflink=hr(lt.reflink).replace("label",lt._label).replace("ref",Ct._label).getRegex();lt.nolink=hr(lt.nolink).replace("ref",Ct._label).getRegex();lt.reflinkSearch=hr(lt.reflinkSearch,"g").replace("reflink",lt.reflink).replace("nolink",lt.nolink).getRegex();lt.normal={...lt};lt.pedantic={...lt.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:hr(/^!?\[(label)\]\((.*?)\)/).replace("label",lt._label).getRegex(),reflink:hr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt._label).getRegex()};lt.gfm={...lt.normal,escape:hr(lt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};lt.gfm.url=hr(lt.gfm.url,"i").replace("email",lt.gfm._extended_email).getRegex();lt.breaks={...lt.gfm,br:hr(lt.br).replace("{2,}","*").getRegex(),text:hr(lt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function vU(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Y2(e){let t="",r,n;const o=e.length;for(r=0;r<o;r++)n=e.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}class os{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||tl,this.options.tokenizer=this.options.tokenizer||new D0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:Ct.normal,inline:lt.normal};this.options.pedantic?(r.block=Ct.pedantic,r.inline=lt.pedantic):this.options.gfm&&(r.block=Ct.gfm,this.options.breaks?r.inline=lt.breaks:r.inline=lt.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ct,inline:lt}}static lex(t,r){return new os(r).lex(t)}static lexInline(t,r){return new os(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
429
|
+
`),this.blockTokens(t,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,d,f)=>d+" ".repeat(f.length));let n,o,a,c;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
|
430
|
+
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
431
|
+
`+n.raw,o.text+=`
|
|
432
|
+
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
433
|
+
`+n.raw,o.text+=`
|
|
434
|
+
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0;const d=t.slice(1);let f;this.options.extensions.startBlock.forEach(function(h){f=h.call({lexer:this},d),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(a=t.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){o=r[r.length-1],c&&o.type==="paragraph"?(o.raw+=`
|
|
435
|
+
`+n.raw,o.text+=`
|
|
436
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),c=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
|
|
437
|
+
`+n.raw,o.text+=`
|
|
438
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,o,a,c=t,u,d,f;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null;)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,u.index)+"["+K2("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(c))!=null;)c=c.slice(0,u.index)+"["+K2("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.escapedEmSt.exec(c))!=null;)c=c.slice(0,u.index+u[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(d||(f=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,c,f)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t,Y2)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,Y2))){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const v=t.slice(1);let m;this.options.extensions.startInline.forEach(function(y){m=y.call({lexer:this},v),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(a=t.substring(0,h+1))}if(n=this.tokenizer.inlineText(a,vU)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(f=n.raw.slice(-1)),d=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class F0{constructor(t){this.options=t||tl}code(t,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const a=this.options.highlight(t,o);a!=null&&a!==t&&(n=!0,t=a)}return t=t.replace(/\n$/,"")+`
|
|
439
|
+
`,o?'<pre><code class="'+this.options.langPrefix+jn(o)+'">'+(n?t:jn(t,!0))+`</code></pre>
|
|
440
|
+
`:"<pre><code>"+(n?t:jn(t,!0))+`</code></pre>
|
|
441
|
+
`}blockquote(t){return`<blockquote>
|
|
442
|
+
${t}</blockquote>
|
|
443
|
+
`}html(t){return t}heading(t,r,n,o){if(this.options.headerIds){const a=this.options.headerPrefix+o.slug(n);return`<h${r} id="${a}">${t}</h${r}>
|
|
444
|
+
`}return`<h${r}>${t}</h${r}>
|
|
445
|
+
`}hr(){return this.options.xhtml?`<hr/>
|
|
446
|
+
`:`<hr>
|
|
447
|
+
`}list(t,r,n){const o=r?"ol":"ul",a=r&&n!==1?' start="'+n+'"':"";return"<"+o+a+`>
|
|
448
|
+
`+t+"</"+o+`>
|
|
449
|
+
`}listitem(t){return`<li>${t}</li>
|
|
450
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
|
|
451
|
+
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
452
|
+
<thead>
|
|
453
|
+
`+t+`</thead>
|
|
454
|
+
`+r+`</table>
|
|
455
|
+
`}tablerow(t){return`<tr>
|
|
456
|
+
${t}</tr>
|
|
457
|
+
`}tablecell(t,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
|
|
458
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){if(t=G2(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(t,r,n){if(t=G2(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(t){return t}}class ij{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}}class aj{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let n=t,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[t];do o++,n=t+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[t]=o,this.seen[n]=0),n}slug(t,r={}){const n=this.serialize(t);return this.getNextSafeSlug(n,r.dryrun)}}class is{constructor(t){this.options=t||tl,this.options.renderer=this.options.renderer||new F0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ij,this.slugger=new aj}static parse(t,r){return new is(r).parse(t)}static parseInline(t,r){return new is(r).parseInline(t)}parse(t,r=!0){let n="",o,a,c,u,d,f,h,v,m,y,x,w,C,P,k,I,T,M,R;const L=t.length;for(o=0;o<L;o++){if(y=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[y.type]&&(R=this.options.extensions.renderers[y.type].call({parser:this},y),R!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(y.type))){n+=R||"";continue}switch(y.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(y.tokens),y.depth,oj(this.parseInline(y.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(y.text,y.lang,y.escaped);continue}case"table":{for(v="",h="",u=y.header.length,a=0;a<u;a++)h+=this.renderer.tablecell(this.parseInline(y.header[a].tokens),{header:!0,align:y.align[a]});for(v+=this.renderer.tablerow(h),m="",u=y.rows.length,a=0;a<u;a++){for(f=y.rows[a],h="",d=f.length,c=0;c<d;c++)h+=this.renderer.tablecell(this.parseInline(f[c].tokens),{header:!1,align:y.align[c]});m+=this.renderer.tablerow(h)}n+=this.renderer.table(v,m);continue}case"blockquote":{m=this.parse(y.tokens),n+=this.renderer.blockquote(m);continue}case"list":{for(x=y.ordered,w=y.start,C=y.loose,u=y.items.length,m="",a=0;a<u;a++)k=y.items[a],I=k.checked,T=k.task,P="",k.task&&(M=this.renderer.checkbox(I),C?k.tokens.length>0&&k.tokens[0].type==="paragraph"?(k.tokens[0].text=M+" "+k.tokens[0].text,k.tokens[0].tokens&&k.tokens[0].tokens.length>0&&k.tokens[0].tokens[0].type==="text"&&(k.tokens[0].tokens[0].text=M+" "+k.tokens[0].tokens[0].text)):k.tokens.unshift({type:"text",text:M}):P+=M),P+=this.parse(k.tokens,C),m+=this.renderer.listitem(P,T,I);n+=this.renderer.list(m,x,w);continue}case"html":{n+=this.renderer.html(y.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(y.tokens));continue}case"text":{for(m=y.tokens?this.parseInline(y.tokens):y.text;o+1<L&&t[o+1].type==="text";)y=t[++o],m+=`
|
|
459
|
+
`+(y.tokens?this.parseInline(y.tokens):y.text);n+=r?this.renderer.paragraph(m):m;continue}default:{const A='Token with "'+y.type+'" type was not found.';if(this.options.silent){console.error(A);return}else throw new Error(A)}}}return n}parseInline(t,r){r=r||this.renderer;let n="",o,a,c;const u=t.length;for(o=0;o<u;o++){if(a=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]&&(c=this.options.extensions.renderers[a.type].call({parser:this},a),c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type))){n+=c||"";continue}switch(a.type){case"escape":{n+=r.text(a.text);break}case"html":{n+=r.html(a.text);break}case"link":{n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{n+=r.image(a.href,a.title,a.text);break}case"strong":{n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(a.tokens,r));break}case"text":{n+=r.text(a.text);break}default:{const d='Token with "'+a.type+'" type was not found.';if(this.options.silent){console.error(d);return}else throw new Error(d)}}}return n}}class Jf{constructor(t){this.options=t||tl}preprocess(t){return t}postprocess(t){return t}}ks(Jf,"passThroughHooks",new Set(["preprocess","postprocess"]));function xU(e,t,r){return n=>{if(n.message+=`
|
|
460
|
+
Please report this to https://github.com/markedjs/marked.`,e){const o="<p>An error occurred:</p><pre>"+jn(n.message+"",!0)+"</pre>";if(t)return Promise.resolve(o);if(r){r(null,o);return}return o}if(t)return Promise.reject(n);if(r){r(n);return}throw n}}function sj(e,t){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const a={...n};n={...St.defaults,...a};const c=xU(n.silent,n.async,o);if(typeof r>"u"||r===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(gU(n),n.hooks&&(n.hooks.options=n),o){const u=n.highlight;let d;try{n.hooks&&(r=n.hooks.preprocess(r)),d=e(r,n)}catch(v){return c(v)}const f=function(v){let m;if(!v)try{n.walkTokens&&St.walkTokens(d,n.walkTokens),m=t(d,n),n.hooks&&(m=n.hooks.postprocess(m))}catch(y){v=y}return n.highlight=u,v?c(v):o(null,m)};if(!u||u.length<3||(delete n.highlight,!d.length))return f();let h=0;St.walkTokens(d,function(v){v.type==="code"&&(h++,setTimeout(()=>{u(v.text,v.lang,function(m,y){if(m)return f(m);y!=null&&y!==v.text&&(v.text=y,v.escaped=!0),h--,h===0&&f()})},0))}),h===0&&f();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(u=>e(u,n)).then(u=>n.walkTokens?Promise.all(St.walkTokens(u,n.walkTokens)).then(()=>u):u).then(u=>t(u,n)).then(u=>n.hooks?n.hooks.postprocess(u):u).catch(c);try{n.hooks&&(r=n.hooks.preprocess(r));const u=e(r,n);n.walkTokens&&St.walkTokens(u,n.walkTokens);let d=t(u,n);return n.hooks&&(d=n.hooks.postprocess(d)),d}catch(u){return c(u)}}}function St(e,t,r){return sj(os.lex,is.parse)(e,t,r)}St.options=St.setOptions=function(e){return St.defaults={...St.defaults,...e},nU(St.defaults),St};St.getDefaults=tj;St.defaults=tl;St.use=function(...e){const t=St.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(r=>{const n={...r};if(n.async=St.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const a=t.renderers[o.name];a?t.renderers[o.name]=function(...c){let u=o.renderer.apply(this,c);return u===!1&&(u=a.apply(this,c)),u}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),r.renderer){const o=St.defaults.renderer||new F0;for(const a in r.renderer){const c=o[a];o[a]=(...u)=>{let d=r.renderer[a].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.renderer=o}if(r.tokenizer){const o=St.defaults.tokenizer||new D0;for(const a in r.tokenizer){const c=o[a];o[a]=(...u)=>{let d=r.tokenizer[a].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.tokenizer=o}if(r.hooks){const o=St.defaults.hooks||new Jf;for(const a in r.hooks){const c=o[a];Jf.passThroughHooks.has(a)?o[a]=u=>{if(St.defaults.async)return Promise.resolve(r.hooks[a].call(o,u)).then(f=>c.call(o,f));const d=r.hooks[a].call(o,u);return c.call(o,d)}:o[a]=(...u)=>{let d=r.hooks[a].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.hooks=o}if(r.walkTokens){const o=St.defaults.walkTokens;n.walkTokens=function(a){let c=[];return c.push(r.walkTokens.call(this,a)),o&&(c=c.concat(o.call(this,a))),c}}St.setOptions(n)})};St.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(St,n)),n.type){case"table":{for(const o of n.header)r=r.concat(St.walkTokens(o.tokens,t));for(const o of n.rows)for(const a of o)r=r.concat(St.walkTokens(a.tokens,t));break}case"list":{r=r.concat(St.walkTokens(n.items,t));break}default:St.defaults.extensions&&St.defaults.extensions.childTokens&&St.defaults.extensions.childTokens[n.type]?St.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(St.walkTokens(n[o],t))}):n.tokens&&(r=r.concat(St.walkTokens(n.tokens,t)))}return r};St.parseInline=sj(os.lexInline,is.parseInline);St.Parser=is;St.parser=is.parse;St.Renderer=F0;St.TextRenderer=ij;St.Lexer=os;St.lexer=os.lex;St.Tokenizer=D0;St.Slugger=aj;St.Hooks=Jf;St.parse=St;St.options;St.setOptions;St.use;St.walkTokens;St.parseInline;is.parse;os.lex;let mc=class extends mr{};_([z(),D({field_type:B.TEXTAREA,label:"Markdown Content",description:"Markdown content to be transformed into React components",placeholder:`# Enter Markdown content...
|
|
461
|
+
|
|
462
|
+
**Bold text** and *italic text*.`}),W(),ae(),F("design:type",String)],mc.prototype,"children",void 0);_([z(),D({field_type:B.CHECKBOX,label:"Sanitize HTML",description:"Whether to sanitize HTML output for security"}),W(),Bt(),F("design:type",Boolean)],mc.prototype,"sanitize",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Fallback content to display when Markdown is empty",placeholder:"No content available"}),W(),ae(),F("design:type",String)],mc.prototype,"placeholder",void 0);mc=_([Ft("Markdown","1.0.0")],mc);var bU=mc;const wU=[{selector:"pre",transform:(e,t)=>{var a;const r=e.querySelector("code");if(!r)return null;const o={tagName:"Code",version:"1.0.0",data:{language:((a=Array.from(r.classList).find(c=>c.startsWith("language-")))==null?void 0:a.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,children:r.textContent||""}};return l.jsx(ne,{sx:{my:1.5},children:an.deserialize(o)},t)}},{selector:"code",transform:e=>(e.closest("pre"),null)}],SU=e=>({gfm:!0,breaks:!1,pedantic:!1,sanitize:!1,smartypants:!1,renderer:new St.Renderer,...e});function H0({children:e="",htmlTransformConfig:t,sanitize:r=!0,sanitizeOptions:n,placeholder:o,component:a="div",markedOptions:c,...u}){const{styleProps:d,htmlProps:f,restProps:h}=In(u);if(H0[Bn]=!0,!e||!e.trim())return o?l.jsx(ne,{component:a,...f,...d,...h,sx:{opacity:.6,fontStyle:"italic",...d.sx},children:o}):null;try{const v=SU(c),m=St(e,v),y=t||{rules:wU,sanitize:r,sanitizeOptions:n};return l.jsx(No,{transformConfig:y,sanitize:r,sanitizeOptions:n,component:a,...f,...d,...h,children:m})}catch(v){return console.error("Error processing Markdown content:",v),l.jsxs(ne,{component:a,...f,...d,...h,sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)",...d.sx},children:[l.jsx("strong",{children:"Markdown Processing Error:"})," ",v instanceof Error?v.message:"Unknown error",l.jsx(bo,{html:e,placeholder:"Failed to process Markdown"})]})}}class pd extends Js{getComponentSpecificProps(){return{children:this.props.children,sanitize:this.props.sanitize,placeholder:this.props.placeholder}}renderView(){const{...t}=this.props;return l.jsx(H0,{...t})}renderWithDataBinding(){return l.jsx(CU,{...this.props})}static registerPatternHandlers(t){t.hasPattern("div.markdown-content")||t.registerPattern("div.markdown-content",pd.transformMarkdownDiv),t.hasPattern("[data-markdown]")||t.registerPattern("[data-markdown]",pd.transformDataMarkdown)}static transformMarkdownDiv(t){const r=t.getAttribute("data-sanitize")!=="false",n=t.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:t.textContent||"",sanitize:r,placeholder:n||void 0}}}static transformDataMarkdown(t){const r=t.getAttribute("data-markdown")||t.textContent,n=t.getAttribute("data-sanitize")!=="false",o=t.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:r,sanitize:n,placeholder:o||void 0}}}}pd.tagName="Markdown";pd.version="1.0.0";function CU(e){const{dataSource:t,bindingOptions:r,...n}=e,{loading:o,error:a,...c}=Fi(t,n,bU.getSchema(),{...r});return o?l.jsx(ne,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading Markdown content..."}):a?(console.error("Error loading Markdown content:",a),l.jsxs(ne,{sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)"},children:[l.jsx("strong",{children:"Error Loading Markdown:"})," ",a.message]})):l.jsx(H0,{...c})}class EU{constructor(){this.measurements=[],this.isEnabled=!0,this.isEnabled&&this.initializeListeners()}initializeListeners(){typeof window>"u"||(window.addEventListener("theme-changed",t=>{var r;this.measureThemeSwitch("theme",(r=t.detail)==null?void 0:r.theme)}),window.addEventListener("palette-changed",t=>{var r;this.measureThemeSwitch("palette",(r=t.detail)==null?void 0:r.palette)}))}measureThemeSwitch(t,r){if(!this.isEnabled||typeof window>"u"||typeof performance>"u")return;const n=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{const a=performance.now()-n,c={type:t,value:r,duration:a,timestamp:new Date().toISOString()};this.measurements.push(c),this.measurements.length>50&&this.measurements.shift(),a>100?console.warn(`Slow ${t} switch detected:`,c):console.log(`${t} switch performance:`,`${a.toFixed(2)}ms`)})})}getStatistics(){if(!this.isEnabled||this.measurements.length===0)return null;const t=this.measurements.map(a=>a.duration),r=t.reduce((a,c)=>a+c,0)/t.length,n=Math.min(...t),o=Math.max(...t);return{totalMeasurements:this.measurements.length,averageDuration:r.toFixed(2),minDuration:n.toFixed(2),maxDuration:o.toFixed(2),recentMeasurements:this.measurements.slice(-10)}}logStatistics(){if(!this.isEnabled)return;const t=this.getStatistics();t&&(console.group("Theme Performance Statistics"),console.log("Total measurements:",t.totalMeasurements),console.log("Average duration:",t.averageDuration+"ms"),console.log("Min duration:",t.minDuration+"ms"),console.log("Max duration:",t.maxDuration+"ms"),console.log("Recent measurements:",t.recentMeasurements),console.groupEnd())}reset(){this.measurements=[]}}new EU;var J2;(function(e){e.POST="POST",e.PUT="PUT",e.PATCH="PATCH"})(J2||(J2={}));var Z2;(function(e){e.NAVIGATE="navigate",e.SUBMIT="submit",e.RESET="reset",e.CANCEL="cancel"})(Z2||(Z2={}));class V0{constructor(t){this.app=Object.freeze({...t.app}),this.build=Object.freeze({...t.build}),this.pwa=Object.freeze({...t.pwa}),this.ui=Object.freeze({...t.ui}),this.copyright=Object.freeze({...t.copyright}),Object.freeze(this)}get viteConfig(){return{server:{port:this.build.port,host:!0},preview:{port:this.build.previewPort,host:!0},build:{outDir:this.build.outputDir},base:this.build.base,publicDir:"public",define:{__APP_NAME__:JSON.stringify(this.app.name),__APP_ID__:JSON.stringify(this.app.id),__APP_VERSION__:JSON.stringify(this.app.version)}}}get pwaManifest(){return{name:this.app.name,short_name:this.app.shortName,description:this.app.description,start_url:this.pwa.startUrl,display:this.pwa.display,orientation:this.pwa.orientation,theme_color:this.pwa.themeColor,background_color:this.pwa.backgroundColor,scope:this.pwa.scope,icons:[{src:"pwa-192x192.png",sizes:"192x192",type:"image/png"},{src:"pwa-512x512.png",sizes:"512x512",type:"image/png"}]}}toJSON(){return{app:this.app,build:this.build,pwa:this.pwa,ui:this.ui,copyright:this.copyright}}with(t){return new V0({app:{...this.app,...t.app},build:{...this.build,...t.build},pwa:{...this.pwa,...t.pwa},ui:{...this.ui,...t.ui},copyright:{...this.copyright,...t.copyright}})}}let ju,Pu;try{typeof window>"u"&&typeof process<"u"&&(ju=require("fs"),Pu=require("path"))}catch{}class U0{constructor(){this.config={app:{},build:{},pwa:{},ui:{},copyright:{}},this.options={}}static create(){return new U0}withConfig(t){if(!ju||!Pu)return typeof window>"u"&&console.warn("Warning: File system operations not available in browser environment"),this;try{const r=Pu.resolve(t),n=JSON.parse(ju.readFileSync(r,"utf-8"));n.app&&Object.assign(this.config.app,n.app),n.build&&Object.assign(this.config.build,n.build),n.pwa&&Object.assign(this.config.pwa,n.pwa),n.ui&&Object.assign(this.config.ui,n.ui),n.copyright&&Object.assign(this.config.copyright,n.copyright)}catch{console.warn(`Warning: Could not load config file: ${t}`)}return this}withOptions(t){return this.options={...this.options,...t},this}withName(t){return this.config.app.name=t,this}withId(t){return this.config.app.id=t,this}withShortName(t){return this.config.app.shortName=t,this}withDescription(t){return this.config.app.description=t,this}withVersion(t){return this.config.app.version=t,this}withLogo(t){return this.config.app.logo=t,this}withAuthor(t){return this.config.app.author=t,this}withHomepage(t){return this.config.app.homepage=t,this}withPort(t){return this.config.build.port=t,this}withPreviewPort(t){return this.config.build.previewPort=t,this}withOutputDir(t){return this.config.build.outputDir=t,this}withPublicPath(t){return this.config.build.publicPath=t,this}withBase(t){return this.config.build.base=t,this}withThemeColor(t){return this.config.pwa.themeColor=t,this}withBackgroundColor(t){return this.config.pwa.backgroundColor=t,this}withStartUrl(t){return this.config.pwa.startUrl=t,this}withScope(t){return this.config.pwa.scope=t,this}withDisplay(t){return this.config.pwa.display=t,this}withOrientation(t){return this.config.pwa.orientation=t,this}withDefaultTheme(t){return this.config.ui.defaultTheme=t,this}withDefaultPalette(t){return this.config.ui.defaultPalette=t,this}withScaffolding(t){return this.config.ui.enableScaffolding=t,this}withThemeSwitcher(t){return this.config.ui.showThemeSwitcher=t,this}withPaletteSwitcher(t){return this.config.ui.showPaletteSwitcher=t,this}withCopyright(t,r,n){return this.config.copyright.year=t,this.config.copyright.author=r,n!==void 0&&(this.config.copyright.text=n),this}withCopyrightYear(t){return this.config.copyright.year=t,this}withCopyrightAuthor(t){return this.config.copyright.author=t,this}withCopyrightText(t){return this.config.copyright.text=t,this}build(){const t=this.validate();if(t.warnings.forEach(n=>{console.warn(`⚠️ AppConfig: ${n}`)}),!t.isValid)throw new Error(`AppConfig validation failed:
|
|
463
|
+
${t.errors.map(n=>` - ${n}`).join(`
|
|
464
|
+
`)}`);const r=this.applyDefaults();return new V0(r)}validate(){const t=[],r=[];if(this.config.app.name||r.push("App name is required"),this.config.app.id||r.push("App ID is required"),this.config.copyright.year&&this.config.copyright.year!=="auto"&&(!Number.isInteger(this.config.copyright.year)||this.config.copyright.year<1900)&&t.push('Copyright year should be "auto" or a valid year >= 1900'),this.config.app.logo&&!this.options.skipValidation&&ju&&Pu){const n=Pu.resolve(this.options.baseDir||process.cwd(),this.config.app.logo);ju.existsSync(n)||t.push(`Logo file not found: ${this.config.app.logo} (will use default)`)}return this.config.build.port!==void 0&&(!Number.isInteger(this.config.build.port)||this.config.build.port<1||this.config.build.port>65535)&&r.push("Port must be a valid integer between 1 and 65535"),this.config.build.previewPort!==void 0&&(!Number.isInteger(this.config.build.previewPort)||this.config.build.previewPort<1||this.config.build.previewPort>65535)&&r.push("Preview port must be a valid integer between 1 and 65535"),this.config.pwa.themeColor&&!this.isValidColor(this.config.pwa.themeColor)&&t.push(`Theme color may not be valid: ${this.config.pwa.themeColor}`),this.config.pwa.backgroundColor&&!this.isValidColor(this.config.pwa.backgroundColor)&&t.push(`Background color may not be valid: ${this.config.pwa.backgroundColor}`),{warnings:t,errors:r,isValid:r.length===0}}applyDefaults(){const t={id:this.config.app.id,name:this.config.app.name,shortName:this.config.app.shortName||this.config.app.name,description:this.config.app.description||this.config.app.name,version:this.config.app.version||"1.0.0",logo:this.config.app.logo||"/favicon.ico",author:this.config.app.author,homepage:this.config.app.homepage},r={port:this.config.build.port||3e3,previewPort:this.config.build.previewPort||4173,outputDir:this.config.build.outputDir||"dist",publicPath:this.config.build.publicPath||"/",base:this.config.build.base||"/"},n={themeColor:this.config.pwa.themeColor||"#000000",backgroundColor:this.config.pwa.backgroundColor||"#ffffff",startUrl:this.config.pwa.startUrl||"/",scope:this.config.pwa.scope||"/",display:this.config.pwa.display||"standalone",orientation:this.config.pwa.orientation},o={defaultTheme:this.config.ui.defaultTheme||"light",defaultPalette:this.config.ui.defaultPalette||"default",enableScaffolding:this.config.ui.enableScaffolding??!0,showThemeSwitcher:this.config.ui.showThemeSwitcher??!1,showPaletteSwitcher:this.config.ui.showPaletteSwitcher??!1},a={year:this.config.copyright.year||"auto",author:this.config.copyright.author||t.author||t.name,text:this.config.copyright.text};return{app:t,build:r,pwa:n,ui:o,copyright:a}}isValidColor(t){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)||/^(black|white|red|green|blue|yellow|orange|purple|pink|gray|grey)$/i.test(t)||/^rgba?\([^)]+\)$/i.test(t)}}let ua=class extends xt{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"Label/title for the choice input field",placeholder:"Options"}),W(),ae(),F("design:type",String)],ua.prototype,"label",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Options",description:"Array of option values (HTML content supported) - JSON array format"}),W(),dn(),ae({each:!0}),F("design:type",Array)],ua.prototype,"options",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether the input fields are disabled"}),W(),Bt(),F("design:type",Boolean)],ua.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Placeholder text for option inputs",placeholder:"Enter option text. HTML formatting supported."}),W(),ae(),F("design:type",String)],ua.prototype,"placeholder",void 0);_([z(),D({field_type:B.TEXT,label:"Option Label Prefix",description:'Prefix for each option label (e.g., "Option", "Choice")',placeholder:"Option"}),W(),ae(),F("design:type",String)],ua.prototype,"optionLabelPrefix",void 0);_([z({defaultValue:2}),D({field_type:B.NUMBER,label:"Input Rows",description:"Number of rows for each option input field"}),W(),Pr(),F("design:type",Number)],ua.prototype,"rows",void 0);_([z(),D({field_type:B.TEXT,label:"Add Button Text",description:"Text for the add option button",placeholder:"Add Option"}),W(),ae(),F("design:type",String)],ua.prototype,"addButtonText",void 0);ua=_([Ft("ChoiceInputField","1.0.0")],ua);let da=class extends AT{};_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Raw code text. If provided, React children are ignored in serialization.",placeholder:"Enter code content..."}),W(),ae(),F("design:type",String)],da.prototype,"content",void 0);_([z(),D({field_type:B.TEXT,label:"Language",description:"Programming language for syntax highlighting (e.g., typescript, javascript, python)",placeholder:"javascript"}),W(),ae(),F("design:type",String)],da.prototype,"language",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Copy Button",description:"Display a copy-to-clipboard button"}),W(),Bt(),F("design:type",Boolean)],da.prototype,"showCopy",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Line Numbers",description:"Display line numbers alongside the code"}),W(),Bt(),F("design:type",Boolean)],da.prototype,"showLineNumbers",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Optional title or filename to display above the code",placeholder:"File name or title"}),W(),ae(),F("design:type",String)],da.prototype,"title",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Wrap Long Lines",description:"Allow long lines to wrap instead of scrolling horizontally"}),W(),Bt(),F("design:type",Boolean)],da.prototype,"wrapLines",void 0);_([z(),D({field_type:B.TEXT,label:"Background Color",description:"Custom background color override",placeholder:"#f5f5f5"}),W(),ae(),F("design:type",String)],da.prototype,"codeBackground",void 0);da=_([Ft("Code","1.0.0")],da);let ro=class extends sa{};_([z(),D({field_type:B.NUMBER,label:"Span",description:"Number of columns to span (1-12)",placeholder:"12"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"span",void 0);_([z(),D({field_type:B.NUMBER,label:"XS (Mobile)",description:"Columns on extra small screens (1-12)",placeholder:"12"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"xs",void 0);_([z(),D({field_type:B.NUMBER,label:"SM (Tablet)",description:"Columns on small screens (1-12)",placeholder:"6"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"sm",void 0);_([z(),D({field_type:B.NUMBER,label:"MD (Desktop)",description:"Columns on medium screens (1-12)",placeholder:"4"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"md",void 0);_([z(),D({field_type:B.NUMBER,label:"LG (Large Desktop)",description:"Columns on large screens (1-12)",placeholder:"3"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"lg",void 0);_([z(),D({field_type:B.NUMBER,label:"XL (Extra Large)",description:"Columns on extra large screens (1-12)",placeholder:"2"}),W(),Pr(),Ue([1,2,3,4,5,6,7,8,9,10,11,12]),F("design:type",Number)],ro.prototype,"xl",void 0);_([z(),D({field_type:B.TEXT,label:"Background",description:'Background color or theme color (e.g., "primary.main", "#ffffff")',placeholder:"transparent"}),W(),ae(),F("design:type",String)],ro.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Padding",description:'Internal spacing (e.g., "medium", "16px", "1rem")',placeholder:"medium"}),W(),ae(),F("design:type",String)],ro.prototype,"padding",void 0);_([z(),D({field_type:B.TEXT,label:"Margin",description:'External spacing (e.g., "small", "8px", "0.5rem")',placeholder:"0"}),W(),ae(),F("design:type",String)],ro.prototype,"margin",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:'Cell height (e.g., "200px", "medium")',placeholder:"auto"}),W(),ae(),F("design:type",String)],ro.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:'Cell width (e.g., "100%", "300px")',placeholder:"100%"}),W(),ae(),F("design:type",String)],ro.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-cell-class"}),W(),ae(),F("design:type",String)],ro.prototype,"className",void 0);ro=_([Ft("GridCell","1.0.0")],ro);let Fo=class extends sa{};_([z(),D({field_type:B.NUMBER,label:"Columns",description:"Number of equal-width columns for auto-distribution"}),W(),Pr(),io(1),F("design:type",Number)],Fo.prototype,"columns",void 0);_([z({defaultValue:"small"}),D({field_type:B.SELECT,label:"Spacing",description:"Spacing between grid items"}),W(),ae(),Ue(["tiny","small","medium","large","huge"]),F("design:type",String)],Fo.prototype,"spacing",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Make all grid items the same height"}),W(),Bt(),F("design:type",Boolean)],Fo.prototype,"equalHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:'Grid container height (e.g., "400px", "50vh", "medium")',placeholder:"auto"}),W(),ae(),F("design:type",String)],Fo.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:'Grid container width (e.g., "100%", "800px", "large")',placeholder:"100%"}),W(),ae(),F("design:type",String)],Fo.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"Min Height",description:"Minimum grid container height",placeholder:"auto"}),W(),ae(),F("design:type",String)],Fo.prototype,"minHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Min Width",description:"Minimum grid container width",placeholder:"auto"}),W(),ae(),F("design:type",String)],Fo.prototype,"minWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Max Height",description:"Maximum grid container height",placeholder:"none"}),W(),ae(),F("design:type",String)],Fo.prototype,"maxHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Max Width",description:"Maximum grid container width",placeholder:"none"}),W(),ae(),F("design:type",String)],Fo.prototype,"maxWidth",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-grid-class"}),W(),ae(),F("design:type",String)],Fo.prototype,"className",void 0);Fo=_([Ft("GridLayout","1.0.0")],Fo);let Ho=class extends sa{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Main headline text",placeholder:"Enter hero title..."}),ae(),F("design:type",String)],Ho.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Subtitle or description text",placeholder:"Enter subtitle..."}),W(),ae(),F("design:type",String)],Ho.prototype,"subtitle",void 0);_([z(),D({field_type:B.IMAGE,label:"Background Image",description:"Background image URL",placeholder:"https://..."}),W(),Ah(),F("design:type",String)],Ho.prototype,"backgroundImage",void 0);_([z(),D({field_type:B.TEXT,label:"Background Gradient",description:"Background gradient CSS value",placeholder:"linear-gradient(...)"}),W(),ae(),F("design:type",String)],Ho.prototype,"backgroundGradient",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Background Color",description:"Background color theme variant",validation:{options:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Surface",value:"surface"}]}}),W(),Ue(["default","primary","secondary","surface"]),F("design:type",String)],Ho.prototype,"backgroundColor",void 0);_([z({type:ut.ARRAY}),D({field_type:B.REPEATER,label:"Actions",description:"Action buttons for the hero section"}),W(),dn(),oo({each:!0}),ao(()=>eo),F("design:type",Array)],Ho.prototype,"actions",void 0);_([z({defaultValue:"center"}),D({field_type:B.SELECT,label:"Text Alignment",description:"Text alignment",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]}}),W(),Ue(["left","center","right"]),F("design:type",String)],Ho.prototype,"textAlign",void 0);_([z({defaultValue:"medium"}),D({field_type:B.SELECT,label:"Block Height",description:"Block height preset",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Viewport",value:"viewport"}]}}),W(),Ue(["small","medium","large","viewport"]),F("design:type",String)],Ho.prototype,"blockHeight",void 0);_([z(),D({field_type:B.NUMBER,label:"Overlay Opacity",description:"Custom overlay opacity (0-1) when using background images",validation:{min:0,max:1}}),W(),Pr(),io(0),Qs(1),F("design:type",Number)],Ho.prototype,"overlayOpacity",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-hero-class"}),W(),ae(),F("design:type",String)],Ho.prototype,"className",void 0);Ho=_([Ft("HeroBlock","1.0.0")],Ho);let tn=class extends xt{};_([z({dataType:ut.STRING}),D({field_type:B.IMAGE,label:"Image Source",description:"Image source URL or path",placeholder:"https://example.com/image.jpg"}),W(),ae(),F("design:type",String)],tn.prototype,"src",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Alt Text",description:"Alternative text for accessibility (required for images with src)",placeholder:"Describe the image for screen readers"}),W(),ae(),F("design:type",String)],tn.prototype,"alt",void 0);_([z({dataType:ut.NUMBER}),D({field_type:B.NUMBER,label:"Width",description:"Image width in pixels (optional)",placeholder:"300"}),W(),Pr(),F("design:type",Number)],tn.prototype,"width",void 0);_([z({dataType:ut.NUMBER}),D({field_type:B.NUMBER,label:"Height",description:"Image height in pixels (optional)",placeholder:"200"}),W(),Pr(),F("design:type",Number)],tn.prototype,"height",void 0);_([z({defaultValue:"cover",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Object Fit",description:"How the image should be resized to fit its container",validation:{options:[{label:"Fill",value:"fill"},{label:"Contain",value:"contain"},{label:"Cover",value:"cover"},{label:"None",value:"none"},{label:"Scale Down",value:"scale-down"}]}}),W(),ae(),Ue(["fill","contain","cover","none","scale-down"]),F("design:type",String)],tn.prototype,"objectFit",void 0);_([z({defaultValue:"center",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Object Position",description:"Position of the image within its container",validation:{options:[{label:"Center",value:"center"},{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Top Left",value:"top-left"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),Ue(["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]),F("design:type",String)],tn.prototype,"objectPosition",void 0);_([z({defaultValue:"lazy",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Loading",description:"Image loading behavior",validation:{options:[{label:"Lazy (load when visible)",value:"lazy"},{label:"Eager (load immediately)",value:"eager"}]}}),W(),ae(),Ue(["lazy","eager"]),F("design:type",String)],tn.prototype,"loading",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Title",description:"Image title (tooltip text)",placeholder:"Tooltip text on hover"}),W(),ae(),F("design:type",String)],tn.prototype,"title",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Draggable",description:"Allow the image to be dragged"}),W(),Bt(),F("design:type",Boolean)],tn.prototype,"draggable",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Border Radius",description:'CSS border radius (e.g., "8px", "50%", "1rem")',placeholder:"8px"}),W(),ae(),F("design:type",String)],tn.prototype,"borderRadius",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Show Loading State",description:"Display a loading placeholder while the image loads"}),W(),Bt(),F("design:type",Boolean)],tn.prototype,"showLoading",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Show Error State",description:"Display an error message if the image fails to load"}),W(),Bt(),F("design:type",Boolean)],tn.prototype,"showError",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Fallback Image",description:"Fallback image URL to use if the main image fails to load",placeholder:"https://example.com/fallback.jpg"}),W(),ae(),F("design:type",String)],tn.prototype,"fallbackSrc",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Responsive Sizes",description:"Responsive image sizes attribute for optimized loading",placeholder:"(max-width: 768px) 100vw, 50vw"}),W(),ae(),F("design:type",String)],tn.prototype,"sizes",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Source Set",description:"Source set for responsive images (comma-separated)",placeholder:"image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"}),W(),ae(),F("design:type",String)],tn.prototype,"srcSet",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Loading Placeholder",description:"Custom loading placeholder content (for advanced use)",placeholder:"Custom loading content..."}),W(),F("design:type",Object)],tn.prototype,"loadingPlaceholder",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Error Placeholder",description:"Custom error placeholder content (for advanced use)",placeholder:"Custom error content..."}),W(),F("design:type",Object)],tn.prototype,"errorPlaceholder",void 0);tn=_([Ft("Image","1.0.0")],tn);let Gs=class extends sa{};_([z(),D({field_type:B.TEXT,label:"Background Color",description:"Background color (CSS color, theme path, or palette color)",placeholder:"#ffffff or primary.main"}),W(),ae(),F("design:type",String)],Gs.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Text Color",description:"Text color (CSS color, theme path, or palette color)",placeholder:"#000000 or text.primary"}),W(),ae(),F("design:type",String)],Gs.prototype,"color",void 0);_([z(),D({field_type:B.SELECT,label:"Section Padding",description:"Vertical padding/spacing for the section",validation:{options:[{value:"none",label:"None"},{value:"tiny",label:"Tiny (8px)"},{value:"small",label:"Small (16px)"},{value:"medium",label:"Medium (32px)"},{value:"large",label:"Large (64px)"},{value:"extra-large",label:"Extra Large (96px)"}]}}),W(),Ue(["none","tiny","small","medium","large","extra-large"]),F("design:type",String)],Gs.prototype,"padding",void 0);_([z(),D({field_type:B.SELECT,label:"Content Max Width",description:"Maximum width for the content container",validation:{options:[{value:"xs",label:"Extra Small (444px)"},{value:"sm",label:"Small (600px)"},{value:"md",label:"Medium (900px)"},{value:"lg",label:"Large (1200px)"},{value:"xl",label:"Extra Large (1536px)"},{value:"false",label:"Full Width"}]}}),W(),Ue(["xs","sm","md","lg","xl","false"]),F("design:type",String)],Gs.prototype,"contentMaxWidth",void 0);_([z(),D({field_type:B.SELECT,label:"HTML Element",description:"HTML element type to use for the section",validation:{options:[{value:"section",label:"Section"},{value:"div",label:"Div"},{value:"article",label:"Article"},{value:"main",label:"Main"}]}}),W(),Ue(["section","div","article","main"]),F("design:type",String)],Gs.prototype,"component",void 0);Gs=_([Ft("Section","1.0.0")],Gs);let Eo=class extends xt{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"The label displayed for the text input field",placeholder:"Enter field label..."}),ae(),F("design:type",String)],Eo.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Value",description:"Current field value",placeholder:"Enter value..."}),W(),ae(),F("design:type",String)],Eo.prototype,"value",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Required",description:"Whether the field is required"}),W(),Bt(),F("design:type",Boolean)],Eo.prototype,"required",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether the field is disabled"}),W(),Bt(),F("design:type",Boolean)],Eo.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Error Message",description:"Error message to display if validation fails",placeholder:"Enter error message..."}),W(),ae(),F("design:type",String)],Eo.prototype,"error",void 0);_([z(),D({field_type:B.TEXT,label:"Helper Text",description:"Helper text to guide the user",placeholder:"Enter helper text..."}),W(),ae(),F("design:type",String)],Eo.prototype,"helperText",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Placeholder text shown when field is empty",placeholder:"Enter placeholder text..."}),W(),ae(),F("design:type",String)],Eo.prototype,"placeholder",void 0);_([z(),D({field_type:B.TEXT,label:"Input Type",description:"HTML input type (text, email, number, password, etc.)",placeholder:"text"}),W(),ae(),F("design:type",String)],Eo.prototype,"type",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Multiline",description:"Whether the field supports multiple lines (textarea)"}),W(),Bt(),F("design:type",Boolean)],Eo.prototype,"multiline",void 0);_([z(),D({field_type:B.NUMBER,label:"Rows",description:"Number of rows for multiline fields"}),W(),Pr(),F("design:type",Number)],Eo.prototype,"rows",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Rows",description:"Maximum number of rows for multiline fields"}),W(),Pr(),F("design:type",Number)],Eo.prototype,"maxRows",void 0);Eo=_([Ft("TextInputField","1.0.0")],Eo);let qr=class extends mr{};_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Text Content",description:"The text content to display",placeholder:"Enter your text content here..."}),W(),ae(),F("design:type",String)],qr.prototype,"content",void 0);_([z({defaultValue:"body1",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Typography Variant",description:"Typography variant that determines font size, weight, and line height",validation:{options:[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Subtitle 1",value:"subtitle1"},{label:"Subtitle 2",value:"subtitle2"},{label:"Body 1",value:"body1"},{label:"Body 2",value:"body2"},{label:"Button",value:"button"},{label:"Caption",value:"caption"},{label:"Overline",value:"overline"}]}}),W(),ae(),Ue(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),F("design:type",String)],qr.prototype,"variant",void 0);_([z({defaultValue:"inherit",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Text Color",description:"Color variant for the text",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Text Primary",value:"textPrimary"},{label:"Text Secondary",value:"textSecondary"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),Ue(["primary","secondary","textPrimary","textSecondary","error","warning","info","success","inherit"]),F("design:type",String)],qr.prototype,"color",void 0);_([z({defaultValue:"inherit",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Text Alignment",description:"How to align the text horizontally",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),Ue(["left","center","right","justify","inherit"]),F("design:type",String)],qr.prototype,"align",void 0);_([z({defaultValue:"p",dataType:ut.STRING}),D({field_type:B.SELECT,label:"HTML Element",description:"The HTML element to render (affects semantics and accessibility)",validation:{options:[{label:"Paragraph (p)",value:"p"},{label:"Span",value:"span"},{label:"Div",value:"div"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Label",value:"label"},{label:"Legend",value:"legend"}]}}),W(),ae(),Ue(["p","span","div","h1","h2","h3","h4","h5","h6","label","legend"]),F("design:type",String)],qr.prototype,"component",void 0);_([z({defaultValue:"inherit",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Font Weight",description:"The weight (thickness) of the font",validation:{options:[{label:"Inherit",value:"inherit"},{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}}),W(),ae(),Ue(["inherit","lighter","normal","bold","bolder","100","200","300","400","500","600","700","800","900"]),F("design:type",String)],qr.prototype,"fontWeight",void 0);_([z({defaultValue:"none",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Text Decoration",description:"Text decoration style",validation:{options:[{label:"None",value:"none"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"}]}}),W(),ae(),Ue(["none","underline","overline","line-through"]),F("design:type",String)],qr.prototype,"textDecoration",void 0);_([z({defaultValue:"none",dataType:ut.STRING}),D({field_type:B.SELECT,label:"Text Transform",description:"How to transform the text case",validation:{options:[{label:"None",value:"none"},{label:"Capitalize",value:"capitalize"},{label:"Uppercase",value:"uppercase"},{label:"Lowercase",value:"lowercase"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),Ue(["none","capitalize","uppercase","lowercase","inherit"]),F("design:type",String)],qr.prototype,"textTransform",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"No Wrap",description:"Prevent text from wrapping to multiple lines"}),W(),Bt(),F("design:type",Boolean)],qr.prototype,"noWrap",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Paragraph Mode",description:"Apply paragraph spacing and formatting"}),W(),Bt(),F("design:type",Boolean)],qr.prototype,"paragraph",void 0);_([z({defaultValue:!1,dataType:ut.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Gutter Bottom",description:"Add margin bottom for spacing (useful for headings)"}),W(),Bt(),F("design:type",Boolean)],qr.prototype,"gutterBottom",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Font Size",description:'Custom font size (overrides variant sizing, e.g., "16px", "1.2rem")',placeholder:"16px"}),W(),ae(),F("design:type",String)],qr.prototype,"fontSize",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Line Height",description:'Custom line height (e.g., "1.5", "24px", "150%")',placeholder:"1.5"}),W(),ae(),F("design:type",String)],qr.prototype,"lineHeight",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Letter Spacing",description:'Custom letter spacing (e.g., "0.1em", "1px")',placeholder:"0.1em"}),W(),ae(),F("design:type",String)],qr.prototype,"letterSpacing",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXT,label:"Font Family",description:'Custom font family (e.g., "Arial, sans-serif")',placeholder:"Arial, sans-serif"}),W(),ae(),F("design:type",String)],qr.prototype,"fontFamily",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Custom Color",description:"Custom text color (CSS color value, overrides color variant)",placeholder:"#333333 or rgb(51, 51, 51)"}),W(),ae(),F("design:type",String)],qr.prototype,"customColor",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Max Width",description:'Maximum width for the text (e.g., "300px", "50%")',placeholder:"300px"}),W(),ae(),F("design:type",String)],qr.prototype,"maxWidth",void 0);_([z({dataType:ut.STRING}),D({field_type:B.TEXTAREA,label:"Rich Content",description:"Rich text content with React elements (for advanced use)",placeholder:"Rich content..."}),W(),F("design:type",Object)],qr.prototype,"children",void 0);qr=_([Ft("Text","1.0.0")],qr);let Gr=class extends mr{};_([z({defaultValue:"light"}),D({field_type:B.SELECT,label:"Print Theme",description:"Theme mode to use when printing",validation:{options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}}),W(),Ue(["light","dark"]),F("design:type",String)],Gr.prototype,"theme",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Print Palette",description:"Color palette to use for print output",validation:{options:[{label:"Default",value:"default"},{label:"Autumn",value:"autumn"},{label:"Cosmic",value:"cosmic"},{label:"Ocean",value:"ocean"},{label:"Spring",value:"spring"},{label:"Winter",value:"winter"}]}}),W(),ae(),F("design:type",String)],Gr.prototype,"palette",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Hide Scaffolding",description:"Hide app scaffolding (navigation, headers) when printing"}),W(),Bt(),F("design:type",Boolean)],Gr.prototype,"hideScaffolding",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Hide Interactive Elements",description:"Hide buttons and interactive elements when printing"}),W(),Bt(),F("design:type",Boolean)],Gr.prototype,"hideInteractiveElements",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Optimize For Monochrome",description:"Optimize design for black and white printing"}),W(),Bt(),F("design:type",Boolean)],Gr.prototype,"optimizeForMonochrome",void 0);_([z(),D({field_type:B.TEXT,label:"Print Title",description:"Custom title to show when printing (optional)",placeholder:"Document Title"}),W(),ae(),F("design:type",String)],Gr.prototype,"printTitle",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Print Date",description:"Include print date and time in printed output"}),W(),Bt(),F("design:type",Boolean)],Gr.prototype,"showPrintDate",void 0);_([z(),D({field_type:B.TEXT,label:"Print Header",description:"Custom header content for printed pages (HTML string or React component)",placeholder:"<div>Custom header content...</div>"}),W(),F("design:type",Object)],Gr.prototype,"printHeader",void 0);_([z(),D({field_type:B.TEXT,label:"Print Header (First Page)",description:"Different header for the first page only (overrides main header on page 1)",placeholder:"<div>First page header...</div>"}),W(),F("design:type",Object)],Gr.prototype,"printHeaderFirstPage",void 0);_([z(),D({field_type:B.TEXT,label:"Print Footer",description:"Custom footer content for printed pages (HTML string or React component)",placeholder:"<div>Custom footer content...</div>"}),W(),F("design:type",Object)],Gr.prototype,"printFooter",void 0);_([z(),D({field_type:B.TEXT,label:"Print Footer (First Page)",description:"Different footer for the first page only (overrides main footer on page 1)",placeholder:"<div>First page footer...</div>"}),W(),F("design:type",Object)],Gr.prototype,"printFooterFirstPage",void 0);_([z({defaultValue:"12mm"}),D({field_type:B.SELECT,label:"Page Margins",description:"Print page margins",validation:{options:[{label:"Compact (6mm)",value:"6mm"},{label:"Standard (12mm)",value:"12mm"},{label:"Large (20mm)",value:"20mm"},{label:"Formal (25mm)",value:"25mm"}]}}),W(),ae(),F("design:type",String)],Gr.prototype,"pageMargins",void 0);_([z({defaultValue:"60px"}),D({field_type:B.TEXT,label:"Print Header Height",description:"Height allocated for print header (CSS units: px, mm, etc.)",placeholder:"60px"}),W(),ae(),F("design:type",String)],Gr.prototype,"printHeaderHeight",void 0);_([z({defaultValue:"40px"}),D({field_type:B.TEXT,label:"Print Footer Height",description:"Height allocated for print footer (CSS units: px, mm, etc.)",placeholder:"40px"}),W(),ae(),F("design:type",String)],Gr.prototype,"printFooterHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Print Background",description:"CSS background for all printed pages (color, gradient, or image)",placeholder:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"}),W(),ae(),F("design:type",String)],Gr.prototype,"printBackground",void 0);_([z(),D({field_type:B.TEXT,label:"Print Background (First Page)",description:"Different background for the first page only",placeholder:"url(/logo-watermark.png) no-repeat center, #ffffff"}),W(),ae(),F("design:type",String)],Gr.prototype,"printBackgroundFirstPage",void 0);Gr=_([Ft("PrintConfig","1.0.0")],Gr);let un=class extends xt{};_([z(),D({field_type:B.TEXT,label:"Page Slug",description:'URL-friendly page identifier (e.g., "about-us")',placeholder:"page-slug"}),W(),ae(),F("design:type",String)],un.prototype,"slug",void 0);_([z(),D({field_type:B.TEXT,label:"Page Name",description:"Human-readable page name",placeholder:"About Us"}),W(),ae(),F("design:type",String)],un.prototype,"name",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Page Description",description:"Description of the page content (used for SEO)",placeholder:"Brief description of this page..."}),W(),ae(),F("design:type",String)],un.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Page Title",description:"HTML title tag content (defaults to name if not provided)",placeholder:"Page Title | Site Name"}),W(),ae(),F("design:type",String)],un.prototype,"title",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Meta Keywords",description:"SEO keywords (comma-separated)",placeholder:"keyword1, keyword2, keyword3"}),W(),ae(),F("design:type",String)],un.prototype,"metaKeywords",void 0);_([z(),D({field_type:B.TEXT,label:"Meta Author",description:"Page author information",placeholder:"Author Name"}),W(),ae(),F("design:type",String)],un.prototype,"metaAuthor",void 0);_([z(),D({field_type:B.URL,label:"Canonical URL",description:"Canonical URL for SEO (optional)",placeholder:"https://example.com/page"}),W(),ae(),F("design:type",String)],un.prototype,"canonicalUrl",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Page Content",description:"Main page content - can include React components and HTML"}),W(),F("design:type",Object)],un.prototype,"children",void 0);_([z(),D({field_type:B.FORM,label:"Print Configuration",description:"Configuration for print mode behavior"}),W(),oo(),ao(()=>Gr),F("design:type",Gr)],un.prototype,"printConfig",void 0);_([z(),D({field_type:B.TEXT,label:"Layout Template",description:"Layout template identifier to use for this page",placeholder:"default, fullwidth, sidebar, etc."}),W(),ae(),F("design:type",String)],un.prototype,"layout",void 0);_([z(),D({field_type:B.TEXT,label:"Page Icon",description:"Icon identifier for page (used in navigation)",placeholder:"home, about, contact"}),W(),ae(),F("design:type",String)],un.prototype,"icon",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Requires Authentication",description:"Whether this page requires user authentication"}),W(),F("design:type",Boolean)],un.prototype,"requiresAuth",void 0);_([z(),D({field_type:B.TEXT,label:"Required Roles",description:"Comma-separated list of roles required to access this page",placeholder:"admin, user, moderator"}),W(),ae(),F("design:type",String)],un.prototype,"requiredRoles",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show in Navigation",description:"Whether to include this page in navigation menus"}),W(),F("design:type",Boolean)],un.prototype,"showInNavigation",void 0);_([z({defaultValue:0}),D({field_type:B.NUMBER,label:"Navigation Priority",description:"Priority in navigation (lower numbers appear first)"}),W(),F("design:type",Number)],un.prototype,"navigationPriority",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Indexable",description:"Whether search engines should index this page"}),W(),F("design:type",Boolean)],un.prototype,"indexable",void 0);un=_([Ft("PageTemplate","1.0.0")],un);const TU=U0.create().withName("Control Panel").withId("com.qwickapps.control-panel").withVersion("1.0.0").withDefaultTheme("dark").withDefaultPalette("cosmic").withThemeSwitcher(!0).withPaletteSwitcher(!0).withDisplay("standalone").build(),lj=b.createContext(null);function kU({initialWidgets:e=[],children:t}){const[r,n]=b.useState(e.map(d=>({...d,visible:d.visible!==!1,priority:d.priority??100}))),o=b.useCallback(d=>{n(f=>f.some(v=>v.id===d.id)?f.map(v=>v.id===d.id?{...d,visible:d.visible!==!1,priority:d.priority??100}:v):[...f,{...d,visible:d.visible!==!1,priority:d.priority??100}])},[]),a=b.useCallback(d=>{n(f=>f.filter(h=>h.id!==d))},[]),c=b.useCallback((d,f)=>{n(h=>h.map(v=>v.id===d?{...v,visible:f??!v.visible}:v))},[]),u=b.useCallback(()=>r.filter(d=>d.visible!==!1).sort((d,f)=>(d.priority??100)-(f.priority??100)),[r]);return l.jsx(lj.Provider,{value:{widgets:r,registerWidget:o,unregisterWidget:a,toggleWidget:c,getVisibleWidgets:u},children:t})}function jU(){const e=b.useContext(lj);if(!e)throw new Error("useDashboardWidgets must be used within a DashboardWidgetProvider");return e}function PU(){const{getVisibleWidgets:e}=jU(),t=e();return t.length===0?null:l.jsx(l.Fragment,{children:t.map(r=>l.jsxs(ne,{sx:{mt:4},children:[r.title&&l.jsx(pe,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:r.title}),r.component]},r.id))})}const cj=b.createContext(null);function IU({initialComponents:e=[],children:t}){const[r,n]=b.useState(()=>{const h=new Map;for(const v of e)h.set(v.name,v.component);return h}),o=b.useCallback((h,v)=>{n(m=>{const y=new Map(m);return y.set(h,v),y})},[]),a=b.useCallback(h=>{n(v=>{const m=new Map(v);for(const y of h)m.set(y.name,y.component);return m})},[]),c=b.useCallback(h=>r.get(h)??null,[r]),u=b.useCallback(h=>r.has(h),[r]),d=b.useCallback(()=>Array.from(r.keys()),[r]),f=b.useMemo(()=>({registerComponent:o,registerComponents:a,getComponent:c,hasComponent:u,getRegisteredNames:d}),[o,a,c,u,d]);return l.jsx(cj.Provider,{value:f,children:t})}function MU(){const e=b.useContext(cj);if(!e)throw new Error("useWidgetComponentRegistry must be used within a WidgetComponentRegistryProvider");return e}class RU{constructor(t=""){ks(this,"baseUrl");this.baseUrl=t}setBaseUrl(t){this.baseUrl=t}getBaseUrl(){return this.baseUrl}async fetch(t,r){const n=`${this.baseUrl}/api${t.startsWith("/")?t:`/${t}`}`,o=await fetch(n,{...r,headers:{"Content-Type":"application/json",...r==null?void 0:r.headers}});if(!o.ok){const a=await o.json().catch(()=>({}));throw new Error(a.error||a.message||`Request failed: ${o.statusText}`)}return o.json()}async detectFeatures(){const[t,r,n]=await Promise.all([this.checkEndpoint("/api/users"),this.checkEndpoint("/api/bans"),this.checkEndpoint("/api/entitlements/available")]);let o=!0;if(n)try{o=(await this.getEntitlementsStatus()).readonly}catch{}return{users:t,bans:r,entitlements:n,entitlementsReadonly:o}}async checkEndpoint(t){try{return(await fetch(`${this.baseUrl}${t}`,{method:"HEAD"})).status!==404}catch{return!1}}async getUsers(t={}){const r=new URLSearchParams;t.limit&&r.set("limit",t.limit.toString()),t.page&&r.set("page",t.page.toString()),t.search&&r.set("q",t.search);const n=await fetch(`${this.baseUrl}/api/users?${r}`);if(!n.ok)throw new Error(`Users request failed: ${n.statusText}`);return n.json()}async getUserById(t){const r=await fetch(`${this.baseUrl}/api/users/${t}`);if(!r.ok)throw new Error(`User request failed: ${r.statusText}`);return r.json()}async getBans(){const t=await fetch(`${this.baseUrl}/api/bans`);if(!t.ok)throw new Error(`Bans request failed: ${t.statusText}`);return t.json()}async banUser(t,r,n){let o;if(n){const c=new Date(n),u=new Date;o=Math.max(0,Math.floor((c.getTime()-u.getTime())/1e3))}const a=await fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:r,duration:o})});if(!a.ok){const c=await a.json().catch(()=>({}));throw new Error(c.error||`Ban request failed: ${a.statusText}`)}}async unbanUser(t){const r=await fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(t)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Unban request failed: ${r.statusText}`)}async checkBan(t){const r=await fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(t)}`);if(!r.ok)throw new Error(`Ban check failed: ${r.statusText}`);return{banned:(await r.json()).isBanned}}async getEntitlements(t){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(t)}`);if(!r.ok)throw new Error(`Entitlements request failed: ${r.statusText}`);return r.json()}async refreshEntitlements(t){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(t)}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Entitlements refresh failed: ${r.statusText}`);return r.json()}async checkEntitlement(t,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(t)}/check/${encodeURIComponent(r)}`);if(!n.ok)throw new Error(`Entitlement check failed: ${n.statusText}`);return n.json()}async getAvailableEntitlements(){const t=await fetch(`${this.baseUrl}/api/entitlements/available`);if(!t.ok)throw new Error(`Available entitlements request failed: ${t.statusText}`);return(await t.json()).entitlements}async grantEntitlement(t,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entitlement:r})});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`Grant entitlement failed: ${n.statusText}`)}}async revokeEntitlement(t,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Revoke entitlement failed: ${n.statusText}`)}async invalidateEntitlementCache(t){const r=await fetch(`${this.baseUrl}/api/entitlements/cache/${encodeURIComponent(t)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Cache invalidation failed: ${r.statusText}`)}async getEntitlementsStatus(){const t=await fetch(`${this.baseUrl}/api/entitlements/status`);if(!t.ok)throw new Error(`Entitlements status request failed: ${t.statusText}`);return t.json()}async getHealth(){const t=await fetch(`${this.baseUrl}/api/health`);if(!t.ok)throw new Error(`Health check failed: ${t.statusText}`);return t.json()}async getInfo(){const t=await fetch(`${this.baseUrl}/api/info`);if(!t.ok)throw new Error(`Info request failed: ${t.statusText}`);return t.json()}async getDiagnostics(){const t=await fetch(`${this.baseUrl}/api/diagnostics`);if(!t.ok)throw new Error(`Diagnostics request failed: ${t.statusText}`);return t.json()}async getConfig(){const t=await fetch(`${this.baseUrl}/api/config`);if(!t.ok)throw new Error(`Config request failed: ${t.statusText}`);return t.json()}async getLogs(t={}){const r=new URLSearchParams;t.source&&r.set("source",t.source),t.level&&r.set("level",t.level),t.search&&r.set("search",t.search),t.limit&&r.set("limit",t.limit.toString()),t.page&&r.set("page",t.page.toString());const n=await fetch(`${this.baseUrl}/api/logs?${r}`);if(!n.ok)throw new Error(`Logs request failed: ${n.statusText}`);return n.json()}async getLogSources(){const t=await fetch(`${this.baseUrl}/api/logs/sources`);if(!t.ok)throw new Error(`Log sources request failed: ${t.statusText}`);return(await t.json()).sources}async getPlugins(){const t=await fetch(`${this.baseUrl}/api/plugins`);if(!t.ok)throw new Error(`Plugins request failed: ${t.statusText}`);return t.json()}async getPluginDetail(t){const r=await fetch(`${this.baseUrl}/api/plugins/${encodeURIComponent(t)}`);if(!r.ok)throw r.status===404?new Error(`Plugin not found: ${t}`):new Error(`Plugin detail request failed: ${r.statusText}`);return r.json()}async getUiContributions(){const t=await fetch(`${this.baseUrl}/api/ui-contributions`);if(!t.ok)throw new Error(`UI contributions request failed: ${t.statusText}`);return t.json()}async getAuthConfigStatus(){const t=await fetch(`${this.baseUrl}/api/auth/config/status`);if(!t.ok){if(t.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config status request failed: ${t.statusText}`)}return t.json()}async getAuthConfig(){const t=await fetch(`${this.baseUrl}/api/auth/config`);if(!t.ok){if(t.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config request failed: ${t.statusText}`)}return t.json()}async updateAuthConfig(t){const r=await fetch(`${this.baseUrl}/api/auth/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Auth config update failed: ${r.statusText}`)}return r.json()}async deleteAuthConfig(){const t=await fetch(`${this.baseUrl}/api/auth/config`,{method:"DELETE"});if(!t.ok){const r=await t.json().catch(()=>({}));throw new Error(r.error||`Auth config delete failed: ${t.statusText}`)}return t.json()}async testAuthProvider(t){const r=await fetch(`${this.baseUrl}/api/auth/test-provider`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Provider test failed: ${r.statusText}`)}return r.json()}async testCurrentAuthProvider(){const t=await fetch(`${this.baseUrl}/api/auth/test-current`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok){const r=await t.json().catch(()=>({}));throw new Error(r.error||`Provider test failed: ${t.statusText}`)}return t.json()}async getRateLimitConfig(){const t=await fetch(`${this.baseUrl}/api/rate-limit/config`);if(!t.ok)throw new Error(`Rate limit config request failed: ${t.statusText}`);return t.json()}async updateRateLimitConfig(t){const r=await fetch(`${this.baseUrl}/api/rate-limit/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Rate limit config update failed: ${r.statusText}`)}return r.json()}async getNotificationsStats(){const t=await fetch(`${this.baseUrl}/api/notifications/stats`);if(!t.ok)throw new Error(`Notifications stats request failed: ${t.statusText}`);return t.json()}async getNotificationsClients(){const t=await fetch(`${this.baseUrl}/api/notifications/clients`);if(!t.ok)throw new Error(`Notifications clients request failed: ${t.statusText}`);return t.json()}async disconnectNotificationsClient(t){const r=await fetch(`${this.baseUrl}/api/notifications/clients/${encodeURIComponent(t)}`,{method:"DELETE"});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Disconnect client failed: ${r.statusText}`)}return r.json()}async forceNotificationsReconnect(){const t=await fetch(`${this.baseUrl}/api/notifications/reconnect`,{method:"POST"});if(!t.ok){const r=await t.json().catch(()=>({}));throw new Error(r.error||`Force reconnect failed: ${t.statusText}`)}return t.json()}}const At=new RU;function AU({defaultOnly:e=!0,additionalWidgetIds:t=[]}){const[r,n]=b.useState([]),[o,a]=b.useState(!0),[c,u]=b.useState(null),{getComponent:d,hasComponent:f}=MU();if(b.useEffect(()=>{(async()=>{try{const m=await At.getUiContributions();n(m.widgets||[]),u(null)}catch(m){u(m instanceof Error?m.message:"Failed to fetch widgets")}finally{a(!1)}})()},[]),o)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(cr,{size:24})});if(c)return l.jsx(Kt,{severity:"error",sx:{mt:2},children:c});const h=r.filter(v=>e?v.showByDefault||t.includes(v.id):!0).filter(v=>f(v.component)?!0:(console.warn(`Widget "${v.id}" references unregistered component "${v.component}"`),!1)).sort((v,m)=>(v.priority??100)-(m.priority??100));return h.length===0?null:l.jsx(l.Fragment,{children:h.map(v=>{const m=d(v.component);return l.jsxs(ne,{sx:{mt:4},children:[v.title&&l.jsx(pe,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:v.title}),m&&l.jsx(m,{})]},v.id)})})}function _U(e){switch(e){case"healthy":return l.jsx(Di,{sx:{fontSize:24,color:"var(--theme-success)"}});case"degraded":return l.jsx(ed,{sx:{fontSize:24,color:"var(--theme-warning)"}});case"unhealthy":return l.jsx(Wo,{sx:{fontSize:24,color:"var(--theme-error)"}});default:return l.jsx(ed,{sx:{fontSize:24,color:"var(--theme-text-secondary)"}})}}function eC(e){switch(e){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function LU(e){return e<=1?1:e===2?2:e===3?3:4}function OU(){const[e,t]=b.useState(null),[r,n]=b.useState(null);if(b.useEffect(()=>{const c=async()=>{try{const d=await At.getHealth();t(d),n(null)}catch(d){n(d instanceof Error?d.message:"Failed to fetch health")}};c();const u=setInterval(c,1e4);return()=>clearInterval(u)},[]),r)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(vt,{variant:"body2",customColor:"var(--theme-error)",content:r})})});const o=e?Object.entries(e.checks):[];if(o.length===0)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsx(vt,{variant:"body2",customColor:"var(--theme-text-secondary)",content:"No health checks configured"})})});const a=LU(o.length);return l.jsx(kc,{columns:a,spacing:"medium",equalHeight:!0,children:o.map(([c,u])=>l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[_U(u.status),l.jsxs(ne,{sx:{flex:1,minWidth:0},children:[l.jsx(vt,{variant:"body1",fontWeight:"500",content:c.charAt(0).toUpperCase()+c.slice(1),customColor:"var(--theme-text-primary)"}),l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[l.jsx(qt,{label:u.status,size:"small",sx:{bgcolor:eC(u.status)+"20",color:eC(u.status),fontSize:"0.75rem",height:20}}),u.latency!==void 0&&l.jsx(vt,{variant:"caption",content:`${u.latency}ms`,customColor:"var(--theme-text-secondary)"})]})]})]})})},c))})}function NU(){const[e,t]=b.useState(null),[r,n]=b.useState(!0),[o,a]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await At.fetch("/ai-proxy/config");t(f)}catch(f){a(f instanceof Error?f.message:"Failed to fetch integrations")}finally{n(!1)}})()},[]),r)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(cr,{size:20})});if(o)return l.jsx(Kt,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load integrations"});if(!e)return null;const c=e.integrations.filter(d=>d.configured).length,u=e.integrations.length;return l.jsxs(ne,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[c," of ",u," configured"]}),l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[e.stats.totalRequests," requests"]})]}),l.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.integrations.map(d=>l.jsxs(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.configured?l.jsx(Di,{sx:{color:"var(--theme-success)",fontSize:18}}):l.jsx(Wo,{sx:{color:"var(--theme-text-secondary)",fontSize:18}}),l.jsxs(ne,{children:[l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-primary)",fontWeight:500},children:d.name}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:d.description})]})]}),l.jsx(qt,{label:d.configured?"Connected":"Not Configured",size:"small",sx:{bgcolor:d.configured?"var(--theme-success)20":"transparent",color:d.configured?"var(--theme-success)":"var(--theme-text-secondary)",border:d.configured?"none":"1px solid var(--theme-border)",fontWeight:500,fontSize:11}})]},d.id))})]})}const $U={supertokens:"SuperTokens",auth0:"Auth0",supabase:"Supabase",basic:"Basic Auth"};function BU(){const[e,t]=b.useState(null),[r,n]=b.useState(!0),[o,a]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await At.fetch("/auth/config/status");t(f)}catch(f){a(f instanceof Error?f.message:"Failed to fetch auth status")}finally{n(!1)}})()},[]),r)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(cr,{size:20})});if(o)return l.jsx(Kt,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load auth status"});if(!e)return null;const c=()=>{switch(e.state){case"enabled":return l.jsx(Di,{sx:{color:"var(--theme-success)",fontSize:32}});case"error":return l.jsx(Wo,{sx:{color:"var(--theme-error)",fontSize:32}});case"disabled":default:return l.jsx(_h,{sx:{color:"var(--theme-text-secondary)",fontSize:32}})}},u=()=>{switch(e.state){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}};return l.jsxs(ne,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c(),l.jsxs(ne,{sx:{flex:1},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[l.jsx(pe,{variant:"subtitle1",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:e.state==="enabled"&&e.adapter?$U[e.adapter]||e.adapter:e.state==="disabled"?"Not Configured":"Configuration Error"}),l.jsx(qt,{label:e.state.toUpperCase(),size:"small",sx:{bgcolor:`${u()}20`,color:u(),fontWeight:600,fontSize:10,height:20}})]}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:e.state==="enabled"?"Authentication is active":e.state==="disabled"?"Set AUTH_ADAPTER environment variable":e.error||"Check configuration"})]})]}),e.missingVars&&e.missingVars.length>0&&l.jsxs(Kt,{severity:"warning",sx:{mt:2,py:.5,"& .MuiAlert-message":{fontSize:12}},children:["Missing: ",e.missingVars.join(", ")]})]})}function Ha({icon:e,label:t,value:r,subValue:n,color:o="var(--theme-primary)"}){return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsx(gt,{sx:{py:1.5,"&:last-child":{pb:1.5}},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[l.jsx(ne,{sx:{color:o},children:e}),l.jsxs(ne,{sx:{flex:1,minWidth:0},children:[l.jsx(vt,{variant:"h4",content:String(r),customColor:"var(--theme-text-primary)",fontWeight:"600"}),l.jsx(vt,{variant:"caption",content:t,customColor:"var(--theme-text-secondary)"}),n&&l.jsx(vt,{variant:"caption",content:n,customColor:"var(--theme-text-secondary)",sx:{display:"block",mt:.25}})]})]})})})}function Kl(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function xv(e){return e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(0)}s`:e<36e5?`${(e/6e4).toFixed(0)}m`:`${(e/36e5).toFixed(1)}h`}function $l(e,t=12){return e.length>t?`${e.substring(0,t)}...`:e}function zU(){const[e,t]=b.useState(null),[r,n]=b.useState(null),[o,a]=b.useState(!0);if(b.useEffect(()=>{const d=async()=>{try{const h=await At.getNotificationsStats();t(h),n(null)}catch(h){h instanceof Error&&h.message.includes("404")?n("Notifications plugin not enabled"):n(h instanceof Error?h.message:"Failed to fetch stats")}finally{a(!1)}};d();const f=setInterval(d,5e3);return()=>clearInterval(f)},[]),o)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsx(Sd,{})})});if(r)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-border)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Hf,{sx:{color:"var(--theme-text-secondary)"}}),l.jsx(vt,{variant:"body2",customColor:"var(--theme-text-secondary)",content:r})]})})});if(!e)return null;const c=e.connectionHealth.isHealthy,u=c?"var(--theme-success)":"var(--theme-warning)";return l.jsxs(ne,{children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:2},children:l.jsx(gt,{sx:{py:1,"&:last-child":{pb:1}},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c?l.jsx(ST,{sx:{color:u,fontSize:20}}):l.jsx(Hf,{sx:{color:u,fontSize:20}}),l.jsx(vt,{variant:"body2",content:c?"Connected":"Reconnecting...",customColor:u,fontWeight:"500"}),e.connectionHealth.isReconnecting&&l.jsx(qt,{label:`Attempt ${e.connectionHealth.reconnectAttempts}`,size:"small",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)",fontSize:"0.7rem",height:18}})]}),l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(vt,{variant:"caption",content:`${e.channels.length} channel${e.channels.length!==1?"s":""}`,customColor:"var(--theme-text-secondary)"}),e.lastEventAt&&l.jsx(vt,{variant:"caption",content:`Last event: ${xv(e.connectionHealth.timeSinceLastEvent)} ago`,customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsxs(kc,{columns:4,spacing:"small",equalHeight:!0,children:[l.jsx(Ha,{icon:l.jsx(Wy,{sx:{fontSize:28}}),label:"Active Clients",value:e.currentConnections,subValue:`${e.totalConnections} total`,color:"var(--theme-primary)"}),l.jsx(Ha,{icon:l.jsx(ac,{sx:{fontSize:28}}),label:"By Device",value:e.clientsByType.device,subValue:`${e.clientsByType.user} by user`,color:"var(--theme-info)"}),l.jsx(Ha,{icon:l.jsx(p0,{sx:{fontSize:28}}),label:"Events Routed",value:Kl(e.eventsRouted),subValue:`${Kl(e.eventsProcessed)} processed`,color:"var(--theme-success)"}),l.jsx(Ha,{icon:l.jsx(Wo,{sx:{fontSize:28}}),label:"Dropped",value:Kl(e.eventsDroppedNoClients),subValue:`${e.eventsParseFailed} parse errors`,color:e.eventsDroppedNoClients>0?"var(--theme-warning)":"var(--theme-text-secondary)"})]})]})}function DU(){return[{name:"ServiceHealthWidget",component:OU},{name:"IntegrationStatusWidget",component:NU},{name:"AuthStatusWidget",component:BU},{name:"NotificationsStatsWidget",component:zU}]}function FU(e){switch(e){case"healthy":return l.jsx(Di,{sx:{color:"var(--theme-success)"}});case"degraded":return l.jsx(ed,{sx:{color:"var(--theme-warning)"}});case"unhealthy":return l.jsx(Wo,{sx:{color:"var(--theme-error)"}});default:return l.jsx(cr,{size:20})}}function ay(e){switch(e){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function HU(){var m,y;const e=Ev(),[t,r]=b.useState(null),[n,o]=b.useState(null),[a,c]=b.useState(!0),[u,d]=b.useState(null);if(b.useEffect(()=>{const x=async()=>{try{const[C,P]=await Promise.all([At.getHealth(),At.getInfo()]);r(C),o(P),d(null)}catch(C){d(C instanceof Error?C.message:"Failed to fetch data")}finally{c(!1)}};x();const w=setInterval(x,1e4);return()=>clearInterval(w)},[]),a)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})});if(u)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(pe,{color:"error",children:u})})});const f=t?Object.entries(t.checks):[],h=f.filter(([,x])=>x.status==="healthy").length,v=f.length;return l.jsxs(ne,{children:[l.jsx(pe,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Dashboard"}),l.jsxs(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Real-time overview of ",(n==null?void 0:n.product)||"your service"]}),l.jsx(yt,{sx:{mb:4,bgcolor:"var(--theme-surface)",border:`2px solid ${ay((t==null?void 0:t.status)||"unknown")}`},children:l.jsx(V_,{onClick:()=>e("/health"),children:l.jsxs(gt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[FU((t==null?void 0:t.status)||"unknown"),l.jsxs(ne,{children:[l.jsxs(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Service Status: ",(m=t==null?void 0:t.status)==null?void 0:m.charAt(0).toUpperCase(),(y=t==null?void 0:t.status)==null?void 0:y.slice(1)]}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Click to view detailed health information"})]})]}),l.jsx(qt,{label:`${h}/${v} checks passing`,sx:{bgcolor:ay((t==null?void 0:t.status)||"unknown")+"20",color:ay((t==null?void 0:t.status)||"unknown")}})]})})}),l.jsx(AU,{}),l.jsx(PU,{})]})}function tC(e){switch(e.toLowerCase()){case"error":return"var(--theme-error)";case"warn":case"warning":return"var(--theme-warning)";case"info":return"var(--theme-info)";case"debug":return"var(--theme-text-secondary)";default:return"var(--theme-text-primary)"}}function VU(){const[e,t]=b.useState([]),[r,n]=b.useState([]),[o,a]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState(""),[h,v]=b.useState(""),[m,y]=b.useState(""),[x,w]=b.useState(1),[C,P]=b.useState(0),k=50,[I,T]=b.useState(!1),[M,R]=b.useState("desc"),L=b.useRef(null),A={total:C,errors:e.filter(V=>V.level.toLowerCase()==="error").length,warnings:e.filter(V=>["warn","warning"].includes(V.level.toLowerCase())).length,info:e.filter(V=>V.level.toLowerCase()==="info").length,debug:e.filter(V=>V.level.toLowerCase()==="debug").length},H=b.useCallback(async()=>{a(!0);try{const V=await At.getLogs({source:d||void 0,level:h||void 0,search:m||void 0,limit:k,page:x}),O=[...V.logs].sort((U,K)=>{const Y=new Date(U.timestamp).getTime(),Z=new Date(K.timestamp).getTime();return M==="desc"?Z-Y:Y-Z});t(O),P(V.total),u(null)}catch(V){u(V instanceof Error?V.message:"Failed to fetch logs")}finally{a(!1)}},[d,h,m,x,M]),G=async()=>{try{const V=await At.getLogSources();n(V)}catch{}};b.useEffect(()=>{G()},[]),b.useEffect(()=>{H()},[H]),b.useEffect(()=>(I?L.current=setInterval(H,5e3):L.current&&(clearInterval(L.current),L.current=null),()=>{L.current&&clearInterval(L.current)}),[I,H]);const $=()=>{w(1),H()},j=(V,O)=>{O!==null&&R(O)},q=Math.ceil(C/k);return l.jsxs(ne,{children:[l.jsx(pe,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Logs"}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View and search application logs"}),l.jsxs($n,{container:!0,spacing:2,sx:{mb:3},children:[l.jsx($n,{size:{xs:6,sm:3,md:2.4},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsx(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.total.toLocaleString()})}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Total Logs"})]})})}),l.jsx($n,{size:{xs:6,sm:3,md:2.4},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Wo,{sx:{color:"var(--theme-error)",fontSize:20}}),l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-error)",fontWeight:600},children:A.errors})]}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Errors"})]})})}),l.jsx($n,{size:{xs:6,sm:3,md:2.4},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(ed,{sx:{color:"var(--theme-warning)",fontSize:20}}),l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-warning)",fontWeight:600},children:A.warnings})]}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Warnings"})]})})}),l.jsx($n,{size:{xs:6,sm:3,md:2.4},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Gy,{sx:{color:"var(--theme-info)",fontSize:20}}),l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-info)",fontWeight:600},children:A.info})]}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Info"})]})})}),l.jsx($n,{size:{xs:6,sm:3,md:2.4},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(R7,{sx:{color:"var(--theme-text-secondary)",fontSize:20}}),l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.debug})]}),l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Debug"})]})})})]}),l.jsx(yt,{sx:{mb:3,bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",gap:2,flexWrap:"wrap",alignItems:"center"},children:[r.length>0&&l.jsxs(_i,{size:"small",sx:{minWidth:150},children:[l.jsx(Ga,{sx:{color:"var(--theme-text-secondary)"},children:"Source"}),l.jsxs(aa,{value:d,label:"Source",onChange:V=>f(V.target.value),sx:{color:"var(--theme-text-primary)"},children:[l.jsx(Sr,{value:"",children:"All Sources"}),r.map(V=>l.jsx(Sr,{value:V.name,children:V.name},V.name))]})]}),l.jsxs(_i,{size:"small",sx:{minWidth:120},children:[l.jsx(Ga,{sx:{color:"var(--theme-text-secondary)"},children:"Level"}),l.jsxs(aa,{value:h,label:"Level",onChange:V=>v(V.target.value),sx:{color:"var(--theme-text-primary)"},children:[l.jsx(Sr,{value:"",children:"All Levels"}),l.jsx(Sr,{value:"error",children:"Error"}),l.jsx(Sr,{value:"warn",children:"Warning"}),l.jsx(Sr,{value:"info",children:"Info"}),l.jsx(Sr,{value:"debug",children:"Debug"})]})]}),l.jsx(Rt,{size:"small",placeholder:"Search logs...",value:m,onChange:V=>y(V.target.value),onKeyPress:V=>V.key==="Enter"&&$(),sx:{flex:1,minWidth:200,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},InputProps:{startAdornment:l.jsx(Oh,{sx:{mr:1,color:"var(--theme-text-secondary)"}})}}),l.jsxs(U8,{value:M,exclusive:!0,onChange:j,size:"small","aria-label":"sort order",children:[l.jsx(bS,{value:"desc","aria-label":"newest first",children:l.jsx(fr,{title:"Newest First",children:l.jsx(P7,{fontSize:"small"})})}),l.jsx(bS,{value:"asc","aria-label":"oldest first",children:l.jsx(fr,{title:"Oldest First",children:l.jsx(I7,{fontSize:"small"})})})]}),l.jsx(fr,{title:I?"Pause auto-refresh":"Enable auto-refresh (5s)",children:l.jsx(Qt,{onClick:()=>T(!I),sx:{color:I?"var(--theme-success)":"var(--theme-text-secondary)",bgcolor:I?"var(--theme-success)20":"transparent"},children:I?l.jsx(pB,{}):l.jsx(sc,{})})}),l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:H,sx:{color:"var(--theme-primary)"},children:l.jsx(Ys,{})})})]})})}),c&&l.jsx(yt,{sx:{mb:3,bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(pe,{color:"error",children:c})})}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:o?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",p:4},children:l.jsx(cr,{})}):e.length===0?l.jsx(gt,{children:l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No logs found"})}):l.jsxs(l.Fragment,{children:[l.jsx(Qa,{children:l.jsxs(Xa,{size:"small",children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:180},children:"Timestamp"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:100},children:"Level"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:120},children:"Component"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Message"})]})}),l.jsx(Ka,{children:e.map((V,O)=>l.jsxs(Ur,{hover:!0,children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:new Date(V.timestamp).toLocaleString()}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(qt,{label:V.level.toUpperCase(),size:"small",sx:{bgcolor:tC(V.level)+"20",color:tC(V.level),fontSize:"0.65rem",height:20}})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontSize:"0.75rem"},children:V.namespace||"-"}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:V.message})]},O))})]})}),q>1&&l.jsx(ne,{sx:{display:"flex",justifyContent:"center",p:2},children:l.jsx(DN,{count:q,page:x,onChange:(V,O)=>w(O),sx:{"& .MuiPaginationItem-root":{color:"var(--theme-text-primary)"}}})})]})})]})}function sy(e){if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,n)).toFixed(2))+" "+r[n]}function UU(e){const t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60),o=Math.floor(n/24);return o>0?`${o}d ${n%24}h ${r%60}m`:n>0?`${n}h ${r%60}m ${t%60}s`:r>0?`${r}m ${t%60}s`:`${t}s`}function WU(e,t=20){switch(e){case"healthy":return l.jsx(Di,{sx:{color:"var(--theme-success)",fontSize:t}});case"degraded":return l.jsx(ed,{sx:{color:"var(--theme-warning)",fontSize:t}});case"unhealthy":return l.jsx(Wo,{sx:{color:"var(--theme-error)",fontSize:t}});default:return l.jsx(cr,{size:t})}}function wu(e){switch(e){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function qU(e){return e===void 0?"-":e<1e3?`${e}ms`:`${(e/1e3).toFixed(2)}s`}function GU(){const[e,t]=b.useState(null),[r,n]=b.useState(null),[o,a]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState({open:!1,message:""}),h=async()=>{a(!0);try{const[y,x]=await Promise.all([At.getDiagnostics(),At.getHealth().catch(()=>null)]);t(y),n(x),u(null)}catch(y){u(y instanceof Error?y.message:"Failed to fetch diagnostics")}finally{a(!1)}};b.useEffect(()=>{h();const y=setInterval(h,3e4);return()=>clearInterval(y)},[]);const v=()=>{navigator.clipboard.writeText(JSON.stringify(e,null,2)),f({open:!0,message:"Diagnostics copied to clipboard"})};if(o&&!e)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})});if(c)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(pe,{color:"error",children:c})})});const m=e?e.system.memory.used/e.system.memory.total*100:0;return l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"System"}),l.jsxs(ne,{sx:{display:"flex",gap:1},children:[l.jsx(fr,{title:"Copy diagnostics JSON",children:l.jsx(Qt,{onClick:v,sx:{color:"var(--theme-primary)"},children:l.jsx(u0,{})})}),l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:h,sx:{color:"var(--theme-primary)"},children:l.jsx(Ys,{})})})]})]}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"System information and diagnostics"}),l.jsxs($n,{container:!0,spacing:3,children:[l.jsx($n,{size:{xs:12,md:6},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(mT,{sx:{color:"var(--theme-primary)"}}),l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"System Information"})]}),l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"QwickApps Server"}),l.jsx(qt,{label:e!=null&&e.frameworkVersion?`v${e.frameworkVersion}`:"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Node.js"}),l.jsx(qt,{label:e==null?void 0:e.system.nodeVersion,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Platform"}),l.jsx(qt,{label:e==null?void 0:e.system.platform,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Architecture"}),l.jsx(qt,{label:e==null?void 0:e.system.arch,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]})]})]})})}),l.jsx($n,{size:{xs:12,md:6},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(vT,{sx:{color:"var(--theme-warning)"}}),l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Memory Usage"})]}),l.jsxs(ne,{sx:{mb:2},children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Used"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:sy((e==null?void 0:e.system.memory.used)||0)})]}),l.jsx(Sd,{variant:"determinate",value:m,sx:{height:8,borderRadius:4,bgcolor:"var(--theme-background)","& .MuiLinearProgress-bar":{bgcolor:m>80?"var(--theme-error)":"var(--theme-warning)",borderRadius:4}}})]}),l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Total"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:sy((e==null?void 0:e.system.memory.total)||0)})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Free"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:sy((e==null?void 0:e.system.memory.free)||0)})]})]})]})})}),l.jsx($n,{size:{xs:12,md:6},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(f0,{sx:{color:"var(--theme-info)"}}),l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Service Info"})]}),l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Product"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:e==null?void 0:e.product})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Version"}),l.jsx(qt,{label:(e==null?void 0:e.version)||"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Timestamp"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)",fontSize:"0.875rem"},children:e!=null&&e.timestamp?new Date(e.timestamp).toLocaleString():"N/A"})]})]})]})})}),l.jsx($n,{size:{xs:12,md:6},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(T7,{sx:{color:"var(--theme-success)"}}),l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Uptime"})]}),l.jsx(pe,{variant:"h3",sx:{color:"var(--theme-success)",mb:1},children:UU((e==null?void 0:e.uptime)||0)}),l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"Service has been running without interruption"})]})})}),r&&l.jsx($n,{size:{xs:12},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(qy,{sx:{color:wu(r.status)}}),l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Health Checks"}),l.jsx(qt,{label:r.status,size:"small",sx:{bgcolor:wu(r.status)+"20",color:wu(r.status),textTransform:"capitalize",ml:"auto"}})]}),l.jsx(Qa,{children:l.jsxs(Xa,{size:"small",children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Check"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Latency"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Checked"})]})}),l.jsx(Ka,{children:Object.entries(r.checks).map(([y,x])=>l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[WU(x.status),l.jsx(pe,{fontWeight:500,children:y})]})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(qt,{label:x.status,size:"small",sx:{bgcolor:wu(x.status)+"20",color:wu(x.status),textTransform:"capitalize"}})}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:qU(x.latency)}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(x.lastChecked).toLocaleTimeString()})]},y))})]})})]})})}),l.jsx($n,{size:{xs:12},children:l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Raw Diagnostics JSON (for AI agents)"}),l.jsx(ne,{component:"pre",sx:{bgcolor:"var(--theme-background)",p:2,borderRadius:1,overflow:"auto",maxHeight:300,color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"},children:JSON.stringify(e,null,2)})]})})})]}),l.jsx(XE,{open:d.open,autoHideDuration:2e3,onClose:()=>f({...d,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:l.jsx(Kt,{severity:"success",variant:"filled",children:d.message})})]})}function XU(e){switch(e){case"active":return l.jsx(Di,{sx:{color:"var(--theme-success)",fontSize:20}});case"error":return l.jsx(Wo,{sx:{color:"var(--theme-error)",fontSize:20}});case"starting":return l.jsx(K7,{sx:{color:"var(--theme-warning)",fontSize:20}});case"stopped":return l.jsx(kB,{sx:{color:"var(--theme-text-secondary)",fontSize:20}});default:return null}}function rC(e){switch(e){case"active":return"var(--theme-success)";case"error":return"var(--theme-error)";case"starting":return"var(--theme-warning)";case"stopped":return"var(--theme-text-secondary)";default:return"var(--theme-text-secondary)"}}function KU({counts:e}){const t=[];return e.routes>0&&t.push(`${e.routes} route${e.routes>1?"s":""}`),e.menuItems>0&&t.push(`${e.menuItems} menu item${e.menuItems>1?"s":""}`),e.pages>0&&t.push(`${e.pages} page${e.pages>1?"s":""}`),e.widgets>0&&t.push(`${e.widgets} widget${e.widgets>1?"s":""}`),t.length===0?l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:"No contributions"}):l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:t.join(", ")})}function QU({plugin:e}){const[t,r]=b.useState(!1),[n,o]=b.useState(null),[a,c]=b.useState(!1),[u,d]=b.useState(null),f=async()=>{if(!t&&!n&&!u){c(!0),d(null);try{const v=await At.getPluginDetail(e.id);o(v.contributions)}catch(v){console.error("Failed to load plugin details:",v),d(v instanceof Error?v.message:"Failed to load details")}finally{c(!1)}}r(!t)},h=e.contributionCounts.routes>0||e.contributionCounts.menuItems>0||e.contributionCounts.pages>0||e.contributionCounts.widgets>0;return l.jsxs(l.Fragment,{children:[l.jsxs(Ur,{sx:{"& > *":{borderBottom:t?"none":void 0},cursor:h?"pointer":"default","&:hover":{bgcolor:h?"var(--theme-background)":void 0}},onClick:h?f:void 0,children:[l.jsx(Ve,{sx:{width:50,borderColor:"var(--theme-border)"},children:h&&l.jsx(Qt,{size:"small",sx:{color:"var(--theme-text-secondary)"},children:t?l.jsx(tB,{}):l.jsx(eB,{})})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[XU(e.status),l.jsx(pe,{sx:{color:"var(--theme-text-primary)",fontWeight:500},children:e.name})]})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",fontFamily:"monospace",fontSize:"0.875rem"},children:e.id})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:e.version?l.jsx(qt,{label:`v${e.version}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}}):l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:"-"})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(qt,{label:e.status,size:"small",sx:{bgcolor:rC(e.status)+"20",color:rC(e.status),textTransform:"capitalize"}})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(KU,{counts:e.contributionCounts})})]}),l.jsx(Ur,{children:l.jsx(Ve,{style:{paddingBottom:0,paddingTop:0},colSpan:6,sx:{borderColor:"var(--theme-border)"},children:l.jsx(Xu,{in:t,timeout:"auto",unmountOnExit:!0,children:l.jsx(ne,{sx:{py:2,px:4},children:a?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(cr,{size:24})}):u?l.jsx(Kt,{severity:"error",sx:{mb:1},children:u}):n?l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[e.status==="error"&&e.error&&l.jsx(Kt,{severity:"error",sx:{mb:1},children:e.error}),n.routes.length>0&&l.jsxs(ne,{children:[l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Routes (",n.routes.length,")"]}),l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.routes.map((v,m)=>l.jsx(qt,{label:`${v.method.toUpperCase()} ${v.path}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"}},m))})]}),n.menuItems.length>0&&l.jsxs(ne,{children:[l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Menu Items (",n.menuItems.length,")"]}),l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.menuItems.map(v=>l.jsx(qt,{label:`${v.label} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.pages.length>0&&l.jsxs(ne,{children:[l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Pages (",n.pages.length,")"]}),l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.pages.map(v=>l.jsx(qt,{label:`${v.title||v.id} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.widgets.length>0&&l.jsxs(ne,{children:[l.jsxs(pe,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Widgets (",n.widgets.length,")"]}),l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.widgets.map(v=>l.jsx(qt,{label:v.title,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]})]}):null})})})})]})}function YU(){const[e,t]=b.useState([]),[r,n]=b.useState(!0),[o,a]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await At.getPlugins();t(f.plugins),a(null)}catch(f){a(f instanceof Error?f.message:"Failed to fetch plugins")}finally{n(!1)}})()},[]),r)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})});if(o)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(pe,{color:"error",children:o})})});const c=e.filter(d=>d.status==="active").length,u=e.filter(d=>d.status==="error").length;return l.jsxs(ne,{children:[l.jsx(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Plugins"}),l.jsx(qt,{icon:l.jsx(V7,{sx:{fontSize:16}}),label:`${c}/${e.length} active`,size:"small",sx:{bgcolor:c===e.length?"var(--theme-success)20":"var(--theme-warning)20",color:c===e.length?"var(--theme-success)":"var(--theme-warning)"}}),u>0&&l.jsx(qt,{icon:l.jsx(Wo,{sx:{fontSize:16}}),label:`${u} error${u>1?"s":""}`,size:"small",sx:{bgcolor:"var(--theme-error)20",color:"var(--theme-error)"}})]})}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View registered plugins and their contributions to the control panel"}),e.length===0?l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",textAlign:"center",py:4},children:"No plugins registered"})})}):l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(Qa,{children:l.jsxs(Xa,{children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:50}}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Version"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Contributions"})]})}),l.jsx(Ka,{children:e.map(d=>l.jsx(QU,{plugin:d},d.id))})]})})})]})}function JU({title:e="User Management",subtitle:t="Manage users, bans, and entitlements",features:r,headerActions:n,onUserSelect:o}){const[a,c]=b.useState({users:(r==null?void 0:r.users)??!0,bans:(r==null?void 0:r.bans)??!1,entitlements:(r==null?void 0:r.entitlements)??!1,entitlementsReadonly:(r==null?void 0:r.entitlementsReadonly)??!0}),[u,d]=b.useState(!!r),[f,h]=b.useState(0),[v,m]=b.useState([]),[y,x]=b.useState(0),[w,C]=b.useState(0),[P,k]=b.useState(25),[I,T]=b.useState(""),[M,R]=b.useState({}),[L,A]=b.useState([]),[H,G]=b.useState(0),[$,j]=b.useState(!0),[q,V]=b.useState(null),[O,U]=b.useState(null),[K,Y]=b.useState(!1),[Z,Q]=b.useState({email:"",reason:"",expiresAt:""}),[X,re]=b.useState(!1),[de,J]=b.useState(""),[oe,ee]=b.useState(!1),[he,Ce]=b.useState(!1),[ye,ce]=b.useState(null),[Fe,Le]=b.useState(null),[Ne,$e]=b.useState([]),[Me,Xe]=b.useState(""),[dt,le]=b.useState(!1);b.useEffect(()=>{r||At.detectFeatures().then(ie=>{c(ie),d(!0)}).catch(()=>{d(!0)})},[r]),b.useEffect(()=>{u&&a.entitlements&&!a.entitlementsReadonly&&At.getAvailableEntitlements().then($e).catch(()=>{})},[u,a.entitlements,a.entitlementsReadonly]);const Ye=b.useCallback(async()=>{var ie;if(a.users){j(!0);try{const Pe=await At.getUsers({limit:P,page:w,search:I||void 0});if(m(Pe.users||[]),x(Pe.total),V(null),a.entitlements&&((ie=Pe.users)!=null&&ie.length)){const Be={};await Promise.all(Pe.users.map(async He=>{try{const Et=await At.getEntitlements(He.email);Be[He.email]=Et.entitlements.length}catch{Be[He.email]=0}})),R(He=>({...He,...Be}))}}catch(Pe){V(Pe instanceof Error?Pe.message:"Failed to fetch users")}finally{j(!1)}}},[a.users,a.entitlements,w,P,I]),We=b.useCallback(async()=>{if(a.bans){j(!0);try{const ie=await At.getBans();A(ie.bans||[]),G(ie.total),V(null)}catch(ie){V(ie instanceof Error?ie.message:"Failed to fetch bans")}finally{j(!1)}}},[a.bans]);b.useEffect(()=>{u&&(f===0&&a.users?Ye():f===1&&a.bans&&We())},[f,u,a.users,a.bans,Ye,We]),b.useEffect(()=>{u&&a.bans&&We()},[u,a.bans,We]),b.useEffect(()=>{if(!u)return;const ie=setTimeout(()=>{f===0&&a.users&&(C(0),Ye())},300);return()=>clearTimeout(ie)},[I,f,u,a.users,Ye]);const ft=async()=>{try{await At.banUser(Z.email,Z.reason,Z.expiresAt||void 0),U("User banned successfully"),Y(!1),Q({email:"",reason:"",expiresAt:""}),We()}catch(ie){V(ie instanceof Error?ie.message:"Failed to ban user")}},ze=async ie=>{if(confirm("Unban this user?"))try{await At.unbanUser(ie),U("User unbanned successfully"),We()}catch{V("Failed to unban user")}},Nt=async()=>{if(!de.trim()){Le("Please enter an email address");return}ee(!0),Le(null),ce(null);try{const ie=await At.getEntitlements(de);ce(ie)}catch(ie){Le(ie instanceof Error?ie.message:"Failed to lookup entitlements")}finally{ee(!1)}},ht=async()=>{if(ye){Ce(!0);try{const ie=await At.refreshEntitlements(de);ce(ie)}catch{Le("Failed to refresh entitlements")}finally{Ce(!1)}}},fe=async()=>{if(!(!Me||!ye)){le(!0);try{await At.grantEntitlement(ye.identifier,Me),U(`Entitlement "${Me}" granted`),Xe("");const ie=await At.refreshEntitlements(ye.identifier);ce(ie),R(Pe=>({...Pe,[ye.identifier]:ie.entitlements.length}))}catch(ie){V(ie instanceof Error?ie.message:"Failed to grant entitlement")}finally{le(!1)}}},we=async ie=>{if(ye&&confirm(`Revoke "${ie}" from ${ye.identifier}?`))try{await At.revokeEntitlement(ye.identifier,ie),U(`Entitlement "${ie}" revoked`);const Pe=await At.refreshEntitlements(ye.identifier);ce(Pe),R(Be=>({...Be,[ye.identifier]:Pe.entitlements.length}))}catch(Pe){V(Pe instanceof Error?Pe.message:"Failed to revoke entitlement")}},je=ie=>{ie&&(J(ie),ee(!0),Le(null),ce(null),At.getEntitlements(ie).then(ce).catch(Pe=>Le(Pe instanceof Error?Pe.message:"Failed to lookup entitlements")).finally(()=>ee(!1))),re(!0)},Re=ie=>ie?new Date(ie).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",qe=Ne.filter(ie=>!(ye!=null&&ye.entitlements.includes(ie.name))),et=[];return a.users&&et.push({label:"Users",count:y}),a.bans&&et.push({label:"Banned",count:H}),u?l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[l.jsxs(ne,{children:[l.jsx(vt,{variant:"h4",content:e,customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:t,customColor:"var(--theme-text-secondary)"})]}),l.jsxs(ne,{sx:{display:"flex",gap:1},children:[n,a.entitlements&&l.jsx(Nr,{variant:"outlined",icon:"person_search",label:"Lookup Entitlements",onClick:()=>je()}),a.bans&&l.jsx(Nr,{variant:"primary",color:"error",icon:"block",label:"Ban User",onClick:()=>Y(!0)})]})]}),$&&l.jsx(Sd,{sx:{mb:2}}),q&&l.jsx(Kt,{severity:"error",onClose:()=>V(null),sx:{mb:2},children:q}),O&&l.jsx(Kt,{severity:"success",onClose:()=>U(null),sx:{mb:2},children:O}),a.users&&l.jsxs(kc,{columns:a.bans?3:2,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ac,{sx:{fontSize:40,color:"var(--theme-primary)"}}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"h4",content:y.toLocaleString(),customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:"Total Users",customColor:"var(--theme-text-secondary)"})]})]})})}),a.entitlements&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ql,{sx:{fontSize:40,color:"var(--theme-success)"}}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"body1",fontWeight:"500",content:"Entitlements",customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:a.entitlementsReadonly?"Read-only Mode":"Plugin Active",customColor:a.entitlementsReadonly?"var(--theme-warning)":"var(--theme-success)"})]})]})})}),a.bans&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(_h,{sx:{fontSize:40,color:H>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"h4",content:H.toString(),customColor:H>0?"var(--theme-error)":"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:"Banned Users",customColor:"var(--theme-text-secondary)"})]})]})})})]}),l.jsxs(yt,{sx:{bgcolor:"var(--theme-surface)"},children:[et.length>1&&l.jsx(A8,{value:f,onChange:(ie,Pe)=>h(Pe),sx:{borderBottom:1,borderColor:"var(--theme-border)",px:2},children:et.map((ie,Pe)=>l.jsx(P$,{label:`${ie.label}${ie.count!==void 0?` (${ie.count})`:""}`},Pe))}),l.jsxs(gt,{sx:{p:0},children:[l.jsx(ne,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:l.jsx(Rt,{size:"small",placeholder:"Search by email or name...",value:I,onChange:ie=>T(ie.target.value),InputProps:{startAdornment:l.jsx(Bf,{position:"start",children:l.jsx(Oh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),f===0&&a.users&&l.jsxs(l.Fragment,{children:[l.jsx(Qa,{children:l.jsxs(Xa,{children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),a.entitlements&&l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"center",children:"Entitlements"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Ka,{children:[v.map(ie=>l.jsxs(Ur,{hover:!0,sx:{cursor:o?"pointer":"default"},onClick:()=>o==null?void 0:o(ie),children:[l.jsxs(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:[ie.id.substring(0,8),"..."]}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(vt,{variant:"body1",content:ie.name||"--",fontWeight:"500"})}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:ie.email}),a.entitlements&&l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},align:"center",children:l.jsx(qt,{size:"small",icon:l.jsx(ql,{sx:{fontSize:14}}),label:M[ie.email]??"...",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Re(ie.created_at)}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},align:"right",children:a.entitlements&&l.jsx(fr,{title:"View entitlements",children:l.jsx(Qt,{size:"small",onClick:Pe=>{Pe.stopPropagation(),je(ie.email)},children:l.jsx(ql,{fontSize:"small"})})})})]},ie.id)),v.length===0&&!$&&l.jsx(Ur,{children:l.jsx(Ve,{colSpan:a.entitlements?6:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:I?"No users match your search":"No users found"})})]})]})}),l.jsx(p8,{component:"div",count:y,page:w,onPageChange:(ie,Pe)=>C(Pe),rowsPerPage:P,onRowsPerPageChange:ie=>{k(parseInt(ie.target.value,10)),C(0)},rowsPerPageOptions:[10,25,50,100],sx:{borderTop:1,borderColor:"var(--theme-border)"}})]}),f===1&&a.bans&&l.jsx(Qa,{children:l.jsxs(Xa,{children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Reason"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned At"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned By"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Ka,{children:[L.map(ie=>l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(vt,{variant:"body1",content:ie.email,fontWeight:"500"})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:200},children:l.jsx(vt,{variant:"body2",content:ie.reason,noWrap:!0})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Re(ie.banned_at)}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(qt,{size:"small",label:ie.expires_at?Re(ie.expires_at):"Permanent",sx:{bgcolor:ie.expires_at?"var(--theme-warning)20":"var(--theme-error)20",color:ie.expires_at?"var(--theme-warning)":"var(--theme-error)"}})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:ie.banned_by}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},align:"right",children:l.jsx(Nr,{buttonSize:"small",variant:"text",color:"success",icon:"check_circle",label:"Unban",onClick:()=>ze(ie.email)})})]},ie.id)),L.length===0&&!$&&l.jsx(Ur,{children:l.jsx(Ve,{colSpan:6,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No users are currently banned"})})]})]})})]})]}),a.bans&&l.jsxs(Nu,{open:K,onClose:()=>Y(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx($u,{children:"Ban User"}),l.jsx(Bu,{children:l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(Rt,{label:"Email",fullWidth:!0,value:Z.email,onChange:ie=>Q({...Z,email:ie.target.value}),placeholder:"Enter user email"}),l.jsx(Rt,{label:"Reason",fullWidth:!0,multiline:!0,rows:3,value:Z.reason,onChange:ie=>Q({...Z,reason:ie.target.value}),placeholder:"Enter reason for ban"}),l.jsx(Rt,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:Z.expiresAt,onChange:ie=>Q({...Z,expiresAt:ie.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for permanent ban"})]})}),l.jsxs(zu,{children:[l.jsx(Nr,{variant:"text",label:"Cancel",onClick:()=>{Y(!1),Q({email:"",reason:"",expiresAt:""})}}),l.jsx(Nr,{variant:"primary",color:"error",label:"Ban User",onClick:ft,disabled:!Z.email||!Z.reason})]})]}),a.entitlements&&l.jsxs(Nu,{open:X,onClose:()=>re(!1),maxWidth:"md",fullWidth:!0,children:[l.jsx($u,{children:"User Entitlements"}),l.jsx(Bu,{children:l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsxs(ne,{sx:{display:"flex",gap:1},children:[l.jsx(Rt,{label:"Email",fullWidth:!0,value:de,onChange:ie=>J(ie.target.value),placeholder:"Enter user email",onKeyDown:ie=>ie.key==="Enter"&&Nt()}),l.jsx(Nr,{variant:"primary",icon:"search",label:"Lookup",onClick:Nt,disabled:oe})]}),oe&&l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(cr,{})}),Fe&&l.jsx(Kt,{severity:"error",children:Fe}),ye&&l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[l.jsxs(ne,{children:[l.jsx(vt,{variant:"h6",content:ye.identifier,customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:`Source: ${ye.source}`,customColor:"var(--theme-text-secondary)"})]}),l.jsx(Nr,{variant:"outlined",icon:"refresh",label:he?"Refreshing...":"Refresh",onClick:ht,disabled:he,buttonSize:"small"})]}),!a.entitlementsReadonly&&qe.length>0&&l.jsxs(ne,{sx:{display:"flex",gap:1,mb:2,p:2,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsx(d_,{size:"small",options:qe,getOptionLabel:ie=>ie.name,value:qe.find(ie=>ie.name===Me)||null,onChange:(ie,Pe)=>Xe((Pe==null?void 0:Pe.name)||""),renderInput:ie=>l.jsx(Rt,{...ie,label:"Grant Entitlement",placeholder:"Select entitlement"}),sx:{flex:1}}),l.jsx(Nr,{variant:"primary",icon:"add",label:"Grant",onClick:fe,disabled:!Me||dt,buttonSize:"small"})]}),l.jsx(vt,{variant:"subtitle2",content:"Current Entitlements",customColor:"var(--theme-text-secondary)",style:{marginBottom:"8px"}}),ye.entitlements.length===0?l.jsx(vt,{variant:"body2",content:"No entitlements found",customColor:"var(--theme-text-secondary)"}):l.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:ye.entitlements.map((ie,Pe)=>l.jsx(qt,{icon:l.jsx(Di,{sx:{fontSize:16}}),label:ie,onDelete:a.entitlementsReadonly?void 0:()=>we(ie),deleteIcon:l.jsx(Lh,{sx:{fontSize:16}}),sx:{bgcolor:"var(--theme-success)20",color:"var(--theme-success)","& .MuiChip-deleteIcon":{color:"var(--theme-error)","&:hover":{color:"var(--theme-error)"}}}},Pe))}),l.jsxs(ne,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:[l.jsx(vt,{variant:"caption",content:`Data from: ${ye.source==="cache"?"Cache":"Source"}`,customColor:"var(--theme-text-secondary)"}),ye.cachedAt&&l.jsx(vt,{variant:"caption",content:` | Cached: ${Re(ye.cachedAt)}`,customColor:"var(--theme-text-secondary)"}),a.entitlementsReadonly&&l.jsx(vt,{variant:"caption",content:" | Read-only mode (modifications disabled)",customColor:"var(--theme-warning)"})]})]})]})}),l.jsx(zu,{children:l.jsx(Nr,{variant:"text",label:"Close",onClick:()=>re(!1)})})]})]}):l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:8},children:l.jsx(cr,{})})}function ZU({title:e="Entitlements",subtitle:t="Manage available entitlements",headerActions:r}){var de;const[n,o]=b.useState(null),[a,c]=b.useState(!0),[u,d]=b.useState([]),[f,h]=b.useState([]),[v,m]=b.useState(!0),[y,x]=b.useState(null),[w,C]=b.useState(null),[P,k]=b.useState(""),[I,T]=b.useState(!1),[M,R]=b.useState(!1),[L,A]=b.useState(!1),[H,G]=b.useState(null),[$,j]=b.useState({name:"",category:"",description:""}),[q,V]=b.useState(!1);b.useEffect(()=>{At.getEntitlementsStatus().then(o).catch(J=>x(J instanceof Error?J.message:"Failed to get status")).finally(()=>c(!1))},[]);const O=b.useCallback(async()=>{m(!0);try{const J=await At.getAvailableEntitlements();d(J),x(null)}catch(J){x(J instanceof Error?J.message:"Failed to fetch entitlements")}finally{m(!1)}},[]);b.useEffect(()=>{O()},[O]),b.useEffect(()=>{if(!P.trim())h(u);else{const J=P.toLowerCase();h(u.filter(oe=>{var ee,he;return oe.name.toLowerCase().includes(J)||((ee=oe.category)==null?void 0:ee.toLowerCase().includes(J))||((he=oe.description)==null?void 0:he.toLowerCase().includes(J))}))}},[u,P]);const U=[...new Set(u.map(J=>J.category||"Uncategorized"))],K=async()=>{if(!$.name.trim()){x("Name is required");return}V(!0);try{C(`Entitlement "${$.name}" created`),T(!1),j({name:"",category:"",description:""}),O()}catch(J){x(J instanceof Error?J.message:"Failed to create entitlement")}finally{V(!1)}},Y=async()=>{if(H){V(!0);try{C(`Entitlement "${H.name}" updated`),R(!1),G(null),O()}catch(J){x(J instanceof Error?J.message:"Failed to update entitlement")}finally{V(!1)}}},Z=async()=>{if(H){V(!0);try{C(`Entitlement "${H.name}" deleted`),A(!1),G(null),O()}catch(J){x(J instanceof Error?J.message:"Failed to delete entitlement")}finally{V(!1)}}},Q=J=>{G(J),R(!0)},X=J=>{G(J),A(!0)},re=(n==null?void 0:n.readonly)??!0;return a?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:8},children:l.jsx(cr,{})}):l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[l.jsxs(ne,{children:[l.jsx(vt,{variant:"h4",content:e,customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:t,customColor:"var(--theme-text-secondary)"})]}),l.jsxs(ne,{sx:{display:"flex",gap:1},children:[r,!re&&l.jsx(Nr,{variant:"primary",icon:"add",label:"Add Entitlement",onClick:()=>T(!0)})]})]}),v&&l.jsx(Sd,{sx:{mb:2}}),y&&l.jsx(Kt,{severity:"error",onClose:()=>x(null),sx:{mb:2},children:y}),w&&l.jsx(Kt,{severity:"success",onClose:()=>C(null),sx:{mb:2},children:w}),l.jsxs(kc,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ql,{sx:{fontSize:40,color:"var(--theme-primary)"}}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"h4",content:u.length.toString(),customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:"Total Entitlements",customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ne,{sx:{width:40,height:40,borderRadius:1,bgcolor:"var(--theme-primary)20",display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(vt,{variant:"h6",content:U.length.toString(),customColor:"var(--theme-primary)"})}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"body1",fontWeight:"500",content:"Categories",customColor:"var(--theme-text-primary)"}),l.jsx(vt,{variant:"body2",content:U.slice(0,3).join(", "),customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[re?l.jsx(Xy,{sx:{fontSize:40,color:"var(--theme-warning)"}}):l.jsx(Ff,{sx:{fontSize:40,color:"var(--theme-success)"}}),l.jsxs(ne,{children:[l.jsx(vt,{variant:"body1",fontWeight:"500",content:re?"Read-only":"Editable",customColor:re?"var(--theme-warning)":"var(--theme-success)"}),l.jsx(vt,{variant:"body2",content:`Source: ${((de=n==null?void 0:n.sources[0])==null?void 0:de.name)||"Unknown"}`,customColor:"var(--theme-text-secondary)"})]})]})})})]}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{sx:{p:0},children:[l.jsx(ne,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:l.jsx(Rt,{size:"small",placeholder:"Search entitlements...",value:P,onChange:J=>k(J.target.value),InputProps:{startAdornment:l.jsx(Bf,{position:"start",children:l.jsx(Oh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),l.jsx(Qa,{children:l.jsxs(Xa,{children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Category"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Description"}),!re&&l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Ka,{children:[f.map(J=>l.jsxs(Ur,{hover:!0,children:[l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(ql,{sx:{fontSize:18,color:"var(--theme-primary)"}}),l.jsx(vt,{variant:"body1",content:J.name,fontWeight:"500"})]})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:J.category?l.jsx(qt,{size:"small",label:J.category,sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}}):l.jsx(vt,{variant:"body2",content:"--",customColor:"var(--theme-text-secondary)"})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:300},children:J.description||"--"}),!re&&l.jsxs(Ve,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[l.jsx(fr,{title:"Edit",children:l.jsx(Qt,{size:"small",onClick:()=>Q(J),children:l.jsx(Ff,{fontSize:"small"})})}),l.jsx(fr,{title:"Delete",children:l.jsx(Qt,{size:"small",onClick:()=>X(J),sx:{color:"var(--theme-error)"},children:l.jsx(Lh,{fontSize:"small"})})})]})]},J.id)),f.length===0&&!v&&l.jsx(Ur,{children:l.jsx(Ve,{colSpan:re?3:4,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:P?"No entitlements match your search":"No entitlements defined"})})]})]})})]})}),n&&n.sources.length>0&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(gt,{children:[l.jsx(vt,{variant:"subtitle2",content:"Entitlement Sources",customColor:"var(--theme-text-secondary)",style:{marginBottom:"12px"}}),l.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:1},children:n.sources.map((J,oe)=>l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(qt,{size:"small",label:J.primary?"Primary":"Additional",sx:{bgcolor:J.primary?"var(--theme-primary)20":"var(--theme-text-secondary)20",color:J.primary?"var(--theme-primary)":"var(--theme-text-secondary)"}}),l.jsx(vt,{variant:"body1",content:J.name,fontWeight:"500",customColor:"var(--theme-text-primary)"}),J.description&&l.jsx(vt,{variant:"body2",content:`- ${J.description}`,customColor:"var(--theme-text-secondary)"}),J.readonly&&l.jsx(qt,{size:"small",icon:l.jsx(Xy,{sx:{fontSize:14}}),label:"Read-only",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)"}})]},oe))}),n.cacheEnabled&&l.jsx(ne,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:l.jsx(vt,{variant:"caption",content:`Caching: Enabled (TTL: ${n.cacheTtl}s)`,customColor:"var(--theme-text-secondary)"})})]})}),!re&&l.jsxs(Nu,{open:I,onClose:()=>T(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx($u,{children:"Add Entitlement"}),l.jsx(Bu,{children:l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(Rt,{label:"Name",fullWidth:!0,value:$.name,onChange:J=>j({...$,name:J.target.value}),placeholder:"e.g., premium, pro, feature:analytics",required:!0}),l.jsx(Rt,{label:"Category (Optional)",fullWidth:!0,value:$.category,onChange:J=>j({...$,category:J.target.value}),placeholder:"e.g., subscription, feature, access"}),l.jsx(Rt,{label:"Description (Optional)",fullWidth:!0,multiline:!0,rows:2,value:$.description,onChange:J=>j({...$,description:J.target.value}),placeholder:"Describe what this entitlement grants access to"})]})}),l.jsxs(zu,{children:[l.jsx(Nr,{variant:"text",label:"Cancel",onClick:()=>T(!1)}),l.jsx(Nr,{variant:"primary",label:"Create",onClick:K,disabled:!$.name.trim()||q})]})]}),!re&&H&&l.jsxs(Nu,{open:M,onClose:()=>R(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx($u,{children:"Edit Entitlement"}),l.jsx(Bu,{children:l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(Rt,{label:"Name",fullWidth:!0,value:H.name,disabled:!0,helperText:"Name cannot be changed"}),l.jsx(Rt,{label:"Category",fullWidth:!0,value:H.category||"",onChange:J=>G({...H,category:J.target.value})}),l.jsx(Rt,{label:"Description",fullWidth:!0,multiline:!0,rows:2,value:H.description||"",onChange:J=>G({...H,description:J.target.value})})]})}),l.jsxs(zu,{children:[l.jsx(Nr,{variant:"text",label:"Cancel",onClick:()=>R(!1)}),l.jsx(Nr,{variant:"primary",label:"Save",onClick:Y,disabled:q})]})]}),!re&&H&&l.jsxs(Nu,{open:L,onClose:()=>A(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx($u,{children:"Delete Entitlement"}),l.jsxs(Bu,{children:[l.jsx(vt,{variant:"body1",content:`Are you sure you want to delete the entitlement "${H.name}"?`,customColor:"var(--theme-text-primary)"}),l.jsx(Kt,{severity:"warning",sx:{mt:2},children:"This will remove the entitlement from all users who currently have it."})]}),l.jsxs(zu,{children:[l.jsx(Nr,{variant:"text",label:"Cancel",onClick:()=>A(!1)}),l.jsx(Nr,{variant:"primary",color:"error",label:"Delete",onClick:Z,disabled:q})]})]})]})}function nC(e){switch(e){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}}function eW(e){switch(e){case"enabled":return l.jsx(Di,{sx:{color:"var(--theme-success)"}});case"error":return l.jsx(Wo,{sx:{color:"var(--theme-error)"}});case"disabled":default:return l.jsx(_h,{sx:{color:"var(--theme-text-secondary)"}})}}const oC={domain:"",clientId:"",clientSecret:"",baseUrl:"",secret:"",audience:"",scopes:["openid","profile","email"],allowedRoles:[],allowedDomains:[]},iC={url:"",anonKey:""},aC={username:"",password:"",realm:"Protected Area"},sC={connectionUri:"",apiKey:"",appName:"",apiDomain:"",websiteDomain:"",apiBasePath:"/auth",websiteBasePath:"/auth",enableEmailPassword:!0,socialProviders:{}};function tW(){var Me,Xe,dt;const[e,t]=b.useState(null),[r,n]=b.useState(!0),[o,a]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState(!1),[h,v]=b.useState(!1),[m,y]=b.useState(!1),[x,w]=b.useState(null),[C,P]=b.useState(""),[k,I]=b.useState(oC),[T,M]=b.useState(iC),[R,L]=b.useState(aC),[A,H]=b.useState(sC),[G,$]=b.useState(!0),[j,q]=b.useState(""),[V,O]=b.useState({enabled:!1,clientId:"",clientSecret:""}),[U,K]=b.useState({enabled:!1,clientId:"",clientSecret:""}),[Y,Z]=b.useState({enabled:!1,clientId:"",clientSecret:"",keyId:"",teamId:""}),[Q,X]=b.useState(!1),[re,de]=b.useState(!1),J=b.useCallback(async()=>{var le,Ye,We,ft;n(!0),a(null);try{const ze=await At.getAuthConfig();if(t(ze),ze.runtimeConfig){const Nt=ze.runtimeConfig;if(P(Nt.adapter||""),$(Nt.settings.authRequired??!0),q(((le=Nt.settings.excludePaths)==null?void 0:le.join(", "))||""),Nt.config.auth0&&I({...oC,...Nt.config.auth0}),Nt.config.supabase&&M({...iC,...Nt.config.supabase}),Nt.config.basic&&L({...aC,...Nt.config.basic}),Nt.config.supertokens){const ht=Nt.config.supertokens;H({...sC,...ht}),(Ye=ht.socialProviders)!=null&&Ye.google&&O({enabled:!0,clientId:ht.socialProviders.google.clientId,clientSecret:ht.socialProviders.google.clientSecret}),(We=ht.socialProviders)!=null&&We.github&&K({enabled:!0,clientId:ht.socialProviders.github.clientId,clientSecret:ht.socialProviders.github.clientSecret}),(ft=ht.socialProviders)!=null&&ft.apple&&Z({enabled:!0,clientId:ht.socialProviders.apple.clientId,clientSecret:ht.socialProviders.apple.clientSecret,keyId:ht.socialProviders.apple.keyId,teamId:ht.socialProviders.apple.teamId})}}else ze.adapter&&P(ze.adapter)}catch(ze){a(ze instanceof Error?ze.message:"Failed to fetch auth status")}finally{n(!1)}},[]);b.useEffect(()=>{J()},[J]);const oe=(le,Ye)=>{navigator.clipboard.writeText(Ye),u(le),setTimeout(()=>u(null),2e3)},ee=()=>{f(!0),w(null)},he=()=>{f(!1),w(null),J()},Ce=le=>JSON.parse(JSON.stringify(le)),ye=()=>{switch(C){case"auth0":return Ce(k);case"supabase":return Ce(T);case"basic":return Ce(R);case"supertokens":{const le={...A},Ye={};return V.enabled&&(Ye.google={clientId:V.clientId,clientSecret:V.clientSecret}),U.enabled&&(Ye.github={clientId:U.clientId,clientSecret:U.clientSecret}),Y.enabled&&(Ye.apple={clientId:Y.clientId,clientSecret:Y.clientSecret,keyId:Y.keyId||"",teamId:Y.teamId||""}),Object.keys(Ye).length>0&&(le.socialProviders=Ye),Ce(le)}default:return{}}},ce=async()=>{if(C){y(!0),w(null);try{const le=await At.testAuthProvider({adapter:C,config:ye()});w(le)}catch(le){w({success:!1,message:le instanceof Error?le.message:"Test failed"})}finally{y(!1)}}},Fe=async()=>{if(e!=null&&e.adapter){y(!0),w(null);try{const le=await At.testCurrentAuthProvider();w(le)}catch(le){w({success:!1,message:le instanceof Error?le.message:"Test failed"})}finally{y(!1)}}},Le=async()=>{if(C){v(!0),a(null);try{const le={adapter:C,config:ye(),settings:{authRequired:G,excludePaths:j.split(",").map(Ye=>Ye.trim()).filter(Boolean)}};await At.updateAuthConfig(le),f(!1),await J()}catch(le){a(le instanceof Error?le.message:"Failed to save configuration")}finally{v(!1)}}},Ne=async()=>{v(!0),a(null);try{await At.deleteAuthConfig(),de(!1),f(!1),await J()}catch(le){a(le instanceof Error?le.message:"Failed to delete configuration")}finally{v(!1)}};if(r)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})});const $e=e!=null&&e.config?Object.entries(e.config):[];return l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Authentication"}),l.jsx(ne,{sx:{display:"flex",gap:1},children:!d&&l.jsxs(l.Fragment,{children:[l.jsx(fr,{title:"Edit Configuration",children:l.jsx(Qt,{onClick:ee,sx:{color:"var(--theme-primary)"},children:l.jsx(Ff,{})})}),l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:J,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(Ys,{})})})]})})]}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:d?"Configure authentication provider":"Auth plugin configuration status"}),o&&l.jsx(Kt,{severity:"error",sx:{mb:2},onClose:()=>a(null),children:o}),d?l.jsxs(ne,{children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Provider Selection"}),l.jsxs(_i,{fullWidth:!0,sx:{mb:2},children:[l.jsx(Ga,{sx:{color:"var(--theme-text-secondary)"},children:"Auth Provider"}),l.jsxs(aa,{value:C,onChange:le=>P(le.target.value),label:"Auth Provider",sx:{color:"var(--theme-text-primary)"},children:[l.jsx(Sr,{value:"",children:l.jsx("em",{children:"None (Disabled)"})}),l.jsx(Sr,{value:"supertokens",children:"SuperTokens"}),l.jsx(Sr,{value:"auth0",children:"Auth0"}),l.jsx(Sr,{value:"supabase",children:"Supabase"}),l.jsx(Sr,{value:"basic",children:"Basic Auth"})]})]}),l.jsxs(ne,{sx:{display:"flex",gap:2,alignItems:"center"},children:[l.jsx(Ba,{control:l.jsx(_s,{checked:G,onChange:le=>$(le.target.checked),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Auth Required",sx:{color:"var(--theme-text-primary)"}}),l.jsx(Rt,{label:"Exclude Paths (comma-separated)",value:j,onChange:le=>q(le.target.value),size:"small",sx:{flex:1,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},placeholder:"/api/health, /api/public/*"})]})]})}),C==="auth0"&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Auth0 Configuration"}),l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(Rt,{label:"Domain",value:k.domain,onChange:le=>I({...k,domain:le.target.value}),required:!0,placeholder:"your-tenant.auth0.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Client ID",value:k.clientId,onChange:le=>I({...k,clientId:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Client Secret",type:"password",value:k.clientSecret,onChange:le=>I({...k,clientSecret:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Base URL",value:k.baseUrl,onChange:le=>I({...k,baseUrl:le.target.value}),required:!0,placeholder:"https://your-app.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Session Secret",type:"password",value:k.secret,onChange:le=>I({...k,secret:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"API Audience (optional)",value:k.audience||"",onChange:le=>I({...k,audience:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="supabase"&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Supabase Configuration"}),l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(Rt,{label:"Project URL",value:T.url,onChange:le=>M({...T,url:le.target.value}),required:!0,placeholder:"https://your-project.supabase.co",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Anon Key",type:"password",value:T.anonKey,onChange:le=>M({...T,anonKey:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="basic"&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Basic Auth Configuration"}),l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr 1fr"},gap:2},children:[l.jsx(Rt,{label:"Username",value:R.username,onChange:le=>L({...R,username:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Password",type:"password",value:R.password,onChange:le=>L({...R,password:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Realm (optional)",value:R.realm||"",onChange:le=>L({...R,realm:le.target.value}),placeholder:"Protected Area",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="supertokens"&&l.jsxs(l.Fragment,{children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"SuperTokens Configuration"}),l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(Rt,{label:"Connection URI",value:A.connectionUri,onChange:le=>H({...A,connectionUri:le.target.value}),required:!0,placeholder:"http://localhost:3567",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"API Key (optional)",type:"password",value:A.apiKey||"",onChange:le=>H({...A,apiKey:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"App Name",value:A.appName,onChange:le=>H({...A,appName:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"API Domain",value:A.apiDomain,onChange:le=>H({...A,apiDomain:le.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Website Domain",value:A.websiteDomain,onChange:le=>H({...A,websiteDomain:le.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"API Base Path",value:A.apiBasePath||"/auth",onChange:le=>H({...A,apiBasePath:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]}),l.jsx(ne,{sx:{mt:2},children:l.jsx(Ba,{control:l.jsx(_s,{checked:A.enableEmailPassword??!0,onChange:le=>H({...A,enableEmailPassword:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Enable Email/Password Auth",sx:{color:"var(--theme-text-primary)"}})})]})}),l.jsxs(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:[l.jsx(gt,{sx:{pb:Q?2:0},children:l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},onClick:()=>X(!Q),children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Social Login Providers"}),Q?l.jsx(D7,{}):l.jsx(F7,{})]})}),l.jsx(Xu,{in:Q,children:l.jsxs(gt,{sx:{pt:0},children:[l.jsx(_y,{sx:{mb:2}}),l.jsxs(ne,{sx:{mb:3},children:[l.jsx(Ba,{control:l.jsx(_s,{checked:V.enabled,onChange:le=>O({...V,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Google",sx:{color:"var(--theme-text-primary)",mb:1}}),V.enabled&&l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(Rt,{label:"Client ID",size:"small",value:V.clientId,onChange:le=>O({...V,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Client Secret",size:"small",type:"password",value:V.clientSecret,onChange:le=>O({...V,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),l.jsxs(ne,{sx:{mb:3},children:[l.jsx(Ba,{control:l.jsx(_s,{checked:U.enabled,onChange:le=>K({...U,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"GitHub",sx:{color:"var(--theme-text-primary)",mb:1}}),U.enabled&&l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(Rt,{label:"Client ID",size:"small",value:U.clientId,onChange:le=>K({...U,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Client Secret",size:"small",type:"password",value:U.clientSecret,onChange:le=>K({...U,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),l.jsxs(ne,{children:[l.jsx(Ba,{control:l.jsx(_s,{checked:Y.enabled,onChange:le=>Z({...Y,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Apple",sx:{color:"var(--theme-text-primary)",mb:1}}),Y.enabled&&l.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(Rt,{label:"Client ID",size:"small",value:Y.clientId,onChange:le=>Z({...Y,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Client Secret",size:"small",type:"password",value:Y.clientSecret,onChange:le=>Z({...Y,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Key ID",size:"small",value:Y.keyId||"",onChange:le=>Z({...Y,keyId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(Rt,{label:"Team ID",size:"small",value:Y.teamId||"",onChange:le=>Z({...Y,teamId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})]})})]})]}),x&&l.jsxs(Kt,{severity:x.success?"success":"error",sx:{mb:3},children:[l.jsx(pe,{variant:"body2",sx:{fontWeight:600},children:x.success?"Connection Successful":"Connection Failed"}),l.jsx(pe,{variant:"body2",children:x.message}),((Me=x.details)==null?void 0:Me.latency)&&l.jsxs(pe,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",x.details.latency,"ms"]})]}),l.jsxs(ne,{sx:{display:"flex",gap:2,justifyContent:"space-between"},children:[l.jsxs(ne,{sx:{display:"flex",gap:2},children:[l.jsx(sn,{variant:"outlined",startIcon:l.jsx(_7,{}),onClick:he,disabled:h,sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Cancel"}),(e==null?void 0:e.runtimeConfig)&&l.jsx(sn,{variant:"outlined",color:"error",startIcon:l.jsx(Lh,{}),onClick:()=>de(!0),disabled:h,children:"Reset to Env Vars"})]}),l.jsxs(ne,{sx:{display:"flex",gap:2},children:[l.jsx(sn,{variant:"outlined",startIcon:m?l.jsx(cr,{size:16}):l.jsx(sc,{}),onClick:ce,disabled:!C||m||h,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"}),l.jsx(sn,{variant:"contained",startIcon:h?l.jsx(cr,{size:16,sx:{color:"white"}}):l.jsx(d0,{}),onClick:Le,disabled:h,sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary-dark)"}},children:"Save Configuration"})]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[eW((e==null?void 0:e.state)||"disabled"),l.jsxs(ne,{sx:{flex:1},children:[l.jsxs(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Status:"," ",l.jsx(qt,{label:((Xe=e==null?void 0:e.state)==null?void 0:Xe.toUpperCase())||"UNKNOWN",size:"small",sx:{bgcolor:`${nC((e==null?void 0:e.state)||"disabled")}20`,color:nC((e==null?void 0:e.state)||"disabled"),fontWeight:600}})]}),(e==null?void 0:e.adapter)&&l.jsxs(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mt:.5},children:["Adapter: ",l.jsx("strong",{children:e.adapter})]})]}),(e==null?void 0:e.state)==="enabled"&&(e==null?void 0:e.adapter)&&l.jsx(sn,{variant:"outlined",size:"small",startIcon:m?l.jsx(cr,{size:14}):l.jsx(sc,{}),onClick:Fe,disabled:m,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"})]}),x&&!d&&l.jsxs(Kt,{severity:x.success?"success":"error",sx:{mb:2},children:[l.jsx(pe,{variant:"body2",sx:{fontWeight:600},children:x.success?"Connection Successful":"Connection Failed"}),l.jsx(pe,{variant:"body2",children:x.message}),((dt=x.details)==null?void 0:dt.latency)&&l.jsxs(pe,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",x.details.latency,"ms"]})]}),(e==null?void 0:e.state)==="enabled"&&!(e!=null&&e.runtimeConfig)&&l.jsxs(Kt,{severity:"success",sx:{mb:2},children:[l.jsx(pe,{variant:"body2",sx:{fontWeight:600},children:"Configured via Environment Variables"}),l.jsx(pe,{variant:"body2",children:'Authentication is configured using environment variables. Click "Edit" to override with runtime configuration (requires PostgreSQL).'})]}),(e==null?void 0:e.runtimeConfig)&&l.jsx(qt,{label:"Runtime Configuration Active",size:"small",sx:{bgcolor:"var(--theme-primary)",color:"white",mb:2}}),(e==null?void 0:e.state)==="error"&&e.error&&l.jsx(Kt,{severity:"error",sx:{mb:2},children:e.error}),(e==null?void 0:e.missingVars)&&e.missingVars.length>0&&l.jsxs(Kt,{severity:"warning",sx:{mb:2},children:[l.jsx(pe,{variant:"body2",sx:{fontWeight:600,mb:1},children:"Missing environment variables:"}),l.jsx(ne,{component:"ul",sx:{m:0,pl:2},children:e.missingVars.map(le=>l.jsx("li",{children:l.jsx("code",{children:le})},le))})]}),(e==null?void 0:e.state)==="disabled"&&l.jsxs(Kt,{severity:"info",children:[l.jsxs(pe,{variant:"body2",children:["Authentication is disabled. Click the edit button to configure a provider, or set the"," ",l.jsx("code",{children:"AUTH_ADAPTER"})," environment variable."]}),l.jsxs(pe,{variant:"body2",sx:{mt:1},children:["Valid options: ",l.jsx("code",{children:"supertokens"}),", ",l.jsx("code",{children:"auth0"}),", ",l.jsx("code",{children:"supabase"}),","," ",l.jsx("code",{children:"basic"})]})]})]})}),$e.length>0&&l.jsxs(yt,{sx:{bgcolor:"var(--theme-surface)"},children:[l.jsx(gt,{sx:{pb:0},children:l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Current Configuration"})}),l.jsx(Qa,{children:l.jsxs(Xa,{size:"small",children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Variable"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Value"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:60},children:"Actions"})]})}),l.jsx(Ka,{children:$e.map(([le,Ye])=>l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(pe,{sx:{color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:le})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(pe,{sx:{color:Ye.includes("*")?"var(--theme-text-secondary)":"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:Ye})}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(fr,{title:c===le?"Copied!":"Copy value",children:l.jsx(Qt,{size:"small",onClick:()=>oe(le,Ye),sx:{color:c===le?"var(--theme-success)":"var(--theme-text-secondary)"},children:l.jsx(u0,{fontSize:"small"})})})})]},le))})]})})]}),(e==null?void 0:e.state)==="enabled"&&$e.length===0&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(gt,{children:l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No configuration details available"})})})]}),l.jsxs(Jv,{open:re,onClose:()=>de(!1),children:[l.jsx(t0,{children:"Reset to Environment Variables?"}),l.jsx(e0,{children:l.jsx(pe,{children:"This will delete the runtime configuration from the database. The auth plugin will fall back to environment variables on the next request."})}),l.jsxs(Zv,{children:[l.jsx(sn,{onClick:()=>de(!1),children:"Cancel"}),l.jsx(sn,{onClick:Ne,color:"error",disabled:h,children:h?l.jsx(cr,{size:20}):"Reset"})]})]})]})}function ly(e){return e<1e3?`${e}ms`:e<6e4?`${e/1e3}s`:e<36e5?`${e/6e4}m`:`${e/36e5}h`}function rW(){const[e,t]=b.useState(null),[r,n]=b.useState(!0),[o,a]=b.useState(!1),[c,u]=b.useState(null),[d,f]=b.useState(null),[h,v]=b.useState(6e4),[m,y]=b.useState(100),[x,w]=b.useState("sliding-window"),[C,P]=b.useState(!0),[k,I]=b.useState(3e5),T=async()=>{n(!0),u(null);try{const L=await At.getRateLimitConfig();t(L),v(L.windowMs),y(L.maxRequests),w(L.strategy),P(L.cleanupEnabled),I(L.cleanupIntervalMs)}catch(L){u(L instanceof Error?L.message:"Failed to fetch config")}finally{n(!1)}};b.useEffect(()=>{T()},[]);const M=async()=>{a(!0),u(null),f(null);try{const L=await At.updateRateLimitConfig({windowMs:h,maxRequests:m,strategy:x,cleanupEnabled:C,cleanupIntervalMs:k});t(L.config),f("Configuration saved successfully"),setTimeout(()=>f(null),3e3)}catch(L){u(L instanceof Error?L.message:"Failed to save config")}finally{a(!1)}},R=e&&(h!==e.windowMs||m!==e.maxRequests||x!==e.strategy||C!==e.cleanupEnabled||k!==e.cleanupIntervalMs);return r?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})}):c&&!e?l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(gt,{children:l.jsx(pe,{color:"error",children:c})})}):l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(bT,{sx:{color:"var(--theme-primary)",fontSize:32}}),l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Rate Limits"})]}),l.jsxs(ne,{sx:{display:"flex",gap:1},children:[l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:T,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(Ys,{})})}),l.jsx(sn,{variant:"contained",startIcon:o?l.jsx(cr,{size:16,color:"inherit"}):l.jsx(d0,{}),onClick:M,disabled:o||!R,sx:{minWidth:100},children:o?"Saving...":"Save"})]})]}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Configure rate limiting defaults for your API"}),d&&l.jsx(Kt,{severity:"success",sx:{mb:3},children:d}),c&&e&&l.jsx(Kt,{severity:"error",sx:{mb:3},children:c}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"System Status"}),l.jsxs(ne,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(f0,{sx:{color:"var(--theme-text-secondary)"}}),l.jsxs(ne,{children:[l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Store"}),l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:e==null?void 0:e.store})]})]}),l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(A7,{sx:{color:e!=null&&e.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}}),l.jsxs(ne,{children:[l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Cache"}),l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(pe,{sx:{color:"var(--theme-text-primary)"},children:e==null?void 0:e.cache}),l.jsx(qt,{label:e!=null&&e.cacheAvailable?"Available":"Unavailable",size:"small",sx:{bgcolor:e!=null&&e.cacheAvailable?"var(--theme-success)20":"var(--theme-warning)20",color:e!=null&&e.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}})]})]})]})]})]})}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Default Rate Limit Settings"}),l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:[l.jsxs(_i,{fullWidth:!0,children:[l.jsx(Ga,{sx:{color:"var(--theme-text-secondary)"},children:"Strategy"}),l.jsxs(aa,{value:x,label:"Strategy",onChange:L=>w(L.target.value),sx:{color:"var(--theme-text-primary)","& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--theme-border)"}},children:[l.jsx(Sr,{value:"sliding-window",children:"Sliding Window - Smooth rate limiting with weighted overlap"}),l.jsx(Sr,{value:"fixed-window",children:"Fixed Window - Simple discrete time windows"}),l.jsx(Sr,{value:"token-bucket",children:"Token Bucket - Allows bursts while maintaining average rate"})]})]}),l.jsxs(ne,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[l.jsx(Rt,{label:"Window (ms)",type:"number",value:h,onChange:L=>v(Math.max(1e3,parseInt(L.target.value)||6e4)),helperText:`= ${ly(h)}`,sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1e3,step:1e3}}}),l.jsx(Rt,{label:"Max Requests",type:"number",value:m,onChange:L=>y(Math.max(1,parseInt(L.target.value)||100)),helperText:"Per window per key",sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1}}})]}),l.jsx(Kt,{severity:"info",sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(pe,{variant:"body2",children:[l.jsx("strong",{children:"Current limit:"})," ",m," requests per ",ly(h)," using ",x," strategy"]})})]})]})}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Cleanup Job"}),l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:[l.jsx(Ba,{control:l.jsx(_s,{checked:C,onChange:L=>P(L.target.checked),color:"primary"}),label:"Enable automatic cleanup of expired rate limits",sx:{color:"var(--theme-text-primary)"}}),C&&l.jsx(Rt,{label:"Cleanup Interval (ms)",type:"number",value:k,onChange:L=>I(Math.max(6e4,parseInt(L.target.value)||3e5)),helperText:`= ${ly(k)}`,sx:{maxWidth:300},InputProps:{inputProps:{min:6e4,step:6e4}}})]})]})})]})}function nW(){const[e,t]=b.useState(null),[r,n]=b.useState([]),[o,a]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState(null),[h,v]=b.useState(null),[m,y]=b.useState(!1),[x,w]=b.useState(null),C=b.useRef(!0),P=b.useCallback(async()=>{try{const[R,L]=await Promise.all([At.getNotificationsStats(),At.getNotificationsClients()]);C.current&&(t(R),n(L.clients),u(null))}catch(R){C.current&&(R instanceof Error&&R.message.includes("404")?u("Notifications plugin not enabled"):u(R instanceof Error?R.message:"Failed to fetch data"))}finally{C.current&&a(!1)}},[]);b.useEffect(()=>{C.current=!0,P();const R=setInterval(P,5e3);return()=>{C.current=!1,clearInterval(R)}},[P]);const k=async R=>{v(R.id),w(null);try{await At.disconnectNotificationsClient(R.id),C.current&&(f(`Client ${$l(R.id)} disconnected`),setTimeout(()=>{C.current&&f(null)},3e3),await P())}catch(L){C.current&&u(L instanceof Error?L.message:"Failed to disconnect client")}finally{C.current&&v(null)}},I=async()=>{y(!0);try{const R=await At.forceNotificationsReconnect();C.current&&(f(R.message),setTimeout(()=>{C.current&&f(null)},3e3),await P())}catch(R){C.current&&u(R instanceof Error?R.message:"Failed to force reconnect")}finally{C.current&&y(!1)}};if(o)return l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})});if(c&&!e)return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-border)"},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Hf,{sx:{color:"var(--theme-text-secondary)"}}),l.jsx(pe,{sx:{color:"var(--theme-text-secondary)"},children:c})]})})});const T=(e==null?void 0:e.connectionHealth.isHealthy)??!1,M=T?"var(--theme-success)":"var(--theme-warning)";return l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(xT,{sx:{color:"var(--theme-primary)",fontSize:32}}),l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Notifications"})]}),l.jsxs(ne,{sx:{display:"flex",gap:1},children:[l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:P,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(Ys,{})})}),l.jsx(sn,{variant:"outlined",startIcon:m?l.jsx(cr,{size:16}):l.jsx(yB,{}),onClick:I,disabled:m,sx:{borderColor:"var(--theme-border)"},children:m?"Reconnecting...":"Force Reconnect"})]})]}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Manage realtime notification connections and SSE clients"}),d&&l.jsx(Kt,{severity:"success",sx:{mb:3},children:d}),c&&e&&l.jsx(Kt,{severity:"error",sx:{mb:3},children:c}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsx(gt,{sx:{py:1.5,"&:last-child":{pb:1.5}},children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[T?l.jsx(ST,{sx:{color:M,fontSize:20}}):l.jsx(Hf,{sx:{color:M,fontSize:20}}),l.jsx(pe,{sx:{color:M,fontWeight:500},children:T?"Connected":"Reconnecting..."}),(e==null?void 0:e.connectionHealth.isReconnecting)&&l.jsx(qt,{label:`Attempt ${e.connectionHealth.reconnectAttempts}`,size:"small",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)",fontSize:"0.7rem",height:18}})]}),l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsxs(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:[e==null?void 0:e.channels.length," channel",(e==null?void 0:e.channels.length)!==1?"s":""]}),(e==null?void 0:e.lastEventAt)&&l.jsxs(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:["Last event: ",xv(e.connectionHealth.timeSinceLastEvent)," ago"]})]})]})})}),l.jsxs(kc,{columns:4,spacing:"small",equalHeight:!0,children:[l.jsx(Ha,{icon:l.jsx(Wy,{sx:{fontSize:28}}),label:"Active Clients",value:(e==null?void 0:e.currentConnections)??0,subValue:`${(e==null?void 0:e.totalConnections)??0} total`,color:"var(--theme-primary)"}),l.jsx(Ha,{icon:l.jsx(ac,{sx:{fontSize:28}}),label:"By Device",value:(e==null?void 0:e.clientsByType.device)??0,subValue:`${(e==null?void 0:e.clientsByType.user)??0} by user`,color:"var(--theme-info)"}),l.jsx(Ha,{icon:l.jsx(p0,{sx:{fontSize:28}}),label:"Events Routed",value:Kl((e==null?void 0:e.eventsRouted)??0),subValue:`${Kl((e==null?void 0:e.eventsProcessed)??0)} processed`,color:"var(--theme-success)"}),l.jsx(Ha,{icon:l.jsx(Wo,{sx:{fontSize:28}}),label:"Dropped",value:Kl((e==null?void 0:e.eventsDroppedNoClients)??0),subValue:`${(e==null?void 0:e.eventsParseFailed)??0} parse errors`,color:((e==null?void 0:e.eventsDroppedNoClients)??0)>0?"var(--theme-warning)":"var(--theme-text-secondary)"})]}),l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Connected Clients"}),r.length===0?l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",py:4,textAlign:"center"},children:"No clients currently connected"}):l.jsx(Qa,{component:_r,sx:{bgcolor:"transparent",boxShadow:"none"},children:l.jsxs(Xa,{size:"small",children:[l.jsx(Ya,{children:l.jsxs(Ur,{children:[l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Client ID"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Device ID"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"User ID"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Connected"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Duration"}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsx(Ka,{children:r.map(R=>l.jsxs(Ur,{hover:!0,children:[l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(fr,{title:R.id,children:l.jsx("code",{style:{fontSize:"0.85em"},children:$l(R.id)})})}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:R.deviceId?l.jsx(fr,{title:R.deviceId,children:l.jsx(qt,{size:"small",icon:l.jsx(Wy,{sx:{fontSize:14}}),label:$l(R.deviceId),sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}):l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"—"})}),l.jsx(Ve,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:R.userId?l.jsx(fr,{title:R.userId,children:l.jsx(qt,{size:"small",icon:l.jsx(ac,{sx:{fontSize:14}}),label:$l(R.userId),sx:{bgcolor:"var(--theme-info)20",color:"var(--theme-info)"}})}):l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"—"})}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(R.connectedAt).toLocaleTimeString()}),l.jsx(Ve,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:xv(R.durationMs)}),l.jsx(Ve,{sx:{borderColor:"var(--theme-border)"},align:"right",children:l.jsx(fr,{title:"Disconnect client",children:l.jsx(Qt,{size:"small",onClick:()=>w(R),disabled:h===R.id,sx:{color:"var(--theme-error)"},children:h===R.id?l.jsx(cr,{size:18}):l.jsx(oB,{fontSize:"small"})})})})]},R.id))})]})})]})}),l.jsxs(Jv,{open:!!x,onClose:()=>w(null),"aria-labelledby":"disconnect-dialog-title",children:[l.jsx(t0,{id:"disconnect-dialog-title",children:"Disconnect Client?"}),l.jsx(e0,{children:l.jsxs(WL,{children:["Are you sure you want to disconnect this client?",(x==null?void 0:x.deviceId)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("strong",{children:"Device:"})," ",$l(x.deviceId)]}),(x==null?void 0:x.userId)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("strong",{children:"User:"})," ",$l(x.userId)]}),l.jsx("br",{}),l.jsx("br",{}),"The client will receive a disconnect event and the connection will be closed. The client may automatically reconnect."]})}),l.jsxs(Zv,{children:[l.jsx(sn,{onClick:()=>w(null),children:"Cancel"}),l.jsx(sn,{onClick:()=>x&&k(x),color:"error",autoFocus:!0,children:"Disconnect"})]})]})]})}function oW(){const[e,t]=b.useState(null),[r,n]=b.useState(!0),[o,a]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState({}),h=b.useCallback(async()=>{n(!0),a(null);try{const m=await At.fetch("/ai-proxy/config");t(m)}catch(m){a(m instanceof Error?m.message:"Failed to fetch integrations config")}finally{n(!1)}},[]);b.useEffect(()=>{h()},[h]);const v=async m=>{u(m),f(y=>({...y,[m]:{success:!1,message:"Testing..."}}));try{const y=await At.fetch(`/ai-proxy/test/${m}`,{method:"POST"});f(x=>({...x,[m]:y}))}catch(y){f(x=>({...x,[m]:{success:!1,message:y instanceof Error?y.message:"Test failed"}}))}finally{u(null)}};return r?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})}):l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(pe,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"AI Integrations"}),l.jsx(fr,{title:"Refresh",children:l.jsx(Qt,{onClick:h,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(Ys,{})})})]}),l.jsx(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Manage AI service connections for QwickBot"}),o&&l.jsx(Kt,{severity:"error",sx:{mb:3},onClose:()=>a(null),children:o}),e&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsx(gt,{children:l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsxs(ne,{children:[l.jsx(pe,{variant:"h3",sx:{color:"var(--theme-primary)",fontWeight:600},children:e.stats.totalRequests}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Total API Requests"})]}),l.jsxs(ne,{sx:{borderLeft:"1px solid var(--theme-border)",pl:3},children:[l.jsx(pe,{variant:"h3",sx:{color:"var(--theme-success)",fontWeight:600},children:e.integrations.filter(m=>m.configured).length}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Configured Services"})]})]})})}),l.jsx(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:3},children:e==null?void 0:e.integrations.map(m=>{const y=d[m.id],x=c===m.id;return l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[l.jsxs(ne,{children:[l.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:m.name}),l.jsx(qt,{label:m.configured?"Configured":"Not Configured",size:"small",sx:{bgcolor:m.configured?"var(--theme-success)20":"var(--theme-error)20",color:m.configured?"var(--theme-success)":"var(--theme-error)",fontWeight:500}})]}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:m.description})]}),m.configured?l.jsx(Di,{sx:{color:"var(--theme-success)"}}):l.jsx(Wo,{sx:{color:"var(--theme-error)"}})]}),l.jsxs(ne,{sx:{mb:2,p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)",display:"block",mb:.5},children:"API Key"}),l.jsx(pe,{sx:{fontFamily:"monospace",fontSize:13,color:m.configured?"var(--theme-text-primary)":"var(--theme-text-secondary)"},children:m.apiKey})]}),y&&l.jsx(ne,{sx:{mb:2},children:x?l.jsx(Sd,{sx:{height:4,borderRadius:2}}):l.jsxs(Kt,{severity:y.success?"success":"error",sx:{py:.5,"& .MuiAlert-message":{fontSize:13}},children:[y.message,y.latency!==void 0&&l.jsxs(pe,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",y.latency,"ms"]})]})}),l.jsxs(ne,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[l.jsx(sn,{size:"small",startIcon:l.jsx(uB,{}),href:m.docsUrl,target:"_blank",sx:{color:"var(--theme-text-secondary)","&:hover":{color:"var(--theme-primary)"}},children:"Docs"}),l.jsx(sn,{size:"small",variant:"outlined",startIcon:x?l.jsx(cr,{size:14}):l.jsx(sc,{}),onClick:()=>v(m.id),disabled:!m.configured||x,sx:{borderColor:"var(--theme-border)",color:"var(--theme-text-primary)","&:hover":{borderColor:"var(--theme-primary)"}},children:"Test Connection"})]})]})},m.id)})}),e&&e.integrations.some(m=>!m.configured)&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Setup Instructions"}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mb:2},children:"Add the following environment variables to configure the AI services:"}),l.jsx(ne,{component:"pre",sx:{p:2,bgcolor:"var(--theme-background)",borderRadius:1,overflow:"auto",fontFamily:"monospace",fontSize:13,color:"var(--theme-text-primary)"},children:`# Groq - for chat (https://console.groq.com)
|
|
465
|
+
GROQ_API_KEY=your_groq_api_key
|
|
466
|
+
|
|
467
|
+
# Gemini - for vision (https://ai.google.dev)
|
|
468
|
+
GEMINI_API_KEY=your_gemini_api_key`})]})})]})}function iW({pluginId:e,title:t,route:r}){const[n,o]=b.useState(!0),[a,c]=b.useState(null),[u,d]=b.useState(null);return b.useEffect(()=>{(async()=>{try{const h=await fetch(`${At.baseUrl}/api${r}`);if(h.ok){const v=await h.json();d(v),c(null)}else h.status===404?(d(null),c(null)):c(`Failed to load page: ${h.statusText}`)}catch(h){c(h instanceof Error?h.message:"Failed to load page")}finally{o(!1)}})()},[r]),n?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(cr,{})}):l.jsxs(ne,{children:[l.jsx(pe,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:t}),l.jsxs(pe,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Plugin: ",e]}),a&&l.jsx(Kt,{severity:"error",sx:{mb:3},children:a}),(u==null?void 0:u.cards)&&u.cards.length>0&&l.jsx(ne,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:2,mb:4},children:u.cards.map((f,h)=>l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h4",sx:{color:f.color||"var(--theme-text-primary)"},children:f.value}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:f.title}),f.subtitle&&l.jsx(pe,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:f.subtitle})]})},h))}),(u==null?void 0:u.sections)&&u.sections.length>0&&l.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:u.sections.map((f,h)=>l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:f.title}),l.jsx(pe,{variant:"body2",sx:{color:"var(--theme-text-secondary)",whiteSpace:"pre-wrap"},children:f.content})]})},h))}),!u&&!a&&l.jsx(yt,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(gt,{children:[l.jsx(pe,{variant:"body1",sx:{color:"var(--theme-text-secondary)"},children:"This plugin page is available. Configure the plugin to add content here."}),l.jsxs(pe,{variant:"body2",sx:{mt:2,color:"var(--theme-text-secondary)"},children:["API endpoint: ",l.jsxs("code",{children:["/api",r]})]})]})})]})}function aW(){const e=Ev();return l.jsxs(ne,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",textAlign:"center"},children:[l.jsx(pe,{variant:"h1",sx:{color:"var(--theme-primary)",mb:2},children:"404"}),l.jsx(pe,{variant:"h5",sx:{color:"var(--theme-text-primary)",mb:1},children:"Page Not Found"}),l.jsx(pe,{sx:{color:"var(--theme-text-secondary)",mb:4},children:"The page you're looking for doesn't exist or has been moved."}),l.jsx(sn,{variant:"contained",startIcon:l.jsx(yT,{}),onClick:()=>e("/"),sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary)"}},children:"Back to Dashboard"})]})}const lC=[{id:"dashboard",label:"Dashboard",route:"/",icon:"dashboard"},{id:"plugins",label:"Plugins",route:"/plugins",icon:"extension"},{id:"logs",label:"Logs",route:"/logs",icon:"article"},{id:"system",label:"System",route:"/system",icon:"settings"}],sW={users:{id:"users",label:"Users",route:"/users",icon:"people"}},lW=new Set(["/","/plugins","/logs","/system","/users","/entitlements","/auth","/rate-limits","/notifications","/integrations"]),cW="1.0.0",uj=window.__APP_BASE_PATH__??"";At.setBaseUrl(uj);const uW=l.jsx(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:2},children:l.jsxs(vt,{variant:"caption",customColor:"var(--theme-text-secondary)",children:["Built with"," ",l.jsx(FO,{href:"https://qwickapps.com/products/qwickapps-server",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main"},children:"QwickApps Server"})," ","v",cW]})});function dW(){const[e,t]=b.useState(lC),[r,n]=b.useState(new Set),[o,a]=b.useState([]),[c,u]=b.useState("Control Panel"),[d,f]=b.useState(),[h,v]=b.useState(!0);b.useEffect(()=>{(async()=>{try{const[w,C]=await Promise.allSettled([At.getInfo(),At.getUiContributions()]);if(w.status==="fulfilled"?(u(w.value.logoName),f(w.value.logoIconUrl)):console.warn("Failed to fetch product info:",w.reason),C.status==="fulfilled"){const{plugins:P,menuItems:k}=C.value,I=new Set(P.map(R=>R.id));n(I),a(k);const T=[...lC];for(const[R,L]of Object.entries(sW))I.has(R)&&T.push(L);const M=[...k].sort((R,L)=>(R.order??100)-(L.order??100));for(const R of M)T.some(L=>L.route===R.route)||T.push({id:R.id,label:R.label,route:R.route,icon:R.icon||"extension"});t(T)}else console.warn("Failed to fetch UI contributions:",C.reason)}finally{v(!1)}})()},[]);const m=d?l.jsx("img",{src:d,alt:c,style:{width:32,height:32,objectFit:"contain"}}):void 0,y=l.jsx(rU,{icon:m,name:c});return h?l.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",bgcolor:"var(--theme-background, #1a1a2e)"}}):l.jsx(r3,{basename:uj||void 0,children:l.jsx(IU,{initialComponents:DU(),children:l.jsx(kU,{children:l.jsx(eU,{config:TU,logo:y,footerContent:uW,enableScaffolding:!0,navigationItems:e,showThemeSwitcher:!0,showPaletteSwitcher:!0,children:l.jsxs(Z4,{children:[l.jsx(mo,{path:"/",element:l.jsx(HU,{})}),l.jsx(mo,{path:"/plugins",element:l.jsx(YU,{})}),l.jsx(mo,{path:"/logs",element:l.jsx(VU,{})}),l.jsx(mo,{path:"/system",element:l.jsx(GU,{})}),r.has("users")&&l.jsx(mo,{path:"/users",element:l.jsx(JU,{})}),r.has("entitlements")&&l.jsx(mo,{path:"/entitlements",element:l.jsx(ZU,{})}),r.has("auth")&&l.jsx(mo,{path:"/auth",element:l.jsx(tW,{})}),r.has("rate-limit")&&l.jsx(mo,{path:"/rate-limits",element:l.jsx(rW,{})}),r.has("notifications")&&l.jsx(mo,{path:"/notifications",element:l.jsx(nW,{})}),r.has("ai-proxy")&&l.jsx(mo,{path:"/integrations",element:l.jsx(oW,{})}),o.filter(x=>!lW.has(x.route)).map(x=>l.jsx(mo,{path:x.route,element:l.jsx(iW,{pluginId:x.pluginId,title:x.label,route:x.route})},x.id)),l.jsx(mo,{path:"*",element:l.jsx(aW,{})})]})})})})})}a4.createRoot(document.getElementById("root")).render(l.jsx(Lt.StrictMode,{children:l.jsx(dW,{})}));
|
|
469
|
+
//# sourceMappingURL=index-CynOqPkb.js.map
|