unleash-server 8.0.1 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/addon.d.ts +10 -2
- package/dist/lib/addons/addon.d.ts.map +1 -1
- package/dist/lib/addons/addon.js +104 -6
- package/dist/lib/addons/addon.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +1 -1
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +2 -0
- package/dist/lib/addons/datadog.test.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.d.ts.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.js +5 -3
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.test.js +3 -1
- package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -1
- package/dist/lib/addons/index.d.ts.map +1 -1
- package/dist/lib/addons/index.js +2 -0
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/new-relic.d.ts.map +1 -1
- package/dist/lib/addons/new-relic.js +0 -1
- package/dist/lib/addons/new-relic.js.map +1 -1
- package/dist/lib/addons/new-relic.test.js +0 -1
- package/dist/lib/addons/new-relic.test.js.map +1 -1
- package/dist/lib/addons/slack.test.js +1 -2
- package/dist/lib/addons/slack.test.js.map +1 -1
- package/dist/lib/addons/teams-definition.d.ts.map +1 -1
- package/dist/lib/addons/teams-definition.js +1 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/teams-workflow-definition.d.ts +4 -0
- package/dist/lib/addons/teams-workflow-definition.d.ts.map +1 -0
- package/dist/lib/addons/teams-workflow-definition.js +66 -0
- package/dist/lib/addons/teams-workflow-definition.js.map +1 -0
- package/dist/lib/addons/teams-workflow.d.ts +15 -0
- package/dist/lib/addons/teams-workflow.d.ts.map +1 -0
- package/dist/lib/addons/teams-workflow.js +110 -0
- package/dist/lib/addons/teams-workflow.js.map +1 -0
- package/dist/lib/addons/teams-workflow.test.d.ts +2 -0
- package/dist/lib/addons/teams-workflow.test.d.ts.map +1 -0
- package/dist/lib/addons/teams-workflow.test.js +202 -0
- package/dist/lib/addons/teams-workflow.test.js.map +1 -0
- package/dist/lib/addons/teams.d.ts.map +1 -1
- package/dist/lib/addons/teams.js +0 -1
- package/dist/lib/addons/teams.js.map +1 -1
- package/dist/lib/addons/teams.test.js +0 -1
- package/dist/lib/addons/teams.test.js.map +1 -1
- package/dist/lib/addons/validate-url.d.ts +18 -0
- package/dist/lib/addons/validate-url.d.ts.map +1 -0
- package/dist/lib/addons/validate-url.js +93 -0
- package/dist/lib/addons/validate-url.js.map +1 -0
- package/dist/lib/addons/validate-url.test.d.ts +2 -0
- package/dist/lib/addons/validate-url.test.d.ts.map +1 -0
- package/dist/lib/addons/validate-url.test.js +199 -0
- package/dist/lib/addons/validate-url.test.js.map +1 -0
- package/dist/lib/addons/webhook.d.ts.map +1 -1
- package/dist/lib/addons/webhook.js +28 -2
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +72 -0
- package/dist/lib/addons/webhook.test.js.map +1 -1
- package/dist/lib/app.d.ts.map +1 -1
- package/dist/lib/app.js +2 -0
- package/dist/lib/app.js.map +1 -1
- package/dist/lib/create-config.d.ts.map +1 -1
- package/dist/lib/create-config.js +8 -0
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/error/bad-data-error.d.ts.map +1 -1
- package/dist/lib/error/bad-data-error.js +10 -2
- package/dist/lib/error/bad-data-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +23 -0
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/features/context/context-field-store.d.ts +1 -1
- package/dist/lib/features/context/context-field-store.d.ts.map +1 -1
- package/dist/lib/features/context/context-field-store.js +1 -5
- package/dist/lib/features/context/context-field-store.js.map +1 -1
- package/dist/lib/features/context/context-service.d.ts +5 -4
- package/dist/lib/features/context/context-service.d.ts.map +1 -1
- package/dist/lib/features/context/context-service.js +20 -27
- package/dist/lib/features/context/context-service.js.map +1 -1
- package/dist/lib/features/context/context-service.test.d.ts +2 -0
- package/dist/lib/features/context/context-service.test.d.ts.map +1 -0
- package/dist/lib/features/context/context-service.test.js +24 -0
- package/dist/lib/features/context/context-service.test.js.map +1 -0
- package/dist/lib/features/context/context.d.ts +1 -0
- package/dist/lib/features/context/context.d.ts.map +1 -1
- package/dist/lib/features/context/context.js +22 -10
- package/dist/lib/features/context/context.js.map +1 -1
- package/dist/lib/features/context/context.test.js +15 -1
- package/dist/lib/features/context/context.test.js.map +1 -1
- package/dist/lib/features/context/createContextService.d.ts +4 -1
- package/dist/lib/features/context/createContextService.d.ts.map +1 -1
- package/dist/lib/features/context/createContextService.js +2 -1
- package/dist/lib/features/context/createContextService.js.map +1 -1
- package/dist/lib/features/context/fake-context-field-store.d.ts +1 -1
- package/dist/lib/features/context/fake-context-field-store.d.ts.map +1 -1
- package/dist/lib/features/context/fake-context-field-store.js +1 -6
- package/dist/lib/features/context/fake-context-field-store.js.map +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
- package/dist/lib/features/feature-toggle/converters/feature-toggle-row-converter.d.ts +1 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts +2 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js +5 -0
- package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-controller.js +22 -2
- package/dist/lib/features/feature-toggle/feature-toggle-controller.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts +3 -2
- package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-service.js +11 -4
- package/dist/lib/features/feature-toggle/feature-toggle-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts +2 -0
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts.map +1 -1
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js +7 -0
- package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js.map +1 -1
- package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js +4 -0
- package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js.map +1 -1
- package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts +6 -0
- package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts.map +1 -1
- package/dist/lib/features/frontend-api/frontend-api-service.d.ts.map +1 -1
- package/dist/lib/features/frontend-api/frontend-api-service.js +17 -20
- package/dist/lib/features/frontend-api/frontend-api-service.js.map +1 -1
- package/dist/lib/features/metrics/integrations/integration-metrics.d.ts +1 -1
- package/dist/lib/features/metrics/integrations/integration-metrics.d.ts.map +1 -1
- package/dist/lib/features/metrics/integrations/integration-metrics.js +2 -0
- package/dist/lib/features/metrics/integrations/integration-metrics.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.d.ts +2 -0
- package/dist/lib/features/playground/feature-evaluator/constraint.d.ts.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.js +11 -1
- package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -1
- package/dist/lib/features/playground/playground.test.js +2 -3
- package/dist/lib/features/playground/playground.test.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.d.ts +4 -0
- package/dist/lib/features/release-plans/release-plan-template-store.d.ts.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.js +25 -2
- package/dist/lib/features/release-plans/release-plan-template-store.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template-store.test.js +75 -16
- package/dist/lib/features/release-plans/release-plan-template-store.test.js.map +1 -1
- package/dist/lib/features/release-plans/release-plan-template.d.ts +1 -0
- package/dist/lib/features/release-plans/release-plan-template.d.ts.map +1 -1
- package/dist/lib/features/scheduler/scheduler-service.test.js +1 -0
- package/dist/lib/features/scheduler/scheduler-service.test.js.map +1 -1
- package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js +3 -0
- package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.d.ts.map +1 -1
- package/dist/lib/middleware/rbac-middleware.js +3 -4
- package/dist/lib/middleware/rbac-middleware.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.test.js +62 -24
- package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
- package/dist/lib/middleware/secure-headers.d.ts.map +1 -1
- package/dist/lib/middleware/secure-headers.js +20 -1
- package/dist/lib/middleware/secure-headers.js.map +1 -1
- package/dist/lib/middleware/session-context.d.ts +20 -0
- package/dist/lib/middleware/session-context.d.ts.map +1 -0
- package/dist/lib/middleware/session-context.js +38 -0
- package/dist/lib/middleware/session-context.js.map +1 -0
- package/dist/lib/openapi/spec/addon-create-update-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/addon-create-update-schema.js +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +15 -0
- package/dist/lib/openapi/spec/addons-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.js +51 -0
- package/dist/lib/openapi/spec/addons-schema.js.map +1 -1
- package/dist/lib/openapi/spec/admin-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -8
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -17
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/client-features-delta-schema.d.ts +5 -5
- package/dist/lib/openapi/spec/client-features-schema.d.ts +5 -5
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/constraint-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/export-result-schema.d.ts +68 -68
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +17 -17
- package/dist/lib/openapi/spec/feature-schema.d.ts +34 -34
- package/dist/lib/openapi/spec/feature-search-environment-schema.d.ts +34 -34
- package/dist/lib/openapi/spec/feature-search-response-schema.d.ts +68 -68
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/health-report-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/playground-constraint-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js +91 -0
- package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.test.js +1 -89
- package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js +9 -0
- package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/playground-request-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/playground-request-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.test.js +1 -8
- package/dist/lib/openapi/spec/playground-request-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +9 -9
- package/dist/lib/openapi/spec/playground-response-schema.test.js +2 -3
- package/dist/lib/openapi/spec/playground-response-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/profile-schema.d.ts +40 -35
- package/dist/lib/openapi/spec/profile-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.js +13 -1
- package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.test.js +1 -0
- package/dist/lib/openapi/spec/profile-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +69 -69
- package/dist/lib/openapi/spec/release-plan-milestone-schema.d.ts +4 -4
- package/dist/lib/openapi/spec/release-plan-milestone-strategy-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/release-plan-schema.d.ts +8 -8
- package/dist/lib/openapi/spec/release-plan-template-schema.d.ts +14 -8
- package/dist/lib/openapi/spec/release-plan-template-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/release-plan-template-schema.js +6 -0
- package/dist/lib/openapi/spec/release-plan-template-schema.js.map +1 -1
- package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts +22 -16
- package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/release-plans-schema.d.ts +16 -16
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts +4 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts.map +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js +12 -0
- package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js.map +1 -0
- package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts +1 -3
- package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts.map +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.test.js +1 -11
- package/dist/lib/openapi/spec/sdk-context-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/search-features-schema.d.ts +104 -104
- package/dist/lib/openapi/spec/segment-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/segments-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/ui-config-schema.d.ts.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +5 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/upsert-segment-schema.d.ts +1 -1
- package/dist/lib/routes/admin-api/addon.d.ts.map +1 -1
- package/dist/lib/routes/admin-api/addon.js +6 -2
- package/dist/lib/routes/admin-api/addon.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.d.ts.map +1 -1
- package/dist/lib/routes/admin-api/user/user.js +3 -1
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.test.js +32 -7
- package/dist/lib/routes/admin-api/user/user.test.js.map +1 -1
- package/dist/lib/routes/util.d.ts.map +1 -1
- package/dist/lib/routes/util.js +8 -1
- package/dist/lib/routes/util.js.map +1 -1
- package/dist/lib/routes/util.test.d.ts +2 -0
- package/dist/lib/routes/util.test.d.ts.map +1 -0
- package/dist/lib/routes/util.test.js +18 -0
- package/dist/lib/routes/util.test.js.map +1 -0
- package/dist/lib/schema/feature-schema.test.js +1 -1
- package/dist/lib/schema/feature-schema.test.js.map +1 -1
- package/dist/lib/schema/html-input.d.ts +4 -0
- package/dist/lib/schema/html-input.d.ts.map +1 -0
- package/dist/lib/schema/html-input.js +41 -0
- package/dist/lib/schema/html-input.js.map +1 -0
- package/dist/lib/schema/html-input.test.d.ts +2 -0
- package/dist/lib/schema/html-input.test.d.ts.map +1 -0
- package/dist/lib/schema/html-input.test.js +98 -0
- package/dist/lib/schema/html-input.test.js.map +1 -0
- package/dist/lib/server-impl.d.ts +2 -1
- package/dist/lib/server-impl.d.ts.map +1 -1
- package/dist/lib/server-impl.js +2 -1
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/addon-service.d.ts +8 -1
- package/dist/lib/services/addon-service.d.ts.map +1 -1
- package/dist/lib/services/addon-service.js +24 -1
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/addon-service.test.js +75 -8
- package/dist/lib/services/addon-service.test.js.map +1 -1
- package/dist/lib/services/feature-tag-service.d.ts +1 -1
- package/dist/lib/services/feature-tag-service.d.ts.map +1 -1
- package/dist/lib/services/feature-tag-service.js +5 -1
- package/dist/lib/services/feature-tag-service.js.map +1 -1
- package/dist/lib/services/index.d.ts.map +1 -1
- package/dist/lib/services/index.js +1 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.d.ts +1 -2
- package/dist/lib/services/project-schema.d.ts.map +1 -1
- package/dist/lib/services/project-schema.js +4 -2
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/user-service.d.ts +1 -0
- package/dist/lib/services/user-service.d.ts.map +1 -1
- package/dist/lib/services/user-service.js +7 -0
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/types/events.d.ts +8 -0
- package/dist/lib/types/events.d.ts.map +1 -1
- package/dist/lib/types/events.js +4 -0
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.d.ts.map +1 -1
- package/dist/lib/types/experimental.js +27 -1
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/model.d.ts +2 -0
- package/dist/lib/types/model.d.ts.map +1 -1
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/option.d.ts +5 -0
- package/dist/lib/types/option.d.ts.map +1 -1
- package/dist/lib/types/permissions.d.ts +1 -0
- package/dist/lib/types/permissions.d.ts.map +1 -1
- package/dist/lib/types/permissions.js +2 -0
- package/dist/lib/types/permissions.js.map +1 -1
- package/dist/lib/types/stores.d.ts +1 -0
- package/dist/lib/types/stores.d.ts.map +1 -1
- package/dist/lib/types/stores.js.map +1 -1
- package/dist/lib/ui-config/ui-config-controller.d.ts +1 -2
- package/dist/lib/ui-config/ui-config-controller.d.ts.map +1 -1
- package/dist/lib/ui-config/ui-config-controller.js +3 -1
- package/dist/lib/ui-config/ui-config-controller.js.map +1 -1
- package/dist/lib/ui-config/ui-config-service.d.ts +3 -2
- package/dist/lib/ui-config/ui-config-service.d.ts.map +1 -1
- package/dist/lib/ui-config/ui-config-service.js +11 -3
- package/dist/lib/ui-config/ui-config-service.js.map +1 -1
- package/dist/lib/ui-config/ui-config.test.js +25 -2
- package/dist/lib/ui-config/ui-config.test.js.map +1 -1
- package/dist/lib/util/anonymise.d.ts +1 -0
- package/dist/lib/util/anonymise.d.ts.map +1 -1
- package/dist/lib/util/anonymise.js +3 -0
- package/dist/lib/util/anonymise.js.map +1 -1
- package/dist/lib/util/anonymise.test.js +4 -1
- package/dist/lib/util/anonymise.test.js.map +1 -1
- package/dist/lib/util/constants.d.ts +3 -1
- package/dist/lib/util/constants.d.ts.map +1 -1
- package/dist/lib/util/constants.js +11 -1
- package/dist/lib/util/constants.js.map +1 -1
- package/dist/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache +1 -1
- package/dist/migrations/20260617115403-update-flag-descriptions.d.ts +3 -0
- package/dist/migrations/20260617115403-update-flag-descriptions.d.ts.map +1 -0
- package/dist/migrations/20260617115403-update-flag-descriptions.js +38 -0
- package/dist/migrations/20260617115403-update-flag-descriptions.js.map +1 -0
- package/dist/migrations/20260624120000-servicenow-change-references.d.ts +3 -0
- package/dist/migrations/20260624120000-servicenow-change-references.d.ts.map +1 -0
- package/dist/migrations/20260624120000-servicenow-change-references.js +22 -0
- package/dist/migrations/20260624120000-servicenow-change-references.js.map +1 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts +3 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts.map +1 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js +8 -0
- package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js.map +1 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts +3 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts.map +1 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.js +15 -0
- package/dist/migrations/20260708100000-add-project-release-template-permission.js.map +1 -0
- package/dist/server-dev.js +9 -1
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.d.ts +25 -0
- package/dist/test/arbitraries.d.ts.map +1 -0
- package/dist/test/arbitraries.js +143 -0
- package/dist/test/arbitraries.js.map +1 -0
- package/dist/test/arbitraries.test.d.ts +1 -24
- package/dist/test/arbitraries.test.d.ts.map +1 -1
- package/dist/test/arbitraries.test.js +1 -142
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js +2 -2
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/addon-service.e2e.test.js +2 -0
- package/dist/test/e2e/services/addon-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +2 -2
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts.map +1 -1
- package/dist/test/fixtures/fake-segment-store.js +2 -2
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/dist/test/prom-last-wins.d.ts +2 -0
- package/dist/test/prom-last-wins.d.ts.map +1 -0
- package/dist/test/prom-last-wins.js +25 -0
- package/dist/test/prom-last-wins.js.map +1 -0
- package/dist/test/reset-cross-file-state.d.ts +2 -0
- package/dist/test/reset-cross-file-state.d.ts.map +1 -0
- package/dist/test/reset-cross-file-state.js +57 -0
- package/dist/test/reset-cross-file-state.js.map +1 -0
- package/dist/test-setup.d.ts.map +1 -1
- package/dist/test-setup.js +4 -0
- package/dist/test-setup.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/AccordionSummary-KVRcLxLK.js +1 -0
- package/frontend/build/static/AdvancedPlayground-Cls80com.js +3 -0
- package/frontend/build/static/Alert-DQgOzmJF.js +1 -0
- package/frontend/build/static/Avatar-xU_puYmY.js +1 -0
- package/frontend/build/static/BackendConnections-CkI8tLcv.js +1 -0
- package/frontend/build/static/Box-rSzdGLLJ.js +1 -0
- package/frontend/build/static/Button-yGjgMTJI.js +1 -0
- package/frontend/build/static/Button.story-CBE27I2T.js +1 -0
- package/frontend/build/static/CircularProgress-CmGBJn6I.js +124 -0
- package/frontend/build/static/Close-DKD1r3T7.js +1 -0
- package/frontend/build/static/Close-nISwbNAY.js +1 -0
- package/frontend/build/static/CodeRenderer-RNHlNPBl.js +1094 -0
- package/frontend/build/static/CodeRenderer.story-Vw214z1Z.js +2 -0
- package/frontend/build/static/Collapse-COunT4rQ.js +1 -0
- package/frontend/build/static/ConditionallyRender-CEffh9Z-.js +1 -0
- package/frontend/build/static/ConnectSdkStep-DnH4iwnu.js +1 -0
- package/frontend/build/static/ConnectSdkStep.story-DeWPTOZK.js +1 -0
- package/frontend/build/static/CreateProject-eo1TZ1so.js +1 -0
- package/frontend/build/static/Dialog-DLpX4v6X.js +1 -0
- package/frontend/build/static/DialogWithAside-BxVspeMV.js +1 -0
- package/frontend/build/static/DialogWithAside.story-Dqmr9MnM.js +1 -0
- package/frontend/build/static/Divider-BYq1CcT0.js +1 -0
- package/frontend/build/static/EnterpriseEdge-D-g3JGCd.js +6 -0
- package/frontend/build/static/FeatureCard.story-B2Q-SD_-.js +1 -0
- package/frontend/build/static/FeatureMetricsChart-ETalRWKx.js +2 -0
- package/frontend/build/static/FeatureStaleDialog-CvD9ojNj.js +8 -0
- package/frontend/build/static/FeatureViewLazyExport-10Z3_Wda.js +10 -0
- package/frontend/build/static/FileCopy-D1ZqmNek.js +1 -0
- package/frontend/build/static/FlagMetricsChart-dLfSDZ_x.js +2 -0
- package/frontend/build/static/FlagUsageSnippet-DOGwaqPZ.js +2 -0
- package/frontend/build/static/FlagUsageSnippet.story-tfMvt3kG.js +1 -0
- package/frontend/build/static/FormControlLabel-BrOlsUbv.js +1 -0
- package/frontend/build/static/FormField-CRXe4g4R.js +1 -0
- package/frontend/build/static/FrontendNetworkTrafficUsage-DGEwK1Qg.js +1 -0
- package/frontend/build/static/GenerateApiKey-C1aJtPh-.js +1 -0
- package/frontend/build/static/GenerateApiKey.story-DNMZG0qg.js +1 -0
- package/frontend/build/static/GenerateApiKeySummary-DkPI02tH.js +1 -0
- package/frontend/build/static/GenerateApiKeySummary.story-CruMFwTQ.js +1 -0
- package/frontend/build/static/GridLayoutWrapper-B3BIpxoE.js +5 -0
- package/frontend/build/static/Grow-CuQu7Z-P.js +1 -0
- package/frontend/build/static/HelpOutlineOutlined-HDH1hus2.js +1 -0
- package/frontend/build/static/HelpResources.story-warJFqf6.js +1 -0
- package/frontend/build/static/Highlighter-BS0Ow0vZ.js +1 -0
- package/frontend/build/static/HtmlTooltip-3YsoM_F5.js +1 -0
- package/frontend/build/static/IconButton-BveFD3PF.js +1 -0
- package/frontend/build/static/ImpactMetricsPage-C57istn7.js +1 -0
- package/frontend/build/static/ImpactViewsPage-MKEHnt2w.js +1 -0
- package/frontend/build/static/LazyAdminExport-DfIYVWQD.js +38 -0
- package/frontend/build/static/LazyProjectExport-30GlUH0L.js +46 -0
- package/frontend/build/static/LifecycleChartComponent-Tj1pN5Tj.js +2 -0
- package/frontend/build/static/LineChartComponent-_RiDjL2-.js +1 -0
- package/frontend/build/static/Link-wv6er_Jy.js +1 -0
- package/frontend/build/static/Loader-CnLypnQx.js +1 -0
- package/frontend/build/static/{LogRocketRunner-Duzg1Kzh.js → LogRocketRunner-BS6AEpSK.js} +1 -1
- package/frontend/build/static/MarkCompletedDialogue-BeIA6eMj.js +1 -0
- package/frontend/build/static/Menu-DUeb4XP8.js +1 -0
- package/frontend/build/static/MenuBook-DZFyn--3.js +1 -0
- package/frontend/build/static/MenuItem-DNlBQQYG.js +1 -0
- package/frontend/build/static/Modal-DdH902AP.js +1 -0
- package/frontend/build/static/NetworkOverview-DF8c0k1P.js +1 -0
- package/frontend/build/static/{NetworkPrometheusAPIWarning-Bq62ygkV.js → NetworkPrometheusAPIWarning-B0v-FihJ.js} +1 -1
- package/frontend/build/static/NetworkTraffic-C1I4wwcb.js +1 -0
- package/frontend/build/static/NetworkTrafficUsage-DkdQx64o.js +1 -0
- package/frontend/build/static/NotificationStack.story-CdeU4r0p.js +1 -0
- package/frontend/build/static/OnboardingProgress-BuWQ2rjB.js +1 -0
- package/frontend/build/static/OnboardingProgress.story-CmQztiFV.js +1 -0
- package/frontend/build/static/OpenInNew-CHcHAi4B.js +1 -0
- package/frontend/build/static/PageContent-lT51j8jO.js +1 -0
- package/frontend/build/static/Paper-BvPQ0Zq6.js +1 -0
- package/frontend/build/static/PercentageDonut-CZVWd5fE.js +1 -0
- package/frontend/build/static/PermissionButton-Tj54K9Kc.js +1 -0
- package/frontend/build/static/Popover-FHiFav9d.js +1 -0
- package/frontend/build/static/Popper-Cut-_j4A.js +1 -0
- package/frontend/build/static/Portal-kwmlgXGI.js +1 -0
- package/frontend/build/static/Radio-Cj82h8o5.js +1 -0
- package/frontend/build/static/RadioGroup-BWTZb8iE.js +1 -0
- package/frontend/build/static/ReactJSONEditor-D65iiPmM.js +4 -0
- package/frontend/build/static/ReactJSONEditor.story-Bt3pxUGO.js +1 -0
- package/frontend/build/static/RoleCell-tqHUOlI7.js +1 -0
- package/frontend/build/static/RtlProvider-D1AlROju.js +1 -0
- package/frontend/build/static/Safeguard-DFEQulxy.js +1 -0
- package/frontend/build/static/SdkEvaluationStatus-B1rMywp-.js +17 -0
- package/frontend/build/static/SdkEvaluationStatus.story-BxgqLICz.js +1 -0
- package/frontend/build/static/Select-DdG1oq6O.js +3 -0
- package/frontend/build/static/SelectSdk-Boj2Ug-2.js +1 -0
- package/frontend/build/static/SelectSdk-CzRoKDb5.js +1 -0
- package/frontend/build/static/SelectSdk.story-BT9ke5Eb.js +1 -0
- package/frontend/build/static/SelectSdk.story-CdzotYoq.js +1 -0
- package/frontend/build/static/Spacing.story-CB6GkN5Z.js +1 -0
- package/frontend/build/static/StoriesPage-luLnHVc2.js +1 -0
- package/frontend/build/static/SwitchBase-cxExIOp0.js +1 -0
- package/frontend/build/static/TextField-Cf03Ror7.js +1 -0
- package/frontend/build/static/ThemeColors.story-Cx9bv5pL.js +1 -0
- package/frontend/build/static/TokenExplanation-CJjBSQ07.js +1 -0
- package/frontend/build/static/TokenExplanation.story-BoOaHRrQ.js +1 -0
- package/frontend/build/static/Tooltip-DPzrXyNS.js +1 -0
- package/frontend/build/static/TooltipResolver-CIBfA4vm.js +1 -0
- package/frontend/build/static/Truncator-CF0-SVks.js +1 -0
- package/frontend/build/static/Typography-nCkGT67u.js +1 -0
- package/frontend/build/static/Typography.story-CofmlvJB.js +1 -0
- package/frontend/build/static/UIContext-Dsr0TY8K.js +1 -0
- package/frontend/build/static/WhatsNewLayout.story-p4Cm8bgx.js +1 -0
- package/frontend/build/static/aggregateFeatureMetrics-D7AXsd2U.js +1 -0
- package/frontend/build/static/capitalize-DfXJDj8P.js +1 -0
- package/frontend/build/static/chartjs-plugin-annotation.esm-tsR8Pv5a.js +1 -0
- package/frontend/build/static/chunk-KS7C4IRE-PUpsdS_b.js +3 -0
- package/frontend/build/static/code-block-BZePA-4e.js +1 -0
- package/frontend/build/static/copy-to-clipboard-BCU4eeSw.js +1 -0
- package/frontend/build/static/createBox-DaDvp7MB.js +1 -0
- package/frontend/build/static/createSimplePaletteValueFilter-Bt9IjErz.js +1 -0
- package/frontend/build/static/createSvgIcon-D-6jHYkf.js +1 -0
- package/frontend/build/static/differenceInSeconds-DMZGQwjK.js +1 -0
- package/frontend/build/static/dividerClasses-DcI5JVLQ.js +1 -0
- package/frontend/build/static/endOfMonth-CkSR_DAx.js +1 -0
- package/frontend/build/static/{enterpriseEdgeCloud-C5u35XAw.js → enterpriseEdgeCloud-qnOcFE1S.js} +1 -1
- package/frontend/build/static/esm-DViSjNxt.js +12 -0
- package/frontend/build/static/formatAccessText-BhC1wtCg.js +1 -0
- package/frontend/build/static/formatDistanceToNow-CyouiCIY.js +1 -0
- package/frontend/build/static/httpErrorResponseHandler-BzpwldnE.js +1 -0
- package/frontend/build/static/impact-metrics-DrmGy_gn.png +0 -0
- package/frontend/build/static/{impact-metrics-icon-6dt-ye-h.js → impact-metrics-icon-Cg_ki-2e.js} +1 -1
- package/frontend/build/static/index-C2zVj2FI.js +287 -0
- package/frontend/build/static/{jsx-runtime-BnvnyDTF.js → jsx-runtime-DYfQNk55.js} +1 -1
- package/frontend/build/static/mcp-ADx0Sju7.png +0 -0
- package/frontend/build/static/{metricsFormatters-BEX2qb8Y.js → metricsFormatters-BmjW0KTj.js} +1 -1
- package/frontend/build/static/milestone-CciNgBhP.png +0 -0
- package/frontend/build/static/{mui-CoU2c-id.js → mui-C_omlwxE.js} +1 -1
- package/frontend/build/static/networkTrafficUsageHighlightPlugin-DPi6id5j.js +1 -0
- package/frontend/build/static/parse-Chj4PyAg.js +1 -0
- package/frontend/build/static/react-Ca03aNmg.js +1 -0
- package/frontend/build/static/resolveProps-CAVsjga5.js +1 -0
- package/frontend/build/static/servicenow-BmgZtZjb.svg +13 -0
- package/frontend/build/static/sharedTypes-CXnpeg4U.js +1 -0
- package/frontend/build/static/startOfHour-P0Sr6h8e.js +1 -0
- package/frontend/build/static/styled-CY_-vLWk.js +1 -0
- package/frontend/build/static/theme-DDCs0xPV.js +1 -0
- package/frontend/build/static/themeStyles-B99HStK1.js +1 -0
- package/frontend/build/static/useApi-B7ZLy5tN.js +1 -0
- package/frontend/build/static/useApiGetter-C41iZzl2.js +1 -0
- package/frontend/build/static/useApiTokens-BQWPDfv2.js +1 -0
- package/frontend/build/static/useConditionalSWR-QWHOvx6V.js +1 -0
- package/frontend/build/static/useConditionallyHiddenColumns-DbQbB4u7.js +5 -0
- package/frontend/build/static/useCustomEvent-BnWpZ2E1.js +1 -0
- package/frontend/build/static/useEnhancedEffect-BBMUaXin.js +1 -0
- package/frontend/build/static/useEnvironments-Gu7r2cpc.js +2 -0
- package/frontend/build/static/useEventTracker-B0ILyjZB.js +1 -0
- package/frontend/build/static/useGroupedImpactMetricsData-jQ7IYFK3.js +1 -0
- package/frontend/build/static/useId-Bg4oXGUa.js +1 -0
- package/frontend/build/static/{useImpactMetrics-9qDSEpTn.js → useImpactMetrics-DXxTQl6p.js} +2 -2
- package/frontend/build/static/{useImpactMetricsEnabled-wRNO6-Oh.js → useImpactMetricsEnabled-B3om8V0b.js} +1 -1
- package/frontend/build/static/{useInstanceTrafficMetrics-CIpyIGYi.js → useInstanceTrafficMetrics-DkgcWjVM.js} +1 -1
- package/frontend/build/static/useLocationSettings-vlEPA_j3.js +1 -0
- package/frontend/build/static/useMediaQuery-BFm2lR-0.js +2 -0
- package/frontend/build/static/useOptionalPathParam-Cmh3Ejbi.js +1 -0
- package/frontend/build/static/{usePageTitle-CHzzFshF.js → usePageTitle-DD1IHvCw.js} +1 -1
- package/frontend/build/static/useSlot-Ce59-xJL.js +1 -0
- package/frontend/build/static/useSlotProps-v77xI-e5.js +1 -0
- package/frontend/build/static/useTheme-CTychWp2.js +10 -0
- package/frontend/build/static/useTimeout-B2sc1jSE.js +1 -0
- package/frontend/build/static/useToast-BUHn_9TC.js +1 -0
- package/frontend/build/static/{useUiConfig-DbVjTDpE.js → useUiConfig-BcfEDPWc.js} +1 -1
- package/frontend/build/static/useUiFlag-PbKW1iMa.js +1 -0
- package/frontend/package.json +20 -19
- package/package.json +15 -12
- package/frontend/build/static/AccordionSummary-wye3oOm6.js +0 -1
- package/frontend/build/static/AdvancedPlayground-BEYkf6Xg.js +0 -3
- package/frontend/build/static/Alert-_bLyWbvx.js +0 -1
- package/frontend/build/static/BackendConnections-DdvotR_8.js +0 -1
- package/frontend/build/static/Box-BQsxfFmC.js +0 -1
- package/frontend/build/static/Button-CebB8EPB.js +0 -1
- package/frontend/build/static/ChatOutlined-jZlhx14o.js +0 -1
- package/frontend/build/static/CircularProgress-C_LUU3DK.js +0 -101
- package/frontend/build/static/Close-DyTASMSq.js +0 -1
- package/frontend/build/static/CloudCircle-BjnxUYAO.js +0 -1
- package/frontend/build/static/Collapse-DPPTUMpf.js +0 -1
- package/frontend/build/static/ConditionallyRender---uTpMBn.js +0 -1
- package/frontend/build/static/CreateProject-BSlg0WYM.js +0 -1
- package/frontend/build/static/Dialog-C-xQxqWX.js +0 -1
- package/frontend/build/static/DialogWithAside-BvaGTcqO.js +0 -1106
- package/frontend/build/static/Divider-CsdWvu5F.js +0 -1
- package/frontend/build/static/EnterpriseEdge-DN23kaQp.js +0 -6
- package/frontend/build/static/FeatureMetricsChart-CmVkRuwG.js +0 -2
- package/frontend/build/static/FeatureStaleDialog-BkyjUGR9.js +0 -8
- package/frontend/build/static/FeatureViewLazyExport-C5FggFea.js +0 -10
- package/frontend/build/static/FileCopy-B8HZEA83.js +0 -1
- package/frontend/build/static/FlagMetricsChart-ZjHSwulg.js +0 -2
- package/frontend/build/static/FormControlLabel-F5gDLixN.js +0 -1
- package/frontend/build/static/FrontendNetworkTrafficUsage-BmLOJdK9.js +0 -1
- package/frontend/build/static/GridLayoutWrapper-D93wkNEo.js +0 -3
- package/frontend/build/static/Grow-BIbmvKVy.js +0 -1
- package/frontend/build/static/HelpOutlineOutlined-CpMsVJZu.js +0 -1
- package/frontend/build/static/Highlighter-MomUaQww.js +0 -1
- package/frontend/build/static/HtmlTooltip-B9jv1G1R.js +0 -1
- package/frontend/build/static/ImpactMetricsPage-D1CETZR_.js +0 -1
- package/frontend/build/static/ImpactViewsPage-DeBga4lU.js +0 -1
- package/frontend/build/static/LazyAdminExport-BvtR_me3.js +0 -38
- package/frontend/build/static/LazyProjectExport-BkOu6pHf.js +0 -46
- package/frontend/build/static/LifecycleChartComponent-BYvIFr7Q.js +0 -2
- package/frontend/build/static/LineChartComponent-d80f3Tky.js +0 -1
- package/frontend/build/static/Link-CfIScd2f.js +0 -1
- package/frontend/build/static/Loader-DdgXftPc.js +0 -1
- package/frontend/build/static/MarkCompletedDialogue-CtzRfovJ.js +0 -1
- package/frontend/build/static/NetworkOverview-D1UOxIaf.js +0 -1
- package/frontend/build/static/NetworkTraffic-CLnhub6c.js +0 -1
- package/frontend/build/static/NetworkTrafficUsage-PgI0lqze.js +0 -1
- package/frontend/build/static/PageContent-c0NDm5oD.js +0 -1
- package/frontend/build/static/PercentageDonut-C6I2UOES.js +0 -1
- package/frontend/build/static/PermissionButton-BIeM26DH.js +0 -1
- package/frontend/build/static/Popover-CUTnSn2h.js +0 -1
- package/frontend/build/static/Radio-DL8ja0ll.js +0 -1
- package/frontend/build/static/RadioGroup-Ci3WHaOy.js +0 -1
- package/frontend/build/static/ReactJSONEditor-C-paZV5Q.js +0 -4
- package/frontend/build/static/RoleCell-BCPNstXC.js +0 -1
- package/frontend/build/static/Safeguard-9zs64Bna.js +0 -1
- package/frontend/build/static/SelectSdk-D2NaTubs.js +0 -2
- package/frontend/build/static/StoriesPage-5lbMiQlA.js +0 -1
- package/frontend/build/static/SwitchBase-DWPIxZnN.js +0 -1
- package/frontend/build/static/TextField-oipjeg6n.js +0 -3
- package/frontend/build/static/Tooltip-BaILXXti.js +0 -1
- package/frontend/build/static/TooltipResolver-4A1YhwBy.js +0 -1
- package/frontend/build/static/Truncator-D2bO9ub6.js +0 -1
- package/frontend/build/static/Typography-BTdLWIUX.js +0 -1
- package/frontend/build/static/aggregateFeatureMetrics-DBivHCcj.js +0 -1
- package/frontend/build/static/chartjs-plugin-annotation.esm-BxKcCGhA.js +0 -1
- package/frontend/build/static/chunk-QUQL4437-Dr42NpoL.js +0 -3
- package/frontend/build/static/createBox-Cf2UJsmc.js +0 -1
- package/frontend/build/static/createSimplePaletteValueFilter-BRAMrHWJ.js +0 -1
- package/frontend/build/static/dividerClasses-Cc45lyWo.js +0 -1
- package/frontend/build/static/esm-CFWP4-MJ.js +0 -15
- package/frontend/build/static/httpErrorResponseHandler-FMtt7Zqh.js +0 -1
- package/frontend/build/static/index-BJ2iUk24.js +0 -289
- package/frontend/build/static/networkTrafficUsageHighlightPlugin-DVWh8Lrd.js +0 -1
- package/frontend/build/static/parse-BhYjTMCL.js +0 -1
- package/frontend/build/static/react-GZhdek4G.js +0 -1
- package/frontend/build/static/startOfHour-KiLZtdEa.js +0 -1
- package/frontend/build/static/themeStyles-BPY8RNQO.js +0 -1
- package/frontend/build/static/useApiGetter-7FP8Avm4.js +0 -1
- package/frontend/build/static/useApiTokens-C8Dqw_X1.js +0 -1
- package/frontend/build/static/useConditionalSWR-DGgzun6i.js +0 -1
- package/frontend/build/static/useConditionallyHiddenColumns-DTDzRlyO.js +0 -5
- package/frontend/build/static/useCustomEvent-CwoY8S5F.js +0 -1
- package/frontend/build/static/useEnvironments-CTguhgy0.js +0 -2
- package/frontend/build/static/useGroupedImpactMetricsData-CK8Pz2an.js +0 -1
- package/frontend/build/static/useMediaQuery-DGx8zAkf.js +0 -2
- package/frontend/build/static/useOptionalPathParam-Cx3ru9yC.js +0 -1
- package/frontend/build/static/useTheme-CQqAmDLr.js +0 -9
- /package/frontend/build/static/{connect-DbjGV9Hl.png → cr-DbjGV9Hl.png} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as e,t}from"./react-GZhdek4G.js";var n=e(t(),1),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){a=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(s[0]===6&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function c(e,t,n){if(n||arguments.length===2)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||=Array.prototype.slice.call(t,0,i),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var l={exports:{}};function u(){}u.prototype={on:function(e,t,n){var r=this.e||={};return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||={})[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||={},r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},l.exports=u;var d=l.exports.TinyEmitter=u,f=function(e){return e[1]!=null},p=function(e){var t=e.properties,n=t===void 0?{}:t,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,[`properties`]),i=function(e){return Object.entries(e).sort((function(e,t){var n=e[0],r=t[0];return n.localeCompare(r,void 0)}))};return JSON.stringify([i(r),i(n)])},m=function(e){return o(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:t=p(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(r=t,o(void 0,void 0,void 0,(function(){var e,t,n;return s(this,(function(i){switch(i.label){case 0:if(e=typeof globalThis<`u`&&globalThis.crypto?.subtle?globalThis.crypto?.subtle:void 0,typeof TextEncoder>`u`||!e?.digest||typeof Uint8Array>`u`)throw Error(`Hashing function not available`);return t=new TextEncoder().encode(r),[4,e.digest(`SHA-256`,t)];case 1:return n=i.sent(),[2,Array.from(new Uint8Array(n)).map((function(e){return e.toString(16).padStart(2,`0`)})).join(``)]}}))})))];case 2:return[2,n.sent()];case 3:return n.sent(),[2,t];case 4:return[2]}var r}))}))},h=function(e){var t,n=e.clientKey,r=e.appName,i=e.connectionId,a=e.customHeaders,o=e.headerName,s=o===void 0?`authorization`:o,c=e.etag,l=e.isPost,u=((t={accept:`application/json`})[s.toLocaleLowerCase()]=n,t[`unleash-sdk`]=`unleash-js-sdk:3.8.0`,t[`unleash-appname`]=r,t);return l&&(u[`content-type`]=`application/json`),c&&(u[`if-none-match`]=c),Object.entries(a||{}).filter(f).forEach((function(e){var t=e[0],n=e[1];return u[t.toLocaleLowerCase()]=n})),u[`unleash-connection-id`]=i,u},g=function(){},_=function(){function e(e){var t=e.onError,n=e.onSent,r=e.appName,i=e.metricsInterval,a=e.disableMetrics,o=a!==void 0&&a,s=e.url,c=e.clientKey,l=e.fetch,u=e.headerName,d=e.customHeaders,f=d===void 0?{}:d,p=e.metricsIntervalInitial,m=e.connectionId,h=e.metricRegistry;this.onError=t,this.onSent=n||g,this.disabled=o,this.metricsInterval=1e3*i,this.metricsIntervalInitial=1e3*p,this.appName=r,this.url=s instanceof URL?s:new URL(s),this.clientKey=c,this.bucket=this.createEmptyBucket(),this.fetch=l,this.headerName=u,this.customHeaders=f,this.connectionId=m,this.metricRegistry=h}return e.prototype.start=function(){var e=this;if(this.disabled)return!1;this.setupMetricsFlushOnPageUnload(),typeof this.metricsInterval==`number`&&this.metricsInterval>0&&(this.metricsIntervalInitial>0?setTimeout((function(){e.startTimer(),e.sendMetrics()}),this.metricsIntervalInitial):this.startTimer())},e.prototype.stop=function(){this.timer&&(clearInterval(this.timer),delete this.timer),this.removeMetricsFlushOnPageUnload()},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){return h({clientKey:this.clientKey,appName:this.appName,connectionId:this.connectionId,customHeaders:this.customHeaders,headerName:this.headerName,isPost:!0})},e.prototype.sendMetrics=function(){return o(this,arguments,void 0,(function(e){var t,n,r,i=(e===void 0?{}:e).fireAndForget,a=i!==void 0&&i;return s(this,(function(e){switch(e.label){case 0:if(t=`${this.url}/client/metrics`,n=this.getPayload(),this.bucketIsEmpty(n)&&(!n.impactMetrics||n.impactMetrics.length===0))return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.fetch(t,{cache:`no-cache`,method:`POST`,headers:this.getHeaders(),body:JSON.stringify(n),keepalive:a})];case 2:return e.sent(),this.onSent(n),[3,4];case 3:return r=e.sent(),console.error(`Unleash: unable to send feature metrics`,r),this.onError(r),[3,4];case 4:return[2]}}))}))},e.prototype.count=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][t?`yes`:`no`]++,!0)},e.prototype.countVariant=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[t]?this.bucket.toggles[e].variants[t]+=1:this.bucket.toggles[e].variants[t]=1,!0)},e.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var e=this;this.timer=setInterval((function(){e.sendMetrics()}),this.metricsInterval)},e.prototype.bucketIsEmpty=function(e){return Object.keys(e.bucket.toggles).length===0},e.prototype.getPayload=function(){var e=a(a({},this.bucket),{stop:new Date});this.bucket=this.createEmptyBucket();var t={bucket:e,appName:this.appName,instanceId:`browser`};return t.impactMetrics=this.metricRegistry?.collect()||[],t},e.prototype.setupMetricsFlushOnPageUnload=function(){var e=this;typeof document>`u`||typeof window>`u`||typeof document.addEventListener!=`function`||document.addEventListener(`visibilitychange`,this.flushMetricsOnPageUnload=function(){document.visibilityState===`hidden`&&e.sendMetrics({fireAndForget:!0})})},e.prototype.removeMetricsFlushOnPageUnload=function(){this.flushMetricsOnPageUnload&&=(document.removeEventListener(`visibilitychange`,this.flushMetricsOnPageUnload),void 0)},e}(),v=function(){function e(){this.store=new Map}return e.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){return this.store.set(e,t),[2]}))}))},e.prototype.get=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.store.get(e)]}))}))},e}(),y=function(){function e(e){e===void 0&&(e=`unleash:repository`),this.prefix=e}return e.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){var n,r;return s(this,(function(i){n=JSON.stringify(t),r=`${this.prefix}:${e}`;try{window.localStorage.setItem(r,n)}catch(e){console.error(e)}return[2]}))}))},e.prototype.get=function(e){try{var t=`${this.prefix}:${e}`,n=window.localStorage.getItem(t);return n?JSON.parse(n):void 0}catch(e){console.error(e)}},e}(),b=function(){return typeof crypto.randomUUID==`function`?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(e===`x`?t:3&t|8).toString(16)}))},x=function(){function e(){}return e.prototype.generateEventId=function(){return b()},e.prototype.createImpressionEvent=function(e,t,n,r,i,o){var s=this.createBaseEvent(e,t,n,r,i);return o?a(a({},s),{variant:o}):s},e.prototype.createBaseEvent=function(e,t,n,r,i){return{eventType:r,eventId:this.generateEventId(),context:e,enabled:t,featureName:n,impressionData:i}},e}();function S(e){return e!==void 0&&!Number.isFinite(e)}function C(e){return e?Object.keys(e).sort().map((function(t){return`${t}=${e[t]}`})).join(`,`):``}function w(e){var t={};if(!e)return t;for(var n=0,r=e.split(`,`);n<r.length;n++){var i=r[n].split(`=`),a=i[0];t[a]=i[1]}return t}var T=function(e){return`value`in e},E=function(e){return`buckets`in e},D=function(){function e(e){this.opts=e,this.values=new Map}return e.prototype.inc=function(e,t){if(!S(e)){var n=e??1;if(!(n<=0)){var r=C(t),i=this.values.get(r)??0;this.values.set(r,i+n)}}},e.prototype.collect=function(){var e=Array.from(this.values.entries()).map((function(e){var t=e[0],n=e[1];return{labels:w(t),value:n}}));return this.values.clear(),e.length===0&&e.push({labels:{},value:0}),{name:this.opts.name,help:this.opts.help,type:`counter`,samples:e}},e}(),O=function(){function e(e){this.opts=e,this.values=new Map;var t=e.buckets&&e.buckets.length>0?e.buckets:[.005,.01,.025,.05,.1,.25,.5,1,2.5,5,10],n=Array.from(new Set(t.filter((function(e){return e!==1/0})))).sort((function(e,t){return e-t}));this.buckets=c(c([],n,!0),[1/0],!1)}return e.prototype.restore=function(e){var t=C(e.labels),n={count:e.count,sum:e.sum,buckets:new Map(e.buckets.map((function(e){return[e.le===`+Inf`?1/0:e.le,e.count]})))};this.values.set(t,n)},e.prototype.observe=function(e,t){if(!S(e)){var n=C(t),r=this.values.get(n);if(!r){for(var i=new Map,a=0,o=this.buckets;a<o.length;a++){var s=o[a];i.set(s,0)}r={count:0,sum:0,buckets:i},this.values.set(n,r)}r.count++,r.sum+=e;for(var c=0,l=this.buckets;c<l.length;c++)if(e<=(s=l[c])){var u=r.buckets.get(s)??0;r.buckets.set(s,u+1)}}},e.prototype.collect=function(){var e=Array.from(this.values.entries()).map((function(e){var t=e[0],n=e[1];return{labels:w(t),count:n.count,sum:n.sum,buckets:Array.from(n.buckets.entries()).map((function(e){var t=e[0];return{le:t===1/0?`+Inf`:t,count:e[1]}}))}}));return this.values.clear(),e.length===0&&e.push({labels:{},count:0,sum:0,buckets:this.buckets.map((function(e){return{le:e===1/0?`+Inf`:e,count:0}}))}),{name:this.opts.name,help:this.opts.help,type:`histogram`,samples:e}},e}(),k=function(){function e(){this.counters=new Map,this.histograms=new Map}return e.prototype.getCounter=function(e){return this.counters.get(e)},e.prototype.getHistogram=function(e){return this.histograms.get(e)},e.prototype.counter=function(e){var t=e.name,n=this.counters.get(t);return n||(n=new D(e),this.counters.set(t,n)),n},e.prototype.histogram=function(e){var t=e.name,n=this.histograms.get(t);return n||(n=new O(e),this.histograms.set(t,n)),n},e.prototype.collect=function(){var e=Array.from(this.counters.values()).map((function(e){return e.collect()})),t=Array.from(this.histograms.values()).map((function(e){return e.collect()})),n=c(c([],e,!0),t,!0).filter((function(e){return e.samples.length>0}));return n.length>0?n:[]},e.prototype.restore=function(e){for(var t=function(e){switch(e.type){case`counter`:for(var t=n.counter({name:e.name,help:e.help}),r=0,i=e.samples;r<i.length;r++){var a=i[r];T(a)&&t.inc(a.value,a.labels)}break;case`histogram`:var o=e.samples.find(E);if(o){var s=o.buckets.map((function(e){return e.le===`+Inf`?1/0:e.le})),c=n.histogram({name:e.name,help:e.help,buckets:s});e.samples.filter(E).forEach((function(e){c.restore(e)}))}}},n=this,r=0,i=e;r<i.length;r++)t(i[r])},e}(),A={INIT:`initialized`,ERROR:`error`,READY:`ready`,UPDATE:`update`,IMPRESSION:`impression`,SENT:`sent`,RECOVERED:`recovered`,WARN:`warn`},j=function(e){function t(t,n,r){var i=e.call(this)||this;return i.metricRegistry=t,i.appName=n,i.environment=r,i}return i(t,e),t.prototype.defineCounter=function(e,t){e&&t?this.metricRegistry.counter({name:e,help:t,labelNames:[`featureName`,`appName`,`environment`]}):this.emit(A.WARN,`Counter name or help cannot be empty: ${e}, ${t}.`)},t.prototype.defineHistogram=function(e,t,n){e&&t?this.metricRegistry.histogram({name:e,help:t,labelNames:[`featureName`,`appName`,`environment`],buckets:n}):this.emit(A.WARN,`Histogram name or help cannot be empty: ${e}, ${t}.`)},t.prototype.incrementCounter=function(e,t){var n=this.metricRegistry.getCounter(e);if(n){var r={appName:this.appName,environment:this.environment};n.inc(t,r)}else this.emit(A.WARN,`Counter ${e} not defined, this counter will not be incremented.`)},t.prototype.observeHistogram=function(e,t){var n=this.metricRegistry.getHistogram(e);if(n){var r={appName:this.appName,environment:this.environment};n.observe(t,r)}else this.emit(A.WARN,`Histogram ${e} not defined, this histogram will not be updated.`)},t}(d),M=[`userId`,`sessionId`,`remoteAddress`,`currentTime`],N=function(e){return M.includes(e)},P=`isEnabled`,F=`getVariant`,I={name:`disabled`,enabled:!1,feature_enabled:!1},L=`repo`,R=`repoLastUpdateTimestamp`,z=function(){try{if(typeof window<`u`&&`fetch`in window)return fetch.bind(window);if(`fetch`in globalThis)return fetch.bind(globalThis)}catch(e){console.error(`Unleash failed to resolve "fetch"`,e)}},B=function(e){function t(t){var n=t.storageProvider,r=t.url,i=t.clientKey,o=t.disableRefresh,s=o!==void 0&&o,c=t.refreshInterval,l=c===void 0?30:c,u=t.metricsInterval,d=u===void 0?30:u,f=t.metricsIntervalInitial,p=f===void 0?2:f,m=t.disableMetrics,h=m!==void 0&&m,g=t.appName,S=t.environment,C=S===void 0?`default`:S,w=t.context,T=t.fetch,E=T===void 0?z():T,D=t.createAbortController,O=D===void 0?function(){try{if(typeof window<`u`&&`AbortController`in window)return function(){return new window.AbortController};if(`fetch`in globalThis)return function(){return new globalThis.AbortController}}catch(e){console.error(`Unleash failed to resolve "AbortController" factory`,e)}}():D,M=t.bootstrap,N=t.bootstrapOverride,P=N===void 0||N,F=t.headerName,I=F===void 0?`Authorization`:F,L=t.customHeaders,R=L===void 0?{}:L,B=t.impressionDataAll,V=B!==void 0&&B,H=t.usePOSTrequests,U=H!==void 0&&H,W=t.experimental,G=e.call(this)||this;if(G.toggles=[],G.etag=``,G.readyEventEmitted=!1,G.fetchedFromServer=!1,G.usePOSTrequests=!1,G.started=!1,!r)throw Error(`url is required`);if(!i)throw Error(`clientKey is required`);if(!g)throw Error(`appName is required.`);G.eventsHandler=new x,G.impressionDataAll=V,G.toggles=M&&M.length>0?M:[],G.url=r instanceof URL?r:new URL(r),G.clientKey=i,G.headerName=I,G.customHeaders=R,G.storage=n||(typeof window<`u`?new y:new v),G.refreshInterval=s?0:1e3*l,G.context=a({appName:g,environment:C},w),G.usePOSTrequests=U,G.sdkState=`initializing`;var K=W?.metricsUrl;!K||K instanceof URL||(K=new URL(K)),G.experimental=a(a({},W),{metricsUrl:K}),W!=null&&W.togglesStorageTTL&&W?.togglesStorageTTL>0&&(G.experimental.togglesStorageTTL=1e3*W.togglesStorageTTL),G.lastRefreshTimestamp=0,G.ready=new Promise((function(e){G.init().then(e).catch((function(t){console.error(t),G.sdkState=`error`,G.emit(A.ERROR,t),G.lastError=t,e()}))})),E||console.error(`Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.`),O||console.error(`Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.`),G.fetch=E,G.createAbortController=O,G.bootstrap=M&&M.length>0?M:void 0,G.bootstrapOverride=P,G.connectionId=b(),G.metricRegistry=new k;var q=G.resolveEnvironment(i,C);return G.impactMetrics=new j(G.metricRegistry,g,q),G.metrics=new _({onError:function(e){return G.emit(A.ERROR,{type:`metrics`,error:e})},onSent:G.emit.bind(G,A.SENT),appName:g,metricsInterval:d,disableMetrics:h,url:G.experimental?.metricsUrl||G.url,clientKey:i,fetch:E,headerName:I,customHeaders:R,metricsIntervalInitial:p,connectionId:G.connectionId,metricRegistry:G.metricRegistry}),G}return i(t,e),t.prototype.getAllToggles=function(){return c([],this.toggles,!0)},t.prototype.isEnabled=function(e){var t=this.toggles.find((function(t){return t.name===e})),n=!!t&&t.enabled;if(this.metrics.count(e,n),t?.impressionData||this.impressionDataAll){var r=this.eventsHandler.createImpressionEvent(this.context,n,e,P,t?.impressionData??void 0);this.emit(A.IMPRESSION,r)}return n},t.prototype.getVariant=function(e){var t=this.toggles.find((function(t){return t.name===e})),n=t?.enabled||!1,r=t?t.variant:I;if(r.name&&this.metrics.countVariant(e,r.name),this.metrics.count(e,n),t?.impressionData||this.impressionDataAll){var i=this.eventsHandler.createImpressionEvent(this.context,n,e,F,t?.impressionData??void 0,r.name);this.emit(A.IMPRESSION,i)}return a(a({},r),{feature_enabled:n})},t.prototype.updateToggles=function(){return o(this,void 0,void 0,(function(){var e=this;return s(this,(function(t){switch(t.label){case 0:return this.timerRef||this.fetchedFromServer?[4,this.fetchToggles()]:[3,2];case 1:return t.sent(),[3,4];case 2:return this.started?[4,new Promise((function(t){var n=function(){e.fetchToggles().then((function(){e.off(A.READY,n),t()}))};e.once(A.READY,n)}))]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},t.prototype.updateContext=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return(e.appName||e.environment)&&this.emit(A.WARN,`appName and environment are static. They can't be updated with updateContext.`),t={environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId},this.context=a(a({},t),e),[4,this.updateToggles()];case 1:return n.sent(),[2]}}))}))},t.prototype.getContext=function(){return a({},this.context)},t.prototype.setContextField=function(e,t){return o(this,void 0,void 0,(function(){var n,r,i;return s(this,(function(o){switch(o.label){case 0:return N(e)?this.context=a(a({},this.context),((r={})[e]=t,r)):(n=a(a({},this.context.properties),((i={})[e]=t,i)),this.context=a(a({},this.context),{properties:n})),[4,this.updateToggles()];case 1:return o.sent(),[2]}}))}))},t.prototype.removeContextField=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return N(e)?this.context=a(a({},this.context),((t={})[e]=void 0,t)):typeof this.context.properties==`object`&&delete this.context.properties[e],[4,this.updateToggles()];case 1:return n.sent(),[2]}}))}))},t.prototype.setReady=function(){this.readyEventEmitted=!0,this.emit(A.READY)},t.prototype.init=function(){return o(this,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return[4,this.resolveSessionId()];case 1:return e=r.sent(),this.context=a({sessionId:e},this.context),[4,this.storage.get(L)];case 2:return t=r.sent()||[],n=this,[4,this.getLastRefreshTimestamp()];case 3:return n.lastRefreshTimestamp=r.sent(),!this.bootstrap||!this.bootstrapOverride&&t.length!==0?[3,6]:[4,this.storage.save(L,this.bootstrap)];case 4:return r.sent(),this.toggles=this.bootstrap,this.sdkState=`healthy`,[4,this.storeLastRefreshTimestamp()];case 5:return r.sent(),this.setReady(),[3,7];case 6:this.toggles=t,r.label=7;case 7:return this.sdkState=`healthy`,this.emit(A.INIT),[2]}}))}))},t.prototype.start=function(){return o(this,void 0,void 0,(function(){var e,t=this;return s(this,(function(n){switch(n.label){case 0:return this.started=!0,this.timerRef?(console.error(`Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again.`),[2]):[4,this.ready];case 1:return n.sent(),this.metrics.start(),e=this.refreshInterval,[4,this.initialFetchToggles()];case 2:return n.sent(),e>0&&(this.timerRef=setInterval((function(){return t.fetchToggles()}),e)),[2]}}))}))},t.prototype.stop=function(){this.timerRef&&=(clearInterval(this.timerRef),void 0),this.metrics.stop()},t.prototype.isReady=function(){return this.readyEventEmitted},t.prototype.getError=function(){return this.sdkState===`error`?this.lastError:void 0},t.prototype.sendMetrics=function(){return this.metrics.sendMetrics()},t.prototype.resolveSessionId=function(){return o(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get(`sessionId`)];case 1:return(e=t.sent())?[3,3]:(e=Math.floor(1e9*Math.random()),[4,this.storage.save(`sessionId`,e.toString(10))]);case 2:t.sent(),t.label=3;case 3:return[2,e.toString(10)]}}))}))},t.prototype.getHeaders=function(){return h({clientKey:this.clientKey,connectionId:this.connectionId,appName:this.context.appName,customHeaders:this.customHeaders,headerName:this.headerName,etag:this.etag,isPost:this.usePOSTrequests})},t.prototype.storeToggles=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.toggles=e,this.emit(A.UPDATE),[4,this.storage.save(L,e)];case 1:return t.sent(),[2]}}))}))},t.prototype.isTogglesStorageTTLEnabled=function(){return!!(this.experimental?.togglesStorageTTL&&this.experimental.togglesStorageTTL>0)},t.prototype.isUpToDate=function(){if(!this.isTogglesStorageTTLEnabled())return!1;var e=Date.now(),t=this.experimental?.togglesStorageTTL||0;return this.lastRefreshTimestamp>0&&this.lastRefreshTimestamp<=e&&e-this.lastRefreshTimestamp<=t},t.prototype.getLastRefreshTimestamp=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return this.isTogglesStorageTTLEnabled()?[4,this.storage.get(R)]:[3,3];case 1:return e=n.sent(),[4,m(this.context)];case 2:return t=n.sent(),[2,e?.key===t?e.timestamp:0];case 3:return[2,0]}}))}))},t.prototype.storeLastRefreshTimestamp=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return this.isTogglesStorageTTLEnabled()?(this.lastRefreshTimestamp=Date.now(),t={},[4,m(this.context)]):[3,3];case 1:return t.key=n.sent(),t.timestamp=this.lastRefreshTimestamp,e=t,[4,this.storage.save(R,e)];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},t.prototype.initialFetchToggles=function(){if(!this.isUpToDate())return this.fetchToggles();this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady())},t.prototype.fetchToggles=function(){return o(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!this.fetch)return[3,9];this.abortController&&!this.abortController.signal.aborted&&this.abortController.abort(),this.abortController=this.createAbortController?.call(this),e=this.abortController?this.abortController.signal:void 0,s.label=1;case 1:return s.trys.push([1,7,8,9]),t=this.usePOSTrequests,n=t?this.url:function(e,t){var n=new URL(e.toString());return Object.entries(t).filter(f).forEach((function(e){var t=e[0],r=e[1];t===`properties`&&r?Object.entries(r).filter(f).forEach((function(e){var t=e[0],r=e[1];return n.searchParams.append(`properties[${t}]`,r)})):n.searchParams.append(t,r)})),n}(this.url,this.context),r=t?`POST`:`GET`,i=t?JSON.stringify({context:this.context}):void 0,[4,this.fetch(n.toString(),{method:r,cache:`no-cache`,headers:this.getHeaders(),body:i,signal:e})];case 2:return a=s.sent(),this.sdkState===`error`&&a.status<400&&(this.sdkState=`healthy`,this.emit(A.RECOVERED)),a.ok?(this.etag=a.headers.get(`ETag`)||``,[4,a.json()]):[3,5];case 3:return o=s.sent(),[4,this.storeToggles(o.toggles)];case 4:return s.sent(),this.sdkState!==`healthy`&&(this.sdkState=`healthy`),this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady()),this.storeLastRefreshTimestamp(),[3,6];case 5:a.status===304?this.storeLastRefreshTimestamp():(console.error(`Unleash: Fetching feature toggles did not have an ok response`),this.sdkState=`error`,this.emit(A.ERROR,{type:`HttpError`,code:a.status}),this.lastError={type:`HttpError`,code:a.status}),s.label=6;case 6:return[3,9];case 7:return typeof(c=s.sent())==`object`&&c!==null&&`name`in c&&c.name===`AbortError`||(console.error(`Unleash: unable to fetch feature toggles`,c),this.sdkState=`error`,this.emit(A.ERROR,{type:`fetch-toggles`,error:c}),this.lastError=c),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}}))}))},t.prototype.resolveEnvironment=function(e,t){return function(e){var t=e.indexOf(`:`);if(t!==-1){var n=e.slice(t+1),r=n.lastIndexOf(`.`);if(r!==-1)return n.slice(0,r)}}(e)||t},t}(d),V=n.createContext(null),H={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:`http://localhost`,appName:`offline`,clientKey:`not-used`},U=n.startTransition||(e=>e()),W=({config:e,children:t,unleashClient:r,startClient:i=!0,stopClient:a=!0,startTransition:o=U})=>{var s,c;let l=e||H,u=n.useRef(r||new B(l)),[d,f]=n.useState(!!(r?e!=null&&e.bootstrap&&e?.bootstrapOverride!==!1||(s=r.isReady)!=null&&s.call(r):l.bootstrap&&l.bootstrapOverride!==!1)),[p,m]=(0,n.useState)((c=u.current).getError?.call(c)||null);(0,n.useEffect)(()=>{!l&&!r&&console.error(`You must provide either a config or an unleash client to the flag provider.
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";var n=e(t(),1),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){a=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(s[0]===6&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function c(e,t,n){if(n||arguments.length===2)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||=Array.prototype.slice.call(t,0,i),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var l={exports:{}};function u(){}u.prototype={on:function(e,t,n){var r=this.e||={};return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||={})[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||={},r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},l.exports=u;var d=l.exports.TinyEmitter=u,f=function(e){return e[1]!=null},p=function(e){var t=e.properties,n=t===void 0?{}:t,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,[`properties`]),i=function(e){return Object.entries(e).sort((function(e,t){var n=e[0],r=t[0];return n.localeCompare(r,void 0)}))};return JSON.stringify([i(r),i(n)])},m=function(e){return o(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:t=p(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(r=t,o(void 0,void 0,void 0,(function(){var e,t,n;return s(this,(function(i){switch(i.label){case 0:if(e=typeof globalThis<`u`&&globalThis.crypto?.subtle?globalThis.crypto?.subtle:void 0,typeof TextEncoder>`u`||!e?.digest||typeof Uint8Array>`u`)throw Error(`Hashing function not available`);return t=new TextEncoder().encode(r),[4,e.digest(`SHA-256`,t)];case 1:return n=i.sent(),[2,Array.from(new Uint8Array(n)).map((function(e){return e.toString(16).padStart(2,`0`)})).join(``)]}}))})))];case 2:return[2,n.sent()];case 3:return n.sent(),[2,t];case 4:return[2]}var r}))}))},h=function(e){var t,n=e.clientKey,r=e.appName,i=e.connectionId,a=e.customHeaders,o=e.headerName,s=o===void 0?`authorization`:o,c=e.etag,l=e.isPost,u=((t={accept:`application/json`})[s.toLocaleLowerCase()]=n,t[`unleash-sdk`]=`unleash-js-sdk:3.8.0`,t[`unleash-appname`]=r,t);return l&&(u[`content-type`]=`application/json`),c&&(u[`if-none-match`]=c),Object.entries(a||{}).filter(f).forEach((function(e){var t=e[0],n=e[1];return u[t.toLocaleLowerCase()]=n})),u[`unleash-connection-id`]=i,u},g=function(){},_=function(){function e(e){var t=e.onError,n=e.onSent,r=e.appName,i=e.metricsInterval,a=e.disableMetrics,o=a!==void 0&&a,s=e.url,c=e.clientKey,l=e.fetch,u=e.headerName,d=e.customHeaders,f=d===void 0?{}:d,p=e.metricsIntervalInitial,m=e.connectionId,h=e.metricRegistry;this.onError=t,this.onSent=n||g,this.disabled=o,this.metricsInterval=1e3*i,this.metricsIntervalInitial=1e3*p,this.appName=r,this.url=s instanceof URL?s:new URL(s),this.clientKey=c,this.bucket=this.createEmptyBucket(),this.fetch=l,this.headerName=u,this.customHeaders=f,this.connectionId=m,this.metricRegistry=h}return e.prototype.start=function(){var e=this;if(this.disabled)return!1;this.setupMetricsFlushOnPageUnload(),typeof this.metricsInterval==`number`&&this.metricsInterval>0&&(this.metricsIntervalInitial>0?setTimeout((function(){e.startTimer(),e.sendMetrics()}),this.metricsIntervalInitial):this.startTimer())},e.prototype.stop=function(){this.timer&&(clearInterval(this.timer),delete this.timer),this.removeMetricsFlushOnPageUnload()},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){return h({clientKey:this.clientKey,appName:this.appName,connectionId:this.connectionId,customHeaders:this.customHeaders,headerName:this.headerName,isPost:!0})},e.prototype.sendMetrics=function(){return o(this,arguments,void 0,(function(e){var t,n,r,i=(e===void 0?{}:e).fireAndForget,a=i!==void 0&&i;return s(this,(function(e){switch(e.label){case 0:if(t=`${this.url}/client/metrics`,n=this.getPayload(),this.bucketIsEmpty(n)&&(!n.impactMetrics||n.impactMetrics.length===0))return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.fetch(t,{cache:`no-cache`,method:`POST`,headers:this.getHeaders(),body:JSON.stringify(n),keepalive:a})];case 2:return e.sent(),this.onSent(n),[3,4];case 3:return r=e.sent(),console.error(`Unleash: unable to send feature metrics`,r),this.onError(r),[3,4];case 4:return[2]}}))}))},e.prototype.count=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][t?`yes`:`no`]++,!0)},e.prototype.countVariant=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[t]?this.bucket.toggles[e].variants[t]+=1:this.bucket.toggles[e].variants[t]=1,!0)},e.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var e=this;this.timer=setInterval((function(){e.sendMetrics()}),this.metricsInterval)},e.prototype.bucketIsEmpty=function(e){return Object.keys(e.bucket.toggles).length===0},e.prototype.getPayload=function(){var e=a(a({},this.bucket),{stop:new Date});this.bucket=this.createEmptyBucket();var t={bucket:e,appName:this.appName,instanceId:`browser`};return t.impactMetrics=this.metricRegistry?.collect()||[],t},e.prototype.setupMetricsFlushOnPageUnload=function(){var e=this;typeof document>`u`||typeof window>`u`||typeof document.addEventListener!=`function`||document.addEventListener(`visibilitychange`,this.flushMetricsOnPageUnload=function(){document.visibilityState===`hidden`&&e.sendMetrics({fireAndForget:!0})})},e.prototype.removeMetricsFlushOnPageUnload=function(){this.flushMetricsOnPageUnload&&=(document.removeEventListener(`visibilitychange`,this.flushMetricsOnPageUnload),void 0)},e}(),v=function(){function e(){this.store=new Map}return e.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){return this.store.set(e,t),[2]}))}))},e.prototype.get=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.store.get(e)]}))}))},e}(),y=function(){function e(e){e===void 0&&(e=`unleash:repository`),this.prefix=e}return e.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){var n,r;return s(this,(function(i){n=JSON.stringify(t),r=`${this.prefix}:${e}`;try{window.localStorage.setItem(r,n)}catch(e){console.error(e)}return[2]}))}))},e.prototype.get=function(e){try{var t=`${this.prefix}:${e}`,n=window.localStorage.getItem(t);return n?JSON.parse(n):void 0}catch(e){console.error(e)}},e}(),b=function(){return typeof crypto.randomUUID==`function`?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(e===`x`?t:3&t|8).toString(16)}))},x=function(){function e(){}return e.prototype.generateEventId=function(){return b()},e.prototype.createImpressionEvent=function(e,t,n,r,i,o){var s=this.createBaseEvent(e,t,n,r,i);return o?a(a({},s),{variant:o}):s},e.prototype.createBaseEvent=function(e,t,n,r,i){return{eventType:r,eventId:this.generateEventId(),context:e,enabled:t,featureName:n,impressionData:i}},e}();function S(e){return e!==void 0&&!Number.isFinite(e)}function C(e){return e?Object.keys(e).sort().map((function(t){return`${t}=${e[t]}`})).join(`,`):``}function w(e){var t={};if(!e)return t;for(var n=0,r=e.split(`,`);n<r.length;n++){var i=r[n].split(`=`),a=i[0];t[a]=i[1]}return t}var T=function(e){return`value`in e},E=function(e){return`buckets`in e},D=function(){function e(e){this.opts=e,this.values=new Map}return e.prototype.inc=function(e,t){if(!S(e)){var n=e??1;if(!(n<=0)){var r=C(t),i=this.values.get(r)??0;this.values.set(r,i+n)}}},e.prototype.collect=function(){var e=Array.from(this.values.entries()).map((function(e){var t=e[0],n=e[1];return{labels:w(t),value:n}}));return this.values.clear(),e.length===0&&e.push({labels:{},value:0}),{name:this.opts.name,help:this.opts.help,type:`counter`,samples:e}},e}(),O=function(){function e(e){this.opts=e,this.values=new Map;var t=e.buckets&&e.buckets.length>0?e.buckets:[.005,.01,.025,.05,.1,.25,.5,1,2.5,5,10],n=Array.from(new Set(t.filter((function(e){return e!==1/0})))).sort((function(e,t){return e-t}));this.buckets=c(c([],n,!0),[1/0],!1)}return e.prototype.restore=function(e){var t=C(e.labels),n={count:e.count,sum:e.sum,buckets:new Map(e.buckets.map((function(e){return[e.le===`+Inf`?1/0:e.le,e.count]})))};this.values.set(t,n)},e.prototype.observe=function(e,t){if(!S(e)){var n=C(t),r=this.values.get(n);if(!r){for(var i=new Map,a=0,o=this.buckets;a<o.length;a++){var s=o[a];i.set(s,0)}r={count:0,sum:0,buckets:i},this.values.set(n,r)}r.count++,r.sum+=e;for(var c=0,l=this.buckets;c<l.length;c++)if(e<=(s=l[c])){var u=r.buckets.get(s)??0;r.buckets.set(s,u+1)}}},e.prototype.collect=function(){var e=Array.from(this.values.entries()).map((function(e){var t=e[0],n=e[1];return{labels:w(t),count:n.count,sum:n.sum,buckets:Array.from(n.buckets.entries()).map((function(e){var t=e[0];return{le:t===1/0?`+Inf`:t,count:e[1]}}))}}));return this.values.clear(),e.length===0&&e.push({labels:{},count:0,sum:0,buckets:this.buckets.map((function(e){return{le:e===1/0?`+Inf`:e,count:0}}))}),{name:this.opts.name,help:this.opts.help,type:`histogram`,samples:e}},e}(),k=function(){function e(){this.counters=new Map,this.histograms=new Map}return e.prototype.getCounter=function(e){return this.counters.get(e)},e.prototype.getHistogram=function(e){return this.histograms.get(e)},e.prototype.counter=function(e){var t=e.name,n=this.counters.get(t);return n||(n=new D(e),this.counters.set(t,n)),n},e.prototype.histogram=function(e){var t=e.name,n=this.histograms.get(t);return n||(n=new O(e),this.histograms.set(t,n)),n},e.prototype.collect=function(){var e=Array.from(this.counters.values()).map((function(e){return e.collect()})),t=Array.from(this.histograms.values()).map((function(e){return e.collect()})),n=c(c([],e,!0),t,!0).filter((function(e){return e.samples.length>0}));return n.length>0?n:[]},e.prototype.restore=function(e){for(var t=function(e){switch(e.type){case`counter`:for(var t=n.counter({name:e.name,help:e.help}),r=0,i=e.samples;r<i.length;r++){var a=i[r];T(a)&&t.inc(a.value,a.labels)}break;case`histogram`:var o=e.samples.find(E);if(o){var s=o.buckets.map((function(e){return e.le===`+Inf`?1/0:e.le})),c=n.histogram({name:e.name,help:e.help,buckets:s});e.samples.filter(E).forEach((function(e){c.restore(e)}))}}},n=this,r=0,i=e;r<i.length;r++)t(i[r])},e}(),A={INIT:`initialized`,ERROR:`error`,READY:`ready`,UPDATE:`update`,IMPRESSION:`impression`,SENT:`sent`,RECOVERED:`recovered`,WARN:`warn`},j=function(e){function t(t,n,r){var i=e.call(this)||this;return i.metricRegistry=t,i.appName=n,i.environment=r,i}return i(t,e),t.prototype.defineCounter=function(e,t){e&&t?this.metricRegistry.counter({name:e,help:t,labelNames:[`featureName`,`appName`,`environment`]}):this.emit(A.WARN,`Counter name or help cannot be empty: ${e}, ${t}.`)},t.prototype.defineHistogram=function(e,t,n){e&&t?this.metricRegistry.histogram({name:e,help:t,labelNames:[`featureName`,`appName`,`environment`],buckets:n}):this.emit(A.WARN,`Histogram name or help cannot be empty: ${e}, ${t}.`)},t.prototype.incrementCounter=function(e,t){var n=this.metricRegistry.getCounter(e);if(n){var r={appName:this.appName,environment:this.environment};n.inc(t,r)}else this.emit(A.WARN,`Counter ${e} not defined, this counter will not be incremented.`)},t.prototype.observeHistogram=function(e,t){var n=this.metricRegistry.getHistogram(e);if(n){var r={appName:this.appName,environment:this.environment};n.observe(t,r)}else this.emit(A.WARN,`Histogram ${e} not defined, this histogram will not be updated.`)},t}(d),M=[`userId`,`sessionId`,`remoteAddress`,`currentTime`],N=function(e){return M.includes(e)},P=`isEnabled`,F=`getVariant`,I={name:`disabled`,enabled:!1,feature_enabled:!1},L=`repo`,R=`repoLastUpdateTimestamp`,z=function(){try{if(typeof window<`u`&&`fetch`in window)return fetch.bind(window);if(`fetch`in globalThis)return fetch.bind(globalThis)}catch(e){console.error(`Unleash failed to resolve "fetch"`,e)}},B=function(e){function t(t){var n=t.storageProvider,r=t.url,i=t.clientKey,o=t.disableRefresh,s=o!==void 0&&o,c=t.refreshInterval,l=c===void 0?30:c,u=t.metricsInterval,d=u===void 0?30:u,f=t.metricsIntervalInitial,p=f===void 0?2:f,m=t.disableMetrics,h=m!==void 0&&m,g=t.appName,S=t.environment,C=S===void 0?`default`:S,w=t.context,T=t.fetch,E=T===void 0?z():T,D=t.createAbortController,O=D===void 0?function(){try{if(typeof window<`u`&&`AbortController`in window)return function(){return new window.AbortController};if(`fetch`in globalThis)return function(){return new globalThis.AbortController}}catch(e){console.error(`Unleash failed to resolve "AbortController" factory`,e)}}():D,M=t.bootstrap,N=t.bootstrapOverride,P=N===void 0||N,F=t.headerName,I=F===void 0?`Authorization`:F,L=t.customHeaders,R=L===void 0?{}:L,B=t.impressionDataAll,V=B!==void 0&&B,H=t.usePOSTrequests,U=H!==void 0&&H,W=t.experimental,G=e.call(this)||this;if(G.toggles=[],G.etag=``,G.readyEventEmitted=!1,G.fetchedFromServer=!1,G.usePOSTrequests=!1,G.started=!1,!r)throw Error(`url is required`);if(!i)throw Error(`clientKey is required`);if(!g)throw Error(`appName is required.`);G.eventsHandler=new x,G.impressionDataAll=V,G.toggles=M&&M.length>0?M:[],G.url=r instanceof URL?r:new URL(r),G.clientKey=i,G.headerName=I,G.customHeaders=R,G.storage=n||(typeof window<`u`?new y:new v),G.refreshInterval=s?0:1e3*l,G.context=a({appName:g,environment:C},w),G.usePOSTrequests=U,G.sdkState=`initializing`;var K=W?.metricsUrl;!K||K instanceof URL||(K=new URL(K)),G.experimental=a(a({},W),{metricsUrl:K}),W!=null&&W.togglesStorageTTL&&W?.togglesStorageTTL>0&&(G.experimental.togglesStorageTTL=1e3*W.togglesStorageTTL),G.lastRefreshTimestamp=0,G.ready=new Promise((function(e){G.init().then(e).catch((function(t){console.error(t),G.sdkState=`error`,G.emit(A.ERROR,t),G.lastError=t,e()}))})),E||console.error(`Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.`),O||console.error(`Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.`),G.fetch=E,G.createAbortController=O,G.bootstrap=M&&M.length>0?M:void 0,G.bootstrapOverride=P,G.connectionId=b(),G.metricRegistry=new k;var q=G.resolveEnvironment(i,C);return G.impactMetrics=new j(G.metricRegistry,g,q),G.metrics=new _({onError:function(e){return G.emit(A.ERROR,{type:`metrics`,error:e})},onSent:G.emit.bind(G,A.SENT),appName:g,metricsInterval:d,disableMetrics:h,url:G.experimental?.metricsUrl||G.url,clientKey:i,fetch:E,headerName:I,customHeaders:R,metricsIntervalInitial:p,connectionId:G.connectionId,metricRegistry:G.metricRegistry}),G}return i(t,e),t.prototype.getAllToggles=function(){return c([],this.toggles,!0)},t.prototype.isEnabled=function(e){var t=this.toggles.find((function(t){return t.name===e})),n=!!t&&t.enabled;if(this.metrics.count(e,n),t?.impressionData||this.impressionDataAll){var r=this.eventsHandler.createImpressionEvent(this.context,n,e,P,t?.impressionData??void 0);this.emit(A.IMPRESSION,r)}return n},t.prototype.getVariant=function(e){var t=this.toggles.find((function(t){return t.name===e})),n=t?.enabled||!1,r=t?t.variant:I;if(r.name&&this.metrics.countVariant(e,r.name),this.metrics.count(e,n),t?.impressionData||this.impressionDataAll){var i=this.eventsHandler.createImpressionEvent(this.context,n,e,F,t?.impressionData??void 0,r.name);this.emit(A.IMPRESSION,i)}return a(a({},r),{feature_enabled:n})},t.prototype.updateToggles=function(){return o(this,void 0,void 0,(function(){var e=this;return s(this,(function(t){switch(t.label){case 0:return this.timerRef||this.fetchedFromServer?[4,this.fetchToggles()]:[3,2];case 1:return t.sent(),[3,4];case 2:return this.started?[4,new Promise((function(t){var n=function(){e.fetchToggles().then((function(){e.off(A.READY,n),t()}))};e.once(A.READY,n)}))]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},t.prototype.updateContext=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return(e.appName||e.environment)&&this.emit(A.WARN,`appName and environment are static. They can't be updated with updateContext.`),t={environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId},this.context=a(a({},t),e),[4,this.updateToggles()];case 1:return n.sent(),[2]}}))}))},t.prototype.getContext=function(){return a({},this.context)},t.prototype.setContextField=function(e,t){return o(this,void 0,void 0,(function(){var n,r,i;return s(this,(function(o){switch(o.label){case 0:return N(e)?this.context=a(a({},this.context),((r={})[e]=t,r)):(n=a(a({},this.context.properties),((i={})[e]=t,i)),this.context=a(a({},this.context),{properties:n})),[4,this.updateToggles()];case 1:return o.sent(),[2]}}))}))},t.prototype.removeContextField=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return N(e)?this.context=a(a({},this.context),((t={})[e]=void 0,t)):typeof this.context.properties==`object`&&delete this.context.properties[e],[4,this.updateToggles()];case 1:return n.sent(),[2]}}))}))},t.prototype.setReady=function(){this.readyEventEmitted=!0,this.emit(A.READY)},t.prototype.init=function(){return o(this,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return[4,this.resolveSessionId()];case 1:return e=r.sent(),this.context=a({sessionId:e},this.context),[4,this.storage.get(L)];case 2:return t=r.sent()||[],n=this,[4,this.getLastRefreshTimestamp()];case 3:return n.lastRefreshTimestamp=r.sent(),!this.bootstrap||!this.bootstrapOverride&&t.length!==0?[3,6]:[4,this.storage.save(L,this.bootstrap)];case 4:return r.sent(),this.toggles=this.bootstrap,this.sdkState=`healthy`,[4,this.storeLastRefreshTimestamp()];case 5:return r.sent(),this.setReady(),[3,7];case 6:this.toggles=t,r.label=7;case 7:return this.sdkState=`healthy`,this.emit(A.INIT),[2]}}))}))},t.prototype.start=function(){return o(this,void 0,void 0,(function(){var e,t=this;return s(this,(function(n){switch(n.label){case 0:return this.started=!0,this.timerRef?(console.error(`Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again.`),[2]):[4,this.ready];case 1:return n.sent(),this.metrics.start(),e=this.refreshInterval,[4,this.initialFetchToggles()];case 2:return n.sent(),e>0&&(this.timerRef=setInterval((function(){return t.fetchToggles()}),e)),[2]}}))}))},t.prototype.stop=function(){this.timerRef&&=(clearInterval(this.timerRef),void 0),this.metrics.stop()},t.prototype.isReady=function(){return this.readyEventEmitted},t.prototype.getError=function(){return this.sdkState===`error`?this.lastError:void 0},t.prototype.sendMetrics=function(){return this.metrics.sendMetrics()},t.prototype.resolveSessionId=function(){return o(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get(`sessionId`)];case 1:return(e=t.sent())?[3,3]:(e=Math.floor(1e9*Math.random()),[4,this.storage.save(`sessionId`,e.toString(10))]);case 2:t.sent(),t.label=3;case 3:return[2,e.toString(10)]}}))}))},t.prototype.getHeaders=function(){return h({clientKey:this.clientKey,connectionId:this.connectionId,appName:this.context.appName,customHeaders:this.customHeaders,headerName:this.headerName,etag:this.etag,isPost:this.usePOSTrequests})},t.prototype.storeToggles=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.toggles=e,this.emit(A.UPDATE),[4,this.storage.save(L,e)];case 1:return t.sent(),[2]}}))}))},t.prototype.isTogglesStorageTTLEnabled=function(){return!!(this.experimental?.togglesStorageTTL&&this.experimental.togglesStorageTTL>0)},t.prototype.isUpToDate=function(){if(!this.isTogglesStorageTTLEnabled())return!1;var e=Date.now(),t=this.experimental?.togglesStorageTTL||0;return this.lastRefreshTimestamp>0&&this.lastRefreshTimestamp<=e&&e-this.lastRefreshTimestamp<=t},t.prototype.getLastRefreshTimestamp=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return this.isTogglesStorageTTLEnabled()?[4,this.storage.get(R)]:[3,3];case 1:return e=n.sent(),[4,m(this.context)];case 2:return t=n.sent(),[2,e?.key===t?e.timestamp:0];case 3:return[2,0]}}))}))},t.prototype.storeLastRefreshTimestamp=function(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return this.isTogglesStorageTTLEnabled()?(this.lastRefreshTimestamp=Date.now(),t={},[4,m(this.context)]):[3,3];case 1:return t.key=n.sent(),t.timestamp=this.lastRefreshTimestamp,e=t,[4,this.storage.save(R,e)];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},t.prototype.initialFetchToggles=function(){if(!this.isUpToDate())return this.fetchToggles();this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady())},t.prototype.fetchToggles=function(){return o(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!this.fetch)return[3,9];this.abortController&&!this.abortController.signal.aborted&&this.abortController.abort(),this.abortController=this.createAbortController?.call(this),e=this.abortController?this.abortController.signal:void 0,s.label=1;case 1:return s.trys.push([1,7,8,9]),t=this.usePOSTrequests,n=t?this.url:function(e,t){var n=new URL(e.toString());return Object.entries(t).filter(f).forEach((function(e){var t=e[0],r=e[1];t===`properties`&&r?Object.entries(r).filter(f).forEach((function(e){var t=e[0],r=e[1];return n.searchParams.append(`properties[${t}]`,r)})):n.searchParams.append(t,r)})),n}(this.url,this.context),r=t?`POST`:`GET`,i=t?JSON.stringify({context:this.context}):void 0,[4,this.fetch(n.toString(),{method:r,cache:`no-cache`,headers:this.getHeaders(),body:i,signal:e})];case 2:return a=s.sent(),this.sdkState===`error`&&a.status<400&&(this.sdkState=`healthy`,this.emit(A.RECOVERED)),a.ok?(this.etag=a.headers.get(`ETag`)||``,[4,a.json()]):[3,5];case 3:return o=s.sent(),[4,this.storeToggles(o.toggles)];case 4:return s.sent(),this.sdkState!==`healthy`&&(this.sdkState=`healthy`),this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady()),this.storeLastRefreshTimestamp(),[3,6];case 5:a.status===304?this.storeLastRefreshTimestamp():(console.error(`Unleash: Fetching feature toggles did not have an ok response`),this.sdkState=`error`,this.emit(A.ERROR,{type:`HttpError`,code:a.status}),this.lastError={type:`HttpError`,code:a.status}),s.label=6;case 6:return[3,9];case 7:return typeof(c=s.sent())==`object`&&c!==null&&`name`in c&&c.name===`AbortError`||(console.error(`Unleash: unable to fetch feature toggles`,c),this.sdkState=`error`,this.emit(A.ERROR,{type:`fetch-toggles`,error:c}),this.lastError=c),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}}))}))},t.prototype.resolveEnvironment=function(e,t){return function(e){var t=e.indexOf(`:`);if(t!==-1){var n=e.slice(t+1),r=n.lastIndexOf(`.`);if(r!==-1)return n.slice(0,r)}}(e)||t},t}(d),V=n.createContext(null),H={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:`http://localhost`,appName:`offline`,clientKey:`not-used`},U=n.startTransition||(e=>e()),W=({config:e,children:t,unleashClient:r,startClient:i=!0,stopClient:a=!0,startTransition:o=U})=>{var s,c;let l=e||H,u=n.useRef(r||new B(l)),[d,f]=n.useState(!!(r?e!=null&&e.bootstrap&&e?.bootstrapOverride!==!1||(s=r.isReady)!=null&&s.call(r):l.bootstrap&&l.bootstrapOverride!==!1)),[p,m]=(0,n.useState)((c=u.current).getError?.call(c)||null);(0,n.useEffect)(()=>{!l&&!r&&console.error(`You must provide either a config or an unleash client to the flag provider.
|
|
2
2
|
If you are initializing the client in useEffect, you can avoid this warning
|
|
3
|
-
by checking if the client exists before rendering.`);let e=e=>{o(()=>{m(t=>t||e)})},t=e=>{o(()=>{m(null)})},n=null,s=()=>{n=setTimeout(()=>{o(()=>{f(!0)})},0)};return u.current.on(`ready`,s),u.current.on(`error`,e),u.current.on(`recovered`,t),i&&(u.current.stop(),u.current.start()),function(){u.current&&(u.current.off(`error`,e),u.current.off(`ready`,s),u.current.off(`recovered`,t),a&&u.current.stop()),n&&clearTimeout(n)}},[]);let h=(0,n.useMemo)(()=>({on:(...e)=>u.current.on(...e),off:(...e)=>u.current.off(...e),isEnabled:(...e)=>u.current.isEnabled(...e),updateContext:async(...e)=>await u.current.updateContext(...e),getVariant:(...e)=>u.current.getVariant(...e),client:u.current,flagsReady:d,flagsError:p,setFlagsReady:f,setFlagsError:m}),[d,p]);return n.createElement(V.Provider,{value:h},t)},G={on:(e,t,n)=>(console.error(`on() must be used within a FlagProvider`),K),off:(e,t)=>(console.error(`off() must be used within a FlagProvider`),K),updateContext:async()=>{console.error(`updateContext() must be used within a FlagProvider`)},isEnabled:()=>(console.error(`isEnabled() must be used within a FlagProvider`),!1),getVariant:()=>(console.error(`getVariant() must be used within a FlagProvider`),{name:`disabled`,enabled:!1})},K={...G,toggles:[],impressionDataAll:{},context:{},storage:{},start:()=>{},stop:()=>{},isReady:()=>!1,getError:()=>null,getAllToggles:()=>[]},q={...G,client:K,flagsReady:!1,setFlagsReady:()=>{console.error(`setFlagsReady() must be used within a FlagProvider`)},flagsError:null,setFlagsError:()=>{console.error(`setFlagsError() must be used within a FlagProvider`)}};function J(){return(0,n.useContext)(V)||(console.error(`useFlagContext() must be used within a FlagProvider`),q)}var Y=e=>{let{isEnabled:t,client:r}=J(),[i,a]=(0,n.useState)(!!t(e)),o=(0,n.useRef)();return o.current=i,(0,n.useEffect)(()=>{if(!r)return;let n=()=>{let n=t(e);n!==o.current&&(o.current=n,a(!!n))},i=()=>{let n=t(e);o.current=n,a(n)};return r.on(`update`,n),r.on(`ready`,i),()=>{r.off(`update`,n),r.off(`ready`,i)}},[r]),i},X=()=>{let{client:e}=J();return e},Z=(e,t)=>{let r=X();return(0,n.useEffect)(()=>{r?.impactMetrics?.defineCounter(e,t)},[r,e,t]),{increment:(0,n.useCallback)(t=>{r?.impactMetrics?.incrementCounter(e,t)},[r,e])}},Q=(e,t,r)=>{let i=X();return(0,n.useEffect)(()=>{i?.impactMetrics?.defineHistogram(e,t,r)},[i,e,t,r]),{observe:(0,n.useCallback)(t=>{i?.impactMetrics?.observeHistogram(e,t)},[i,e])}};export{B as a,Y as i,Q as n,
|
|
3
|
+
by checking if the client exists before rendering.`);let e=e=>{o(()=>{m(t=>t||e)})},t=e=>{o(()=>{m(null)})},n=null,s=()=>{n=setTimeout(()=>{o(()=>{f(!0)})},0)};return u.current.on(`ready`,s),u.current.on(`error`,e),u.current.on(`recovered`,t),i&&(u.current.stop(),u.current.start()),function(){u.current&&(u.current.off(`error`,e),u.current.off(`ready`,s),u.current.off(`recovered`,t),a&&u.current.stop()),n&&clearTimeout(n)}},[]);let h=(0,n.useMemo)(()=>({on:(...e)=>u.current.on(...e),off:(...e)=>u.current.off(...e),isEnabled:(...e)=>u.current.isEnabled(...e),updateContext:async(...e)=>await u.current.updateContext(...e),getVariant:(...e)=>u.current.getVariant(...e),client:u.current,flagsReady:d,flagsError:p,setFlagsReady:f,setFlagsError:m}),[d,p]);return n.createElement(V.Provider,{value:h},t)},G={on:(e,t,n)=>(console.error(`on() must be used within a FlagProvider`),K),off:(e,t)=>(console.error(`off() must be used within a FlagProvider`),K),updateContext:async()=>{console.error(`updateContext() must be used within a FlagProvider`)},isEnabled:()=>(console.error(`isEnabled() must be used within a FlagProvider`),!1),getVariant:()=>(console.error(`getVariant() must be used within a FlagProvider`),{name:`disabled`,enabled:!1})},K={...G,toggles:[],impressionDataAll:{},context:{},storage:{},start:()=>{},stop:()=>{},isReady:()=>!1,getError:()=>null,getAllToggles:()=>[]},q={...G,client:K,flagsReady:!1,setFlagsReady:()=>{console.error(`setFlagsReady() must be used within a FlagProvider`)},flagsError:null,setFlagsError:()=>{console.error(`setFlagsError() must be used within a FlagProvider`)}};function J(){return(0,n.useContext)(V)||(console.error(`useFlagContext() must be used within a FlagProvider`),q)}var Y=e=>{let{isEnabled:t,client:r}=J(),[i,a]=(0,n.useState)(!!t(e)),o=(0,n.useRef)();return o.current=i,(0,n.useEffect)(()=>{if(!r)return;let n=()=>{let n=t(e);n!==o.current&&(o.current=n,a(!!n))},i=()=>{let n=t(e);o.current=n,a(n)};return r.on(`update`,n),r.on(`ready`,i),()=>{r.off(`update`,n),r.off(`ready`,i)}},[r]),i},X=()=>{let{client:e}=J();return e},Z=(e,t)=>{let r=X();return(0,n.useEffect)(()=>{r?.impactMetrics?.defineCounter(e,t)},[r,e,t]),{increment:(0,n.useCallback)(t=>{r?.impactMetrics?.incrementCounter(e,t)},[r,e])}},Q=(e,t,r)=>{let i=X();return(0,n.useEffect)(()=>{i?.impactMetrics?.defineHistogram(e,t,r)},[i,e,t,r]),{observe:(0,n.useCallback)(t=>{i?.impactMetrics?.observeHistogram(e,t)},[i,e])}};export{B as a,y as c,Y as i,Q as n,A as o,W as r,v as s,Z as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./useUiConfig-
|
|
1
|
+
import{t as e}from"./useUiConfig-BcfEDPWc.js";var t=()=>{let{impactMetrics:t}=e().uiConfig;return t!==void 0&&t!==`disabled`},n=()=>{let{impactMetrics:t}=e().uiConfig;return t===`external`||t===`internal`||t===`full`};export{n,t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,t}from"./react-
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{t as n}from"./parse-Chj4PyAg.js";import{t as r}from"./format-C8UVjLNw.js";import{f as i,t as a}from"./httpErrorResponseHandler-BzpwldnE.js";import{n as o}from"./formatPath-j72gcKwy.js";import{Hs as s}from"./index-C2zVj2FI.js";var c=e(t(),1),l=new Date,u=r(l,`yyyy-MM`);s(l);var d=e=>r(e,`yyyy-MM`),f=e=>r(e,`yyyy-MM-dd`),p=e=>n(e,`yyyy-MM`,new Date),m=e=>n(e,`yyyy-MM-dd`,new Date),h=1e6,g=m(`2024-05-01`),_=[`/api/admin`,`/api/frontend`,`/api/client`],v=e=>{let{apiData:t,...n}=e;return{apiData:t.filter(e=>_.includes(e.apiPath)).map(e=>(e.dataPoints=e.dataPoints.filter(({period:e})=>new Date(e)>=g),e)),...n}},y=(e,t)=>e.reduce((e,n)=>e+(n.dataPoints.find(({period:e})=>e===t)?.trafficTypes.reduce((e,t)=>e+t.count,0)??0),0),b=e=>e.flatMap(e=>e.dataPoints.flatMap(e=>e.trafficTypes.map(e=>e.count))).reduce((e,t)=>e+t,0),x=e=>{let{grouping:t,apiData:n}=e;return t===`monthly`?y(n,r(new Date(e.dateRange.to),`yyyy-MM`)):b(n)},S=(e,t=5,n=h)=>Math.ceil(e/n)*t,C=(e,t,n=5,r=h)=>{if(e===0)return 0;let i=Math.floor((e-t)/r)*r;return i>0?S(i,n,r):0},w=({dayOfMonth:e,daysInMonth:t,trafficData:n})=>e<5?0:b(n.map(t=>({...t,dataPoints:t.dataPoints.filter(t=>Number(t.period.slice(-2))<e)})))/(e-1)*t,T=(e,t,n,r=5,i=h)=>e?C(w({dayOfMonth:n.getDate(),daysInMonth:s(n),trafficData:e}),t,r,i):0,E=(e,{from:t,to:n})=>{let{data:r,error:a,mutate:s}=i(o(`api/admin/metrics/traffic?grouping=${e}&from=${t}&to=${n}`),D);return(0,c.useMemo)(()=>({refetch:()=>s(),result:r?{state:`success`,data:v(r)}:a?{state:`error`,error:a}:{state:`loading`}}),[r,a,s])},D=e=>fetch(e).then(a(`Instance Metrics`)).then(e=>e.json());export{x as a,f as c,p as d,C as i,d as l,g as n,l as o,T as r,u as s,E as t,m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./react-Ca03aNmg.js";import{r,t as i}from"./storage-tBZ25pJM.js";import{t as a}from"./formatPath-j72gcKwy.js";var o=t(n()),s=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(i!==t){let e=t;t=r?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,a),a},c=e=>e?s(e):s,l=e((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),u=e(((e,t)=>{t.exports=l()})),d=e((e=>{var t=n(),r=u();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var u=s(null);if(u.current===null){var f={hasValue:!1,value:null};u.current=f}else f=u.current;u=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?t:(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,u[0],u[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),{useSyncExternalStoreWithSelector:f}=t(e(((e,t)=>{t.exports=d()}))()).default;function p(e,t=e.getState,n){let r=f(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,o.useDebugValue)(r),r}var m=e=>{let t=typeof e==`function`?c(e):e,n=(e,n)=>p(t,e,n);return Object.assign(n,t),n},h=e=>e?m(e):m,g=(e,t)=>(n,r,i)=>(i.dispatch=t=>(n(n=>e(n,t),!1,t),t),i.dispatchFromDevtools=!0,{dispatch:(...e)=>i.dispatch(...e),...t}),_=e=>{let t=h(()=>e);Object.keys(e);let n=(e,n)=>{t.setState(t=>{return{[e]:(r=t[e],i=n,typeof i==`function`?i(r):i)};var r,i})};return{useGlobalState:e=>{let r=(0,o.useCallback)(t=>t[e],[e]);return[t(r),(0,o.useCallback)(t=>n(e,t),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe((t,r)=>{t[e]!==r[e]&&n(t[e])})}}},v=(e,t=e(void 0,{type:void 0}),n)=>{if(n)return n(v)(e,t);let r=h(g(e,t));Object.keys(t);let i=e=>{let t=(0,o.useCallback)(t=>t[e],[e]);return r(t)};return{useStoreState:i,useGlobalState:e=>[i(e),(0,o.useCallback)(t=>{r.setState(n=>{return{[e]:(r=n[e],i=t,typeof i==`function`?i(r):i)};var r,i})},[e])],getState:r.getState,dispatch:r.dispatch}},y=(e,t)=>{let n=_({[e]:i(e)??t}),a=t=>{let i=n.getGlobalState(e),a=t instanceof Function?t(i):t;n.setGlobalState(e,a),r(e,a)};return()=>[n.useGlobalState(e)[0],a]},b=()=>{let[e,t]=x();return{locationSettings:e,setLocationSettings:t}},x=y(`${a}:useLocationSettings:v1`,{locale:navigator.language});export{y as n,b as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{B as n,f as r}from"./useTheme-CTychWp2.js";import{t as i}from"./resolveProps-CAVsjga5.js";import{t as a}from"./useEnhancedEffect-BBMUaXin.js";function o(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:i(t.components[n].defaultProps,r)}var s=e(t(),1);function c(e,t,n,r,i){let[o,c]=s.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return a(()=>{if(!n)return;let t=n(e),r=()=>{c(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),o}var l={...s}.useSyncExternalStore;function u(e,t,n,r,i){let a=s.useCallback(()=>t,[t]),o=s.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[c,u]=s.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return l(u,c,o)}function d(e={}){let{themeId:t}=e;return function(e,n={}){let i=r();i&&t&&(i=i[t]||i);let a=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:d=!1,matchMedia:f,ssrMatchMedia:p=null,noSsr:m=!1}=o({name:`MuiUseMediaQuery`,props:n,theme:i}),h=s.useMemo(()=>f===void 0?a===null?null:a.bind(window):f,[f,a]),g=typeof e==`function`?e(i):e;return g=g.replace(/^@media( ?)/m,``),g.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(`
|
|
2
|
+
`)),(l===void 0?c:u)(g,d,h,p,m)}}d();var f=d({themeId:n});export{o as n,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e}from"./chunk-KS7C4IRE-PUpsdS_b.js";var t=t=>e()[t];export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,t}from"./react-
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";var n=e(t(),1),r=n.createContext({setAnnouncement:()=>{throw Error(`setAnnouncement called outside AnnouncerContext`)}}),i=e=>{let{setAnnouncement:t}=(0,n.useContext)(r);(0,n.useEffect)(()=>{if(e)return document.title=e,()=>{document.title=a}},[e]),(0,n.useEffect)(()=>{e&&e!==a&&t(`Navigated to ${e}`)},[t,e])},a=`Unleash`;export{r as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./resolveProps-CAVsjga5.js";import{v as t}from"./useTimeout-B2sc1jSE.js";function n(e){return typeof e==`string`}function r(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function i(e,t,r){return e===void 0||n(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function a(e,t,n){return typeof e==`function`?e(t,n):e}function o(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))r(n,e[n])&&(t[n]=e[n]);return t}function s(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function c(t){let{getSlotProps:n,additionalProps:r,externalSlotProps:i,externalForwardedProps:a,className:c}=t;if(!n){let t=e(r?.className,c,a?.className,i?.className),n={...r?.style,...a?.style,...i?.style},o={...r,...a,...i};return t.length>0&&(o.className=t),Object.keys(n).length>0&&(o.style=n),{props:o,internalRef:void 0}}let l=o({...a,...i}),u=s(i),d=s(a),f=n(l),p=e(f?.className,r?.className,c,a?.className,i?.className),m={...f?.style,...r?.style,...a?.style,...i?.style},h={...f,...r,...d,...u};return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:f.ref}}function l(e,n){let{className:r,elementType:o,ownerState:s,externalForwardedProps:l,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...f}=n,{component:p,slots:m={[e]:void 0},slotProps:h={[e]:void 0},...g}=l,_=m[e]||o,v=a(h[e],s),{props:{component:y,...b},internalRef:x}=c({className:r,...f,externalForwardedProps:e===`root`?g:void 0,externalSlotProps:v}),S=t(x,v?.ref,n.ref),C=e===`root`?y||p:y;return[_,i(_,{...e===`root`&&!p&&!m[e]&&u,...e!==`root`&&!m[e]&&u,...b,...C&&!d&&{as:C},...C&&d&&{component:C},ref:S},s)]}export{i as a,a as i,c as n,r as o,o as r,n as s,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{a as n,i as r,n as i}from"./useSlot-Ce59-xJL.js";import{v as a}from"./useTimeout-B2sc1jSE.js";var o=e(t(),1);function s(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=o.useRef(t!==void 0),[s,c]=o.useState(n);return[a?t:s,o.useCallback(e=>{a||c(e)},[])]}var c=s;function l(e){let{elementType:t,externalSlotProps:o,ownerState:s,skipResolvingSlotProps:c=!1,...l}=e,u=c?{}:r(o,s),{props:d,internalRef:f}=i({...l,externalSlotProps:u}),p=a(f,u?.ref,e.additionalProps?.ref);return n(t,{...d,ref:p},s)}export{c as n,s as r,l as t};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./react-Ca03aNmg.js";var r=t(n()),i={black:`#000`,white:`#fff`},a={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},o={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},s={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},c={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},l={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`},u={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},d={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 f(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var p=`$$material`;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}function h(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 g(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 _=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!0:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(g(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=h(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),v=`-ms-`,y=`-moz-`,b=`-webkit-`,x=`comm`,S=`rule`,C=`decl`,ee=`@import`,te=`@keyframes`,ne=`@layer`,re=Math.abs,ie=String.fromCharCode,ae=Object.assign;function oe(e,t){return T(e,0)^45?(((t<<2^T(e,0))<<2^T(e,1))<<2^T(e,2))<<2^T(e,3):0}function se(e){return e.trim()}function ce(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function le(e,t){return e.indexOf(t)}function T(e,t){return e.charCodeAt(t)|0}function ue(e,t,n){return e.slice(t,n)}function E(e){return e.length}function de(e){return e.length}function fe(e,t){return t.push(e),e}function pe(e,t){return e.map(t).join(``)}var me=1,D=1,he=0,O=0,k=0,A=``;function ge(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:me,column:D,length:o,return:``}}function _e(e,t){return ae(ge(``,null,null,``,null,null,0),e,{length:-e.length},t)}function ve(){return k}function ye(){return k=O>0?T(A,--O):0,D--,k===10&&(D=1,me--),k}function j(){return k=O<he?T(A,O++):0,D++,k===10&&(D=1,me++),k}function M(){return T(A,O)}function be(){return O}function xe(e,t){return ue(A,e,t)}function Se(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 Ce(e){return me=D=1,he=E(A=e),O=0,[]}function we(e){return A=``,e}function Te(e){return se(xe(O-1,Oe(e===91?e+2:e===40?e+1:e)))}function Ee(e){for(;(k=M())&&k<33;)j();return Se(e)>2||Se(k)>3?``:` `}function De(e,t){for(;--t&&j()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return xe(e,be()+(t<6&&M()==32&&j()==32))}function Oe(e){for(;j();)switch(k){case e:return O;case 34:case 39:e!==34&&e!==39&&Oe(k);break;case 40:e===41&&Oe(e);break;case 92:j();break}return O}function ke(e,t){for(;j()&&e+k!==57&&!(e+k===84&&M()===47););return`/*`+xe(t,O-1)+`*`+ie(e===47?e:j())}function Ae(e){for(;!Se(M());)j();return xe(e,O)}function je(e){return we(Me(``,null,null,null,[``],e=Ce(e),0,[0],e))}function Me(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=j()){case 40:if(m!=108&&T(C,d-1)==58){le(C+=w(Te(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Te(v);break;case 9:case 10:case 13:case 32:C+=Ee(m);break;case 92:C+=De(be()-1,7);continue;case 47:switch(M()){case 42:case 47:fe(Pe(ke(j(),be()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=E(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=w(C,/\f/g,``)),p>0&&E(C)-d&&fe(p>32?Fe(C+`;`,r,n,d-1):Fe(w(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(fe(S=Ne(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Me(C,t,S,S,b,a,d,s,x);else switch(f===99&&T(C,3)===110?100:f){case 100:case 108:case 109:case 115:Me(e,S,S,r&&fe(Ne(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Me(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+E(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&ye()==125)continue}switch(C+=ie(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(E(C)-1)*_,_=1;break;case 64:M()===45&&(C+=Te(j())),f=M(),u=d=E(y=C+=Ae(be())),v++;break;case 45:m===45&&E(C)==2&&(h=0)}}return a}function Ne(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=de(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ue(e,d+1,d=re(h=o[m])),y=e;_<p;++_)(y=se(h>0?f[_]+` `+v:w(v,/&\f/g,f[_])))&&(c[g++]=y);return ge(e,t,n,i===0?S:s,c,l,u)}function Pe(e,t,n){return ge(e,t,n,x,ie(ve()),ue(e,2,-2),0)}function Fe(e,t,n,r){return ge(e,t,n,C,ue(e,0,r),ue(e,r+1,-1),r)}function Ie(e,t){for(var n=``,r=de(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Le(e,t,n,r){switch(e.type){case ne:if(e.children.length)break;case ee:case C:return e.return=e.return||e.value;case x:return``;case te:return e.return=e.value+`{`+Ie(e.children,r)+`}`;case S:e.value=e.props.join(`,`)}return E(n=Ie(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Re(e){var t=de(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function ze(e){return function(t){t.root||(t=t.return)&&e(t)}}function Be(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ve=function(e,t,n){for(var r=0,i=0;r=i,i=M(),r===38&&i===12&&(t[n]=1),!Se(i);)j();return xe(e,O)},He=function(e,t){var n=-1,r=44;do switch(Se(r)){case 0:r===38&&M()===12&&(t[n]=1),e[n]+=Ve(O-1,t,n);break;case 2:e[n]+=Te(r);break;case 4:if(r===44){e[++n]=M()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=ie(r)}while(r=j());return e},Ue=function(e,t){return we(He(Ce(e),t))},We=new WeakMap,Ge=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!We.get(n))&&!r){We.set(e,!0);for(var i=[],a=Ue(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Ke=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function qe(e,t){switch(oe(e,t)){case 5103:return b+`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 b+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+y+e+v+e+e;case 6828:case 4268:return b+e+v+e+e;case 6165:return b+e+v+`flex-`+e+e;case 5187:return b+e+w(e,/(\w+).+(:[^]+)/,b+`box-$1$2`+v+`flex-$1$2`)+e;case 5443:return b+e+v+`flex-item-`+w(e,/flex-|-self/,``)+e;case 4675:return b+e+v+`flex-line-pack`+w(e,/align-content|flex-|-self/,``)+e;case 5548:return b+e+v+w(e,`shrink`,`negative`)+e;case 5292:return b+e+v+w(e,`basis`,`preferred-size`)+e;case 6060:return b+`box-`+w(e,`-grow`,``)+b+e+v+w(e,`grow`,`positive`)+e;case 4554:return b+w(e,/([^-])(transform)/g,`$1`+b+`$2`)+e;case 6187:return w(w(w(e,/(zoom-|grab)/,b+`$1`),/(image-set)/,b+`$1`),e,``)+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,b+`box-pack:$3`+v+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+b+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,b+`$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(E(e)-1-t>6)switch(T(e,t+1)){case 109:if(T(e,t+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,`$1`+b+`$2-$3$1`+y+(T(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~le(e,`stretch`)?qe(w(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(T(e,t+1)!==115)break;case 6444:switch(T(e,E(e)-3-(~le(e,`!important`)&&10))){case 107:return w(e,`:`,`:`+b)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+b+(T(e,14)===45?`inline-`:``)+`box$3$1`+b+`$2$3$1`+v+`$2box$3`)+e}break;case 5936:switch(T(e,t+11)){case 114:return b+e+v+w(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return b+e+v+w(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return b+e+v+w(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return b+e+v+e+e}return e}var Je=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case C:e.return=qe(e.value,e.length);break;case te:return Ie([_e(e,{value:w(e.value,`@`,`@`+b)})],r);case S:if(e.length)return pe(e.props,function(t){switch(ce(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Ie([_e(e,{props:[w(t,/:(read-\w+)/,`:`+y+`$1`)]})],r);case`::placeholder`:return Ie([_e(e,{props:[w(t,/:(plac\w+)/,`:`+b+`input-$1`)]}),_e(e,{props:[w(t,/:(plac\w+)/,`:`+y+`$1`)]}),_e(e,{props:[w(t,/:(plac\w+)/,v+`input-$1`)]})],r)}return``})}}],Ye=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Je,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Ge,Ke],l,u=[Le,ze(function(e){l.insert(e)})],d=Re(c.concat(r,u)),f=function(e){return Ie(je(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new _({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Xe=e((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Ze=e(((e,t)=>{t.exports=Xe()})),Qe=e(((e,t)=>{var n=Ze(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function $e(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var et=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},tt=function(e,t,n){et(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function nt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 rt={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},it=/[A-Z]|^ms/g,at=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ot=function(e){return e.charCodeAt(1)===45},st=function(e){return e!=null&&typeof e!=`boolean`},ct=Be(function(e){return ot(e)?e:e.replace(it,`-$&`).toLowerCase()}),lt=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(at,function(e,t,n){return N={name:t,styles:n,next:N},t})}return rt[e]!==1&&!ot(e)&&typeof t==`number`&&t!==0?t+`px`:t};function ut(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return N={name:i.name,styles:i.styles,next:N},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)N={name:o.name,styles:o.styles,next:N},o=o.next;return a.styles+`;`}return dt(e,t,n);case`function`:if(e!==void 0){var s=N,c=n(e);return N=s,ut(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function dt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ut(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:st(s)&&(r+=ct(a)+`:`+lt(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)st(o[c])&&(r+=ct(a)+`:`+lt(a,o[c])+`;`);else{var l=ut(e,t,o);switch(a){case`animation`:case`animationName`:r+=ct(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var ft=/label:\s*([^\s;{]+)\s*(;|$)/g,N;function P(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;N=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=ut(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=ut(n,t,e[o]),r&&(i+=a[o]);ft.lastIndex=0;for(var s=``,c;(c=ft.exec(i))!==null;)s+=`-`+c[1];return{name:nt(i)+s,styles:i,next:N}}var pt=function(e){return e()},mt=r.useInsertionEffect?r.useInsertionEffect:!1,ht=mt||pt,gt=mt||r.useLayoutEffect,_t=r.createContext(typeof HTMLElement<`u`?Ye({key:`css`}):null),vt=_t.Provider,yt=function(){return(0,r.useContext)(_t)},bt=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(_t),n)})},xt=r.createContext({}),St={}.hasOwnProperty,Ct=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,wt=function(e,t){var n={};for(var r in t)St.call(t,r)&&(n[r]=t[r]);return n[Ct]=e,n},Tt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return et(t,n,r),ht(function(){return tt(t,n,r)}),null},Et=bt(function(e,t,n){var i=e.css;typeof i==`string`&&t.registered[i]!==void 0&&(i=t.registered[i]);var a=e[Ct],o=[i],s=``;typeof e.className==`string`?s=$e(t.registered,o,e.className):e.className!=null&&(s=e.className+` `);var c=P(o,void 0,r.useContext(xt));s+=t.key+`-`+c.name;var l={};for(var u in e)St.call(e,u)&&u!==`css`&&u!==Ct&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),r.createElement(r.Fragment,null,r.createElement(Tt,{cache:t,serialized:c,isStringTag:typeof a==`string`}),r.createElement(a,l))});Qe();var Dt=function(e,t){var n=arguments;if(t==null||!St.call(t,`css`))return r.createElement.apply(void 0,n);var i=n.length,a=Array(i);a[0]=Et,a[1]=wt(e,t);for(var o=2;o<i;o++)a[o]=n[o];return r.createElement.apply(null,a)};(function(e){var t;t||=e.JSX||={}})(Dt||={});var Ot=bt(function(e,t){var n=e.styles,i=P([n],void 0,r.useContext(xt)),a=r.useRef();return gt(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector(`style[data-emotion="`+e+` `+i.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(r=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),a.current=[n,r],function(){n.flush()}},[t]),gt(function(){var e=a.current,n=e[0];if(e[1]){e[1]=!1;return}i.next!==void 0&&tt(t,i.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,i,n,!1)},[t,i.name]),null});function kt(){return P([...arguments])}function At(){var e=kt.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 jt=/^((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)-.*))$/,Mt=Be(function(e){return jt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Nt=function(e){return e!==`theme`},Pt=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Mt:Nt},Ft=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},It=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return et(t,n,r),ht(function(){return tt(t,n,r)}),null},Lt=function e(t,n){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var c=Ft(t,n,i),l=c||Pt(a),u=!l(`as`);return function(){var d=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push(`label:`+o+`;`),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;g<h;g++)f.push(d[g],p[g])}var _=bt(function(e,t,n){var i=u&&e.as||a,o=``,d=[],p=e;if(e.theme==null){for(var m in p={},e)p[m]=e[m];p.theme=r.useContext(xt)}typeof e.className==`string`?o=$e(t.registered,d,e.className):e.className!=null&&(o=e.className+` `);var h=P(f.concat(d),t.registered,p);o+=t.key+`-`+h.name,s!==void 0&&(o+=` `+s);var g=u&&c===void 0?Pt(i):l,_={};for(var v in e)u&&v===`as`||g(v)&&(_[v]=e[v]);return _.className=o,n&&(_.ref=n),r.createElement(r.Fragment,null,r.createElement(It,{cache:t,serialized:h,isStringTag:typeof i==`string`}),r.createElement(i,_))});return _.displayName=o===void 0?`Styled(`+(typeof a==`string`?a:a.displayName||a.name||`Component`)+`)`:o,_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=f,_.__emotion_forwardProp=c,Object.defineProperty(_,"toString",{value:function(){return`.`+s}}),_.withComponent=function(t,r){return e(t,m({},n,r,{shouldForwardProp:Ft(_,r,!0)})).apply(void 0,f)},_}},Rt=`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`.split(`.`),zt=Lt.bind(null);Rt.forEach(function(e){zt[e]=zt(e)});var Bt=e(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Vt=e(((e,t)=>{var n=Bt();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Ht=e(((e,t)=>{t.exports=Vt()()}));function Ut(e,t){return zt(e,t)}function Wt(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Gt=[];function Kt(e){return Gt[0]=e,P(Gt)}var qt=e((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Jt=e(((e,t)=>{t.exports=qt()}))();function F(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Yt(e){if(r.isValidElement(e)||(0,Jt.isValidElementType)(e)||!F(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Yt(e[n])}),t}function I(e,t,n={clone:!0}){let i=n.clone?{...e}:e;return F(e)&&F(t)&&Object.keys(t).forEach(a=>{r.isValidElement(t[a])||(0,Jt.isValidElementType)(t[a])?i[a]=t[a]:F(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&F(e[a])?i[a]=I(e[a],t[a],n):n.clone?i[a]=F(t[a])?Yt(t[a]):t[a]:i[a]=t[a]}),i}var Xt=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Zt(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Xt(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var Qt=/min-width:\s*([0-9.]+)/;function $t(e,t){if(!e.containerQueries||!en(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>(e.match(Qt)?.[1]||0)-+(t.match(Qt)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function en(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function tn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function nn(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function rn(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var an={borderRadius:4};function on(e){if(e==null)return!0;for(let t in e)return!1;return!0}function sn(e,t){let n=Array.isArray(t),r=Array.isArray(e);return fn(t)?t:pn(e)?L(t):n&&r?un(e,t):n===r?mn(e,t):L(t)}function cn(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=L(e[t]);return r}function ln(e){let t={};for(let n in e)n===`__proto__`||n===`constructor`||n===`prototype`||(t[n]=L(e[n]));return t}function un(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=L(t[r]);return e}function dn(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function fn(e){return typeof e!=`object`||!e}function pn(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function L(e){return dn(e)?Array.isArray(e)?cn(e):ln(e):e}function mn(e,t){for(let n in t)n===`__proto__`||n===`constructor`||n===`prototype`||(n in e?e[n]=sn(e[n],t[n]):e[n]=L(t[n]));return e}var hn={},gn={xs:0,sm:600,md:900,lg:1200,xl:1536},_n=Zt({values:gn}),vn={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:gn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function R(e,t,n){let r={};return yn(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:sn(r,a)})}function yn(e,t,n,r){if(t??=hn,Array.isArray(n)){let i=t.breakpoints??_n;for(let t=0;t<n.length;t+=1)bn(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??_n,a=i.values??gn;for(let o in n)if(tn(i.keys,o)){let i=nn(t.containerQueries?t:vn,o);i&&bn(e,i,n[o],o,r)}else if(o in a)bn(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function bn(e,t,n,r,i){e[t]??={},i(t,n,r)}function xn(e=_n){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function Sn(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];on(t[r])&&delete t[r]}return t}function Cn(e,...t){return Sn(e,[xn(e),...t].reduce((e,t)=>I(e,t),{}))}function wn(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function Tn(e){let{values:t,breakpoints:n,base:r}=e,i=r||wn(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function En(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(tn(e.keys,n[t]))return!0}return!1}function Dn(e){if(typeof e!=`string`)throw Error(f(7));return e.charAt(0).toUpperCase()+e.slice(1)}function On(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&kn(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function kn(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=An(e.vars,i,r);if(t!=null)return t}return An(e,i,r)}function An(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:Dn(e)}`;return r?.[i]}return i}function z(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=kn(o,r)||{};return R(e,a,e=>{let r=On(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var jn={internal_cache:{}},Mn={m:`margin`,p:`padding`},Nn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Pn={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Fn={};for(let e in Mn)Fn[e]=[Mn[e]];for(let e in Mn)for(let t in Nn){let n=Mn[e],r=Nn[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];Fn[e+t]=i}for(let e in Pn)Fn[e]=Fn[Pn[e]];var In=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),Ln=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]),Rn=new Set([...In,...Ln]);function zn(e,t,n,r){let i=kn(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function Bn(e){return zn(e,`spacing`,8,`spacing`)}function B(e,t){return typeof t==`string`||t==null?t:e(t)}var Vn=[``];function Hn(e,t){let n=e.theme??jn,r=n?.internal_cache?.unarySpacing??Bn(n),i={};for(let n in e){if(!t.has(n))continue;let a=Fn[n]??(Vn[0]=n,Vn),o=e[n];yn(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=B(r,t)})}return i}function Un(e){return Hn(e,In)}Un.propTypes={},Un.filterProps=In;var V=Un;function Wn(e){return Hn(e,Ln)}Wn.propTypes={},Wn.filterProps=Ln;var H=Wn;function Gn(e){return Hn(e,Rn)}Gn.propTypes={},Gn.filterProps=Rn;function Kn(e=8,t=Bn({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function qn(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&sn(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function U(e){return typeof e==`number`?`${e}px solid`:e}function W(e,t){return z({prop:e,themeKey:`borders`,transform:t})}var Jn=W(`border`,U),Yn=W(`borderTop`,U),Xn=W(`borderRight`,U),Zn=W(`borderBottom`,U),Qn=W(`borderLeft`,U),$n=W(`borderColor`),er=W(`borderTopColor`),tr=W(`borderRightColor`),nr=W(`borderBottomColor`),rr=W(`borderLeftColor`),ir=W(`outline`,U),ar=W(`outlineColor`),or=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=zn(e.theme,`shape.borderRadius`,4,`borderRadius`);return R(e,e.borderRadius,e=>({borderRadius:B(t,e)}))}return null};or.propTypes={},or.filterProps=[`borderRadius`],qn(Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,or,ir,ar);var sr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=zn(e.theme,`spacing`,8,`gap`);return R(e,e.gap,e=>({gap:B(t,e)}))}return null};sr.propTypes={},sr.filterProps=[`gap`];var cr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=zn(e.theme,`spacing`,8,`columnGap`);return R(e,e.columnGap,e=>({columnGap:B(t,e)}))}return null};cr.propTypes={},cr.filterProps=[`columnGap`];var lr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=zn(e.theme,`spacing`,8,`rowGap`);return R(e,e.rowGap,e=>({rowGap:B(t,e)}))}return null};lr.propTypes={},lr.filterProps=[`rowGap`],qn(sr,cr,lr,z({prop:`gridColumn`}),z({prop:`gridRow`}),z({prop:`gridAutoFlow`}),z({prop:`gridAutoColumns`}),z({prop:`gridAutoRows`}),z({prop:`gridTemplateColumns`}),z({prop:`gridTemplateRows`}),z({prop:`gridTemplateAreas`}),z({prop:`gridArea`}));function ur(e,t){return t===`grey`?t:e}qn(z({prop:`color`,themeKey:`palette`,transform:ur}),z({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:ur}),z({prop:`backgroundColor`,themeKey:`palette`,transform:ur}));var dr=gn;function G(e){return e<=1&&e!==0?`${e*100}%`:e}var fr=z({prop:`width`,transform:G}),pr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?R(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||dr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:G(t)}}):null;pr.filterProps=[`maxWidth`];var mr=z({prop:`minWidth`,transform:G}),hr=z({prop:`height`,transform:G}),gr=z({prop:`maxHeight`,transform:G}),_r=z({prop:`minHeight`,transform:G});z({prop:`size`,cssProperty:`width`,transform:G}),z({prop:`size`,cssProperty:`height`,transform:G}),qn(fr,pr,mr,hr,gr,_r,z({prop:`boxSizing`}));var vr={border:{themeKey:`borders`,transform:U},borderTop:{themeKey:`borders`,transform:U},borderRight:{themeKey:`borders`,transform:U},borderBottom:{themeKey:`borders`,transform:U},borderLeft:{themeKey:`borders`,transform:U},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:U},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:or},color:{themeKey:`palette`,transform:ur},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:ur},backgroundColor:{themeKey:`palette`,transform:ur},p:{style:H},pt:{style:H},pr:{style:H},pb:{style:H},pl:{style:H},px:{style:H},py:{style:H},padding:{style:H},paddingTop:{style:H},paddingRight:{style:H},paddingBottom:{style:H},paddingLeft:{style:H},paddingX:{style:H},paddingY:{style:H},paddingInline:{style:H},paddingInlineStart:{style:H},paddingInlineEnd:{style:H},paddingBlock:{style:H},paddingBlockStart:{style:H},paddingBlockEnd:{style:H},m:{style:V},mt:{style:V},mr:{style:V},mb:{style:V},ml:{style:V},mx:{style:V},my:{style:V},margin:{style:V},marginTop:{style:V},marginRight:{style:V},marginBottom:{style:V},marginLeft:{style:V},marginX:{style:V},marginY:{style:V},marginInline:{style:V},marginInlineStart:{style:V},marginInlineEnd:{style:V},marginBlock:{style:V},marginBlockStart:{style:V},marginBlockEnd:{style:V},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:sr},rowGap:{style:lr},columnGap:{style:cr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:G},maxWidth:{style:pr},minWidth:{transform:G},height:{transform:G},maxHeight:{transform:G},minHeight:{transform:G},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`}},yr={};function br(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=yr,nested:i}=t,a=r.unstable_sxConfig??vr,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??_n,l=xn(c);for(let n in s){let i=Cr(s[n],r);if(i!=null){if(typeof i!=`object`){Sr(l,n,i,r,a);continue}if(a[n]){Sr(l,n,i,r,a);continue}En(c,i)?yn(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":$t(r,Sn(c,l))}:$t(r,Sn(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var xr=br();function Sr(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){sn(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=kn(r,o);yn(e,r,n,(n,r)=>{let i=On(u,l,r,t);c===!1?sn(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Cr(e,t){return typeof e==`function`?e(t):e}function wr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Tr(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Zt(n),c=Kn(i),l=I({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...an,...a}},o);return l=rn(l),l.applyStyles=wr,l=t.reduce((e,t)=>I(e,t),l),l.unstable_sxConfig={...vr,...o?.unstable_sxConfig},l.unstable_sx=function(e){return xr({sx:e,theme:this})},l.internal_cache={},l}function Er(e){return Object.keys(e).length===0}function Dr(e=null){let t=r.useContext(xt);return!t||Er(t)?e:t}var Or=Tr();function kr(e=Or){return Dr(e)}function Ar(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function jr(e,t=0,n=1){return Ar(e,t,n)}function Mr(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function K(e){if(e.type)return e;if(e.charAt(0)===`#`)return K(Mr(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(f(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(f(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Nr=e=>{let t=K(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Pr=(e,t)=>{try{return Nr(e)}catch{return e}};function Fr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Ir(e){e=K(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Fr({type:s,values:c})}function Lr(e){e=K(e);let t=e.type===`hsl`||e.type===`hsla`?K(Ir(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rr(e,t){let n=Lr(e),r=Lr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function zr(e,t){return e=K(e),t=jr(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Fr(e)}function q(e,t,n){try{return zr(e,t)}catch{return e}}function Br(e,t){if(e=K(e),t=jr(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fr(e)}function J(e,t,n){try{return Br(e,t)}catch{return e}}function Vr(e,t){if(e=K(e),t=jr(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fr(e)}function Y(e,t,n){try{return Vr(e,t)}catch{return e}}function Hr(e,t=.15){return Lr(e)>.5?Br(e,t):Vr(e,t)}function Ur(e,t,n){try{return Hr(e,t)}catch{return e}}function Wr(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.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}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Gr=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Kr=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},qr=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Jr(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Kr(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=qr(e,t);Object.assign(i,{[r]:c}),Gr(a,e,`var(${r})`,s),Gr(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Yr(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Jr(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Jr(n,t);p=I(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Jr(h,t);p=I(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=I(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),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 Xr(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Zr(){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:i.white,default:i.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}}}var Qr=Zr();function $r(){return{text:{primary:i.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:i.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}}}var ei=$r();function ti(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Vr(e.main,i):t===`dark`&&(e.dark=Br(e.main,a)))}function ni(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function ri(e=`light`){return e===`dark`?{main:s[200],light:s[50],dark:s[400]}:{main:s[700],light:s[400],dark:s[800]}}function ii(e=`light`){return e===`dark`?{main:o[200],light:o[50],dark:o[400]}:{main:o[500],light:o[300],dark:o[700]}}function ai(e=`light`){return e===`dark`?{main:a[500],light:a[300],dark:a[700]}:{main:a[700],light:a[400],dark:a[800]}}function oi(e=`light`){return e===`dark`?{main:c[400],light:c[300],dark:c[700]}:{main:c[700],light:c[500],dark:c[900]}}function si(e=`light`){return e===`dark`?{main:l[400],light:l[300],dark:l[700]}:{main:l[800],light:l[500],dark:l[900]}}function ci(e=`light`){return e===`dark`?{main:u[400],light:u[300],dark:u[700]}:{main:`#ed6c02`,light:u[500],dark:u[900]}}function li(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ui(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...o}=e,s=e.primary||ri(t),c=e.secondary||ii(t),l=e.error||ai(t),u=e.info||oi(t),p=e.success||si(t),m=e.warning||ci(t);function h(e){return a?li(e):Rr(e,ei.text.primary)>=n?ei.text.primary:Qr.text.primary}let g=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(f(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(f(12,t?` (${t})`:``,JSON.stringify(e.main)));return a?(ni(a,e,`light`,i,r),ni(a,e,`dark`,o,r)):(ti(e,`light`,i,r),ti(e,`dark`,o,r)),e.contrastText||=h(e.main),e},_;return t===`light`?_=Zr():t===`dark`&&(_=$r()),I({common:{...i},mode:t,primary:g({color:s,name:`primary`}),secondary:g({color:c,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:g({color:l,name:`error`}),warning:g({color:m,name:`warning`}),info:g({color:u,name:`info`}),success:g({color:p,name:`success`}),grey:d,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,..._},o)}function di(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function fi(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function pi(e){return Math.round(e*1e5)/1e5}var mi={textTransform:`uppercase`},hi=`"Roboto", "Helvetica", "Arial", sans-serif`;function gi(e,t){let{fontFamily:n=hi,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===hi?{letterSpacing:`${pi(i/t)}em`}:{},...a,...l});return I({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,mi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,mi),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var _i=.2,vi=.14,yi=.12;function X(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_i})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vi})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yi})`].join(`,`)}var bi=[`none`,X(0,2,1,-1,0,1,1,0,0,1,3,0),X(0,3,1,-2,0,2,2,0,0,1,5,0),X(0,3,3,-2,0,3,4,0,0,1,8,0),X(0,2,4,-1,0,4,5,0,0,1,10,0),X(0,3,5,-1,0,5,8,0,0,1,14,0),X(0,3,5,-1,0,6,10,0,0,1,18,0),X(0,4,5,-2,0,7,10,1,0,2,16,1),X(0,5,5,-3,0,8,10,1,0,3,14,2),X(0,5,6,-3,0,9,12,1,0,3,16,2),X(0,6,6,-3,0,10,14,1,0,4,18,3),X(0,6,7,-4,0,11,15,1,0,4,20,3),X(0,7,8,-4,0,12,17,2,0,5,22,4),X(0,7,8,-4,0,13,19,2,0,5,24,4),X(0,7,9,-4,0,14,21,2,0,5,26,4),X(0,8,9,-5,0,15,22,2,0,6,28,5),X(0,8,10,-5,0,16,24,2,0,6,30,5),X(0,8,11,-5,0,17,26,2,0,6,32,5),X(0,9,11,-5,0,18,28,2,0,7,34,6),X(0,9,12,-6,0,19,29,2,0,7,36,6),X(0,10,13,-6,0,20,31,3,0,8,38,7),X(0,10,13,-6,0,21,33,3,0,8,40,7),X(0,10,14,-6,0,22,35,3,0,8,42,7),X(0,11,14,-7,0,23,36,3,0,9,44,8),X(0,11,15,-7,0,24,38,3,0,9,46,8)],xi=[`all`],Si={},Ci={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)`},wi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ti(e){return`${Math.round(e)}ms`}function Ei(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Di(e){let t={...e};delete t.reducedMotion;let n={...Ci,...t.easing},r={...wi,...t.duration};return{getAutoHeightDuration:Ei,create:t.create??((e=xi,t=Si)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Ti(i)} ${a} ${typeof o==`string`?o:Ti(o)}`).join(`,`)}),...t,easing:n,duration:r}}var Oi={};function ki(e=Oi){return{reducedMotion:`never`,...e}}var Ai={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ji(e){return F(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Mi(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!ji(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:F(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
2
|
+
|
|
3
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
4
|
+
|
|
5
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
6
|
+
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
7
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
8
|
+
|
|
9
|
+
export default theme;`}function Ni(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Pi=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Fi(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:zr(t,Pi(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ni(n)})`:Vr(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ni(n)})`:Br(t,n)}})}function Ii(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(f(22));let p=ui({...a,colorSpace:u}),m=Tr(e),h=I(m,{mixins:fi(m.breakpoints,r),palette:p,shadows:bi.slice(),typography:gi(p,c),motion:ki(o),transitions:Di(s),zIndex:{...Ai}});return h=I(h,d),h=t.reduce((e,t)=>I(e,t),h),delete h.transitions.reducedMotion,h.unstable_sxConfig={...vr,...d?.unstable_sxConfig},h.unstable_sx=function(e){return xr({sx:e,theme:this})},h.toRuntimeSource=Mi,Fi(h),h}function Li(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Ri=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Li(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function zi(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Bi(e){return e===`dark`?Ri:[]}function Vi(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=ui({...t,colorSpace:i});return{palette:o,opacity:{...zi(o.mode),...n},overlays:r||Bi(o.mode),...a}}function Hi(e){return e[0]===`motion`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Ui=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Wi=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Ui(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Gi(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Ki(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Ir(e)}function Q(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pr(Ki(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
10
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function qi(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var $=e=>{try{return e()}catch{}},Ji=(e=`mui`)=>Wr(e);function Yi(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Vi({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Ii({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...zi(a),...n?.opacity},overlays:n?.overlays||Bi(a)},s}function Xi(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Hi,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!==`light`?`light`:d),m=Ji(a),{[p]:h,light:g,dark:_,...v}=n,y={...v},b=h;if((p===`dark`&&!(`dark`in n)||p===`light`&&!(`light`in n))&&(b=!0),!b)throw Error(f(21,p));let x;o&&(x=`oklch`);let S=Yi(x,y,b,u,p);g&&!y.light&&Yi(x,y,g,void 0,`light`),_&&!y.dark&&Yi(x,y,_,void 0,`dark`);let C={defaultColorScheme:p,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:y,font:{...di(S.typography),...S.font},spacing:qi(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return m(e,t[r][i])};t.mode===`light`&&(Z(t.common,`background`,`#fff`),Z(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Z(t.common,`background`,`#000`),Z(t.common,`onBackground`,`#fff`));function r(e,t,n){if(x){let r;return e===q&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===J&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Y&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${x}, ${t}, ${r})`}return e(t,n)}if(Gi(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Z(t.Alert,`errorColor`,r(J,o?m(`palette-error-light`):t.error.light,.6)),Z(t.Alert,`infoColor`,r(J,o?m(`palette-info-light`):t.info.light,.6)),Z(t.Alert,`successColor`,r(J,o?m(`palette-success-light`):t.success.light,.6)),Z(t.Alert,`warningColor`,r(J,o?m(`palette-warning-light`):t.warning.light,.6)),Z(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Z(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Z(t.Alert,`successFilledBg`,n(`palette-success-main`)),Z(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Z(t.Alert,`errorFilledColor`,$(()=>t.getContrastText(t.error.main))),Z(t.Alert,`infoFilledColor`,$(()=>t.getContrastText(t.info.main))),Z(t.Alert,`successFilledColor`,$(()=>t.getContrastText(t.success.main))),Z(t.Alert,`warningFilledColor`,$(()=>t.getContrastText(t.warning.main))),Z(t.Alert,`errorStandardBg`,r(Y,o?m(`palette-error-light`):t.error.light,.9)),Z(t.Alert,`infoStandardBg`,r(Y,o?m(`palette-info-light`):t.info.light,.9)),Z(t.Alert,`successStandardBg`,r(Y,o?m(`palette-success-light`):t.success.light,.9)),Z(t.Alert,`warningStandardBg`,r(Y,o?m(`palette-warning-light`):t.warning.light,.9)),Z(t.Alert,`errorIconColor`,n(`palette-error-main`)),Z(t.Alert,`infoIconColor`,n(`palette-info-main`)),Z(t.Alert,`successIconColor`,n(`palette-success-main`)),Z(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Z(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Z(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Z(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Z(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Z(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Z(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Z(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Z(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Z(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Z(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Z(t.LinearProgress,`primaryBg`,r(Y,o?m(`palette-primary-main`):t.primary.main,.62)),Z(t.LinearProgress,`secondaryBg`,r(Y,o?m(`palette-secondary-main`):t.secondary.main,.62)),Z(t.LinearProgress,`errorBg`,r(Y,o?m(`palette-error-main`):t.error.main,.62)),Z(t.LinearProgress,`infoBg`,r(Y,o?m(`palette-info-main`):t.info.main,.62)),Z(t.LinearProgress,`successBg`,r(Y,o?m(`palette-success-main`):t.success.main,.62)),Z(t.LinearProgress,`warningBg`,r(Y,o?m(`palette-warning-light`):t.warning.main,.62)),Z(t.Skeleton,`bg`,x?r(q,o?m(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Z(t.Slider,`primaryTrack`,r(Y,o?m(`palette-primary-main`):t.primary.main,.62)),Z(t.Slider,`secondaryTrack`,r(Y,o?m(`palette-secondary-main`):t.secondary.main,.62)),Z(t.Slider,`errorTrack`,r(Y,o?m(`palette-error-main`):t.error.main,.62)),Z(t.Slider,`infoTrack`,r(Y,o?m(`palette-info-main`):t.info.main,.62)),Z(t.Slider,`successTrack`,r(Y,o?m(`palette-success-main`):t.success.main,.62)),Z(t.Slider,`warningTrack`,r(Y,o?m(`palette-warning-main`):t.warning.main,.62));let e=x?r(J,o?m(`palette-background-default`):t.background.default,.6825):Ur(t.background.default,.8);Z(t.SnackbarContent,`bg`,e),Z(t.SnackbarContent,`color`,$(()=>x?ei.text.primary:t.getContrastText(e))),Z(t.SpeedDialAction,`fabHoverBg`,Ur(t.background.paper,.15)),Z(t.StepConnector,`border`,n(`palette-grey-400`)),Z(t.StepContent,`border`,n(`palette-grey-400`)),Z(t.Switch,`defaultColor`,n(`palette-common-white`)),Z(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Z(t.Switch,`primaryDisabledColor`,r(Y,o?m(`palette-primary-main`):t.primary.main,.62)),Z(t.Switch,`secondaryDisabledColor`,r(Y,o?m(`palette-secondary-main`):t.secondary.main,.62)),Z(t.Switch,`errorDisabledColor`,r(Y,o?m(`palette-error-main`):t.error.main,.62)),Z(t.Switch,`infoDisabledColor`,r(Y,o?m(`palette-info-main`):t.info.main,.62)),Z(t.Switch,`successDisabledColor`,r(Y,o?m(`palette-success-main`):t.success.main,.62)),Z(t.Switch,`warningDisabledColor`,r(Y,o?m(`palette-warning-main`):t.warning.main,.62)),Z(t.TableCell,`border`,r(Y,q(o?m(`palette-divider`):t.divider,1),.88)),Z(t.Tooltip,`bg`,r(q,o?m(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Z(t.Alert,`errorColor`,r(Y,o?m(`palette-error-light`):t.error.light,.6)),Z(t.Alert,`infoColor`,r(Y,o?m(`palette-info-light`):t.info.light,.6)),Z(t.Alert,`successColor`,r(Y,o?m(`palette-success-light`):t.success.light,.6)),Z(t.Alert,`warningColor`,r(Y,o?m(`palette-warning-light`):t.warning.light,.6)),Z(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Z(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Z(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Z(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Z(t.Alert,`errorFilledColor`,$(()=>t.getContrastText(t.error.dark))),Z(t.Alert,`infoFilledColor`,$(()=>t.getContrastText(t.info.dark))),Z(t.Alert,`successFilledColor`,$(()=>t.getContrastText(t.success.dark))),Z(t.Alert,`warningFilledColor`,$(()=>t.getContrastText(t.warning.dark))),Z(t.Alert,`errorStandardBg`,r(J,o?m(`palette-error-light`):t.error.light,.9)),Z(t.Alert,`infoStandardBg`,r(J,o?m(`palette-info-light`):t.info.light,.9)),Z(t.Alert,`successStandardBg`,r(J,o?m(`palette-success-light`):t.success.light,.9)),Z(t.Alert,`warningStandardBg`,r(J,o?m(`palette-warning-light`):t.warning.light,.9)),Z(t.Alert,`errorIconColor`,n(`palette-error-main`)),Z(t.Alert,`infoIconColor`,n(`palette-info-main`)),Z(t.Alert,`successIconColor`,n(`palette-success-main`)),Z(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Z(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Z(t.AppBar,`darkBg`,n(`palette-background-paper`)),Z(t.AppBar,`darkColor`,n(`palette-text-primary`)),Z(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Z(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Z(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Z(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Z(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Z(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Z(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Z(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Z(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Z(t.LinearProgress,`primaryBg`,r(J,o?m(`palette-primary-main`):t.primary.main,.5)),Z(t.LinearProgress,`secondaryBg`,r(J,o?m(`palette-secondary-main`):t.secondary.main,.5)),Z(t.LinearProgress,`errorBg`,r(J,o?m(`palette-error-main`):t.error.main,.5)),Z(t.LinearProgress,`infoBg`,r(J,o?m(`palette-info-main`):t.info.main,.5)),Z(t.LinearProgress,`successBg`,r(J,o?m(`palette-success-main`):t.success.main,.5)),Z(t.LinearProgress,`warningBg`,r(J,o?m(`palette-warning-main`):t.warning.main,.5)),Z(t.Skeleton,`bg`,x?r(q,o?m(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Z(t.Slider,`primaryTrack`,r(J,o?m(`palette-primary-main`):t.primary.main,.5)),Z(t.Slider,`secondaryTrack`,r(J,o?m(`palette-secondary-main`):t.secondary.main,.5)),Z(t.Slider,`errorTrack`,r(J,o?m(`palette-error-main`):t.error.main,.5)),Z(t.Slider,`infoTrack`,r(J,o?m(`palette-info-main`):t.info.main,.5)),Z(t.Slider,`successTrack`,r(J,o?m(`palette-success-main`):t.success.main,.5)),Z(t.Slider,`warningTrack`,r(J,o?m(`palette-warning-light`):t.warning.main,.5));let e=x?r(Y,o?m(`palette-background-default`):t.background.default,.985):Ur(t.background.default,.98);Z(t.SnackbarContent,`bg`,e),Z(t.SnackbarContent,`color`,$(()=>x?Qr.text.primary:t.getContrastText(e))),Z(t.SpeedDialAction,`fabHoverBg`,Ur(t.background.paper,.15)),Z(t.StepConnector,`border`,n(`palette-grey-600`)),Z(t.StepContent,`border`,n(`palette-grey-600`)),Z(t.Switch,`defaultColor`,n(`palette-grey-300`)),Z(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Z(t.Switch,`primaryDisabledColor`,r(J,o?m(`palette-primary-main`):t.primary.main,.55)),Z(t.Switch,`secondaryDisabledColor`,r(J,o?m(`palette-secondary-main`):t.secondary.main,.55)),Z(t.Switch,`errorDisabledColor`,r(J,o?m(`palette-error-main`):t.error.main,.55)),Z(t.Switch,`infoDisabledColor`,r(J,o?m(`palette-info-main`):t.info.main,.55)),Z(t.Switch,`successDisabledColor`,r(J,o?m(`palette-success-main`):t.success.main,.55)),Z(t.Switch,`warningDisabledColor`,r(J,o?m(`palette-warning-light`):t.warning.main,.55)),Z(t.TableCell,`border`,r(J,q(o?m(`palette-divider`):t.divider,1),.68)),Z(t.Tooltip,`bg`,r(q,o?m(`palette-grey-700`):t.grey[700],.92))}o||(Q(t.background,`default`),Q(t.background,`paper`),Q(t.common,`background`),Q(t.common,`onBackground`),Q(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Z(t[e],`mainChannel`,Pr(Ki(n.main))),n.light&&Z(t[e],`lightChannel`,Pr(Ki(n.light))),n.dark&&Z(t[e],`darkChannel`,Pr(Ki(n.dark))),n.contrastText&&Z(t[e],`contrastTextChannel`,Pr(Ki(n.contrastText))),e===`text`&&(Q(t[e],`primary`),Q(t[e],`secondary`)),e===`action`&&(n.active&&Q(t[e],`active`),n.selected&&Q(t[e],`selected`)))})}),C=t.reduce((e,t)=>I(e,t),C);let ee={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Wi(C),enableContrastVars:o},{vars:te,generateThemeVars:ne,generateStyleSheets:re}=Yr(C,ee);return C.vars=te,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=ne,C.generateStyleSheets=re,C.generateSpacing=function(){return Kn(u.spacing,Bn(this))},C.getColorSchemeSelector=Xr(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...vr,...u?.unstable_sxConfig},C.unstable_sx=function(e){return xr({sx:e,theme:this})},C.internal_cache={},C.toRuntimeSource=Mi,C}function Zi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ui({...n===!0?{}:n.palette,mode:t})})}function Qi(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Ii(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ii({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Zi(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Zi(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Xi({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var $i=Qi();function ea(){let e=kr($i);return e.$$material||e}export{kt as A,p as B,I as C,Ut as D,Kt as E,P as F,$e as I,tt as L,vt as M,xt as N,Ht as O,yt as P,Ye as R,on as S,Wt as T,f as V,kn as _,wi as a,Cn as b,Hr as c,kr as d,Dr as f,B as g,Bn as h,Li as i,At as j,Ot as k,Vr as l,xr as m,$i as n,gi as o,Tr as p,Qi as r,zr as s,ea as t,Ar as u,Dn as v,F as w,Tn as x,R as y,m as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{t as n}from"./useEnhancedEffect-BBMUaXin.js";import{t as r}from"./useId-Bg4oXGUa.js";var i=e(t(),1);function a(...e){let t=i.useRef(void 0),n=i.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return i.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function o(e){let t=i.useRef(e);return n(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}var s=a,c={transition:`none`};function l(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var u=e=>e.scrollTop,d={offsetX:0,offsetY:0},f={},p=[`all`],m={},h={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function g(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function _(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(g)}:null}function v(e,t){return t===null?0:e[t]||0}function y(e){if(!e||e===`none`)return d;let t=_(e);if(!t)return d;let{type:n,values:r}=t,i=h[n];return i?{offsetX:v(r,i[0]),offsetY:v(r,i[1])}:d}function b(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function x(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function S(e,t){let{timeout:n,easing:r,style:i=f}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function C(e,t){let n=t??c;return l(e.motion?.reducedMotion,n)}function w(e,t=p,n=m){let r=e.transitions?.create?.(t,n),i=C(e);if(r===void 0)return i??f;let a={transition:r};return i?{...a,...i}:a}var T=r,E=o,D={};function O(e,t){let n=i.useRef(D);return n.current===D&&(n.current=e(t)),n}var k=`(prefers-reduced-motion: reduce)`,A=0,j=`0ms`,M=()=>{},N=()=>!1,P=()=>!0,F=()=>M;function I(e){let[t,r]=i.useState(()=>({enabled:e,matches:e?null:!1})),a=t.matches;return t.enabled!==e&&(a=null,e||(a=!1)),n(()=>{let n=t=>{r(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&n(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){n(!1);return}let i=window.matchMedia(k),a=()=>{n(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),a}var L={...i}.useSyncExternalStore;function R(e){let t=e?P:N,[n,r]=i.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[N,F];let t=window.matchMedia(k);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return L(r,n,t)}var z=L===void 0?I:R;function B(e,t){let n=z(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return i.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:A,delay:j}:e}}),[r])}function V(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var H=[];function U(e){i.useEffect(e,H)}var W=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function G(){let e=O(W.create).current;return U(e.disposeEffect),e}export{o as _,B as a,T as c,S as d,w as f,s as g,u as h,V as i,C as l,b as m,G as n,O as o,y as p,U as r,E as s,W as t,x as u,a as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{t as n}from"./UIContext-Dsr0TY8K.js";var r=e(t(),1),i=()=>{let{setToast:e}=(0,r.useContext)(n),t=()=>e(e=>({...e,show:!1})),i=(0,r.useCallback)((t,n)=>{e({text:t||`Something went wrong.`,type:`error`,show:!0,autoHideDuration:12e3,...n})},[e]);return{setToastData:(0,r.useCallback)(t=>{t.persist?e({...t,show:!0}):e({autoHideDuration:6e3,...t,show:!0})},[e]),setToastApiError:i,hideToast:t}};export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,t}from"./react-
|
|
1
|
+
import{o as e,t}from"./react-Ca03aNmg.js";import{f as n,t as r}from"./httpErrorResponseHandler-BzpwldnE.js";import{n as i}from"./formatPath-j72gcKwy.js";var a={name:`Unleash`,version:`7.3.0`,slogan:`The enterprise ready feature flag service.`,flags:{P:!1,RE:!1,EEA:!1,SE:!1,T:!1,UNLEASH_CLOUD:!1,UG:!1},links:[{value:`Documentation`,icon:`library_books`,href:`https://docs.getunleash.io`,title:`User documentation`},{value:`GitHub`,icon:`c_github`,href:`https://github.com/Unleash`,title:`Source code on GitHub`}],prometheusAPIAvailable:!1,resourceLimits:{segmentValues:1e3,strategySegments:5,signalEndpoints:5,actionSetActions:10,actionSetsPerProject:5,actionSetFilters:5,actionSetFilterValues:25,signalTokensPerEndpoint:5,featureEnvironmentStrategies:30,environments:50,constraintValues:250,constraints:30,projects:500,segments:300,apiTokens:2e3,featureFlags:5e3,releaseTemplates:10}},o=e(t(),1),s=()=>{let{data:e,error:t,mutate:r}=n(i(`api/admin/ui-config`),c),s=(0,o.useCallback)(()=>!e?.versionInfo?.current?.enterprise,[e]),l=(0,o.useCallback)(()=>e?.environment?.toLowerCase()===`pro`,[e]),u=(0,o.useCallback)(()=>e?.environment?.toLowerCase()!==`pro`&&!!e?.versionInfo?.current?.enterprise,[e]);return{uiConfig:(0,o.useMemo)(()=>({...a,...e,flags:{...a.flags,...e?.flags}}),[e]),loading:!t&&!e,error:t,refetch:r,isOss:s,isPro:l,isEnterprise:u}},c=e=>fetch(e).then(r(`configuration`)).then(e=>e.json());export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useUiConfig-BcfEDPWc.js";var t=()=>{let{uiConfig:t}=e();return e=>t?.flags?.[e]||!1},n=e=>t()(e);export{n,t};
|
package/frontend/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"ci": "pnpm run lint && pnpm run ts:check && pnpm run build --logLevel=error && pnpm run test --reporter=dot",
|
|
14
|
+
"ci": "pnpm run lint:fix && pnpm run ts:check && pnpm run build --logLevel=error && pnpm run test --reporter=dot",
|
|
15
15
|
"build": "pnpm run lint:material:icons && vite build",
|
|
16
16
|
"dev": "vite",
|
|
17
17
|
"start": "vite",
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
"test:snapshot": "pnpm run test -u",
|
|
25
25
|
"test:watch": "vitest watch",
|
|
26
26
|
"lint:material:icons": "./check-imports.rc",
|
|
27
|
-
"lint": "biome
|
|
28
|
-
"lint:check": "
|
|
29
|
-
"
|
|
30
|
-
"fmt:check": "biome check . --error-on-warnings",
|
|
27
|
+
"lint": "biome check . --error-on-warnings",
|
|
28
|
+
"lint:check": "pnpm lint",
|
|
29
|
+
"lint:fix": "biome check . --write --error-on-warnings",
|
|
31
30
|
"ts:check": "tsc",
|
|
32
31
|
"e2e": "pnpm run e2e:oss",
|
|
33
32
|
"e2e:oss": "pnpm run cypress:run --config baseUrl='http://localhost:4242' --spec \"cypress/oss/**/*.spec.ts\"",
|
|
@@ -50,16 +49,16 @@
|
|
|
50
49
|
"@base-ui/react": "^1.4.1",
|
|
51
50
|
"@biomejs/biome": "^2.4.16",
|
|
52
51
|
"@codemirror/lang-json": "6.0.2",
|
|
53
|
-
"@codemirror/lint": "6.9.
|
|
52
|
+
"@codemirror/lint": "6.9.7",
|
|
54
53
|
"@emotion/babel-plugin": "^11.13.5",
|
|
55
54
|
"@emotion/cache": "11.14.0",
|
|
56
55
|
"@emotion/react": "^11.14.0",
|
|
57
56
|
"@emotion/styled": "11.14.1",
|
|
58
|
-
"@mui/icons-material": "9.
|
|
59
|
-
"@mui/lab": "9.0.0-beta.
|
|
60
|
-
"@mui/material": "9.
|
|
61
|
-
"@mui/system": "9.
|
|
62
|
-
"@mui/utils": "9.
|
|
57
|
+
"@mui/icons-material": "9.1.1",
|
|
58
|
+
"@mui/lab": "9.0.0-beta.5",
|
|
59
|
+
"@mui/material": "9.1.2",
|
|
60
|
+
"@mui/system": "9.1.2",
|
|
61
|
+
"@mui/utils": "9.1.1",
|
|
63
62
|
"@mui/x-date-pickers": "^7.0.0",
|
|
64
63
|
"@rolldown/plugin-babel": "^0.2.2",
|
|
65
64
|
"@tanstack/react-table": "^8.10.7",
|
|
@@ -76,7 +75,7 @@
|
|
|
76
75
|
"@types/lodash.isequal": "^4.5.8",
|
|
77
76
|
"@types/lodash.mapvalues": "^4.6.9",
|
|
78
77
|
"@types/lodash.omit": "4.5.9",
|
|
79
|
-
"@types/node": "22.
|
|
78
|
+
"@types/node": "22.20.0",
|
|
80
79
|
"@types/react": "^19.0.0",
|
|
81
80
|
"@types/react-dom": "^19.0.0",
|
|
82
81
|
"@types/react-grid-layout": "^1.3.6",
|
|
@@ -84,7 +83,8 @@
|
|
|
84
83
|
"@uiw/codemirror-theme-duotone": "4.25.10",
|
|
85
84
|
"@uiw/react-codemirror": "4.25.10",
|
|
86
85
|
"@unleash/proxy-client-react": "5.1.0",
|
|
87
|
-
"@
|
|
86
|
+
"@unleash/sdk-flight-recorder": "^0.7.0",
|
|
87
|
+
"@vitejs/plugin-react": "6.0.3",
|
|
88
88
|
"cartesian": "^1.0.1",
|
|
89
89
|
"chart.js": "^4.1.1",
|
|
90
90
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"copy-to-clipboard": "3.3.3",
|
|
94
94
|
"countries-and-timezones": "^3.9.0",
|
|
95
95
|
"css-mediaquery": "^0.1.2",
|
|
96
|
-
"cypress": "15.
|
|
96
|
+
"cypress": "15.18.0",
|
|
97
97
|
"cypress-vite": "1.8.0",
|
|
98
98
|
"date-fns": "4.4.0",
|
|
99
99
|
"date-fns-tz": "^3.2.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"deep-diff": "1.0.2",
|
|
102
102
|
"dequal": "2.0.3",
|
|
103
103
|
"fast-json-patch": "^3.1.1",
|
|
104
|
-
"http-proxy-middleware": "3.0.
|
|
104
|
+
"http-proxy-middleware": "3.0.7",
|
|
105
105
|
"immer": "9.0.21",
|
|
106
106
|
"jsdom": "25.0.1",
|
|
107
107
|
"lodash.clonedeep": "4.5.0",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
"react-resizable": "^3.1.3",
|
|
131
131
|
"react-router": "^7.16.0",
|
|
132
132
|
"regenerator-runtime": "0.14.1",
|
|
133
|
-
"sass": "1.
|
|
133
|
+
"sass": "1.101.0",
|
|
134
134
|
"semver": "7.7.4",
|
|
135
135
|
"serialize-query-params": "^2.0.4",
|
|
136
|
-
"swr": "2.4.
|
|
136
|
+
"swr": "2.4.2",
|
|
137
137
|
"tss-react": "4.9.21",
|
|
138
138
|
"typescript": "5.9.3",
|
|
139
139
|
"unleash-proxy-client": "3.8.0",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"vite-plugin-env-compatible": "2.0.1",
|
|
143
143
|
"vite-plugin-svgr": "5.2.0",
|
|
144
144
|
"vite-tsconfig-paths": "^5.1.4",
|
|
145
|
-
"vitest": "4.1.
|
|
145
|
+
"vitest": "4.1.9",
|
|
146
146
|
"whatwg-fetch": "3.6.20"
|
|
147
147
|
},
|
|
148
148
|
"browserslist": {
|
|
@@ -159,11 +159,12 @@
|
|
|
159
159
|
},
|
|
160
160
|
"dependencies": {
|
|
161
161
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
162
|
+
"highlight.js": "^11.11.1",
|
|
162
163
|
"json-2-csv": "^5.5.10",
|
|
163
164
|
"json-diff-react": "^1.0.1",
|
|
164
165
|
"logrocket": "^12.1.1",
|
|
165
166
|
"re2js": "2.3.2",
|
|
166
167
|
"uuid": "^14.0.0"
|
|
167
168
|
},
|
|
168
|
-
"packageManager": "pnpm@11.
|
|
169
|
+
"packageManager": "pnpm@11.8.0+sha512.c1f5e7c4cb241c8f174b743851d82f42b802324afc8b0f116b96adb15aa06664948dde36960a3ba1079ba5b4b29dd0140135b94b5b5f5263592249d68e555f26"
|
|
169
170
|
}
|